readlink, areadlink: Relax test a bit.
[pspp] / ChangeLog
1 2010-07-31  Bruno Haible  <bruno@clisp.org>
2
3         readlink, areadlink: Relax test a bit.
4         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5         alternative to ENOTDIR.
6         * tests/test-areadlink.h (test_areadlink): Likewise.
7         Reported by Rainer Tammer.
8
9 2010-07-31  Bruno Haible  <bruno@clisp.org>
10
11         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13         character, perform the search using U_STRCHR.
14         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18         Suggested by Paolo Bonzini.
19
20 2010-07-31  Bruno Haible  <bruno@clisp.org>
21
22         unistr/u*-strstr: Fix dependencies.
23         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26
27 2010-07-31  Bruno Haible  <bruno@clisp.org>
28
29         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31         the beginning of the loop.
32         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
33         cases in 'switch' statement.
34
35         unistr/u8-strchr: Fix several bugs.
36         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
37         the string. When not found, return NULL, not a pointer near the end.
38
39         More tests for unistr/u8-strchr.
40         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
41         that the function does not read past the first occurrence of the byte
42         being searched.
43         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
44         * tests/unistr/test-u16-strchr.c (main): New function.
45         * tests/unistr/test-u32-strchr.c (main): New function.
46
47 2010-07-31  Bruno Haible  <bruno@clisp.org>
48
49         posix-modules: Ignore backup files of documentation files.
50         * posix-modules: grep only through files named *.texi.
51
52 2010-07-31  Bruno Haible  <bruno@clisp.org>
53
54         symlinkat: Fix documentation.
55         * doc/posix-functions/readlinkat.texi: Fix module name.
56
57 2010-07-31  Bruno Haible  <bruno@clisp.org>
58
59         fchownat: Replace also when chown has the trailing slash bug.
60         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
61         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62         introduced on 2010-04-10.
63         Reported by Rainer Tammer.
64
65 2010-07-31  Bruno Haible  <bruno@clisp.org>
66
67         linkat: Work around AIX 7.1 bug.
68         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
69         whether linkat handles trailing slash correctly. If not, replace linkat
70         and define LINKAT_TRAILING_SLASH_BUG.
71         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
72         check whether (fd1,file1) points to a directory if file1 or file2 ends
73         in a slash. Code taken from lib/link.c.
74         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
75         Reported by Rainer Tammer.
76
77 2010-07-31  Bruno Haible  <bruno@clisp.org>
78
79         Correctly determine whether pow is available in libc on AIX 7 with xlc.
80         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
81         This disables an xlc optimization that was causing wrong test results.
82         Reported by Rainer Tammer.
83
84 2010-07-31  Bruno Haible  <bruno@clisp.org>
85
86         iconv: Work around AIX 6.1..7.1 bug.
87         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
88         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
89         cross-compiling, guess no on all versions of AIX.
90         Reported by Rainer Tammer.
91
92 2010-07-31  Bruno Haible  <bruno@clisp.org>
93
94         readlink: Relax test a bit.
95         * tests/test-readlink.h (test_readlink): Allow different errno value
96         when readlink is called with a file name that ends in / and refers to
97         a file.
98         Suggested by Eric Blake.
99         Reported by Rainer Tammer.
100
101 2010-07-31  Bruno Haible  <bruno@clisp.org>
102
103         copysign: Does not require -lm on glibc systems.
104         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
105         gl_COMMON_DOUBLE_MATHFUNC.
106         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
107
108 2010-07-31  Bruno Haible  <bruno@clisp.org>
109
110         duplocale: Work around AIX 7.1 bug.
111         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
112         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
113         * lib/duplocale.c (rpl_duplocale): Update comment.
114         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
115         Reported by Rainer Tammer.
116
117 2010-07-30  Bruno Haible  <bruno@clisp.org>
118
119         dirfd: Avoid link error on AIX 7.1.
120         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
121         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
122         exist, set REPLACE_DIRFD.
123         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
124         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
125         * doc/posix-functions/dirfd.texi: Update.
126         Reported by Rainer Tammer.
127
128 2010-07-30  Eric Blake  <eblake@redhat.com>
129
130         strtod: next round of AIX fixes
131         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
132         exponent.
133         * tests/test-strtod.c (main): Enhance tests.
134         * doc/posix-functions/strtod.texi (strtod): Document next bug.
135         Reported by Rainer Tammer.
136
137         futimens: fix configure check
138         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
139         Reported by Bruno Haible.
140
141 2010-07-30  Bruno Haible  <bruno@clisp.org>
142
143         getline: Update regarding AIX.
144         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
145         Reported by Rainer Tammer.
146
147 2010-07-30  Bruno Haible  <bruno@clisp.org>
148
149         wcwidth: Drop replacement on AIX 7.
150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
151         AIX 7.
152         Reported by Rainer Tammer.
153
154 2010-07-30  Bruno Haible  <bruno@clisp.org>
155
156         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
158         a 'char *'.
159         Reported by Rainer Tammer.
160
161 2010-07-30  Bruno Haible  <bruno@clisp.org>
162
163         unlink: Update regarding AIX.
164         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
165         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
166         Reported by Rainer Tammer.
167
168 2010-07-30  Bruno Haible  <bruno@clisp.org>
169
170         symlink: Update regarding AIX.
171         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
172         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
173         Reported by Rainer Tammer.
174
175 2010-07-30  Bruno Haible  <bruno@clisp.org>
176
177         strndup: Update regarding AIX.
178         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
179         AIX 7.
180         Reported by Rainer Tammer.
181
182 2010-07-30  Bruno Haible  <bruno@clisp.org>
183
184         stat: Update regarding AIX.
185         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
186         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
187         Reported by Rainer Tammer.
188
189 2010-07-30  Bruno Haible  <bruno@clisp.org>
190
191         truncl: Fix autoconf test.
192         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
193         whether truncl works.
194         Reported by Rainer Tammer.
195
196 2010-07-30  Bruno Haible  <bruno@clisp.org>
197
198         round: Update regarding AIX.
199         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
200         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
201         Reported by Rainer Tammer.
202
203 2010-07-30  Bruno Haible  <bruno@clisp.org>
204
205         rename: Update regarding AIX.
206         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
207         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
208         Reported by Rainer Tammer.
209
210 2010-07-30  Bruno Haible  <bruno@clisp.org>
211
212         printf.m4: Update regarding AIX.
213         * m4/printf.m4: Update comments regarding AIX.
214         Reported by Rainer Tammer.
215
216 2010-07-30  Bruno Haible  <bruno@clisp.org>
217
218         iconv: Update regarding AIX.
219         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
220         AIX 7.
221         Reported by Rainer Tammer.
222
223 2010-07-30  Bruno Haible  <bruno@clisp.org>
224
225         getopt: Update regarding AIX.
226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
227         no on AIX.
228         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
229         Reported by Rainer Tammer.
230
231 2010-07-30  Bruno Haible  <bruno@clisp.org>
232
233         ldexpl; Update regarding AIX.
234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
235         on AIX 7.
236         Reported by Rainer Tammer.
237
238 2010-07-30  Bruno Haible  <bruno@clisp.org>
239
240         frexpl: Update regarding AIX.
241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
242         on AIX 7.
243         Reported by Rainer Tammer.
244
245 2010-07-30  Bruno Haible  <bruno@clisp.org>
246
247         open, fopen: Update regarding AIX.
248         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
249         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
250         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
251         * doc/posix-functions/fopen.texi: Likewise.
252         Reported by Rainer Tammer.
253
254 2010-07-30  Bruno Haible  <bruno@clisp.org>
255
256         chown: Update doc regarding AIX.
257         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
258         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
259         Reported by Rainer Tammer.
260
261 2010-07-30  Eric Blake  <eblake@redhat.com>
262
263         strtod: fix bug in replacement function on AIX
264         * lib/strtod.c (strtod): Special case broken "0x" parse in
265         underlying strtod.
266         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
267         * doc/posix-functions/strtod.texi (strtod): Likewise.
268         Reported by Rainer Tammer.
269
270 2010-07-30  Bruno Haible  <bruno@clisp.org>
271
272         mbrlen: Fix cross-compilation guess for AIX.
273         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
274         guess. Leftover from 2008-12-22.
275
276 2010-07-30  Bruno Haible  <bruno@clisp.org>
277
278         mbrtowc: Fix cross-compilation guess for AIX.
279         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
280         guess. Leftover from 2008-12-21.
281
282 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
283
284         init.sh: work around trap limitation of some shells
285         * tests/init.sh (setup_): Move exit trap outside of shell function.
286
287 2010-07-29  Eric Blake  <eblake@redhat.com>
288
289         strtod: aid debugging
290         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
291         understanding why strtod is rejected.
292
293 2010-07-28  Bruno Haible  <bruno@clisp.org>
294
295         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
296         * lib/unistr/u8-chr.c: Include <string.h>.
297         * tests/unistr/test-u8-chr.c: Likewise.
298         * tests/unistr/test-u16-chr.c: Likewise.
299         * tests/unistr/test-u32-chr.c: Likewise.
300         * tests/unistr/test-u8-strchr.c: Likewise.
301         * tests/unistr/test-u16-strchr.c: Likewise.
302         * tests/unistr/test-u32-strchr.c: Likewise.
303         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
304         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
305         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
306         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
307
308 2010-07-28  Bruno Haible  <bruno@clisp.org>
309
310         Use spaces for indentation, not tabs.
311         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
312
313 2010-07-27  Bruno Haible  <bruno@clisp.org>
314
315         mbspcasecmp: Fix function specification.
316         * lib/string.in.h (mbspcasecmp): Fix specification comment.
317         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
318         Reported by Eric Blake <eblake@redhat.com>.
319
320 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
321
322         timespec: use cast and not conditional, as truncation isn't possible
323         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
324         instead of a conditional.  Comment about the situation in more detail.
325         This undoes most of the 2009-10-29 patch.
326
327 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
328
329         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
330         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
331         * lib/unistr/u8-strchr.c: Likewise.
332         * modules/unistr/u8-chr: Depend on memchr.
333
334         unistr/u*-strchr: add tests
335         * modules/unistr/u8-strchr-tests: New file.
336         * modules/unistr/u16-strchr-tests: New file.
337         * modules/unistr/u32-strchr-tests: New file.
338         * tests/unistr/test-strchr.h: New file.
339         * tests/unistr/test-u8-strchr.c: New file.
340         * tests/unistr/test-u16-strchr.c: New file.
341         * tests/unistr/test-u32-strchr.c: New file.
342
343         unistr/u*-chr: test multibyte sequences more
344         * tests/unistr/test-chr.h: Do complete testing of the characters in the
345         test vector.
346         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
347         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
348         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
349
350         unistr/u*-chr: test multibyte sequences
351         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
352
353         unistr/u*-chr: prepare for multibyte tests
354         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
355         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
356         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
357         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
358         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
359         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
360
361 2010-07-18  Bruno Haible  <bruno@clisp.org>
362
363         unistr/u8-strchr: Optimize non-ASCII argument case.
364         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
365         because the first byte often matches anyway.
366         Reported by Pádraig Brady <P@draigbrady.com>.
367
368 2010-07-15  Karl Berry  <karl@gnu.org>
369
370         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
371
372 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
373
374         getcwd: on Solaris, work better if ancestors are inaccessible
375         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
376         buffer and size, try again with a large buffer.  This works better
377         on Solaris, since its getcwd succeeds even if the path to the root
378         is inaccessible, and this is helpful in common cases such as .zfs
379         hidden directories.  Problem reported by J Chapman Flack in
380         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
381         Use system getcwd if it's declared, not merely if it's partly
382         working; use the partly-working test only to avoid needless effort
383         if the system getcwd fails.
384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
385         comment that was already obsolete and is now even more obsolete.
386         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
387         now might call strdup.
388
389 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
390
391         pthread: Add enough so that coreutils/src/sort.c compiles.
392         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
393         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
394         gnulib. Include <sched.h> and <time.h>, as per POSIX.
395         Include <sys/types.h>, in case it defines pthread_t.
396         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
397         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
398         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
399         (pthread_rwlockattr_t, pthread_spinlock_t):
400         New typedefs, if HAVE_PTHREAD_T is not defined.
401         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
402         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
403         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
404         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
405         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
406         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
407         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
408         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
409         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
410         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
411         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
412         New macros.
413         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
414         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
415         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
416         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
417         (pthread_spin_unlock): New dummy functions.
418         (pthread_create): Return EAGAIN; don't set errno.
419         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
420         require AC_C_INLINE.
421         * modules/pthread (Depends-on): Add sched, time.
422         (pthread.h): Use AM_V_GEN.
423
424 2010-07-13  Bruno Haible  <bruno@clisp.org>
425
426         striconveh: Don't malloc memory if the result buffer is sufficient.
427         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
428         buffer if its size is sufficient.
429         Reported by Ludovic Courtès <ludo@gnu.org>.
430
431 2010-07-13  Bruno Haible  <bruno@clisp.org>
432
433         strtod: Add safety check.
434         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
435
436 2010-07-12  Bruno Haible  <bruno@clisp.org>
437
438         Unify tests that set gl_cv_func_ldexpl_no_libm.
439         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
440         gl_FUNC_LDEXPL.
441         (gl_FUNC_LDEXPL): Invoke it.
442         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
443
444 2010-07-12  Bruno Haible  <bruno@clisp.org>
445
446         Unify tests that set gl_cv_func_ldexp_no_libm.
447         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
448         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
449         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
450         (configure.ac): Simply invoke gl_FUNC_LDEXP.
451         * modules/strtod (Files): Add m4/ldexp.m4.
452
453 2010-07-12  Bruno Haible  <bruno@clisp.org>
454
455         Unify tests that set gl_cv_func_frexpl_no_libm.
456         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
457         gl_FUNC_FREXPL_NO_LIBM.
458         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
459         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
460
461 2010-07-12  Bruno Haible  <bruno@clisp.org>
462
463         Unify tests that set gl_cv_func_frexp_no_libm.
464         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
465         gl_FUNC_FREXP_NO_LIBM.
466         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
467         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
468
469 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
470
471         memcoll: clarify sizes versus lengths, document better, and tweak perf
472         * lib/memcoll.c (strcoll_loop, memcoll0):
473         Improve quality of descriptive comments.  Name variables
474         consistently as to whether they are lengths (which do not include
475         terminating null) versus sizes (which do).
476         * lib/xmemcoll.c (xmemcoll0): Likewise.
477         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
478         returned when s1size == 0; this is easier to compile and saves
479         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
480
481 2010-07-12  Bruno Haible  <bruno@clisp.org>
482
483         Tests for module '_Exit'.
484         * modules/_Exit-tests: New file.
485         * tests/test-_Exit.sh: New file.
486         * tests/test-_Exit.c: New file.
487
488         New module '_Exit'.
489         * lib/stdlib.in.h (__attribute__): New macro.
490         (_Exit): New declaration.
491         * lib/_Exit.c: New file.
492         * m4/_Exit.m4: New file.
493         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
494         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
495         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
496         * modules/_Exit: New file.
497         * tests/test-stdlib-c++.cc (_Exit): Check signature.
498         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
499
500 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
501
502         strtod: make it more-accurate typically, and don't require libm
503         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
504         Include limits.h.  Don't include string.h.
505         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
506         (locale_isspace): New function, so that no casts are needed to
507         check whether *s is a space.
508         (ldexp): Provide an unused dummy if not available.
509         (scale_radix_exp, parse_number, underlying_strtod): New functions.
510         (strtod): Use them.  This implementation prefers to use the
511         underlying strtod if available, falling back on our own code
512         only to fix known bugs.  This is more likely to produce an
513         accurate result.  Also, it avoids the use of libm functions.
514         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
515         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
516         was absent, but it caused a test failure with coreutils.
517         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
518         with libm.
519         * modules/strtod (Makefile.am, Link): libm is no longer needed.
520         * modules/strtod-tests (Makefile.am): Likewise.
521
522 2010-07-11  Pádraig Brady  <P@draigBrady.com>
523             Bruno Haible  <bruno@clisp.org>
524
525         unistr/u8-strchr: Optimize ASCII argument case.
526         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
527
528 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
529
530         (x)memcoll: minor tweaks
531         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
532         is after the type that it qualifies.
533         (memcoll0): Likewise.
534         * lib/memcoll.h (memcoll0): Likewise.
535         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
536         * lib/xmemcoll.h (xmemcoll0): Likewise.
537         * lib/memcoll.c (memcoll0): Correct the comment.  This function
538         differs from memcoll in that the NUL byte is part of the argument.
539         Omit the abort-checks, as performance is a real issue here.  Plus,
540         the checks were wrong anyway (an off-by-one error).  Omit local
541         variable 'diff', as it's a bit clearer that way.
542         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
543         no longer needed.
544
545 2010-07-08  Chen Guo <chenguo4@yahoo.com>
546
547         (x)memcoll: speedup when input is known to be NUL delimited
548         * lib/memcoll.c: Include stdlib.
549         (memcoll0) New function.
550         (strcoll_loop) New function, refactored for use in both memcoll
551         and memcoll0.
552         * lib/memcoll.h: Add prototype for memcoll0.
553         * lib/xmemcoll.c: (xmemcoll0) New function.
554         (collate_error) New function, refactored for use in both xmemcoll
555         and xmemcoll0.
556         * lib/xmemcoll.h: Add prototype for xmemcoll0.
557         * m4/memcoll.m4: add inline invocation.
558
559 2010-07-06  Pádraig Brady  <P@draigBrady.com>
560
561         * build-aux/bootstrap: Remove any local translations
562         from the translation project synchronization directory,
563         so that local only translations are not distributed.
564
565 2010-07-04  Bruno Haible  <bruno@clisp.org>
566
567         fsusage: Clarify which code applies to which platforms.
568         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
569         platform.
570         * lib/fsusage.c (get_fs_usage): Likewise.
571
572 2010-07-04  Bruno Haible  <bruno@clisp.org>
573
574         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
575         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
576         Reported by Martin Lambers <marlam@marlam.de>.
577
578 2010-07-04  Jim Meyering  <meyering@redhat.com>
579
580         hash: once again explicitly disallow insertion of NULL
581         * lib/hash.c (hash_insert0): Reinstate just-removed test:
582         inserting a NULL pointer cannot work with these functions.
583         Add a comment with details.
584         This reverts part of the 2010-07-01 commit, 5bef1a35
585         "hash: extend module to deal with non-pointer keys".
586
587 2010-07-01  Bruno Haible  <bruno@clisp.org>
588
589         stdbool: Update doc.
590         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
591         Info from Christian Weisgerber <naddy@mips.inka.de>.
592
593 2010-07-01  Jim Meyering  <meyering@redhat.com>
594
595         hash: extend module to deal with non-pointer keys
596         * lib/hash.c (hash_insert0): New interface, much like hash_insert
597         but that allows insertion of non-pointer entries.
598         Do not disallow an ENTRY value of NULL.
599         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
600         * lib/hash.h (hash_insert0): Declare.
601
602 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
603
604         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
605         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
606         not present (i.e. with autoconf 2.59 and when using gettextize, not
607         gnulib), require AC_GNU_SOURCE instead.
608
609 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
610
611         idpriv-drop: Fix tests.
612         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
613         not to the test-idpriv-droptemp program.
614
615 2010-06-29  Bruno Haible  <bruno@clisp.org>
616
617         string: Fix syntax error with g++ 2.96.
618         * lib/string.in.h (__pure__): Remove definition.
619         (_GL_ATTRIBUTE_PURE): New macro.
620         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
621         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
622         Reported by Christian Weisgerber <naddy@mips.inka.de>.
623
624 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
625
626         unitypes: Fix bug introduced on 2010-05-18.
627         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
628
629 2010-06-22  Eric Blake  <eblake@redhat.com>
630
631         memmem: slight optimization
632         * lib/str-two-way.h (critical_factorization): Update comments.
633         Reduce work during factorization phase.
634         Reported by Carlos Bueno <carlos@bueno.org>.
635
636 2010-06-21  Bruno Haible  <bruno@clisp.org>
637
638         Fix HAVE_CALLOC_POSIX misnomer.
639         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
640         !HAVE_CALLOC_POSIX.
641         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
642         HAVE_CALLOC_POSIX.
643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
644         instead of HAVE_CALLOC_POSIX.
645         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
646         HAVE_CALLOC_POSIX.
647
648         Use modern idiom for calloc() replacement.
649         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
650         AC_FUNC_CALLOC.
651         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
652         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
653         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
654         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
655         (gl_REPLACE_CALLOC): New macro.
656
657 2010-06-21  Bruno Haible  <bruno@clisp.org>
658
659         Fix HAVE_REALLOC_POSIX misnomer.
660         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
661         !HAVE_REALLOC_POSIX.
662         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
663         HAVE_REALLOC_POSIX.
664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
665         instead of HAVE_REALLOC_POSIX.
666         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
667         HAVE_REALLOC_POSIX.
668
669         Use modern idiom for realloc() replacement.
670         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
671         AC_FUNC_REALLOC.
672         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
673         Autoconf's AC_FUNC_REALLOC.
674         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
675         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
676         (gl_REPLACE_REALLOC): New macro.
677         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
678
679 2010-06-21  Bruno Haible  <bruno@clisp.org>
680
681         Fix HAVE_MALLOC_POSIX misnomer.
682         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
683         !HAVE_MALLOC_POSIX.
684         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
685         HAVE_MALLOC_POSIX.
686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
687         instead of HAVE_MALLOC_POSIX.
688         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
689         HAVE_MALLOC_POSIX.
690
691         Use modern idiom for malloc() replacement.
692         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
693         AC_FUNC_MALLOC.
694         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
695         Autoconf's AC_FUNC_MALLOC.
696         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
697         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
698         (gl_REPLACE_MALLOC): New macro.
699         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
700
701 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
702
703         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
704         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
705         This macro takes 3 arguments, not 4.
706
707 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
708
709         ipv6: fix detection under mingw
710         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
711         in6_addr.
712
713 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
714
715         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
716         that strtod() works when cross-compiling to a glibc version known
717         to work.
718
719 2010-06-15  Bruno Haible  <bruno@clisp.org>
720
721         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
722
723 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
724
725         select: Correct timeout.
726         * lib/select.c (rpl_select): Compute wait_timeout correctly.
727
728 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
729
730         git-version-gen: init shell var to avoid env var influence
731         * build-aux/git-version-gen (v): Init shell var to empty.
732
733 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
734
735         priv-set: Don't assume that priv.h exists merely because getppriv does.
736         See Jan Andersen's bug report about AIX 5L in
737         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
738         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
739         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
740         * lib/priv-set.h: Likewise.
741         * tests/test-priv-set.c: Likewise.
742
743 2010-06-13  Bruno Haible  <bruno@clisp.org>
744
745         relocatable: Make it easier to test whether to install wrappers.
746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
747         RELOCATABLE_VIA_WRAPPER.
748
749 2010-06-13  Bruno Haible  <bruno@clisp.org>
750
751         gnulib-tool: Display specified modules and dependencies differently.
752         * gnulib-tool (func_show_module_list): New function.
753         (func_import, func_create_testdir): Invoke it.
754         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
755
756 2010-06-13  Bruno Haible  <bruno@clisp.org>
757
758         gnulib-tool: Align code of func_import and func_create_testdir.
759         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
760         specified_modules.
761
762 2010-06-12  Jim Meyering  <meyering@redhat.com>
763
764         test-inttostr: avoid spurious failure on Solaris 9
765         * tests/test-inttostr.c (main): Skip the test when snprintf fails
766         to accept "%ju".  Reported by Bruno Haible.
767
768 2010-06-11  Jim Meyering  <meyering@redhat.com>
769
770         test-sys_socket: mark variables as used more readably
771         * tests/test-sys_socket.c (main): Mark otherwise unused variables
772         as "used" explicitly via (void) statement casts.  This is more
773         readable than using them in an artificial return expression.
774         Suggestion from Bruno Haible.
775
776 2010-06-11  Bruno Haible  <bruno@clisp.org>
777
778         Avoid some more warnings from "gcc -Wwrite-strings".
779         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
780         to 'const char *'.
781         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
782         * tests/test-c-strcasestr.c (main): Likewise.
783         * tests/test-mbscasestr1.c (main): Likewise.
784         * tests/test-mbscasestr2.c (main): Likewise.
785         * tests/test-memmem.c (main): Likewise.
786         * tests/test-strstr.c (main): Likewise.
787         * tests/test-strcasestr.c (main): Likewise.
788
789 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
790
791         init.sh: change framework_failure_ to fail with status 99, not 1
792         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
793         automake's parallel-tests rule that this is an unexpected failure,
794         even if the test is listed in XFAIL_TESTS.
795
796 2010-06-11  Jim Meyering  <meyering@redhat.com>
797
798         test-inttostr: avoid warnings about 4-6KB literal strings
799         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
800         Include "macros.h", for its definition of ASSERT.
801         (CK): s/assert/ASSERT/
802         * modules/inttostr-tests (Files): Add macros.h.
803
804         init.sh: don't use $ME_ or skip_ before they are defined
805         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
806         their first uses.  Also hoist their companions: warn_, fail_,
807         framework_failure_, $stderr_fileno.  Prompted by a patch from
808         Stefano Lattarini.
809
810         test-sys_socket: avoid set-but-not-used warnings from gcc
811         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
812         avoid warning about set-but-not-used variables.
813
814         test-xvasprintf: avoid 'const' discard warnings
815         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
816         "const" when assigning from literal strings.
817         (test_xasprintf): Add "void" in function argument list to placate
818         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
819
820         tests: avoid compilation warnings in argmatch and exclude tests...
821         in packages that define ARGMATCH_DIE_DECL, like coreutils.
822         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
823         Since it always exits, declare with the "noreturn" attribute.
824         * tests/test-argmatch.c: Likewise.
825
826         tests: avoid 'const' discard warnings in mbsstr tests
827         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
828         * tests/test-mbsstr2.c (main): Likewise.
829
830         test-verify: avoid warning from gcc's -Wmissing-declarations
831         * tests/test-verify.c (function): Declare to be static.
832
833         test-inttostr.c: include <string.h> for use of strcmp
834         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
835
836         test-linkat: avoid failed assertion on "other" architectures
837         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
838         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
839         sparc: https://bugs.launchpad.net/bugs/591968
840
841 2010-06-11  Jim Meyering  <meyering@redhat.com>
842
843         printf.m4: avoid autoconf's "Expanded Before Required" warning
844         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
845         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
846         autoconf warning.
847
848 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
849
850         Replacement header templates are now named with ".in", not "_".
851         * doc/gnulib-intro.texi: Correct.
852
853 2010-06-10  Jim Meyering  <meyering@redhat.com>
854
855         inttostr-tests: depend on snprintf, not snprintf-posix
856         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
857         snprintf-posix, to avoid this aclocal failure:
858           missing file gnulib-tests/vasnprintf.c
859           configure.ac:45: error: expected source file, required through \
860           AC_LIBSOURCES, not found
861
862 2010-06-10  Jim Meyering  <meyering@redhat.com>
863
864         inttostr: add a new function, inttostr, and tests
865         The namesake function was not available.  The existence of the
866         template file, inttostr.c makes its addition nontrivial.
867         * lib/anytostr.c: Rename from inttostr.c.
868         (anytostr): Rename from inttostr.
869         * lib/inttostr.c: New file.
870         * modules/inttostr (Files): Add anytostr.c.
871         (Makefile.am): Set lib_SOURCES instead of ...
872         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
873         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
874         * lib/offtostr.c: Likewise.
875         * lib/uinttostr.c: Likewise.
876         * lib/umaxtostr.c: Likewise.
877         * modules/inttostr-tests: New file.
878         * tests/test-inttostr.c: New file.  Test these functions.
879
880 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
881             Bruno Haible  <bruno@clisp.org>
882
883         Add "Extending Gnulib" chapter to manual.
884         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
885         chapter.
886         (Extending Gnulib): New chapter.
887         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
888         chapter.
889
890 2010-06-09  Bruno Haible  <bruno@clisp.org>
891
892         Avoid relocwrapper link errors due to gnulib replacement functions.
893         * lib/areadlink.c: Use the system's malloc, realloc functions.
894         (areadlink): Set errno to ENOMEM explicitly.
895         * modules/areadlink (Depends-on): Remove malloc-posix.
896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
897
898 2010-06-09  Bruno Haible  <bruno@clisp.org>
899
900         Avoid relocwrapper link errors due to gnulib replacement functions.
901         * lib/canonicalize-lgpl.c: Use the system's malloc function.
902         * lib/malloca.c: Likewise.
903         * lib/relocatable.c: Likewise.
904         * lib/progreloc.c: Use the system's malloc, sprintf functions.
905         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
906         * lib/setenv.c: Use the system's malloc, realloc functions.
907         * lib/strerror.c: Use the system's sprintf function.
908         Reported by Ben Pfaff <blp@cs.stanford.edu>.
909
910 2010-06-04  Bruno Haible  <bruno@clisp.org>
911
912         Prefer documented low-level autoconf macro names.
913         * m4/lib-link.m4: Use m4_translit instead of translit.
914         * m4/environ.m4: Likewise.
915         * m4/mathfunc.m4: Likewise.
916         * m4/onceonly.m4: Likewise.
917         * m4/stdint.m4: Likewise.
918         Suggested by Eric Blake.
919
920 2010-06-04  Martin Lambers  <marlam@marlam.de>
921             Bruno Haible  <bruno@clisp.org>
922
923         havelib: Allow library names with '+' characters.
924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
925         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
926
927 2010-06-09  Bruno Haible  <bruno@clisp.org>
928
929         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
930         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
931         realloc failed.
932
933 2010-06-08  Peter Simons  <simons@cryp.to>
934
935         maint.mk: make the news-check rule more configurable
936         * top/maint.mk (news-check-lines-spec) New variable.
937         (news-check): Use "sed -n 1,10p" in place of "head".
938
939 2010-06-07  Jim Meyering  <meyering@redhat.com>
940
941         do-release-commit-and-tag: fix typo in --help
942         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
943
944         regex: avoid new dead-code warning with gcc-4.6.0
945         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
946         if-block containing a while-loop.  It's been unused for at least
947         5 years.
948
949 2010-06-05  Bruno Haible  <bruno@clisp.org>
950
951         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
952         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
953
954 2010-06-04  Bruno Haible  <bruno@clisp.org>
955
956         Update to GNU gettext 0.18.1.
957         * modules/gettext (configure.ac): Require gettext infrastructure from
958         version 0.18.1.
959
960 2010-06-03  Bruno Haible  <bruno@clisp.org>
961
962         Don't use AC_LIBOBJ with file names in subdirectories.
963         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
964         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
965         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
966         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
967         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
968         gl_LIBUNISTRING_LIBSOURCE.
969         (Makefile.am): Augment lib_SOURCES here, conditionally.
970         * NEWS: Drop requirement for Automake option 'subdir-objects'.
971
972 2010-06-03  Bruno Haible  <bruno@clisp.org>
973
974         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
975         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
976         expansion does not end with a newline.
977         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
978         unnecessary newline.
979
980 2010-06-03  Bruno Haible  <bruno@clisp.org>
981
982         Reduce dependencies.
983         * tests/test-quotearg.h: New file, extracted from
984         tests/test-quotearg.c.
985         * tests/test-quotearg-simple.c: New file, extracted from
986         tests/test-quotearg.c.
987         * tests/test-quotearg.c: Don't include <ctype.h>.
988         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
989         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
990         use_quote_double_quotes, use_quotearg_colon): Moved to
991         tests/test-quotearg.h.
992         (results_g, flag_results, custom_quotes, custom_results): Moved
993         to tests/test-quotearg-simple.c.
994         (main): Moved the part that does not depend on gettext to
995         tests/test-quotearg-simple.c. Return 77 if the test cannot be
996         performed.
997         * modules/quotearg-simple: New file.
998         * modules/quotearg-simple-tests: New file.
999         * modules/quotearg (Depends-on): Add quotearg-simple.
1000         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1001         (Files): Add tests/test-quotearg.h.
1002         Reported by Paolo Bonzini.
1003
1004 2010-06-03  Bruno Haible  <bruno@clisp.org>
1005
1006         Reduce dependencies.
1007         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1008
1009 2010-06-03  Bruno Haible  <bruno@clisp.org>
1010
1011         time: Undefine more broken macros.
1012         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1013         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1014         Reported by Eric Blake.
1015
1016 2010-06-03  Bruno Haible  <bruno@clisp.org>
1017
1018         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1019         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1020         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1021         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1022         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1023         Reported by Ludovic Courtès <ludo@gnu.org>.
1024
1025 2010-06-02  Eric Blake  <eblake@redhat.com>
1026
1027         time: work with mingw + pthreads-win32 library
1028         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1029         if timespec is defined only in pthread.h.
1030         * modules/time (Makefile.am): Substitute it.
1031         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1032         <pthread.h>, when needed.
1033         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1034         from the library.
1035
1036 2010-05-31  Bruno Haible  <bruno@clisp.org>
1037
1038         Avoid expanding two macros in the wrong order.
1039         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1040         gl_LIBUNISTRING if it is defined.
1041         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1042         autoconf >= 2.64.
1043         Reported by Ludovic Courtès <ludo@gnu.org>.
1044
1045 2010-05-27  Jim Meyering  <meyering@redhat.com>
1046
1047         maint.mk: also prohibit "#undef" of always-defined symbols
1048         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1049         Allow more than one space before the symbol name.
1050         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1051         the regexp uses alternation.
1052
1053 2010-05-26  Eric Blake  <eblake@redhat.com>
1054
1055         maint.mk: avoid echo -e
1056         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1057         Convert all uses of echo -* to printf.
1058         Reported by Matthias Bolte.
1059
1060 2010-05-25  Bruno Haible  <bruno@clisp.org>
1061
1062         Update to GNU gettext 0.18, part 2.
1063         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1064         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1065
1066 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067
1068         Add missing include in test-pwrite.c.
1069         * tests/test-pwrite.c: Include string.h, for strcmp.
1070
1071 2010-05-24  Bruno Haible  <bruno@clisp.org>
1072
1073         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1074
1075 2010-05-24  Bruno Haible  <bruno@clisp.org>
1076
1077         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1078         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1079         iconveh_error argument.
1080         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1081         U_STRCONV_TO_LOCALE.
1082         * lib/unistr/u16-strcoll.c: Likewise.
1083         * lib/unistr/u32-strcoll.c: Likewise.
1084         * modules/unistr/u8-strcoll (Depends-on): Add
1085         uniconv/u8-strconv-to-enc, localcharset. Remove
1086         uniconv/u8-strconv-to-locale.
1087         (configure.ac): Bump version number.
1088         * modules/unistr/u16-strcoll (Depends-on): Add
1089         uniconv/u16-strconv-to-enc, localcharset. Remove
1090         uniconv/u16-strconv-to-locale.
1091         (configure.ac): Bump version number.
1092         * modules/unistr/u32-strcoll (Depends-on): Add
1093         uniconv/u32-strconv-to-enc, localcharset. Remove
1094         uniconv/u32-strconv-to-locale.
1095         (configure.ac): Bump version number.
1096
1097 2010-05-24  Bruno Haible  <bruno@clisp.org>
1098
1099         Avoid a test failure on NetBSD 5.0.
1100         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1101         an iconv() bug.
1102
1103 2010-05-24  Bruno Haible  <bruno@clisp.org>
1104
1105         Adjust #include directive style.
1106         * modules/regex (Includes): Recommend to write <regex.h>.
1107
1108 2010-05-24  Bruno Haible  <bruno@clisp.org>
1109
1110         regex: Don't require alloca.
1111         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1112         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1113         only inside if (0).
1114
1115 2010-05-23  Jim Meyering  <meyering@redhat.com>
1116
1117         test-renameat.c: include <sys/stat.h>
1118         * tests/test-renameat.c: Include <sys/stat.h>; required for
1119         definition of S_IS* macros.
1120
1121 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1122
1123         Update maintainer documentation for 'relocatable-prog' module.
1124         * doc/relocatable-maint.texi: Update.
1125         Comments by Bruno Haible.
1126
1127 2010-05-23  Bruno Haible  <bruno@clisp.org>
1128
1129         git-merge-changelog: Enable --split-merged-entry by default.
1130         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1131         (usage): Don't mention this option any more.
1132         Reported by Ralf Wildenhues.
1133
1134 2010-05-23  Jim Meyering  <meyering@redhat.com>
1135
1136         test-pwrite: do not leave behind a test file named "out"
1137         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1138         The trivial-looking use of init.sh is really necessary.
1139         It ensures that the temporary file, "out", is created in
1140         a temporary directory, and removed upon termination.
1141         * tests/test-pwrite.sh: Re-add file.
1142         * modules/pwrite-tests: Reference it.
1143
1144 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1145
1146         Fix output redirection buglet in init.sh.
1147         * tests/init.sh: Fix redirection of stderr.
1148
1149 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1150
1151         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1152
1153 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1154
1155         * modules/valgrind-tests: New file.
1156         * m4/valgrind-tests.m4: New file.
1157         * doc/valgrind-tests.texi: New file.
1158         * doc/gnulib.texi (Running self-tests under valgrind): New
1159         section.
1160
1161 2010-05-19  Bruno Haible  <bruno@clisp.org>
1162
1163         Clean up dead code in recent commit.
1164         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1165         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1166         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1167         Suggested by Paolo Bonzini.
1168
1169 2010-05-19  Bruno Haible  <bruno@clisp.org>
1170
1171         Avoid valgrind error reports from libunistring.
1172         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1173         * modules/libunistring (Files): Add it.
1174         * modules/libunistring-optional (Files): Likewise.
1175
1176 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1177             Bruno Haible  <bruno@clisp.org>
1178
1179         New module 'libunistring-optional'.
1180         * modules/libunistring-optional: New file.
1181         * m4/libunistring-base.m4: New file.
1182         * m4/libunistring-optional.m4: New file.
1183         * lib/unicase.in.h: Renamed from lib/unicase.h.
1184         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1185         * lib/unictype.in.h: Renamed from lib/unictype.h.
1186         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1187         * lib/uniname.in.h: Renamed from lib/uniname.h.
1188         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1189         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1190         * lib/unistr.in.h: Renamed from lib/unistr.h.
1191         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1192         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1193         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1194         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1195         gl_LIBUNISTRING. If the library was found, determine the installed
1196         version and set LIBUNISTRING_VERSION.
1197         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1198         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1199         handle a configuration option --with-included-libunistring.
1200         * modules/libunistring (Files): Add m4/absolute-header.m4.
1201         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1202         Add m4/libunistring-base.m4.
1203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1204         (Makefile.am): Build unicase.h from unicase.in.h.
1205         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1206         Add m4/libunistring-base.m4.
1207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1208         (Makefile.am): Build uniconv.h from uniconv.in.h.
1209         * modules/unictype/base (Files): Use unictype.in.h instead of
1210         unictype.h. Add m4/libunistring-base.m4.
1211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1212         (Makefile.am): Build unictype.h from unictype.in.h.
1213         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1214         Add m4/libunistring-base.m4.
1215         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1216         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1217         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1218         Add m4/libunistring-base.m4.
1219         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1220         (Makefile.am): Build uniname.h from uniname.in.h.
1221         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1222         Add m4/libunistring-base.m4.
1223         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1224         (Makefile.am): Build uninorm.h from uninorm.in.h.
1225         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1226         unistdio.h. Add m4/libunistring-base.m4.
1227         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1228         (Makefile.am): Build unistdio.h from unistdio.in.h.
1229         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1230         Add m4/libunistring-base.m4.
1231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1232         (Makefile.am): Build unistr.h from unistr.in.h.
1233         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1234         Add m4/libunistring-base.m4.
1235         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1236         (Makefile.am): Build unitypes.h from unitypes.in.h.
1237         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1238         Add m4/libunistring-base.m4.
1239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1240         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1241         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1242         uniwidth.h. Add m4/libunistring-base.m4.
1243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1244         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1245         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1246         instead of augmenting lib_SOURCES.
1247         * modules/unicase/empty-suffix-context: Likewise.
1248         * modules/unicase/locale-language: Likewise.
1249         * modules/unicase/tolower: Likewise.
1250         * modules/unicase/totitle: Likewise.
1251         * modules/unicase/toupper: Likewise.
1252         * modules/unicase/u8-casecmp: Likewise.
1253         * modules/unicase/u8-casecoll: Likewise.
1254         * modules/unicase/u8-casefold: Likewise.
1255         * modules/unicase/u8-casexfrm: Likewise.
1256         * modules/unicase/u8-ct-casefold: Likewise.
1257         * modules/unicase/u8-ct-tolower: Likewise.
1258         * modules/unicase/u8-ct-totitle: Likewise.
1259         * modules/unicase/u8-ct-toupper: Likewise.
1260         * modules/unicase/u8-is-cased: Likewise.
1261         * modules/unicase/u8-is-casefolded: Likewise.
1262         * modules/unicase/u8-is-lowercase: Likewise.
1263         * modules/unicase/u8-is-titlecase: Likewise.
1264         * modules/unicase/u8-is-uppercase: Likewise.
1265         * modules/unicase/u8-prefix-context: Likewise.
1266         * modules/unicase/u8-suffix-context: Likewise.
1267         * modules/unicase/u8-tolower: Likewise.
1268         * modules/unicase/u8-totitle: Likewise.
1269         * modules/unicase/u8-toupper: Likewise.
1270         * modules/unicase/u16-casecmp: Likewise.
1271         * modules/unicase/u16-casecoll: Likewise.
1272         * modules/unicase/u16-casefold: Likewise.
1273         * modules/unicase/u16-casexfrm: Likewise.
1274         * modules/unicase/u16-ct-casefold: Likewise.
1275         * modules/unicase/u16-ct-tolower: Likewise.
1276         * modules/unicase/u16-ct-totitle: Likewise.
1277         * modules/unicase/u16-ct-toupper: Likewise.
1278         * modules/unicase/u16-is-cased: Likewise.
1279         * modules/unicase/u16-is-casefolded: Likewise.
1280         * modules/unicase/u16-is-lowercase: Likewise.
1281         * modules/unicase/u16-is-titlecase: Likewise.
1282         * modules/unicase/u16-is-uppercase: Likewise.
1283         * modules/unicase/u16-prefix-context: Likewise.
1284         * modules/unicase/u16-suffix-context: Likewise.
1285         * modules/unicase/u16-tolower: Likewise.
1286         * modules/unicase/u16-totitle: Likewise.
1287         * modules/unicase/u16-toupper: Likewise.
1288         * modules/unicase/u32-casecmp: Likewise.
1289         * modules/unicase/u32-casecoll: Likewise.
1290         * modules/unicase/u32-casefold: Likewise.
1291         * modules/unicase/u32-casexfrm: Likewise.
1292         * modules/unicase/u32-ct-casefold: Likewise.
1293         * modules/unicase/u32-ct-tolower: Likewise.
1294         * modules/unicase/u32-ct-totitle: Likewise.
1295         * modules/unicase/u32-ct-toupper: Likewise.
1296         * modules/unicase/u32-is-cased: Likewise.
1297         * modules/unicase/u32-is-casefolded: Likewise.
1298         * modules/unicase/u32-is-lowercase: Likewise.
1299         * modules/unicase/u32-is-titlecase: Likewise.
1300         * modules/unicase/u32-is-uppercase: Likewise.
1301         * modules/unicase/u32-prefix-context: Likewise.
1302         * modules/unicase/u32-suffix-context: Likewise.
1303         * modules/unicase/u32-tolower: Likewise.
1304         * modules/unicase/u32-totitle: Likewise.
1305         * modules/unicase/u32-toupper: Likewise.
1306         * modules/unicase/ulc-casecmp: Likewise.
1307         * modules/unicase/ulc-casecoll: Likewise.
1308         * modules/unicase/ulc-casexfrm: Likewise.
1309         * modules/uniconv/u8-conv-from-enc: Likewise.
1310         * modules/uniconv/u8-conv-to-enc: Likewise.
1311         * modules/uniconv/u8-strconv-from-enc: Likewise.
1312         * modules/uniconv/u8-strconv-from-locale: Likewise.
1313         * modules/uniconv/u8-strconv-to-enc: Likewise.
1314         * modules/uniconv/u8-strconv-to-locale: Likewise.
1315         * modules/uniconv/u16-conv-from-enc: Likewise.
1316         * modules/uniconv/u16-conv-to-enc: Likewise.
1317         * modules/uniconv/u16-strconv-from-enc: Likewise.
1318         * modules/uniconv/u16-strconv-from-locale: Likewise.
1319         * modules/uniconv/u16-strconv-to-enc: Likewise.
1320         * modules/uniconv/u16-strconv-to-locale: Likewise.
1321         * modules/uniconv/u32-conv-from-enc: Likewise.
1322         * modules/uniconv/u32-conv-to-enc: Likewise.
1323         * modules/uniconv/u32-strconv-from-enc: Likewise.
1324         * modules/uniconv/u32-strconv-from-locale: Likewise.
1325         * modules/uniconv/u32-strconv-to-enc: Likewise.
1326         * modules/uniconv/u32-strconv-to-locale: Likewise.
1327         * modules/unictype/bidicategory-byname: Likewise.
1328         * modules/unictype/bidicategory-name: Likewise.
1329         * modules/unictype/bidicategory-of: Likewise.
1330         * modules/unictype/bidicategory-test: Likewise.
1331         * modules/unictype/block-list: Likewise.
1332         * modules/unictype/block-test: Likewise.
1333         * modules/unictype/category-C: Likewise.
1334         * modules/unictype/category-Cc: Likewise.
1335         * modules/unictype/category-Cf: Likewise.
1336         * modules/unictype/category-Cn: Likewise.
1337         * modules/unictype/category-Co: Likewise.
1338         * modules/unictype/category-Cs: Likewise.
1339         * modules/unictype/category-L: Likewise.
1340         * modules/unictype/category-Ll: Likewise.
1341         * modules/unictype/category-Lm: Likewise.
1342         * modules/unictype/category-Lo: Likewise.
1343         * modules/unictype/category-Lt: Likewise.
1344         * modules/unictype/category-Lu: Likewise.
1345         * modules/unictype/category-M: Likewise.
1346         * modules/unictype/category-Mc: Likewise.
1347         * modules/unictype/category-Me: Likewise.
1348         * modules/unictype/category-Mn: Likewise.
1349         * modules/unictype/category-N: Likewise.
1350         * modules/unictype/category-Nd: Likewise.
1351         * modules/unictype/category-Nl: Likewise.
1352         * modules/unictype/category-No: Likewise.
1353         * modules/unictype/category-P: Likewise.
1354         * modules/unictype/category-Pc: Likewise.
1355         * modules/unictype/category-Pd: Likewise.
1356         * modules/unictype/category-Pe: Likewise.
1357         * modules/unictype/category-Pf: Likewise.
1358         * modules/unictype/category-Pi: Likewise.
1359         * modules/unictype/category-Po: Likewise.
1360         * modules/unictype/category-Ps: Likewise.
1361         * modules/unictype/category-S: Likewise.
1362         * modules/unictype/category-Sc: Likewise.
1363         * modules/unictype/category-Sk: Likewise.
1364         * modules/unictype/category-Sm: Likewise.
1365         * modules/unictype/category-So: Likewise.
1366         * modules/unictype/category-Z: Likewise.
1367         * modules/unictype/category-Zl: Likewise.
1368         * modules/unictype/category-Zp: Likewise.
1369         * modules/unictype/category-Zs: Likewise.
1370         * modules/unictype/category-and: Likewise.
1371         * modules/unictype/category-and-not: Likewise.
1372         * modules/unictype/category-byname: Likewise.
1373         * modules/unictype/category-name: Likewise.
1374         * modules/unictype/category-none: Likewise.
1375         * modules/unictype/category-of: Likewise.
1376         * modules/unictype/category-or: Likewise.
1377         * modules/unictype/category-test: Likewise.
1378         * modules/unictype/combining-class: Likewise.
1379         * modules/unictype/ctype-alnum: Likewise.
1380         * modules/unictype/ctype-alpha: Likewise.
1381         * modules/unictype/ctype-blank: Likewise.
1382         * modules/unictype/ctype-cntrl: Likewise.
1383         * modules/unictype/ctype-digit: Likewise.
1384         * modules/unictype/ctype-graph: Likewise.
1385         * modules/unictype/ctype-lower: Likewise.
1386         * modules/unictype/ctype-print: Likewise.
1387         * modules/unictype/ctype-punct: Likewise.
1388         * modules/unictype/ctype-space: Likewise.
1389         * modules/unictype/ctype-upper: Likewise.
1390         * modules/unictype/ctype-xdigit: Likewise.
1391         * modules/unictype/decimal-digit: Likewise.
1392         * modules/unictype/digit: Likewise.
1393         * modules/unictype/mirror: Likewise.
1394         * modules/unictype/numeric: Likewise.
1395         * modules/unictype/property-alphabetic: Likewise.
1396         * modules/unictype/property-ascii-hex-digit: Likewise.
1397         * modules/unictype/property-bidi-arabic-digit: Likewise.
1398         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1399         * modules/unictype/property-bidi-block-separator: Likewise.
1400         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1401         * modules/unictype/property-bidi-common-separator: Likewise.
1402         * modules/unictype/property-bidi-control: Likewise.
1403         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1404         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1405         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1406         * modules/unictype/property-bidi-european-digit: Likewise.
1407         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1408         * modules/unictype/property-bidi-left-to-right: Likewise.
1409         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1410         * modules/unictype/property-bidi-other-neutral: Likewise.
1411         * modules/unictype/property-bidi-pdf: Likewise.
1412         * modules/unictype/property-bidi-segment-separator: Likewise.
1413         * modules/unictype/property-bidi-whitespace: Likewise.
1414         * modules/unictype/property-byname: Likewise.
1415         * modules/unictype/property-combining: Likewise.
1416         * modules/unictype/property-composite: Likewise.
1417         * modules/unictype/property-currency-symbol: Likewise.
1418         * modules/unictype/property-dash: Likewise.
1419         * modules/unictype/property-decimal-digit: Likewise.
1420         * modules/unictype/property-default-ignorable-code-point: Likewise.
1421         * modules/unictype/property-deprecated: Likewise.
1422         * modules/unictype/property-diacritic: Likewise.
1423         * modules/unictype/property-extender: Likewise.
1424         * modules/unictype/property-format-control: Likewise.
1425         * modules/unictype/property-grapheme-base: Likewise.
1426         * modules/unictype/property-grapheme-extend: Likewise.
1427         * modules/unictype/property-grapheme-link: Likewise.
1428         * modules/unictype/property-hex-digit: Likewise.
1429         * modules/unictype/property-hyphen: Likewise.
1430         * modules/unictype/property-id-continue: Likewise.
1431         * modules/unictype/property-id-start: Likewise.
1432         * modules/unictype/property-ideographic: Likewise.
1433         * modules/unictype/property-ids-binary-operator: Likewise.
1434         * modules/unictype/property-ids-trinary-operator: Likewise.
1435         * modules/unictype/property-ignorable-control: Likewise.
1436         * modules/unictype/property-iso-control: Likewise.
1437         * modules/unictype/property-join-control: Likewise.
1438         * modules/unictype/property-left-of-pair: Likewise.
1439         * modules/unictype/property-line-separator: Likewise.
1440         * modules/unictype/property-logical-order-exception: Likewise.
1441         * modules/unictype/property-lowercase: Likewise.
1442         * modules/unictype/property-math: Likewise.
1443         * modules/unictype/property-non-break: Likewise.
1444         * modules/unictype/property-not-a-character: Likewise.
1445         * modules/unictype/property-numeric: Likewise.
1446         * modules/unictype/property-other-alphabetic: Likewise.
1447         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1448         * modules/unictype/property-other-grapheme-extend: Likewise.
1449         * modules/unictype/property-other-id-continue: Likewise.
1450         * modules/unictype/property-other-id-start: Likewise.
1451         * modules/unictype/property-other-lowercase: Likewise.
1452         * modules/unictype/property-other-math: Likewise.
1453         * modules/unictype/property-other-uppercase: Likewise.
1454         * modules/unictype/property-paired-punctuation: Likewise.
1455         * modules/unictype/property-paragraph-separator: Likewise.
1456         * modules/unictype/property-pattern-syntax: Likewise.
1457         * modules/unictype/property-pattern-white-space: Likewise.
1458         * modules/unictype/property-private-use: Likewise.
1459         * modules/unictype/property-punctuation: Likewise.
1460         * modules/unictype/property-quotation-mark: Likewise.
1461         * modules/unictype/property-radical: Likewise.
1462         * modules/unictype/property-sentence-terminal: Likewise.
1463         * modules/unictype/property-soft-dotted: Likewise.
1464         * modules/unictype/property-space: Likewise.
1465         * modules/unictype/property-terminal-punctuation: Likewise.
1466         * modules/unictype/property-test: Likewise.
1467         * modules/unictype/property-titlecase: Likewise.
1468         * modules/unictype/property-unassigned-code-value: Likewise.
1469         * modules/unictype/property-unified-ideograph: Likewise.
1470         * modules/unictype/property-uppercase: Likewise.
1471         * modules/unictype/property-variation-selector: Likewise.
1472         * modules/unictype/property-white-space: Likewise.
1473         * modules/unictype/property-xid-continue: Likewise.
1474         * modules/unictype/property-xid-start: Likewise.
1475         * modules/unictype/property-zero-width: Likewise.
1476         * modules/unictype/scripts: Likewise.
1477         * modules/unictype/syntax-c-ident: Likewise.
1478         * modules/unictype/syntax-c-whitespace: Likewise.
1479         * modules/unictype/syntax-java-ident: Likewise.
1480         * modules/unictype/syntax-java-whitespace: Likewise.
1481         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1482         * modules/unilbrk/u8-width-linebreaks: Likewise.
1483         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1484         * modules/unilbrk/u16-width-linebreaks: Likewise.
1485         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1486         * modules/unilbrk/u32-width-linebreaks: Likewise.
1487         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1488         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1489         * modules/uniname/uniname: Likewise.
1490         * modules/uninorm/canonical-decomposition: Likewise.
1491         * modules/uninorm/composition: Likewise.
1492         * modules/uninorm/decomposing-form: Likewise.
1493         * modules/uninorm/decomposition: Likewise.
1494         * modules/uninorm/filter: Likewise.
1495         * modules/uninorm/nfc: Likewise.
1496         * modules/uninorm/nfd: Likewise.
1497         * modules/uninorm/nfkc: Likewise.
1498         * modules/uninorm/nfkd: Likewise.
1499         * modules/uninorm/u8-normalize: Likewise.
1500         * modules/uninorm/u8-normcmp: Likewise.
1501         * modules/uninorm/u8-normcoll: Likewise.
1502         * modules/uninorm/u8-normxfrm: Likewise.
1503         * modules/uninorm/u16-normalize: Likewise.
1504         * modules/uninorm/u16-normcmp: Likewise.
1505         * modules/uninorm/u16-normcoll: Likewise.
1506         * modules/uninorm/u16-normxfrm: Likewise.
1507         * modules/uninorm/u32-normalize: Likewise.
1508         * modules/uninorm/u32-normcmp: Likewise.
1509         * modules/uninorm/u32-normcoll: Likewise.
1510         * modules/uninorm/u32-normxfrm: Likewise.
1511         * modules/unistdio/u8-asnprintf: Likewise.
1512         * modules/unistdio/u8-asprintf: Likewise.
1513         * modules/unistdio/u8-snprintf: Likewise.
1514         * modules/unistdio/u8-sprintf: Likewise.
1515         * modules/unistdio/u8-u8-asnprintf: Likewise.
1516         * modules/unistdio/u8-u8-asprintf: Likewise.
1517         * modules/unistdio/u8-u8-snprintf: Likewise.
1518         * modules/unistdio/u8-u8-sprintf: Likewise.
1519         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1520         * modules/unistdio/u8-u8-vasprintf: Likewise.
1521         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1522         * modules/unistdio/u8-u8-vsprintf: Likewise.
1523         * modules/unistdio/u8-vasnprintf: Likewise.
1524         * modules/unistdio/u8-vasprintf: Likewise.
1525         * modules/unistdio/u8-vsnprintf: Likewise.
1526         * modules/unistdio/u8-vsprintf: Likewise.
1527         * modules/unistdio/u16-asnprintf: Likewise.
1528         * modules/unistdio/u16-asprintf: Likewise.
1529         * modules/unistdio/u16-snprintf: Likewise.
1530         * modules/unistdio/u16-sprintf: Likewise.
1531         * modules/unistdio/u16-u16-asnprintf: Likewise.
1532         * modules/unistdio/u16-u16-asprintf: Likewise.
1533         * modules/unistdio/u16-u16-snprintf: Likewise.
1534         * modules/unistdio/u16-u16-sprintf: Likewise.
1535         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1536         * modules/unistdio/u16-u16-vasprintf: Likewise.
1537         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1538         * modules/unistdio/u16-u16-vsprintf: Likewise.
1539         * modules/unistdio/u16-vasnprintf: Likewise.
1540         * modules/unistdio/u16-vasprintf: Likewise.
1541         * modules/unistdio/u16-vsnprintf: Likewise.
1542         * modules/unistdio/u16-vsprintf: Likewise.
1543         * modules/unistdio/u32-asnprintf: Likewise.
1544         * modules/unistdio/u32-asprintf: Likewise.
1545         * modules/unistdio/u32-snprintf: Likewise.
1546         * modules/unistdio/u32-sprintf: Likewise.
1547         * modules/unistdio/u32-u32-asnprintf: Likewise.
1548         * modules/unistdio/u32-u32-asprintf: Likewise.
1549         * modules/unistdio/u32-u32-snprintf: Likewise.
1550         * modules/unistdio/u32-u32-sprintf: Likewise.
1551         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1552         * modules/unistdio/u32-u32-vasprintf: Likewise.
1553         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1554         * modules/unistdio/u32-u32-vsprintf: Likewise.
1555         * modules/unistdio/u32-vasnprintf: Likewise.
1556         * modules/unistdio/u32-vasprintf: Likewise.
1557         * modules/unistdio/u32-vsnprintf: Likewise.
1558         * modules/unistdio/u32-vsprintf: Likewise.
1559         * modules/unistdio/ulc-asnprintf: Likewise.
1560         * modules/unistdio/ulc-asprintf: Likewise.
1561         * modules/unistdio/ulc-fprintf: Likewise.
1562         * modules/unistdio/ulc-snprintf: Likewise.
1563         * modules/unistdio/ulc-sprintf: Likewise.
1564         * modules/unistdio/ulc-vasnprintf: Likewise.
1565         * modules/unistdio/ulc-vasprintf: Likewise.
1566         * modules/unistdio/ulc-vfprintf: Likewise.
1567         * modules/unistdio/ulc-vsnprintf: Likewise.
1568         * modules/unistdio/ulc-vsprintf: Likewise.
1569         * modules/unistr/u8-check: Likewise.
1570         * modules/unistr/u8-chr: Likewise.
1571         * modules/unistr/u8-cmp: Likewise.
1572         * modules/unistr/u8-cmp2: Likewise.
1573         * modules/unistr/u8-cpy: Likewise.
1574         * modules/unistr/u8-cpy-alloc: Likewise.
1575         * modules/unistr/u8-endswith: Likewise.
1576         * modules/unistr/u8-mblen: Likewise.
1577         * modules/unistr/u8-mbsnlen: Likewise.
1578         * modules/unistr/u8-mbtouc: Likewise.
1579         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1580         * modules/unistr/u8-mbtoucr: Likewise.
1581         * modules/unistr/u8-move: Likewise.
1582         * modules/unistr/u8-next: Likewise.
1583         * modules/unistr/u8-prev: Likewise.
1584         * modules/unistr/u8-set: Likewise.
1585         * modules/unistr/u8-startswith: Likewise.
1586         * modules/unistr/u8-stpcpy: Likewise.
1587         * modules/unistr/u8-stpncpy: Likewise.
1588         * modules/unistr/u8-strcat: Likewise.
1589         * modules/unistr/u8-strchr: Likewise.
1590         * modules/unistr/u8-strcmp: Likewise.
1591         * modules/unistr/u8-strcoll: Likewise.
1592         * modules/unistr/u8-strcpy: Likewise.
1593         * modules/unistr/u8-strcspn: Likewise.
1594         * modules/unistr/u8-strdup: Likewise.
1595         * modules/unistr/u8-strlen: Likewise.
1596         * modules/unistr/u8-strmblen: Likewise.
1597         * modules/unistr/u8-strmbtouc: Likewise.
1598         * modules/unistr/u8-strncat: Likewise.
1599         * modules/unistr/u8-strncmp: Likewise.
1600         * modules/unistr/u8-strncpy: Likewise.
1601         * modules/unistr/u8-strnlen: Likewise.
1602         * modules/unistr/u8-strpbrk: Likewise.
1603         * modules/unistr/u8-strrchr: Likewise.
1604         * modules/unistr/u8-strspn: Likewise.
1605         * modules/unistr/u8-strstr: Likewise.
1606         * modules/unistr/u8-strtok: Likewise.
1607         * modules/unistr/u8-to-u16: Likewise.
1608         * modules/unistr/u8-to-u32: Likewise.
1609         * modules/unistr/u8-uctomb: Likewise.
1610         * modules/unistr/u16-check: Likewise.
1611         * modules/unistr/u16-chr: Likewise.
1612         * modules/unistr/u16-cmp: Likewise.
1613         * modules/unistr/u16-cmp2: Likewise.
1614         * modules/unistr/u16-cpy: Likewise.
1615         * modules/unistr/u16-cpy-alloc: Likewise.
1616         * modules/unistr/u16-endswith: Likewise.
1617         * modules/unistr/u16-mblen: Likewise.
1618         * modules/unistr/u16-mbsnlen: Likewise.
1619         * modules/unistr/u16-mbtouc: Likewise.
1620         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1621         * modules/unistr/u16-mbtoucr: Likewise.
1622         * modules/unistr/u16-move: Likewise.
1623         * modules/unistr/u16-next: Likewise.
1624         * modules/unistr/u16-prev: Likewise.
1625         * modules/unistr/u16-set: Likewise.
1626         * modules/unistr/u16-startswith: Likewise.
1627         * modules/unistr/u16-stpcpy: Likewise.
1628         * modules/unistr/u16-stpncpy: Likewise.
1629         * modules/unistr/u16-strcat: Likewise.
1630         * modules/unistr/u16-strchr: Likewise.
1631         * modules/unistr/u16-strcmp: Likewise.
1632         * modules/unistr/u16-strcoll: Likewise.
1633         * modules/unistr/u16-strcpy: Likewise.
1634         * modules/unistr/u16-strcspn: Likewise.
1635         * modules/unistr/u16-strdup: Likewise.
1636         * modules/unistr/u16-strlen: Likewise.
1637         * modules/unistr/u16-strmblen: Likewise.
1638         * modules/unistr/u16-strmbtouc: Likewise.
1639         * modules/unistr/u16-strncat: Likewise.
1640         * modules/unistr/u16-strncmp: Likewise.
1641         * modules/unistr/u16-strncpy: Likewise.
1642         * modules/unistr/u16-strnlen: Likewise.
1643         * modules/unistr/u16-strpbrk: Likewise.
1644         * modules/unistr/u16-strrchr: Likewise.
1645         * modules/unistr/u16-strspn: Likewise.
1646         * modules/unistr/u16-strstr: Likewise.
1647         * modules/unistr/u16-strtok: Likewise.
1648         * modules/unistr/u16-to-u32: Likewise.
1649         * modules/unistr/u16-to-u8: Likewise.
1650         * modules/unistr/u16-uctomb: Likewise.
1651         * modules/unistr/u32-check: Likewise.
1652         * modules/unistr/u32-chr: Likewise.
1653         * modules/unistr/u32-cmp: Likewise.
1654         * modules/unistr/u32-cmp2: Likewise.
1655         * modules/unistr/u32-cpy: Likewise.
1656         * modules/unistr/u32-cpy-alloc: Likewise.
1657         * modules/unistr/u32-endswith: Likewise.
1658         * modules/unistr/u32-mblen: Likewise.
1659         * modules/unistr/u32-mbsnlen: Likewise.
1660         * modules/unistr/u32-mbtouc: Likewise.
1661         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1662         * modules/unistr/u32-mbtoucr: Likewise.
1663         * modules/unistr/u32-move: Likewise.
1664         * modules/unistr/u32-next: Likewise.
1665         * modules/unistr/u32-prev: Likewise.
1666         * modules/unistr/u32-set: Likewise.
1667         * modules/unistr/u32-startswith: Likewise.
1668         * modules/unistr/u32-stpcpy: Likewise.
1669         * modules/unistr/u32-stpncpy: Likewise.
1670         * modules/unistr/u32-strcat: Likewise.
1671         * modules/unistr/u32-strchr: Likewise.
1672         * modules/unistr/u32-strcmp: Likewise.
1673         * modules/unistr/u32-strcoll: Likewise.
1674         * modules/unistr/u32-strcpy: Likewise.
1675         * modules/unistr/u32-strcspn: Likewise.
1676         * modules/unistr/u32-strdup: Likewise.
1677         * modules/unistr/u32-strlen: Likewise.
1678         * modules/unistr/u32-strmblen: Likewise.
1679         * modules/unistr/u32-strmbtouc: Likewise.
1680         * modules/unistr/u32-strncat: Likewise.
1681         * modules/unistr/u32-strncmp: Likewise.
1682         * modules/unistr/u32-strncpy: Likewise.
1683         * modules/unistr/u32-strnlen: Likewise.
1684         * modules/unistr/u32-strpbrk: Likewise.
1685         * modules/unistr/u32-strrchr: Likewise.
1686         * modules/unistr/u32-strspn: Likewise.
1687         * modules/unistr/u32-strstr: Likewise.
1688         * modules/unistr/u32-strtok: Likewise.
1689         * modules/unistr/u32-to-u16: Likewise.
1690         * modules/unistr/u32-to-u8: Likewise.
1691         * modules/unistr/u32-uctomb: Likewise.
1692         * modules/uniwbrk/u8-wordbreaks: Likewise.
1693         * modules/uniwbrk/u16-wordbreaks: Likewise.
1694         * modules/uniwbrk/u32-wordbreaks: Likewise.
1695         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1696         * modules/uniwbrk/wordbreak-property: Likewise.
1697         * modules/uniwidth/u8-strwidth: Likewise.
1698         * modules/uniwidth/u8-width: Likewise.
1699         * modules/uniwidth/u16-strwidth: Likewise.
1700         * modules/uniwidth/u16-width: Likewise.
1701         * modules/uniwidth/u32-strwidth: Likewise.
1702         * modules/uniwidth/u32-width: Likewise.
1703         * modules/uniwidth/width: Likewise.
1704         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1705         with $(LIBUNISTRING).
1706         * modules/unicase/ignorable-tests: Likewise.
1707         * modules/unicase/locale-language-tests: Likewise.
1708         * modules/unicase/tolower-tests: Likewise.
1709         * modules/unicase/totitle-tests: Likewise.
1710         * modules/unicase/toupper-tests: Likewise.
1711         * modules/unicase/u8-casecmp-tests: Likewise.
1712         * modules/unicase/u8-casecoll-tests: Likewise.
1713         * modules/unicase/u8-casefold-tests: Likewise.
1714         * modules/unicase/u8-is-cased-tests: Likewise.
1715         * modules/unicase/u8-is-casefolded-tests: Likewise.
1716         * modules/unicase/u8-is-lowercase-tests: Likewise.
1717         * modules/unicase/u8-is-titlecase-tests: Likewise.
1718         * modules/unicase/u8-is-uppercase-tests: Likewise.
1719         * modules/unicase/u8-tolower-tests: Likewise.
1720         * modules/unicase/u8-totitle-tests: Likewise.
1721         * modules/unicase/u8-toupper-tests: Likewise.
1722         * modules/unicase/u16-casecmp-tests: Likewise.
1723         * modules/unicase/u16-casecoll-tests: Likewise.
1724         * modules/unicase/u16-casefold-tests: Likewise.
1725         * modules/unicase/u16-is-cased-tests: Likewise.
1726         * modules/unicase/u16-is-casefolded-tests: Likewise.
1727         * modules/unicase/u16-is-lowercase-tests: Likewise.
1728         * modules/unicase/u16-is-titlecase-tests: Likewise.
1729         * modules/unicase/u16-is-uppercase-tests: Likewise.
1730         * modules/unicase/u16-tolower-tests: Likewise.
1731         * modules/unicase/u16-totitle-tests: Likewise.
1732         * modules/unicase/u16-toupper-tests: Likewise.
1733         * modules/unicase/u32-casecmp-tests: Likewise.
1734         * modules/unicase/u32-casecoll-tests: Likewise.
1735         * modules/unicase/u32-casefold-tests: Likewise.
1736         * modules/unicase/u32-is-cased-tests: Likewise.
1737         * modules/unicase/u32-is-casefolded-tests: Likewise.
1738         * modules/unicase/u32-is-lowercase-tests: Likewise.
1739         * modules/unicase/u32-is-titlecase-tests: Likewise.
1740         * modules/unicase/u32-is-uppercase-tests: Likewise.
1741         * modules/unicase/u32-tolower-tests: Likewise.
1742         * modules/unicase/u32-totitle-tests: Likewise.
1743         * modules/unicase/u32-toupper-tests: Likewise.
1744         * modules/unicase/ulc-casecmp-tests: Likewise.
1745         * modules/unicase/ulc-casecoll-tests: Likewise.
1746         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1747         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1748         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1749         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1750         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1751         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1752         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1753         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1754         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1755         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1756         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1757         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1758         * modules/unictype/bidicategory-byname-tests: Likewise.
1759         * modules/unictype/bidicategory-name-tests: Likewise.
1760         * modules/unictype/bidicategory-of-tests: Likewise.
1761         * modules/unictype/bidicategory-test-tests: Likewise.
1762         * modules/unictype/block-list-tests: Likewise.
1763         * modules/unictype/block-of-tests: Likewise.
1764         * modules/unictype/block-test-tests: Likewise.
1765         * modules/unictype/category-C-tests: Likewise.
1766         * modules/unictype/category-Cc-tests: Likewise.
1767         * modules/unictype/category-Cf-tests: Likewise.
1768         * modules/unictype/category-Cn-tests: Likewise.
1769         * modules/unictype/category-Co-tests: Likewise.
1770         * modules/unictype/category-Cs-tests: Likewise.
1771         * modules/unictype/category-L-tests: Likewise.
1772         * modules/unictype/category-Ll-tests: Likewise.
1773         * modules/unictype/category-Lm-tests: Likewise.
1774         * modules/unictype/category-Lo-tests: Likewise.
1775         * modules/unictype/category-Lt-tests: Likewise.
1776         * modules/unictype/category-Lu-tests: Likewise.
1777         * modules/unictype/category-M-tests: Likewise.
1778         * modules/unictype/category-Mc-tests: Likewise.
1779         * modules/unictype/category-Me-tests: Likewise.
1780         * modules/unictype/category-Mn-tests: Likewise.
1781         * modules/unictype/category-N-tests: Likewise.
1782         * modules/unictype/category-Nd-tests: Likewise.
1783         * modules/unictype/category-Nl-tests: Likewise.
1784         * modules/unictype/category-No-tests: Likewise.
1785         * modules/unictype/category-P-tests: Likewise.
1786         * modules/unictype/category-Pc-tests: Likewise.
1787         * modules/unictype/category-Pd-tests: Likewise.
1788         * modules/unictype/category-Pe-tests: Likewise.
1789         * modules/unictype/category-Pf-tests: Likewise.
1790         * modules/unictype/category-Pi-tests: Likewise.
1791         * modules/unictype/category-Po-tests: Likewise.
1792         * modules/unictype/category-Ps-tests: Likewise.
1793         * modules/unictype/category-S-tests: Likewise.
1794         * modules/unictype/category-Sc-tests: Likewise.
1795         * modules/unictype/category-Sk-tests: Likewise.
1796         * modules/unictype/category-Sm-tests: Likewise.
1797         * modules/unictype/category-So-tests: Likewise.
1798         * modules/unictype/category-Z-tests: Likewise.
1799         * modules/unictype/category-Zl-tests: Likewise.
1800         * modules/unictype/category-Zp-tests: Likewise.
1801         * modules/unictype/category-Zs-tests: Likewise.
1802         * modules/unictype/category-and-not-tests: Likewise.
1803         * modules/unictype/category-and-tests: Likewise.
1804         * modules/unictype/category-byname-tests: Likewise.
1805         * modules/unictype/category-name-tests: Likewise.
1806         * modules/unictype/category-none-tests: Likewise.
1807         * modules/unictype/category-of-tests: Likewise.
1808         * modules/unictype/category-or-tests: Likewise.
1809         * modules/unictype/category-test-withtable-tests: Likewise.
1810         * modules/unictype/combining-class-tests: Likewise.
1811         * modules/unictype/ctype-alnum-tests: Likewise.
1812         * modules/unictype/ctype-alpha-tests: Likewise.
1813         * modules/unictype/ctype-blank-tests: Likewise.
1814         * modules/unictype/ctype-cntrl-tests: Likewise.
1815         * modules/unictype/ctype-digit-tests: Likewise.
1816         * modules/unictype/ctype-graph-tests: Likewise.
1817         * modules/unictype/ctype-lower-tests: Likewise.
1818         * modules/unictype/ctype-print-tests: Likewise.
1819         * modules/unictype/ctype-punct-tests: Likewise.
1820         * modules/unictype/ctype-space-tests: Likewise.
1821         * modules/unictype/ctype-upper-tests: Likewise.
1822         * modules/unictype/ctype-xdigit-tests: Likewise.
1823         * modules/unictype/decimal-digit-tests: Likewise.
1824         * modules/unictype/digit-tests: Likewise.
1825         * modules/unictype/mirror-tests: Likewise.
1826         * modules/unictype/numeric-tests: Likewise.
1827         * modules/unictype/property-alphabetic-tests: Likewise.
1828         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1829         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1830         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1831         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1832         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1833         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1834         * modules/unictype/property-bidi-control-tests: Likewise.
1835         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1836         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1837         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1838         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1839         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1840         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1841         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1842         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1843         * modules/unictype/property-bidi-pdf-tests: Likewise.
1844         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1845         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1846         * modules/unictype/property-byname-tests: Likewise.
1847         * modules/unictype/property-combining-tests: Likewise.
1848         * modules/unictype/property-composite-tests: Likewise.
1849         * modules/unictype/property-currency-symbol-tests: Likewise.
1850         * modules/unictype/property-dash-tests: Likewise.
1851         * modules/unictype/property-decimal-digit-tests: Likewise.
1852         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1853         * modules/unictype/property-deprecated-tests: Likewise.
1854         * modules/unictype/property-diacritic-tests: Likewise.
1855         * modules/unictype/property-extender-tests: Likewise.
1856         * modules/unictype/property-format-control-tests: Likewise.
1857         * modules/unictype/property-grapheme-base-tests: Likewise.
1858         * modules/unictype/property-grapheme-extend-tests: Likewise.
1859         * modules/unictype/property-grapheme-link-tests: Likewise.
1860         * modules/unictype/property-hex-digit-tests: Likewise.
1861         * modules/unictype/property-hyphen-tests: Likewise.
1862         * modules/unictype/property-id-continue-tests: Likewise.
1863         * modules/unictype/property-id-start-tests: Likewise.
1864         * modules/unictype/property-ideographic-tests: Likewise.
1865         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1866         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1867         * modules/unictype/property-ignorable-control-tests: Likewise.
1868         * modules/unictype/property-iso-control-tests: Likewise.
1869         * modules/unictype/property-join-control-tests: Likewise.
1870         * modules/unictype/property-left-of-pair-tests: Likewise.
1871         * modules/unictype/property-line-separator-tests: Likewise.
1872         * modules/unictype/property-logical-order-exception-tests: Likewise.
1873         * modules/unictype/property-lowercase-tests: Likewise.
1874         * modules/unictype/property-math-tests: Likewise.
1875         * modules/unictype/property-non-break-tests: Likewise.
1876         * modules/unictype/property-not-a-character-tests: Likewise.
1877         * modules/unictype/property-numeric-tests: Likewise.
1878         * modules/unictype/property-other-alphabetic-tests: Likewise.
1879         * modules/unictype/property-other-default-ignorable-code-point-tests:
1880         Likewise.
1881         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1882         * modules/unictype/property-other-id-continue-tests: Likewise.
1883         * modules/unictype/property-other-id-start-tests: Likewise.
1884         * modules/unictype/property-other-lowercase-tests: Likewise.
1885         * modules/unictype/property-other-math-tests: Likewise.
1886         * modules/unictype/property-other-uppercase-tests: Likewise.
1887         * modules/unictype/property-paired-punctuation-tests: Likewise.
1888         * modules/unictype/property-paragraph-separator-tests: Likewise.
1889         * modules/unictype/property-pattern-syntax-tests: Likewise.
1890         * modules/unictype/property-pattern-white-space-tests: Likewise.
1891         * modules/unictype/property-private-use-tests: Likewise.
1892         * modules/unictype/property-punctuation-tests: Likewise.
1893         * modules/unictype/property-quotation-mark-tests: Likewise.
1894         * modules/unictype/property-radical-tests: Likewise.
1895         * modules/unictype/property-sentence-terminal-tests: Likewise.
1896         * modules/unictype/property-soft-dotted-tests: Likewise.
1897         * modules/unictype/property-space-tests: Likewise.
1898         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1899         * modules/unictype/property-test-tests: Likewise.
1900         * modules/unictype/property-titlecase-tests: Likewise.
1901         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1902         * modules/unictype/property-unified-ideograph-tests: Likewise.
1903         * modules/unictype/property-uppercase-tests: Likewise.
1904         * modules/unictype/property-variation-selector-tests: Likewise.
1905         * modules/unictype/property-white-space-tests: Likewise.
1906         * modules/unictype/property-xid-continue-tests: Likewise.
1907         * modules/unictype/property-xid-start-tests: Likewise.
1908         * modules/unictype/property-zero-width-tests: Likewise.
1909         * modules/unictype/scripts-tests: Likewise.
1910         * modules/unictype/syntax-c-ident-tests: Likewise.
1911         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1912         * modules/unictype/syntax-java-ident-tests: Likewise.
1913         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1914         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1915         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1916         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1917         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1918         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1919         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1920         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1921         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1922         * modules/uniname/uniname-tests: Likewise.
1923         * modules/uninorm/canonical-decomposition-tests: Likewise.
1924         * modules/uninorm/compat-decomposition-tests: Likewise.
1925         * modules/uninorm/composition-tests: Likewise.
1926         * modules/uninorm/decomposing-form-tests: Likewise.
1927         * modules/uninorm/decomposition-tests: Likewise.
1928         * modules/uninorm/filter-tests: Likewise.
1929         * modules/uninorm/nfc-tests: Likewise.
1930         * modules/uninorm/nfd-tests: Likewise.
1931         * modules/uninorm/nfkc-tests: Likewise.
1932         * modules/uninorm/nfkd-tests: Likewise.
1933         * modules/uninorm/u8-normcmp-tests: Likewise.
1934         * modules/uninorm/u8-normcoll-tests: Likewise.
1935         * modules/uninorm/u16-normcmp-tests: Likewise.
1936         * modules/uninorm/u16-normcoll-tests: Likewise.
1937         * modules/uninorm/u32-normcmp-tests: Likewise.
1938         * modules/uninorm/u32-normcoll-tests: Likewise.
1939         * modules/unistdio/u8-asnprintf-tests: Likewise.
1940         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1941         * modules/unistdio/u8-vasprintf-tests: Likewise.
1942         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1943         * modules/unistdio/u8-vsprintf-tests: Likewise.
1944         * modules/unistdio/u16-asnprintf-tests: Likewise.
1945         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1946         * modules/unistdio/u16-vasprintf-tests: Likewise.
1947         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1948         * modules/unistdio/u16-vsprintf-tests: Likewise.
1949         * modules/unistdio/u32-asnprintf-tests: Likewise.
1950         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1951         * modules/unistdio/u32-vasprintf-tests: Likewise.
1952         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1953         * modules/unistdio/u32-vsprintf-tests: Likewise.
1954         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1955         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1956         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1957         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1958         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1959         * modules/unistr/u8-check-tests: Likewise.
1960         * modules/unistr/u8-chr-tests: Likewise.
1961         * modules/unistr/u8-cmp-tests: Likewise.
1962         * modules/unistr/u8-cmp2-tests: Likewise.
1963         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1964         * modules/unistr/u8-cpy-tests: Likewise.
1965         * modules/unistr/u8-mblen-tests: Likewise.
1966         * modules/unistr/u8-mbsnlen-tests: Likewise.
1967         * modules/unistr/u8-mbtouc-tests: Likewise.
1968         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1969         * modules/unistr/u8-mbtoucr-tests: Likewise.
1970         * modules/unistr/u8-move-tests: Likewise.
1971         * modules/unistr/u8-next-tests: Likewise.
1972         * modules/unistr/u8-prev-tests: Likewise.
1973         * modules/unistr/u8-set-tests: Likewise.
1974         * modules/unistr/u8-stpcpy-tests: Likewise.
1975         * modules/unistr/u8-stpncpy-tests: Likewise.
1976         * modules/unistr/u8-strcat-tests: Likewise.
1977         * modules/unistr/u8-strcmp-tests: Likewise.
1978         * modules/unistr/u8-strcoll-tests: Likewise.
1979         * modules/unistr/u8-strcpy-tests: Likewise.
1980         * modules/unistr/u8-strdup-tests: Likewise.
1981         * modules/unistr/u8-strlen-tests: Likewise.
1982         * modules/unistr/u8-strmblen-tests: Likewise.
1983         * modules/unistr/u8-strmbtouc-tests: Likewise.
1984         * modules/unistr/u8-strncat-tests: Likewise.
1985         * modules/unistr/u8-strncmp-tests: Likewise.
1986         * modules/unistr/u8-strncpy-tests: Likewise.
1987         * modules/unistr/u8-strnlen-tests: Likewise.
1988         * modules/unistr/u8-to-u16-tests: Likewise.
1989         * modules/unistr/u8-to-u32-tests: Likewise.
1990         * modules/unistr/u8-uctomb-tests: Likewise.
1991         * modules/unistr/u16-check-tests: Likewise.
1992         * modules/unistr/u16-chr-tests: Likewise.
1993         * modules/unistr/u16-cmp-tests: Likewise.
1994         * modules/unistr/u16-cmp2-tests: Likewise.
1995         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1996         * modules/unistr/u16-cpy-tests: Likewise.
1997         * modules/unistr/u16-mblen-tests: Likewise.
1998         * modules/unistr/u16-mbsnlen-tests: Likewise.
1999         * modules/unistr/u16-mbtouc-tests: Likewise.
2000         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2001         * modules/unistr/u16-mbtoucr-tests: Likewise.
2002         * modules/unistr/u16-move-tests: Likewise.
2003         * modules/unistr/u16-next-tests: Likewise.
2004         * modules/unistr/u16-prev-tests: Likewise.
2005         * modules/unistr/u16-set-tests: Likewise.
2006         * modules/unistr/u16-stpcpy-tests: Likewise.
2007         * modules/unistr/u16-stpncpy-tests: Likewise.
2008         * modules/unistr/u16-strcat-tests: Likewise.
2009         * modules/unistr/u16-strcmp-tests: Likewise.
2010         * modules/unistr/u16-strcoll-tests: Likewise.
2011         * modules/unistr/u16-strcpy-tests: Likewise.
2012         * modules/unistr/u16-strdup-tests: Likewise.
2013         * modules/unistr/u16-strlen-tests: Likewise.
2014         * modules/unistr/u16-strmblen-tests: Likewise.
2015         * modules/unistr/u16-strmbtouc-tests: Likewise.
2016         * modules/unistr/u16-strncat-tests: Likewise.
2017         * modules/unistr/u16-strncmp-tests: Likewise.
2018         * modules/unistr/u16-strncpy-tests: Likewise.
2019         * modules/unistr/u16-strnlen-tests: Likewise.
2020         * modules/unistr/u16-to-u32-tests: Likewise.
2021         * modules/unistr/u16-to-u8-tests: Likewise.
2022         * modules/unistr/u16-uctomb-tests: Likewise.
2023         * modules/unistr/u32-check-tests: Likewise.
2024         * modules/unistr/u32-chr-tests: Likewise.
2025         * modules/unistr/u32-cmp-tests: Likewise.
2026         * modules/unistr/u32-cmp2-tests: Likewise.
2027         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2028         * modules/unistr/u32-cpy-tests: Likewise.
2029         * modules/unistr/u32-mblen-tests: Likewise.
2030         * modules/unistr/u32-mbsnlen-tests: Likewise.
2031         * modules/unistr/u32-mbtouc-tests: Likewise.
2032         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2033         * modules/unistr/u32-mbtoucr-tests: Likewise.
2034         * modules/unistr/u32-move-tests: Likewise.
2035         * modules/unistr/u32-next-tests: Likewise.
2036         * modules/unistr/u32-prev-tests: Likewise.
2037         * modules/unistr/u32-set-tests: Likewise.
2038         * modules/unistr/u32-stpcpy-tests: Likewise.
2039         * modules/unistr/u32-stpncpy-tests: Likewise.
2040         * modules/unistr/u32-strcat-tests: Likewise.
2041         * modules/unistr/u32-strcmp-tests: Likewise.
2042         * modules/unistr/u32-strcoll-tests: Likewise.
2043         * modules/unistr/u32-strcpy-tests: Likewise.
2044         * modules/unistr/u32-strdup-tests: Likewise.
2045         * modules/unistr/u32-strlen-tests: Likewise.
2046         * modules/unistr/u32-strmblen-tests: Likewise.
2047         * modules/unistr/u32-strmbtouc-tests: Likewise.
2048         * modules/unistr/u32-strncat-tests: Likewise.
2049         * modules/unistr/u32-strncmp-tests: Likewise.
2050         * modules/unistr/u32-strncpy-tests: Likewise.
2051         * modules/unistr/u32-strnlen-tests: Likewise.
2052         * modules/unistr/u32-to-u16-tests: Likewise.
2053         * modules/unistr/u32-to-u8-tests: Likewise.
2054         * modules/unistr/u32-uctomb-tests: Likewise.
2055         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2056         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2057         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2058         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2059         * modules/uniwidth/u8-strwidth-tests: Likewise.
2060         * modules/uniwidth/u8-width-tests: Likewise.
2061         * modules/uniwidth/u16-strwidth-tests: Likewise.
2062         * modules/uniwidth/u16-width-tests: Likewise.
2063         * modules/uniwidth/u32-strwidth-tests: Likewise.
2064         * modules/uniwidth/u32-width-tests: Likewise.
2065         * modules/uniwidth/width-tests: Likewise.
2066
2067 2010-05-18  Richard Jones  <rjones@redhat.com>
2068
2069         doc: users.txt: list hivex
2070         * users.txt: Add hivex.
2071
2072 2010-05-18  Richard Jones  <rjones@redhat.com>
2073
2074         doc: users.txt: list febootstrap
2075         * users.txt: Add febootstrap.
2076
2077 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2078
2079         bootstrap: fix an error when gnulib is not used as a git submodule
2080         * build-aux/bootstrap (gnulib_path): If its length is zero then
2081         assign "gnulib" to it.
2082         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2083
2084 2010-05-16  Bruno Haible  <bruno@clisp.org>
2085
2086         Avoid autoconf warnings about AM_ICONV.
2087         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2088         2.64.
2089
2090 2010-05-16  Bruno Haible  <bruno@clisp.org>
2091
2092         absolute-header: Make the macro usable in more situations.
2093         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2094         from gl_ABSOLUTE_HEADER.
2095         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2096
2097 2010-05-16  James Youngman  <jay@gnu.org>
2098
2099         doc: update users.txt
2100         * users.txt: Add CSSC.
2101
2102 2010-05-16  Jim Meyering  <meyering@redhat.com>
2103
2104         init.sh: fix an error in the previous change; add more comments
2105         * tests/init.sh: Compare exit code in loop against 9, not 2.
2106         Patch by Bruno Haible.
2107         Make the two tests more similar by adding an empty "then" clause.
2108         Add comments.
2109
2110         init.sh: avoid unnecessary shell re-exec
2111         * tests/init.sh: Improve the re-exec-required check to first test the
2112         current shell.  If it passes the test, do not search for a shell that
2113         does pass, and do not re-exec.  This test is particularly contorted to
2114         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2115         of $(...) evokes a syntax error and causes immediate shell exit with
2116         status 2.  Bruno Haible reported that the re-exec made it impossible
2117         to single-step through any init.sh-using script.
2118
2119 2010-05-16  Bruno Haible  <bruno@clisp.org>
2120
2121         Fix collision between gnulib's and libintl's printf replacements.
2122         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2123         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2124         (printf): When using GNU C, map the __printf__ function to rpl_printf
2125         via __asm__. When not using GNU C, define rpl_printf instead of
2126         __printf__.
2127         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2128         commit.
2129         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2130         commit.
2131         * m4/asm-underscore.m4: New file.
2132         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2133         * modules/stdio (Files): Add m4/asm-underscore.m4.
2134         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2135         Reported by Ben Pfaff.
2136
2137 2010-05-16  Bruno Haible  <bruno@clisp.org>
2138
2139         verify: Avoid skipping the test on openSUSE 11.0.
2140         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2141
2142 2010-05-13  Bruno Haible  <bruno@clisp.org>
2143
2144         Avoid useless warnings from G++.
2145         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2146         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2148
2149 2010-05-11  Jim Meyering  <meyering@redhat.com>
2150
2151         maint.mk: tweak preceding change
2152         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2153         regexps tighter by anchoring at EOL, and make the new group "shy"
2154         for slightly decreased overhead.
2155
2156 2010-05-11  Eric Blake  <eblake@redhat.com>
2157
2158         maint.mk: gnulib doesn't guarantee NSIG
2159         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2160
2161 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2162
2163         test-pwrite.c: Remove unused variable declaration.
2164         * tests/test-pwrite.c (main): Remove read_buf declaration.
2165
2166         Remove useless test-pwrite.sh file.
2167         * tests/test-pwrite.sh: Delete file.
2168         * modules/pwrite-tests: Remove references.
2169         Reported by Bruno Haible.
2170
2171 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2172
2173         init.sh: fix a typo
2174         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2175
2176 2010-05-10  Jim Meyering  <meyering@redhat.com>
2177
2178         maint.mk: avoid using a temporary file in the always-defined-macros check
2179         * top/maint.mk (.re-defmac): Remove rule.
2180         (gl_trap_): Remove definition.
2181         (sc_prohibit_always-defined_macros): Rewrite not to create and
2182         depend on a temporary file.  Instead, depend on GNU grep's ability
2183         to read a list of regular expressions from stdin when given "-f -".
2184
2185 2010-05-09  Bruno Haible  <bruno@clisp.org>
2186
2187         Update to GNU gettext 0.18, part 1.
2188         * m4/gettext.m4: Update to GNU gettext 0.18.
2189         * m4/intl.m4: Likewise.
2190         * m4/po.m4: Likewise.
2191         * modules/gettext (Files): Add m4/fcntl-o.m4.
2192         (configure.ac): Require gettext infrastructure from version 0.18.
2193
2194 2010-05-09  Jim Meyering  <meyering@redhat.com>
2195
2196         init.sh: enable MALLOC_PERTURB_
2197         * tests/init.sh: Enable glibc's malloc-perturbing option.
2198
2199         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2200         With my recent change in init.sh from the two-line form:
2201             -#   : ${srcdir=.}
2202             -#   . "$srcdir/init.sh"; path_prepend_ .
2203             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2204         I noticed that using the one-line form would cause this test
2205         to fail with a false-positive, or to stop working altogether,
2206         depending on whether help-version changed or all the tests did.
2207         * top/maint.mk (_hv_regex): Remove this definition.
2208         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2209         (_hv_regex_strong): Use a stronger regex to check for conformance.
2210         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2211         Give a separate diagnostic for lack of conforming use.
2212
2213         maint.mk: prohibit definition of symbols defined by gnulib
2214         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2215         definition of symbols defined by gnulib.
2216
2217 2010-05-09  Bruno Haible  <bruno@clisp.org>
2218
2219         acl: Avoid test failure on Cygwin-hosted mingw.
2220         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2221
2222 2010-05-09  Bruno Haible  <bruno@clisp.org>
2223
2224         error: Use system's fcntl function.
2225         * lib/error.c (fcntl): Undefine.
2226
2227 2010-05-09  Jim Meyering  <meyering@redhat.com>
2228
2229         verify: adjust formatting to be more consistent
2230         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2231         argument-list '('s, and after one comma.
2232
2233 2010-05-09  Bruno Haible  <bruno@clisp.org>
2234
2235         error: More reliable output on mingw.
2236         * lib/error.c: Include <windows.h>.
2237         (is_open): New function.
2238         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2239         defined.
2240
2241 2010-05-09  Bruno Haible  <bruno@clisp.org>
2242
2243         vasnprintf: Fix syntax errors in libintl build on mingw.
2244         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2245         pad_ourselves and prec_ourselves after use.
2246
2247 2010-05-08  Bruno Haible  <bruno@clisp.org>
2248
2249         * lib/config.charset: Update comments for Cygwin 1.7.
2250         * lib/localcharset.c: Likewise.
2251
2252 2010-05-07  Jim Meyering  <meyering@redhat.com>
2253
2254         init.sh: improve comments
2255         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2256         . "${srcdir=.}/init.sh"; path_prepend_ .
2257         Add a note about path_prepend_ and the alternative of using
2258         TESTS_ENVIRONMENT.
2259
2260 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2261
2262         exclude: Unescape hashed patterns in wildcard mode.
2263         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2264         to the hash list.
2265         * tests/test-exclude8.sh: New test case.
2266         * modules/exclude-tests: Add new test.
2267
2268 2010-05-05  Eric Blake  <eblake@redhat.com>
2269
2270         verify: automate tests
2271         * modules/verify-tests: New module.
2272         * tests/test-verify.sh: New file.
2273         * tests/test-verify.c: Guard each negative test with a unique id.
2274         Also avoid warning about unused left hand of comma expressions.
2275
2276 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2277
2278         Further improvements to verify.h, suggested by Eric Blake.
2279         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2280         the GL_* versions, to avoid collision with OpenGL.
2281         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2282         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2283         than testing merely whether it's defined.
2284
2285         Modify verify.h to pacify gcc -Wredundant_decls.
2286         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2287         These use the prefix "GL_" since they're likely to be useful elsewhere.
2288         We may need to break them out into a different .h file.
2289         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2290         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2291         of verify_function__.
2292
2293 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2294
2295         Tests for module pwrite.
2296         * modules/pwrite-tests: New file.
2297         * tests/test-pwrite.sh: New file.
2298         * tests/test-pwrite.c: New file.
2299
2300         New module pwrite.
2301         * lib/unistd.in.h (pwrite): New declaration.
2302         * lib/pwrite.c: New file, from glibc with modifications.
2303         * m4/pwrite.m4: New file.
2304         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2305         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2306         REPLACE_PWRITE.
2307         * modules/pwrite: New file.
2308         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2309         REPLACE_PWRITE.
2310         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2311         * doc/posix-functions/pwrite.texi: Mention the new module.
2312
2313 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2314
2315         pread: Update documentation.
2316         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2317
2318 2010-05-04  Eric Blake  <eblake@redhat.com>
2319
2320         docs: update cygwin progress
2321         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2322         this bug.
2323         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2324         Added in cygwin 1.7.2.
2325         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2326         Likewise.
2327         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2328         Likewise.
2329         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2330         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2331         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2332         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2333         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2334         Mention nproc module.
2335         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2336         bug in cygwin 1.7.5 addition.
2337         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2338         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2339         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2340         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2341         1.7.5.
2342         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2343         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2344         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2345         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2346         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2347         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2348         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2349         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2350         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2351         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2352         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2353         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2354         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2355         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2356         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2357         Likewise.
2358         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2359         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2360         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2361         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2362         Likewise.
2363         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2364         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2365         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2366         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2367         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2368         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2369         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2370         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2371         Likewise.
2372         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2373         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2374         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2375         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2376         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2377         Likewise.
2378         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2379         Likewise.
2380         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2381         Likewise.
2382         * doc/glibc-functions/xdrrec_endofrecord.texi
2383         (xdrrec_endofrecord): Likewise.
2384         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2385         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2386         Likewise.
2387         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2388         Likewise.
2389
2390 2010-05-04  Jim Meyering  <meyering@redhat.com>
2391
2392         gendocs.sh: make its "-s FILE" option more useful
2393         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2394         $PACKAGE to reflect the probably-different basename of "FILE".
2395
2396 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2397
2398         bootstrap: don't ignore download_po_files failure
2399         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2400         failure.
2401
2402 2010-05-03  Jim Meyering  <meyering@redhat.com>
2403
2404         maint.mk: allow to pass options to gendocs.sh
2405         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2406         (gendocs_options_): New overridable variable.
2407
2408         gnu-web-doc-update: don't ignore configure or build failure
2409         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2410
2411         announce-gen: backslash-escape '@'s in --help output
2412         * build-aux/announce-gen: Fix syntax errors.
2413
2414         maint.mk, announce-gen: allow project-specific announcement mail headers
2415         * top/maint.mk (translation_project_): Define default.
2416         (announcement_Cc_, announcement_mail_headers_): Likewise.
2417         (announcement): Invoke announce-gen with new --mail-headers option.
2418         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2419
2420         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2421         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2422         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2423         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2424         line in the "err2" output file when running "make check" in verbose
2425         mode (i.e., with set -x enabled).
2426
2427 2010-05-03  Bruno Haible  <bruno@clisp.org>
2428
2429         wctob: Fix for weird platforms.
2430         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2431         argument value.
2432
2433 2010-05-03  Jim Meyering  <meyering@redhat.com>
2434
2435         maint.mk: prohibit unwarranted use of <strings.h>
2436         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2437         strings.h in a file that does not also use strcasecmp, strncasecmp,
2438         ffs or ffsll.
2439
2440         maint.mk: remove obsolete comments
2441         * top/maint.mk: Remove stale, commented-out rules.
2442
2443 2010-05-02  Bruno Haible  <bruno@clisp.org>
2444
2445         wcwidth: Declare also when it's aliased.
2446         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2447         macro.
2448
2449 2010-05-02  Bruno Haible  <bruno@clisp.org>
2450
2451         Fix regression from 2010-04-25.
2452         * gnulib-tool (func_modules_transitive_closure): Check the status of
2453         all modules, not only of the tests that are of the form foo-tests where
2454         foo is a module.
2455
2456 2010-05-02  Bruno Haible  <bruno@clisp.org>
2457
2458         wctob: Work around nasty Cygwin 1.7.2 bug.
2459         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2460         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2461
2462 2010-05-01  Bruno Haible  <bruno@clisp.org>
2463
2464         fpurge: Sharper test.
2465         * tests/test-fpurge.c (main): Add one more ftell check.
2466         * modules/fpurge-tests (Depends-on): Add ftell.
2467         Suggested by Eric Blake.
2468
2469 2010-05-01  Bruno Haible  <bruno@clisp.org>
2470
2471         ftello: Another test.
2472         * tests/test-ftello3.c: New file.
2473         * modules/ftello-tests (Files): Add it.
2474         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2475         MOSTLYCLEANFILES.
2476
2477         ftell: Another test.
2478         * tests/test-ftell3.c: New file.
2479         * modules/ftell-tests (Files): Add it.
2480         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2481         MOSTLYCLEANFILES.
2482
2483 2010-05-01  Bruno Haible  <bruno@clisp.org>
2484
2485         ftell, ftello: Work around Solaris bug.
2486         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2487         * lib/ftello.c: Include stdio-impl.h.
2488         (ftello): On Solaris, when _IOWRT is set, compute the result without
2489         looking at _IOREAD.
2490         * modules/ftello (Files): Add lib/stdio-impl.h.
2491         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2492         * doc/posix-functions/ftello.texi: Likewise.
2493         Reported by Eric Blake.
2494
2495 2010-05-01  Bruno Haible  <bruno@clisp.org>
2496
2497         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2498         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2499         the _IOWRT flag is also set.
2500
2501 2010-05-01  Bruno Haible  <bruno@clisp.org>
2502
2503         Fix doc about a HP-UX stdio bug.
2504         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2505         * doc/posix-functions/ftello.texi: Likewise.
2506
2507 2010-05-01  Bruno Haible  <bruno@clisp.org>
2508
2509         lseek test: Fix failure on Solaris.
2510         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2511         output.
2512
2513 2010-04-30  Jim Meyering  <meyering@redhat.com>
2514
2515         bootstrap: don't ignore failure to generate po*/Makevars
2516         * build-aux/bootstrap (with_gettext): Don't ignore failure
2517         to create po/Makevars or runtime-po/Makevars.
2518
2519 2010-04-29  Eric Blake  <eblake@redhat.com>
2520
2521         headers: relax license to LGPLv2+
2522         * modules/fcntl-h (License): Relax license.
2523         * modules/getopt-posix (License): Likewise.
2524         * modules/locale (License): Likewise.
2525         * modules/math (License): Likewise.
2526         * modules/pty (License): Likewise.
2527         * modules/sched (License): Likewise.
2528         * modules/search (License): Likewise.
2529         * modules/spawn (License): Likewise.
2530         * modules/stdarg (License): Likewise.
2531         * modules/sysexits (License): Likewise.
2532
2533 2010-04-29  Jim Meyering  <meyering@redhat.com>
2534
2535         inttypes: relax license to LGPLv2+
2536         * modules/inttypes (License): Relax license.
2537
2538 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2539
2540         * top/maint.mk (indent): Run twice to produce idempotent results.
2541
2542 2010-04-28  Bruno Haible  <bruno@clisp.org>
2543
2544         getdate: Generate getdate.c in the source directory.
2545         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2546         MOSTLYCLEANFILES.
2547         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2548
2549 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2550
2551         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2552         is not declared as a const *; avoid warnings in that case.
2553
2554 2010-04-28  Eric Blake  <eblake@redhat.com>
2555
2556         canonicalize-lgpl: avoid compiler warning
2557         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2558         declaration' / 'extraneous semicolon' warning with some compilers.
2559         Reported by Andreas Gruenbacher.
2560
2561 2010-04-28  Jim Meyering  <meyering@redhat.com>
2562
2563         init.sh: ensure a more reliable exit status when exiting via trap
2564         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2565         Inspired by patches from Dmitry V. Levin.
2566         Also trap on signal 3 (SIGQUIT).
2567
2568 2010-04-27  Bruno Haible  <bruno@clisp.org>
2569
2570         Update doc about utimes().
2571         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2572         'utimens' module.
2573         Reported by Andreas Gruenbacher <agruen@suse.de>.
2574
2575 2010-04-27  Eric Blake  <eblake@redhat.com>
2576
2577         full-read, full-write: relax license
2578         * modules/full-read (License): Drop to LGPLv2+.
2579         * modules/full-write (License): Likewise.
2580         * modules/safe-read (License): Likewise.
2581         * modules/safe-write (License): Likewise.
2582
2583         pthread: mention library for linking
2584         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2585
2586 2010-04-27  Jim Meyering  <meyering@redhat.com>
2587
2588         maint.mk: fix a bug introduced in last change
2589         * top/maint.mk (gl_assured_headers_): Now that all names are on
2590         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2591         is not anchored to end of word, it should be adequate.
2592
2593         maint.mk: avoid side-effect in latest syntax-check
2594         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2595         to run commands via $(shell...), and hence to incur cost only when
2596         the new rule is actually run.
2597
2598         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2599         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2600         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2601         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2602         (gl_assured_headers_, az_, AZ_): Define.
2603         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2604
2605 2010-04-26  Jim Meyering  <jim@meyering.net>
2606             Bruno Haible  <bruno@clisp.org>
2607
2608         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2609         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2610         Prompted by an exchange with Gilles Espinasse.
2611
2612 2010-04-26  Jim Meyering  <meyering@redhat.com>
2613
2614         git-version-gen: aesthetic tweak
2615         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2616         so that the command remains on a single line.
2617
2618 2010-04-26  Eric Blake  <eblake@redhat.com>
2619
2620         git-version-gen: allow use on EBCDIC hosts
2621         * build-aux/git-version-gen (dirty): Use literal rather than tying
2622         ourselves to ascii.
2623         Reported by Steve Goetze.
2624
2625 2010-04-25  Bruno Haible  <bruno@clisp.org>
2626
2627         netdb: Add support for GNULIB_POSIXCHECK.
2628         * lib/netdb.in.h: Include warn-on-use.h.
2629         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2630         functions are used when GNULIB_POSIXCHECK is defined and the
2631         getaddrinfo module is not in use.
2632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2633         freeaddrinfo, gai_strerror, getnameinfo are declared.
2634         * modules/netdb (Depends-on): Add warn-on-use.
2635         (Makefile.am): Include warn-on-use.h in netdb.h.
2636
2637 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2638
2639         build: avoid "make check" failure without .git/ directory
2640         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2641         there is no .git/ directory.
2642
2643 2010-04-25  Bruno Haible  <bruno@clisp.org>
2644
2645         ptsname: Fix misuse of ttyname_r.
2646         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2647         of errno.
2648
2649 2010-04-25  Bruno Haible  <bruno@clisp.org>
2650
2651         ttyname_r: Make it work on Solaris 10.
2652         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2653         if the system function has the POSIX declaration. Test whether the
2654         function fails if the buffer is less than 128 bytes large.
2655         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2656         system's ttyname_r function. Provide a reasonably large buffer.
2657         * modules/ttyname_r (Depends-on): Add extensions.
2658         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2659
2660 2010-04-25  Bruno Haible  <bruno@clisp.org>
2661
2662         Use the 'extensions' module for some more functions on Solaris.
2663         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2664         module.
2665         * doc/posix-functions/ctime_r.texi: Likewise.
2666         * doc/posix-functions/getgrgid_r.texi: Likewise.
2667         * doc/posix-functions/getgrnam_r.texi: Likewise.
2668         * doc/posix-functions/getpwnam_r.texi: Likewise.
2669         * doc/posix-functions/getpwuid_r.texi: Likewise.
2670         * doc/posix-functions/readdir_r.texi: Likewise.
2671         * doc/posix-functions/sigwait.texi: Likewise.
2672         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2673         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2674
2675 2010-04-25  Bruno Haible  <bruno@clisp.org>
2676
2677         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2679         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2680         * lib/ttyname_r.c: Include <limits.h>.
2681         (ttyname_r): Define using the system's ttyname_r function, if it exists
2682         and not on Solaris.
2683         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2684         set.
2685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2686         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2687         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2688         Reported by Simon Josefsson.
2689
2690 2010-04-25  Bruno Haible  <bruno@clisp.org>
2691
2692         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2693         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2694         * doc/posix-functions/ctime_r.texi: Likewise.
2695         * doc/posix-functions/getgrgid_r.texi: Likewise.
2696         * doc/posix-functions/getgrnam_r.texi: Likewise.
2697         * doc/posix-functions/getlogin_r.texi: Likewise.
2698         * doc/posix-functions/getpwnam_r.texi: Likewise.
2699         * doc/posix-functions/getpwuid_r.texi: Likewise.
2700         * doc/posix-functions/readdir_r.texi: Likewise.
2701         * doc/posix-functions/sigwait.texi: Likewise.
2702         * doc/posix-functions/ttyname_r.texi: Likewise.
2703         Reported by Simon Josefsson.
2704
2705 2010-04-25  Bruno Haible  <bruno@clisp.org>
2706
2707         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2708         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2709         also to --create-testdir.
2710         (func_acceptable): Don't consider the status of *-tests modules here.
2711         (func_modules_transitive_closure): Consider it here, before including a
2712         test module.
2713         (func_import, func_create_testdir): Set inc_all_direct_tests,
2714         inc_all_indirect_tests.
2715         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2716         --create-testdir and --create-megatestdir.
2717
2718 2010-04-25  Bruno Haible  <bruno@clisp.org>
2719
2720         gnulib-tool: Add --without-*-tests options.
2721         * gnulib-tool (func_usage): Document the --without-*-tests options.
2722         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2723         excl_unportable_tests): New variables.
2724         Fail if they are specified with --import or --update.
2725         (func_acceptable): Respect the excl_*_tests variables.
2726         (func_import): Set the excl_*_tests variables to empty.
2727
2728 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2729             Bruno Haible  <bruno@clisp.org>
2730
2731         Work around a MacOS X 10.4 bug with openpty.
2732         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2733         * tests/test-openpty.c (main): Close the master side explicitly.
2734
2735 2010-04-25  Bruno Haible  <bruno@clisp.org>
2736
2737         strnlen: Fix a C++ test error on MacOS X and Solaris.
2738         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2739         the function is not declared.
2740         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2741         Simon Josefsson.
2742
2743 2010-04-24  Bruno Haible  <bruno@clisp.org>
2744
2745         Avoid a gcc warning.
2746         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2747         of correct type for %08lx directive.
2748         Reported by Eric Blake.
2749
2750 2010-04-24  Bruno Haible  <bruno@clisp.org>
2751
2752         vasnprintf: Correct errno value in case of out-of-memory.
2753         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2754         or sprintf. Use the errno value from SNPRINTF or sprintf.
2755         Reported by Ian Beckwith <ianb@erislabs.net>.
2756
2757 2010-04-24  Bruno Haible  <bruno@clisp.org>
2758
2759         ansi-c++-opt: Find correct compiler when cross-compiling.
2760         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2761         AC_CHECK_PROGS.
2762         Reported by Simon Josefsson.
2763
2764 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2765
2766         vc-list-files: Add support for subversion
2767         * build-aux/vc-list-files: Use "svn list" to generate the list of
2768         files controlled by subversion.
2769
2770 2010-04-23  Jim Meyering  <meyering@redhat.com>
2771
2772         vc-list-files tests: convert to use init.sh
2773         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2774         path_prepend_.
2775         Use Exit, not exit.
2776         Use skip_ rather than open coding it.
2777         Remove trap set-up and compare definitions.
2778         * tests/test-vc-list-files-git.sh: Likewise.
2779         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2780
2781 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2782
2783         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2784         backup files.
2785
2786 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2787
2788         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2789
2790 2010-04-20  Eric Blake  <eblake@redhat.com>
2791
2792         tests: be robust to ignored SIGPIPE
2793         * tests/test-select-in.sh: Consume all output.
2794         * tests/test-lseek.sh: Check correct exit status, while avoiding
2795         EPIPE.
2796
2797 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2798             Bruno Haible  <bruno@clisp.org>
2799
2800         visibility: Don't use -fvisibility if it leads to a warning.
2801         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2802         yes, don't pretend that visibility works if it leads to a warning.
2803         Reported by Mike Gran <spk121@yahoo.com>.
2804
2805 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2806
2807         * build-aux/bootstrap: Use "git -h" for testing for supported options
2808         instead of "git --help".  The short-form option only shows a summary,
2809         and doesn't layout the full man page.  Grep for the full option name
2810         in the summary, too.
2811
2812 2010-04-19  Bruno Haible  <bruno@clisp.org>
2813
2814         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2815         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2816         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2817         mention of RELOCATABLE_STRIP.
2818         Reported by Sylvain Beucler <beuc@beuc.net>.
2819
2820 2010-04-19  Bruno Haible  <bruno@clisp.org>
2821
2822         * lib/diffseq.h: Fix typo in comment.
2823         Reported by Eric Blake.
2824
2825 2010-04-19  Bruno Haible  <bruno@clisp.org>
2826
2827         ioctl: Move autoconf macro to a .m4 file.
2828         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2829         * modules/ioctl (Files): Add it.
2830         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2831         Reported by Ian Beckwith <ianb@erislabs.net>.
2832
2833 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2834             Bruno Haible  <bruno@clisp.org>
2835
2836         diffseq: Accommodate use-case with abstract arrays.
2837         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2838         is not defined.
2839         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2840         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2841
2842 2010-04-18  Bruno Haible  <bruno@clisp.org>
2843
2844         * doc/posix-headers/stdbool.texi: More precise wording.
2845
2846 2010-04-17  Jim Meyering  <meyering@redhat.com>
2847
2848         maint.mk: use gnu-style indentation in an embedded perl script
2849         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2850         Rename variable: s/two/last_two_bytes/
2851
2852 2010-04-16  Eric Blake  <eblake@redhat.com>
2853
2854         test-stdbool: skip test that fails with Solaris CC
2855         * tests/test-stdbool.c (f): Skip test that causes compilation
2856         error under buggy C++ compiler.
2857         * lib/stdbool.in.h: Document the limitation.
2858         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2859
2860         setenv: allow compilation with C++
2861         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2862         register keyword.
2863
2864         stdint: allow test to pass with C++
2865         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2866
2867         getopt: allow compilation with C++
2868         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2869         struct.
2870         * lib/getopt.c (_getopt_internal_r): Use correct type.
2871         Reported by Dagobert Michelson, via Joel E. Denny.
2872
2873 2010-04-16  Bruno Haible  <bruno@clisp.org>
2874
2875         Override netdb.h always.
2876         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2877         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2878         Reported by Ludovic Courtès <ludo@gnu.org>.
2879
2880 2010-04-15  Bruno Haible  <bruno@clisp.org>
2881
2882         openpty: Fix mistake from 2010-03-21.
2883         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2884         Reported by Simon Josefsson.
2885
2886 2010-04-15  Eric Blake  <eblake@redhat.com>
2887
2888         test-forkpty: fix expected signature
2889         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2890         Reported by Simon Josefsson.
2891
2892 2010-04-15  Jim Meyering  <meyering@redhat.com>
2893
2894         maint.mk: texinfo_suffix_re_: correct the default regexp
2895         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2896
2897         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2898         make it configurable via texinfo_suffix_re_.
2899
2900 2010-04-14  Eric Blake  <eblake@redhat.com>
2901
2902         strtok_r: relax license to LGPLv2+
2903         * modules/strtok_r (License): Relax license.
2904         Reported by Matthias Bolte.
2905
2906 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2907
2908         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2909         version 1.4.4 by default instead of requiring the libgcrypt
2910         version used during build.  This makes it possible to use the
2911         application with older but still binary compatible libgcrypt
2912         versions.
2913
2914 2010-04-13  Eric Blake  <eblake@redhat.com>
2915
2916         getopt-gnu: match recent glibc fixes and posix ruling
2917         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2918         '+' handling, when requesting extensions.
2919         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2920         'W;' handling.
2921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2922         * doc/posix-functions/getopt.texi (getopt): Document this.
2923         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2924         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2925         Likewise.
2926
2927         getopt: merge bug fixes from glibc
2928         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2929         diagnostics.  Honor '+:' correctly.  Reject ';'.
2930
2931         getopt-posix: detect MacOS bug
2932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2933         optind when missing a required argument.
2934         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2935         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2936         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2937         Likewise.
2938
2939         getopt-posix: avoid spurious failure on Solaris
2940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2941         an indicator that setting optind=1 is sufficient for reset.
2942
2943         getopt-posix: avoid spurious failure on FreeBSD
2944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2945         in POSIX mode, since the m4 test uses it.
2946
2947         gnulib-tool: silence warning on BSD sh
2948         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2949
2950 2010-04-13  Jim Meyering  <meyering@redhat.com>
2951
2952         doc: users.txt: GNU patch now uses gnulib
2953         * users.txt: Add patch.
2954
2955 2010-04-12  Jim Meyering  <meyering@redhat.com>
2956
2957         maint.mk: generate more concise timing data for syntax-check rules
2958         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2959         " done" from each line that reports a syntax-check test duration.
2960
2961 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2962
2963         git-version-gen: use "git update-index..." rather than "git status"
2964         * build-aux/git-version-gen: Use git update-index --refresh, not
2965         "git status".  With some versions of git, "git status" would fail
2966         to update the index and result in an unwarranted "-dirty" suffix.
2967
2968 2010-04-11  Jim Meyering  <meyering@redhat.com>
2969
2970         openat: correct formatting (no semantic change)
2971         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2972         Suggested by Bruno Haible.
2973
2974 2010-04-11  Bruno Haible  <bruno@clisp.org>
2975
2976         Stricter declaration checking in testdirs.
2977         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2978         If for_tests is true, augment AM_CPPFLAGS to define
2979         GNULIB_STRICT_CHECKING.
2980         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2981         GNULIB_STRICT_CHECKING is defined, verify that the function is
2982         declared.
2983
2984 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2985             Bruno Haible  <bruno@clisp.org>
2986
2987         libunistring: Improve configure output.
2988         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2989         Don't say "consider installing GNU libunistring" when checking again
2990         with libiconv.
2991
2992 2010-04-11  Bruno Haible  <bruno@clisp.org>
2993
2994         libunistring: Correct value of $LTLIBUNISTRING.
2995         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2996         correct the value of $LTLIBUNISTRING.
2997
2998 2010-04-11  Bruno Haible  <bruno@clisp.org>
2999
3000         havelib: Add static libraries to LIBS in the right order.
3001         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3002         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3003
3004 2010-04-11  Bruno Haible  <bruno@clisp.org>
3005
3006         libunistring: Detect libunistring also when it depends on libiconv.
3007         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3008         the second AC_LIB_HAVE_LINKFLAGS invocation.
3009
3010 2010-04-11  James Youngman  <jay@gnu.org>
3011
3012         close-stream: declare local scalars to be "const"
3013         * lib/close-stream.c (close_stream): Make boolean variables const
3014         to document the fact that we set but do not change them.
3015
3016 2010-04-11  Bruno Haible  <bruno@clisp.org>
3017
3018         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3019
3020 2010-04-11  Jim Meyering  <meyering@redhat.com>
3021
3022         maint.mk: don't include dist-check.mk
3023         * top/maint.mk: Remove bogus include directive.
3024
3025         maint.mk: improve empty-line-at-EOF check
3026         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3027         solution, rather than tail+Perl-based one.  The latter would read
3028         a few kilobytes from the end of each file, and did not handle empty
3029         files properly.
3030
3031         maint.mk: print the elapsed time for each syntax-check rule
3032         * top/maint.mk (sc_m_rules_): Save start time in a file.
3033         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3034         (local-check): Interpose the .z rules
3035
3036 2010-04-11  Jim Meyering  <meyering@redhat.com>
3037
3038         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3039         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3040         empty file with one that ends in an empty line.
3041
3042 2010-04-10  Bruno Haible  <bruno@clisp.org>
3043
3044         mkdir: Make it work on mingw64.
3045         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3046         * lib/mkdir.c: Update comment.
3047         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
3048
3049 2010-04-10  Bruno Haible  <bruno@clisp.org>
3050
3051         Don't override improved macro from newer autoconf.
3052         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3053         autoconf >= 2.62.
3054         Reported by Joel E. Denny <jdenny@clemson.edu>.
3055
3056 2010-04-10  Jim Meyering  <meyering@redhat.com>
3057
3058         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3059         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3060
3061         maint.mk: correct a diagnostic
3062         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3063         in diagnostic; now use $prohibit.
3064
3065 2010-04-10  Bruno Haible  <address@hidden>
3066
3067         fchownat: Fix a C++ test error on Solaris 8.
3068         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3069         the function does not exist.
3070
3071 2010-04-10  Bruno Haible  <bruno@clisp.org>
3072
3073         vasnprintf: Add more tests.
3074         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3075         (test_function): Test converting an invalid wide string.
3076
3077         vasnprintf: Correct handling of unconvertible wide string arguments.
3078         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3079         VASNPRINTF.
3080         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3081         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3082         smaller than the expected maximum need for the directive. Set errno to
3083         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3084         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3086         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3087         * modules/vasnprintf (Files): Add m4/printf.m4.
3088         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3089
3090 2010-04-10  Bruno Haible  <bruno@clisp.org>
3091
3092         vasnprintf: Fix crash in %ls directive.
3093         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3094         string is passed as argument to %ls, with no precision and no width.
3095         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3096
3097 2010-04-10  Bruno Haible  <bruno@clisp.org>
3098
3099         vasnprintf: Fix multiple test failures on mingw.
3100         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3101         _snprintf, or snwprintf, not _snwprintf.
3102
3103 2010-04-10  Bruno Haible  <bruno@clisp.org>
3104
3105         write: Fix a C++ test error on mingw.
3106         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3107
3108 2010-04-10  Bruno Haible  <bruno@clisp.org>
3109
3110         vasnprintf test: Reduce code duplication.
3111         * tests/test-vasnprintf.c (test_function): New function, extracted from
3112         test_vasnprintf.
3113         (test_vasnprintf, test_asnprintf): Invoke it.
3114
3115 2010-04-10  Bruno Haible  <bruno@clisp.org>
3116
3117         strnlen: Fix warning in C++ mode on MacOS X.
3118         * lib/string.in.h (strnlen): Use the modern idiom.
3119         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3120         defining strnlen as a macro already in <config.h>.
3121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3122         REPLACE_STRNLEN.
3123         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3125
3126 2010-04-08  James Youngman  <jay@gnu.org>
3127
3128         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3129         the example.
3130
3131 2010-04-09  Jim Meyering  <meyering@redhat.com>
3132
3133         maint.mk: print better diagnostic when there is no $(_hv_file)
3134         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3135         announce that when $(_hv_file) (aka help-version) does not exist.
3136
3137         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3138         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3139         not try to interpret its random input bytes.  Jarno Rajahalme reported
3140         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3141         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3142         (mktempd_): Likewise, just in case.
3143
3144         ftruncate: add two years to projected module removal date: 2012
3145         * m4/ftruncate.m4: Adjust comments.
3146
3147         ftruncate: mark module as obsolete; even MinGW provides it, now
3148         * modules/ftruncate (Status): Obsolete.
3149         (Notice): Say that.
3150         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3152
3153 2010-04-08  Bruno Haible  <bruno@clisp.org>
3154
3155         Fix side effects from tests-related modules.
3156         * modules/dprintf-posix (Comment): New section.
3157         * modules/fprintf-posix (Comment): Likewise.
3158         * modules/obstack-printf-posix (Comment): Likewise.
3159         * modules/printf-posix (Comment): Likewise.
3160         * modules/snprintf-posix (Comment): Likewise.
3161         * modules/sprintf-posix (Comment): Likewise.
3162         * modules/vasnprintf-posix (Comment): Likewise.
3163         * modules/vasprintf-posix (Comment): Likewise.
3164         * modules/vdprintf-posix (Comment): Likewise.
3165         * modules/vfprintf-posix (Comment): Likewise.
3166         * modules/vprintf-posix (Comment): Likewise.
3167         * modules/vsnprintf-posix (Comment): Likewise.
3168         * modules/vsprintf-posix (Comment): Likewise.
3169         * modules/xprintf-posix (Comment): Likewise.
3170         * modules/xvasprintf-posix (Comment): Likewise.
3171         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3172         * modules/floorf-tests (Depends-on): Likewise.
3173         * modules/round-tests (Depends-on): Likewise.
3174         * modules/roundf-tests (Depends-on): Likewise.
3175         * modules/trunc-tests (Depends-on): Likewise.
3176         * modules/truncf-tests (Depends-on): Likewise.
3177         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3178         'fprintf-posix' module is not present.
3179         * tests/test-floorf2.c (check): Likewise.
3180         * tests/test-trunc2.c (check): Likewise.
3181         * tests/test-truncf2.c (check): Likewise.
3182         * tests/test-round2.c (equal): Likewise.
3183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3184
3185 2010-04-07  Karl Berry  <karl@gnu.org>
3186
3187         * config/srclist.txt,
3188         * config/srclistvars.sh,
3189         * config/srclist-update: doc fixes.
3190
3191 2010-04-07  Jim Meyering  <meyering@redhat.com>
3192
3193         maint.mk: add a PATH crosschecking syntax-check rule
3194         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3195         Useful if you use a test like the one in help-version (coreutils,
3196         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3197         printed by prog --version.
3198
3199 2010-04-06  Bruno Haible  <bruno@clisp.org>
3200
3201         Fix link error on mingw.
3202         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3203         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3204
3205 2010-04-06  Bruno Haible  <bruno@clisp.org>
3206
3207         Assume rmdir exists.
3208         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3209
3210 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3211
3212         doc: update users.txt
3213         * users.txt: Add gcal.
3214
3215 2010-04-06  Jim Meyering  <meyering@redhat.com>
3216
3217         init.sh: simply unset TMPDIR rather than risking env -i
3218         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3219         although it probably works fine on all Unix-based systems, some
3220         systems (Cygwin?) cannot tolerate a totally cleared environment.
3221         Suggestion from Eric Blake.
3222
3223 2010-04-06  Jim Meyering  <meyering@redhat.com>
3224
3225         init.sh: portability fix: use env's POSIX-specified -i option not -u
3226         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3227         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3228
3229 2010-04-05  Bruno Haible  <bruno@clisp.org>
3230
3231         btowc: Work around Cygwin 1.7.2 bug.
3232         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3233         does not map NUL to 0.
3234         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3235
3236 2010-04-05  Bruno Haible  <bruno@clisp.org>
3237
3238         Make the multithread modules work on Cygwin 1.7.2.
3239         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3240         imported symbols can be declared weak, so that it returns "no" on
3241         Cygwin 1.7.2.
3242
3243 2010-04-05  Bruno Haible  <bruno@clisp.org>
3244
3245         Use the module 'strncat'.
3246         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3247
3248         Tests for module 'strncat'.
3249         * modules/strncat-tests: New file.
3250         * tests/test-strncat.c: New file.
3251
3252         New module 'strncat'.
3253         * lib/string.in.h (strncat): New declaration.
3254         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3255         * m4/strncat.m4: New file, based on m4/memchr.m4.
3256         * modules/strncat: New file.
3257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3258         is declared.
3259         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3260         REPLACE_STRNCAT.
3261         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3262         REPLACE_STRNCAT.
3263         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3264         module.
3265         * tests/test-string-c++.cc: Check signature of strncat.
3266
3267 2010-04-05  Jim Meyering  <meyering@redhat.com>
3268
3269         xstrtoumax-tests: convert to use init.sh
3270         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3271         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3272         Use Exit, not exit.
3273         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3274
3275         xstrtoimax-tests: convert to use init.sh
3276         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3277         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3278         Use Exit, not exit.
3279         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3280
3281 2010-04-05  Bruno Haible  <bruno@clisp.org>
3282
3283         sys_socket: Avoid #define replacements in C++ mode.
3284         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3285         warning to the function if possible, rather than #defining the symbol
3286         to a dysfunctional alias.
3287
3288 2010-04-05  Bruno Haible  <bruno@clisp.org>
3289
3290         fseeko: Fix C++ test error on mingw.
3291         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3292         gl_FUNC_FSEEKO.
3293         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3294         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3296         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3297
3298 2010-04-05  Bruno Haible  <bruno@clisp.org>
3299
3300         duplocale: Improve test output.
3301         * tests/test-duplocale.c (main): Print reason for skipped test.
3302
3303 2010-04-05  Bruno Haible  <bruno@clisp.org>
3304
3305         Assume rmdir exists.
3306         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3307         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3308
3309 2010-04-05  Bruno Haible  <bruno@clisp.org>
3310
3311         Fix link error on Solaris 8 with cc.
3312         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3313
3314 2010-04-05  Bruno Haible  <bruno@clisp.org>
3315
3316         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3317         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3318
3319 2010-04-05  Bruno Haible  <bruno@clisp.org>
3320
3321         vasprintf: Update documentation.
3322         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3323
3324 2010-04-05  Bruno Haible  <bruno@clisp.org>
3325
3326         ptsname: Improve test.
3327         * tests/test-ptsname.c (main): Also try the various master names of BSD
3328         systems.
3329
3330 2010-04-05  Bruno Haible  <bruno@clisp.org>
3331
3332         memchr: Avoid a possible C++ test error.
3333         * lib/string.in.h (memchr): Provide declaration if function is missing.
3334         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3335         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3337         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3338
3339 2010-04-05  Bruno Haible  <bruno@clisp.org>
3340
3341         strtok_r: Improve idiom.
3342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3343         AC_LIBOBJ is used.
3344
3345 2010-04-05  Bruno Haible  <bruno@clisp.org>
3346
3347         strdup: Improve idiom.
3348         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3349         AC_LIBOBJ is used.
3350         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3351         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3352         when AC_LIBOBJ is used.
3353
3354 2010-04-05  Bruno Haible  <bruno@clisp.org>
3355
3356         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3357         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3358         don't set REPLACE_MBSINIT to 1.
3359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3360         don't set REPLACE_MBRTOWC to 1.
3361         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3362         exist, don't set REPLACE_MBSRTOWCS to 1.
3363         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3364         exist, don't set REPLACE_MBSNRTOWCS to 1.
3365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3366         don't set REPLACE_WCRTOMB to 1.
3367         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3368         exist, don't set REPLACE_WCSRTOMBS to 1.
3369         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3370         exist, don't set REPLACE_WCSNRTOMBS to 1.
3371
3372 2010-04-05  Bruno Haible  <bruno@clisp.org>
3373
3374         ldexpl: Improve idiom.
3375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3376         make sure to set HAVE_DECL_LDEXPL to 0.
3377
3378 2010-04-05  Jim Meyering  <meyering@redhat.com>
3379
3380         xstrtol-tests: convert to use init.sh
3381         * modules/xstrtol-tests (Files): Add tests/init.sh.
3382         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3383         Use Exit, not exit.
3384         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3385
3386         atexit-tests: convert to use init.sh
3387         * modules/atexit-tests (Files): Add tests/init.sh.
3388         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3389         Use Exit, not exit.
3390         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3391
3392         init.sh: fix typo
3393         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3394
3395         init.sh: make it easier for a test script to write to the tty, ...
3396         when using automake's parallel-tests mode.
3397         * tests/init.sh (stderr_fileno_): Define overridable variable.
3398         (warn_): New function, to use it.
3399         (fail_, skip_, framework_failure_): Use warn_.
3400
3401 2010-04-04  Bruno Haible  <bruno@clisp.org>
3402
3403         btowc: Avoid warning.
3404         * lib/btowc.c: Include <stdlib.h>.
3405         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3406
3407 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3408             Bruno Haible  <bruno@clisp.org>
3409
3410         wchar: Port to NetBSD 1.5.
3411         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3412         * lib/wctype.in.h (WEOF): Likewise.
3413
3414 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3415             Bruno Haible  <bruno@clisp.org>
3416
3417         Port extended stdio to NetBSD 1.5.
3418         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3419         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3420         older.
3421
3422 2010-04-04  Bruno Haible  <bruno@clisp.org>
3423
3424         string: Remove unused substitution.
3425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3426         HAVE_DECL_STRERROR.
3427         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3428
3429 2010-04-04  Bruno Haible  <bruno@clisp.org>
3430
3431         strtod: Avoid a possible C++ test error.
3432         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3433         set REPLACE_STRTOD.
3434
3435 2010-04-04  Bruno Haible  <bruno@clisp.org>
3436
3437         strerror: Update documentation.
3438         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3439
3440 2010-04-04  Bruno Haible  <bruno@clisp.org>
3441
3442         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3443         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3444         _GL_CXXALIAS_SYS_CAST.
3445
3446 2010-04-04  Bruno Haible  <bruno@clisp.org>
3447
3448         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3449         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3450         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3451         REPLACE_FREXPL to 1.
3452         * doc/posix-functions/frexpl.texi: Update documentation.
3453
3454 2010-04-04  Bruno Haible  <bruno@clisp.org>
3455
3456         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3457         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3458
3459 2010-04-04  Bruno Haible  <bruno@clisp.org>
3460
3461         Implement nanosleep for native Windows.
3462         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3463
3464 2010-04-04  Bruno Haible  <bruno@clisp.org>
3465
3466         math: Fix some C++ test errors on Solaris 8.
3467         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3468
3469 2010-04-04  Bruno Haible  <bruno@clisp.org>
3470
3471         math: Fix some C++ test errors on Cygwin.
3472         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3473         truncl): Provide declaration if the system does not have it.
3474         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3475         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3476         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3477         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3478         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3479         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3480         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3481         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3482         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3483         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3484         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3485         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3486         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3487         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3488         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3489         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3491         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3492         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3493         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3494         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3495         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3496
3497 2010-04-04  Bruno Haible  <bruno@clisp.org>
3498
3499         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3500         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3501         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3502         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3503         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3504         * m4/isinf.m4 (gl_ISINF): Likewise.
3505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3506
3507 2010-04-04  Bruno Haible  <bruno@clisp.org>
3508
3509         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3510         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3511
3512 2010-04-04  Bruno Haible  <bruno@clisp.org>
3513
3514         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3515         * modules/tmpfile (configure.ac): Update.
3516
3517         tmpfile: Fix C++ test error on mingw.
3518         * lib/stdio.in.h (tmpfile): New declaration.
3519         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3520         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3521         * modules/tmpfile (Depends-on): Add stdio.
3522         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3523         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3524         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3525         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3526         REPLACE_TMPFILE.
3527         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3528
3529 2010-04-04  Bruno Haible  <bruno@clisp.org>
3530
3531         ioctl: Fix C++ test error on mingw.
3532         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3533         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3534         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3535
3536 2010-04-03  Bruno Haible  <bruno@clisp.org>
3537
3538         wcwidth: Fix C++ test error on mingw.
3539         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3541         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3542
3543 2010-04-03  Bruno Haible  <bruno@clisp.org>
3544
3545         nanosleep: Fix C++ test error on mingw.
3546         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3547         * lib/time.in.h (nanosleep): Use modern idiom.
3548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3549         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3550         REPLACE_NANOSLEEP to 1.
3551         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3552         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3553
3554 2010-04-03  Bruno Haible  <bruno@clisp.org>
3555
3556         strptime: Fix C++ test error on mingw.
3557         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3558         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3559         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3560         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3561         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3562         not REPLACE_STRPTIME.
3563         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3564         REPLACE_STRPTIME.
3565
3566 2010-04-03  Bruno Haible  <bruno@clisp.org>
3567
3568         timegm: Fix C++ test error on mingw.
3569         * lib/time.in.h (timegm): Use modern idiom.
3570         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3571         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3572         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3573         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3574
3575 2010-04-03  Bruno Haible  <bruno@clisp.org>
3576
3577         timegm: Assume declaration if function exists.
3578         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3579         if it exists. Don't clobber ac_cv_func_timegm.
3580
3581 2010-04-03  Bruno Haible  <bruno@clisp.org>
3582
3583         time_r: Fix C++ test error on mingw.
3584         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3585         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3586         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3588         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3589
3590 2010-04-03  Bruno Haible  <bruno@clisp.org>
3591
3592         time_r: Minor updates.
3593         * modules/time_r (Description): Mention the provided functions.
3594         * lib/time_r.c: Don't include <string.h>.
3595         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3596         * doc/posix-functions/localtime_r.texi: Likewise.
3597
3598 2010-04-03  Bruno Haible  <bruno@clisp.org>
3599
3600         time: Fix regression introduced on 2010-03-08.
3601         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3602         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3603
3604 2010-04-03  Jim Meyering  <meyering@redhat.com>
3605
3606         maint.mk: don't silently disable project-specific syntax-check rules
3607         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3608         that they need to convert their project-specific syntax-check rules
3609         to use the new _sc_search_regexp.
3610
3611 2010-04-03  Bruno Haible  <bruno@clisp.org>
3612
3613         fchdir: Fix regression introduced on 2010-03-08.
3614         * lib/unistd.in.h (fchdir): Fix declaration.
3615         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3617         REPLACE_FCHDIR.
3618         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3619         REPLACE_FCHDIR.
3620
3621 2010-04-03  Bruno Haible  <bruno@clisp.org>
3622
3623         getpagesize: Fix C++ test error on mingw.
3624         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3625         system does not declare the function.
3626         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3627         declared.
3628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3629         HAVE_DECL_GETPAGESIZE.
3630         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3631
3632 2010-04-03  Bruno Haible  <bruno@clisp.org>
3633
3634         stdio: Make C++ tests work on mingw.
3635         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3636         does not declare the function.
3637
3638 2010-04-03  Bruno Haible  <bruno@clisp.org>
3639
3640         ftello: Fix C++ test error on mingw.
3641         * lib/stdio.in.h (ftello): Use modern idiom.
3642         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3643         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3644         is missing and that it needs to be replaced.
3645         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3647         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3648
3649 2010-04-03  Bruno Haible  <bruno@clisp.org>
3650
3651         fseeko: Fix C++ test error on mingw.
3652         * lib/stdio.in.h (fseeko): Use modern idiom.
3653         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3654         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3655         is missing and that it needs to be replaced.
3656         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3658         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3659
3660 2010-04-03  Bruno Haible  <bruno@clisp.org>
3661
3662         mkstemp: Fix C++ test error on mingw.
3663         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3664         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3665         function is missing and that it needs to be replaced.
3666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3667         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3668
3669 2010-04-03  Bruno Haible  <bruno@clisp.org>
3670
3671         stpncpy: Fix C++ test error on mingw.
3672         * lib/string.in.h (stpncpy): Use modern idiom.
3673         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3674         function is missing and that it needs to be replaced.
3675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3676         REPLACE_STPNCPY.
3677         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3678
3679 2010-04-03  Bruno Haible  <bruno@clisp.org>
3680
3681         sys_stat: Fix C++ test error on mingw.
3682         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3683         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3684
3685 2010-04-03  Bruno Haible  <bruno@clisp.org>
3686
3687         pty: Update doc.
3688         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3689
3690 2010-04-03  Bruno Haible  <bruno@clisp.org>
3691
3692         unistd: Fix C++ test error on mingw.
3693         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3694
3695 2010-04-03  Bruno Haible  <bruno@clisp.org>
3696
3697         Update doc regarding mingw.
3698         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3699         * doc/glibc-functions/login_tty.texi: Likewise.
3700         * doc/glibc-functions/forkpty.texi: Likewise.
3701
3702 2010-04-03  Bruno Haible  <bruno@clisp.org>
3703
3704         stdlib: Avoid compilation failure of c-strtold on mingw.
3705         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3706
3707 2010-04-03  Bruno Haible  <bruno@clisp.org>
3708
3709         locale: Make C++ tests work on Cygwin and mingw.
3710         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3711         cannot provide the function.
3712         Reported by Simon Josefsson.
3713
3714 2010-04-03  Bruno Haible  <bruno@clisp.org>
3715
3716         localename: Port to MacOS X 10.6.
3717         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3718         memory layout of the locales in MacOS X 10.6 as well.
3719         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3720
3721 2010-04-02  Bruno Haible  <bruno@clisp.org>
3722
3723         gnulib-tool: Ensure that long-running tests are executed last.
3724         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3725         running tests after the one for the other tests.
3726
3727 2010-04-02  Bruno Haible  <bruno@clisp.org>
3728
3729         gnulib-tool: Ensure the tests in the main directory are executed first.
3730         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3731         start with the current directory.
3732
3733 2010-04-02  Bruno Haible  <bruno@clisp.org>
3734
3735         Tests for module 'havelib', moved here from GNU gettext.
3736         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3737         modifications.
3738         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3739         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3740         with modifications.
3741         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3742         modifications.
3743         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3744         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3745         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3746         with modifications.
3747         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3748         with modifications.
3749         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3750         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3751         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3752         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3753         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3754         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3755         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3756         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3757         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3758         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3759         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3760         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3761         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3762         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3763         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3764         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3765         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3766         with modifications.
3767         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3768         with modifications.
3769         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3770         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3771         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3772         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3773         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3774         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3775         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3776         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3777         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3778         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3779         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3780         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3781         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3782         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3783         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3784         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3785         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3786         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3787         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3788         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3789         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3790         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3791         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3792         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3793         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3794         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3795         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3796         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3797         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3798         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3799         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3800         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3801         * tests/havelib/rpathx/rpathx.c: New file, from
3802         gettext/autoconf-lib-link.
3803         * tests/havelib/rpathx/Makefile.am: New file, from
3804         gettext/autoconf-lib-link.
3805         * tests/havelib/rpathx/configure.ac: New file, from
3806         gettext/autoconf-lib-link with modifications.
3807         * tests/havelib/rpathy/rpathy.c: New file, from
3808         gettext/autoconf-lib-link.
3809         * tests/havelib/rpathy/Makefile.am: New file, from
3810         gettext/autoconf-lib-link.
3811         * tests/havelib/rpathy/configure.ac: New file, from
3812         gettext/autoconf-lib-link with modifications.
3813         * tests/havelib/rpathz/rpathz.c: New file, from
3814         gettext/autoconf-lib-link.
3815         * tests/havelib/rpathz/Makefile.am: New file, from
3816         gettext/autoconf-lib-link.
3817         * tests/havelib/rpathz/configure.ac: New file, from
3818         gettext/autoconf-lib-link with modifications.
3819         * tests/havelib/rpathlx/usex.c: New file, from
3820         gettext/autoconf-lib-link.
3821         * tests/havelib/rpathlx/Makefile.am: New file, from
3822         gettext/autoconf-lib-link.
3823         * tests/havelib/rpathlx/configure.ac: New file, from
3824         gettext/autoconf-lib-link with modifications.
3825         * tests/havelib/rpathly/usey.c: New file, from
3826         gettext/autoconf-lib-link.
3827         * tests/havelib/rpathly/Makefile.am: New file, from
3828         gettext/autoconf-lib-link.
3829         * tests/havelib/rpathly/configure.ac: New file, from
3830         gettext/autoconf-lib-link with modifications.
3831         * tests/havelib/rpathlz/usez.c: New file, from
3832         gettext/autoconf-lib-link.
3833         * tests/havelib/rpathlz/Makefile.am: New file, from
3834         gettext/autoconf-lib-link.
3835         * tests/havelib/rpathlz/configure.ac: New file, from
3836         gettext/autoconf-lib-link with modifications.
3837         * tests/havelib/rpathlyx/usey.c: New file, from
3838         gettext/autoconf-lib-link.
3839         * tests/havelib/rpathlyx/Makefile.am: New file, from
3840         gettext/autoconf-lib-link.
3841         * tests/havelib/rpathlyx/configure.ac: New file, from
3842         gettext/autoconf-lib-link with modifications.
3843         * tests/havelib/rpathlzyx/usez.c: New file, from
3844         gettext/autoconf-lib-link.
3845         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3846         gettext/autoconf-lib-link.
3847         * tests/havelib/rpathlzyx/configure.ac: New file, from
3848         gettext/autoconf-lib-link with modifications.
3849         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3850         with modifications.
3851
3852 2010-04-02  Bruno Haible  <bruno@clisp.org>
3853
3854         gnulib-tool: Create distributed built sources also for the tests.
3855         * gnulib-tool (func_create_testdir): Also generate distributed built
3856         sources in the tests directory.
3857
3858 2010-04-02  Bruno Haible  <bruno@clisp.org>
3859
3860         gnulib-tool: Obey user's environment variables.
3861         * gnulib-tool (func_create_testdir): When creating built sources,
3862         respect the environment variables for autoconf, automake, etc. given by
3863         the user.
3864
3865 2010-04-02  Bruno Haible  <bruno@clisp.org>
3866
3867         gnulib-tool: Provide the value of --m4-base to modules.
3868         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3869         of gl_m4_base.
3870
3871 2010-04-02  Eric Blake  <eblake@redhat.com>
3872
3873         maint.mk: fix some fallout
3874         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3875         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3876
3877 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3878
3879         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3880         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3881         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3882         (sc_cast_of_x_alloc_return_value): Likewise.
3883         (sc_cast_of_alloca_return_value): Likewise.
3884         (sc_space_tab): Likewise.
3885         (sc_prohibit_atoi_atof): Likewise.
3886         (sc_prohibit_magic_number_exit): Likewise.
3887         (sc_error_exit_success): Likewise.
3888         (sc_file_system): Likewise.
3889         (sc_prohibit_have_config_h): Likewise.
3890         (sc_require_config_h): Likewise.
3891         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3892         (sc_obsolete_symbols): Likewise.
3893         (sc_changelog): Likewise.
3894         (sc_program_name): Likewise.
3895         (sc_the_the): Likewise.
3896         (sc_trailing_blank): Likewise.
3897         (sc_two_space_separator_in_usage): Likewise.
3898         (sc_useless_cpp_parens): Likewise.
3899         (sc_GPL_version): Likewise.
3900         (sc_GFDL_version): Likewise.
3901         (sc_texinfo_acronym): Likewise.
3902         (sc_prohibit_cvs_keyword): Likewise.
3903         (sc_prohibit_stat_st_blocks): Likewise.
3904         (sc_prohibit_S_IS_definition): Likewise.
3905         (sc_redundant_const): Likewise.
3906         (sc_makefile_TAB_only_indentation): Likewise.
3907         (sc_m4_quote_check): Likewise.
3908         (sc_makefile_path_separator_check): Likewise.
3909         (sc_copyright_check): Likewise.
3910         (sc_Wundef_boolean): Likewise.
3911         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3912
3913         maint.mk: match 0 or more whitespace-before-function-call '('
3914         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3915         that have zero or two-and-more spaces between the function name
3916         and the open parenthesis.
3917         (sc_error_message_warn_fatal): Likewise.
3918         (sc_error_message_uppercase): Likewise.
3919         (sc_error_message_period): Likewise.
3920
3921 2010-03-31  Eric Blake  <eblake@redhat.com>
3922
3923         maint.mk: check for [ as well as test
3924         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3925         Based on a libvirt report by Matthias Bolte.
3926
3927         gnumakefile: don't squelch _version output
3928         * top/GNUmakefile (_version): Create one-shot dependency rather
3929         than using $(shell) when version must be regenerated.
3930         (_autoreconf): Run verbosely, by default.
3931
3932         sys_time: avoid compiler warnings
3933         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3934         unconditional, fixing regression from 2010-03-29.
3935         Reported by Simon Josefsson.
3936
3937 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3938
3939         maint.mk: s/_header_without_use/_sc_header_without_use/
3940         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3941         (sc_prohibit_assert_without_use): Use the new name.
3942         (sc_prohibit_close_stream_without_use): Likewise.
3943         (sc_prohibit_getopt_without_use): Likewise.
3944         (sc_prohibit_quotearg_without_use): Likewise.
3945         (sc_prohibit_quote_without_use): Likewise.
3946         (sc_prohibit_long_options_without_use): Likewise.
3947         (sc_prohibit_inttostr_without_use): Likewise.
3948         (sc_prohibit_ignore_value_without_use): Likewise.
3949         (sc_prohibit_error_without_use): Likewise.
3950         (sc_prohibit_xalloc_without_use): Likewise.
3951         (sc_prohibit_hash_without_use): Likewise.
3952         (sc_prohibit_hash_pjw_without_use): Likewise.
3953         (sc_prohibit_safe_read_without_use): Likewise.
3954         (sc_prohibit_argmatch_without_use): Likewise.
3955         (sc_prohibit_canonicalize_without_use): Likewise.
3956         (sc_prohibit_root_dev_ino_without_use): Likewise.
3957         (sc_prohibit_openat_without_use): Likewise.
3958         (sc_prohibit_c_ctype_without_use): Likewise.
3959         (sc_prohibit_signal_without_use): Likewise.
3960         (sc_prohibit_intprops_without_use): Likewise.
3961
3962 2010-03-30  Eric Blake  <eblake@redhat.com>
3963
3964         maint: improve module indicators
3965         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3966         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3967         columns, and avoid extra macro expansion.
3968
3969         fdopendir: work around FreeBSD bug
3970         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3972         * modules/dirent (Makefile.am): Substitute it.
3973         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3974         declaration.
3975         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3976         fix.
3977         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3978
3979 2010-03-29  Bruno Haible  <bruno@clisp.org>
3980
3981         Emit #pragma system_header after the inclusion guard, not before.
3982         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3983         guard that spans the entire file, not before. This enables an
3984         optimization in GCC's preprocessor.
3985         * lib/ctype.in.h: Likewise.
3986         * lib/dirent.in.h: Likewise.
3987         * lib/errno.in.h: Likewise.
3988         * lib/float.in.h: Likewise.
3989         * lib/getopt.in.h: Likewise.
3990         * lib/iconv.in.h: Likewise.
3991         * lib/langinfo.in.h: Likewise.
3992         * lib/locale.in.h: Likewise.
3993         * lib/math.in.h: Likewise.
3994         * lib/netdb.in.h: Likewise.
3995         * lib/netinet_in.in.h: Likewise.
3996         * lib/pty.in.h: Likewise.
3997         * lib/sched.in.h: Likewise.
3998         * lib/se-selinux.in.h: Likewise.
3999         * lib/search.in.h: Likewise.
4000         * lib/spawn.in.h: Likewise.
4001         * lib/stdarg.in.h: Likewise.
4002         * lib/stdint.in.h: Likewise.
4003         * lib/string.in.h: Likewise.
4004         * lib/strings.in.h: Likewise.
4005         * lib/sys_file.in.h: Likewise.
4006         * lib/sys_ioctl.in.h: Likewise.
4007         * lib/sys_time.in.h: Likewise.
4008         * lib/sys_times.in.h: Likewise.
4009         * lib/sys_utsname.in.h: Likewise.
4010         * lib/sys_wait.in.h: Likewise.
4011         * lib/sysexits.in.h: Likewise.
4012         * lib/wctype.in.h: Likewise.
4013
4014 2010-03-28  James Youngman  <jay@gnu.org>
4015
4016         save-cwd: don't leak a file descriptor when the caller execs.
4017         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4018         saved file descriptor.
4019         * modules/save-cwd (Depends-on): Depend on cloexec.
4020
4021 2010-03-29  Bruno Haible  <bruno@clisp.org>
4022
4023         Remove vestiges of fts-lgpl module.
4024         * lib/fts_.h: Assume GNULIB_FTS is 1.
4025         * lib/fts.c: Likewise.
4026         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4027
4028 2010-03-28  Bruno Haible  <bruno@clisp.org>
4029
4030         Fix definition of tests witness macro.
4031         * gnulib-tool (func_import): Fix definition of witness macro.
4032
4033 2010-03-28  Bruno Haible  <bruno@clisp.org>
4034
4035         Fix ioctl's protoype on glibc systems.
4036         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4037         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4038         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4039         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4040         signature. If not, arrange to replace the ioctl function.
4041         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4042         REPLACE_IOCTL.
4043         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4044         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4045         Reported by Ludovic Courtès <ludo@gnu.org>.
4046
4047 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4048
4049         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4050         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4051         made it so grep -r --include=GLOB* ... did not work.
4052
4053 2010-03-26  Jim Meyering  <meyering@redhat.com>
4054             Eric Blake  <eblake@redhat.com>
4055
4056         maint.mk: prohibit use of test's -o and -a operators
4057         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4058
4059 2010-03-28  Bruno Haible  <bruno@clisp.org>
4060
4061         Remove unused GNULIB_XYZ macro definitions.
4062         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4063         invocation.
4064
4065 2010-03-28  Bruno Haible  <bruno@clisp.org>
4066
4067         Mark privileged tests modules.
4068         * modules/idpriv-drop-tests (Status): New section.
4069         * modules/idpriv-droptemp-tests (Status): New section.
4070
4071 2010-03-28  Bruno Haible  <bruno@clisp.org>
4072
4073         Split C++ tests into separate tests modules.
4074         * modules/dirent-c++-tests: New file, extracted from
4075         modules/dirent-tests.
4076         * modules/dirent-tests: Depend on it.
4077         * modules/fcntl-h-c++-tests: New file, extracted from
4078         modules/fcntl-h-tests.
4079         * modules/fcntl-h-tests: Depend on it.
4080         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4081         * modules/glob-tests: Depend on it.
4082         * modules/iconv-h-c++-tests: New file, extracted from
4083         modules/iconv-h-tests.
4084         * modules/iconv-h-tests: Depend on it.
4085         * modules/langinfo-c++-tests: New file, extracted from
4086         modules/langinfo-tests.
4087         * modules/langinfo-tests: Depend on it.
4088         * modules/locale-c++-tests: New file, extracted from
4089         modules/locale-tests.
4090         * modules/locale-tests: Depend on it.
4091         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4092         * modules/math-tests: Depend on it.
4093         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4094         * modules/pty-tests: Depend on it.
4095         * modules/search-c++-tests: New file, extracted from
4096         modules/search-tests.
4097         * modules/search-tests: Depend on it.
4098         * modules/signal-c++-tests: New file, extracted from
4099         modules/signal-tests.
4100         * modules/signal-tests: Depend on it.
4101         * modules/spawn-c++-tests: New file, extracted from
4102         modules/spawn-tests.
4103         * modules/spawn-tests: Depend on it.
4104         * modules/stdio-c++-tests: New file, extracted from
4105         modules/stdio-tests.
4106         * modules/stdio-tests: Depend on it.
4107         * modules/stdlib-c++-tests: New file, extracted from
4108         modules/stdlib-tests.
4109         * modules/stdlib-tests: Depend on it.
4110         * modules/string-c++-tests: New file, extracted from
4111         modules/string-tests.
4112         * modules/string-tests: Depend on it.
4113         * modules/sys_ioctl-c++-tests: New file, extracted from
4114         modules/sys_ioctl-tests.
4115         * modules/sys_ioctl-tests: Depend on it.
4116         * modules/sys_select-c++-tests: New file, extracted from
4117         modules/sys_select-tests.
4118         * modules/sys_select-tests: Depend on it.
4119         * modules/sys_socket-c++-tests: New file, extracted from
4120         modules/sys_socket-tests.
4121         * modules/sys_socket-tests: Depend on it.
4122         * modules/sys_stat-c++-tests: New file, extracted from
4123         modules/sys_stat-tests.
4124         * modules/sys_stat-tests: Depend on it.
4125         * modules/sys_time-c++-tests: New file, extracted from
4126         modules/sys_time-tests.
4127         * modules/sys_time-tests: Depend on it.
4128         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4129         * modules/time-tests: Depend on it.
4130         * modules/unistd-c++-tests: New file, extracted from
4131         modules/unistd-tests.
4132         * modules/unistd-tests: Depend on it.
4133         * modules/wchar-c++-tests: New file, extracted from
4134         modules/wchar-tests.
4135         * modules/wchar-tests: Depend on it.
4136         * modules/wctype-c++-tests: New file, extracted from
4137         modules/wctype-tests.
4138         * modules/wctype-tests: Depend on it.
4139         Reported by Simon Josefsson.
4140
4141 2010-03-28  Bruno Haible  <bruno@clisp.org>
4142
4143         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4144         * gnulib-tool (func_exists_module): New function, extracted from
4145         func_verify_module.
4146         (func_verify_module): Use it.
4147         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4148         'foo' only if 'foo' exists.
4149         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4150         module.
4151
4152 2010-03-28  Bruno Haible  <bruno@clisp.org>
4153
4154         gnulib-tool: Add support for special categories of tests.
4155         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4156         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4157         (func_usage): Document them.
4158         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4159         inc_unportable_tests, inc_all_tests): New variables.
4160         (func_acceptable): Consider these variables.
4161         (func_modules_transitive_closure): Make it work when the 'Status' field
4162         consists of multiple words.
4163         (func_import): Store and restore the values of inc_cxx_tests,
4164         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4165         inc_all_tests in gnulib-comp.m4.
4166         (func_create_testdir): Set inc_all_tests to true.
4167         * doc/gnulib.texi (Extra tests modules): New section.
4168         Suggested by Jim Meyering.
4169
4170 2010-03-28  Bruno Haible  <bruno@clisp.org>
4171
4172         ansi-c++-opt: Allow turning off the C++ build by default.
4173         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4174         gl_CXX_CHOICE_DEFAULT_NO is defined.
4175         Requested by Eric Blake.
4176
4177 2010-03-28  Bruno Haible  <bruno@clisp.org>
4178
4179         unistd: Avoid #define replacements in C++ mode.
4180         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4181         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4182         setsockopt, shutdown, select): In C++, attach a warning to the function
4183         if possible, rather than #defining the symbol to a dysfunctional alias.
4184         Reported by John W. Eaton <jwe@gnu.org>.
4185
4186 2010-03-28  Bruno Haible  <bruno@clisp.org>
4187
4188         Fix link errors on mingw.
4189         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4190         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4191         $(LIBSOCKET).
4192         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4193         $(LIBSOCKET).
4194
4195 2010-03-28  Bruno Haible  <bruno@clisp.org>
4196             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4197
4198         lib-ignore: Determine different options for different compilers.
4199         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4200         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4201         Add comments.
4202         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4203         * NEWS: Mention the change.
4204
4205 2010-03-27  Bruno Haible  <bruno@clisp.org>
4206
4207         Remove unused GNULIB_XYZ macro definitions.
4208         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4209         * modules/fseek (configure.ac): Likewise.
4210         * modules/ioctl (configure.ac): Likewise.
4211         * modules/open (configure.ac): Likewise.
4212         * modules/stdlib-safer (configure.ac): Likewise.
4213
4214 2010-03-27  Bruno Haible  <bruno@clisp.org>
4215
4216         Add a remark about certain modules.
4217         * modules/malloc (Comment): New section.
4218         * modules/realloc (Comment): Likewise.
4219         * modules/sigpipe (Comment): Likewise.
4220
4221 2010-03-27  Bruno Haible  <bruno@clisp.org>
4222
4223         Resolve conflict between the two kinds of module indicators.
4224         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4225         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4226         * modules/canonicalize (configure.ac): Invoke
4227         gl_MODULE_INDICATOR_FOR_TESTS.
4228         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4229         GNULIB_XYZ.
4230         * tests/test-dirent-c++.cc: Likewise.
4231         * tests/test-dirent-safer.c: Likewise.
4232         * tests/test-dup2.c: Likewise.
4233         * tests/test-fchdir.c: Likewise.
4234         * tests/test-fcntl-h-c++.cc: Likewise.
4235         * tests/test-getopt.c: Likewise.
4236         * tests/test-getopt.h: Likewise.
4237         * tests/test-langinfo-c++.cc: Likewise.
4238         * tests/test-locale-c++.cc: Likewise.
4239         * tests/test-math-c++.cc: Likewise.
4240         * tests/test-pty-c++.cc: Likewise.
4241         * tests/test-search-c++.cc: Likewise.
4242         * tests/test-signal-c++.cc: Likewise.
4243         * tests/test-spawn-c++.cc: Likewise.
4244         * tests/test-stdio-c++.cc: Likewise.
4245         * tests/test-stdlib-c++.cc: Likewise.
4246         * tests/test-string-c++.cc: Likewise.
4247         * tests/test-sys_ioctl-c++.cc: Likewise.
4248         * tests/test-sys_select-c++.cc: Likewise.
4249         * tests/test-sys_socket-c++.cc: Likewise.
4250         * tests/test-sys_stat-c++.cc: Likewise.
4251         * tests/test-sys_time-c++.cc: Likewise.
4252         * tests/test-time-c++.cc: Likewise.
4253         * tests/test-unistd-c++.cc: Likewise.
4254         * tests/test-wchar-c++.cc: Likewise.
4255         * tests/uninorm/test-u8-nfc.c: Likewise.
4256         * tests/uninorm/test-u8-nfd.c: Likewise.
4257         * tests/uninorm/test-u8-nfkc.c: Likewise.
4258         * tests/uninorm/test-u8-nfkd.c: Likewise.
4259         * tests/uninorm/test-u16-nfc.c: Likewise.
4260         * tests/uninorm/test-u16-nfd.c: Likewise.
4261         * tests/uninorm/test-u16-nfkc.c: Likewise.
4262         * tests/uninorm/test-u16-nfkd.c: Likewise.
4263         * tests/uninorm/test-u32-nfc.c: Likewise.
4264         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4265         * tests/uninorm/test-u32-nfd.c: Likewise.
4266         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4267         * tests/uninorm/test-u32-nfkc.c: Likewise.
4268         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4269         * tests/uninorm/test-u32-nfkd.c: Likewise.
4270         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4271         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4272
4273 2010-03-27  Bruno Haible  <bruno@clisp.org>
4274
4275         Distinguish two kinds of module indicators.
4276         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4277         gl_MODULE_INDICATOR.
4278         (gl_MODULE_INDICATOR): New macro.
4279         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4280         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4281         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4282         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4283         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4284         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4285         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4286         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4287         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4288         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4289         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4290         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4292         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4293         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4294         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4295         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4296         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4297         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4298         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4299         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4300         * modules/cloexec (configure.ac): Likewise.
4301         * modules/getopt-gnu (configure.ac): Likewise.
4302         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4303         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4304         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4305         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4306
4307 2010-03-27  Bruno Haible  <bruno@clisp.org>
4308
4309         New module description field 'Comment'.
4310         * gnulib-tool: New option --extract-comment.
4311         (func_usage): Document it.
4312         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4313         (func_get_comment): New function.
4314         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4315
4316 2010-03-27  Bruno Haible  <bruno@clisp.org>
4317
4318         Addendum to 2010-02-07 commit.
4319         * gnulib-tool (func_usage): Document --extract-applicability option.
4320
4321 2010-03-27  Bruno Haible  <bruno@clisp.org>
4322
4323         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4324         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4325         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4326         rather than link errors.
4327
4328 2010-03-27  Bruno Haible  <bruno@clisp.org>
4329
4330         Avoid side effects from tests-related modules on the compilation of lib.
4331         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4332         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4333         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4334         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4335         macro.
4336         (func_import): Define a witness macro. Assign it a value that depends
4337         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4338         tests-related modules.
4339         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4340         Reported by Jim Meyering.
4341
4342 2010-03-27  Bruno Haible  <bruno@clisp.org>
4343
4344         Factorize common .m4 code.
4345         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4346         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4347         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4348         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4349         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4350         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4351         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4352         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4353         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4354         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4355         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4356         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4357         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4358         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4359         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4360         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4361         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4362         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4364         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4365         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4367         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4369         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4370         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4371         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4372         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4373         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4374         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4375         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4376         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4377
4378 2010-03-27  Bruno Haible  <bruno@clisp.org>
4379
4380         Fix a compilation error on Cygwin with g++ >= 4.3.
4381         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4382         if it is undefined or if we alias it to chmod.
4383         (lstat): Don't warn about the use of this function if it is undefined
4384         or if we alias it to stat.
4385         Reported by Simon Josefsson.
4386
4387 2010-03-27  Bruno Haible  <bruno@clisp.org>
4388
4389         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4390         * modules/getlogin (configure.ac): Update.
4391
4392         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4393         * modules/getlogin_r (configure.ac): Update.
4394
4395         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4397         * modules/inet_ntop (configure.ac): Update.
4398
4399         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4400         * modules/inet_pton (configure.ac): Update.
4401
4402         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4403         * modules/mbslen (configure.ac): Update.
4404
4405         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4406         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4407         * modules/forkpty (configure.ac): Update.
4408         * modules/openpty (configure.ac): Update.
4409
4410 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4411
4412         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4413         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4414
4415 2010-03-25  Eric Blake  <eblake@redhat.com>
4416
4417         maint: use pragma consistently across replacement headers
4418         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4419         * lib/dirent.in.h (system_header): Likewise.
4420         * lib/errno.in.h (system_header): Likewise.
4421         * lib/float.in.h (system_header): Likewise.
4422         * lib/getopt.in.h (system_header): Likewise.
4423         * lib/iconv.in.h (system_header): Likewise.
4424         * lib/inttypes.in.h (system_header): Likewise.
4425         * lib/langinfo.in.h (system_header): Likewise.
4426         * lib/locale.in.h (system_header): Likewise.
4427         * lib/math.in.h (system_header): Likewise.
4428         * lib/netdb.in.h (system_header): Likewise.
4429         * lib/netinet_in.in.h (system_header): Likewise.
4430         * lib/pty.in.h (system_header): Likewise.
4431         * lib/sched.in.h (system_header): Likewise.
4432         * lib/se-selinux.in.h (system_header): Likewise.
4433         * lib/search.in.h (system_header): Likewise.
4434         * lib/spawn.in.h (system_header): Likewise.
4435         * lib/stdarg.in.h (system_header): Likewise.
4436         * lib/stdint.in.h (system_header): Likewise.
4437         * lib/string.in.h (system_header): Likewise.
4438         * lib/strings.in.h (system_header): Likewise.
4439         * lib/sys_file.in.h (system_header): Likewise.
4440         * lib/sys_ioctl.in.h (system_header): Likewise.
4441         * lib/sys_socket.in.h (system_header): Likewise.
4442         * lib/sys_times.in.h (system_header): Likewise.
4443         * lib/sys_utsname.in.h (system_header): Likewise.
4444         * lib/sys_wait.in.h (system_header): Likewise.
4445         * lib/sysexits.in.h (system_header): Likewise.
4446         * lib/unistd.in.h (system_header): Likewise.
4447         * lib/wctype.in.h (system_header): Likewise.
4448
4449         arpa/inet: fix mingw compilation warning
4450         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4451         Reported by Matthew Bolte.
4452
4453 2010-03-25  Bruno Haible  <bruno@clisp.org>
4454
4455         Avoid collision between gnulib wrapper and libintl wrapper.
4456         * lib/printf.c (printf): Don't define if a printf wrapper is already
4457         defined in intl/printf.c.
4458         Reported by Michel Boaventura <michel@michelboaventura.com>.
4459
4460 2010-03-25  Bruno Haible  <bruno@clisp.org>
4461
4462         Use ANSI C.
4463         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4464
4465 2010-03-25  Bruno Haible  <bruno@clisp.org>
4466
4467         Minor formatting changes.
4468         * lib/acosl.c: Insert space before function argument list.
4469         * lib/argz.c: Likewise.
4470         * lib/asinl.c: Likewise.
4471         * lib/expl.c: Likewise.
4472         * lib/gen-uni-tables.c: Likewise.
4473         * lib/gettext.h: Likewise.
4474         * lib/glthread/lock.h: Likewise.
4475         * lib/tanl.c: Likewise.
4476         * lib/uniname/uniname.c: Likewise.
4477         * tests/test-idpriv-drop.c: Likewise.
4478         * tests/test-idpriv-droptemp.c: Likewise.
4479         * tests/test-lock.c: Likewise.
4480         * tests/test-tls.c: Likewise.
4481         * lib/argp-help.c: Insert space before function-like macro argument
4482         list.
4483         * lib/memcmp.c: Likewise.
4484         * tests/test-base64.c: Likewise.
4485         * lib/localename.c: Insert space before sizeof's argument list.
4486         * lib/safe-alloc.h: Likewise.
4487         * lib/file-set.h: Insert space before macro argument list.
4488         * tests/test-argp.c: Likewise.
4489         * lib/argp-namefrob.h: Insert space before function parameter list.
4490         * lib/getaddrinfo.c: Likewise.
4491         * lib/netdb.in.h: Likewise.
4492         * lib/parse-duration.h: Likewise.
4493         * lib/parse-duration.c: Likewise.
4494         * lib/poll.c: Likewise.
4495         * lib/select.c: Likewise.
4496         * lib/trim.h: Likewise.
4497         * tests/test-usleep.c: Likewise.
4498         * lib/ldexpl.c: Insert space before function parameter list and before
4499         function argument list.
4500         * lib/logl.c: Likewise.
4501         * lib/sqrtl.c: Likewise.
4502         * lib/trim.c: Likewise.
4503         * lib/cosl.c: Use GNU style indentation. Insert space before function
4504         argument list.
4505         * lib/sinl.c: Likewise.
4506         * lib/tsearch.c: Insert space after 'for'.
4507         Reported by Jim Meyering.
4508
4509 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4510
4511         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4512         config header before grepping, as it's not present before
4513         autoreconf/configure are run.  Reported by Simon Josefsson.
4514
4515 2010-03-23  Bruno Haible  <bruno@clisp.org>
4516
4517         pt_chown: Make it work with automake < 1.11.
4518         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4519         Reported by Simon Josefsson.
4520
4521 2010-03-23  Bruno Haible  <bruno@clisp.org>
4522
4523         pt_chown: Don't depend on GPLed modules.
4524         * lib/pt_chown.c: Don't include idpriv.h.
4525         (main): Don't drop privileges.
4526         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4527         Reported by Simon Josefsson.
4528
4529 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4530
4531         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4532         suggestions from karl@freefriends.org (Karl Berry).
4533
4534 2010-03-22  Eric Blake  <eblake@redhat.com>
4535
4536         gethostname: further tweaks
4537         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4538         are overriding gethostname.
4539         Suggested by Bruno Haible.
4540
4541 2010-03-21  Bruno Haible  <bruno@clisp.org>
4542
4543         Fix comments.
4544         * lib/forkpty.c (rpl_forkpty): Fix comment.
4545         * lib/openpty.c (rpl_openpty): Likewise.
4546         Reported by Eric Blake.
4547
4548 2010-03-22  Eric Blake  <eblake@redhat.com>
4549
4550         gethostname: fix build on mingw
4551         * lib/unistd.in.h (includes): Work around fact that mingw
4552         <winsock2.h> re-includes <unistd.h>, by avoiding any
4553         redeclarations if we are being included by <winsock2.h>.
4554         Reported by Matthias Bolte.
4555
4556 2010-03-21  Bruno Haible  <bruno@clisp.org>
4557
4558         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4559         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4560         modifications.
4561         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4562         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4563         provide the replacement.
4564         * modules/forkpty (Depends-on): Add openpty, login_tty.
4565         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4566         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4567         * doc/glibc-functions/forkpty.texi: More supported platforms.
4568         * config/srclist.txt: Add forkpty.c (commented).
4569
4570 2010-03-21  Bruno Haible  <bruno@clisp.org>
4571
4572         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4573         (Makefile.am): Verify that PTY_LIB is defined.
4574
4575         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4576
4577 2010-03-21  Bruno Haible  <bruno@clisp.org>
4578
4579         Tests for module 'login_tty'.
4580         * modules/login_tty-tests: New file.
4581         * tests/test-login_tty.c: New file.
4582
4583         New module 'login_tty'.
4584         * lib/login_tty.c: New file.
4585         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4586         * modules/login_tty: New file.
4587         * doc/glibc-functions/login_tty.texi: Mention the new module.
4588
4589 2010-03-21  Bruno Haible  <bruno@clisp.org>
4590
4591         login_tty: Documentation.
4592         * doc/glibc-functions/login_tty.texi: New file.
4593         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4594
4595 2010-03-21  Bruno Haible  <bruno@clisp.org>
4596
4597         pty: Consistent macro naming.
4598         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4599         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4600         * modules/pty (configure.ac): Update.
4601
4602 2010-03-21  Bruno Haible  <bruno@clisp.org>
4603
4604         Tests for openpty: Make stricter.
4605         * tests/test-openpty.c (main): Add test of canonical processing and
4606         erase.
4607         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4608
4609         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4610         * lib/openpty.c (openpty): New replacement function.
4611         * lib/pty.in.h: Include <termios.h>.
4612         (openpty): Update declaration. Add comments.
4613         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4614         is not declared, arrange to provide the replacement. Check for _getpty
4615         and posix_openpt.
4616         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4617         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4618         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4619         * modules/pty-tests (test_pty_c___LDADD): New variable.
4620         * doc/glibc-functions/openpty.texi: More supported platforms.
4621
4622 2010-03-21  Bruno Haible  <bruno@clisp.org>
4623
4624         setenv: Tweaks.
4625         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4626         the test program.
4627         * doc/posix-functions/setenv.texi: Update platforms list.
4628
4629 2010-03-21  Bruno Haible  <bruno@clisp.org>
4630
4631         New module 'unlockpt'.
4632         * lib/unlockpt.c: New file, from glibc with modifications.
4633         * m4/unlockpt.m4: New file.
4634         * modules/unlockpt: New file.
4635         * lib/stdlib.in.h (unlockpt): New declaration.
4636         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4637         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4638         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4639         HAVE_UNLOCKPT.
4640         * doc/posix-functions/unlockpt.texi: Mention the new module.
4641         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4642         * config/srclist.txt: Add unlockpt.c (commented).
4643
4644 2010-03-21  Jim Meyering  <meyering@redhat.com>
4645
4646         maint.mk: prohibit inclusion of "intprops.h" without use
4647         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4648
4649 2010-03-21  Bruno Haible  <bruno@clisp.org>
4650
4651         New module 'grantpt'.
4652         * lib/grantpt.c: New file, from glibc with modifications.
4653         * m4/grantpt.m4: New file.
4654         * modules/grantpt: New file.
4655         * lib/stdlib.in.h (grantpt): New declaration.
4656         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4657         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4658         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4659         HAVE_GRANTPT.
4660         * doc/posix-functions/grantpt.texi: Mention the new module.
4661         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4662         * config/srclist.txt: Add grantpt.c (commented).
4663
4664 2010-03-21  Bruno Haible  <bruno@clisp.org>
4665
4666         New module 'pt_chown'.
4667         * lib/pt_chown.c: New file, from glibc with modifications.
4668         * lib/pty-private.h: New file, from glibc with modifications.
4669         * modules/pt_chown: New file.
4670         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4671
4672 2010-03-21  Bruno Haible  <bruno@clisp.org>
4673
4674         Tests for module 'ptsname'.
4675         * modules/ptsname-tests: New file.
4676         * tests/test-ptsname.c: New file.
4677
4678         New module 'ptsname'.
4679         * lib/ptsname.c: New file, from glibc with modifications.
4680         * m4/ptsname.m4: New file.
4681         * modules/ptsname: New file.
4682         * lib/stdlib.in.h (ptsname): New declaration.
4683         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4684         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4685         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4686         HAVE_PTSNAME.
4687         * doc/posix-functions/ptsname.texi: Mention the new module.
4688         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4689         * config/srclist.txt: Add ptsname.c (commented).
4690
4691 2010-03-21  Bruno Haible  <bruno@clisp.org>
4692
4693         Tests for module 'ttyname_r'.
4694         * modules/ttyname_r-tests: New file.
4695         * tests/test-ttyname_r.c: New file.
4696
4697         New module 'ttyname_r'.
4698         * lib/ttyname_r.c: New file.
4699         * m4/ttyname_r.m4: New file.
4700         * modules/ttyname_r: New file.
4701         * lib/unistd.in.h (ttyname_r): New declaration.
4702         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4703         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4704         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4705         HAVE_TTYNAME_R.
4706         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4707         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4708
4709 2010-03-20  Bruno Haible  <bruno@clisp.org>
4710
4711         signal: Undefine macro definitions in C++ mode.
4712         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4713         sigfillset): Undefine macro definitions from the system header in C++
4714         mode.
4715         Reported by John W. Eaton <jwe@gnu.org>.
4716
4717 2010-03-20  Bruno Haible  <bruno@clisp.org>
4718
4719         Ensure no #include statements inside extern "C" { ... }.
4720         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4721         contain #include statements.
4722         * lib/time.in.h: Likewise.
4723
4724 2010-03-20  Bruno Haible  <bruno@clisp.org>
4725
4726         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4727         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4728         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4729         Reported by John W. Eaton <jwe@gnu.org>.
4730
4731 2010-03-20  Bruno Haible  <bruno@clisp.org>
4732
4733         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4734         Reported by Jim Meyering.
4735
4736 2010-03-20  Bruno Haible  <bruno@clisp.org>
4737
4738         pipe: Set errno upon failure.
4739         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4740         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4741         errno value in error message.
4742
4743 2010-03-20  Bruno Haible  <bruno@clisp.org>
4744             Jim Meyering  <meyering@redhat.com>
4745
4746         lchown: Avoid "unused variable" warning.
4747         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4748
4749 2010-03-20  Bruno Haible  <bruno@clisp.org>
4750
4751         Work around unlink() bug on MacOS X 10.5.6.
4752         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4753         attempting to unlink a parent directory.
4754         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4755         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4756         activate for the replacement function.
4757         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4758
4759 2010-03-20  Bruno Haible  <bruno@clisp.org>
4760
4761         Fix link errors on Solaris 8.
4762         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4763         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4764
4765 2010-03-19  Jim Meyering  <meyering@redhat.com>
4766
4767         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4768         The _LIBC implementation of build_range_exp correctly honors the
4769         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4770         However, the non-_LIBC implementation would ignore that syntax-bit
4771         flag and return REG_ERANGE unconditionally.
4772         This change makes it honor that flag.
4773         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4774         Make two pointer parameters "const".
4775         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4776         (parse_bracket_exp): Update caller.
4777
4778         regex.m4: correct the reversed range endpoint ([b-a]) test
4779         * m4/regex.m4: When requiring that [b-a] evoke failure,
4780         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4781         test pass once again for x86-based systems.
4782
4783 2010-03-19  Bruno Haible  <bruno@clisp.org>
4784
4785         scandir: Fix link error on Solaris 8.
4786         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4787         macros.
4788
4789 2010-03-19  Bruno Haible  <bruno@clisp.org>
4790
4791         getusershell: Fix documentation.
4792         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4793         module.
4794         * doc/glibc-functions/setusershell.texi: Likewise.
4795
4796         getusershell: Provide declaration, missing on Solaris 9.
4797         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4798         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4799         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4800         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4802         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4803         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4804         HAVE_GETUSERSHELL.
4805         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4806
4807 2010-03-19  Bruno Haible  <bruno@clisp.org>
4808
4809         wctype: Provide iswblank function.
4810         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4811         exists and is fine.
4812         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4813         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4814         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4815         * doc/posix-functions/iswblank.texi: Update.
4816
4817 2010-03-19  Bruno Haible  <bruno@clisp.org>
4818
4819         Tests of module 'pty' in C++ mode.
4820         * modules/pty-tests: New file.
4821         * tests/test-pty-c++.cc: New file.
4822         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4823
4824 2010-03-19  Eric Blake  <eblake@redhat.com>
4825
4826         logb: fix documentation
4827         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4828         1.5 declaration bug.
4829
4830         forkpty, openpty: prefer glibc's const-safe prototype
4831         * lib/forkpty.c (rpl_forkpty): New file.
4832         * lib/openpty.c (rpl_openpty): Likewise.
4833         * modules/forkpty (Files): Distribute it.
4834         * modules/openpty (Files): Likewise.
4835         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4836         check...
4837         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4838         replacement for for non-const BSD signature.
4839         * modules/pty (Makefile.am): Substitute witnesses.
4840         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4841         * tests/test-forkpty.c: Update signature check.
4842         * tests/test-openpty.c: Likewise.
4843         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4844         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4845
4846         forkpty, openpty: split functions into new modules
4847         * modules/pty (Makefile.am): Substitute new witnesses.
4848         (Libraries): Move library detection...
4849         * modules/forkpty: ...into new module.
4850         * modules/openpty: Another new module.
4851         * modules/pty-tests: Rename and split...
4852         * modules/forkpty-tests: ...to this...
4853         * modules/openpty-tests: ...and this.
4854         * tests/test-pty.c: Rename and split...
4855         * tests/test-forkpty.c: ...to this...
4856         * tests/test-openpty.c: ...and this.
4857         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4858         (gl_PTY): Split library searching...
4859         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4860         (gl_FORKPTY, gl_OPENPTY): New macros.
4861         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4862         * NEWS: Mention the split.
4863         * MODULES.html.sh (Misc): Document the modules.
4864         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4865         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4866
4867         pty: improve replacement header
4868         * lib/pty.in.h: New file.
4869         * modules/pty (Files): Ship it.
4870         (Makefile.am): Always build replacement.
4871         * m4/pty.m4: Rename...
4872         * m4/pty_h.m4: ...to this.
4873         (gl_PTY): Modernize setting of witness macros; update check of
4874         forkpty to take proper advantage of cache.
4875         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4876
4877         getopt: avoid compiler warning
4878         * lib/getopt.c (attribute_hidden): Remove unused macro.
4879
4880 2010-03-18  Bruno Haible  <bruno@clisp.org>
4881
4882         Fix link errors on Solaris 8.
4883         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4884         * modules/search-tests (test_search_c___LDADD): Likewise.
4885         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4886         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4887         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4888         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4889         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4890         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4891         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4892
4893 2010-03-18  Bruno Haible  <bruno@clisp.org>
4894
4895         Fix bug introduced on 2010-03-14.
4896         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4897         (gl_SPAWN_H): Require it.
4898         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4899         Reported by Simon Josefsson.
4900
4901 2010-03-18  Bruno Haible  <bruno@clisp.org>
4902
4903         Fix typo introduced on 2009-12-31.
4904         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4905         posix_spawn_file_actions_adddup2.
4906
4907 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4908         and Eric Blake  <eblake@redhat.com>
4909
4910         test-vc-list-files-git: make more robust
4911         * tests/test-vc-list-files-git.sh: Unset problematic environment
4912         variables.  Chain commands together.
4913
4914 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4915
4916         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4917         `AC_CHECK_DECL' invocation.
4918
4919 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4920
4921         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4922         appears before executable statements. Suggested by Petr Sumbera
4923         <Petr.Sumbera@Sun.COM>.
4924
4925 2010-03-14  Bruno Haible  <bruno@clisp.org>
4926
4927         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4928         portability problems. Instead use a simpler test.
4929         (main): Check that invalid arguments are rejected only on Linux.
4930
4931 2010-03-14  Bruno Haible  <bruno@clisp.org>
4932
4933         Fix bug introduced on 2009-12-31.
4934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4935         gl_PREREQ_SYS_H_WINSOCK2 always.
4936         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4937         SYS_SOCKET_H variable.
4938         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4939         Update comments.
4940         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4941         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4942         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4943         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4944         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4945
4946 2010-03-14  Bruno Haible  <bruno@clisp.org>
4947
4948         Fix values returned by sinl, cosl.
4949         * lib/trigl.h: Add specification comments.
4950         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4951         that combines the values from the precomputed table with the values of
4952         the Chebyshev polynomials.
4953
4954 2010-03-14  Bruno Haible  <bruno@clisp.org>
4955
4956         Fix compilation error when modules 'posix_spawn[p]' are not used.
4957         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4958         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4959
4960 2010-03-14  Bruno Haible  <bruno@clisp.org>
4961
4962         Fix compilation error on mingw when module 'time_r' is not used.
4963         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4964         is 1.
4965         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4966         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4967         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4969
4970 2010-03-14  Bruno Haible  <bruno@clisp.org>
4971
4972         Fix compilation error with Sun C.
4973         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4974         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4975         instead of GCC specific ULONG_LONG_MAX.
4976         * lib/xstrtoll.c: Likewise.
4977         * lib/xstrtoull.c: Likewise.
4978
4979 2010-03-13  Bruno Haible  <bruno@clisp.org>
4980
4981         Allow the user to disable C++ code and tests.
4982         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4983         (gl_PROG_ANSI_CXX): Require it.
4984
4985 2010-03-13  Bruno Haible  <bruno@clisp.org>
4986
4987         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4988         cases.
4989
4990 2010-03-13  Bruno Haible  <bruno@clisp.org>
4991
4992         Test that gnulib does not break the standard C++ headers.
4993         * tests/test-locale-c++2.cc: New file.
4994         * modules/locale-tests (Files): Add it.
4995         (Makefile.am): Compile it for test-locale-c++.
4996         * tests/test-math-c++2.cc: New file.
4997         * modules/math-tests (Files): Add it.
4998         (Makefile.am): Compile it for test-math-c++.
4999         * tests/test-signal-c++2.cc: New file.
5000         * modules/signal-tests (Files): Add it.
5001         (Makefile.am): Compile it for test-signal-c++.
5002         * tests/test-stdio-c++2.cc: New file.
5003         * modules/stdio-tests (Files): Add it.
5004         (Makefile.am): Compile it for test-stdio-c++.
5005         * tests/test-stdlib-c++2.cc: New file.
5006         * modules/stdlib-tests (Files): Add it.
5007         (Makefile.am): Compile it for test-stdlib-c++.
5008         * tests/test-string-c++2.cc: New file.
5009         * modules/string-tests (Files): Add it.
5010         (Makefile.am): Compile it for test-string-c++.
5011         * tests/test-time-c++2.cc: New file.
5012         * modules/time-tests (Files): Add it.
5013         (Makefile.am): Compile it for test-time-c++.
5014         Reported by John W. Eaton <jwe@gnu.org>.
5015
5016 2010-03-13  Bruno Haible  <bruno@clisp.org>
5017
5018         * gnulib-tool (func_usage): Clarify which options are available for
5019         --create-testdir and --create-megatestdir.
5020
5021 2010-03-13  Bruno Haible  <bruno@clisp.org>
5022
5023         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5024         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5025         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5026         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5027         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5028         when appropriate.
5029         Reported by Jim Meyering.
5030
5031 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5032
5033         * gnulib-tool (func_import): Explain origin of code.
5034
5035 2010-03-12  Bruno Haible  <bruno@clisp.org>
5036
5037         Fix problem with automake's definition of CXXLINK.
5038         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5039         Reported by Simon Josefsson and Ludovic Courtès.
5040
5041 2010-03-12  Bruno Haible  <bruno@clisp.org>
5042
5043         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5044         stable releases.
5045
5046 2010-03-11  Bruno Haible  <bruno@clisp.org>
5047
5048         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5049         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5050         whether the system provides one variant or multiple variants of the
5051         function.
5052         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5053         C++ compilers.
5054         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5055         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5056         Reported by Jim Meyering.
5057
5058 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5059
5060         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5061
5062 2010-03-08  Bruno Haible  <bruno@clisp.org>
5063
5064         gnulib-tool: Add support for --libtool in --create-testdir.
5065         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5066         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5067
5068 2010-03-08  Eric Blake  <eblake@redhat.com>
5069
5070         gnulib-tool.texi: mention possibility of git submodule
5071         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5072         submodules.
5073         * doc/.gitignore: Ignore another generated file.
5074
5075 2010-03-08  Karl Berry  <karl@gnu.org>
5076
5077         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5078         of committing gnulib files while skipping others.
5079
5080 2010-03-07  Bruno Haible  <bruno@clisp.org>
5081
5082         Tests of module 'wctype' in C++ mode.
5083         * tests/test-wctype-c++.cc: New file.
5084         * modules/wctype-tests (Files): Add it and tests/signature.h.
5085         (Depends-on): Add ansi-c++-opt.
5086         (Makefile.am): Arrange to compile and run test-wctype-c++.
5087
5088         Tests of module 'wchar' in C++ mode.
5089         * tests/test-wchar-c++.cc: New file.
5090         * modules/wchar-tests (Files): Add it and tests/signature.h.
5091         (Depends-on): Add ansi-c++-opt.
5092         (Makefile.am): Arrange to compile and run test-wchar-c++.
5093         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5094         gl_MODULE_INDICATOR.
5095
5096         Tests of module 'unistd' in C++ mode.
5097         * tests/test-unistd-c++.cc: New file.
5098         * modules/unistd-tests (Files): Add it and tests/signature.h.
5099         (Depends-on): Add ansi-c++-opt.
5100         (Makefile.am): Arrange to compile and run test-unistd-c++.
5101         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5102         gl_MODULE_INDICATOR.
5103
5104         Tests of module 'time' in C++ mode.
5105         * tests/test-time-c++.cc: New file.
5106         * modules/time-tests (Files): Add it and tests/signature.h.
5107         (Depends-on): Add ansi-c++-opt.
5108         (Makefile.am): Arrange to compile and run test-time-c++.
5109         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5110
5111         Tests of module 'sys_time' in C++ mode.
5112         * tests/test-sys_time-c++.cc: New file.
5113         * modules/sys_time-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_time-c++.
5116         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5117         gl_MODULE_INDICATOR.
5118
5119         Tests of module 'sys_stat' in C++ mode.
5120         * tests/test-sys_stat-c++.cc: New file.
5121         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5122         (Depends-on): Add ansi-c++-opt.
5123         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5124         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5125         gl_MODULE_INDICATOR.
5126
5127         Tests of module 'sys_socket' in C++ mode.
5128         * tests/test-sys_socket-c++.cc: New file.
5129         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5130         (Depends-on): Add ansi-c++-opt.
5131         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5133         gl_MODULE_INDICATOR.
5134
5135         Tests of module 'sys_select' in C++ mode.
5136         * tests/test-sys_select-c++.cc: New file.
5137         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5138         (Depends-on): Add ansi-c++-opt.
5139         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5140         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5141         gl_MODULE_INDICATOR.
5142
5143         Tests of module 'sys_ioctl' in C++ mode.
5144         * tests/test-sys_ioctl-c++.cc: New file.
5145         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5146         (Depends-on): Add ansi-c++-opt.
5147         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5148         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5149         gl_MODULE_INDICATOR.
5150
5151         Tests of module 'string' in C++ mode.
5152         * tests/test-string-c++.cc: New file.
5153         * modules/string-tests (Files): Add it and tests/signature.h.
5154         (Depends-on): Add ansi-c++-opt.
5155         (Makefile.am): Arrange to compile and run test-string-c++.
5156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5157         gl_MODULE_INDICATOR.
5158
5159         Tests of module 'stdlib' in C++ mode.
5160         * tests/test-stdlib-c++.cc: New file.
5161         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5162         (Depends-on): Add ansi-c++-opt.
5163         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5164         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5165         gl_MODULE_INDICATOR.
5166
5167         Tests of module 'stdio' in C++ mode.
5168         * tests/test-stdio-c++.cc: New file.
5169         * modules/stdio-tests (Files): Add it and tests/signature.h.
5170         (Depends-on): Add ansi-c++-opt.
5171         (Makefile.am): Arrange to compile and run test-stdio-c++.
5172         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5173         gl_MODULE_INDICATOR.
5174
5175         Tests of module 'spawn' in C++ mode.
5176         * tests/test-spawn-c++.cc: New file.
5177         * modules/spawn-tests (Files): Add it and tests/signature.h.
5178         (Depends-on): Add ansi-c++-opt.
5179         (Makefile.am): Arrange to compile and run test-spawn-c++.
5180         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5181         gl_MODULE_INDICATOR.
5182
5183         Tests of module 'signal' in C++ mode.
5184         * tests/test-signal-c++.cc: New file.
5185         * modules/signal-tests (Files): Add it and tests/signature.h.
5186         (Depends-on): Add ansi-c++-opt.
5187         (Makefile.am): Arrange to compile and run test-signal-c++.
5188         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5189         gl_MODULE_INDICATOR.
5190
5191         Tests of module 'search' in C++ mode.
5192         * tests/test-search-c++.cc: New file.
5193         * modules/search-tests (Files): Add it and tests/signature.h.
5194         (Depends-on): Add ansi-c++-opt.
5195         (Makefile.am): Arrange to compile and run test-search-c++.
5196         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5197         gl_MODULE_INDICATOR.
5198
5199         Tests of module 'math' in C++ mode.
5200         * tests/test-math-c++.cc: New file.
5201         * modules/math-tests (Files): Add it and tests/signature.h.
5202         (Depends-on): Add ansi-c++-opt.
5203         (Makefile.am): Arrange to compile and run test-math-c++.
5204         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5205
5206         Tests of module 'locale' in C++ mode.
5207         * tests/test-locale-c++.cc: New file.
5208         * modules/locale-tests (Files): Add it and tests/signature.h.
5209         (Depends-on): Add ansi-c++-opt.
5210         (Makefile.am): Arrange to compile and run test-locale-c++.
5211         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5212         gl_MODULE_INDICATOR.
5213
5214         Tests of module 'langinfo' in C++ mode.
5215         * tests/test-langinfo-c++.cc: New file.
5216         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5217         (Depends-on): Add ansi-c++-opt.
5218         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5219         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5220         gl_MODULE_INDICATOR.
5221
5222         Tests of module 'iconv-h' in C++ mode.
5223         * tests/test-iconv-h-c++.cc: New file.
5224         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5225         (Depends-on): Add ansi-c++-opt.
5226         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5227
5228         Tests of module 'glob' in C++ mode.
5229         * tests/test-glob-c++.cc: New file.
5230         * modules/glob-tests (Files): Add it.
5231         (Depends-on): Add ansi-c++-opt.
5232         (Makefile.am): Arrange to compile and run test-glob-c++.
5233
5234         Tests of module 'fcntl-h' in C++ mode.
5235         * tests/test-fcntl-h-c++.cc: New file.
5236         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5237         (Depends-on): Add ansi-c++-opt.
5238         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5239         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5240         gl_MODULE_INDICATOR.
5241
5242         Tests of module 'dirent' in C++ mode.
5243         * tests/test-dirent-c++.cc: New file.
5244         * modules/dirent-tests (Files): Add it and tests/signature.h.
5245         (Depends-on): Add ansi-c++-opt.
5246         (Makefile.am): Arrange to compile and run test-dirent-c++.
5247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5248         gl_MODULE_INDICATOR.
5249
5250         New module 'ansi-c++-opt'.
5251         * modules/ansi-c++-opt: New file.
5252         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5253
5254         Document C++ namespace mode.
5255         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5256
5257         wctype: Avoid #define replacements in C++ mode.
5258         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5259         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5260         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5261         In C++, define a namespaced alias symbol.
5262         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5263         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5264         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5265         rule.
5266
5267         wchar: Avoid #define replacements in C++ mode.
5268         * lib/wchar.in.h: Include c++defs.h.
5269         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5270         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5271         symbol.
5272         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5273         * modules/wchar (Depends-on): Add c++defs.
5274         (Makefile.am): Update wchar.h rule.
5275
5276         unistd: Avoid #define replacements in C++ mode.
5277         * lib/unistd.in.h: Include c++defs.h.
5278         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5279         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5280         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5281         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5282         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5283         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5284         symbol.
5285         (environ): Update.
5286         * modules/unistd (Depends-on): Add c++defs.
5287         (Makefile.am): Update unistd.h rule.
5288
5289         time: Avoid #define replacements in C++ mode.
5290         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5291         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5292         define a namespaced alias symbol.
5293         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5294         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5295         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5296         * modules/time (Depends-on): Add c++defs, warn-on-use.
5297         (Makefile.am): Update time.h rule.
5298         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5299         * modules/nanosleep (configure.ac): Likewise.
5300         * modules/strptime (configure.ac): Likewise.
5301         * modules/timegm (configure.ac): Likewise.
5302
5303         sys_time: Avoid #define replacements in C++ mode.
5304         * lib/sys_time.in.h: Include c++defs.h.
5305         (gettimeofday): In C++, define a namespaced alias symbol.
5306         * modules/sys_time (Depends-on): Add c++defs.
5307         (Makefile.am): Update sys/time.h rule.
5308
5309         sys_stat: Avoid #define replacements in C++ mode.
5310         * lib/sys_stat.in.h: Include c++defs.h.
5311         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5312         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5313         namespaced alias symbol.
5314         In C++, define a namespaced alias symbol.
5315         * modules/sys_stat (Depends-on): Add c++defs.
5316         (Makefile.am): Update sys/stat.h rule.
5317
5318         sys_socket: Avoid #define replacements in C++ mode.
5319         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5320         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5321         definitions also when the system has a <sys/socket.h>.
5322         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5323         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5324         In C++, define a namespaced alias symbol.
5325         * modules/sys_socket (Depends-on): Add c++defs.
5326         (Makefile.am): Update sys/socket.h rule.
5327
5328         sys_select: Avoid #define replacements in C++ mode.
5329         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5330         definitions also when the system has a <sys/select.h>.
5331         (select): In C++, define a namespaced alias symbol.
5332         * modules/sys_select (Depends-on): Add c++defs.
5333         (Makefile.am): Update sys/select.h rule.
5334
5335         sys_ioctl: Avoid #define replacements in C++ mode.
5336         * lib/sys_ioctl.in.h: Include c++defs.h.
5337         (ioctl): In C++, define a namespaced alias symbol.
5338         * modules/sys_ioctl (Depends-on): Add c++defs.
5339         (Makefile.am): Update sys/ioctl.h rule.
5340
5341         string: Avoid #define replacements in C++ mode.
5342         * lib/string.in.h: Include c++defs.h.
5343         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5344         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5345         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5346         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5347         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5348         * modules/string (Depends-on): Add c++defs.
5349         (Makefile.am): Update string.h rule.
5350
5351         stdlib: Avoid #define replacements in C++ mode.
5352         * lib/stdlib.in.h: Include c++defs.h.
5353         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5354         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5355         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5356         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5357         symbol.
5358         * modules/stdlib (Depends-on): Add c++defs.
5359         (Makefile.am): Update stdlib.h rule.
5360
5361         stdio: Avoid #define replacements in C++ mode.
5362         * lib/stdio.in.h: Include c++defs.h.
5363         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5364         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5365         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5366         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5367         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5368         namespaced alias symbol.
5369         * modules/stdio (Depends-on): Add c++defs.
5370         (Makefile.am): Update stdio.h rule.
5371
5372         spawn: Avoid #define replacements in C++ mode.
5373         * lib/spawn.in.h: Include c++defs.h.
5374         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5375         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5376         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5377         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5378         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5379         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5380         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5381         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5382         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5383         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5384         In C++, define a namespaced alias symbol.
5385         * modules/spawn (Depends-on): Add c++defs.
5386         (Makefile.am): Update spawn.h rule.
5387
5388         signal: Avoid #define replacements in C++ mode.
5389         * lib/signal.in.h: Include c++defs.h.
5390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5391         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5392         namespaced alias symbol.
5393         * modules/signal (Depends-on): Add c++defs.
5394         (Makefile.am): Update signal.h rule.
5395
5396         search: Avoid #define replacements in C++ mode.
5397         * lib/search.in.h: Include c++defs.h.
5398         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5399         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5400         symbol.
5401         * modules/search (Depends-on): Add c++defs.
5402         (Makefile.am): Update search.h rule.
5403
5404         math: Avoid #define replacements in C++ mode.
5405         * lib/math.in.h: Include c++defs.h.
5406         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5407         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5408         trunc, truncl): In C++, define a namespaced alias symbol.
5409         * modules/math (Depends-on): Add c++defs.
5410         (Makefile.am): Update math.h rule.
5411
5412         locale: Avoid #define replacements in C++ mode.
5413         * lib/locale.in.h: Include c++defs.h.
5414         (duplocale): In C++, define a namespaced alias symbol.
5415         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5416         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5417         * modules/locale (Depends-on): Add c++defs.
5418         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5419
5420         langinfo: Avoid #define replacements in C++ mode.
5421         * lib/langinfo.in.h: Include c++defs.h.
5422         (nl_langinfo): In C++, define a namespaced alias symbol.
5423         * modules/langinfo (Depends-on): Add c++defs.
5424         (Makefile.am): Update langinfo.h rule.
5425
5426         iconv-h: Avoid #define replacements in C++ mode.
5427         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5428         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5429         symbol.
5430         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5431         whenever iconv is present.
5432         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5433         (Makefile.am): Update iconv.h rule.
5434
5435         glob: Avoid #define replacements in C++ mode.
5436         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5437         (_gl_glob_errfunc_fn): New type.
5438         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5439         symbol.
5440         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5441         (Makefile.am): Update glob.h rule.
5442
5443         fcntl-h: Avoid #define replacements in C++ mode.
5444         * lib/fcntl.in.h: Include c++defs.h.
5445         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5446         * modules/fcntl-h (Depends-on): Add c++defs.
5447         (Makefile.am): Update fcntl.h rule.
5448
5449         dirent: Avoid #define replacements in C++ mode.
5450         * lib/dirent.in.h: Include c++defs.h.
5451         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5452         namespaced alias symbol.
5453         (dirfd): Update declaration.
5454         * modules/dirent (Depends-on): Add c++defs.
5455         (Makefile.am): Update dirent.h rule.
5456
5457         ctype: Make it usable in C++ code.
5458         * lib/ctype.in.h: Include c++defs.h.
5459         (isblank): Declare as extern "C".
5460         * modules/ctype (Depends-on): Add c++defs.
5461         (Makefile.am): Update ctype.h rule.
5462
5463         New module 'c++defs'.
5464         * modules/c++defs: New file.
5465         * build-aux/c++defs.h: New file.
5466         Reported by John W. Eaton <jwe@gnu.org>.
5467
5468 2010-03-07  Bruno Haible  <bruno@clisp.org>
5469
5470         logb: Provide missing declaration for Cygwin.
5471         * lib/math.in.h (logb): New declaration.
5472         * m4/logb.m4: New file.
5473         * modules/logb (Files): Add m4/logb.m4.
5474         (Depends-on): Add math.
5475         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5476         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5478         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5479         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5480
5481 2010-03-07  Bruno Haible  <bruno@clisp.org>
5482
5483         Fix test-cond link error.
5484         * tests/test-cond.c: Include <stdio.h>.
5485
5486 2010-03-07  Bruno Haible  <bruno@clisp.org>
5487
5488         Fix test-dirent-safer link error.
5489         * modules/dirent-safer-tests (Makefile.am): Define
5490         test_dirent_safer_LDADD.
5491
5492 2010-03-07  Bruno Haible  <bruno@clisp.org>
5493
5494         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5495         among default module list.
5496
5497 2010-03-07  Bruno Haible  <bruno@clisp.org>
5498
5499         Fix link error on platforms with GNU libiconv.
5500         * modules/unistr/u8-strcoll-tests (Makefile): Define
5501         test_u8_strcoll_LDADD.
5502         * modules/unistr/u16-strcoll-tests (Makefile): Define
5503         test_u16_strcoll_LDADD.
5504         * modules/unistr/u32-strcoll-tests (Makefile): Define
5505         test_u32_strcoll_LDADD.
5506
5507 2010-03-07  Bruno Haible  <bruno@clisp.org>
5508
5509         Use POSIX declarations for socket functions.
5510         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5511         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5512         rpl_sendto): Change declaration to match POSIX.
5513         * lib/connect.c (rpl_connect): Likewise.
5514         * lib/accept.c (rpl_accept): Likewise.
5515         * lib/bind.c (rpl_bind): Likewise.
5516         * lib/getpeername.c (rpl_getpeername): Likewise.
5517         * lib/getsockname.c (rpl_getsockname): Likewise.
5518         * lib/recv.c (rpl_recv): Likewise.
5519         * lib/send.c (rpl_send): Likewise.
5520         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5521         * lib/sendto.c (rpl_sendto): Likewise.
5522
5523 2010-03-06  Bruno Haible  <bruno@clisp.org>
5524
5525         Clarify access, euidaccess, faccessat.
5526         * doc/posix-functions/faccessat.texi: Mention security problem under
5527         "Other problems", not "Portability problems".
5528         * doc/posix-functions/access.texi: Likewise. Mention a related security
5529         problem.
5530         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5531         * lib/euidaccess.c: Add comments about platforms.
5532         * lib/unistd.in.h (access, euidaccess): Add warnings.
5533
5534 2010-03-07  Bruno Haible  <bruno@clisp.org>
5535
5536         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5537         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5538         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5539         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5540         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5541         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5542         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5543         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5544         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5545         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5546         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5547         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5548         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5549         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5550         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5551         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5552         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5553         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5554         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5555         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5556         Likewise.
5557         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5558         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5559         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5560         Likewise.
5561         * tests/test-spawn.c (main): Make it work when
5562         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5563
5564 2010-03-07  Bruno Haible  <bruno@clisp.org>
5565
5566         Fix incorrect Makefile.am generation in German locale.
5567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5568         Execute sed command with character range in C locale.
5569
5570 2010-03-06  Bruno Haible  <bruno@clisp.org>
5571
5572         Tests for module 'iconv-h'.
5573         * modules/iconv-h-tests: New file.
5574         * tests/test-iconv-h.c: New file.
5575
5576         New module 'iconv-h'.
5577         * modules/iconv-h: New file.
5578         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5579         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5580         (configure.ac): Remove gl_ICONV_H.
5581         (Makefile.am): Remove rule for iconv.h.
5582
5583 2010-03-06  Bruno Haible  <bruno@clisp.org>
5584
5585         More consistent naming of *.m4 files.
5586         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5587         * modules/wctype (Files): Update.
5588
5589         More consistent naming of *.m4 files.
5590         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5591         * modules/wchar (Files): Update.
5592
5593 2010-03-06  Jim Meyering  <meyering@redhat.com>
5594
5595         euidaccess: relax license to LGPLv2+
5596         * modules/euidaccess (License): Relax to LGPLv2+.
5597
5598 2010-03-06  Bruno Haible  <bruno@clisp.org>
5599
5600         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5601         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5602         (Makefile.am): Augment lib_SOURCES instead.
5603
5604 2010-03-04  Jim Meyering  <meyering@redhat.com>
5605
5606         utime: remove obsolete module
5607         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5608         unnecessary for years, and has been marked as obsolete for 10 months.
5609         * modules/utime: Remove file.
5610         * lib/utime.c: Remove file.
5611         * m4/utime.m4: Remove file.
5612         * m4/utimes-null.m4: Remove file.
5613         * doc/posix-functions/utime.texi (utime): Remove reference to
5614         the module.  Move the sole "fixed by gnulib" item into the
5615         "problems not fixed by Gnulib" list.
5616         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5617
5618 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5619
5620         * modules/exit (License): Relax license to LGPLv2+.
5621         (Status): Mark as obsolete.
5622         * NEWS: Mention deprecated 'exit' module.
5623         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5624         of now obsolete 'exit'.
5625
5626 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5627
5628         fts-lgpl: remove unused module
5629         * modules/fts-lgpl: Remove.
5630         * MODULES.html.sh (func_all_modules): Adjust.
5631         * check-module (find_included_lib_files): Adjust.
5632         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5633
5634 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5635
5636         copy-acl: enhance Solaris ACL error handling
5637         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5638         * lib/set-mode-acl.c (qset_acl): Likewise.
5639
5640 2010-03-02  Bruno Haible  <bruno@clisp.org>
5641
5642         spawn: Don't override the system defined values on FreeBSD 8.
5643         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5644         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5645         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5646         if HAVE_POSIX_SPAWN is 1.
5647         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5648
5649 2010-03-01  Bruno Haible  <bruno@clisp.org>
5650
5651         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5652         regarding Automake.
5653
5654 2010-02-25  Bruno Haible  <bruno@clisp.org>
5655
5656         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5657         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5658         setting, not afterwards.
5659         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5660
5661 2010-02-24  Eric Blake  <eblake@redhat.com>
5662
5663         bootstrap, git-version-gen: use timestamp
5664         * build-aux/git-version-gen (scriptversion): Force UTC.
5665         * build-aux/bootstrap (scriptversion): New variable.
5666
5667         bootstrap: allow older git
5668         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5669         older than 1.6.4.  Requested by the libvirt project.
5670
5671 2010-02-23  Eric Blake  <eblake@redhat.com>
5672
5673         warn-on-use: work with old autoconf
5674         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5675         AS_VAR semantics of autoconf 2.60.
5676         Reported by Bruno Haible.
5677
5678         bootstrap: improve some comments
5679         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5680         clarification comments.
5681
5682         gettimeofday: provide correct function
5683         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5684         when replacement is declared, otherwise provide gettimeofday.
5685         Reported by Michael Goffioul.
5686
5687 2010-02-23  Jim Meyering  <meyering@redhat.com>
5688
5689         lib-ignore: relax license to "unlimited", not LGPLv2+
5690         * modules/lib-ignore (License): Relax to "unlimited".
5691
5692 2010-02-23  Jim Meyering  <meyering@redhat.com>
5693
5694         lib-ignore: relax license to LGPLv2+
5695         * modules/lib-ignore (License): Relax to LGPLv2+.
5696
5697 2010-02-22  Eric Blake  <eblake@redhat.com>
5698
5699         lseek: avoid bash 3.2 broken pipe bug
5700         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5701         warning from bash 3.2.
5702         Reported by Ben Pfaff, with analysis from Bruno Haible.
5703
5704         bootstrap: support non-FSF copyright holder
5705         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5706         bootstrap.conf override of COPYRIGHT_HOLDER.
5707         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5708
5709         bootstrap: interoperate with gettext 0.14.1
5710         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5711
5712         bootstrap: allow for alternate submodule location
5713         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5714         hardcoding submodule location.
5715         (gnulib_mk): Allow direct use of Makefile.am.
5716
5717         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5718         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5719         rather than reconfiguring where the submodule points.
5720
5721         gettimeofday: restore support for platforms that lack function
5722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5723         replacement if function is missing.
5724         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5725         * modules/sys_time (Makefile.am): Substitute it.
5726         * lib/sys_time.in.h (gettimeofday): Check it.
5727         Reported by Michael Goffioul.
5728
5729 2010-02-21  Bruno Haible  <bruno@clisp.org>
5730
5731         * lib/stdio.in.h (obstack_printf): Fix typo.
5732
5733 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5734
5735         vc-list-files: use bzr ls's -R option
5736         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5737         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5738
5739 2010-02-21  Jim Meyering  <meyering@redhat.com>
5740
5741         init.sh: fix EXEEXT shims to work also for names like test-prog
5742         * tests/init.sh: Re-exec a better shell, when needed.
5743         If the current shell lacks support for posix $(...), an init.sh-using
5744         test will now try to find a shell that supports that.  If EXEEXT is
5745         nonempty, we also require support for hyphen-in-alias-name and shell
5746         substitutions like ${var#glob}.  Failure to find such a shell results
5747         in a skipped test.
5748
5749 2010-02-21  Bruno Haible  <bruno@clisp.org>
5750
5751         Really work around around "broken pipe" error message from bash 3.2.
5752         * gnulib-tool (func_reset_sigpipe): Remove function.
5753         (echo): In bash 3.2, define to a function that uses printf.
5754         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5755
5756 2010-02-20  Bruno Haible  <bruno@clisp.org>
5757
5758         Restore support for automake 1.9.6 with autoconf 2.61.
5759         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5760         Reported by James Youngman <jay@gnu.org>.
5761
5762 2010-02-20  Bruno Haible  <bruno@clisp.org>
5763
5764         Improve *printf warning condition.
5765         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5766         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5767         and the function is overridden due to SIGPIPE emulation.
5768
5769 2010-02-20  Bruno Haible  <bruno@clisp.org>
5770
5771         * lib/stdio.in.h: Tweak comments.
5772
5773 2010-02-19  Bruno Haible  <bruno@clisp.org>
5774
5775         Make it easier to find modules. New gnulib-tool option '--find'.
5776         * gnulib-tool: New option --find.
5777         (func_usage): Document it.
5778         (func_sanitize_modulelist): New function, extracted from
5779         func_all_modules.
5780         (func_all_modules): Invoke it.
5781         * doc/gnulib-tool.texi (Which modules?): New node.
5782
5783 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5784
5785         * lib/sys_select.in.h: Provide select replacement even if
5786         sys/select.h exists on a system, for Interix.
5787
5788 2010-02-18  Jim Meyering  <meyering@redhat.com>
5789
5790         init.sh: don't use $(...) just yet
5791         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5792         to accommodate e.g., Solaris' /bin/sh.
5793
5794 2010-02-17  Bruno Haible  <bruno@clisp.org>
5795
5796         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5797         Reported by Ludovic Courtès <ludo@gnu.org>.
5798
5799 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5800
5801         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5802         linking with -lintl.
5803
5804 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5805
5806         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5807         if not provided by the system's netdb.h.  Reported by
5808         ludo@gnu.org (Ludovic Courtès).
5809
5810 2010-02-15  Jim Meyering  <meyering@redhat.com>
5811
5812         init.sh: improve portability and efficiency
5813         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5814         "dummy" in a for loop.
5815         Use '!', not '^' to select the complement of a character set used
5816         in a "case" statement.
5817         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5818         Suggestions from Eric Blake.
5819
5820         init.sh: automatically accommodate programs with the .exe suffix
5821         Automatically arrange for an invocation of "prog" to execute the
5822         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5823         may use the simpler "prog", yet still work when built on a system
5824         that requires specifying the added suffix.
5825         Do this by constructing a function named "prog" that invokes
5826         "prog.exe" for each .exe file in selected directories.
5827         * tests/init.sh (find_exe_basenames_): New function.
5828         (create_exe_shim_functions_): New function.
5829         (path_prepend_): Use it.
5830
5831         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5832         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5833         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5834
5835 2010-02-14  Jim Meyering  <meyering@redhat.com>
5836
5837         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5838         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5839         (sc_prohibit_hash_pjw_without_use): New rule.
5840
5841         maint.mk: allow the default upload destination dir to be overridden
5842         * top/maint.mk (upload_dest_dir_): Define with a default that
5843         preserves the status quo.
5844         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5845         Reported by Peter Simons.
5846
5847         maint.mk: prohibit inclusion of "hash.h" without_use
5848         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5849
5850 2010-02-10  Jim Meyering  <meyering@redhat.com>
5851
5852         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5853         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5854
5855 2010-02-09  Eric Blake  <ebb9@byu.net>
5856         and Bruno Haible  <bruno@clisp.org>
5857
5858         obstack-printf-posix: ensure declaration
5859         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5860         extracted from gl_FUNC_OBSTACK_PRINTF.
5861         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5862         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5863         Likewise.
5864         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5865         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5866         0.
5867
5868 2010-02-08  Bruno Haible  <bruno@clisp.org>
5869
5870         gnulib-tool: Fix typo in 2010-02-07 commit.
5871         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5872         Reported by Eric Blake.
5873
5874 2010-02-07  Bruno Haible  <bruno@clisp.org>
5875
5876         gnulib-tool: Fix up caching patches.
5877         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5878         option --no-cache. Use associative arrays when supported by the shell.
5879         (sed_comments): New variable.
5880         (modcache): Renamed from do_cache.
5881         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5882         abbreviate unnecessarily.
5883         (have_associative): New variable.
5884         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5885         way also for ksh and zsh.
5886         (func_init_sed_convert_to_cache_statements): New function, extracted
5887         from func_cache_lookup_module. Add support for associative arrays.
5888         Don't set the c_MODULE_cached variable here. Ignore all lines before
5889         the first field header. Remove only the final newline, not all trailing
5890         newlines. Support empty fields correctly. Limit the use of 'eval' to
5891         assignments.
5892         (func_get_description, func_get_status, func_get_notice,
5893         func_get_applicability, func_get_filelist, func_get_dependencies,
5894         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5895         func_get_automake_snippet, func_get_include_directive,
5896         func_get_link_directive, func_get_license, func_get_maintainer):
5897         Update documentation. List the unoptimized code first. Add support for
5898         associative arrays. Limit the use of 'eval' to assignments.
5899         (func_get_applicability): Undo stylistic pessimisations.
5900         (func_get_automake_snippet, func_get_include_directive): Reduce code
5901         duplication.
5902         (func_modules_transitive_closure, func_modules_add_dummy,
5903         func_modules_notice, func_modules_to_filelist, func_add_file,
5904         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5905         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5906         func_create_testdir, func_create_megatestdir): Update documentation.
5907
5908 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5909
5910         * gnulib-tool (func_cache_lookup_module): Store the module name
5911         belonging to the cache variable; error out if two different
5912         module names map to the same cache variable name.
5913
5914 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5915
5916         gnulib-tool: Make caching optional.
5917         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5918         Update matching short versions of --no-changelog.
5919         (func_usage): Update.
5920         (sed_extract_cache_prog): Renamed from ...
5921         (sed_extract_prog): ... this; revert to old extraction script.
5922         (func_get_description, func_get_status)
5923         (func_get_notice, func_get_applicability, func_get_filelist)
5924         (func_get_dependencies, func_get_autoconf_early_snippet)
5925         (func_get_autoconf_snippet, func_get_automake_snippet)
5926         (func_get_include_directive, func_get_link_directive)
5927         (func_get_license, func_get_maintainer): If $do_cache is false,
5928         use old, non-caching extraction scripts.
5929         Suggestion by Bruno Haible.
5930
5931 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5932
5933         gnulib-tool: cache module metainformation.
5934         * gnulib-tool (sed_extract_prog): Match newline before each
5935         header, and rewrite header to a shell variable suffix.
5936         (func_cache_var, func_cache_lookup_module): New functions,
5937         to turn a module name into a cache variable prefix, and to
5938         look up and cache module metainformation.
5939         (func_get_description, func_get_status)
5940         (func_get_notice, func_get_applicability, func_get_filelist)
5941         (func_get_dependencies, func_get_autoconf_early_snippet)
5942         (func_get_autoconf_snippet, func_get_automake_snippet)
5943         (func_get_include_directive, func_get_link_directive)
5944         (func_get_license, func_get_maintainer): Use
5945         func_cache_lookup_module.
5946
5947 2010-02-07  Bruno Haible  <bruno@clisp.org>
5948
5949         fnctl: Fix missing dependency.
5950         * modules/fcntl (Depends-on): Add getdtablesize.
5951         Reported by John W. Eaton <jwe@gnu.org>.
5952
5953 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5954
5955         Argp: fix recognition of short alias options.
5956
5957         * lib/argp-parse.c (convert_options): Fix improper use of
5958         `|' between character values.
5959         * tests/test-argp.c (group1_option): New alias option
5960         --read (-r).
5961         (group1_parser): Special handling for 'r'.
5962         (test15): New test case.
5963         (test_fun): Add test15.
5964         * tests/test-argp-2.sh: Update expected --help and --usage
5965         outputs.
5966
5967 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5968
5969         * tests/test-argp.c: Fix indentation.
5970
5971 2010-02-04  Eric Blake  <ebb9@byu.net>
5972
5973         gettimeofday: expose type of second argument
5974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5975         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5976         * tests/test-gettimeofday.c: Use it to silence warning.
5977         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5978         the issue.
5979
5980 2010-02-03  Jim Meyering  <meyering@redhat.com>
5981
5982         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5983         * lib/regcomp.c (TYPE_SIGNED): Define.
5984         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5985
5986         regcomp.c: avoid a new -Wshadow warning
5987         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5988
5989 2010-02-01  Jim Meyering  <meyering@redhat.com>
5990
5991         removing useless parentheses in cpp #define directives
5992         For motivation, see commit c0221df4, "define STREQ(a,b)
5993         consistently, removing useless parentheses"
5994         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5995         * lib/mountlist.c (MNT_IGNORE): Likewise.
5996         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5997
5998 2010-02-01  Eric Blake  <ebb9@byu.net>
5999
6000         sys_time: use link-warning
6001         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6002         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6003         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6004         * modules/sys_time (Depends-on): Add warn-on-use.
6005         (Makefile.am): Always build replacement.
6006         (configure.ac): Update substitutions.
6007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6008         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6009         bother with SYS_TIME_H.
6010         * modules/gettimeofday (configure.ac): Declare indicator.
6011         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6012         in use.
6013
6014         closein-tests: silence compiler warning
6015         * tests/test-closein.c (main): Ignore fread result.
6016         * modules/closein-tests (Depends-on): Add ignore-value.
6017
6018         tests: silence warning about system return
6019         * tests/test-areadlink-with-size.c (main): Ignore system result.
6020         * tests/test-areadlink.c (main): Likewise.
6021         * tests/test-areadlinkat-with-size.c (main): Likewise.
6022         * tests/test-areadlinkat.c (main): Likewise.
6023         * tests/test-canonicalize-lgpl.c (main): Likewise.
6024         * tests/test-canonicalize.c (main): Likewise.
6025         * tests/test-chown.c (main): Likewise.
6026         * tests/test-fchownat.c (main): Likewise.
6027         * tests/test-fdutimensat.c (main): Likewise.
6028         * tests/test-fstatat.c (main): Likewise.
6029         * tests/test-futimens.c (main): Likewise.
6030         * tests/test-lchown.c (main): Likewise.
6031         * tests/test-link.c (main): Likewise.
6032         * tests/test-linkat.c (main): Likewise.
6033         * tests/test-lstat.c (main): Likewise.
6034         * tests/test-mkdir.c (main): Likewise.
6035         * tests/test-mkdirat.c (main): Likewise.
6036         * tests/test-mkfifo.c (main): Likewise.
6037         * tests/test-mkfifoat.c (main): Likewise.
6038         * tests/test-mknod.c (main): Likewise.
6039         * tests/test-readlink.c (main): Likewise.
6040         * tests/test-remove.c (main): Likewise.
6041         * tests/test-rename.c (main): Likewise.
6042         * tests/test-renameat.c (main): Likewise.
6043         * tests/test-rmdir.c (main): Likewise.
6044         * tests/test-symlink.c (main): Likewise.
6045         * tests/test-symlinkat.c (main): Likewise.
6046         * tests/test-unlink.c (main): Likewise.
6047         * tests/test-unlinkat.c (main): Likewise.
6048         * tests/test-utimens.c (main): Likewise.
6049         * tests/test-utimensat.c (main): Likewise.
6050         * modules/areadlink-tests (Depends-on): Add ignore-value.
6051         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6052         * modules/areadlinkat-tests (Depends-on): Likewise.
6053         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6054         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6055         * modules/canonicalize-tests (Depends-on): Likewise.
6056         * modules/chown-tests (Depends-on): Likewise.
6057         * modules/fdutimensat-tests (Depends-on): Likewise.
6058         * modules/futimens-tests (Depends-on): Likewise.
6059         * modules/lchown-tests (Depends-on): Likewise.
6060         * modules/link-tests (Depends-on): Likewise.
6061         * modules/linkat-tests (Depends-on): Likewise.
6062         * modules/lstat-tests (Depends-on): Likewise.
6063         * modules/mkdir-tests (Depends-on): Likewise.
6064         * modules/mkfifo-tests (Depends-on): Likewise.
6065         * modules/mkfifoat-tests (Depends-on): Likewise.
6066         * modules/mknod-tests (Depends-on): Likewise.
6067         * modules/openat-tests (Depends-on): Likewise.
6068         * modules/readlink-tests (Depends-on): Likewise.
6069         * modules/remove-tests (Depends-on): Likewise.
6070         * modules/rename-tests (Depends-on): Likewise.
6071         * modules/renameat-tests (Depends-on): Likewise.
6072         * modules/rmdir-tests (Depends-on): Likewise.
6073         * modules/symlink-tests (Depends-on): Likewise.
6074         * modules/symlinkat-tests (Depends-on): Likewise.
6075         * modules/unlink-tests (Depends-on): Likewise.
6076         * modules/utimens-tests (Depends-on): Likewise.
6077         * modules/utimensat-tests (Depends-on): Likewise.
6078
6079 2010-01-31  Bruno Haible  <bruno@clisp.org>
6080
6081         Perform the same test for many <math.h> functions.
6082         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6083         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6084         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6085         of gl_MATHFUNC.
6086         * modules/acos (configure.ac): Likewise.
6087         * modules/asin (configure.ac): Likewise.
6088         * modules/atan (configure.ac): Likewise.
6089         * modules/atan2 (configure.ac): Likewise.
6090         * modules/cbrt (configure.ac): Likewise.
6091         * modules/copysign (configure.ac): Likewise.
6092         * modules/cos (configure.ac): Likewise.
6093         * modules/cosh (configure.ac): Likewise.
6094         * modules/erf (configure.ac): Likewise.
6095         * modules/erfc (configure.ac): Likewise.
6096         * modules/exp (configure.ac): Likewise.
6097         * modules/fmod (configure.ac): Likewise.
6098         * modules/hypot (configure.ac): Likewise.
6099         * modules/j0 (configure.ac): Likewise.
6100         * modules/j1 (configure.ac): Likewise.
6101         * modules/jn (configure.ac): Likewise.
6102         * modules/lgamma (configure.ac): Likewise.
6103         * modules/log (configure.ac): Likewise.
6104         * modules/log10 (configure.ac): Likewise.
6105         * modules/log1p (configure.ac): Likewise.
6106         * modules/pow (configure.ac): Likewise.
6107         * modules/remainder (configure.ac): Likewise.
6108         * modules/sin (configure.ac): Likewise.
6109         * modules/sinh (configure.ac): Likewise.
6110         * modules/tan (configure.ac): Likewise.
6111         * modules/tanh (configure.ac): Likewise.
6112         * modules/y0 (configure.ac): Likewise.
6113         * modules/y1 (configure.ac): Likewise.
6114         * modules/yn (configure.ac): Likewise.
6115         Suggested by Paolo Bonzini.
6116
6117 2010-01-31  Bruno Haible  <bruno@clisp.org>
6118
6119         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6120
6121 2010-01-31  Bruno Haible  <bruno@clisp.org>
6122
6123         Work around getdelim() bug on FreeBSD 8.0.
6124         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6125         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6126         not work.
6127         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6128         is 1.
6129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6130         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6131         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6132         a non-zero size.
6133         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6134
6135 2010-01-31  Bruno Haible  <bruno@clisp.org>
6136
6137         Work around getline() bug on FreeBSD 8.0.
6138         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6139         and a non-zero size.
6140         * tests/test-getline.c (main): Likewise.
6141         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6142         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6143
6144 2010-01-28  Eric Blake  <ebb9@byu.net>
6145
6146         regex: fix build failure
6147         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6148         platforms.
6149
6150 2010-01-28  Jim Meyering  <meyering@redhat.com>
6151
6152         regex: do not ignore memory allocation failure
6153         * lib/regex_internal.c (create_cd_newstate): Detect
6154         re_node_set_init_copy failure.   Extracted from glibc commit
6155         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6156
6157         regex: sync more white-space changes from libc
6158         * lib/regex_internal.c: White-space only changes.
6159         * lib/regexec.c: Likewise.
6160
6161         regex: add many uses of __attribute_warn_unused_result__
6162         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6163         * lib/regexec.c: Likewise.
6164         Extracted from a messy glibc commit.
6165
6166         regcomp.c: spelling and merge-artifact from glibc
6167         * lib/regcomp.c: Merge remainder of glibc's
6168         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6169
6170         regcomp.c: sync white-space changes from glibc
6171         * lib/regcomp.c: Merge to accommodate white space
6172         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6173
6174         regcomp.c: do not ignore internal return values
6175         * lib/regcomp.c: Do not ignore internal return values.
6176         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6177         but without its white-space changes and spelling fixes.
6178
6179         regex_internal.h: define __attribute_warn_unused_result__
6180         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6181
6182         maint: add a syntax-check rule to check for vulnerable Makefile.in
6183         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6184
6185 2010-01-27  Jim Meyering  <meyering@redhat.com>
6186
6187         ncftpput-ftp: clean up spaces
6188         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6189         Remove trailing blanks.
6190
6191 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6192
6193         * build-aux/git-version-gen: Fix copyright statement.
6194         * build-aux/gnupload: Likewise.
6195         * tests/test-arcfour.c: Likewise.
6196         * tests/test-arctwo.c: Likewise.
6197         * tests/test-count-one-bits.c: Likewise.
6198         * tests/test-crc.c: Likewise.
6199         * tests/test-des.c: Likewise.
6200         * tests/test-gc-arcfour.c: Likewise.
6201         * tests/test-gc-arctwo.c: Likewise.
6202         * tests/test-gc-des.c: Likewise.
6203         * tests/test-gc-hmac-md5.c: Likewise.
6204         * tests/test-gc-hmac-sha1.c: Likewise.
6205         * tests/test-gc-md2.c: Likewise.
6206         * tests/test-gc-md4.c: Likewise.
6207         * tests/test-gc-md5.c: Likewise.
6208         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6209         * tests/test-gc-rijndael.c: Likewise.
6210         * tests/test-gc-sha1.c: Likewise.
6211         * tests/test-gc.c: Likewise.
6212         * tests/test-gethostname.c: Likewise.
6213         * tests/test-gettimeofday.c: Likewise.
6214         * tests/test-hash.c: Likewise.
6215         * tests/test-hmac-md5.c: Likewise.
6216         * tests/test-hmac-sha1.c: Likewise.
6217         * tests/test-md2.c: Likewise.
6218         * tests/test-md4.c: Likewise.
6219         * tests/test-md5.c: Likewise.
6220         * tests/test-memchr.c: Likewise.
6221         * tests/test-memchr2.c: Likewise.
6222         * tests/test-memcmp.c: Likewise.
6223         * tests/test-memmem.c: Likewise.
6224         * tests/test-memrchr.c: Likewise.
6225         * tests/test-rawmemchr.c: Likewise.
6226         * tests/test-read-file.c: Likewise.
6227         * tests/test-rijndael.c: Likewise.
6228         * tests/test-sockets.c: Likewise.
6229         * tests/test-strchrnul.c: Likewise.
6230         * tests/test-strstr.c: Likewise.
6231         * tests/test-strtod.c: Likewise.
6232         * build-aux/ncftpput-ftp: Likewise.
6233
6234 2010-01-26  Eric Blake  <ebb9@byu.net>
6235
6236         ignore-value: update recommended header name
6237         * modules/ignore-value (Include): Only use <> for headers that
6238         exist in glibc.
6239
6240 2010-01-26  Jim Meyering  <meyering@redhat.com>
6241
6242         test-userspec.c: avoid compiler warnings
6243         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6244         and "initialization discards qualifiers..." warnings.
6245         Put the first "uid" in its own scope, and make char* members "const".
6246
6247 2010-01-25  Bruno Haible  <bruno@clisp.org>
6248
6249         gnulib-tool: Make warning diagnostics consistent.
6250         * gnulib-tool (func_warning): New function.
6251         Use it everywhere where gnulib-tool produces output to stderr and it is
6252         not a fatal error.
6253
6254 2010-01-25  Bruno Haible  <bruno@clisp.org>
6255
6256         Fix test dependencies.
6257         * modules/xstrtol-tests (Depends-on): Add inttypes.
6258         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6259
6260 2010-01-25 Pádraig Brady <P@draigBrady.com>
6261
6262         syntax-check: detect incorrect boolean macro values in config.h
6263         * modules/maintainer-makefile (configure.ac): Parameterize the location
6264         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6265         The logic is from Eric Blake and the location indicated by Jim Meyering.
6266         Note the more natural CONFIG_HEADER name is prohibited by automake
6267         for backwards compatibility reasons.
6268         * top/maint.mk (sc_Wundef_boolean): New rule.
6269
6270 2010-01-25  Jim Meyering  <meyering@redhat.com>
6271
6272         bootstrap: detect MacOS 10.6's shasum, too
6273         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6274         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6275
6276 2010-01-23  Jim Meyering  <meyering@redhat.com>
6277
6278         xstrtoll: new module
6279         * modules/xstrtoll: New file.
6280         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6281         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6282         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6283         ./configure fails if you use this module and lack "long long".
6284         * modules/xstrtoll-tests: New module.
6285         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6286         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6287         new init.sh-based test framework.
6288
6289 2010-01-24  Bruno Haible  <bruno@clisp.org>
6290
6291         Tests for module 'yn'.
6292         * modules/yn-tests: New file.
6293         * tests/test-yn.c: New file.
6294
6295         Tests for module 'y1'.
6296         * modules/y1-tests: New file.
6297         * tests/test-y1.c: New file.
6298
6299         Tests for module 'y0'.
6300         * modules/y0-tests: New file.
6301         * tests/test-y0.c: New file.
6302
6303         Tests for module 'tanh'.
6304         * modules/tanh-tests: New file.
6305         * tests/test-tanh.c: New file.
6306
6307         Tests for module 'tan'.
6308         * modules/tan-tests: New file.
6309         * tests/test-tan.c: New file.
6310
6311         Tests for module 'sqrt'.
6312         * modules/sqrt-tests: New file.
6313         * tests/test-sqrt.c: New file.
6314
6315         Tests for module 'sinh'.
6316         * modules/sinh-tests: New file.
6317         * tests/test-sinh.c: New file.
6318
6319         Tests for module 'sin'.
6320         * modules/sin-tests: New file.
6321         * tests/test-sin.c: New file.
6322
6323         Tests for module 'rint'.
6324         * modules/rint-tests: New file.
6325         * tests/test-rint.c: New file.
6326
6327         Tests for module 'remainder'.
6328         * modules/remainder-tests: New file.
6329         * tests/test-remainder.c: New file.
6330
6331         Tests for module 'pow'.
6332         * modules/pow-tests: New file.
6333         * tests/test-pow.c: New file.
6334
6335         Tests for module 'nextafter'.
6336         * modules/nextafter-tests: New file.
6337         * tests/test-nextafter.c: New file.
6338
6339         Tests for module 'modf'.
6340         * modules/modf-tests: New file.
6341         * tests/test-modf.c: New file.
6342
6343         Tests for module 'logb'.
6344         * modules/logb-tests: New file.
6345         * tests/test-logb.c: New file.
6346
6347         Tests for module 'log1p'.
6348         * modules/log1p-tests: New file.
6349         * tests/test-log1p.c: New file.
6350
6351         Tests for module 'log10'.
6352         * modules/log10-tests: New file.
6353         * tests/test-log10.c: New file.
6354
6355         Tests for module 'log'.
6356         * modules/log-tests: New file.
6357         * tests/test-log.c: New file.
6358
6359         Tests for module 'lgamma'.
6360         * modules/lgamma-tests: New file.
6361         * tests/test-lgamma.c: New file.
6362
6363         Tests for module 'ldexp'.
6364         * modules/ldexp-tests: New file.
6365         * tests/test-ldexp.c: New file.
6366
6367         Tests for module 'jn'.
6368         * modules/jn-tests: New file.
6369         * tests/test-jn.c: New file.
6370
6371         Tests for module 'j1'.
6372         * modules/j1-tests: New file.
6373         * tests/test-j1.c: New file.
6374
6375         Tests for module 'j0'.
6376         * modules/j0-tests: New file.
6377         * tests/test-j0.c: New file.
6378
6379         Tests for module 'hypot'.
6380         * modules/hypot-tests: New file.
6381         * tests/test-hypot.c: New file.
6382
6383         Tests for module 'fmod'.
6384         * modules/fmod-tests: New file.
6385         * tests/test-fmod.c: New file.
6386
6387         Tests for module 'fabs'.
6388         * modules/fabs-tests: New file.
6389         * tests/test-fabs.c: New file.
6390
6391         Tests for module 'exp'.
6392         * modules/exp-tests: New file.
6393         * tests/test-exp.c: New file.
6394
6395         Tests for module 'erfc'.
6396         * modules/erfc-tests: New file.
6397         * tests/test-erfc.c: New file.
6398
6399         Tests for module 'erf'.
6400         * modules/erf-tests: New file.
6401         * tests/test-erf.c: New file.
6402
6403         Tests for module 'cosh'.
6404         * modules/cosh-tests: New file.
6405         * tests/test-cosh.c: New file.
6406
6407         Tests for module 'cos'.
6408         * modules/cos-tests: New file.
6409         * tests/test-cos.c: New file.
6410
6411         Tests for module 'copysign'.
6412         * modules/copysign-tests: New file.
6413         * tests/test-copysign.c: New file.
6414
6415         Tests for module 'cbrt'.
6416         * modules/cbrt-tests: New file.
6417         * tests/test-cbrt.c: New file.
6418
6419         Tests for module 'atan2'.
6420         * modules/atan2-tests: New file.
6421         * tests/test-atan2.c: New file.
6422
6423         Tests for module 'atan'.
6424         * modules/atan-tests: New file.
6425         * tests/test-atan.c: New file.
6426
6427         Tests for module 'asin'.
6428         * modules/asin-tests: New file.
6429         * tests/test-asin.c: New file.
6430
6431         Tests for module 'acos'.
6432         * modules/acos-tests: New file.
6433         * tests/test-acos.c: New file.
6434
6435 2010-01-24  Bruno Haible  <bruno@clisp.org>
6436
6437         Fix tests for common <math.h> functions.
6438         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6439         code snippet that references the function pointer, rather than merely
6440         calling the function. Substitute the FUNC_LIBM variable.
6441         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6442         * modules/acos (configure.ac): Likewise.
6443         * modules/asin (configure.ac): Likewise.
6444         * modules/atan (configure.ac): Likewise.
6445         * modules/atan2 (configure.ac): Likewise.
6446         * modules/cbrt (configure.ac): Likewise.
6447         * modules/copysign (configure.ac): Likewise.
6448         * modules/cos (configure.ac): Likewise.
6449         * modules/cosh (configure.ac): Likewise.
6450         * modules/erf (configure.ac): Likewise.
6451         * modules/erfc (configure.ac): Likewise.
6452         * modules/exp (configure.ac): Likewise.
6453         * modules/fabs (configure.ac): Likewise.
6454         * modules/fmod (configure.ac): Likewise.
6455         * modules/hypot (configure.ac): Likewise.
6456         * modules/j0 (configure.ac): Likewise.
6457         * modules/j1 (configure.ac): Likewise.
6458         * modules/jn (configure.ac): Likewise.
6459         * modules/ldexp (configure.ac): Likewise.
6460         * modules/lgamma (configure.ac): Likewise.
6461         * modules/log (configure.ac): Likewise.
6462         * modules/log10 (configure.ac): Likewise.
6463         * modules/log1p (configure.ac): Likewise.
6464         * modules/logb (configure.ac): Likewise.
6465         * modules/modf (configure.ac): Likewise.
6466         * modules/nextafter (configure.ac): Likewise.
6467         * modules/pow (configure.ac): Likewise.
6468         * modules/remainder (configure.ac): Likewise.
6469         * modules/rint (configure.ac): Likewise.
6470         * modules/sin (configure.ac): Likewise.
6471         * modules/sinh (configure.ac): Likewise.
6472         * modules/tan (configure.ac): Likewise.
6473         * modules/tanh (configure.ac): Likewise.
6474         * modules/y0 (configure.ac): Likewise.
6475         * modules/y1 (configure.ac): Likewise.
6476         * modules/yn (configure.ac): Likewise.
6477
6478 2010-01-24  Bruno Haible  <bruno@clisp.org>
6479
6480         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6481         * tests/test-acosl.c (x): New variable.
6482         (main): Store argument in x and fetch it from x.
6483         * tests/test-asinl.c (x): New variable.
6484         (main): Store argument in x and fetch it from x.
6485         * tests/test-atanl.c (x): New variable.
6486         (main): Store argument in x and fetch it from x.
6487         * tests/test-cosl.c (x): New variable.
6488         (main): Store argument in x and fetch it from x.
6489         * tests/test-expl.c (x): New variable.
6490         (main): Store argument in x and fetch it from x.
6491         * tests/test-logl.c (x): New variable.
6492         (main): Store argument in x and fetch it from x.
6493         * tests/test-sinl.c (x): New variable.
6494         (main): Store argument in x and fetch it from x.
6495         * tests/test-sqrtl.c (x): New variable.
6496         (main): Store argument in x and fetch it from x.
6497         * tests/test-tanl.c (x): New variable.
6498         (main): Store argument in x and fetch it from x.
6499
6500 2010-01-24  Bruno Haible  <bruno@clisp.org>
6501
6502         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6503         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6504         assignments to the initial TESTS_ENVIRONMENT.
6505         * doc/gnulib.texi (Unit test modules): Document it.
6506         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6507         TESTS_ENVIRONMENT.
6508         * modules/btowc-tests (Makefile.am): Likewise.
6509         * modules/c-stack-tests (Makefile.am): Likewise.
6510         * modules/c-strcase-tests (Makefile.am): Likewise.
6511         * modules/copy-file-tests (Makefile.am): Likewise.
6512         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6513         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6514         * modules/mbrtowc-tests (Makefile.am): Likewise.
6515         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6516         * modules/mbscasestr-tests (Makefile.am): Likewise.
6517         * modules/mbschr-tests (Makefile.am): Likewise.
6518         * modules/mbscspn-tests (Makefile.am): Likewise.
6519         * modules/mbsinit-tests (Makefile.am): Likewise.
6520         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6521         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6522         * modules/mbspbrk-tests (Makefile.am): Likewise.
6523         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6524         * modules/mbsrchr-tests (Makefile.am): Likewise.
6525         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6526         * modules/mbsspn-tests (Makefile.am): Likewise.
6527         * modules/mbsstr-tests (Makefile.am): Likewise.
6528         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6529         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6530         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6531         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6532         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6533         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6534         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6535         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6536         * modules/wcrtomb-tests (Makefile.am): Likewise.
6537         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6538         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6539         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6540         assignments from TESTS_ENVIRONMENT.
6541         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6542         augmentation.
6543         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6544         * modules/atexit-tests (Makefile.am): Likewise.
6545         * modules/binary-io-tests (Makefile.am): Likewise.
6546         * modules/closein-tests (Makefile.am): Likewise.
6547         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6548         * modules/exclude-tests (Makefile.am): Likewise.
6549         * modules/fflush-tests (Makefile.am): Likewise.
6550         * modules/fpending-tests (Makefile.am): Likewise.
6551         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6552         * modules/freadahead-tests (Makefile.am): Likewise.
6553         * modules/freadptr-tests (Makefile.am): Likewise.
6554         * modules/freadseek-tests (Makefile.am): Likewise.
6555         * modules/fseek-tests (Makefile.am): Likewise.
6556         * modules/fseeko-tests (Makefile.am): Likewise.
6557         * modules/ftell-tests (Makefile.am): Likewise.
6558         * modules/ftello-tests (Makefile.am): Likewise.
6559         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6560         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6561         * modules/lseek-tests (Makefile.am): Likewise.
6562         * modules/parse-duration-tests (Makefile.am): Likewise.
6563         * modules/perror-tests (Makefile.am): Likewise.
6564         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6565         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6566         * modules/pipe-tests (Makefile.am): Likewise.
6567         * modules/pread-tests (Makefile.am): Likewise.
6568         * modules/printf-posix-tests (Makefile.am): Likewise.
6569         * modules/select-tests (Makefile.am): Likewise.
6570         * modules/sigpipe-tests (Makefile.am): Likewise.
6571         * modules/tsearch-tests (Makefile.am): Likewise.
6572         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6573         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6574         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6575         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6576         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6577         * modules/version-etc-tests (Makefile.am): Likewise.
6578         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6579         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6580         * modules/xalloc-die-tests (Makefile.am): Likewise.
6581         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6582         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6583         * modules/xstrtol-tests (Makefile.am): Likewise.
6584         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6585         * modules/yesno-tests (Makefile.am): Likewise.
6586         Suggested by Jim Meyering.
6587
6588 2010-01-24  Bruno Haible  <bruno@clisp.org>
6589
6590         More documentation.
6591         * doc/gnulib.texi (Writing modules): New chapter.
6592         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6593         the new chapter.
6594
6595 2010-01-24  Jim Meyering  <meyering@redhat.com>
6596
6597         maint.mk: do not prepend "./" after filtering
6598         * top/maint.mk (_prepend_srcdir_prefix): New variable
6599         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6600         "./" when $(srcdir) is ".".
6601
6602         define STREQ(a,b) consistently, removing useless parentheses
6603         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6604         since the only risk is that "a" or "b" contains an unparenthesized
6605         comma, but if either did that, STREQ would have 3 or more arguments.
6606         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6607         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6608         * lib/hash-triple.c (STREQ): Likewise.
6609         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6610         * lib/getugroups.c (STREQ): Likewise.
6611
6612 2010-01-23  Jim Meyering  <meyering@redhat.com>
6613
6614         maint.mk: fix syntax-check in a non-srcdir build directory
6615         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6616         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6617
6618 2010-01-22  Jim Meyering  <meyering@redhat.com>
6619
6620         userspec: add unit tests
6621         * tests/test-userspec.c: New file.
6622         * modules/userspec-tests: Likewise.
6623
6624 2010-01-21  Jim Meyering  <meyering@redhat.com>
6625
6626         maint.mk: handle source file names containing "." robustly
6627         * top/maint.mk (_dot_escaped_srcdir): Define.
6628         (VC_LIST): Use it in LHS of sed substitution.
6629
6630 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6631
6632         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6633         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6634         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6635         from a non-srcdir build.
6636
6637 2010-01-20  Eric Blake  <ebb9@byu.net>
6638
6639         warn-on-use: use instead of link-warning
6640         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6641         * modules/unistd (Depends-on, Makefile.am): Likewise.
6642         * modules/arpa_inet (Depends-on): Replace link-warning with
6643         warn-on-use.
6644         (Makefile.am): Update rules accordingly.
6645         * modules/ctype (Depends-on, Makefile.am): Likewise.
6646         * modules/dirent (Depends-on, Makefile.am): Likewise.
6647         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6648         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6649         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6650         * modules/locale (Depends-on, Makefile.am): Likewise.
6651         * modules/math (Depends-on, Makefile.am): Likewise.
6652         * modules/search (Depends-on, Makefile.am): Likewise.
6653         * modules/signal (Depends-on, Makefile.am): Likewise.
6654         * modules/spawn (Depends-on, Makefile.am): Likewise.
6655         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6656         * modules/string (Depends-on, Makefile.am): Likewise.
6657         * modules/strings (Depends-on, Makefile.am): Likewise.
6658         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6659         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6660         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6661         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6662         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6663         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6664         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6665         * modules/wchar (Depends-on, Makefile.am): Likewise.
6666         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6667         should be poisoned.
6668         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6669         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6670         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6671         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6672         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6673         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6674         * m4/math_h.m4 (gl_MATH_H): Likewise.
6675         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6676         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6677         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6678         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6679         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6680         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6681         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6682         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6683         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6687         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6688         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6689         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6690         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6691         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6692         GL_LINK_WARNING.
6693         * lib/ctype.in.h: Likewise.
6694         * lib/dirent.in.h: Likewise.
6695         * lib/fcntl.in.h: Likewise.
6696         * lib/inttypes.in.h: Likewise.
6697         * lib/langinfo.in.h: Likewise.
6698         * lib/locale.in.h: Likewise.
6699         * lib/math.in.h: Likewise.
6700         * lib/search.in.h: Likewise.
6701         * lib/signal.in.h: Likewise.
6702         * lib/spawn.in.h: Likewise.
6703         * lib/stdio.in.h: Likewise.
6704         * lib/stdlib.in.h: Likewise.
6705         * lib/string.in.h: Likewise.
6706         * lib/strings.in.h: Likewise.
6707         * lib/sys_file.in.h: Likewise.
6708         * lib/sys_ioctl.in.h: Likewise.
6709         * lib/sys_select.in.h: Likewise.
6710         * lib/sys_socket.in.h: Likewise.
6711         * lib/sys_stat.in.h: Likewise.
6712         * lib/sys_times.in.h: Likewise.
6713         * lib/sys_utsname.in.h: Likewise.
6714         * lib/unistd.in.h: Likewise.
6715         * lib/wchar.in.h: Likewise.
6716
6717 2010-01-20  Bruno Haible  <bruno@clisp.org>
6718
6719         Avoid duplicate -lm.
6720         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6721         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6724         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6725         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6726         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6727         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6728         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6729         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6730         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6731         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6732         Reported by Paolo Bonzini.
6733
6734 2010-01-19  Bruno Haible  <bruno@clisp.org>
6735
6736         langinfo, nl_langinfo: Relicense under LGPLv2+.
6737         * modules/langinfo (License): Change to LGPLv2+.
6738         * modules/nl_langinfo (License): Likewise.
6739         Patch by David Lutterkort <lutter@redhat.com>.
6740
6741 2010-01-19  Bruno Haible  <bruno@clisp.org>
6742
6743         Avoid compilation error with cc on OSF/1 5.1.
6744         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6745         statement, not before.
6746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6747
6748 2010-01-18  Bruno Haible  <bruno@clisp.org>
6749
6750         Avoid a link error due to the __printf__ symbol.
6751         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6752         and 2.6.x.
6753         (__format__, __printf__): Remove definitions.
6754         * lib/argp-fmtstream.h: Likewise.
6755         * lib/argp.h: Likewise.
6756         * lib/error.h: Likewise.
6757         * lib/vasnprintf.h: Likewise.
6758         * lib/xprintf.h: Likewise.
6759         * lib/xvasprintf.h: Likewise.
6760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6761
6762 2010-01-18  Bruno Haible  <bruno@clisp.org>
6763
6764         Tests for module 'tanl'.
6765         * modules/tanl-tests: New file.
6766         * tests/test-tanl.c: New file.
6767
6768         Tests for module 'sqrtl'.
6769         * modules/sqrtl-tests: New file.
6770         * tests/test-sqrtl.c: New file.
6771
6772         Tests for module 'sinl'.
6773         * modules/sinl-tests: New file.
6774         * tests/test-sinl.c: New file.
6775
6776         Tests for module 'logl'.
6777         * modules/logl-tests: New file.
6778         * tests/test-logl.c: New file.
6779
6780         Tests for module 'expl'.
6781         * modules/expl-tests: New file.
6782         * tests/test-expl.c: New file.
6783
6784         Tests for module 'cosl'.
6785         * modules/cosl-tests: New file.
6786         * tests/test-cosl.c: New file.
6787
6788         Tests for module 'atanl'.
6789         * modules/atanl-tests: New file.
6790         * tests/test-atanl.c: New file.
6791
6792         Tests for module 'asinl'.
6793         * modules/asinl-tests: New file.
6794         * tests/test-asinl.c: New file.
6795
6796         Tests for module 'acosl'.
6797         * modules/acosl-tests: New file.
6798         * tests/test-acosl.c: New file.
6799
6800         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6801         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6802         tanl): Use the standard gnulib idiom.
6803         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6804         * lib/sinl.c: Likewise.
6805         * lib/tanl.c: Don't include trigl.c.
6806         (kernel_tanl): Make static.
6807         * lib/sincosl.c: Include trigl.h first.
6808         * lib/trigl.c: Likewise.
6809         * m4/acosl.m4: New file.
6810         * m4/asinl.m4: New file.
6811         * m4/atanl.m4: New file.
6812         * m4/cosl.m4: New file.
6813         * m4/expl.m4: New file.
6814         * m4/logl.m4: New file.
6815         * m4/sinl.m4: New file.
6816         * m4/sqrtl.m4: New file.
6817         * m4/tanl.m4: New file.
6818         * m4/mathl.m4: Remove file.
6819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6820         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6821         Don't initialize GNULIB_MATHL.
6822         * modules/acosl: New file.
6823         * modules/asinl: New file.
6824         * modules/atanl: New file.
6825         * modules/cosl: New file.
6826         * modules/expl: New file.
6827         * modules/logl: New file.
6828         * modules/sinl: New file.
6829         * modules/sqrtl: New file.
6830         * modules/tanl: New file.
6831         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6832         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6833         substitute GNULIB_MATHL.
6834         * modules/mathl: Rewritten.
6835         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6836         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6837         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6838         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6839         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6840         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6841         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6842         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6843         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6844
6845 2010-01-18  Bruno Haible  <bruno@clisp.org>
6846
6847         sqrt: Make gl_FUNC_SQRT requirable.
6848         * m4/sqrt.m4: New file.
6849         * modules/sqrt (Files): Add it.
6850         (configure.ac): Invoke gl_FUNC_SQRT.
6851
6852 2010-01-18  Bruno Haible  <bruno@clisp.org>
6853
6854         New modules for common <math.h> functions.
6855         * m4/mathfunc.m4: New file.
6856         * modules/acos: New file.
6857         * modules/asin: New file.
6858         * modules/atan: New file.
6859         * modules/atan2: New file.
6860         * modules/cbrt: New file.
6861         * modules/copysign: New file.
6862         * modules/cos: New file.
6863         * modules/cosh: New file.
6864         * modules/erf: New file.
6865         * modules/erfc: New file.
6866         * modules/exp: New file.
6867         * modules/fabs: New file.
6868         * modules/fmod: New file.
6869         * modules/hypot: New file.
6870         * modules/j0: New file.
6871         * modules/j1: New file.
6872         * modules/jn: New file.
6873         * modules/ldexp: New file.
6874         * modules/lgamma: New file.
6875         * modules/log: New file.
6876         * modules/log10: New file.
6877         * modules/log1p: New file.
6878         * modules/logb: New file.
6879         * modules/modf: New file.
6880         * modules/nextafter: New file.
6881         * modules/pow: New file.
6882         * modules/remainder: New file.
6883         * modules/rint: New file.
6884         * modules/sin: New file.
6885         * modules/sinh: New file.
6886         * modules/sqrt: New file.
6887         * modules/tan: New file.
6888         * modules/tanh: New file.
6889         * modules/y0: New file.
6890         * modules/y1: New file.
6891         * modules/yn: New file.
6892         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6893         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6894         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6895         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6896         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6897         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6898         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6899         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6900         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6901         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6902         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6903         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6904         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6905         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6906         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6907         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6908         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6909         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6910         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6911         * doc/posix-functions/log.texi: Mention the 'log' module.
6912         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6913         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6914         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6915         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6916         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6917         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6918         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6919         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6920         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6921         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6922         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6923         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6924         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6925         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6926         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6927         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6928
6929 2010-01-18  Jim Meyering  <meyering@redhat.com>
6930
6931         ignore-value: relax license to LGPLv2+
6932         * modules/ignore-value (License): Relax to LGPLv2+.
6933
6934         getdate: don't leak when TZ contains two or more '"'s
6935         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6936         double quote in TZ after the first one.
6937
6938         readtokens: do not leak internal token_lengths buffer
6939         * lib/readtokens.c (readtokens): Free the local, lengths,
6940         when the supplied "token_lengths" parameter is NULL.
6941
6942 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6943
6944         Fix a couple of missing LIBTHREAD link failures on AIX.
6945         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6946         $(LIBTHREAD).
6947         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6948
6949         Link test-poll against INET_PTON_LIB.
6950         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6951         for inet_pton on Solaris 10.
6952
6953 2010-01-17  Bruno Haible  <bruno@clisp.org>
6954
6955         unistdio/*-sprintf: Fix typo in module description.
6956         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6957         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6958         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6959         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6960         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6961         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6962         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6964
6965 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6966
6967         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6968         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6969         variables in shell case patterns, for AIX and HP-UX ksh.
6970
6971         Split large sed scripts, for HP-UX sed.
6972         * modules/stdio: Split sed scripts around 50 sed commands,
6973         to avoid HP-UX limit of 99 commands, in the near future.
6974         * modules/string: Likewise.
6975         * modules/unistd: Likewise.
6976
6977         gnulib-tool: avoid writing in the current directory.
6978         * gnulib-tool (func_emit_lib_Makefile_am)
6979         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6980         not in the current directory, so concurrent gnulib-tool
6981         instances do not interfere.
6982
6983 2010-01-16  Jim Meyering  <meyering@redhat.com>
6984
6985         doc: update users.txt
6986         * users.txt: Add grep.
6987         (diffutils, gzip): Update URLs.
6988
6989 2010-01-12  Bruno Haible  <bruno@clisp.org>
6990
6991         posix_spawn: Avoid test failure on Cygwin.
6992         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6993         characters.
6994         Reported by Simon Josefsson.
6995
6996 2010-01-12  Bruno Haible  <bruno@clisp.org>
6997
6998         * tests/test-cond.c (main): When skipping the test, show the reason.
6999
7000 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7001
7002         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7003
7004 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7005
7006         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7007         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7008
7009 2010-01-12  Eric Blake  <ebb9@byu.net>
7010
7011         build: guarantee AS_VAR_IF
7012         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7013         (gl_AS_VAR_IF): Move...
7014         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7015         Reported by Simon Josefsson.
7016
7017 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7018
7019         * lib/stdio.in.h: Fix typo.
7020
7021 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7022
7023         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7024         libgpg-error.
7025
7026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7027
7028         * tests/test-xalloc-die.sh: Use $EXEEXT.
7029
7030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7031             Bruno Haible  <bruno@clisp.org>
7032
7033         getlogin, getlogin_r: Avoid test failure.
7034         * tests/test-getlogin.c: Include <stdio.h>.
7035         (main): Skip the test when the function fails because stdin is not a
7036         tty.
7037         * tests/test-getlogin_r.c: Include <stdio.h>.
7038         (main): Skip the test when the function fails because stdin is not a
7039         tty.
7040
7041 2010-01-11  Eric Blake  <ebb9@byu.net>
7042
7043         tests: avoid more large file warnings
7044         * tests/test-fflush.c: Avoid warning about ftell use.
7045         * tests/test-fseek.c: Avoid warning about fseek use.
7046
7047 2010-01-10  Bruno Haible  <bruno@clisp.org>
7048
7049         nproc: Work better on Linux when /proc and /sys are not mounted.
7050         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7051         as lower bound when, on glibc/Linux systems,
7052         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7053         Suggested by Pádraig Brady <P@draigbrady.com>.
7054         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7055
7056         nproc: Refactor.
7057         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7058         extracted from num_processors.
7059         (num_processors): Call it.
7060
7061 2010-01-11  Jim Meyering  <meyering@redhat.com>
7062
7063         utimecmp: avoid new warning from upcoming gcc-4.5.0
7064         * lib/utimecmp.c (BILLION): Define using #define rather than an
7065         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7066
7067 2010-01-11  Eric Blake  <ebb9@byu.net>
7068
7069         math: add portability warnings for classification macros
7070         * modules/math (Depends-on): Add warn-on-use.
7071         (Makefile.am): Provide new substitutions.
7072         * m4/math_h.m4 (gl_MATH_H): Require inline.
7073         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7074         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7075         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7076         implement warnings.
7077
7078         unistd: warn on use of environ without module
7079         * modules/unistd (Depends-on): Add warn-on-use.
7080         (Makefile.am): Provide new substitutions.
7081         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7082         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7083
7084         stdio: warn on suspicious uses
7085         * modules/stdio (Depends-on): Add warn-on-use.
7086         (Makefile.am): Provide new substitutions.
7087         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7088         fseeko.
7089         * lib/stdio.in.h (gets): Always warn on use.
7090         (fseek, ftell): Adjust when warnings are issued, and honor
7091         _GL_NO_LARGE_FILES as a way to silence the warning.
7092         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7093         any warning about large file offsets.
7094         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7095         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7096         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7097         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7098         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7099         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7100         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7101         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7102
7103         warn-on-use: new module
7104         * modules/warn-on-use: New file.
7105         * build-aux/warn-on-use.h: Likewise.
7106         * m4/warn-on-use.m4: Likewise.
7107         * MODULES.html.sh (Support for building): Mention it.
7108
7109 2010-01-10  Bruno Haible  <bruno@clisp.org>
7110
7111         Tests for module 'unistr/u32-strdup'.
7112         * modules/unistr/u32-strdup-tests: New file.
7113         * tests/unistr/test-u32-strdup.c: New file.
7114
7115         Tests for module 'unistr/u16-strdup'.
7116         * modules/unistr/u16-strdup-tests: New file.
7117         * tests/unistr/test-u16-strdup.c: New file.
7118
7119         Tests for module 'unistr/u8-strdup'.
7120         * modules/unistr/u8-strdup-tests: New file.
7121         * tests/unistr/test-u8-strdup.c: New file.
7122         * tests/unistr/test-strdup.h: New file.
7123
7124         Tests for module 'unistr/u32-strncmp'.
7125         * modules/unistr/u32-strncmp-tests: New file.
7126         * tests/unistr/test-u32-strncmp.c: New file.
7127
7128         Tests for module 'unistr/u16-strncmp'.
7129         * modules/unistr/u16-strncmp-tests: New file.
7130         * tests/unistr/test-u16-strncmp.c: New file.
7131
7132         Tests for module 'unistr/u8-strncmp'.
7133         * modules/unistr/u8-strncmp-tests: New file.
7134         * tests/unistr/test-u8-strncmp.c: New file.
7135         * tests/unistr/test-strncmp.h: New file.
7136
7137         Tests for module 'unistr/u32-strcoll'.
7138         * modules/unistr/u32-strcoll-tests: New file.
7139         * tests/unistr/test-u32-strcoll.c: New file.
7140
7141         Tests for module 'unistr/u16-strcoll'.
7142         * modules/unistr/u16-strcoll-tests: New file.
7143         * tests/unistr/test-u16-strcoll.c: New file.
7144
7145         Tests for module 'unistr/u8-strcoll'.
7146         * modules/unistr/u8-strcoll-tests: New file.
7147         * tests/unistr/test-u8-strcoll.c: New file.
7148
7149         Tests for module 'unistr/u32-strcmp'.
7150         * modules/unistr/u32-strcmp-tests: New file.
7151         * tests/unistr/test-u32-strcmp.c: New file.
7152         * tests/unistr/test-u32-strcmp.h: New file.
7153
7154         Tests for module 'unistr/u16-strcmp'.
7155         * modules/unistr/u16-strcmp-tests: New file.
7156         * tests/unistr/test-u16-strcmp.c: New file.
7157         * tests/unistr/test-u16-strcmp.h: New file.
7158
7159         Tests for module 'unistr/u8-strcmp'.
7160         * modules/unistr/u8-strcmp-tests: New file.
7161         * tests/unistr/test-u8-strcmp.c: New file.
7162         * tests/unistr/test-u8-strcmp.h: New file.
7163         * tests/unistr/test-strcmp.h: New file.
7164
7165         Tests for module 'unistr/u32-strncat'.
7166         * modules/unistr/u32-strncat-tests: New file.
7167         * tests/unistr/test-u32-strncat.c: New file.
7168
7169         Tests for module 'unistr/u16-strncat'.
7170         * modules/unistr/u16-strncat-tests: New file.
7171         * tests/unistr/test-u16-strncat.c: New file.
7172
7173         Tests for module 'unistr/u8-strncat'.
7174         * modules/unistr/u8-strncat-tests: New file.
7175         * tests/unistr/test-u8-strncat.c: New file.
7176         * tests/unistr/test-strncat.h: New file.
7177
7178         Tests for module 'unistr/u32-strcat'.
7179         * modules/unistr/u32-strcat-tests: New file.
7180         * tests/unistr/test-u32-strcat.c: New file.
7181
7182         Tests for module 'unistr/u16-strcat'.
7183         * modules/unistr/u16-strcat-tests: New file.
7184         * tests/unistr/test-u16-strcat.c: New file.
7185
7186         Tests for module 'unistr/u8-strcat'.
7187         * modules/unistr/u8-strcat-tests: New file.
7188         * tests/unistr/test-u8-strcat.c: New file.
7189         * tests/unistr/test-strcat.h: New file.
7190
7191         Tests for module 'unistr/u32-stpncpy'.
7192         * modules/unistr/u32-stpncpy-tests: New file.
7193         * tests/unistr/test-u32-stpncpy.c: New file.
7194
7195         Tests for module 'unistr/u16-stpncpy'.
7196         * modules/unistr/u16-stpncpy-tests: New file.
7197         * tests/unistr/test-u16-stpncpy.c: New file.
7198
7199         Tests for module 'unistr/u8-stpncpy'.
7200         * modules/unistr/u8-stpncpy-tests: New file.
7201         * tests/unistr/test-u8-stpncpy.c: New file.
7202         * tests/unistr/test-stpncpy.h: New file.
7203
7204         Tests for module 'unistr/u32-strncpy'.
7205         * modules/unistr/u32-strncpy-tests: New file.
7206         * tests/unistr/test-u32-strncpy.c: New file.
7207
7208         Tests for module 'unistr/u16-strncpy'.
7209         * modules/unistr/u16-strncpy-tests: New file.
7210         * tests/unistr/test-u16-strncpy.c: New file.
7211
7212         Tests for module 'unistr/u8-strncpy'.
7213         * modules/unistr/u8-strncpy-tests: New file.
7214         * tests/unistr/test-u8-strncpy.c: New file.
7215         * tests/unistr/test-strncpy.h: New file.
7216
7217         Tests for module 'unistr/u32-stpcpy'.
7218         * modules/unistr/u32-stpcpy-tests: New file.
7219         * tests/unistr/test-u32-stpcpy.c: New file.
7220
7221         Tests for module 'unistr/u16-stpcpy'.
7222         * modules/unistr/u16-stpcpy-tests: New file.
7223         * tests/unistr/test-u16-stpcpy.c: New file.
7224
7225         Tests for module 'unistr/u8-stpcpy'.
7226         * modules/unistr/u8-stpcpy-tests: New file.
7227         * tests/unistr/test-u8-stpcpy.c: New file.
7228         * tests/unistr/test-stpcpy.h: New file.
7229
7230         Tests for module 'unistr/u32-strcpy'.
7231         * modules/unistr/u32-strcpy-tests: New file.
7232         * tests/unistr/test-u32-strcpy.c: New file.
7233
7234         Tests for module 'unistr/u16-strcpy'.
7235         * modules/unistr/u16-strcpy-tests: New file.
7236         * tests/unistr/test-u16-strcpy.c: New file.
7237
7238         Tests for module 'unistr/u8-strcpy'.
7239         * modules/unistr/u8-strcpy-tests: New file.
7240         * tests/unistr/test-u8-strcpy.c: New file.
7241         * tests/unistr/test-strcpy.h: New file.
7242
7243         Tests for module 'unistr/u32-strnlen'.
7244         * modules/unistr/u32-strnlen-tests: New file.
7245         * tests/unistr/test-u32-strnlen.c: New file.
7246
7247         Tests for module 'unistr/u16-strnlen'.
7248         * modules/unistr/u16-strnlen-tests: New file.
7249         * tests/unistr/test-u16-strnlen.c: New file.
7250
7251         Tests for module 'unistr/u8-strnlen'.
7252         * modules/unistr/u8-strnlen-tests: New file.
7253         * tests/unistr/test-u8-strnlen.c: New file.
7254         * tests/unistr/test-strnlen.h: New file.
7255
7256         Tests for module 'unistr/u32-strlen'.
7257         * modules/unistr/u32-strlen-tests: New file.
7258         * tests/unistr/test-u32-strlen.c: New file.
7259
7260         Tests for module 'unistr/u16-strlen'.
7261         * modules/unistr/u16-strlen-tests: New file.
7262         * tests/unistr/test-u16-strlen.c: New file.
7263
7264         Tests for module 'unistr/u8-strlen'.
7265         * modules/unistr/u8-strlen-tests: New file.
7266         * tests/unistr/test-u8-strlen.c: New file.
7267
7268         Tests for module 'unistr/u32-prev'.
7269         * modules/unistr/u32-prev-tests: New file.
7270         * tests/unistr/test-u32-prev.c: New file.
7271
7272         Tests for module 'unistr/u16-prev'.
7273         * modules/unistr/u16-prev-tests: New file.
7274         * tests/unistr/test-u16-prev.c: New file.
7275
7276         Tests for module 'unistr/u8-prev'.
7277         * modules/unistr/u8-prev-tests: New file.
7278         * tests/unistr/test-u8-prev.c: New file.
7279
7280         Tests for module 'unistr/u32-next'.
7281         * modules/unistr/u32-next-tests: New file.
7282         * tests/unistr/test-u32-next.c: New file.
7283
7284         Tests for module 'unistr/u16-next'.
7285         * modules/unistr/u16-next-tests: New file.
7286         * tests/unistr/test-u16-next.c: New file.
7287
7288         Tests for module 'unistr/u8-next'.
7289         * modules/unistr/u8-next-tests: New file.
7290         * tests/unistr/test-u8-next.c: New file.
7291
7292         Tests for module 'unistr/u32-strmbtouc'.
7293         * modules/unistr/u32-strmbtouc-tests: New file.
7294         * tests/unistr/test-u32-strmbtouc.c: New file.
7295
7296         Tests for module 'unistr/u16-strmbtouc'.
7297         * modules/unistr/u16-strmbtouc-tests: New file.
7298         * tests/unistr/test-u16-strmbtouc.c: New file.
7299
7300         Tests for module 'unistr/u8-strmbtouc'.
7301         * modules/unistr/u8-strmbtouc-tests: New file.
7302         * tests/unistr/test-u8-strmbtouc.c: New file.
7303
7304         Tests for module 'unistr/u32-strmblen'.
7305         * modules/unistr/u32-strmblen-tests: New file.
7306         * tests/unistr/test-u32-strmblen.c: New file.
7307
7308         Tests for module 'unistr/u16-strmblen'.
7309         * modules/unistr/u16-strmblen-tests: New file.
7310         * tests/unistr/test-u16-strmblen.c: New file.
7311
7312         Tests for module 'unistr/u8-strmblen'.
7313         * modules/unistr/u8-strmblen-tests: New file.
7314         * tests/unistr/test-u8-strmblen.c: New file.
7315
7316         Tests for module 'unistr/u32-cpy-alloc'.
7317         * modules/unistr/u32-cpy-alloc-tests: New file.
7318         * tests/unistr/test-u32-cpy-alloc.c: New file.
7319
7320         Tests for module 'unistr/u16-cpy-alloc'.
7321         * modules/unistr/u16-cpy-alloc-tests: New file.
7322         * tests/unistr/test-u16-cpy-alloc.c: New file.
7323
7324         Tests for module 'unistr/u8-cpy-alloc'.
7325         * modules/unistr/u8-cpy-alloc-tests: New file.
7326         * tests/unistr/test-u8-cpy-alloc.c: New file.
7327         * tests/unistr/test-cpy-alloc.h: New file.
7328
7329         Tests for module 'unistr/u32-mbsnlen'.
7330         * modules/unistr/u32-mbsnlen-tests: New file.
7331         * tests/unistr/test-u32-mbsnlen.c: New file.
7332
7333         Tests for module 'unistr/u16-mbsnlen'.
7334         * modules/unistr/u16-mbsnlen-tests: New file.
7335         * tests/unistr/test-u16-mbsnlen.c: New file.
7336
7337         Tests for module 'unistr/u8-mbsnlen'.
7338         * modules/unistr/u8-mbsnlen-tests: New file.
7339         * tests/unistr/test-u8-mbsnlen.c: New file.
7340
7341         Tests for module 'unistr/u32-chr'.
7342         * modules/unistr/u32-chr-tests: New file.
7343         * tests/unistr/test-u32-chr.c: New file.
7344
7345         Tests for module 'unistr/u16-chr'.
7346         * modules/unistr/u16-chr-tests: New file.
7347         * tests/unistr/test-u16-chr.c: New file.
7348
7349         Tests for module 'unistr/u8-chr'.
7350         * modules/unistr/u8-chr-tests: New file.
7351         * tests/unistr/test-u8-chr.c: New file.
7352         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7353
7354         Tests for module 'unistr/u32-cmp2'.
7355         * modules/unistr/u32-cmp2-tests: New file.
7356         * tests/unistr/test-u32-cmp2.c: New file.
7357
7358         Tests for module 'unistr/u16-cmp2'.
7359         * modules/unistr/u16-cmp2-tests: New file.
7360         * tests/unistr/test-u16-cmp2.c: New file.
7361
7362         Tests for module 'unistr/u8-cmp2'.
7363         * modules/unistr/u8-cmp2-tests: New file.
7364         * tests/unistr/test-u8-cmp2.c: New file.
7365         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7366
7367         Tests for module 'unistr/u32-cmp'.
7368         * modules/unistr/u32-cmp-tests: New file.
7369         * tests/unistr/test-u32-cmp.c: New file.
7370
7371         Tests for module 'unistr/u16-cmp'.
7372         * modules/unistr/u16-cmp-tests: New file.
7373         * tests/unistr/test-u16-cmp.c: New file.
7374
7375         Tests for module 'unistr/u8-cmp'.
7376         * modules/unistr/u8-cmp-tests: New file.
7377         * tests/unistr/test-u8-cmp.c: New file.
7378         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7379
7380         Tests for module 'unistr/u32-set'.
7381         * modules/unistr/u32-set-tests: New file.
7382         * tests/unistr/test-u32-set.c: New file.
7383
7384         Tests for module 'unistr/u16-set'.
7385         * modules/unistr/u16-set-tests: New file.
7386         * tests/unistr/test-u16-set.c: New file.
7387
7388         Tests for module 'unistr/u8-set'.
7389         * modules/unistr/u8-set-tests: New file.
7390         * tests/unistr/test-u8-set.c: New file.
7391         * tests/unistr/test-set.h: New file.
7392
7393         Tests for module 'unistr/u32-move'.
7394         * modules/unistr/u32-move-tests: New file.
7395         * tests/unistr/test-u32-move.c: New file.
7396
7397         Tests for module 'unistr/u16-move'.
7398         * modules/unistr/u16-move-tests: New file.
7399         * tests/unistr/test-u16-move.c: New file.
7400
7401         Tests for module 'unistr/u8-move'.
7402         * modules/unistr/u8-move-tests: New file.
7403         * tests/unistr/test-u8-move.c: New file.
7404         * tests/unistr/test-move.h: New file.
7405
7406         Tests for module 'unistr/u32-cpy'.
7407         * modules/unistr/u32-cpy-tests: New file.
7408         * tests/unistr/test-u32-cpy.c: New file.
7409
7410         Tests for module 'unistr/u16-cpy'.
7411         * modules/unistr/u16-cpy-tests: New file.
7412         * tests/unistr/test-u16-cpy.c: New file.
7413
7414         Tests for module 'unistr/u8-cpy'.
7415         * modules/unistr/u8-cpy-tests: New file.
7416         * tests/unistr/test-u8-cpy.c: New file.
7417         * tests/unistr/test-cpy.h: New file.
7418
7419 2010-01-09  Bruno Haible  <bruno@clisp.org>
7420
7421         Tests for module 'unistr/u32-uctomb'.
7422         * modules/unistr/u32-uctomb-tests: New file.
7423         * tests/unistr/test-u32-uctomb.c: New file.
7424
7425         Tests for module 'unistr/u16-uctomb'.
7426         * modules/unistr/u16-uctomb-tests: New file.
7427         * tests/unistr/test-u16-uctomb.c: New file.
7428
7429         Tests for module 'unistr/u8-uctomb'.
7430         * modules/unistr/u8-uctomb-tests: New file.
7431         * tests/unistr/test-u8-uctomb.c: New file.
7432
7433         Tests for module 'unistr/u32-mbtoucr'.
7434         * modules/unistr/u32-mbtoucr-tests: New file.
7435         * tests/unistr/test-u32-mbtoucr.c: New file.
7436
7437         Tests for module 'unistr/u16-mbtoucr'.
7438         * modules/unistr/u16-mbtoucr-tests: New file.
7439         * tests/unistr/test-u16-mbtoucr.c: New file.
7440
7441         Tests for module 'unistr/u8-mbtoucr'.
7442         * modules/unistr/u8-mbtoucr-tests: New file.
7443         * tests/unistr/test-u8-mbtoucr.c: New file.
7444
7445         Tests for module 'unistr/u32-mbtouc'.
7446         * modules/unistr/u32-mbtouc-tests: New file.
7447         * tests/unistr/test-u32-mbtouc.c: New file.
7448
7449         Tests for module 'unistr/u16-mbtouc'.
7450         * modules/unistr/u16-mbtouc-tests: New file.
7451         * tests/unistr/test-u16-mbtouc.c: New file.
7452
7453         Tests for module 'unistr/u8-mbtouc'.
7454         * modules/unistr/u8-mbtouc-tests: New file.
7455         * tests/unistr/test-u8-mbtouc.c: New file.
7456
7457         Tests for module 'unistr/u32-mbtouc-unsafe'.
7458         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7459         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7460         * tests/unistr/test-u32-mbtouc.h: New file.
7461
7462         Tests for module 'unistr/u16-mbtouc-unsafe'.
7463         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7464         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7465         * tests/unistr/test-u16-mbtouc.h: New file.
7466
7467         Tests for module 'unistr/u8-mbtouc-unsafe'.
7468         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7469         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7470         * tests/unistr/test-u8-mbtouc.h: New file.
7471
7472         Tests for module 'unistr/u32-mblen'.
7473         * modules/unistr/u32-mblen-tests: New file.
7474         * tests/unistr/test-u32-mblen.c: New file.
7475
7476         Tests for module 'unistr/u16-mblen'.
7477         * modules/unistr/u16-mblen-tests: New file.
7478         * tests/unistr/test-u16-mblen.c: New file.
7479
7480         Tests for module 'unistr/u8-mblen'.
7481         * modules/unistr/u8-mblen-tests: New file.
7482         * tests/unistr/test-u8-mblen.c: New file.
7483
7484         Tests for module 'unistr/u32-to-u16'.
7485         * modules/unistr/u32-to-u16-tests: New file.
7486         * tests/unistr/test-u32-to-u16.c: New file.
7487
7488         Tests for module 'unistr/u32-to-u8'.
7489         * modules/unistr/u32-to-u8-tests: New file.
7490         * tests/unistr/test-u32-to-u8.c: New file.
7491
7492         Tests for module 'unistr/u16-to-u32'.
7493         * modules/unistr/u16-to-u32-tests: New file.
7494         * tests/unistr/test-u16-to-u32.c: New file.
7495
7496         Tests for module 'unistr/u16-to-u8'.
7497         * modules/unistr/u16-to-u8-tests: New file.
7498         * tests/unistr/test-u16-to-u8.c: New file.
7499
7500         Tests for module 'unistr/u8-to-u32'.
7501         * modules/unistr/u8-to-u32-tests: New file.
7502         * tests/unistr/test-u8-to-u32.c: New file.
7503
7504         Tests for module 'unistr/u8-to-u16'.
7505         * modules/unistr/u8-to-u16-tests: New file.
7506         * tests/unistr/test-u8-to-u16.c: New file.
7507
7508         Tests for module 'unistr/u32-check'.
7509         * modules/unistr/u32-check-tests: New file.
7510         * tests/unistr/test-u32-check.c: New file.
7511
7512         Tests for module 'unistr/u16-check'.
7513         * modules/unistr/u16-check-tests: New file.
7514         * tests/unistr/test-u16-check.c: New file.
7515
7516         Tests for module 'unistr/u8-check'.
7517         * modules/unistr/u8-check-tests: New file.
7518         * tests/unistr/test-u8-check.c: New file.
7519
7520         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7521         (category_equals): New function.
7522         (main): Add more tests.
7523         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7524
7525         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7526
7527 2010-01-10  Bruno Haible  <bruno@clisp.org>
7528
7529         unistr/u*-strcoll: Try harder to distinguish different strings.
7530         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7531         compare s1 and s2 to see if they are different.
7532
7533 2010-01-10  Bruno Haible  <bruno@clisp.org>
7534
7535         unistr/u*-stpncpy: Fix the return value.
7536         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7537         description of the return value consistent with stpncpy in glibc.
7538         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7539         written non-NUL unit.
7540
7541 2010-01-10  Bruno Haible  <bruno@clisp.org>
7542
7543         unistr/u*-next: Add missing dependencies.
7544         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7545         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7546         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7547
7548 2010-01-10  Bruno Haible  <bruno@clisp.org>
7549
7550         unistr/u8-mbsnlen: Fix return value for incomplete character.
7551         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7552         u8_mblen.
7553         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7554         Remove unistr/u8-mblen.
7555         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7556         u16_mblen.
7557         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7558         Remove unistr/u16-mblen.
7559
7560 2010-01-10  Bruno Haible  <bruno@clisp.org>
7561
7562         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7563         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7564         Reported by Brian Gough <bjg@gnu.org> and
7565         Chris Clayton <chris2553@googlemail.com> via
7566         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7567
7568 2010-01-09  Bruno Haible  <bruno@clisp.org>
7569
7570         unistr/u16-to-u32: Reject invalid input.
7571         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7572         u16_mbtouc.
7573         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7574         Remove unistr/u16-mbtouc.
7575
7576         unistr/u16-to-u8: Reject invalid input.
7577         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7578         u16_mbtouc.
7579         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7580         Remove unistr/u16-mbtouc.
7581
7582         unistr/u8-to-u32: Reject invalid input.
7583         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7584         u8_mbtouc.
7585         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7586         Remove unistr/u8-mbtouc.
7587
7588         unistr/u8-to-u16: Reject invalid input.
7589         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7590         u8_mbtouc.
7591         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7592         Remove unistr/u8-mbtouc.
7593
7594 2010-01-09  Bruno Haible  <bruno@clisp.org>
7595
7596         Tests for module 'getlogin'.
7597         * modules/getlogin-tests: New file.
7598         * tests/test-getlogin.c: New file.
7599
7600         New module 'getlogin'.
7601         * lib/unistd.in.h (getlogin): New declaration.
7602         * lib/getlogin.c: New file.
7603         * m4/getlogin.m4: New file.
7604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7605         HAVE_GETLOGIN.
7606         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7607         HAVE_GETLOGIN.
7608         * modules/getlogin: New file.
7609         * doc/posix-functions/getlogin.texi: Mention the new module.
7610         Reported by John W. Eaton <jwe@gnu.org>.
7611
7612 2010-01-09  Bruno Haible  <bruno@clisp.org>
7613
7614         getlogin_r: Support for native Windows.
7615         * lib/getlogin_r.c: Include <windows.h>
7616         (getlogin_r): Implement for native Windows.
7617         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7618         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7619         via John W. Eaton <jwe@gnu.org>.
7620
7621 2010-01-09  Bruno Haible  <bruno@clisp.org>
7622
7623         getlogin_r: Small fixes.
7624         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7625         succeeds.
7626         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7627         before testing whether getlogin_r is declared. No need to set
7628         HAVE_DECL_GETLOGIN_R to 1.
7629         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7630
7631 2010-01-09  Bruno Haible  <bruno@clisp.org>
7632
7633         * lib/unistd.in.h (getlogin_r): Add comment.
7634
7635 2010-01-09  Bruno Haible  <bruno@clisp.org>
7636
7637         Tests for module 'getlogin_r'.
7638         * modules/getlogin_r-tests: New file.
7639         * tests/test-getlogin_r.c: New file.
7640
7641 2010-01-09  Jim Meyering  <meyering@redhat.com>
7642
7643         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7644         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7645         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7646
7647 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7648
7649         * lib/dup2.c (rpl_dup2): Improve comment.
7650
7651 2010-01-08  Eric Blake  <ebb9@byu.net>
7652
7653         maint.mk: allow packages to add makefile @@ exceptions
7654         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7655         (sc_makefile_check): Rename...
7656         (sc_makefile_at_at_check): ...to this, and use hook.
7657
7658         dup2: work around mingw bug
7659         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7660         Reported by Simon Josefsson.
7661
7662 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7663
7664         glob: Fix C++ compilation.
7665         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7666         C++.
7667
7668 2010-01-07  Bruno Haible  <bruno@clisp.org>
7669
7670         Fix indentation of wctype.in.h, broken since 2007-01-06.
7671         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7672
7673 2010-01-07  Bruno Haible  <bruno@clisp.org>
7674
7675         mbslen: Avoid collision with system function.
7676         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7677         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7678         * m4/mbslen.m4: New file.
7679         * modules/mbslen (Files): Add it.
7680         (configure.ac): Invoke gl_MBSLEN.
7681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7682         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7683         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7684         via Ian Beckwith <ianb@erislabs.net>.
7685
7686 2010-01-07  Bruno Haible  <bruno@clisp.org>
7687
7688         dirent: Document the last fix.
7689         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7690
7691 2010-01-07  Bruno Haible  <bruno@clisp.org>
7692
7693         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7694         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7695         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7696         va_list are defined.
7697         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7698         Reported by Eric Blake.
7699
7700 2010-01-07  Bruno Haible  <bruno@clisp.org>
7701
7702         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7703         * modules/xlist (Depends-on): Add 'list',
7704         * modules/xoset (Depends-on): Add 'oset'.
7705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7706
7707 2010-01-07  Bruno Haible  <bruno@clisp.org>
7708
7709         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7710         * doc/posix-functions/strncasecmp.texi: Likewise.
7711
7712 2010-01-07  Bruno Haible  <bruno@clisp.org>
7713
7714         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7715
7716 2010-01-07  John W. Eaton  <jwe@octave.org>
7717
7718         wctype: allow C++ use
7719         * lib/wctype.in.h: Add extern "C" block for C++.
7720
7721 2010-01-06  Eric Blake  <ebb9@byu.net>
7722
7723         maint.mk: detect incorrect GFDL usage
7724         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7725
7726 2010-01-06  Jim Meyering  <meyering@redhat.com>
7727         and Eric Blake  <ebb9@byu.net>
7728
7729         maint.mk: ignore multi-line copyright in NEWS
7730         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7731
7732 2010-01-06  Eric Blake  <ebb9@byu.net>
7733
7734         select: add missing dependency
7735         * modules/select-tests (Depends-on): Move sockets dependency...
7736         * modules/select (Depends-on): ...here.
7737         Reported by Ian Beckwith.
7738
7739         doc: regenerate INSTALL
7740         * doc/INSTALL: Reflect recent autoconf update.
7741         * doc/INSTALL.ISO: Likewise.
7742         * doc/INSTALL.UTF-8: Likewise.
7743
7744         pread: fix compilation on glibc
7745         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7746         Reported by Ralf Wildenhues.
7747
7748         dirent: fix test failure
7749         * lib/dirent.in.h (includes): Guarantee ino_t.
7750         Reported by Ralf Wildenhues.
7751
7752 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7753
7754         linkat, renameat: avoid bad free
7755         * lib/at-func2.c (at_func2): Fix typo.
7756         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7757
7758 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7759
7760         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7761         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7762         to avoid failure of symlink test later.
7763
7764 2010-01-06  Eric Blake  <ebb9@byu.net>
7765
7766         stdio, unistd: guarantee ssize_t
7767         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7768         2008 are exposed when needed.
7769         * lib/stdio.in.h (includes): Likewise.
7770         Reported by Ralf Wildenhues.
7771
7772 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7773
7774         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7775         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7776         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7777
7778 2010-01-06  Jim Meyering  <meyering@redhat.com>
7779
7780         readtokens: this module *does* require xalloc.h
7781         It uses only functions that were omitted by the old syntax-check rule.
7782         * lib/readtokens.c: Include "xalloc.h" once again.
7783         * modules/readtokens (Depends-on): Add xalloc.
7784         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7785
7786 2010-01-05  Eric Blake  <ebb9@byu.net>
7787
7788         maint: support 'make announcement' from a VPATH build
7789         * top/maint.mk (announcement): Look for correct NEWS file.
7790
7791 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7792
7793         utimens (fdutimens): ignore a negative FD, per contract
7794         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7795         when we have a valid file descriptor.  Otherwise, using a brand
7796         new glibc (with just-patched futimens that now fails with EBADF)
7797         would cause this function to fail with ENOSYS.
7798         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7799         See also http://bugzilla.redhat.com/552320.
7800
7801 2010-01-05  Eric Blake  <ebb9@byu.net>
7802
7803         strcase: document what it provides
7804         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7805         gnulib module.
7806         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7807         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7808
7809 2010-01-05  Jim Meyering  <meyering@redhat.com>
7810
7811         maint: remove useless inclusions of "xalloc.h"
7812         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7813         * lib/readtokens.c: Likewise.
7814         * lib/same.c: Likewise.
7815         * modules/getloadavg (Depends-on): Remove xalloc.
7816         * modules/readtokens: Likewise.
7817         * modules/same: Likewise.
7818
7819         maint.mk: include 4 more function names in alloca.h-checking regexp
7820         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7821         regexp.  Before, we would give a false-positive (saying alloca.h
7822         is included unnecessarily) when the only uses involved omitted symbols.
7823
7824         xalloc.h: use consistent formatting
7825         * lib/xalloc.h: Move declarations to start in the first column.
7826
7827 2010-01-05  Eric Blake  <ebb9@byu.net>
7828
7829         mkdir: avoid xalloc
7830         * lib/mkdir.c (includes): Drop unused header.
7831         Reported by John W. Eaton.
7832
7833 2010-01-04  Jim Meyering  <meyering@redhat.com>
7834
7835         nl_langinfo: avoid configure-time syntax error
7836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7837         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7838         the empty string.  Don't let that provoke a shell syntax error.
7839
7840         regcomp, regexec, fnmatch: avoid array bounds read error
7841         * lib/regcomp.c (build_equiv_class): From glibc:
7842         Use only the low 24 bits of a findidx return value as an index
7843         into the weights array.  Patch by Ulrich Drepper:
7844         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7845         * lib/regexec.c (check_node_accept_bytes): Likewise.
7846         * lib/fnmatch_loop.c (FCT): Likewise.
7847
7848         regcomp: skip collseq lookup when there are no rules
7849         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7850         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7851
7852         regcomp: recognize ill-formed { } expressions
7853         * lib/regcomp.c (parse_dup_op): From glibc:
7854         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7855
7856         regcomp: fix typo in comment
7857         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7858         s/satisfy/satisfies/.
7859
7860         regcomp: sync from glibc: remove dead store
7861         * lib/regcomp.c (duplicate_node_closure): Remove useless
7862         search_duplicated_node call and dead store.
7863
7864         regcomp: sync from glibc; always use nl_langinfo
7865         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7866         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7867         * modules/regex (Depends-on): Add nl_langinfo.
7868
7869 2010-01-04  Eric Blake  <ebb9@byu.net>
7870
7871         fdopendir: fix configure test
7872         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7873
7874 2010-01-01  Bruno Haible  <bruno@clisp.org>
7875
7876         wchar: Remove unused configure check.
7877         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7878
7879 2010-01-01  Eric Blake  <ebb9@byu.net>
7880
7881         headers: make check of system header explicit
7882         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7883         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7884         ourselves.
7885         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7887         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7888         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7889         internals.
7890         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7891         missing.
7892         Suggested by Bruno Haible.
7893
7894 2010-01-01  Jim Meyering  <meyering@redhat.com>
7895
7896         ChangeLog: tweak to eliminate unnecessary copyright line
7897         * ChangeLog: Remove a copyright line that was mistakenly updated
7898         by today's update-copyright run.  Reported by Eric Blake.
7899
7900         test-update-copyright: don't let envvar setting cause test failure
7901         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7902
7903 2010-01-01  Bruno Haible  <bruno@clisp.org>
7904
7905         localename: Avoid gcc warning.
7906         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7907         function if it is not used.
7908
7909 2010-01-01  Jim Meyering  <meyering@redhat.com>
7910
7911         update nearly all FSF copyright year lists to include 2010
7912         Use the same procedure as for 2009, outlined in
7913         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7914
7915         version-etc: set COPYRIGHT_YEAR to 2010
7916         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7917
7918 2009-12-31  Eric Blake  <ebb9@byu.net>
7919
7920         doc: correct availability of cygwin 1.5.x getopt
7921         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7922         variables.
7923         * doc/posix-functions/opterr.texi (opterr): Likewise.
7924         * doc/posix-functions/optind.texi (optind): Likewise.
7925         * doc/posix-functions/optopt.texi (optopt): Likewise.
7926         * doc/posix-functions/tzname.texi (tzname): Likewise.
7927
7928         openat: update maintainer
7929         * modules/openat (Maintainer): Add myself.
7930
7931         utimens: avoid shadowing warning
7932         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7933         buffers into one, to avoid shadowing, as well as avoiding a
7934         redundant stat.
7935         Reported by Jim Meyering.
7936
7937         test-dup2: avoid compiler warning
7938         * tests/test-dup2.c (is_inheritable): Only define if used.
7939
7940 2010-01-01  Bruno Haible  <bruno@clisp.org>
7941
7942         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7943         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7944         defined, use wctomb instead of wcrtomb.
7945
7946 2010-01-01  Bruno Haible  <bruno@clisp.org>
7947
7948         iconv: Reject native Solaris iconv.
7949         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7950         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7951
7952 2009-12-31  Bruno Haible  <bruno@clisp.org>
7953
7954         * tests/test-signal.c (main): Remove test of 'SIG'.
7955
7956 2009-12-31  Bruno Haible  <bruno@clisp.org>
7957
7958         spawn: Fix incomplete fix.
7959         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7960         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7961         warnings for GNULIB_POSIXCHECK again.
7962         Reported by Eric Blake.
7963
7964 2009-12-31  Bruno Haible  <bruno@clisp.org>
7965
7966         Avoid namespace pollution on glibc systems.
7967         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7968         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7969         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7970         glibc systems.
7971
7972 2009-12-31  Bruno Haible  <bruno@clisp.org>
7973
7974         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7975         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7976         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7977         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7978         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7979         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7980         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7981
7982 2009-12-31  Bruno Haible  <bruno@clisp.org>
7983
7984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7985         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7986         afterwards.
7987
7988 2009-12-31  Bruno Haible  <bruno@clisp.org>
7989
7990         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7991         SYS_UTSNAME_H.
7992
7993 2009-12-31  Bruno Haible  <bruno@clisp.org>
7994
7995         spawn: Fix misapplied patch.
7996         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7997         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7998         warnings for GNULIB_POSIXCHECK.
7999
8000 2009-12-31  Bruno Haible  <bruno@clisp.org>
8001
8002         times: Update after sys_times changed.
8003         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8004         * modules/times (Files): Add it.
8005         (configure.ac): Invoke gl_FUNC_TIMES.
8006
8007 2009-12-31  Bruno Haible  <bruno@clisp.org>
8008
8009         Use AC_C_INLINE where necessary.
8010         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8012         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8013         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8014         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8015         * m4/mbiter.m4 (gl_MBITER): Likewise.
8016         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8017         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8018         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8019         * modules/u64 (configure.ac): Likewise.
8020
8021 2009-12-31  Bruno Haible  <bruno@clisp.org>
8022
8023         Use AC_C_INLINE instead of module 'inline' where possible.
8024         * modules/inline (Description): Clarify purpose.
8025         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8026         * modules/count-one-bits (Depends-on): Remove inline.
8027         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8028         * modules/openat (Depends-on): Remove inline.
8029         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8030         instead of depending on module 'inline'.
8031         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8032         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8033         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8034         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8035         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8036         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8037         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8038         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8039         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8040         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8041         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8042         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8043         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8044         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8045         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8046         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8047         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8048         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8049         Likewise.
8050         * modules/unictype/property-ascii-hex-digit (Depends-on,
8051         configure.ac): Likewise.
8052         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8053         configure.ac): Likewise.
8054         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8055         configure.ac): Likewise.
8056         * modules/unictype/property-bidi-block-separator (Depends-on,
8057         configure.ac): Likewise.
8058         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8059         configure.ac): Likewise.
8060         * modules/unictype/property-bidi-common-separator (Depends-on,
8061         configure.ac): Likewise.
8062         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8063         Likewise.
8064         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8065         configure.ac): Likewise.
8066         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8067         configure.ac): Likewise.
8068         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8069         configure.ac): Likewise.
8070         * modules/unictype/property-bidi-european-digit (Depends-on,
8071         configure.ac): Likewise.
8072         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8073         configure.ac): Likewise.
8074         * modules/unictype/property-bidi-left-to-right (Depends-on,
8075         configure.ac): Likewise.
8076         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8077         configure.ac): Likewise.
8078         * modules/unictype/property-bidi-other-neutral (Depends-on,
8079         configure.ac): Likewise.
8080         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8081         Likewise.
8082         * modules/unictype/property-bidi-segment-separator (Depends-on,
8083         configure.ac): Likewise.
8084         * modules/unictype/property-bidi-whitespace (Depends-on,
8085         configure.ac): Likewise.
8086         * modules/unictype/property-combining (Depends-on, configure.ac):
8087         Likewise.
8088         * modules/unictype/property-composite (Depends-on, configure.ac):
8089         Likewise.
8090         * modules/unictype/property-currency-symbol (Depends-on,
8091         configure.ac): Likewise.
8092         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8093         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8094         Likewise.
8095         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8096         configure.ac): Likewise.
8097         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8098         Likewise.
8099         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8100         Likewise.
8101         * modules/unictype/property-extender (Depends-on, configure.ac):
8102         Likewise.
8103         * modules/unictype/property-format-control (Depends-on, configure.ac):
8104         Likewise.
8105         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8106         Likewise.
8107         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8108         Likewise.
8109         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8110         Likewise.
8111         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8112         Likewise.
8113         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8114         Likewise.
8115         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8116         Likewise.
8117         * modules/unictype/property-id-start (Depends-on, configure.ac):
8118         Likewise.
8119         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8120         Likewise.
8121         * modules/unictype/property-ids-binary-operator (Depends-on,
8122         configure.ac): Likewise.
8123         * modules/unictype/property-ids-trinary-operator (Depends-on,
8124         configure.ac): Likewise.
8125         * modules/unictype/property-ignorable-control (Depends-on,
8126         configure.ac): Likewise.
8127         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8128         Likewise.
8129         * modules/unictype/property-join-control (Depends-on, configure.ac):
8130         Likewise.
8131         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8132         Likewise.
8133         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8134         Likewise.
8135         * modules/unictype/property-logical-order-exception (Depends-on,
8136         configure.ac): Likewise.
8137         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8138         Likewise.
8139         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8140         * modules/unictype/property-non-break (Depends-on, configure.ac):
8141         Likewise.
8142         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8143         Likewise.
8144         * modules/unictype/property-numeric (Depends-on, configure.ac):
8145         Likewise.
8146         * modules/unictype/property-other-alphabetic (Depends-on,
8147         configure.ac): Likewise.
8148         * modules/unictype/property-other-default-ignorable-code-point
8149         (Depends-on, configure.ac): Likewise.
8150         * modules/unictype/property-other-grapheme-extend (Depends-on,
8151         configure.ac): Likewise.
8152         * modules/unictype/property-other-id-continue (Depends-on,
8153         configure.ac): Likewise.
8154         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8155         Likewise.
8156         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8157         Likewise.
8158         * modules/unictype/property-other-math (Depends-on, configure.ac):
8159         Likewise.
8160         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8161         Likewise.
8162         * modules/unictype/property-paired-punctuation (Depends-on,
8163         configure.ac): Likewise.
8164         * modules/unictype/property-paragraph-separator (Depends-on,
8165         configure.ac): Likewise.
8166         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8167         Likewise.
8168         * modules/unictype/property-pattern-white-space (Depends-on,
8169         configure.ac): Likewise.
8170         * modules/unictype/property-private-use (Depends-on, configure.ac):
8171         Likewise.
8172         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8173         Likewise.
8174         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8175         Likewise.
8176         * modules/unictype/property-radical (Depends-on, configure.ac):
8177         Likewise.
8178         * modules/unictype/property-sentence-terminal (Depends-on,
8179         configure.ac): Likewise.
8180         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8181         Likewise.
8182         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8183         * modules/unictype/property-terminal-punctuation (Depends-on,
8184         configure.ac): Likewise.
8185         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8186         Likewise.
8187         * modules/unictype/property-unassigned-code-value (Depends-on,
8188         configure.ac): Likewise.
8189         * modules/unictype/property-unified-ideograph (Depends-on,
8190         configure.ac): Likewise.
8191         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8192         Likewise.
8193         * modules/unictype/property-variation-selector (Depends-on,
8194         configure.ac): Likewise.
8195         * modules/unictype/property-white-space (Depends-on, configure.ac):
8196         Likewise.
8197         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8198         Likewise.
8199         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8200         Likewise.
8201         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8202         Likewise.
8203         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8204         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8205         Likewise.
8206
8207 2009-12-31  Bruno Haible  <bruno@clisp.org>
8208
8209         Remove unnecessary AC_C_INLINE invocation.
8210         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8211         since 2009-08-21.
8212
8213 2009-12-31  Jim Meyering  <meyering@redhat.com>
8214
8215         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8216         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8217         With this change, we can all remove the gpg_key_ID = ... definition
8218         from our respective cfg.mk files.
8219
8220         maint.mk: create announcement template in ~/, not in /tmp
8221         * top/maint.mk (emit_upload_commands): Adjust.
8222         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8223         Remove temporary file, .ci-msg.
8224
8225 2009-12-31  Eric Blake  <ebb9@byu.net>
8226
8227         link-warning: always build headers with link warnings
8228         * modules/arpa_inet (Makefile.am): Always build replacement
8229         header.
8230         * modules/ctype (Makefile.am): Likewise.
8231         * modules/dirent (Makefile.am): Likewise.
8232         * modules/inttypes (Makefile.am): Likewise.
8233         * modules/langinfo (Makefile.am): Likewise.
8234         * modules/locale (Makefile.am): Likewise.
8235         * modules/spawn (Makefile.am): Likewise.
8236         * modules/sys_file (Makefile.am): Likewise.
8237         * modules/sys_ioctl (Makefile.am): Likewise.
8238         * modules/sys_select (Makefile.am): Likewise.
8239         * modules/sys_socket (Makefile.am): Likewise.
8240         * modules/sys_times (Makefile.am): Likewise.
8241         * modules/sys_utsname (Makefile.am): Likewise.
8242         * modules/sys_wait (Makefile.am): Likewise.
8243         * modules/wchar (Makefile.am): Likewise.
8244         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8245         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8246         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8247         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8248         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8249         Likewise.
8250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8251         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8252         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8253         Likewise.
8254         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8255         Likewise.
8256         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8257         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8258         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8260         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8261         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8262         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8263         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8264         (gl_WCHAR_H_DEFAULTS): Likewise.
8265
8266 2009-12-31  Eric Blake  <ebb9@byu.net>
8267
8268         signal, spawn: use link warnings
8269         * lib/signal.in.h (sigset_t): Make unconditional.
8270         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8271         (sigpending, sigprocmask, sigaction): Add link warnings.
8272         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8273         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8274         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8275         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8276         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8277         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8278         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8279         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8280         (posix_spawn_file_actions_destroy)
8281         (posix_spawn_file_actions_addopen)
8282         (posix_spawn_file_actions_addclose)
8283         (posix_spawn_file_actions_adddup2): Likewise.
8284         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8285         * tests/test-signal.c (main): Enhance test.
8286
8287         spawn: improve wrapper support
8288         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8289         (gl_SPAWN_H_DEFAULTS): New defaults.
8290         * modules/spawn (Makefile.am): Substitute them.
8291         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8292         Only declare if missing or broken.
8293
8294         sys_times, sys_utsname: use include_next
8295         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8296         header.
8297         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8298         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8299         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8300         * modules/sys_times (Depends-on): Add include_next.
8301         (Makefile.am): Substitute additional values.
8302         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8303         * lib/sys_times.in.h (includes): Include native header, if
8304         available.
8305         * lib/sys_utsname.in.h (includes): Likewise.
8306         * tests/test-sys_times.c (main): Enhance test.
8307
8308         fdutimensat: revert prior patch
8309         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8310         utimens.h.
8311         Reported by Bruno Haible.
8312
8313 2009-12-30  Eric Blake  <ebb9@byu.net>
8314
8315         sys_wait: drop link-warning dependency
8316         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8317         link-warning efforts.
8318         * lib/sys_wait.in.h: Likewise.
8319
8320         fdutimensat: remove bogus dependency
8321         * modules/fdutimensat (Depends-on): Drop inline.
8322
8323         unistd: fix typo
8324         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8325
8326 2009-12-30  Bruno Haible  <bruno@clisp.org>
8327
8328         Fix compilation error with Solaris cc.
8329         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8330         * lib/unicase/u16-is-invariant.c: Likewise.
8331         * lib/unicase/u32-is-invariant.c: Likewise.
8332         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8333
8334 2009-12-30  Bruno Haible  <bruno@clisp.org>
8335
8336         Fix test crash.
8337         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8338         locales.
8339         Reported by Simon Josefsson <simon@josefsson.org>.
8340
8341 2009-12-30  Bruno Haible  <bruno@clisp.org>
8342
8343         Fix compilation error on most platforms.
8344         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8345         Reported by Simon Josefsson <simon@josefsson.org>
8346         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8347
8348 2009-12-30  Eric Blake  <ebb9@byu.net>
8349
8350         futimens, utimensat: work around ntfs-3g bug
8351         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8352         a ctime bug is present, and expand workaround to cover ntfs-3g.
8353         * lib/utimens.c (fdutimens, lutimens): Likewise.
8354         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8355         (validate_timespec): Adjust return value.
8356         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8358         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8359
8360 2009-12-29  Eric Blake  <ebb9@byu.net>
8361
8362         link-warning: make usage consistent
8363         * modules/ctype (Depends-on): Add link-warning.
8364         (Makefile.am): Update rules accordingly.
8365         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8366         * modules/locale (Depends-on, Makefile.am): Likewise.
8367         * modules/sys_file (Makefile.am): Likewise.
8368         * modules/getopt-posix (Makefile.am): Delete unused link warning
8369         efforts.
8370         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8371         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8372         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8373         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8374
8375         stdio: remove unused variables
8376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8377         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8378         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8379
8380         tests: test more substitute headers
8381         * modules/ctype-tests: New file.
8382         * modules/dirent-tests: Likewise.
8383         * modules/spawn-tests: Likewise.
8384         * modules/sys_file-tests: Likewise.
8385         * modules/sys_ioctl-tests: Likewise.
8386         * modules/sys_wait-tests: Likewise.
8387         * tests/test-ctype.c: Likewise.
8388         * tests/test-dirent.c: Likewise.
8389         * tests/test-spawn.c: Likewise.
8390         * tests/test-sys_file.c: Likewise.
8391         * tests/test-sys_ioctl.c: Likewise.
8392         * tests/test-sys_wait.c: Likewise.
8393         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8394         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8395         whether or not flock is in use.
8396
8397         tests: remove License section from module
8398         * modules/arpa_inet-tests: Remove unneeded section.
8399         * modules/byteswap-tests: Likewise.
8400         * modules/ceilf-tests: Likewise.
8401         * modules/ceill-tests: Likewise.
8402         * modules/crypto/des-tests: Likewise.
8403         * modules/crypto/gc-arcfour-tests: Likewise.
8404         * modules/crypto/gc-arctwo-tests: Likewise.
8405         * modules/crypto/gc-des-tests: Likewise.
8406         * modules/crypto/gc-hmac-md5-tests: Likewise.
8407         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8408         * modules/crypto/gc-md2-tests: Likewise.
8409         * modules/crypto/gc-md4-tests: Likewise.
8410         * modules/crypto/gc-md5-tests: Likewise.
8411         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8412         * modules/crypto/gc-rijndael-tests: Likewise.
8413         * modules/crypto/gc-sha1-tests: Likewise.
8414         * modules/crypto/gc-tests: Likewise.
8415         * modules/crypto/md2-tests: Likewise.
8416         * modules/crypto/md4-tests: Likewise.
8417         * modules/fcntl-h-tests: Likewise.
8418         * modules/floorf-tests: Likewise.
8419         * modules/floorl-tests: Likewise.
8420         * modules/frexp-nolibm-tests: Likewise.
8421         * modules/frexp-tests: Likewise.
8422         * modules/frexpl-nolibm-tests: Likewise.
8423         * modules/frexpl-tests: Likewise.
8424         * modules/getaddrinfo-tests: Likewise.
8425         * modules/inttypes-tests: Likewise.
8426         * modules/isfinite-tests: Likewise.
8427         * modules/isinf-tests: Likewise.
8428         * modules/ldexpl-tests: Likewise.
8429         * modules/locale-tests: Likewise.
8430         * modules/math-tests: Likewise.
8431         * modules/netdb-tests: Likewise.
8432         * modules/netinet_in-tests: Likewise.
8433         * modules/printf-frexp-tests: Likewise.
8434         * modules/printf-frexpl-tests: Likewise.
8435         * modules/priv-set-tests: Likewise.
8436         * modules/random_r-tests: Likewise.
8437         * modules/round-tests: Likewise.
8438         * modules/roundf-tests: Likewise.
8439         * modules/roundl-tests: Likewise.
8440         * modules/search-tests: Likewise.
8441         * modules/select-tests: Likewise.
8442         * modules/signal-tests: Likewise.
8443         * modules/stdbool-tests: Likewise.
8444         * modules/stddef-tests: Likewise.
8445         * modules/stdint-tests: Likewise.
8446         * modules/stdio-tests: Likewise.
8447         * modules/stdlib-tests: Likewise.
8448         * modules/string-tests: Likewise.
8449         * modules/strings-tests: Likewise.
8450         * modules/sys_select-tests: Likewise.
8451         * modules/sys_socket-tests: Likewise.
8452         * modules/sys_stat-tests: Likewise.
8453         * modules/sys_time-tests: Likewise.
8454         * modules/sys_utsname-tests: Likewise.
8455         * modules/sysexits-tests: Likewise.
8456         * modules/time-tests: Likewise.
8457         * modules/trunc-tests: Likewise.
8458         * modules/truncf-tests: Likewise.
8459         * modules/truncl-tests: Likewise.
8460         * modules/tsearch-tests: Likewise.
8461         * modules/unistd-tests: Likewise.
8462         * modules/wchar-tests: Likewise.
8463         * modules/wctype-tests: Likewise.
8464
8465         tests: fix license on several tests
8466         * tests/test-des.c: Update to GPLv3+.
8467         * tests/test-flock.c: Likewise.
8468         * tests/test-fsync.c: Likewise.
8469         * tests/test-futimens.h: Likewise.
8470         * tests/test-gc-arcfour.c: Likewise.
8471         * tests/test-gc-arctwo.c: Likewise.
8472         * tests/test-gc-des.c: Likewise.
8473         * tests/test-gc-hmac-md5.c: Likewise.
8474         * tests/test-gc-hmac-sha1.c: Likewise.
8475         * tests/test-gc-md2.c: Likewise.
8476         * tests/test-gc-md4.c: Likewise.
8477         * tests/test-gc-md5.c: Likewise.
8478         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8479         * tests/test-gc-rijndael.c: Likewise.
8480         * tests/test-gc-sha1.c: Likewise.
8481         * tests/test-gc.c: Likewise.
8482         * tests/test-getcwd.c: Likewise.
8483         * tests/test-link.c: Likewise.
8484         * tests/test-link.h: Likewise.
8485         * tests/test-lutimens.h: Likewise.
8486         * tests/test-md2.c: Likewise.
8487         * tests/test-md4.c: Likewise.
8488         * tests/test-mkdir.h: Likewise.
8489         * tests/test-rename.c: Likewise.
8490         * tests/test-rename.h: Likewise.
8491         * tests/test-safe-alloc.c: Likewise.
8492         * tests/test-utimens-common.h: Likewise.
8493         * tests/test-utimens.h: Likewise.
8494
8495         maint: sync license texts
8496         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8497         * doc/gpl-3.0.texi: Revert copyright year update.
8498         * doc/lgpl-3.0.texi: Likewise.
8499
8500 2009-12-29  Jim Meyering  <meyering@redhat.com>
8501
8502         update nearly all FSF copyright year lists to include 2009
8503         The files named by the following are exempted:
8504             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8505               test -f "$dst" && { echo "$dst"; continue; }
8506               test -d "$dst" || continue
8507               echo "$dst"/$(basename "$src")
8508             done > exempt
8509             git ls-files tests/unictype >> exempt
8510         In the remaining files, convert to all-interval notation if
8511         - there is already at least one year interval like 2000-2003
8512         - the file is maintained by me
8513         - the file is in lib/uni*/, where that style already prevails
8514         Otherwise, use update-copyright's default.
8515
8516 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8517         and Eric Blake  <ebb9@byu.net>
8518
8519         tests: don't require debug system() to pass
8520         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8521         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8522         * tests/test-unlink.h (test_unlink_func): Likewise.
8523         * tests/test-fstatat.c (main): ...into callers.
8524         * tests/test-lstat.c (main): Likewise.
8525         * tests/test-rmdir.c (main): Likewise.
8526         * tests/test-unlink.c (main): Likewise.
8527         * tests/test-unlinkat.c (main): Likewise.
8528         * tests/test-areadlink-with-size.c (main): Don't require a
8529         debug-only system call to pass, aiding cross-testing to mingw.
8530         * tests/test-areadlink.c (main): Likewise.
8531         * tests/test-areadlinkat-with-size.c (main): Likewise.
8532         * tests/test-areadlinkat.c (main): Likewise.
8533         * tests/test-canonicalize-lgpl.c (main): Likewise.
8534         * tests/test-canonicalize.c (main): Likewise.
8535         * tests/test-chown.c (main): Likewise.
8536         * tests/test-fchownat.c (main): Likewise.
8537         * tests/test-lchown.c (main): Likewise.
8538         * tests/test-fdutimensat.c (main): Likewise.
8539         * tests/test-futimens.c (main): Likewise.
8540         * tests/test-link.c (main): Likewise.
8541         * tests/test-linkat.c (main): Likewise.
8542         * tests/test-mkdir.c (main): Likewise.
8543         * tests/test-mkdirat.c (main): Likewise.
8544         * tests/test-mkfifo.c (main): Likewise.
8545         * tests/test-mkfifoat.c (main): Likewise.
8546         * tests/test-mknod.c (main): Likewise.
8547         * tests/test-readlink.c (main): Likewise.
8548         * tests/test-remove.c (main): Likewise.
8549         * tests/test-rename.c (main): Likewise.
8550         * tests/test-renameat.c (main): Likewise.
8551         * tests/test-symlink.c (main): Likewise.
8552         * tests/test-symlinkat.c (main): Likewise.
8553         * tests/test-utimens.c (main): Likewise.
8554         * tests/test-utimensat.c (main): Likewise.
8555
8556 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8557
8558         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8559         on $(UNUSED_PARAMETER_H) to avoid build failure.
8560
8561 2009-12-28  Jim Meyering  <meyering@redhat.com>
8562
8563         update-copyright: you may specify a max. line length other than 72
8564         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8565
8566         maint: use consistent FSF copyright line syntax
8567         * lib/posixtm.c: Add missing comma in FSF copyright line.
8568         * lib/posixtm.h: Likewise.
8569         * lib/getugroups.c: Add missing ", Inc.".
8570
8571         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8572         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8573         FSF copyright line.  Remove trailing blanks.
8574
8575 2009-12-28  Eric Blake  <ebb9@byu.net>
8576
8577         test-dup2: reduce dependencies
8578         * modules/cloexec (Configure.ac): Set witness.
8579         * modules/dup2-tests (Depends-on): Drop cloexec.
8580         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8581         not present.
8582         Suggested by Bruno Haible.
8583
8584 2009-12-26  Bruno Haible  <bruno@clisp.org>
8585
8586         Remove an unneeded dependency.
8587         * modules/fseterr (Depends-on): Remove dup2.
8588
8589 2009-12-26  Eric Blake  <ebb9@byu.net>
8590
8591         tests: use macros.h in more places
8592         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8593         (ASSERT_STREAM): Provide default of stderr.
8594         * tests/test-dirent-safer.c: Include macros.h, using alternate
8595         stream for assertions.
8596         * tests/test-dup-safer.c: Likewise.
8597         * tests/test-freopen-safer.c: Likewise.
8598         * tests/test-getopt.c: Likewise.
8599         * tests/test-openat-safer.c: Likewise.
8600         * tests/test-pipe.c: Likewise.
8601         * tests/test-popen-safer.c: Likewise.
8602         * modules/dirent-safer-tests (Files): Include macros.h.
8603         * modules/unistd-safer-tests (Files): Likewise.
8604         * modules/freopen-safer-tests (Files): Likewise.
8605         * modules/getopt-posix-tests (Files): Likewise.
8606         * modules/openat-safer-tests (Files): Likewise.
8607         * modules/pipe-tests (Files): Likewise.
8608
8609 2009-12-26  Bruno Haible  <bruno@clisp.org>
8610
8611         javacomp: Portability fix.
8612         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8613         that it also works on Solaris.
8614
8615 2009-12-26  Bruno Haible  <bruno@clisp.org>
8616
8617         localename: Fix storage allocation of gl_locale_name_thread's result.
8618         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8619         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8620         all platforms that have 'uselocale'.
8621         (gl_locale_name_thread_unsafe): New function, extracted from
8622         gl_locale_name_thread.
8623         (gl_locale_name_thread): Call struniq on all platforms that have
8624         'uselocale'.
8625         * tests/test-localename.c (test_locale_name_thread): Check that the
8626         resulting strings are permanently allocated.
8627         * modules/localename-tests (Depends-on): Add strdup.
8628
8629 2009-12-26  Bruno Haible  <bruno@clisp.org>
8630
8631         * tests/test-localename.c (categories): Fill in the strings.
8632
8633 2009-12-26  Jim Meyering  <meyering@redhat.com>
8634
8635         isdir: complete the removal of m4/isdir.m4
8636         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8637
8638         isdir: clean up, since at least grep still uses it
8639         * lib/isdir.c: Include "isdir.h".
8640         (S_ISDIR): Remove now-unneeded definition.
8641         * modules/isdir (Files): Add lib/isdir.h.
8642         * lib/isdir.h: New file, with declaration.
8643         * m4/isdir.m4: Remove file -- unneeded.
8644
8645 2009-12-25  Bruno Haible  <bruno@clisp.org>
8646
8647         selinux-h: Make generated .h files standalone.
8648         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8649         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8650         * lib/se-selinux.in.h: Likewise.
8651         * modules/selinux-h (Depends-on): Add unused-parameter.
8652         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8653         selinux/selinux.h and selinux/context.h.
8654         Suggested by Eric Blake.
8655
8656 2009-12-25  Bruno Haible  <bruno@clisp.org>
8657
8658         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8659         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8660         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8661         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8662         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8663
8664 2009-12-24  Bruno Haible  <bruno@clisp.org>
8665
8666         openat: Fix warning.
8667         * lib/openat-proc.c: Include <unistd.h>.
8668
8669 2009-12-24  Bruno Haible  <bruno@clisp.org>
8670
8671         New module 'unused-parameter'.
8672         * build-aux/unused-parameter.h: New file, extracted from earlier
8673         gnulib-common.m4.
8674         * modules/unused-parameter: New file.
8675         * lib/unistr.h: Include unused-parameter.h.
8676         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8677         _GL_UNUSED.
8678         * modules/unistr/base (Depends-on): Add unused-parameter.
8679
8680 2009-12-24  Bruno Haible  <bruno@clisp.org>
8681
8682         Add missing dependencies to 'extensions' module.
8683         * m4/extensions.m4: Add comment.
8684         * modules/accept4 (Depends-on): Add extensions.
8685         * modules/dup3 (Depends-on): Likewise.
8686         * modules/fcntl (Depends-on): Likewise.
8687         * modules/futimens (Depends-on): Likewise.
8688         * modules/mknod (Depends-on): Likewise.
8689         * modules/pipe2 (Depends-on): Likewise.
8690         * modules/stat-time (Depends-on): Likewise.
8691         * modules/strcasestr-simple (Depends-on): Likewise.
8692         * modules/strsignal (Depends-on): Likewise.
8693         * modules/utimensat (Depends-on): Likewise.
8694         * modules/localcharset (Depends-on): Likewise. Needed because of
8695         gl_FCNTL_O_FLAGS.
8696         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8697         AC_TYPE_MBSTATE_T.
8698         * modules/wcsnrtombs (Depends-on): Likewise.
8699         * modules/wcsrtombs (Depends-on): Likewise.
8700
8701 2009-12-24  Bruno Haible  <bruno@clisp.org>
8702
8703         binary-io: Avoid gcc warning due to SET_BINARY.
8704         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8705         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8706
8707 2009-12-24  Bruno Haible  <bruno@clisp.org>
8708
8709         Avoid future namespace pollution on glibc systems.
8710         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8711         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8712         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8713         glibc systems.
8714
8715 2009-12-24  Bruno Haible  <bruno@clisp.org>
8716
8717         Refactor common macros used in tests.
8718         * tests/macros.h: New file.
8719         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8720         and/or <stdlib.h>, if appropriate.
8721         (ASSERT, SIZEOF): Remove macros.
8722         * tests/test-areadlink-with-size.c: Likewise.
8723         * tests/test-areadlinkat.c: Likewise.
8724         * tests/test-areadlinkat-with-size.c: Likewise.
8725         * tests/test-argmatch.c: Likewise.
8726         * tests/test-argv-iter.c: Likewise.
8727         * tests/test-array-mergesort.c: Likewise.
8728         * tests/test-array_list.c: Likewise.
8729         * tests/test-array_oset.c: Likewise.
8730         * tests/test-avltree_list.c: Likewise.
8731         * tests/test-avltree_oset.c: Likewise.
8732         * tests/test-avltreehash_list.c: Likewise.
8733         * tests/test-base64.c: Likewise.
8734         * tests/test-binary-io.c: Likewise.
8735         * tests/test-bitrotate.c: Likewise.
8736         * tests/test-btowc.c: Likewise.
8737         * tests/test-byteswap.c: Likewise.
8738         * tests/test-c-ctype.c: Likewise.
8739         * tests/test-c-stack.c: Likewise.
8740         * tests/test-c-strcasecmp.c: Likewise.
8741         * tests/test-c-strcasestr.c: Likewise.
8742         * tests/test-c-strncasecmp.c: Likewise.
8743         * tests/test-c-strstr.c: Likewise.
8744         * tests/test-canonicalize-lgpl.c: Likewise.
8745         * tests/test-canonicalize.c: Likewise.
8746         * tests/test-carray_list.c: Likewise.
8747         * tests/test-ceilf1.c: Likewise.
8748         * tests/test-ceilf2.c: Likewise.
8749         * tests/test-ceill.c: Likewise.
8750         * tests/test-chown.c: Likewise.
8751         * tests/test-cloexec.c: Likewise.
8752         * tests/test-copy-acl.c: Likewise.
8753         * tests/test-copy-file.c: Likewise.
8754         * tests/test-count-one-bits.c: Likewise.
8755         * tests/test-dprintf-posix.c: Likewise.
8756         * tests/test-dup2.c: Likewise.
8757         * tests/test-dup3.c: Likewise.
8758         * tests/test-duplocale.c: Likewise.
8759         * tests/test-fbufmode.c: Likewise.
8760         * tests/test-fchdir.c: Likewise.
8761         * tests/test-fchownat.c: Likewise.
8762         * tests/test-fcntl-safer.c: Likewise.
8763         * tests/test-fcntl.c: Likewise.
8764         * tests/test-fdopendir.c: Likewise.
8765         * tests/test-fdutimensat.c: Likewise.
8766         * tests/test-fflush2.c: Likewise.
8767         * tests/test-file-has-acl.c: Likewise.
8768         * tests/test-filevercmp.c: Likewise.
8769         * tests/test-flock.c: Likewise.
8770         * tests/test-floorf1.c: Likewise.
8771         * tests/test-floorf2.c: Likewise.
8772         * tests/test-floorl.c: Likewise.
8773         * tests/test-fnmatch.c: Likewise.
8774         * tests/test-fopen.h: Likewise.
8775         * tests/test-fpending.c: Likewise.
8776         * tests/test-fprintf-posix.c: Likewise.
8777         * tests/test-fpurge.c: Likewise.
8778         * tests/test-freadable.c: Likewise.
8779         * tests/test-freadahead.c: Likewise.
8780         * tests/test-freading.c: Likewise.
8781         * tests/test-freadptr.c: Likewise.
8782         * tests/test-freadptr2.c: Likewise.
8783         * tests/test-freadseek.c: Likewise.
8784         * tests/test-freopen.c: Likewise.
8785         * tests/test-frexp.c: Likewise.
8786         * tests/test-frexpl.c: Likewise.
8787         * tests/test-fseek.c: Likewise.
8788         * tests/test-fseeko.c: Likewise.
8789         * tests/test-fstatat.c: Likewise.
8790         * tests/test-fstrcmp.c: Likewise.
8791         * tests/test-fsync.c: Likewise.
8792         * tests/test-ftell.c: Likewise.
8793         * tests/test-ftello.c: Likewise.
8794         * tests/test-func.c: Likewise.
8795         * tests/test-futimens.c: Likewise.
8796         * tests/test-fwritable.c: Likewise.
8797         * tests/test-fwriting.c: Likewise.
8798         * tests/test-getcwd.c: Likewise.
8799         * tests/test-getdate.c: Likewise.
8800         * tests/test-getdelim.c: Likewise.
8801         * tests/test-getdtablesize.c: Likewise.
8802         * tests/test-getgroups.c: Likewise.
8803         * tests/test-getline.c: Likewise.
8804         * tests/test-getndelim2.c: Likewise.
8805         * tests/test-glob.c: Likewise.
8806         * tests/test-hash.c: Likewise.
8807         * tests/test-i-ring.c: Likewise.
8808         * tests/test-iconv-utf.c: Likewise.
8809         * tests/test-iconv.c: Likewise.
8810         * tests/test-idpriv-drop.c: Likewise.
8811         * tests/test-idpriv-droptemp.c: Likewise.
8812         * tests/test-inet_ntop.c: Likewise.
8813         * tests/test-inet_pton.c: Likewise.
8814         * tests/test-isblank.c: Likewise.
8815         * tests/test-isfinite.c: Likewise.
8816         * tests/test-isinf.c: Likewise.
8817         * tests/test-isnan.c: Likewise.
8818         * tests/test-isnand.h: Likewise.
8819         * tests/test-isnanf.h: Likewise.
8820         * tests/test-isnanl.h: Likewise.
8821         * tests/test-lchown.c: Likewise.
8822         * tests/test-ldexpl.c: Likewise.
8823         * tests/test-link.c: Likewise.
8824         * tests/test-linkat.c: Likewise.
8825         * tests/test-linked_list.c: Likewise.
8826         * tests/test-linkedhash_list.c: Likewise.
8827         * tests/test-localename.c: Likewise.
8828         * tests/test-lseek.c: Likewise.
8829         * tests/test-lstat.c: Likewise.
8830         * tests/test-mbmemcasecmp.c: Likewise.
8831         * tests/test-mbmemcasecoll.c: Likewise.
8832         * tests/test-mbrtowc.c: Likewise.
8833         * tests/test-mbscasecmp.c: Likewise.
8834         * tests/test-mbscasestr1.c: Likewise.
8835         * tests/test-mbscasestr2.c: Likewise.
8836         * tests/test-mbscasestr3.c: Likewise.
8837         * tests/test-mbscasestr4.c: Likewise.
8838         * tests/test-mbschr.c: Likewise.
8839         * tests/test-mbscspn.c: Likewise.
8840         * tests/test-mbsinit.c: Likewise.
8841         * tests/test-mbsncasecmp.c: Likewise.
8842         * tests/test-mbsnrtowcs.c: Likewise.
8843         * tests/test-mbspbrk.c: Likewise.
8844         * tests/test-mbspcasecmp.c: Likewise.
8845         * tests/test-mbsrchr.c: Likewise.
8846         * tests/test-mbsrtowcs.c: Likewise.
8847         * tests/test-mbsspn.c: Likewise.
8848         * tests/test-mbsstr1.c: Likewise.
8849         * tests/test-mbsstr2.c: Likewise.
8850         * tests/test-mbsstr3.c: Likewise.
8851         * tests/test-memchr.c: Likewise.
8852         * tests/test-memchr2.c: Likewise.
8853         * tests/test-memcmp.c: Likewise.
8854         * tests/test-memmem.c: Likewise.
8855         * tests/test-memrchr.c: Likewise.
8856         * tests/test-mkdir.c: Likewise.
8857         * tests/test-mkdirat.c: Likewise.
8858         * tests/test-mkfifo.c: Likewise.
8859         * tests/test-mkfifoat.c: Likewise.
8860         * tests/test-mknod.c: Likewise.
8861         * tests/test-nanosleep.c: Likewise.
8862         * tests/test-nl_langinfo.c: Likewise.
8863         * tests/test-obstack-printf.c: Likewise.
8864         * tests/test-open.c: Likewise.
8865         * tests/test-openat.c: Likewise.
8866         * tests/test-pipe-filter-gi1.c: Likewise.
8867         * tests/test-pipe-filter-gi2-main.c: Likewise.
8868         * tests/test-pipe-filter-ii1.c: Likewise.
8869         * tests/test-pipe-filter-ii2-main.c: Likewise.
8870         * tests/test-pipe2.c: Likewise.
8871         * tests/test-popen.h: Likewise.
8872         * tests/test-posixtm.c: Likewise.
8873         * tests/test-pread.c: Likewise.
8874         * tests/test-printf-frexp.c: Likewise.
8875         * tests/test-printf-frexpl.c: Likewise.
8876         * tests/test-printf-posix.c: Likewise.
8877         * tests/test-priv-set.c: Likewise.
8878         * tests/test-quotearg.c: Likewise.
8879         * tests/test-random_r.c: Likewise.
8880         * tests/test-rawmemchr.c: Likewise.
8881         * tests/test-rbtree_list.c: Likewise.
8882         * tests/test-rbtree_oset.c: Likewise.
8883         * tests/test-rbtreehash_list.c: Likewise.
8884         * tests/test-readlink.c: Likewise.
8885         * tests/test-remove.c: Likewise.
8886         * tests/test-rename.c: Likewise.
8887         * tests/test-renameat.c: Likewise.
8888         * tests/test-rmdir.c: Likewise.
8889         * tests/test-round1.c: Likewise.
8890         * tests/test-roundf1.c: Likewise.
8891         * tests/test-roundl.c: Likewise.
8892         * tests/test-safe-alloc.c: Likewise.
8893         * tests/test-sameacls.c: Likewise.
8894         * tests/test-set-mode-acl.c: Likewise.
8895         * tests/test-setenv.c: Likewise.
8896         * tests/test-sigaction.c: Likewise.
8897         * tests/test-signbit.c: Likewise.
8898         * tests/test-sleep.c: Likewise.
8899         * tests/test-snprintf-posix.c: Likewise.
8900         * tests/test-snprintf.c: Likewise.
8901         * tests/test-sprintf-posix.c: Likewise.
8902         * tests/test-stat-time.c: Likewise.
8903         * tests/test-stat.c: Likewise.
8904         * tests/test-strcasestr.c: Likewise.
8905         * tests/test-strchrnul.c: Likewise.
8906         * tests/test-strerror.c: Likewise.
8907         * tests/test-striconv.c: Likewise.
8908         * tests/test-striconveh.c: Likewise.
8909         * tests/test-striconveha.c: Likewise.
8910         * tests/test-strsignal.c: Likewise.
8911         * tests/test-strstr.c: Likewise.
8912         * tests/test-strtod.c: Likewise.
8913         * tests/test-strverscmp.c: Likewise.
8914         * tests/test-symlink.c: Likewise.
8915         * tests/test-symlinkat.c: Likewise.
8916         * tests/test-trunc1.c: Likewise.
8917         * tests/test-trunc2.c: Likewise.
8918         * tests/test-truncf1.c: Likewise.
8919         * tests/test-truncf2.c: Likewise.
8920         * tests/test-truncl.c: Likewise.
8921         * tests/test-uname.c: Likewise.
8922         * tests/test-unlink.c: Likewise.
8923         * tests/test-unlinkat.c: Likewise.
8924         * tests/test-unsetenv.c: Likewise.
8925         * tests/test-usleep.c: Likewise.
8926         * tests/test-utimens.c: Likewise.
8927         * tests/test-utimensat.c: Likewise.
8928         * tests/test-vasnprintf-posix.c: Likewise.
8929         * tests/test-vasnprintf-posix2.c: Likewise.
8930         * tests/test-vasnprintf.c: Likewise.
8931         * tests/test-vasprintf-posix.c: Likewise.
8932         * tests/test-vasprintf.c: Likewise.
8933         * tests/test-vdprintf-posix.c: Likewise.
8934         * tests/test-vfprintf-posix.c: Likewise.
8935         * tests/test-vprintf-posix.c: Likewise.
8936         * tests/test-vsnprintf-posix.c: Likewise.
8937         * tests/test-vsnprintf.c: Likewise.
8938         * tests/test-vsprintf-posix.c: Likewise.
8939         * tests/test-wcrtomb.c: Likewise.
8940         * tests/test-wcsnrtombs.c: Likewise.
8941         * tests/test-wcsrtombs.c: Likewise.
8942         * tests/test-wctype.c: Likewise.
8943         * tests/test-wcwidth.c: Likewise.
8944         * tests/test-xfprintf-posix.c: Likewise.
8945         * tests/test-xmemdup0.c: Likewise.
8946         * tests/test-xprintf-posix.c: Likewise.
8947         * tests/test-xvasprintf.c: Likewise.
8948         * tests/unicase/test-locale-language.c: Likewise.
8949         * tests/unicase/test-mapping-part1.h: Likewise.
8950         * tests/unicase/test-predicate-part1.h: Likewise.
8951         * tests/unicase/test-u8-casecmp.c: Likewise.
8952         * tests/unicase/test-u8-casecoll.c: Likewise.
8953         * tests/unicase/test-u8-casefold.c: Likewise.
8954         * tests/unicase/test-u8-is-cased.c: Likewise.
8955         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8956         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8957         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8958         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8959         * tests/unicase/test-u8-tolower.c: Likewise.
8960         * tests/unicase/test-u8-totitle.c: Likewise.
8961         * tests/unicase/test-u8-toupper.c: Likewise.
8962         * tests/unicase/test-u16-casecmp.c: Likewise.
8963         * tests/unicase/test-u16-casecoll.c: Likewise.
8964         * tests/unicase/test-u16-casefold.c: Likewise.
8965         * tests/unicase/test-u16-is-cased.c: Likewise.
8966         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8967         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8968         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8969         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8970         * tests/unicase/test-u16-tolower.c: Likewise.
8971         * tests/unicase/test-u16-totitle.c: Likewise.
8972         * tests/unicase/test-u16-toupper.c: Likewise.
8973         * tests/unicase/test-u32-casecmp.c: Likewise.
8974         * tests/unicase/test-u32-casecoll.c: Likewise.
8975         * tests/unicase/test-u32-casefold.c: Likewise.
8976         * tests/unicase/test-u32-is-cased.c: Likewise.
8977         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8978         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8979         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8980         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8981         * tests/unicase/test-u32-tolower.c: Likewise.
8982         * tests/unicase/test-u32-totitle.c: Likewise.
8983         * tests/unicase/test-u32-toupper.c: Likewise.
8984         * tests/unicase/test-ulc-casecmp.c: Likewise.
8985         * tests/unicase/test-ulc-casecoll.c: Likewise.
8986         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8987         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8988         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8989         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8990         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8991         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8992         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8993         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8994         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8995         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8996         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8997         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8998         * tests/unictype/test-bidi_byname.c: Likewise.
8999         * tests/unictype/test-bidi_name.c: Likewise.
9000         * tests/unictype/test-bidi_of.c: Likewise.
9001         * tests/unictype/test-bidi_test.c: Likewise.
9002         * tests/unictype/test-block_list.c: Likewise.
9003         * tests/unictype/test-block_of.c: Likewise.
9004         * tests/unictype/test-block_test.c: Likewise.
9005         * tests/unictype/test-categ_and.c: Likewise.
9006         * tests/unictype/test-categ_and_not.c: Likewise.
9007         * tests/unictype/test-categ_byname.c: Likewise.
9008         * tests/unictype/test-categ_name.c: Likewise.
9009         * tests/unictype/test-categ_none.c: Likewise.
9010         * tests/unictype/test-categ_of.c: Likewise.
9011         * tests/unictype/test-categ_or.c: Likewise.
9012         * tests/unictype/test-categ_test_withtable.c: Likewise.
9013         * tests/unictype/test-combining.c: Likewise.
9014         * tests/unictype/test-decdigit.c: Likewise.
9015         * tests/unictype/test-digit.c: Likewise.
9016         * tests/unictype/test-mirror.c: Likewise.
9017         * tests/unictype/test-numeric.c: Likewise.
9018         * tests/unictype/test-pr_byname.c: Likewise.
9019         * tests/unictype/test-pr_test.c: Likewise.
9020         * tests/unictype/test-predicate-part1.h: Likewise.
9021         * tests/unictype/test-scripts.c: Likewise.
9022         * tests/unictype/test-sy_c_ident.c: Likewise.
9023         * tests/unictype/test-sy_java_ident.c: Likewise.
9024         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9025         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9026         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9027         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9028         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9029         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9030         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9031         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9032         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9033         * tests/uninorm/test-compat-decomposition.c: Likewise.
9034         * tests/uninorm/test-composition.c: Likewise.
9035         * tests/uninorm/test-decomposing-form.c: Likewise.
9036         * tests/uninorm/test-decomposition.c: Likewise.
9037         * tests/uninorm/test-u8-nfc.c: Likewise.
9038         * tests/uninorm/test-u8-nfd.c: Likewise.
9039         * tests/uninorm/test-u8-nfkc.c: Likewise.
9040         * tests/uninorm/test-u8-nfkd.c: Likewise.
9041         * tests/uninorm/test-u8-normcmp.c: Likewise.
9042         * tests/uninorm/test-u8-normcoll.c: Likewise.
9043         * tests/uninorm/test-u16-nfc.c: Likewise.
9044         * tests/uninorm/test-u16-nfd.c: Likewise.
9045         * tests/uninorm/test-u16-nfkc.c: Likewise.
9046         * tests/uninorm/test-u16-nfkd.c: Likewise.
9047         * tests/uninorm/test-u16-normcmp.c: Likewise.
9048         * tests/uninorm/test-u16-normcoll.c: Likewise.
9049         * tests/uninorm/test-u32-nfc.c: Likewise.
9050         * tests/uninorm/test-u32-nfd.c: Likewise.
9051         * tests/uninorm/test-u32-nfkc.c: Likewise.
9052         * tests/uninorm/test-u32-nfkd.c: Likewise.
9053         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9054         * tests/uninorm/test-u32-normcmp.c: Likewise.
9055         * tests/uninorm/test-u32-normcoll.c: Likewise.
9056         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9057         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9058         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9059         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9060         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9061         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9062         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9063         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9064         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9065         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9066         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9067         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9068         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9069         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9070         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9071         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9072         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9073         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9074         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9075         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9076         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9077         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9078         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9079         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9080         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9081         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9082         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9083         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9084         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9085         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9086         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9087         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9088         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9089         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9090         * tests/uniwidth/test-u8-width.c: Likewise.
9091         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9092         * tests/uniwidth/test-u16-width.c: Likewise.
9093         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9094         * tests/uniwidth/test-u32-width.c: Likewise.
9095         * tests/uniwidth/test-uc_width.c: Likewise.
9096         * tests/uniwidth/test-uc_width2.c: Likewise.
9097         * modules/acl-tests (Files): Add tests/macros.h.
9098         * modules/areadlink-tests (Files): Likewise.
9099         * modules/areadlink-with-size-tests (Files): Likewise.
9100         * modules/areadlinkat-tests (Files): Likewise.
9101         * modules/areadlinkat-with-size-tests (Files): Likewise.
9102         * modules/argmatch-tests (Files): Likewise.
9103         * modules/argv-iter-tests (Files): Likewise.
9104         * modules/array-list-tests (Files): Likewise.
9105         * modules/array-mergesort-tests (Files): Likewise.
9106         * modules/array-oset-tests (Files): Likewise.
9107         * modules/avltree-list-tests (Files): Likewise.
9108         * modules/avltree-oset-tests (Files): Likewise.
9109         * modules/avltreehash-list-tests (Files): Likewise.
9110         * modules/base64-tests (Files): Likewise.
9111         * modules/binary-io-tests (Files): Likewise.
9112         * modules/bitrotate-tests (Files): Likewise.
9113         * modules/btowc-tests (Files): Likewise.
9114         * modules/byteswap-tests (Files): Likewise.
9115         * modules/c-ctype-tests (Files): Likewise.
9116         * modules/c-stack-tests (Files): Likewise.
9117         * modules/c-strcase-tests (Files): Likewise.
9118         * modules/c-strcasestr-tests (Files): Likewise.
9119         * modules/c-strstr-tests (Files): Likewise.
9120         * modules/canonicalize-lgpl-tests (Files): Likewise.
9121         * modules/canonicalize-tests (Files): Likewise.
9122         * modules/carray-list-tests (Files): Likewise.
9123         * modules/ceilf-tests (Files): Likewise.
9124         * modules/ceill-tests (Files): Likewise.
9125         * modules/chown-tests (Files): Likewise.
9126         * modules/cloexec-tests (Files): Likewise.
9127         * modules/copy-file-tests (Files): Likewise.
9128         * modules/count-one-bits-tests (Files): Likewise.
9129         * modules/dprintf-posix-tests (Files): Likewise.
9130         * modules/dup2-tests (Files): Likewise.
9131         * modules/dup3-tests (Files): Likewise.
9132         * modules/duplocale-tests (Files): Likewise.
9133         * modules/fbufmode-tests (Files): Likewise.
9134         * modules/fchdir-tests (Files): Likewise.
9135         * modules/fcntl-safer-tests (Files): Likewise.
9136         * modules/fcntl-tests (Files): Likewise.
9137         * modules/fdopendir-tests (Files): Likewise.
9138         * modules/fdutimensat-tests (Files): Likewise.
9139         * modules/fflush-tests (Files): Likewise.
9140         * modules/filevercmp-tests (Files): Likewise.
9141         * modules/flock-tests (Files): Likewise.
9142         * modules/floorf-tests (Files): Likewise.
9143         * modules/floorl-tests (Files): Likewise.
9144         * modules/fnmatch-tests (Files): Likewise.
9145         * modules/fopen-safer-tests (Files): Likewise.
9146         * modules/fopen-tests (Files): Likewise.
9147         * modules/fpending-tests (Files): Likewise.
9148         * modules/fprintf-posix-tests (Files): Likewise.
9149         * modules/fpurge-tests (Files): Likewise.
9150         * modules/freadable-tests (Files): Likewise.
9151         * modules/freadahead-tests (Files): Likewise.
9152         * modules/freading-tests (Files): Likewise.
9153         * modules/freadptr-tests (Files): Likewise.
9154         * modules/freadseek-tests (Files): Likewise.
9155         * modules/freopen-tests (Files): Likewise.
9156         * modules/frexp-nolibm-tests (Files): Likewise.
9157         * modules/frexp-tests (Files): Likewise.
9158         * modules/frexpl-nolibm-tests (Files): Likewise.
9159         * modules/frexpl-tests (Files): Likewise.
9160         * modules/fseek-tests (Files): Likewise.
9161         * modules/fseeko-tests (Files): Likewise.
9162         * modules/fstrcmp-tests (Files): Likewise.
9163         * modules/fsync-tests (Files): Likewise.
9164         * modules/ftell-tests (Files): Likewise.
9165         * modules/ftello-tests (Files): Likewise.
9166         * modules/func-tests (Files): Likewise.
9167         * modules/futimens-tests (Files): Likewise.
9168         * modules/fwritable-tests (Files): Likewise.
9169         * modules/fwriting-tests (Files): Likewise.
9170         * modules/getcwd-tests (Files): Likewise.
9171         * modules/getdate-tests (Files): Likewise.
9172         * modules/getdelim-tests (Files): Likewise.
9173         * modules/getdtablesize-tests (Files): Likewise.
9174         * modules/getgroups-tests (Files): Likewise.
9175         * modules/getline-tests (Files): Likewise.
9176         * modules/getndelim2-tests (Files): Likewise.
9177         * modules/glob-tests (Files): Likewise.
9178         * modules/hash-tests (Files): Likewise.
9179         * modules/i-ring-tests (Files): Likewise.
9180         * modules/iconv-tests (Files): Likewise.
9181         * modules/iconv_open-utf-tests (Files): Likewise.
9182         * modules/idpriv-drop-tests (Files): Likewise.
9183         * modules/idpriv-droptemp-tests (Files): Likewise.
9184         * modules/inet_ntop-tests (Files): Likewise.
9185         * modules/inet_pton-tests (Files): Likewise.
9186         * modules/isblank-tests (Files): Likewise.
9187         * modules/isfinite-tests (Files): Likewise.
9188         * modules/isinf-tests (Files): Likewise.
9189         * modules/isnan-tests (Files): Likewise.
9190         * modules/isnand-nolibm-tests (Files): Likewise.
9191         * modules/isnand-tests (Files): Likewise.
9192         * modules/isnanf-nolibm-tests (Files): Likewise.
9193         * modules/isnanf-tests (Files): Likewise.
9194         * modules/isnanl-nolibm-tests (Files): Likewise.
9195         * modules/isnanl-tests (Files): Likewise.
9196         * modules/lchown-tests (Files): Likewise.
9197         * modules/ldexpl-tests (Files): Likewise.
9198         * modules/link-tests (Files): Likewise.
9199         * modules/linkat-tests (Files): Likewise.
9200         * modules/linked-list-tests (Files): Likewise.
9201         * modules/linkedhash-list-tests (Files): Likewise.
9202         * modules/localename-tests (Files): Likewise.
9203         * modules/lseek-tests (Files): Likewise.
9204         * modules/lstat-tests (Files): Likewise.
9205         * modules/mbmemcasecmp-tests (Files): Likewise.
9206         * modules/mbmemcasecoll-tests (Files): Likewise.
9207         * modules/mbrtowc-tests (Files): Likewise.
9208         * modules/mbscasecmp-tests (Files): Likewise.
9209         * modules/mbscasestr-tests (Files): Likewise.
9210         * modules/mbschr-tests (Files): Likewise.
9211         * modules/mbscspn-tests (Files): Likewise.
9212         * modules/mbsinit-tests (Files): Likewise.
9213         * modules/mbsncasecmp-tests (Files): Likewise.
9214         * modules/mbsnrtowcs-tests (Files): Likewise.
9215         * modules/mbspbrk-tests (Files): Likewise.
9216         * modules/mbspcasecmp-tests (Files): Likewise.
9217         * modules/mbsrchr-tests (Files): Likewise.
9218         * modules/mbsrtowcs-tests (Files): Likewise.
9219         * modules/mbsspn-tests (Files): Likewise.
9220         * modules/mbsstr-tests (Files): Likewise.
9221         * modules/memchr-tests (Files): Likewise.
9222         * modules/memchr2-tests (Files): Likewise.
9223         * modules/memcmp-tests (Files): Likewise.
9224         * modules/memmem-tests (Files): Likewise.
9225         * modules/memrchr-tests (Files): Likewise.
9226         * modules/mkdir-tests (Files): Likewise.
9227         * modules/mkfifo-tests (Files): Likewise.
9228         * modules/mkfifoat-tests (Files): Likewise.
9229         * modules/mknod-tests (Files): Likewise.
9230         * modules/nanosleep-tests (Files): Likewise.
9231         * modules/nl_langinfo-tests (Files): Likewise.
9232         * modules/obstack-printf-tests (Files): Likewise.
9233         * modules/open-tests (Files): Likewise.
9234         * modules/openat-tests (Files): Likewise.
9235         * modules/pipe-filter-gi-tests (Files): Likewise.
9236         * modules/pipe-filter-ii-tests (Files): Likewise.
9237         * modules/pipe2-tests (Files): Likewise.
9238         * modules/popen-safer-tests (Files): Likewise.
9239         * modules/popen-tests (Files): Likewise.
9240         * modules/posixtm-tests (Files): Likewise.
9241         * modules/pread-tests (Files): Likewise.
9242         * modules/printf-frexp-tests (Files): Likewise.
9243         * modules/printf-frexpl-tests (Files): Likewise.
9244         * modules/printf-posix-tests (Files): Likewise.
9245         * modules/priv-set-tests (Files): Likewise.
9246         * modules/quotearg-tests (Files): Likewise.
9247         * modules/random_r-tests (Files): Likewise.
9248         * modules/rawmemchr-tests (Files): Likewise.
9249         * modules/rbtree-list-tests (Files): Likewise.
9250         * modules/rbtree-oset-tests (Files): Likewise.
9251         * modules/rbtreehash-list-tests (Files): Likewise.
9252         * modules/readlink-tests (Files): Likewise.
9253         * modules/remove-tests (Files): Likewise.
9254         * modules/rename-tests (Files): Likewise.
9255         * modules/renameat-tests (Files): Likewise.
9256         * modules/rmdir-tests (Files): Likewise.
9257         * modules/round-tests (Files): Likewise.
9258         * modules/roundf-tests (Files): Likewise.
9259         * modules/roundl-tests (Files): Likewise.
9260         * modules/safe-alloc-tests (Files): Likewise.
9261         * modules/setenv-tests (Files): Likewise.
9262         * modules/sigaction-tests (Files): Likewise.
9263         * modules/signbit-tests (Files): Likewise.
9264         * modules/sleep-tests (Files): Likewise.
9265         * modules/snprintf-posix-tests (Files): Likewise.
9266         * modules/snprintf-tests (Files): Likewise.
9267         * modules/sprintf-posix-tests (Files): Likewise.
9268         * modules/stat-tests (Files): Likewise.
9269         * modules/stat-time-tests (Files): Likewise.
9270         * modules/strcasestr-tests (Files): Likewise.
9271         * modules/strchrnul-tests (Files): Likewise.
9272         * modules/strerror-tests (Files): Likewise.
9273         * modules/striconv-tests (Files): Likewise.
9274         * modules/striconveh-tests (Files): Likewise.
9275         * modules/striconveha-tests (Files): Likewise.
9276         * modules/strsignal-tests (Files): Likewise.
9277         * modules/strstr-tests (Files): Likewise.
9278         * modules/strtod-tests (Files): Likewise.
9279         * modules/strverscmp-tests (Files): Likewise.
9280         * modules/symlink-tests (Files): Likewise.
9281         * modules/symlinkat-tests (Files): Likewise.
9282         * modules/trunc-tests (Files): Likewise.
9283         * modules/truncf-tests (Files): Likewise.
9284         * modules/truncl-tests (Files): Likewise.
9285         * modules/uname-tests (Files): Likewise.
9286         * modules/unicase/cased-tests (Files): Likewise.
9287         * modules/unicase/ignorable-tests (Files): Likewise.
9288         * modules/unicase/locale-language-tests (Files): Likewise.
9289         * modules/unicase/tolower-tests (Files): Likewise.
9290         * modules/unicase/totitle-tests (Files): Likewise.
9291         * modules/unicase/toupper-tests (Files): Likewise.
9292         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9293         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9294         * modules/unicase/u8-casefold-tests (Files): Likewise.
9295         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9296         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9297         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9298         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9299         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9300         * modules/unicase/u8-tolower-tests (Files): Likewise.
9301         * modules/unicase/u8-totitle-tests (Files): Likewise.
9302         * modules/unicase/u8-toupper-tests (Files): Likewise.
9303         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9304         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9305         * modules/unicase/u16-casefold-tests (Files): Likewise.
9306         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9307         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9308         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9309         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9310         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9311         * modules/unicase/u16-tolower-tests (Files): Likewise.
9312         * modules/unicase/u16-totitle-tests (Files): Likewise.
9313         * modules/unicase/u16-toupper-tests (Files): Likewise.
9314         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9315         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9316         * modules/unicase/u32-casefold-tests (Files): Likewise.
9317         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9318         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9319         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9320         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9321         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9322         * modules/unicase/u32-tolower-tests (Files): Likewise.
9323         * modules/unicase/u32-totitle-tests (Files): Likewise.
9324         * modules/unicase/u32-toupper-tests (Files): Likewise.
9325         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9326         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9327         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9328         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9329         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9330         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9331         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9332         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9333         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9334         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9335         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9336         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9337         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9338         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9339         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9340         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9341         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9342         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9343         * modules/unictype/block-list-tests (Files): Likewise.
9344         * modules/unictype/block-of-tests (Files): Likewise.
9345         * modules/unictype/block-test-tests (Files): Likewise.
9346         * modules/unictype/category-C-tests (Files): Likewise.
9347         * modules/unictype/category-Cc-tests (Files): Likewise.
9348         * modules/unictype/category-Cf-tests (Files): Likewise.
9349         * modules/unictype/category-Cn-tests (Files): Likewise.
9350         * modules/unictype/category-Co-tests (Files): Likewise.
9351         * modules/unictype/category-Cs-tests (Files): Likewise.
9352         * modules/unictype/category-L-tests (Files): Likewise.
9353         * modules/unictype/category-Ll-tests (Files): Likewise.
9354         * modules/unictype/category-Lm-tests (Files): Likewise.
9355         * modules/unictype/category-Lo-tests (Files): Likewise.
9356         * modules/unictype/category-Lt-tests (Files): Likewise.
9357         * modules/unictype/category-Lu-tests (Files): Likewise.
9358         * modules/unictype/category-M-tests (Files): Likewise.
9359         * modules/unictype/category-Mc-tests (Files): Likewise.
9360         * modules/unictype/category-Me-tests (Files): Likewise.
9361         * modules/unictype/category-Mn-tests (Files): Likewise.
9362         * modules/unictype/category-N-tests (Files): Likewise.
9363         * modules/unictype/category-Nd-tests (Files): Likewise.
9364         * modules/unictype/category-Nl-tests (Files): Likewise.
9365         * modules/unictype/category-No-tests (Files): Likewise.
9366         * modules/unictype/category-P-tests (Files): Likewise.
9367         * modules/unictype/category-Pc-tests (Files): Likewise.
9368         * modules/unictype/category-Pd-tests (Files): Likewise.
9369         * modules/unictype/category-Pe-tests (Files): Likewise.
9370         * modules/unictype/category-Pf-tests (Files): Likewise.
9371         * modules/unictype/category-Pi-tests (Files): Likewise.
9372         * modules/unictype/category-Po-tests (Files): Likewise.
9373         * modules/unictype/category-Ps-tests (Files): Likewise.
9374         * modules/unictype/category-S-tests (Files): Likewise.
9375         * modules/unictype/category-Sc-tests (Files): Likewise.
9376         * modules/unictype/category-Sk-tests (Files): Likewise.
9377         * modules/unictype/category-Sm-tests (Files): Likewise.
9378         * modules/unictype/category-So-tests (Files): Likewise.
9379         * modules/unictype/category-Z-tests (Files): Likewise.
9380         * modules/unictype/category-Zl-tests (Files): Likewise.
9381         * modules/unictype/category-Zp-tests (Files): Likewise.
9382         * modules/unictype/category-Zs-tests (Files): Likewise.
9383         * modules/unictype/category-and-not-tests (Files): Likewise.
9384         * modules/unictype/category-and-tests (Files): Likewise.
9385         * modules/unictype/category-byname-tests (Files): Likewise.
9386         * modules/unictype/category-name-tests (Files): Likewise.
9387         * modules/unictype/category-none-tests (Files): Likewise.
9388         * modules/unictype/category-of-tests (Files): Likewise.
9389         * modules/unictype/category-or-tests (Files): Likewise.
9390         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9391         * modules/unictype/combining-class-tests (Files): Likewise.
9392         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9393         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9394         * modules/unictype/ctype-blank-tests (Files): Likewise.
9395         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9396         * modules/unictype/ctype-digit-tests (Files): Likewise.
9397         * modules/unictype/ctype-graph-tests (Files): Likewise.
9398         * modules/unictype/ctype-lower-tests (Files): Likewise.
9399         * modules/unictype/ctype-print-tests (Files): Likewise.
9400         * modules/unictype/ctype-punct-tests (Files): Likewise.
9401         * modules/unictype/ctype-space-tests (Files): Likewise.
9402         * modules/unictype/ctype-upper-tests (Files): Likewise.
9403         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9404         * modules/unictype/decimal-digit-tests (Files): Likewise.
9405         * modules/unictype/digit-tests (Files): Likewise.
9406         * modules/unictype/mirror-tests (Files): Likewise.
9407         * modules/unictype/numeric-tests (Files): Likewise.
9408         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9409         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9410         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9411         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9412         Likewise.
9413         * modules/unictype/property-bidi-block-separator-tests (Files):
9414         Likewise.
9415         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9416         Likewise.
9417         * modules/unictype/property-bidi-common-separator-tests (Files):
9418         Likewise.
9419         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9420         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9421         Likewise.
9422         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9423         Likewise.
9424         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9425         Likewise.
9426         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9427         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9428         Likewise.
9429         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9430         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9431         Likewise.
9432         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9433         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9434         * modules/unictype/property-bidi-segment-separator-tests (Files):
9435         Likewise.
9436         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9437         * modules/unictype/property-byname-tests (Files): Likewise.
9438         * modules/unictype/property-combining-tests (Files): Likewise.
9439         * modules/unictype/property-composite-tests (Files): Likewise.
9440         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9441         * modules/unictype/property-dash-tests (Files): Likewise.
9442         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9443         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9444         Likewise.
9445         * modules/unictype/property-deprecated-tests (Files): Likewise.
9446         * modules/unictype/property-diacritic-tests (Files): Likewise.
9447         * modules/unictype/property-extender-tests (Files): Likewise.
9448         * modules/unictype/property-format-control-tests (Files): Likewise.
9449         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9450         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9451         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9452         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9453         * modules/unictype/property-hyphen-tests (Files): Likewise.
9454         * modules/unictype/property-id-continue-tests (Files): Likewise.
9455         * modules/unictype/property-id-start-tests (Files): Likewise.
9456         * modules/unictype/property-ideographic-tests (Files): Likewise.
9457         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9458         * modules/unictype/property-ids-trinary-operator-tests (Files):
9459         Likewise.
9460         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9461         * modules/unictype/property-iso-control-tests (Files): Likewise.
9462         * modules/unictype/property-join-control-tests (Files): Likewise.
9463         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9464         * modules/unictype/property-line-separator-tests (Files): Likewise.
9465         * modules/unictype/property-logical-order-exception-tests (Files):
9466         Likewise.
9467         * modules/unictype/property-lowercase-tests (Files): Likewise.
9468         * modules/unictype/property-math-tests (Files): Likewise.
9469         * modules/unictype/property-non-break-tests (Files): Likewise.
9470         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9471         * modules/unictype/property-numeric-tests (Files): Likewise.
9472         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9473         * modules/unictype/property-other-default-ignorable-code-point-tests
9474         (Files): Likewise.
9475         * modules/unictype/property-other-grapheme-extend-tests (Files):
9476         Likewise.
9477         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9478         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9479         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9480         * modules/unictype/property-other-math-tests (Files): Likewise.
9481         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9482         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9483         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9484         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9485         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9486         * modules/unictype/property-private-use-tests (Files): Likewise.
9487         * modules/unictype/property-punctuation-tests (Files): Likewise.
9488         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9489         * modules/unictype/property-radical-tests (Files): Likewise.
9490         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9491         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9492         * modules/unictype/property-space-tests (Files): Likewise.
9493         * modules/unictype/property-terminal-punctuation-tests (Files):
9494         Likewise.
9495         * modules/unictype/property-test-tests (Files): Likewise.
9496         * modules/unictype/property-titlecase-tests (Files): Likewise.
9497         * modules/unictype/property-unassigned-code-value-tests (Files):
9498         Likewise.
9499         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9500         * modules/unictype/property-uppercase-tests (Files): Likewise.
9501         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9502         * modules/unictype/property-white-space-tests (Files): Likewise.
9503         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9504         * modules/unictype/property-xid-start-tests (Files): Likewise.
9505         * modules/unictype/property-zero-width-tests (Files): Likewise.
9506         * modules/unictype/scripts-tests (Files): Likewise.
9507         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9508         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9509         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9510         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9511         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9512         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9513         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9514         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9515         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9516         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9517         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9518         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9519         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9520         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9521         * modules/uninorm/composition-tests (Files): Likewise.
9522         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9523         * modules/uninorm/decomposition-tests (Files): Likewise.
9524         * modules/uninorm/filter-tests (Files): Likewise.
9525         * modules/uninorm/nfc-tests (Files): Likewise.
9526         * modules/uninorm/nfd-tests (Files): Likewise.
9527         * modules/uninorm/nfkc-tests (Files): Likewise.
9528         * modules/uninorm/nfkd-tests (Files): Likewise.
9529         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9530         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9531         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9532         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9533         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9534         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9535         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9536         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9537         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9538         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9539         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9540         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9541         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9542         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9543         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9544         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9545         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9546         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9547         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9548         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9549         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9550         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9551         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9552         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9553         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9554         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9555         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9556         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9557         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9558         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9559         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9560         * modules/uniwidth/u8-width-tests (Files): Likewise.
9561         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9562         * modules/uniwidth/u16-width-tests (Files): Likewise.
9563         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9564         * modules/uniwidth/u32-width-tests (Files): Likewise.
9565         * modules/uniwidth/width-tests (Files): Likewise.
9566         * modules/unlink-tests (Files): Likewise.
9567         * modules/unsetenv-tests (Files): Likewise.
9568         * modules/usleep-tests (Files): Likewise.
9569         * modules/utimens-tests (Files): Likewise.
9570         * modules/utimensat-tests (Files): Likewise.
9571         * modules/vasnprintf-posix-tests (Files): Likewise.
9572         * modules/vasnprintf-tests (Files): Likewise.
9573         * modules/vasprintf-posix-tests (Files): Likewise.
9574         * modules/vasprintf-tests (Files): Likewise.
9575         * modules/vdprintf-posix-tests (Files): Likewise.
9576         * modules/vfprintf-posix-tests (Files): Likewise.
9577         * modules/vprintf-posix-tests (Files): Likewise.
9578         * modules/vsnprintf-posix-tests (Files): Likewise.
9579         * modules/vsnprintf-tests (Files): Likewise.
9580         * modules/vsprintf-posix-tests (Files): Likewise.
9581         * modules/wcrtomb-tests (Files): Likewise.
9582         * modules/wcsnrtombs-tests (Files): Likewise.
9583         * modules/wcsrtombs-tests (Files): Likewise.
9584         * modules/wctype-tests (Files): Likewise.
9585         * modules/wcwidth-tests (Files): Likewise.
9586         * modules/xmemdup0-tests (Files): Likewise.
9587         * modules/xprintf-posix-tests (Files): Likewise.
9588         * modules/xvasprintf-tests (Files): Likewise.
9589
9590 2009-12-24  Eric Blake  <ebb9@byu.net>
9591
9592         test-nanosleep: fix typo
9593         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9594         patch.
9595         Reported by Bruno Haible.
9596
9597 2009-12-24  Bruno Haible  <bruno@clisp.org>
9598
9599         Reduce namespace pollution on glibc systems.
9600         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9601         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9602         systems.
9603         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9604         <getopt.h> on glibc systems.
9605         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9606         systems.
9607         * lib/fcntl.c: Include <unistd.h> here instead.
9608
9609 2009-12-24  Bruno Haible  <bruno@clisp.org>
9610
9611         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9612
9613 2009-12-24  Eric Blake  <ebb9@byu.net>
9614
9615         tests: add signature checks
9616         * tests/signature.h (SIGNATURE_CHECK): New file.
9617         * modules/atexit-tests (Files): Use it.
9618         * modules/btowc-tests (Files): Likewise.
9619         * modules/canonicalize-lgpl-tests (Files): Likewise.
9620         * modules/ceilf-tests (Files): Likewise.
9621         * modules/ceill-tests (Files): Likewise.
9622         * modules/chown-tests (Files): Likewise.
9623         * modules/dprintf-posix-tests (Files): Likewise.
9624         * modules/dup2-tests (Files): Likewise.
9625         * modules/dup3-tests (Files): Likewise.
9626         * modules/duplocale-tests (Files): Likewise.
9627         * modules/fchdir-tests (Files): Likewise.
9628         * modules/fcntl-tests (Files): Likewise.
9629         * modules/fdopendir-tests (Files): Likewise.
9630         * modules/fflush-tests (Files): Likewise.
9631         * modules/flock-tests (Files): Likewise.
9632         * modules/floorf-tests (Files): Likewise.
9633         * modules/floorl-tests (Files): Likewise.
9634         * modules/fnmatch-tests (Files): Likewise.
9635         * modules/fopen-tests (Files): Likewise.
9636         * modules/fprintf-posix-tests (Files): Likewise.
9637         * modules/freopen-tests (Files): Likewise.
9638         * modules/frexp-nolibm-tests (Files): Likewise.
9639         * modules/frexp-tests (Files): Likewise.
9640         * modules/frexpl-nolibm-tests (Files): Likewise.
9641         * modules/frexpl-tests (Files): Likewise.
9642         * modules/fseek-tests (Files): Likewise.
9643         * modules/fseeko-tests (Files): Likewise.
9644         * modules/fsync-tests (Files): Likewise.
9645         * modules/ftell-tests (Files): Likewise.
9646         * modules/ftello-tests (Files): Likewise.
9647         * modules/futimens-tests (Files): Likewise.
9648         * modules/getaddrinfo-tests (Files): Likewise.
9649         * modules/getcwd-tests (Files): Likewise.
9650         * modules/getdelim-tests (Files): Likewise.
9651         * modules/getdtablesize-tests (Files): Likewise.
9652         * modules/getgroups-tests (Files): Likewise.
9653         * modules/gethostname-tests (Files): Likewise.
9654         * modules/getline-tests (Files): Likewise.
9655         * modules/getopt-posix-tests (Files): Likewise.
9656         * modules/gettimeofday-tests (Files): Likewise.
9657         * modules/glob-tests (Files): Likewise.
9658         * modules/iconv-tests (Files): Likewise.
9659         * modules/inet_ntop-tests (Files): Likewise.
9660         * modules/inet_pton-tests (Files): Likewise.
9661         * modules/isblank-tests (Files): Likewise.
9662         * modules/lchown-tests (Files): Likewise.
9663         * modules/ldexpl-tests (Files): Likewise.
9664         * modules/link-tests (Files): Likewise.
9665         * modules/linkat-tests (Files): Likewise.
9666         * modules/lseek-tests (Files): Likewise.
9667         * modules/lstat-tests (Files): Likewise.
9668         * modules/mbrtowc-tests (Files): Likewise.
9669         * modules/mbsinit-tests (Files): Likewise.
9670         * modules/mbsnrtowcs-tests (Files): Likewise.
9671         * modules/mbsrtowcs-tests (Files): Likewise.
9672         * modules/memchr-tests (Files): Likewise.
9673         * modules/memcmp-tests (Files): Likewise.
9674         * modules/memmem-tests (Files): Likewise.
9675         * modules/memrchr-tests (Files): Likewise.
9676         * modules/mkdir-tests (Files): Likewise.
9677         * modules/mkfifo-tests (Files): Likewise.
9678         * modules/mkfifoat-tests (Files): Likewise.
9679         * modules/mknod-tests (Files): Likewise.
9680         * modules/nanosleep-tests (Files): Likewise.
9681         * modules/nl_langinfo-tests (Files): Likewise.
9682         * modules/obstack-printf-tests (Files): Likewise.
9683         * modules/open-tests (Files): Likewise.
9684         * modules/openat-tests (Files): Likewise.
9685         * modules/perror-tests (Files): Likewise.
9686         * modules/pipe2-tests (Files): Likewise.
9687         * modules/poll-tests (Files): Likewise.
9688         * modules/popen-tests (Files): Likewise.
9689         * modules/posix_spawn-tests (Files): Likewise.
9690         * modules/posix_spawnp-tests (Files): Likewise.
9691         * modules/pread-tests (Files): Likewise.
9692         * modules/printf-posix-tests (Files): Likewise.
9693         * modules/pty-tests (Files): Likewise.
9694         * modules/random_r-tests (Files): Likewise.
9695         * modules/rawmemchr-tests (Files): Likewise.
9696         * modules/readlink-tests (Files): Likewise.
9697         * modules/remove-tests (Files): Likewise.
9698         * modules/rename-tests (Files): Likewise.
9699         * modules/renameat-tests (Files): Likewise.
9700         * modules/rmdir-tests (Files): Likewise.
9701         * modules/round-tests (Files): Likewise.
9702         * modules/roundf-tests (Files): Likewise.
9703         * modules/roundl-tests (Files): Likewise.
9704         * modules/select-tests (Files): Likewise.
9705         * modules/setenv-tests (Files): Likewise.
9706         * modules/sigaction-tests (Files): Likewise.
9707         * modules/sleep-tests (Files): Likewise.
9708         * modules/snprintf-posix-tests (Files): Likewise.
9709         * modules/snprintf-tests (Files): Likewise.
9710         * modules/sprintf-posix-tests (Files): Likewise.
9711         * modules/stat-tests (Files): Likewise.
9712         * modules/strcasestr-tests (Files): Likewise.
9713         * modules/strchrnul-tests (Files): Likewise.
9714         * modules/strerror-tests (Files): Likewise.
9715         * modules/strsignal-tests (Files): Likewise.
9716         * modules/strstr-tests (Files): Likewise.
9717         * modules/strtod-tests (Files): Likewise.
9718         * modules/strverscmp-tests (Files): Likewise.
9719         * modules/symlink-tests (Files): Likewise.
9720         * modules/symlinkat-tests (Files): Likewise.
9721         * modules/times-tests (Files): Likewise.
9722         * modules/trunc-tests (Files): Likewise.
9723         * modules/truncf-tests (Files): Likewise.
9724         * modules/truncl-tests (Files): Likewise.
9725         * modules/tsearch-tests (Files): Likewise.
9726         * modules/uname-tests (Files): Likewise.
9727         * modules/unlink-tests (Files): Likewise.
9728         * modules/unsetenv-tests (Files): Likewise.
9729         * modules/usleep-tests (Files): Likewise.
9730         * modules/utimensat-tests (Files): Likewise.
9731         * modules/vasprintf-tests (Files): Likewise.
9732         * modules/vdprintf-posix-tests (Files): Likewise.
9733         * modules/vfprintf-posix-tests (Files): Likewise.
9734         * modules/vprintf-posix-tests (Files): Likewise.
9735         * modules/vsnprintf-posix-tests (Files): Likewise.
9736         * modules/vsnprintf-tests (Files): Likewise.
9737         * modules/vsprintf-posix-tests (Files): Likewise.
9738         * modules/wcrtomb-tests (Files): Likewise.
9739         * modules/wcsnrtombs-tests (Files): Likewise.
9740         * modules/wcsrtombs-tests (Files): Likewise.
9741         * modules/wcwidth-tests (Files): Likewise.
9742         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9743         * tests/test-isinf.c (isinf): Likewise.
9744         * tests/test-isnan.c (isnan): Likewise.
9745         * tests/test-signbit.c (signbit): Likewise.
9746         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9747         declaration, either as macro or with correct signature.
9748         (select): Ensure function under test is declared with correct
9749         signature in correct header.
9750         * tests/test-atexit.c (atexit): Likewise.
9751         * tests/test-btowc.c (btowc): Likewise.
9752         * tests/test-canonicalize-lgpl.c (realpath)
9753         (canonicalize_file_name): Likewise.
9754         * tests/test-ceilf1.c (ceilf): Likewise.
9755         * tests/test-ceill.c (ceill): Likewise.
9756         * tests/test-chown.c (chown): Likewise.
9757         * tests/test-dprintf-posix.c (dprintf): Likewise.
9758         * tests/test-dup2.c (dup2): Likewise.
9759         * tests/test-dup3.c (dup3): Likewise.
9760         * tests/test-duplocale.c (duplocale): Likewise.
9761         * tests/test-fchdir.c (fchdir): Likewise.
9762         * tests/test-fchownat.c (fchownat): Likewise.
9763         * tests/test-fcntl.c (fcntl): Likewise.
9764         * tests/test-fdopendir.c (fdopendir): Likewise.
9765         * tests/test-fflush.c (fflush): Likewise.
9766         * tests/test-flock.c (flock): Likewise.
9767         * tests/test-floorf1.c (floorf): Likewise.
9768         * tests/test-floorl.c (floorl): Likewise.
9769         * tests/test-fnmatch.c (fnmatch): Likewise.
9770         * tests/test-fopen.c (fopen): Likewise.
9771         * tests/test-fprintf-posix.c (fprintf): Likewise.
9772         * tests/test-freopen.c (freopen): Likewise.
9773         * tests/test-frexp.c (frexp): Likewise.
9774         * tests/test-frexpl.c (frexpl): Likewise.
9775         * tests/test-fseek.c (fseek): Likewise.
9776         * tests/test-fseeko.c (fseeko): Likewise.
9777         * tests/test-fstatat.c (fstatat): Likewise.
9778         * tests/test-fsync.c (fsync): Likewise.
9779         * tests/test-ftell.c (ftell): Likewise.
9780         * tests/test-ftello.c (ftello): Likewise.
9781         * tests/test-futimens.c (futimens): Likewise.
9782         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9783         (gai_strerror): Likewise.
9784         * tests/test-getcwd.c (getcwd): Likewise.
9785         * tests/test-getdelim.c (getdelim): Likewise.
9786         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9787         * tests/test-getgroups.c (getgroups): Likewise.
9788         * tests/test-gethostname.c (gethostname): Likewise.
9789         * tests/test-getline.c (getline): Likewise.
9790         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9791         Likewise.
9792         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9793         * tests/test-glob.c (glob, globfree): Likewise.
9794         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9795         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9796         * tests/test-inet_pton.c (inet_pton): Likewise.
9797         * tests/test-isblank.c (isblank): Likewise.
9798         * tests/test-lchown.c (lchown): Likewise.
9799         * tests/test-ldexpl.c (ldexpl): Likewise.
9800         * tests/test-link.c (link): Likewise.
9801         * tests/test-linkat.c (linkat): Likewise.
9802         * tests/test-lseek.c (lseek): Likewise.
9803         * tests/test-lstat.c (lstat): Likewise.
9804         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9805         * tests/test-mbsinit.c (mbsinit): Likewise.
9806         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9807         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9808         * tests/test-memchr.c (memchr): Likewise.
9809         * tests/test-memcmp.c (memcmp): Likewise.
9810         * tests/test-memmem.c (memmem): Likewise.
9811         * tests/test-memrchr.c (memrchr): Likewise.
9812         * tests/test-mkdir.c (mkdir): Likewise.
9813         * tests/test-mkdirat.c (mkdirat): Likewise.
9814         * tests/test-mkfifo.c (mkfifo): Likewise.
9815         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9816         * tests/test-mknod.c (mknod): Likewise.
9817         * tests/test-nanosleep.c (nanosleep): Likewise.
9818         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9819         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9820         Likewise.
9821         * tests/test-open.c (open): Likewise.
9822         * tests/test-openat.c (openat): Likewise.
9823         * tests/test-perror.c (perror): Likewise.
9824         * tests/test-pipe2.c (pipe2): Likewise.
9825         * tests/test-poll.c (poll): Likewise.
9826         * tests/test-popen.c (popen, pclose): Likewise.
9827         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9828         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9829         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9830         (posix_spawn_file_actions_destroy)
9831         (posix_spawn_file_actions_addclose)
9832         (posix_spawn_file_actions_addopen)
9833         (posix_spawn_file_actions_adddup2): Likewise.
9834         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9835         * tests/test-pread.c (pread): Likewise.
9836         * tests/test-printf-posix.c (printf): Likewise.
9837         * tests/test-pty.c (openpty, forkpty): Likewise.
9838         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9839         (random_r): Likewise.
9840         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9841         * tests/test-readlink.c (readlink): Likewise.
9842         * tests/test-remove.c (remove): Likewise.
9843         * tests/test-rename.c (rename): Likewise.
9844         * tests/test-renameat.c (renameat): Likewise.
9845         * tests/test-rmdir.c (rmdir): Likewise.
9846         * tests/test-round1.c (round): Likewise.
9847         * tests/test-roundf1.c (roundf): Likewise.
9848         * tests/test-roundl.c (roundl): Likewise.
9849         * tests/test-setenv.c (setenv): Likewise.
9850         * tests/test-sigaction.c (sigaction): Likewise.
9851         * tests/test-sleep.c (sleep): Likewise.
9852         * tests/test-snprintf.c (snprintf): Likewise.
9853         * tests/test-sprintf-posix.c (sprintf): Likewise.
9854         * tests/test-stat.c (stat): Likewise.
9855         * tests/test-stpncpy.c (stpncpy): Likewise.
9856         * tests/test-strcasestr.c (strcasestr): Likewise.
9857         * tests/test-strchrnul.c (strchrnul): Likewise.
9858         * tests/test-strerror.c (strerror): Likewise.
9859         * tests/test-strsignal.c (strsignal): Likewise.
9860         * tests/test-strstr.c (strstr): Likewise.
9861         * tests/test-strtod.c (strtod): Likewise.
9862         * tests/test-strverscmp.c (strverscmp): Likewise.
9863         * tests/test-symlink.c (symlink): Likewise.
9864         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9865         * tests/test-times.c (times): Likewise.
9866         * tests/test-trunc1.c (trunc): Likewise.
9867         * tests/test-truncf1.c (truncf): Likewise.
9868         * tests/test-truncl.c (truncl): Likewise.
9869         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9870         Likewise.
9871         * tests/test-uname.c (uname): Likewise.
9872         * tests/test-unlink.c (unlink): Likewise.
9873         * tests/test-unlinkat.c (unlinkat): Likewise.
9874         * tests/test-unsetenv.c (unsetenv): Likewise.
9875         * tests/test-usleep.c (usleep): Likewise.
9876         * tests/test-utimensat.c (utimensat): Likewise.
9877         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9878         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9879         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9880         * tests/test-vprintf-posix.c (vprintf): Likewise.
9881         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9882         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9883         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9884         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9885         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9886         * tests/test-wcwidth.c (wcwidth): Likewise.
9887
9888         build: pull in conditional headers during GNULIB_POSIXCHECK
9889         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9890         definitions from any conditionally-included headers.
9891         * lib/stdlib.in.h (includes): Likewise.
9892         * lib/unistd.in.h (includes): Likewise.
9893
9894 2009-12-24  Bruno Haible  <bruno@clisp.org>
9895
9896         * tests/test-argv-iter.c: Include header file being tested immediately
9897         after config.h.
9898         * tests/test-base64.c: Likewise.
9899         * tests/test-flock.c: Likewise.
9900         * tests/test-fsync.c: Likewise.
9901         * tests/test-getdate.c: Likewise.
9902         * tests/test-getndelim2.c: Likewise.
9903         * tests/test-isfinite.c: Likewise.
9904         * tests/test-isinf.c: Likewise.
9905         * tests/test-strerror.c: Likewise.
9906         * tests/test-strsignal.c: Likewise.
9907
9908 2009-12-23  Eric Blake  <ebb9@byu.net>
9909
9910         unistd: work around cygwin bug
9911         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9912         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9913         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9914
9915 2009-12-23  Bruno Haible  <bruno@clisp.org>
9916
9917         localename: More tests.
9918         * tests/test-localename.c (SIZEOF): New macro.
9919         (categories): New variable.
9920         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9921         test_locale_name_default): Add test w.r.t. thread locale.
9922         (test_locale_name_thread): New function.
9923         (main): Invoke it.
9924
9925         localename: Make aware of thread locale.
9926         * lib/localename.h (gl_locale_name_thread): New declaration.
9927         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9928         behaviour with respect to thread locale.
9929         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9930         <langinfo.h>, glthread/lock.h.
9931         (SIZE_BITS): New macro.
9932         (string_hash): New function.
9933         (struct hash_node): New type.
9934         (HASH_TABLE_SIZE): New macro.
9935         (struniq_hash_table, struniq_lock): New variables.
9936         (struniq): New function.
9937         (gl_locale_name_thread): New function.
9938         (gl_locale_name): Invoke it.
9939         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9940         * modules/localename (Depends-on): Add lock.
9941         Reported by Mike Gran <spk121@yahoo.com>.
9942
9943 2009-12-23  Eric Blake  <ebb9@byu.net>
9944
9945         va-args: new module
9946         * modules/va-args: New file.
9947         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9948         * MODULES.html.sh (Core language properties): Mention it.
9949
9950         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9951         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9952         named alias for __attribute__((__unused__)).
9953         * lib/chown.c: Update client.
9954         * lib/fchmodat.c: Likewise.
9955         * lib/fts.c: Likewise.
9956         * lib/getdate.y: Likewise.
9957         * lib/getgroups.c: Likewise.
9958         * lib/getopt.c: Likewise.
9959         * lib/getugroups.c: Likewise.
9960         * lib/mkdir.c: Likewise.
9961         * lib/mkfifo.c: Likewise.
9962         * lib/mkfifoat.c: Likewise.
9963         * lib/mknod.c: Likewise.
9964         * lib/mknodat.c: Likewise.
9965         * lib/readlink.c: Likewise.
9966         * lib/se-context.in.h: Likewise.
9967         * lib/se-selinux.in.h: Likewise.
9968         * lib/sockets.c: Likewise.
9969         * lib/symlink.c: Likewise.
9970         * lib/symlinkat.c: Likewise.
9971         * lib/unicodeio.c: Likewise.
9972         * lib/unistr.h: Likewise.
9973         * tests/test-areadlink.c: Likewise.
9974         * tests/test-areadlinkat.c: Likewise.
9975         * tests/test-filenamecat.c: Likewise.
9976         * tests/test-fseeko.c: Likewise.
9977         * tests/test-ftello.c: Likewise.
9978         * tests/test-getdate.c: Likewise.
9979         * tests/test-getgroups.c: Likewise.
9980         * tests/test-gethostname.c: Likewise.
9981         * tests/test-quotearg.c: Likewise.
9982         * tests/test-version-etc.c: Likewise.
9983         * tests/test-xalloc-die.c: Likewise.
9984         * tests/test-xfprintf-posix.c: Likewise.
9985         * tests/test-xprintf-posix.c: Likewise.
9986         * tests/test-xvasprintf.c: Likewise.
9987
9988         tests: avoid compiler warnings
9989         * tests/test-fcntl.c (main): Delete unused parameters.
9990         * tests/test-freopen-safer.c (main): Likewise.
9991         * tests/test-xalloc-die.c (main): Mark unused parameters.
9992         * tests/test-fseeko.c (main): Likewise.
9993         * tests/test-ftello.c (main): Likewise.
9994         * tests/test-nanosleep.c (main): Avoid declaration warning.
9995         * tests/test-sleep.c (main): Likewise.
9996         * tests/test-unsetenv.c (main): Silence warning about string
9997         literal.
9998         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9999
10000 2009-12-23  Bruno Haible  <bruno@clisp.org>
10001
10002         * tests/test-localename.c (test_locale_name): New function, extracted
10003         from main. Also test mixed situations.
10004         (test_locale_name_posix, test_locale_name_environ,
10005         test_locale_name_default): New functions.
10006         (main): Invoke them all.
10007         * modules/localename-tests (configure.ac): Test for newlocale.
10008
10009 2009-12-23  Bruno Haible  <bruno@clisp.org>
10010
10011         unistd: Ensure getcwd gets declared before being overridden.
10012         * lib/unistd.in.h: Conditionally include <io.h>.
10013
10014 2009-12-22  Bruno Haible  <bruno@clisp.org>
10015
10016         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10017         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10018         (gl_WCHAR_H): Invoke it.
10019         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10020         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10021         Reported by Karl Berry <karl@freefriends.org>.
10022
10023 2009-12-22  Eric Blake  <ebb9@byu.net>
10024
10025         math, unistd: avoid redundant includes
10026         * lib/math.in.h (isnan): No need to re-include <math.h>.
10027         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10028
10029         getsubopt: work around cygwin bug
10030         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10031         avoid conflicting with system getsubopt.
10032         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10033         bug.
10034
10035         getopt: synchronize from glibc
10036         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10037         parameter order.  Adjust all callers.
10038         (_getopt_internal_r, main): Adjust quoting in error messages.
10039         Drop considerations for outdated POSIX 1003.2 error message.
10040         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10041         callers.
10042         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10043
10044         test-getopt: test stderr behavior
10045         * modules/getopt-posix-tests (Depends-on): Add dup2.
10046         * tests/test-getopt.c (ASSERT): Avoid stderr.
10047         (main): Move stderr to a temporary file.
10048         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10049         Instead, add parameter to inform caller if output occurred.
10050         (test_getopt): Adjust all existing tests to expect silence, and
10051         add new tests of leading ":".
10052         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10053         glibc shortcomings with leading "-:" or "+:" in optstring.
10054         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10055         Likewise.
10056         * doc/posix-functions/getopt.texi (getopt): Likewise.
10057
10058         test-getopt: enhance test
10059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10060         supports optind=0.
10061         * tests/test-getopt.c (OPTIND_MIN): Move...
10062         * tests/test-getopt.h (OPTIND_MIN): ...here.
10063         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10064         Require that optind=0 works, since modern BSD supports it in
10065         addition to optreset, and since coreutils expects it.
10066         (test_getopt_long_only): New test.
10067         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10068         glibc shortcomings with 'W;', and enforcement of optind=0.
10069         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10070         Likewise.
10071
10072 2009-12-21  Bruno Haible  <bruno@clisp.org>
10073
10074         localename: Improvements for MacOS X and Cygwin.
10075         * lib/localename.h (gl_locale_name_environ): New declaration.
10076         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10077         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10078         (gl_locale_name_posix): Invoke it.
10079         (gl_locale_name_default): Add comments. Use Windows native API also on
10080         Cygwin.
10081
10082 2009-12-21  Bruno Haible  <bruno@clisp.org>
10083
10084         Update list of Win32 locale ids.
10085         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10086         (LANG_SAMI): Renamed from LANG_SAAMI.
10087         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10088         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10089         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10090         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10091         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10092         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10093         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10094         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10095         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10096         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10097         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10098         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10099         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10100         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10101         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10102         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10103         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10104         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10105         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10106         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10107         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10108         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10109         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10110         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10111         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10112         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10113         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10114         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10115         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10116         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10117         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10118         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10119         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10120         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10121         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10122         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10123         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10124         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10125         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10126         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10127         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10128         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10129         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10130         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10131         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10132         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10133         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10134         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10135         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10136         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10137         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10138         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10139         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10140         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10141         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10142         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10143         Add more languages and countries for Sami, Sorbian. Add more countries
10144         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10145         for Pashto. Change country for Syriac, Tswana.
10146
10147 2009-12-21  Eric Blake  <ebb9@byu.net>
10148
10149         test-utimens: avoid spurious failure
10150         * tests/test-chown.h (nap): Factor...
10151         * tests/nap.h: ...into new file.
10152         * tests/test-lchown.h (nap): Avoid duplication.
10153         * tests/test-utimens-common.h (nap): Use shared implementation,
10154         necessary on file systems with 1-second resolution.
10155         * modules/chown-tests (Files): Include new file.
10156         * modules/fdutimensat-tests (Files): Likewise.
10157         * modules/futimens-tests (Files): Likewise.
10158         * modules/lchown-tests (Files): Likewise.
10159         * modules/openat-tests (Files): Likewise.
10160         * modules/utimens-tests (Files): Likewise.
10161         * modules/utimensat-tests (Files): Likewise.
10162
10163 2009-12-19  Eric Blake  <ebb9@byu.net>
10164
10165         futimens, utimensat: work around Linux bug
10166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10167         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10168         * lib/utimensat.c (rpl_utimensat): Work around it.
10169         * lib/futimens.c (rpl_futimens): Adjust comment.
10170
10171         utimens: work around Linux ctime bug
10172         * lib/utimens.c (detect_ctime_bug): New helper function.
10173         (update_timespec): Differentiate between workaround needed for
10174         this bug vs. what is needed for systems that lack utimensat.
10175         (fdutimens, lutimens): Work around bug.
10176
10177         utimens: check for ctime update
10178         * tests/test-utimens-common.h (check_ctime): Define.
10179         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10180         * tests/test-futimens.h (test_futimens): Likewise.
10181         * tests/test-lutimens.h (test_lutimens): Likewise.
10182         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10183         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10184
10185 2009-12-19  Bruno Haible  <bruno@clisp.org>
10186
10187         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10188         * tests/test-dprintf-posix2.sh: New file.
10189         * tests/test-dprintf-posix2.c: New file.
10190         * modules/dprintf-posix-tests (Files): Add them.
10191         (configure.ac): Check for getrlimit and setrlimit.
10192         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10193
10194 2009-12-19  Bruno Haible  <bruno@clisp.org>
10195
10196         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10197         * tests/test-fprintf-posix3.sh: New file.
10198         * tests/test-fprintf-posix3.c: New file.
10199         * modules/fprintf-posix-tests (Files): Add them.
10200         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10201
10202 2009-12-19  Eric Blake  <ebb9@byu.net>
10203
10204         dirfd: fix prototype
10205         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10206         * lib/dirfd.c (dirfd): Likewise.
10207
10208         canonicalize: reduce memory usage
10209         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10210         allocation to size.
10211         Reported by Solar Designer <solar@openwall.com>.
10212
10213 2009-12-19  Bruno Haible  <bruno@clisp.org>
10214
10215         New module attribute 'Applicability'.
10216         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10217         * gnulib-tool: New option --extract-applicability.
10218         (func_usage): Document it.
10219         (sed_extract_prog): Recognize it.
10220         (func_get_applicability): New function.
10221         (func_import): Generalize handling of 'link-warning' module.
10222         * modules/link-warning (Applicability): New section.
10223         * modules/arg-nonnull (Applicability): New section.
10224         Repoted by Simon Josefsson <simon@josefsson.org>.
10225
10226 2009-12-19  Bruno Haible  <bruno@clisp.org>
10227
10228         fflush: tweak
10229         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10230         * lib/fseeko.c (rpl_fseeko): Likewise.
10231
10232 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10233
10234         * lib/gl_list.h: Fix typo in comment.
10235
10236 2009-12-16  Eric Blake  <ebb9@byu.net>
10237
10238         fcntl: use to simplify other modules
10239         * modules/cloexec (Depends-on): Add fcntl.
10240         * modules/fchdir (Depends-on): Likewise.
10241         * modules/fd-safer-flag (Depends-on): Likewise.
10242         * modules/unistd-safer (Depends-on): Likewise.
10243         * modules/dup3 (configure.ac): Set module indicator.
10244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10245         missing.
10246         * lib/fchdir.c (_gl_register_dup): Fix comment.
10247         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10248         * lib/dup-safer.c (dup_safer): Likewise.
10249         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10250         * lib/dup3.c (dup3): Likewise.
10251         * tests/test-fchdir.c (main): Enhance test.
10252         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
10253
10254         fcntl: port portions of fcntl to mingw
10255         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10256         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10257         replacement for mingw.
10258         * modules/fcntl (Description): Update.
10259         (Depends-on): Add dup2.
10260         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10261         * modules/fcntl-h (Makefile.am): Substitute it.
10262         * lib/fcntl.in.h (fcntl): Update declaration.
10263         (F_DUPFD, F_GETFD): New macros, when needed.
10264         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10265         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10266         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10267         we now guarantee.
10268
10269         fcntl: work around cygwin bug in F_DUPFD
10270         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10271         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10272         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10273         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10274         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10275
10276         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10277         * modules/fcntl (Files): List new files.
10278         (configure.ac): Run a test.
10279         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10280         * lib/fcntl.c (rpl_fcntl): Likewise.
10281         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10282         (gl_FCNTL_H): Always replace fcntl.h.
10283         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10284         * lib/fcntl.in.h (fcntl): Declare replacement.
10285         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10286         needed, plus a witness.
10287         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10288         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10289         * tests/test-fcntl.c: New file.
10290         * modules/fcntl-tests: Likewise.
10291
10292         binary-io: avoid potential compilation warning
10293         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10294         directives.
10295
10296         fflush: avoid compilation error on NetBSD
10297         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10298         between off_t and fpos_t, since the latter is sometimes a struct.
10299         * lib/fseeko.c (rpl_fseeko): Likewise.
10300         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10301
10302 2009-12-15  Eric Blake  <ebb9@byu.net>
10303
10304         fcntl-h, stdio, sys_ioctl: fix declarations
10305         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10306         function must not take arguments.
10307         * lib/sys_ioctl.in.h (ioctl): Likewise.
10308         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10309         (open): Add a link warning.
10310
10311 2009-12-15  Jim Meyering  <meyering@redhat.com>
10312
10313         areadlink, areadlink-with-size: relax license to LGPLv2+
10314         * modules/areadlink (License): Relax to LGPLv2+.
10315         * modules/areadlink-with-size (License): Likewise.
10316
10317 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10318             Bruno Haible  <bruno@clisp.org>
10319
10320         *printf: Fix memory leak.
10321         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10322         * lib/vfprintf.c (vfprintf): Likewise.
10323         * lib/dprintf.c (dprintf): Likewise.
10324         * lib/vdprintf.c (vdprintf): Likewise.
10325
10326 2009-12-14  Eric Blake  <ebb9@byu.net>
10327
10328         accept4: adjust module dependencies
10329         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10330
10331         utimens: one more try at avoiding compiler warning
10332         * lib/utimens.c (lutimens): Lower scope of result.
10333
10334 2009-12-13  Bruno Haible  <bruno@clisp.org>
10335
10336         Move the malloc checking from module 'list' to new module 'xlist'.
10337         * modules/xlist: New file.
10338         * lib/gl_xlist.h: New file.
10339         * lib/gl_xlist.c: New file.
10340         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10341         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10342         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10343         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10344         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10345         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10346         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10347         gl_sortedlist_nx_add): New declarations.
10348         (struct gl_list_implementation): Rename and change methods accordingly.
10349         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10350         (gl_list_nx_create): Renamed from gl_list_create.
10351         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10352         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10353         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10354         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10355         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10356         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10357         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10358         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10359         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10360         gl_list_create_empty.
10361         (gl_list_nx_create): Renamed from gl_list_create.
10362         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10363         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10364         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10365         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10366         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10367         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10368         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10369         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10370         * lib/gl_array_list.c: Don't include xalloc.h.
10371         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10372         NULL upon out-of-memory.
10373         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10374         out-of-memory.
10375         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10376         Change return type to 'int'.
10377         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10378         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10379         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10380         upon out-of-memory.
10381         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10382         upon out-of-memory.
10383         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10384         upon out-of-memory.
10385         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10386         upon out-of-memory.
10387         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10388         out-of-memory.
10389         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10390         Update.
10391         (gl_array_list_implementation): Update.
10392         * lib/gl_carray_list.c: Don't include xalloc.h.
10393         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10394         Return NULL upon out-of-memory.
10395         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10396         out-of-memory.
10397         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10398         Change return type to 'int'.
10399         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10400         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10401         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10402         upon out-of-memory.
10403         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10404         upon out-of-memory.
10405         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10406         out-of-memory.
10407         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10408         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10409         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10410         Update.
10411         (gl_carray_list_implementation): Update.
10412         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10413         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10414         gl_linked_create_empty. Return NULL upon out-of-memory.
10415         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10416         out-of-memory.
10417         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10418         Change return type to 'int'. Return -1 upon out-of-memory.
10419         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10420         out-of-memory.
10421         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10422         upon out-of-memory.
10423         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10424         upon out-of-memory.
10425         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10426         NULL upon out-of-memory.
10427         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10428         upon out-of-memory.
10429         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10430         out-of-memory.
10431         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10432         Update.
10433         * lib/gl_linked_list.c: Don't include xalloc.h.
10434         (gl_linked_list_implementation): Update.
10435         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10436         (add_to_bucket): Change return type to 'int'.
10437         (gl_linkedhash_list_implementation): Update.
10438         * lib/gl_anytree_list1.h (free_subtree): New function.
10439         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10440         gl_tree_create_empty. Return NULL upon out-of-memory.
10441         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10442         Change return type to 'int'. Return -1 upon out-of-memory.
10443         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10444         out-of-memory.
10445         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10446         (gl_tree_remove_node): New function, moved here from
10447         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10448         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10449         Update.
10450         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10451         malloc, not xmalloc. Return NULL upon out-of-memory.
10452         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10453         out-of-memory.
10454         (gl_tree_remove_node_from_tree): New function, extracted from
10455         gl_tree_remove_node.
10456         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10457         upon out-of-memory.
10458         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10459         out-of-memory.
10460         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10461         upon out-of-memory.
10462         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10463         upon out-of-memory.
10464         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10465         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10466         not xmalloc. Return NULL upon out-of-memory.
10467         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10468         out-of-memory.
10469         (gl_tree_remove_node_from_tree): New function, extracted from
10470         gl_tree_remove_node.
10471         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10472         upon out-of-memory.
10473         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10474         out-of-memory.
10475         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10476         upon out-of-memory.
10477         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10478         upon out-of-memory.
10479         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10480         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10481         gl_anytree_list1.h before gl_anyavltree_list2.h.
10482         (gl_avltree_list_implementation): Update.
10483         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10484         gl_anytree_list1.h before gl_anyavltree_list2.h.
10485         (gl_rbtree_list_implementation): Update.
10486         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10487         Change return type to 'int'. Return -1 upon out-of-memory. Use
10488         __builtin_expect.
10489         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10490         (gl_avltreehash_list_implementation): Update.
10491         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10492         (gl_rbtreehash_list_implementation): Update.
10493         * modules/array-list (Depends-on): Remove xalloc.
10494         * modules/carray-list (Depends-on): Likewise.
10495         * modules/linked-list (Depends-on): Likewise.
10496         * modules/linkedhash-list (Depends-on): Likewise.
10497         * modules/avltree-list (Depends-on): Likewise.
10498         * modules/rbtree-list (Depends-on): Likewise.
10499         * modules/avltreehash-list (Depends-on): Likewise.
10500         * modules/rbtreehash-list (Depends-on): Likewise.
10501
10502         * modules/xsublist: New file.
10503         * lib/gl_xsublist.h: New file.
10504         * lib/gl_xsublist.c: New file.
10505         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10506         (gl_sublist_nx_create): New declaration.
10507         * lib/gl_sublist.c: Don't include xalloc.h.
10508         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10509         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10510         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10511         Change return type to 'int'. Return -1 upon out-of-memory.
10512         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10513         upon out-of-memory.
10514         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10515         NULL upon out-of-memory.
10516         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10517         upon out-of-memory.
10518         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10519         NULL upon out-of-memory.
10520         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10521         NULL upon out-of-memory.
10522         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10523         upon out-of-memory.
10524         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10525         (gl_sublist_list_implementation): Update.
10526         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10527         upon out-of-memory.
10528         * modules/sublist (Depends-on): Remove xalloc.
10529
10530         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10531         * tests/test-carray_list.c: Likewise.
10532         * tests/test-linked_list.c: Likewise.
10533         * tests/test-linkedhash_list.c: Likewise.
10534         * tests/test-avltree_list.c: Likewise.
10535         * tests/test-rbtree_list.c: Likewise.
10536         * tests/test-avltreehash_list.c: Likewise.
10537         * tests/test-rbtreehash_list.c: Likewise.
10538         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10539         * modules/carray-list-tests (Makefile.am): Likewise.
10540         * modules/linked-list-tests (Makefile.am): Likewise.
10541         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10542         * modules/avltree-list-tests (Makefile.am): Likewise.
10543         * modules/rbtree-list-tests (Makefile.am): Likewise.
10544         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10545         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10546
10547         * NEWS: Mention the changes.
10548
10549         * lib/clean-temp.c: Include gl_xlist.h.
10550         * modules/clean-temp (Depends-on): Add xlist.
10551
10552         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10553         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10554
10555         * tests/test-array_oset.c: Include gl_xlist.h.
10556         * modules/array-oset-tests (Depends-on): Add xlist.
10557
10558         Reported by José E. Marchesi <jemarch@gnu.org>.
10559
10560 2009-12-13  Bruno Haible  <bruno@clisp.org>
10561
10562         Move the malloc checking from module 'oset' to new module 'xoset'.
10563         * modules/xoset: New file.
10564         * lib/gl_xoset.h: New file.
10565         * lib/gl_xoset.c: New file.
10566         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10567         declarations.
10568         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10569         (struct gl_oset_implementation): Rename and change methods accordingly.
10570         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10571         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10572         'int'. Mark as __warn_unused_result__.
10573         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10574         gl_oset_create_empty.
10575         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10576         'int'.
10577         * lib/gl_array_oset.c: Don't include xalloc.h.
10578         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10579         malloc, not xmalloc.
10580         (grow): Change return type to 'int'. Don't call xalloc_die.
10581         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10582         to 'int'.
10583         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10584         'int'.
10585         (gl_array_oset_implementation): Update.
10586         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10587         gl_tree_create_empty.
10588         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10589         'int'.
10590         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10591         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10592         xmalloc.
10593         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10594         not xmalloc.
10595         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10596         xmalloc.
10597         (gl_avltree_oset_implementation): Update.
10598         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10599         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10600         xmalloc.
10601         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10602         not xmalloc.
10603         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10604         xmalloc.
10605         (gl_rbtree_oset_implementation): Update.
10606         * modules/array-oset (Depends-on): Remove xalloc.
10607         * modules/avltree-oset (Depends-on): Likewise.
10608         * modules/rbtree-oset (Depends-on): Likewise.
10609         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10610         * tests/test-avltree_oset.c: Likewise.
10611         * tests/test-rbtree_oset.c: Likewise.
10612         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10613         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10614         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10615         * NEWS: Mention the change.
10616
10617 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10618
10619         maint.mk: allow a project to override release-prep commands
10620         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10621         commands into a new rule.
10622         (release-prep): New rule.
10623         (release-prep-hook): New overridable variable.
10624
10625 2009-12-13  Bruno Haible  <bruno@clisp.org>
10626
10627         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10628
10629 2009-12-13  Jim Meyering  <meyering@redhat.com>
10630
10631         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10632         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10633
10634 2009-12-12  Bruno Haible  <bruno@clisp.org>
10635
10636         duplocale: Tweak.
10637         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10638
10639 2009-12-12  Karl Berry  <karl@gnu.org>
10640
10641         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10642
10643 2009-12-12  Bruno Haible  <bruno@clisp.org>
10644
10645         * m4/po.m4: Undo incorrect untabification.
10646
10647 2009-12-12  Bruno Haible  <bruno@clisp.org>
10648
10649         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10650         * modules/c-strtod (Depends-on): Add locale.
10651         * modules/c-strtold (Depends-on): Likewise.
10652
10653 2009-12-12  Bruno Haible  <bruno@clisp.org>
10654
10655         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10656
10657 2009-12-11  Eric Blake  <ebb9@byu.net>
10658
10659         setenv: relax requirement in light of POSIX ruling
10660         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10661         not NULL.
10662         * tests/test-setenv.c (main): Relax test.
10663         * tests/test-unsetenv.c (main): Likewise.
10664         * doc/posix-functions/setenv.texi (setenv): Document this.
10665         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10666
10667 2009-12-11  Bruno Haible  <bruno@clisp.org>
10668
10669         New module 'fd-safer-flag'.
10670         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10671         * lib/dup-safer.c (dup_safer_flag): Remove function.
10672         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10673         * lib/fd-safer.c (fd_safer_flag): Remove function.
10674         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10675         * modules/cloexec (configure.ac): Drop indicator macro.
10676         * modules/fd-safer-flag: New file.
10677         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10678         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10679         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10680
10681 2009-12-11  Bruno Haible  <bruno@clisp.org>
10682
10683         Tests for module 'nl_langinfo'.
10684         * modules/nl_langinfo-tests: New file.
10685         * tests/test-nl_langinfo.sh: New file.
10686         * tests/test-nl_langinfo.c: New file.
10687
10688         New module 'nl_langinfo'.
10689         * lib/nl_langinfo.c: New file.
10690         * m4/nl_langinfo.m4: New file.
10691         * modules/nl_langinfo: New file.
10692         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10693
10694 2009-12-11  Bruno Haible  <bruno@clisp.org>
10695
10696         Tests for module 'langinfo'.
10697         * modules/langinfo-tests: New file.
10698         * tests/test-langinfo.c: New file.
10699
10700         New module 'langinfo'.
10701         * lib/langinfo.in.h: New file.
10702         * m4/langinfo_h.m4: New file.
10703         * modules/langinfo: New file.
10704         * doc/posix-headers/langinfo.texi: Mention the new module.
10705
10706 2009-12-11  Bruno Haible  <bruno@clisp.org>
10707
10708         * lib/config.charset: Untabify.
10709
10710 2009-12-11  Bruno Haible  <bruno@clisp.org>
10711
10712         * modules/unistd-safer (configure.ac): Drop indicator macro.
10713
10714 2009-12-11  Bruno Haible  <bruno@clisp.org>
10715
10716         Move pipe2-safer code to its own file.
10717         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10718         * lib/pipe-safer.c (pipe2_safer): Remove function.
10719         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10720         (Makefile.am): Add it to lib_SOURCES.
10721
10722 2009-12-10  Bruno Haible  <bruno@clisp.org>
10723
10724         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10725
10726 2009-12-10  Bruno Haible  <bruno@clisp.org>
10727
10728         Declare which arguments expect non-NULL values, for GCC and clang.
10729         * build-aux/arg-nonnull.h: New file.
10730         * modules/arg-nonnull: New file.
10731         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10732         (inet_ntop, inet_pton): Use it.
10733         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10734         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10735         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10736         (open, openat): Use it.
10737         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10738         (fnmatch): Use it.
10739         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10740         (getopt, getopt_long, getopt_long_only): Use it.
10741         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10742         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10743         Use it.
10744         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10745         (iconv_open): Use it.
10746         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10747         (strtoimax, strtoumax): Use it.
10748         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10749         (duplocale): Use it.
10750         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10751         (frexp, frexpl): Use it.
10752         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10753         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10754         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10755         (tsearch, tfind, tdelete, twalk): Use it.
10756         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10757         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10758         sigpending): Use it.
10759         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10760         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10761         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10762         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10763         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10764         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10765         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10766         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10767         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10768         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10769         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10770         Use it.
10771         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10772         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10773         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10774         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10775         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10776         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10777         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10778         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10779         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10780         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10781         strtoull, unsetenv): Use it.
10782         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10783         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10784         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10785         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10786         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10787         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10788         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10789         (strcasecmp, strncasecmp): Use it.
10790         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10791         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10792         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10793         rpl_setsockopt): Use it.
10794         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10795         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10796         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10797         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10798         (gettimeofday): Use it.
10799         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10800         (times): Use it.
10801         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10802         (uname): Use it.
10803         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10804         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10805         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10806         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10807         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10808         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10809         unlinkat, write): Use it.
10810         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10811         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10812         * lib/argv-iter.h: Include arg-nonnull.h.
10813         (_ATTRIBUTE_NONNULL_): Remove macro.
10814         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10815         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10816         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10817         optimization.
10818         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10819         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10820         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10821         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10822         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10823         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10824         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10825         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10826         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10827         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10828         * modules/dirent (Depends-on): Add arg-nonnull.
10829         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10830         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10831         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10832         * modules/fnmatch (Depends-on): Add arg-nonnull.
10833         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10834         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10835         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10836         * modules/glob (Depends-on): Add arg-nonnull.
10837         (Makefile.am): Insert arg-nonnull.h into glob.h.
10838         * modules/iconv_open (Depends-on): Add arg-nonnull.
10839         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10840         * modules/inttypes (Depends-on): Add arg-nonnull.
10841         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10842         * modules/locale (Depends-on): Add arg-nonnull.
10843         (Makefile.am): Insert arg-nonnull.h into locale.h.
10844         * modules/math (Depends-on): Add arg-nonnull.
10845         (Makefile.am): Insert arg-nonnull.h into math.h.
10846         * modules/netdb (Depends-on): Add arg-nonnull.
10847         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10848         * modules/search (Depends-on): Add arg-nonnull.
10849         (Makefile.am): Insert arg-nonnull.h into search.h.
10850         * modules/signal (Depends-on): Add arg-nonnull.
10851         (Makefile.am): Insert arg-nonnull.h into signal.h.
10852         * modules/spawn (Depends-on): Add arg-nonnull.
10853         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10854         * modules/stdio (Depends-on): Add arg-nonnull.
10855         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10856         * modules/stdlib (Depends-on): Add arg-nonnull.
10857         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10858         * modules/string (Depends-on): Add arg-nonnull.
10859         (Makefile.am): Insert arg-nonnull.h into string.h.
10860         * modules/strings (Depends-on): Add arg-nonnull.
10861         (Makefile.am): Insert arg-nonnull.h into strings.h.
10862         * modules/sys_socket (Depends-on): Add arg-nonnull.
10863         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10864         * modules/sys_stat (Depends-on): Add arg-nonnull.
10865         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10866         * modules/sys_time (Depends-on): Add arg-nonnull.
10867         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10868         * modules/sys_times (Depends-on): Add arg-nonnull.
10869         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10870         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10871         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10872         * modules/time (Depends-on): Add arg-nonnull.
10873         (Makefile.am): Insert arg-nonnull.h into time.h.
10874         * modules/unistd (Depends-on): Add arg-nonnull.
10875         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10876         * modules/wchar (Depends-on): Add arg-nonnull.
10877         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10878         * modules/argv-iter (Depends-on): Add arg-nonnull.
10879         * tests/test-canonicalize.c (null_ptr): New function.
10880         (main): Use it.
10881         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10882         (main): Use it.
10883         * tests/test-memmem.c (null_ptr): New function.
10884         (main): Use it.
10885         Reported by Jim Meyering.
10886
10887 2009-12-10  Bruno Haible  <bruno@clisp.org>
10888
10889         Use spaces for indentation, not tabs.
10890         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10891         * m4/*.m4: Untabify.
10892         * build-aux/*.h: Untabify.
10893         * tests/**/*.[hc]: Untabify.
10894         * README: New section "Indent with spaces, not TABs", based on
10895         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10896         * NEWS: Mention the change.
10897
10898 2009-12-10  Bruno Haible  <bruno@clisp.org>
10899
10900         pty test: Fix link error.
10901         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10902         test_pty_LDADD.
10903
10904 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10905
10906         * modules/pty: New file.
10907         * modules/pty-tests: New file.
10908         * m4/pty.m4: New file.
10909         * tests/test-pty.c: New file.
10910         * doc/glibc-headers/pty.texi: Modified.
10911         * doc/glibc-functions/forkpty.texi: Modified.
10912         * doc/glibc-functions/openpty.texi: Modified.
10913
10914 2009-12-10  Bruno Haible  <bruno@clisp.org>
10915
10916         Avoid syntax error in C++ mode.
10917         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10918
10919 2009-12-10  Bruno Haible  <bruno@clisp.org>
10920
10921         Use sed with option -e.
10922         * gnulib-tool (func_version, func_emit_copyright_notice,
10923         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10924         option -e to sed.
10925         * modules/link-warning (Makefile.am): Likewise.
10926
10927 2009-12-10  Jim Meyering  <meyering@redhat.com>
10928
10929         mgetgroups: do not write bytes beyond end of malloc'd buffer
10930         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10931         username, we call getgroups with a one-element-shorter buffer,
10932         but still told it the length was original, max_n_groups.
10933
10934 2009-12-09  Eric Blake  <ebb9@byu.net>
10935
10936         cloexec: relax license
10937         * modules/cloexec (Maintainer): Add myself.
10938         (License): Use LGPL, not GPL.
10939
10940         link-warning: optimize generation
10941         * modules/link-warning (Makefile.am): Reduce process usage.
10942
10943 2009-12-09  Bruno Haible  <bruno@clisp.org>
10944
10945         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10946         workaround was added on 2009-11-17.
10947
10948 2009-12-09  Jim Meyering  <meyering@redhat.com>
10949             Bruno Haible  <bruno@clisp.org>
10950
10951         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10952         * modules/link-warning (Makefile.am): Make the comment-removing sed
10953         command more robust in the face of bootstrap-prepended comment lines.
10954
10955 2009-12-09  Bruno Haible  <bruno@clisp.org>
10956
10957         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10958         most one group.
10959
10960 2009-12-09  Simon Josefsson <simon@josefsson.org>
10961             Bruno Haible  <bruno@clisp.org>
10962
10963         * build-aux/link-warning.h: Add copyright notice.
10964         * modules/link-warning (Makefile.am): Generate link-warning.h from
10965         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10966         * NEWS: Mention change in link-warning module.
10967         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10968         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10969         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10970         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10971         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10972         * modules/math (Makefile.am): Add dependency to math.h.
10973         * modules/search (Makefile.am): Add dependency to search.h.
10974         * modules/signal (Makefile.am): Add dependency to signal.h.
10975         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10976         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10977         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10978         * modules/string (Makefile.am): Add dependency to string.h.
10979         * modules/strings (Makefile.am): Add dependency to strings.h.
10980         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10981         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10982         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10983         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10984         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10985         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10986         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10987         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10988         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10989
10990 2009-12-09  Bruno Haible  <bruno@clisp.org>
10991
10992         fchdir: Optimize away rpl_fstat when possible.
10993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10994         REPLACE_OPEN_DIRECTORY.
10995         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10996
10997 2009-12-09  Bruno Haible  <bruno@clisp.org>
10998
10999         * lib/fchdir.c: Update comment.
11000
11001 2009-12-09  Bruno Haible  <bruno@clisp.org>
11002
11003         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11004
11005 2009-12-08  Eric Blake  <ebb9@byu.net>
11006
11007         fchdir: avoid memory leak on re-registration.
11008         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11009
11010 2009-12-08  Jim Meyering  <meyering@redhat.com>
11011
11012         init.sh: avoid Solaris 10 /bin/sh portability problem
11013         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11014         sourced script:
11015           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11016           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11017           bar
11018         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11019         and two tests used that idiom.
11020         * tests/init.sh: Update suggested usage comments.
11021         (path_prepend_): New function, to be used in place
11022         of the --src-path=DIR option.
11023         (setup_): Move PATH-prepending code into path_prepend_.
11024         * tests/test-pread.sh: Adapt to new usage.
11025         * tests/test-xalloc-die.sh: Likewise.
11026
11027 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11028
11029         * doc/gnulib.texi (Glibc pty.h): Add.
11030         * doc/glibc-functions/forkpty.texi: Add.
11031         * doc/glibc-functions/openpty.texi: Add.
11032         Suggested by Bruno Haible.
11033
11034 2009-12-08  Eric Blake  <ebb9@byu.net>
11035
11036         fchdir: fix logic bugs
11037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11038         * tests/test-fchdir.c (main): Enhance test.
11039         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11040         is in use.
11041
11042         dup2: fix logic bugs
11043         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11044         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11045         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11046         exists.
11047         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11048
11049 2009-12-07  Eric Blake  <ebb9@byu.net>
11050
11051         unlink: fix m4 detection
11052         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11053
11054         unistd-safer: add unit test
11055         * modules/unistd-safer-tests: New file.
11056         * tests/test-dup-safer.c: Likewise.
11057         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11058         * tests/test-dup2.c (setmode): Likewise.
11059         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11060
11061         cloexec: preserve text vs. binary across dup_cloexec
11062         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11063         mode.
11064         * modules/dup2-tests (Depends-on): Add binary-io.
11065         * modules/cloexec-tests (Depends-on): Likewise.
11066         * tests/test-dup2.c (setmode, is_mode): New helpers.
11067         (main): Add tests that translation mode is preserved.
11068         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11069         Reported by Bruno Haible.
11070
11071         mgetgroups: reduce duplicate listings
11072         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11073         resulting array.
11074         * tests/test-chown.h (test_chown): Simplify client.
11075         * tests/test-lchown.h (test_lchown): Likewise.
11076
11077 2009-12-06  Bruno Haible  <bruno@clisp.org>
11078
11079         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11080         value.
11081
11082 2009-12-06  Bruno Haible  <bruno@clisp.org>
11083
11084         * lib/progname.c: Include stdio.h, stdlib.h.
11085         (set_program_name): Reject a NULL argument.
11086
11087 2009-12-05  Eric Blake  <ebb9@byu.net>
11088
11089         pipe2-safer: new module
11090         * modules/pipe2-safer: New file.
11091         * lib/unistd-safer.h (pipe2_safer): New prototype.
11092         * lib/unistd--.h (pipe2): New wrapper.
11093         * lib/pipe-safer.c (pipe2_safer): New function.
11094         * modules/pipe (Depends-on): Add pipe2-safer.
11095         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11096
11097         stdlib-safer: preserve cloexec flag for mkostemp[s]
11098         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11099         fd_safer_flag.
11100
11101         unistd-safer: allow preservation of cloexec status via flag
11102         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11103         prototypes.
11104         * lib/dup-safer.c (dup_safer_flag): New function.
11105         * lib/fd-safer.c (fd_safer_flag): Likewise.
11106         * modules/cloexec (configure.ac): Set witness.
11107
11108         test-dup2: enhance test
11109         * modules/dup2-tests (Depends-on): Add cloexec.
11110         * tests/test-dup2.c (main): Enhance test.
11111
11112         cloexec: add dup_cloexec
11113         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11114         header and comments.
11115         * lib/cloexec.c (set_cloexec_flag): Add comments.
11116         (dup_cloexec): New function, with mingw implementation borrowed
11117         from...
11118         * lib/w32spawn.h (dup_noinherit): ...here.
11119         * modules/execute (Depends-on): Add cloexec.
11120         * modules/pipe (Depends-on): Likewise.
11121         * modules/cloexec (Depends-on): Add dup2.
11122         * modules/cloexec-tests (Files): New file.
11123         * tests/test-cloexec.c: Likewise.
11124
11125         test-xalloc-die: fix test for mingw
11126         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11127         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11128         directory and .exe suffix off argv[0] output.
11129
11130         test-fseeko: fix test for mingw
11131         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11132         than undefining fseek, so test will pass on mingw.
11133
11134 2009-12-05  Bruno Haible  <bruno@clisp.org>
11135
11136         * lib/progname.h (set_program_name): Clarify specification.
11137         * lib/progname.c (set_program_name): Likewise.
11138         Reported by Jim Meyering.
11139
11140 2009-12-05  Jim Meyering  <meyering@redhat.com>
11141
11142         maint.mk: backslash-escape parens in default regexp
11143         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11144         backslash-escape the literal parentheses.
11145
11146         maint.mk: news-date-check: use grep -E
11147         * top/maint.mk (today): Define a Make variable, not a...
11148         (news-date-check): ...shell variable.
11149         (news-date-regexp): Use the Make variable.
11150         Use grep's -E option.  Change the failing diagnostic to mention
11151         the variable, $(news-date-regexp).
11152
11153 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11154
11155         maintainer-makefile: allow customization of NEWS entry format
11156         * top/maint.mk (news-date-regexp): New overridable variable.
11157         (news-date-check): Use it.
11158
11159 2009-12-04  Eric Blake  <ebb9@byu.net>
11160
11161         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11162         * lib/mgetgroups.h (xgetgroups): New prototype.
11163         * lib/mgetgroups.c (xgetgroups): New wrapper.
11164         (mgetgroups): Handle ENOSYS.
11165         * modules/mgetgroups (Depends-on): Add realloc.
11166         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11167
11168         mgetgroups: avoid argument promotion issues with -1
11169         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11170         for invalid gid_t.
11171         * tests/test-chown.h (getegid, test_chown): Likewise.
11172         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11173
11174 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11175
11176         exclude: Fix header file problems.
11177         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11178
11179 2009-12-01  Jim Meyering  <meyering@redhat.com>
11180
11181         fts: fts_open: do not let an empty string cause immediate failure
11182         This is required in support of GNU rm, for which the command
11183         "rm A '' B" must process and remove both A and B, in spite of
11184         the empty string argument.
11185         * lib/fts.c (fts_open): Do not let the presence of an empty string
11186         cause fts_open to fail immediately.  Most fts-using tools must be
11187         able to process all arguments, in order, and can be expected to
11188         diagnose such arguments themselves.
11189
11190 2009-11-30  Eric Blake  <ebb9@byu.net>
11191
11192         utimens: fix compilation error
11193         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11194         Declare variable at right scope.
11195
11196 2009-11-29  Jim Meyering  <meyering@redhat.com>
11197
11198         bootstrap: handle perl-5.11's changed --version output
11199         * build-aux/bootstrap (get_version): Handle perl separately,
11200         since perl-5.11's --version output is different.
11201
11202 2009-11-28  Jim Meyering  <meyering@redhat.com>
11203
11204         userspec: depend on the inttostr module, too
11205         * modules/userspec (Depends-on): Add inttostr.
11206
11207         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11208         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11209         number of MAXUID when it evaluates to (uid_t) -1.
11210         Likewise for group ID.  Reported by Matt McCutchen in
11211         <http://savannah.gnu.org/bugs/?28113>
11212
11213         userspec: reformat to use spaces, not TABs
11214         * lib/userspec.c: Expand TABs to spaces.
11215         Add Emacs' "indent-tabs-mode: nil" hint.
11216
11217 2009-11-27  Eric Blake  <ebb9@byu.net>
11218
11219         getopt-gnu: flush out another BSD bug
11220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11221         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11222         flush out BSD bug.
11223         * tests/test-getopt.h (test_getopt): End lists with NULL.
11224         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11225         (test_getopt_long_posix): Enhance test.
11226         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11227         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11228         getopt-gnu.
11229         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11230         Likewise.
11231
11232 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11233
11234         * modules/idpriv-droptemp-tests (Notice): Fix text.
11235
11236 2009-11-27  Jim Meyering  <meyering@redhat.com>
11237
11238         test-xalloc-die: avoid spurious failure due to libtool argv difference
11239         In a libtool-enabled project, this test would fail due to a difference
11240         in the emitted program name, e.g.,
11241         -test-xalloc-die: memory exhausted
11242         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11243         Use program to avoid that.
11244         * modules/xalloc-die-tests (Depends-on): Add progname.
11245         * tests/test-xalloc-die.c: Include progname.h".
11246         (program_name): Remove decl.
11247         (main): Call set_program_name.
11248         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11249
11250 2009-11-26  Richard Jones  <rjones@redhat.com>
11251
11252         w32sock: leave win32 error in place.
11253         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11254
11255 2009-11-26  Eric Blake  <ebb9@byu.net>
11256
11257         init.sh: suggest to use skip_ and fail_ functions in comments
11258         * tests/init.sh: Add a sentence.
11259
11260 2009-11-25  Bruno Haible  <bruno@clisp.org>
11261
11262         init.sh: add documentation in comments
11263         * tests/init.sh: Add some developer and user documentation.
11264
11265 2009-11-26  Jim Meyering  <meyering@redhat.com>
11266
11267         init.sh: accommodate even those who specify bogus srcdir manually
11268         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11269         configure-time tests to be sanitized, so that there is no need to
11270         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11271         (with no double quotes) suffices.  However, since tests may be
11272         invoked manually, and since you may explicitly set srcdir to the
11273         name of a directory containing spaces, do quote its uses here.
11274         * tests/test-pread.sh: Likewise.
11275         Suggested by Bruno Haible.
11276
11277         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11278         * tests/test-pread.sh: Write no data into the pipe, because
11279         test-pread actually reads none.  This avoids a diagnostic,
11280         "bash: echo: write error: Broken pipe", that arises in the unusual
11281         event something is ignoring SIGPIPE, and might be interpreted
11282         as some sort of failure.  Reported by Bruno Haible.
11283
11284 2009-11-25  Jim Meyering  <meyering@redhat.com>
11285
11286         test-pread: cover failure with ESPIPE and EINVAL
11287         * tests/test-pread.c (main): Test for failure, too.
11288         * tests/test-pread.sh: Invoke with stdin on a pipe.
11289         Suggested by Eric Blake.
11290
11291         pread: improvement and fix
11292         * modules/pread (Depends-on): Depend on lseek, for portability to
11293         e.g., mingw.  Suggested by Eric Blake.
11294         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11295
11296         unistd.in.h: correct declaration of pread
11297         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11298         Reported by Richard W.M. Jones.
11299
11300         test-pread.sh: distribute the test script
11301         * modules/pread-tests (Files): Include test-pread.sh.
11302
11303         test-pread.sh: clean up
11304         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11305         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11306         That is unnecessary, since it's always ".".
11307         Suggestion from Eric Blake.
11308
11309         test-pread.sh: make executable
11310         * tests/test-pread.sh: Set executable bit.
11311         Reported by Eric Blake.
11312
11313         correct typo in test-pread.sh
11314         * tests/test-pread.sh: Add #! line.
11315
11316         test pread
11317         * tests/test-pread.c: New file.
11318         * tests/test-pread.sh: Likewise.
11319         * modules/pread-tests: Likewise.
11320
11321         pread: new module
11322         * modules/pread: New file.
11323         * lib/unistd.in.h (pread): Define/declare.
11324         * lib/pread.c (pread): New file.
11325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11326         * modules/unistd (Makefile.am): Substitute witnesses.
11327         * doc/posix-functions/pread.texi (pread): Update.
11328         * MODULES.html.sh: Add pread.
11329
11330 2009-11-25  Jim Meyering  <meyering@redhat.com>
11331
11332         tests/init.sh: new file to be used via most *.sh tests
11333         * tests/init.sh: New file.
11334
11335 2009-11-25  Eric Blake  <ebb9@byu.net>
11336
11337         utimens: work around older Linux failure with symlinks
11338         * lib/utimens.c (lutimensat_works_really): New variable.
11339         (fdutimens, lutimens): Use it to manage kernels that support
11340         nanosecond times on files, but not on symlinks.
11341         Reported by OndÅ™ej Vašík.
11342
11343         utimes: fix configure grammar
11344         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11345
11346 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11347
11348         regex: Fix fastmap for multibyte character ranges.
11349         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11350         characters when a multibyte character range is included.
11351
11352 2009-11-22  Andy Wingo  <wingo@pobox.com>
11353
11354         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11355         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11356
11357 2009-11-24  Bruno Haible  <bruno@clisp.org>
11358
11359         doc: Most *_l functions exist in MacOS X 10.5.
11360         * doc/posix-functions/duplocale.texi: Update platforms list.
11361         * doc/posix-functions/freelocale.texi: Likewise.
11362         * doc/posix-functions/newlocale.texi: Likewise.
11363         * doc/posix-functions/uselocale.texi: Likewise.
11364         * doc/posix-functions/isalnum_l.texi: Likewise.
11365         * doc/posix-functions/isalpha_l.texi: Likewise.
11366         * doc/posix-functions/isblank_l.texi: Likewise.
11367         * doc/posix-functions/iscntrl_l.texi: Likewise.
11368         * doc/posix-functions/isdigit_l.texi: Likewise.
11369         * doc/posix-functions/isgraph_l.texi: Likewise.
11370         * doc/posix-functions/islower_l.texi: Likewise.
11371         * doc/posix-functions/isprint_l.texi: Likewise.
11372         * doc/posix-functions/ispunct_l.texi: Likewise.
11373         * doc/posix-functions/isspace_l.texi: Likewise.
11374         * doc/posix-functions/isupper_l.texi: Likewise.
11375         * doc/posix-functions/iswalnum_l.texi: Likewise.
11376         * doc/posix-functions/iswalpha_l.texi: Likewise.
11377         * doc/posix-functions/iswblank_l.texi: Likewise.
11378         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11379         * doc/posix-functions/iswctype_l.texi: Likewise.
11380         * doc/posix-functions/iswdigit_l.texi: Likewise.
11381         * doc/posix-functions/iswgraph_l.texi: Likewise.
11382         * doc/posix-functions/iswlower_l.texi: Likewise.
11383         * doc/posix-functions/iswprint_l.texi: Likewise.
11384         * doc/posix-functions/iswpunct_l.texi: Likewise.
11385         * doc/posix-functions/iswspace_l.texi: Likewise.
11386         * doc/posix-functions/iswupper_l.texi: Likewise.
11387         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11388         * doc/posix-functions/isxdigit_l.texi: Likewise.
11389         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11390         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11391         * doc/posix-functions/strcoll_l.texi: Likewise.
11392         * doc/posix-functions/strfmon_l.texi: Likewise.
11393         * doc/posix-functions/strftime_l.texi: Likewise.
11394         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11395         * doc/posix-functions/strxfrm_l.texi: Likewise.
11396         * doc/posix-functions/tolower_l.texi: Likewise.
11397         * doc/posix-functions/toupper_l.texi: Likewise.
11398         * doc/posix-functions/towctrans_l.texi: Likewise.
11399         * doc/posix-functions/towlower_l.texi: Likewise.
11400         * doc/posix-functions/towupper_l.texi: Likewise.
11401         * doc/posix-functions/wcscoll_l.texi: Likewise.
11402         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11403         * doc/posix-functions/wctrans_l.texi: Likewise.
11404         * doc/posix-functions/wctype_l.texi: Likewise.
11405         * doc/glibc-functions/strptime_l.texi: Likewise.
11406         * doc/glibc-functions/strtod_l.texi: Likewise.
11407         * doc/glibc-functions/strtof_l.texi: Likewise.
11408         * doc/glibc-functions/strtol_l.texi: Likewise.
11409         * doc/glibc-functions/strtold_l.texi: Likewise.
11410         * doc/glibc-functions/strtoll_l.texi: Likewise.
11411         * doc/glibc-functions/strtoul_l.texi: Likewise.
11412         * doc/glibc-functions/strtoull_l.texi: Likewise.
11413         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11414         * doc/glibc-functions/wcstod_l.texi: Likewise.
11415         * doc/glibc-functions/wcstof_l.texi: Likewise.
11416         * doc/glibc-functions/wcstol_l.texi: Likewise.
11417         * doc/glibc-functions/wcstold_l.texi: Likewise.
11418         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11419         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11420         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11421
11422 2009-11-24  Bruno Haible  <bruno@clisp.org>
11423
11424         duplocale: Fix logic bug.
11425         * lib/duplocale.c: Don't include <langinfo.h>.
11426         (_NL_LOCALE_NAME): Remove macro.
11427         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11428         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11429
11430 2009-11-23  Jim Meyering  <meyering@redhat.com>
11431
11432         test-update-copyright: don't hard-code /usr/bin/perl
11433         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11434         perl to print the current year.  Gilles Espinasse reported that
11435         the replaced use of perl was hard-coded as /usr/bin/perl.
11436
11437 2009-11-23  Bruno Haible  <bruno@clisp.org>
11438
11439         duplocale: Add support for glibc 2.3.x.
11440         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11441
11442 2009-11-22  Bruno Haible  <bruno@clisp.org>
11443
11444         vasnprintf: Tiny optimization.
11445         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11446         MacOS X.
11447
11448 2009-11-22  Bruno Haible  <bruno@clisp.org>
11449
11450         Tests for module 'duplocale'.
11451         * modules/duplocale-tests: New file.
11452         * tests/test-duplocale.c: New file.
11453
11454         New module 'duplocale'.
11455         * m4/duplocale.m4: New file.
11456         * lib/locale.in.h (duplocale): New declaration.
11457         * lib/duplocale.c: New file.
11458         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11459         gl_LOCALE_H_DEFAULTS): New macros.
11460         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11461         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11462         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11463         REPLACE_DUPLOCALE.
11464         * modules/duplocale: New file.
11465         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11466
11467 2009-11-22  Bruno Haible  <bruno@clisp.org>
11468
11469         * modules/locale-tests (configure.ac): Test for newlocale function.
11470         * tests/test-locale.c: When the system has extended locale functions,
11471         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11472
11473         locale: Make locale_t available when possible.
11474         * lib/locale.in.h: Include <xlocale.h> when it exists.
11475         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11476         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11477         * modules/locale (Depends-on): Add extensions.
11478         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11479         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11480
11481 2009-11-22  Bruno Haible  <bruno@clisp.org>
11482
11483         Add comments.
11484         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11485         invocation.
11486         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11487         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11488         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11489
11490 2009-11-22  Bruno Haible  <bruno@clisp.org>
11491
11492         error: account for the possibility of freopen (stdout).
11493         * lib/error.c: Include <unistd.h>.
11494         (flush_stdout): New function, extracted from error and error_at_line.
11495         Determine stdout's fd dynamically.
11496         (error, error_at_line): Invoke flush_stdout.
11497         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11498         * modules/error (Depends-on): Add unistd.
11499
11500 2009-11-22  Bruno Haible  <bruno@clisp.org>
11501
11502         diffseq: Add comment.
11503         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11504
11505 2009-11-22  Jim Meyering  <meyering@redhat.com>
11506
11507         c-stack: avoid defining an unused static function
11508         * lib/c-stack.c (find_stack_direction): Do not define this function
11509         when it will not be used.
11510
11511         diffseq: avoid spurious gcc warnings
11512         * lib/diffseq.h (IF_LINT2): Define.
11513         (compareseq): Use it to initialize two members of "part".
11514         This avoids two used-uninitialized warnings.
11515
11516 2009-11-21  Jim Meyering  <meyering@redhat.com>
11517
11518         c-stack: avoid "ignoring return value of `write'" warning
11519         * lib/c-stack.c: Include "ignore-value.h".
11520         (die): Explicitly ignore each write return value.
11521         * modules/c-stack (Depends-on): Add ignore-value.
11522
11523 2009-11-21  Bruno Haible  <bruno@clisp.org>
11524
11525         diffseq: reduce scope of variable 'best'.
11526         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11527         variable, earlier used for two different purposes.
11528
11529 2009-11-21  Jim Meyering  <meyering@redhat.com>
11530
11531         diffseq: remove useless assignment to "best"
11532         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11533         assignment.  At that point "best" is already guaranteed to be zero.
11534
11535 2009-11-20  Eric Blake  <ebb9@byu.net>
11536
11537         build: mention ftp redirector in release announcements
11538         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11539         values that used to come from cfg.mk; mention FTP redirect URL.
11540         * build-aux/announce-gen: Mention the mirror list.
11541         Suggested by Karl Berry.
11542
11543         nanosleep: improve port to mingw
11544         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11546         LIB_NANOSLEEP, but only when needed.
11547         * modules/select (Link): Document LIBSOCKET.
11548         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11549         enough.
11550
11551         nanosleep: work around cygwin bug
11552         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11553         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11554         bug.
11555         (getnow): Delete, not needed.
11556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11557         LIB_CLOCK_GETTIME.
11558         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11559         clock-time, gettime.
11560         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11561         bug.
11562         * modules/nanosleep-tests: New test.
11563         * tests/test-nanosleep.c: New file.
11564
11565         sleep: work around cygwin bug
11566         * lib/sleep.c (rpl_sleep): Work around the bug.
11567         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11568         (gl_PREREQ_SLEEP): Delete unused macro.
11569         * modules/sleep (Depends-on): Add verify.
11570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11571         * modules/unistd (Makefile.am): Substitute witness.
11572         * lib/unistd.in.h (sleep): Update prototype.
11573         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11574         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11575         * modules/sleep-tests (Depends-on): Check for alarm.
11576
11577 2009-11-20  Jim Meyering  <meyering@redhat.com>
11578
11579         maint.mk: improve sc_prohibit_magic_number_exit
11580         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11581         so it does not match uses like System.exit(1).
11582         Add comments showing how to correct all offenders.
11583
11584 2009-11-19  Eric Blake  <ebb9@byu.net>
11585
11586         xalloc-die-tests: add missing library
11587         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11588
11589         test-xvasprintf: silence compiler warnings
11590         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11591         empty string from gcc.
11592
11593 2009-11-19  Jim Meyering  <meyering@redhat.com>
11594
11595         xfreopen: new module, from coreutils
11596         * modules/xfreopen: New module.
11597         * lib/xfreopen.c: New file.
11598         * lib/xfreopen.h: New file.
11599         * MODULES.html.sh (File stream based Input/Output"): Add it.
11600
11601 2009-11-19  Eric Blake  <ebb9@byu.net>
11602
11603         manywarnings: depend on warnings
11604         * modules/manywarnings (Depends-on): Add warnings.
11605
11606         build: avoid compiler warnings
11607         * lib/select.c (rpl_select): Delete unused variable.
11608         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11609
11610 2009-11-18  Eric Blake  <ebb9@byu.net>
11611
11612         tests: avoid false negative with --with-packager
11613         * tests/test-version-etc.sh: Discard packager information.
11614         * tests/test-argp-version-etc-1.sh: Likewise.
11615         Reported by Mike Frysinger.
11616
11617         utimens: fix regression on Solaris
11618         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11619         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11620         can only change fd timestamps via futimesat.  Instead, use an
11621         additional witness macro to avoid BSD bug.
11622         Reported by Jim Meyering.
11623
11624 2009-11-17  Eric Blake  <ebb9@byu.net>
11625
11626         usleep: use it to simplify tests
11627         * modules/stat-time-tests (Depends-on): Add usleep.
11628         (configure.ac): Drop usleep check.
11629         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11630         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11631         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11632         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11633         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11634         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11635         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11636         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11637         Likewise.
11638         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11639         * tests/test-lchown.h (nap): Likewise.
11640         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11641         * tests/test-stat-time.c (nap): Likewise.
11642         * tests/test-utimens-common.h (nap): Update comments.
11643
11644         usleep: new module
11645         * modules/usleep: New file.
11646         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11647         * lib/usleep.c (usleep): Likewise.
11648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11649         * modules/unistd (Makefile.am): Substitute witnesses.
11650         * lib/unistd.in.h (usleep): Add declaration.
11651         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11652         * MODULES.html.sh (Date and time): Likewise.
11653         * modules/usleep-tests (Depends-on): New test.
11654         * tests/test-usleep.c: New file.
11655
11656         chown: work around OpenBSD bug
11657         * lib/chown.c (rpl_chown): Work around the bug.
11658         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11659         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11661         * modules/chown (Depends-on): Add stdbool.
11662         * modules/lchown (Depends-on): Likewise.
11663         * doc/posix-functions/chown.texi (chown): Document the bug.
11664         * doc/posix-functions/lchown.texi (lchown): Likewise.
11665         * tests/test-lchown.h (test_chown): Relax test.
11666
11667         mkstemp: avoid conflict with C++ keyword template
11668         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11669         * lib/mkostemp.c (mkostemp): Likewise.
11670         * lib/mkostemps.c (mkostemps): Likewise.
11671         * lib/mkstemp.c (mkstemp): Likewise.
11672         * lib/mkstemps.c (mkstemps): Likewise.
11673
11674         xalloc-die-tests: optimize
11675         * tests/test-xalloc-die.sh: Reduce number of processes.
11676
11677 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11678
11679         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11680         patch from ludo@gnu.org (Ludovic Courtès).
11681
11682 2009-11-17  Jim Meyering  <meyering@redhat.com>
11683
11684         version-etc: use proper license string
11685         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11686         * modules/version-etc-fsf: Likewise.
11687
11688 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11689
11690         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11691         printed to stdout.  Deal with EOL differences.
11692
11693 2009-11-17  Eric Blake  <ebb9@byu.net>
11694
11695         unsetenv: work around Solaris bug
11696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11697         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11698         Reported by Jim Meyering.
11699
11700         vasnprintf: avoid compiler warnings
11701         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11702         variables.
11703         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11704
11705 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11706
11707         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11708         settings since xalloc-die is no longer the self test,
11709         xalloc-die.sh is.
11710
11711 2009-11-17  Jim Meyering  <meyering@redhat.com>
11712
11713         test-xalloc-die.sh: make the code agree with the commit log
11714         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11715         at the end, just in case you happen to have a test-xalloc-die
11716         program in some other PATH directory.
11717
11718         test-xalloc-die.sh: fix a portability bug
11719         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11720         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11721         Otherwise, argv[0] (as often seen in diagnostics) would be too
11722         system-dependent, sometimes with, and sometimes without the leading "./".
11723
11724         version-etc-fsf: relax license to LGPLv3+
11725         * modules/version-etc-fsf (License): Relax license.
11726
11727 2009-11-16  Eric Blake  <ebb9@byu.net>
11728
11729         xalloc-die-tests: avoid printing null pointer
11730         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11731         shell script.
11732         * tests/test-xalloc-die.c (program_name): Declare.
11733         * tests/test-xalloc-die.sh (tmpfiles): New file.
11734
11735         setenv, unsetenv: work around various bugs
11736         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11737         (setenv) [HAVE_SETENV]: Work around bugs.
11738         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11739         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11740         for bugs.
11741         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11742         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11744         * modules/stdlib (Makefile.am): Update substitutions.
11745         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11746         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11747         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11748         * modules/setenv-tests: New test.
11749         * modules/unsetenv-tests: Likewise.
11750         * tests/test-setenv.c: New file.
11751         * tests/test-unsetenv.c: Likewise.
11752
11753 2009-11-16  Jim Meyering  <meyering@redhat.com>
11754
11755         version-etc: relax license to LGPLv3+
11756         * modules/version-etc (License): Relax license.
11757
11758         better AC_REQUIRE expanded-before-required-warning avoidance
11759         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11760         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11761         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11762         which is no longer needed.
11763
11764 2009-11-16  Eric Blake  <ebb9@byu.net>
11765
11766         test-freading: clean up temporary file
11767         * tests/test-freading.c (main): Remove file on success, and use
11768         ASSERT more liberally.
11769         Reported by Jim Meyering.
11770
11771 2009-11-16  Jim Meyering  <meyering@redhat.com>
11772
11773         avoid new AC_REQUIRE expanded-before-required warnings
11774         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11775         merely using it.
11776         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11777         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11778
11779 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11780
11781         * tests/test-xalloc-die.c: New file.
11782         * modules/xalloc-die-tests: New file.
11783         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11784         XFAIL_TESTS so it can be appended by modules.
11785
11786 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11787
11788         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11789         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11790
11791 2009-11-14  Eric Blake  <ebb9@byu.net>
11792
11793         fnmatch: avoid compiler warning
11794         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11795         to silence compiler warning about mismatch signedness in ?:.
11796         Reported by Robert Millan.
11797
11798         intprops: add double-inclusion guard
11799         * lib/intprops.h: Allow idempotent includes.
11800         Suggested by Bruce Korb.
11801
11802         openat: detect Solaris fchownat bug
11803         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11804         penalizing glibc chownat when only lchownat is broken.
11805         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11806         trailing slash bugs.
11807         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11808         * modules/openat-tests (Files): Include more files.
11809         (Depends-on): Add mgetgroups, sleep, stat-time.
11810         (configure.ac): Add additional checks.
11811         (Makefile.am): Build new test.
11812         * tests/test-fchownat.c: New file.
11813
11814         lchown: detect Solaris and FreeBSD bug
11815         * lib/lchown.c (rpl_lchown): Work around bug.
11816         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11818         * modules/unistd (Makefile.am): Populate it.
11819         * lib/unistd.in.h (lchown): Update declaration.
11820         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11821         * modules/lchown-tests: New file.
11822         * tests/test-lchown.h (test_lchown): Likewise.
11823         * tests/test-lchown.c (main): Likewise.
11824
11825         chown: detect Solaris and FreeBSD bug
11826         * lib/chown.c (rpl_chown): Work around bug.
11827         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11828         (gl_PREREQ_CHOWN): Delete.
11829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11830         * modules/unistd (Makefile.am): Populate it.
11831         * lib/unistd.in.h (chown): Update declaration.
11832         * lib/lchown.c (chown): Update client.
11833         * modules/lchown (Depends-on): Add lstat.
11834         * doc/posix-functions/chown.texi (chown): Document the bug.
11835         * doc/posix-functions/getgroups.texi (getgroups): Document
11836         getgroups pitfall.
11837         * modules/chown-tests: New file.
11838         * tests/test-chown.h (test_chown): Likewise.
11839         * tests/test-chown.c (main): Likewise.
11840
11841 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11842
11843         gnulib-tool: correctly detect absence of m4 directories
11844         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11845
11846 2009-11-14  Jim Meyering  <meyering@redhat.com>
11847
11848         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11849         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11850
11851 2009-11-14  John W. Eaton  <jwe@gnu.org>
11852
11853         strftime.h: wrap funtion declaration in extern "C" block
11854         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11855
11856 2009-11-13  Eric Blake  <ebb9@byu.net>
11857
11858         getgroups: avoid compiler warning
11859         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11860
11861         getgroups: work around FreeBSD bug
11862         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11863         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11864         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11865         * tests/test-getgroups.c (main): Fix buffer overrun.
11866
11867         getgroups: avoid compilation failure
11868         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11869         * modules/getgroups (Depends-on): Add stdint.
11870
11871 2009-11-13  Jim Meyering  <meyering@redhat.com>
11872
11873         test-getgroups: avoid compilation failure
11874         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11875
11876 2009-11-13  Eric Blake  <ebb9@byu.net>
11877
11878         mgetgroups: new module, taken from coreutils
11879         * modules/mgetgroups: New file.
11880         * lib/mgetgroups.h: Likewise.
11881         * lib/mgetgroups.c (mgetgroups): Likewise.
11882         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11883         * MODULES.html.sh (Users and groups): Mention it.
11884
11885         getgroups: don't expose GETGROUPS_T to user
11886         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11887         an element at a time if GETGROUPS_T is wrong size.
11888         * lib/getugroups.h (getugroups): Change signature.
11889         * lib/unistd.in.h (getgroups): Likewise.
11890         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11891         signature needs fixing.
11892         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11893         AC_TYPE_GETGROUPS.
11894         * modules/group-member (Depends-on): Add getgroups.
11895         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11896         (group_member): Rely on getgroups replacement.
11897         * lib/getugroups.c (getugroups): Use gid_t.
11898         * tests/test-getgroups.c (main): Likewise.
11899         * NEWS: Mention the signature change.
11900         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11901         problem with signature.
11902         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11903         GETGROUPS_T is still useful for setgroups.
11904
11905         getgroups, getugroups: provide stubs for mingw
11906         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11907         * lib/getugroups.c (getugroups): Likewise.
11908         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11909         function.  Modernize replacement scheme.
11910         (gl_PREREQ_GETGROUPS): Delete.
11911         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11912         * modules/getgroups (configure.ac): Declare witness.
11913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11914         * modules/unistd (Depends-on): Substitute witness.
11915         * lib/unistd.in.h (getgroups): Declare replacement.
11916
11917         getgroups: avoid calling exit
11918         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11919         drop xalloc.
11920         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11921         dependencies.
11922         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11923         exiting, in the rare case of malloc failure.
11924
11925         getgroups: fix logic error
11926         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11927         has more than 20 groups.
11928         * modules/getgroups-tests: New test.
11929         * tests/test-getgroups.c: New file.
11930
11931 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11932
11933         * tests/test-base64.c: Improve.
11934
11935 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11936
11937         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11938         Blake <ebb9@byu.net>.
11939
11940 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11941
11942         * tests/test-xvasprintf.c: Add %s%s related checks.
11943
11944 2009-11-12  Eric Blake  <ebb9@byu.net>
11945
11946         version-etc: match standards.texi style
11947         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11948         and use <> only for URLs.
11949
11950 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11951
11952         fts: do not fail on a submount during traversal
11953         * lib/fts.c (fts_build): Read the stat info again after opening
11954         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11955         Original report at http://bugzilla.redhat.com/501848.
11956
11957 2009-11-12  Jim Meyering  <meyering@redhat.com>
11958
11959         bootstrap: sync from coreutils
11960         * build-aux/bootstrap (bootstrap_epilogue): New function.
11961         Use git_modules_config in one more place.  This make bootstrap's
11962         --gnulib-srcdir option more useful for testing.
11963
11964         bootstrap: generalize autoheader check
11965         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11966         AC_CONFIG_HEADERS.
11967
11968 2009-11-11  Eric Blake  <ebb9@byu.net>
11969
11970         mkfifoat: use new modules for Solaris and BSD bugs
11971         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11972         * lib/mkfifoat.c (mknodat): Split...
11973         * lib/mknodat.c (mknodat): ...into new file.
11974         * modules/mkfifoat (Files): Ship new file.
11975         (Depends-on): Add mkfifo, mknod.
11976         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11977         (Depends-on): Add symlink.
11978         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11979         redundant with test_mkfifo.h.
11980         (do_mkfifoat, do_mknodat): New helpers.
11981
11982         mknod: new module
11983         * modules/mknod: New file.
11984         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11985         * lib/mknod.c (mknod): Likewise.
11986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11987         defaults.
11988         * modules/sys_stat (Makefile.am): Substitute them.
11989         * lib/sys_stat.in.h (mknod): Declare replacement.
11990         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11991         Document it.
11992         * doc/posix-functions/mknod.texi (mknod): Likewise.
11993         * modules/mknod-tests: New test.
11994         * tests/test-mknod.c: Likewise.
11995
11996         mkfifo: new module
11997         * modules/mkfifo: New file.
11998         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11999         * lib/mkfifo.c (mkfifo): Likewise.
12000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12001         defaults.
12002         * modules/sys_stat (Makefile.am): Substitute them.
12003         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12004         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12005         Document it.
12006         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12007         * modules/mkfifo-tests: New test.
12008         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12009         from test-mkfifoat.c.
12010         * tests/test-mkfifo.c: New file.
12011
12012         readlink: detect FreeBSD bug
12013         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12014         slash on symlink.
12015         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12016         * tests/test-readlink.h (test_readlink): Enhance test.
12017
12018         symlink: detect FreeBSD bug
12019         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12020         slash on symlink.
12021         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12022         * tests/test-symlink.h (test_symlink): Enhance test.
12023
12024 2009-11-10  Eric Blake  <ebb9@byu.net>
12025
12026         link: detect FreeBSD bug
12027         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12028         symlink.
12029         * doc/posix-functions/link.texi (link): Document the bug.
12030         * tests/test-link.h (test_link): Enhance test.
12031         * tests/test-linkat.c (main): Update caller.
12032
12033         unlink, remove: detect FreeBSD bug
12034         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12035         slash on symlink.
12036         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12037         * doc/posix-functions/remove.texi (remove): Likewise.
12038         * tests/test-unlink.h (test_unlink): Enhance test.
12039         * tests/test-remove.c (main): Likewise.
12040
12041 2009-11-09  Eric Blake  <ebb9@byu.net>
12042
12043         rename: detect FreeBSD bug
12044         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12045         slash on symlink.
12046         * modules/renameat-tests (Depends-on): Add filenamecat.
12047         * tests/test-rename.h (test_rename): Allow one more errno.
12048         * tests/test-renameat.c (main): Likewise.
12049         * doc/posix-functions/rename.texi (rename): Document the bug.
12050
12051         open: detect FreeBSD bug
12052         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12053         symlink.
12054         * doc/posix-functions/open.texi (open): Document the bug.
12055         * doc/posix-functions/utimes.texi (utimes): Likewise.
12056         * tests/test-open.h (test_open): Add parameters, and test symlink
12057         handling.
12058         * tests/test-open.c (main): Adjust caller.
12059         * tests/test-fcntl-safer.c (main): Likewise.
12060         * modules/open-tests (Depends-on): Add stdbool, symlink.
12061         * modules/fcntl-safer-tests (Depends-on): Likewise.
12062         * tests/test-openat.c (main): Add test-open tests.
12063
12064         stat: detect FreeBSD bug
12065         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12066         symlink.
12067         * doc/posix-functions/stat.texi (stat): Document the bug.
12068         * tests/test-stat.h (test_stat_func): Add argument.
12069         * tests/test-stat.c (main): Adjust caller.
12070         * tests/test-fstatat.c (main): Likewise.
12071         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12072         Reported by Jim Meyering.
12073
12074 2009-11-09  James Youngman  <jay@gnu.org>
12075
12076         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12077         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12078
12079 2009-11-08  Jim Meyering  <meyering@redhat.com>
12080
12081         utimens: remove invalid futimesat call
12082         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12083         It used the file descriptor of the target file as the DIR_FD
12084         parameter and NULL as the file name.  That caused failure with
12085         errno == EFAULT on FreeBSD-8.0-rc2
12086
12087 2009-11-07  Eric Blake  <ebb9@byu.net>
12088
12089         fflush, freadseek: use fseeko, not fseek
12090         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12091         (clear_ungetc_buffer): Avoid potential problems on large files.
12092         * lib/freadseek.c (freadseek): Likewise.
12093         * modules/freadseek (Depends-on): Add fseeko.
12094         * modules/fseek (configure.ac): Set a witness.
12095         * tests/test-fflush.c (main): Use fseeko.
12096         * tests/test-fpurge.c (fseek): Disable link warning.
12097         * tests/test-freadable.c (fseek): Likewise.
12098         * tests/test-freading.c (fseek): Likewise.
12099         * tests/test-fseeko.c (fseek): Likewise.
12100         * tests/test-ftell.c (fseek): Likewise.
12101         * tests/test-ftello.c (fseek): Likewise.
12102         * tests/test-fwritable.c (fseek): Likewise.
12103         * tests/test-fwriting.c (fseek): Likewise.
12104
12105 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12106
12107         * modules/memchr (Depends-on): Drop getpagesize dependency.
12108
12109 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12110
12111         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12112         Reported by Ludovic Courtès.
12113         * build-aux/pmccabe2html: Improve example usage.
12114         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12115
12116 2009-11-06  Jim Meyering  <meyering@redhat.com>
12117
12118         do-release-commit-and-tag: New module.
12119         Automate the release-commit and tag process.
12120         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12121         * modules/do-release-commit-and-tag: New file.
12122         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12123
12124 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12125
12126         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12127         because test-select.c uses inet_pton.
12128
12129 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12130
12131         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12132         GETADDRINFO_LIB.  Bump serial number.
12133         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12134         Suggested by Eric Blake <ebb9@byu.net>.
12135
12136 2009-11-05  Eric Blake  <ebb9@byu.net>
12137
12138         strtod: detect darwin bug
12139         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12140         Reported by Leo Davis.
12141
12142         freopen-safer: new module
12143         * modules/freopen-safer: New module.
12144         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12145         * lib/freopen-safer.c (freopen_safer): New file.
12146         * lib/stdio-safer.h (freopen_safer): New declaration.
12147         * lib/stdio--.h (freopen): New override.
12148         * MODULES.html.sh (File stream based Input/Output): Mention it.
12149         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12150         freopen-safer module.
12151         * doc/posix-functions/stderr.texi (stderr): Likewise.
12152         * doc/posix-functions/stdin.texi (stdin): Likewise.
12153         * doc/posix-functions/stdout.texi (stdout): Likewise.
12154         * modules/freopen-safer-tests: New test.
12155         * tests/test-reopen-safer.c: New file.
12156
12157 2009-11-05  Jim Meyering  <meyering@redhat.com>
12158
12159         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12160         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12161
12162 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12163
12164         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12165
12166 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12167
12168         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12169
12170 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12171
12172         Fix link error.
12173         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12174         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12175
12176 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12177
12178         * tests/test-func.c: Also test value of __func__.
12179
12180 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12181
12182         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12183         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12184
12185 2009-11-05  Bruno Haible  <bruno@clisp.org>
12186
12187         Fix link error.
12188         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12190         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12191
12192 2009-11-05  Bruno Haible  <bruno@clisp.org>
12193
12194         Tests for module 'inet_pton'.
12195         * modules/inet_pton-tests: New file.
12196         * tests/test-inet_pton.c: New file.
12197
12198 2009-11-05  Bruno Haible  <bruno@clisp.org>
12199
12200         Tests for module 'inet_ntop'.
12201         * modules/inet_ntop-tests: New file.
12202         * tests/test-inet_ntop.c: New file.
12203
12204 2009-11-04  Eric Blake  <ebb9@byu.net>
12205
12206         stdlib-safer: wrap all mkstemp variants
12207         * modules/mkostemp (configure.ac): Set witness.
12208         * modules/mkostemps (configure.ac): Likewise.
12209         * modules/mkstemps (configure.ac): Likewise.
12210         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12211         (mkstemps_safer): Wrap more functions.
12212         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12213         wrapping.
12214         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12215         (mkstemps_safer): Implement the wrappers.
12216
12217         mkstemps, mkostemps: new modules
12218         * modules/mkostemps: New module.
12219         * modules/mkstemps: Likewise.
12220         * lib/mkostemps.c (mkostemps): New file.
12221         * lib/mkstemps.c (mkstemps): Likewise.
12222         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12223         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12225         * modules/stdlib (Makefile.am): Substitute them.
12226         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12227         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12228         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12229         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12230         * MODULES.html.sh (File system functions): Mention them.
12231
12232         tempname: resync from glibc
12233         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12234         same values for __GT_FILE as glibc.  Abort even when assertions
12235         are disabled.
12236         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12237         match its value otherwise.  Allow idempotent inclusion.
12238         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12239         * lib/mkostemp.c (mkostemp): Likewise.
12240         * lib/mkstemp.c (mkstemp): Likewise.
12241         * lib/tmpfile.c (tmpfile): Likewise.
12242         * NEWS: Document this.
12243
12244         utimens: fix use of futimens on older Linux
12245         * lib/utimens.c (fdutimens): Use updated, rather than original,
12246         timespec to avoid bug in older Linux kernel.
12247         Reported by Simon Josefsson.
12248
12249 2009-11-04  Bruno Haible  <bruno@clisp.org>
12250
12251         Make num_processors more flexible and consistent.
12252         * lib/nproc.h (enum nproc_query): New type.
12253         (num_processors): Add a 'query' argument.
12254         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12255         (num_processors): Add a 'query' argument. Test the value of the
12256         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12257         mingw, count the number of CPUs available for the current process.
12258         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12259         Check for sched_getaffinity and sched_getaffinity_np.
12260         * modules/nproc (Depends-on): Add c-ctype, extensions.
12261         * NEWS: Mention the change.
12262
12263 2009-11-03  Bruno Haible  <bruno@clisp.org>
12264
12265         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12266
12267 2009-11-03  Jim Meyering  <meyering@redhat.com>
12268
12269         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12270         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12271         if it is defined.
12272
12273 2009-11-02  Eric Blake  <ebb9@byu.net>
12274
12275         mktime, timegm: share common declaration
12276         * lib/mktime-internal.h: New file.
12277         * lib/mktime.c: Use it rather than open-coding a declaration.
12278         * lib/timegm.c: Likewise.
12279         * modules/mktime (Files): Ship it.
12280         * modules/timegm (Files): Likewise.
12281         Suggested by Bruno Haible.
12282
12283         test-update-copyright: update test to match script changes
12284         * tests/test-update-copyright.sh: Avoid hard-coding perl
12285         location.  Don't update *.bak created by earlier runs.
12286
12287 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12288             Simon Josefsson  <simon@josefsson.org>
12289             Bruno Haible  <bruno@clisp.org>
12290
12291         Fix link error on Solaris 8.
12292         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12293         also in libnsl. Define also INET_PTON_LIB.
12294         * modules/inet_pton (Link): New section.
12295
12296 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12297             Bruno Haible  <bruno@clisp.org>
12298
12299         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12300         * modules/inet_ntop (Link): New section.
12301         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12302
12303 2009-11-02  Eric Blake  <ebb9@byu.net>
12304
12305         maint: avoid compiler warnings in m4 macros
12306         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12307         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12308
12309 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12310
12311         * m4/pmccabe2html.m4: Remove file.
12312         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12313         function.  Change maintainer.
12314         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12315         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12316         Courtès).
12317
12318 2009-10-31  Eric Blake  <ebb9@byu.net>
12319
12320         fseeko: fix m4 regression
12321         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12322         regression from 2009-10-27.
12323         Reported by Ralf Wildenhues.
12324
12325 2009-10-31  Jim Meyering  <meyering@redhat.com>
12326
12327         inttostr: aesthetics and improved (compile-time) safety
12328         Define inttype_is_signed rather than inttype_is_unsigned,
12329         since the sole use is via "#if inttype_is_signed".
12330         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12331         inttype_is_unsigned.
12332         * lib/offtostr.c (inttype_is_signed): Likewise.
12333         * lib/uinttostr.c (inttype_is_signed): Likewise.
12334         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12335         * lib/inttostr.c (inttostr): Use verify to cross-check the
12336         inttype_is_signed value and the signedness of the actual type.
12337         * modules/inttostr (Depends-on): Add verify.
12338
12339 2009-10-30  Eric Blake  <ebb9@byu.net>
12340
12341         build: avoid compiler warnings
12342         * lib/fchmodat.c (lchmod): Mark unused variables.
12343         * lib/getopt.c (_getopt_initialize): Likewise.
12344         * lib/mktime.c (__mktime_internal): Provide prototype.
12345         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12346         older gcc that do not understand #pragma GCC diagnostic.
12347         * lib/uinttostr.c (inttype_is_unsigned): Define.
12348         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12349
12350 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12351
12352         stat: fix compilation on AIX
12353         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12354         only see struct stat64.
12355
12356 2009-10-30  Eric Blake  <ebb9@byu.net>
12357
12358         exclude: make more robust
12359         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12360         rather than masking a coding bug.
12361         Suggested by Bruno Haible.
12362
12363 2009-10-30  Jim Meyering  <meyering@redhat.com>
12364
12365         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12366         Rather than putting #!/usr/bin/perl on the first line,
12367         start with a variant of what's recommended by "man perlrun" that
12368         invokes the first "perl" program from your shell's search path.
12369         * build-aux/gitlog-to-changelog: Replace #!... as above.
12370         Add a "Local Variables" perl mode setting.
12371         Prompted by a patch from Ludovic Courtès.
12372         Improved by Eric Blake.
12373         * build-aux/useless-if-before-free: Likewise.
12374         * build-aux/announce-gen: Likewise.
12375         * build-aux/update-copyright: Likewise.
12376
12377 2009-10-29  Eric Blake  <ebb9@byu.net>
12378
12379         filenamecat-lgpl: adjust clients
12380         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12381         filenamecat.
12382         * modules/renameat (Depends-on): Likewise.
12383
12384         filenamecat: split into filenamecat-lgpl
12385         * modules/filenamecat-lgpl: New module.
12386         * modules/filenamecat (Files): Move library-safe files into
12387         filenamecat-lgpl.
12388         (Depends-on): Add filenamecat-lgpl.
12389         (configure.ac): Declare witness.
12390         * lib/filenamecat.h (file_name_concat): Only declare when using
12391         GPL module.
12392         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12393         Move...
12394         * lib/filenamecat-lgpl.c: ...into new file.
12395         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12396         (gl_FILE_NAME_CONCAT): Use it.
12397         * MODULES.html.sh (File system functions): Mention new module.
12398
12399         argp: avoid memory leak
12400         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12401         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12402         base_name, since the latter malloc()s and can call exit().
12403         Leak introduced 2006-07-03.
12404
12405         dirname-lgpl: adjust clients that don't need full dirname
12406         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12407         * modules/filenamecat (Depends-on): Likewise.
12408         * modules/linkat (Depends-on): Likewise.
12409         * modules/mkancesdirs (Depends-on): Likewise.
12410         * modules/mkdir (Depends-on): Likewise.
12411         * modules/openat (Depends-on): Likewise.
12412         * modules/savewd (Depends-on): Likewise.
12413         * modules/rename (Depends-on): Likewise.
12414         (License): Relax license.
12415         * modules/mkdir-tests (Depends-on): Drop progname.
12416         (Makefile.am): Delete unneeded LDADD.
12417         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12418
12419         dirname: split into dirname-lgpl
12420         * modules/dirname-lgpl: New module.
12421         * modules/dirname (Files): Move library-safe files into
12422         dirname-lgpl.
12423         (Depends-on): Add dirname-lgpl.
12424         (configure.ac): Declare witness.
12425         * modules/double-slash-root (License): Relax license.
12426         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12427         module.
12428         * lib/dirname.c (dir_len, mdir_name): Move...
12429         * lib/dirname-lgpl.c: ...into new file.
12430         * lib/basename.c (last_component, base_len): Move...
12431         * lib/basename-lgpl.c: ...into new file.
12432         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12433         (gl_DIRNAME): Use it.
12434         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12435         Mention new module.
12436         * modules/dirname-tests (Depends-on): Add progname.
12437         * tests/test-dirname.c (program_name): Delete.
12438
12439         mkdir: make safe for libraries
12440         * modules/mkdir (Depends-on): Drop xalloc.
12441         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12442         exit.
12443
12444         tests: avoid some compiler warnings
12445         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12446         literals.
12447         * tests/test-memchr.c (main): Avoid type mismatch.
12448         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12449         * tests/test-base64.c (main): Likewise.
12450         * tests/test-getdelim.c (main): Likewise.
12451         * tests/test-gethostname.c (main): Likewise.
12452         * tests/test-getline.c (main): Likewise.
12453         * tests/test-netinet_in.c (main): Likewise.
12454         * tests/test-select.c (open_server_socket, main): Likewise.
12455         * tests/test-select-stdin.c (main): Likewise.
12456         * tests/test-sockets.c (main): Likewise.
12457         * tests/test-strsignal.c (main): Likewise.
12458         * tests/test-sys_select.c (main): Likewise.
12459         * tests/test-sys_socket.c (main): Likewise.
12460         * tests/test-u64.c (main): Likewise.
12461         * tests/test-xfprintf-posix.c (main): Likewise.
12462         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12463
12464         sockets: avoid compiler warning
12465         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12466
12467         maint: detect usage(1) and other suspicious exits
12468         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12469
12470 2009-10-29  Jim Meyering  <meyering@redhat.com>
12471
12472         timespec: long-to-int truncation could make timespec_cmp malfunction
12473         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12474         a multiple of 2^32 nanoseconds as no difference.
12475
12476 2009-10-28  Jim Meyering  <meyering@redhat.com>
12477
12478         fprintftime: wrap macro code argument in "do {...} while(0)"
12479         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12480         cpy macro must be a statement that can be followed by a semicolon.
12481         Now that the else clause contains a comment and is hence longer
12482         than one line, I require curly braces.  That in turn requires
12483         that we wrap this code block in the standard do...while(0).
12484
12485         fprintftime: remove stray semicolon from previous change
12486         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12487
12488         fprintftime: avoid a warning about ignored fwrite return value
12489         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12490         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12491         that is unsafe.
12492         * modules/fprintftime (Depends-on): Add ignore-value.
12493
12494         exclude: avoid an unwarranted warning
12495         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12496
12497 2009-10-27  Eric Blake  <ebb9@byu.net>
12498
12499         fseek: avoid compilation failure when fflush is replaced
12500         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12501         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12502         module is in use.
12503         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12504         module is not in use; since REPLACE_FSEEK worked otherwise.
12505         (GNULIB_FTELLO): Likewise for ftell.
12506         Reported by Ian Beckwith and others.
12507
12508 2009-10-27  Bruno Haible  <bruno@clisp.org>
12509
12510         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12511         Reported by Jim Meyering.
12512
12513 2009-10-27  Jim Meyering  <jim@meyering.net>
12514             Bruno Haible  <bruno@clisp.org>
12515
12516         Avoid warning despite dropping the return value of fwrite.
12517         * lib/unicodeio.c: Include ignore-value.h.
12518         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12519         * modules/unicodeio (Depends-on): Add ignore-value.
12520
12521 2009-10-26  Eric Blake  <ebb9@byu.net>
12522
12523         areadlinkat: fix fallback path
12524         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12525         pointer and zero.
12526
12527 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12528
12529         Use a better IO block size for modern systems
12530         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12531         * lib/md2.c: Likewise.
12532         * lib/md4.c: Likewise.
12533         * lib/md5.c: Likewise.
12534         * lib/sha1.c: Likewise.
12535         * lib/sha256.c: Likewise.
12536         * lib/sha512.c: Likewise.
12537
12538 2009-10-22  Eric Blake  <ebb9@byu.net>
12539
12540         tests: avoid several compiler warnings
12541         * tests/test-getcwd.c (main): Avoid buffer underflow.
12542         * tests/test-getdate.c (main): String literals are not safe with
12543         putenv, so use setenv.  Declare unused argument.
12544         * modules/getdate-tests (Depends-on): Add setenv.
12545         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12546         problems with string literals in char *.
12547         * tests/test-hash.c (main): Avoid shadowing declaration.
12548         (insert_new): Treat string literals as char const *.
12549         * tests/test-getopt.h (test_getopt): Likewise.
12550         (getopt_loop): Alter types to minimize casting elsewhere.
12551         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12552         (test_getopt_long_posix): Likewise.
12553         (do_getopt_long): Add wrapper to minimize casting.
12554         * tests/test-atexit.c (clear_temp_file): Use void.
12555         * tests/test-areadlink-with-size.c (main): Declare unused
12556         arguments.
12557         * tests/test-areadlink.c (main): Likewise.
12558         * tests/test-areadlinkat-with-size.c (main): Likewise.
12559         * tests/test-areadlinkat.c (main): Likewise.
12560         * tests/test-canonicalize-lgpl.c (main): Likewise.
12561         * tests/test-canonicalize.c (main): Likewise.
12562         * tests/test-dirent-safer.c (main): Likewise.
12563         * tests/test-dirname.c (main): Likewise.
12564         * tests/test-dup2.c (main): Likewise.
12565         * tests/test-fchdir.c (main): Likewise.
12566         * tests/test-fcntl-h.c (main): Likewise.
12567         * tests/test-fcntl-safer.c (main): Likewise.
12568         * tests/test-fdopendir.c (main): Likewise.
12569         * tests/test-fdutimensat.c (main): Likewise.
12570         * tests/test-fflush.c (main): Likewise.
12571         * tests/test-filenamecat.c (main): Likewise.
12572         * tests/test-filevercmp.c (main): Likewise.
12573         * tests/test-fopen-safer.c (main): Likewise.
12574         * tests/test-fopen.c (main): Likewise.
12575         * tests/test-fpending.c (main): Likewise.
12576         * tests/test-fpurge.c (main): Likewise.
12577         * tests/test-freading.c (main): Likewise.
12578         * tests/test-fstatat.c (main): Likewise.
12579         * tests/test-fsync.c (main): Likewise.
12580         * tests/test-futimens.c (main): Likewise.
12581         * tests/test-getndelim2.c (main): Likewise.
12582         * tests/test-gettimeofday.c (main): Likewise.
12583         * tests/test-getopt.c (main): Likewise.
12584         * tests/test-i-ring.c (main): Likewise.
12585         * tests/test-inttypes.c (main): Likewise.
12586         * tests/test-link.c (main): Likewise.
12587         * tests/test-lstat.c (main): Likewise.
12588         * tests/test-math.c (main): Likewise.
12589         * tests/test-md5.c (main): Likewise.
12590         * tests/test-memchr2.c (main): Likewise.
12591         * tests/test-memrchr.c (main): Likewise.
12592         * tests/test-mkdir.c (main): Likewise.
12593         * tests/test-mkdirat.c (main): Likewise.
12594         * tests/test-mkfifoat.c (main): Likewise.
12595         * tests/test-open.c (main): Likewise.
12596         * tests/test-openat-safer.c (main): Likewise.
12597         * tests/test-openat.c (main): Likewise.
12598         * tests/test-quotearg.c (main): Likewise.
12599         * tests/test-rawmemchr.c (main): Likewise.
12600         * tests/test-readlink.c (main): Likewise.
12601         * tests/test-remove.c (main): Likewise.
12602         * tests/test-rename.c (main): Likewise.
12603         * tests/test-renameat.c (main): Likewise.
12604         * tests/test-rmdir.c (main): Likewise.
12605         * tests/test-sha1.c (main): Likewise.
12606         * tests/test-signal.c (main): Likewise.
12607         * tests/test-sigaction.c (main): Likewise.
12608         * tests/test-stat.c (main): Likewise.
12609         * tests/test-stat-time.c (main): Likewise.
12610         * tests/test-stddef.c (main): Likewise.
12611         * tests/test-stdint.c (main): Likewise.
12612         * tests/test-stdio.c (main): Likewise.
12613         * tests/test-stdlib.c (main): Likewise.
12614         * tests/test-strchrnul.c (main): Likewise.
12615         * tests/test-strerror.c (main): Likewise.
12616         * tests/test-string.c (main): Likewise.
12617         * tests/test-strtod.c (main): Likewise.
12618         * tests/test-strverscmp.c (main): Likewise.
12619         * tests/test-symlink.c (main): Likewise.
12620         * tests/test-symlinkat.c (main): Likewise.
12621         * tests/test-sys_stat.c (main): Likewise.
12622         * tests/test-sys_time.c (main): Likewise.
12623         * tests/test-time.c (main): Likewise.
12624         * tests/test-unistd.c (main): Likewise.
12625         * tests/test-unlink.c (main): Likewise.
12626         * tests/test-unlinkat.c (main): Likewise.
12627         * tests/test-utimens.c (main): Likewise.
12628         * tests/test-utimensat.c (main): Likewise.
12629         * tests/test-version-etc.c (main): Likewise.
12630         * tests/test-wchar.c (main): Likewise.
12631         * tests/test-wctype.c (main): Likewise.
12632         * tests/test-xprintf-posix.c (main): Likewise.
12633         * tests/test-posixtm.c (main): Likewise.
12634         (STREQ): Delete unused macro.
12635         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12636         shadowed variables.
12637         * tests/test-memchr.c (main): Likewise.
12638
12639 2009-10-21  Eric Blake  <ebb9@byu.net>
12640
12641         areadlinkat: avoid failure on older glibc
12642         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12643         rather than mis-comparing 0 against FUNC_RESULT of char*.
12644
12645 2009-10-21  Bruno Haible  <bruno@clisp.org>
12646
12647         * modules/stpncpy (License): Relicense under LGPLv2+.
12648         Reported by David Lutterkort <lutter@redhat.com>.
12649
12650 2009-10-20  Eric Blake  <ebb9@byu.net>
12651
12652         utimensat: work around Solaris 9 bug
12653         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12654         has trailing slash bugs.
12655         * tests/test-lutimens.h (test_lutimens): Enhance test.
12656         * tests/test-utimens.h (test_utimens): Likewise.
12657         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12658         * doc/posix-functions/utimes.texi (utimes): Likewise.
12659         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12660         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12661         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12662         * doc/posix-functions/futimens.texi (futimens): Likewise.
12663
12664         fdutimensat: new module
12665         * modules/fdutimensat: New file.
12666         * lib/fdutimensat.c (fdutimensat): Likewise.
12667         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12668         * MODULES.html.sh (File system functions): Mention module.
12669         * modules/fdutimensat-tests: New test.
12670         * tests/test-fdutimensat.c: Likewise.
12671
12672         doc: regenerate INSTALL
12673         * doc/INSTALL: Reflect recent autoconf update.
12674         * doc/INSTALL.ISO: Likewise.
12675         * doc/INSTALL.UTF-8: Likewise.
12676
12677 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12678
12679         acl: warn if ACL support is not detected
12680         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12681
12682 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12683
12684         * lib/nproc.h: Add extern "C" block for C++.
12685
12686 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12687             Bruno Haible  <bruno@clisp.org>
12688
12689         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12690         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12691         * doc/posix-functions/isalpha.texi: Likewise.
12692         * doc/posix-functions/isblank.texi: Likewise.
12693         * doc/posix-functions/iscntrl.texi: Likewise.
12694         * doc/posix-functions/isdigit.texi: Likewise.
12695         * doc/posix-functions/isgraph.texi: Likewise.
12696         * doc/posix-functions/islower.texi: Likewise.
12697         * doc/posix-functions/isprint.texi: Likewise.
12698         * doc/posix-functions/ispunct.texi: Likewise.
12699         * doc/posix-functions/isspace.texi: Likewise.
12700         * doc/posix-functions/isupper.texi: Likewise.
12701         * doc/posix-functions/isxdigit.texi: Likewise.
12702
12703 2009-10-18  Bruno Haible  <bruno@clisp.org>
12704
12705         Tests for module 'isblank'.
12706         * modules/isblank-tests: New file.
12707         * tests/test-isblank.c: New file.
12708
12709         New module 'isblank'.
12710         * lib/isblank.c: New file.
12711         * m4/isblank.m4: New file.
12712         * modules/isblank: New file.
12713         * doc/posix-functions/isblank.texi: Mention the new module.
12714
12715 2009-10-18  Bruno Haible  <bruno@clisp.org>
12716
12717         New module 'ctype'.
12718         * lib/ctype.in.h: New file.
12719         * m4/ctype.m4: New file.
12720         * modules/ctype: New file.
12721         * doc/posix-headers/ctype.texi: Mention the new module.
12722
12723 2009-10-18  Jim Meyering  <meyering@redhat.com>
12724
12725         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12726         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12727         right after its initialization, rather than farther down.
12728         Keeping these in close proximity makes it easier to ensure
12729         that each such variable is initialized.  E.g.,
12730
12731             LIB_CLOCK_GETTIME=
12732             AC_SUBST([LIB_CLOCK_GETTIME])
12733
12734         This change also increments these serial numbers.
12735         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12736         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12738
12739 2009-10-18  Bruno Haible  <bruno@clisp.org>
12740
12741         Don't let environment variables perturb build.
12742         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12743         (gl_PREREQ_GETHRXTIME): ... not here.
12744
12745 2009-10-18  Bruno Haible  <bruno@clisp.org>
12746
12747         Avoid symlink attack in localcharset module.
12748         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12749         (O_NOFOLLOW): Define fallback.
12750         (get_charset_aliases): Don't open the file if it is a symbolic link.
12751         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12752         gl_FCNTL_H.
12753         (gl_FCNTL_H): Require it.
12754         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12755         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12756         Reported by Fergal Glynn <fglynn@veracode.com>.
12757
12758 2009-10-18  Bruno Haible  <bruno@clisp.org>
12759
12760         Implement nproc for mingw.
12761         * lib/nproc.c: Include <windows.h>
12762         (num_processors): On native Windows platforms, try GetSystemInfo.
12763
12764 2009-10-18  Bruno Haible  <bruno@clisp.org>
12765
12766         Implement nproc for IRIX.
12767         * lib/nproc.c: Include <sys/sysmp.h>.
12768         (num_processors): On IRIX systems, try sysmp.
12769         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12770
12771 2009-10-18  Bruno Haible  <bruno@clisp.org>
12772
12773         Implement nproc for HP-UX.
12774         * lib/nproc.c: Include <sys/pstat.h>
12775         (num_processors): On HP-UX systems, try pstat_getdynamic.
12776         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12777         pstat_getdynamic.
12778
12779 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12780             Bruno Haible  <bruno@clisp.org>
12781
12782         Implement nproc for NetBSD, OpenBSD.
12783         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12784         (ARRAY_SIZE): New macro.
12785         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12786         * m4/nproc.m4: New file.
12787         * modules/nproc (Files): Add m4/nproc.m4.
12788         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12789         (Makefile.am): Instead, augment lib_SOURCES.
12790
12791 2009-10-18  Bruno Haible  <bruno@clisp.org>
12792
12793         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12794         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12795         sys/param.h.
12796
12797 2009-10-16  Eric Blake  <ebb9@byu.net>
12798
12799         utimensat: new module
12800         * modules/utimensat: New file.
12801         * lib/utimensat.c (utimensat): Likewise.
12802         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12803         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12804         so we can work around Linux bugs.
12805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12806         * modules/sys_stat (Makefile.am): Substitute them.
12807         * lib/sys_stat.in.h (utimensat): Declare it.
12808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12809         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12810         * modules/utimensat-tests: New test.
12811         * tests/test-utimensat.c: Likewise.
12812
12813         utimens: let lutimens work on non-symlinks
12814         * lib/utimens.c (lutimens): Fall back to utimens rather than
12815         failing with ENOSYS, when file is not a symlink.
12816         (utimens): Reduce redirection.
12817         * tests/test-lutimens.h (test_lutimens): Update test to cover
12818         non-symlinks.
12819         * tests/test-utimens.h (test_utimens): Update test to cover
12820         symlinks.
12821         * tests/test-utimens.c (main): Update caller.
12822
12823         utimens: cache whether utimensat syscall works
12824         * lib/utimens.c (utimensat_works_really): New cache variable.
12825         (fdutimens, lutimens): Use it to avoid failing syscall.
12826
12827         test-stat-time, test-utimens: improve portability
12828         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12829         ext4 on alpha, and for cygwin.
12830         * tests/test-utimens-common.h: New file.
12831         (nap): Factor delays into single function.
12832         * tests/test-lutimens.h (test_lutimens): Use new header.
12833         * tests/test-futimens.h (test_futimens): Likewise.
12834         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12835         timestamps to occur from same machine, as was done previously for
12836         test_utimens.
12837         * modules/utimens-tests (Files): Ship new file.
12838         * modules/futimens-tests (Files): Likewise.
12839         Reported in part by Jim Meyering.
12840
12841         sys_stat: sort replacement declarations
12842         * lib/sys_stat.in.h: Sort declarations.
12843         * lib/futimens.c (futimens): Fix typo.
12844
12845 2009-10-15  Jim Meyering  <meyering@redhat.com>
12846
12847         don't let environment settings perturb build
12848         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12849         could cause a configure-time and/or build-time malfunction.
12850         Typically, a configure-time function-in-library test is performed
12851         via code like this:
12852
12853           LIB_VAR=
12854           AC_SUBST([LIB_VAR])
12855           prefix_saved_LIBS=$LIBS
12856             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12857                        [test "$ac_cv_search_FUNC" = "none required" ||
12858                         LIB_VAR=$ac_cv_search_FUNC])
12859           LIBS=$prefix_saved_LIBS
12860
12861         However, in each of the files affected by this change, the LIB_VAR=
12862         initialization was omitted.  Thus, when set in the environment, its
12863         value would propagate into generated Makefiles when FUNC is not found
12864         in LIB_NAME.
12865         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12866         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12868
12869 2009-10-14  Eric Blake  <ebb9@byu.net>
12870
12871         fchdir: avoid infinite recursion in mingw
12872         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12873         recursing.
12874
12875         test-stat-time: port to mingw
12876         * tests/test-stat-time.c (force_unlink): Return a value.
12877         (test_ctime) [W32]: Fix compilation error.
12878         (nap): Don't call usleep with too large an argument.  Use
12879         force_unlink.
12880         * doc/pastposix-functions/usleep.texi (usleep): Document the
12881         portability issue.
12882
12883 2009-10-13  Jim Meyering  <meyering@redhat.com>
12884
12885         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12886         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12887         * modules/pipe-filter-ii: Likewise.
12888         * modules/sys_socket-tests: Likewise.
12889         * modules/tsearch-tests: Likewise.
12890         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12891         (check): Depend on it.
12892
12893 2009-10-12  Eric Blake  <ebb9@byu.net>
12894
12895         utimens-tests: port to NFS file systems
12896         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12897         comparisons to avoid spurious failures from timestamp drift
12898         between NFS machines.
12899
12900 2009-10-12  Eric Blake  <ebb9@byu.net>
12901
12902         stat-time-tests: minor cleanups
12903         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12904         * tests/test-stat-time.c (nap): Separate assignment from call.
12905         Suggested by Paolo Bonzini and Bruno Haible.
12906
12907         sys_stat: guarantee struct timespec
12908         * lib/sys_stat.in.h (includes): Always include <time.h>
12909         * modules/sys_stat (Depends-on): Add time.
12910         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12911         mode_t permission values.
12912         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12913         get at subsecond timestamps.
12914
12915 2009-10-10  Eric Blake  <ebb9@byu.net>
12916
12917         futimens: new module
12918         * modules/futimens: New file.
12919         * lib/futimens.c (futimens): Likewise.
12920         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12921         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12922         we can work around Linux bugs.
12923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12924         * modules/sys_stat (Makefile.am): Substitute them.
12925         * lib/sys_stat.in.h (futimens): Declare it.
12926         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12927         * doc/posix-functions/futimens.texi (futimens): Likewise.
12928         * modules/futimens-tests: New test.
12929         * tests/test-futimens.c: Likewise.
12930
12931         utimens: introduce fdutimens
12932         * lib/utimens.h (fdutimens): New prototype.
12933         * lib/utimens.c (gl_futimens): Move guts...
12934         (fdutimens): ...to new interface.
12935         * tests/test-utimens.c (do_fdutimens): Use it.
12936
12937         utimens: add UTIME_NOW and UTIME_OMIT support
12938         * lib/utimens.c (validate_timespec, update_timespec): New helper
12939         functions.
12940         (gl_futimens, lutimens): Use them.
12941         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12942         stdbool, sys_stat.
12943         (Link): Mention resulting library dependency.
12944         * modules/utimecmp (Link): Likewise.
12945         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12946         (Makefile.am): Pick up library dependency.
12947         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12948         definition.
12949         * tests/test-sys_stat.c: Test the definitions.
12950         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12951         * NEWS: Document library dependency.
12952
12953         utimecmp: support symlink timestamps
12954         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12955         hashing when possible.  Use pathconf when available.
12956         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12957         * modules/utimecmp (Depends-on): Add lstat.
12958
12959         utimens: add lutimens interface
12960         * lib/utimens.c (lutimens): New function.
12961         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12962         * lib/utimens.h (lutimens): Declare new interface.
12963         * tests/test-utimens.c (main): Enhance test.
12964         * tests/test-lutimens.h (test_lutimens): New file.
12965         * modules/utimens-tests (Files): Distribute it.
12966         (Depends-on): Add symlink.
12967         (configure.ac): Check for usleep.
12968
12969         utimens: validate futimens usage
12970         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12971         fewer syscalls on failure later on.  Avoid compiler warning on
12972         mingw.
12973         * modules/utimens (Depends-on): Add dup2.
12974
12975         utimens: add test
12976         * modules/utimens-tests: New test.
12977         * tests/test-utimens.h: New file.
12978         * tests/test-futimens.h: Likewise.
12979         * tests/test-utimens.c: Likewise.
12980
12981         doc: mention timestamp portability issues
12982         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12983         instead.
12984         * doc/posix-functions/utime.texi (utime): Likewise.
12985         * doc/posix-functions/utimes.texi (utimes): Likewise.
12986         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12987         instead.
12988         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12989         module.
12990         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12991         Mention weakness with symlink timestamps.
12992         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12993         to utimensat/futimens instead.
12994         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12995
12996         test-dup2: enhance test
12997         * tests/test-dup2.c (main): Also check AT_FDCWD.
12998
12999         test-stat-time: avoid more spurious failures
13000         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13001         xfs; and avoid race if the two timestamps cross quantization edge.
13002
13003         relocatable: prefer 'file system' over 'filesystem'
13004         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13005         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13006         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13007         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13008         * lib/relocatable.c (compute_curr_prefix): Likewise.
13009
13010 2009-10-10  Jim Meyering  <meyering@redhat.com>
13011
13012         stat-time-tests: check for the usleep function
13013         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13014
13015 2009-10-10  Bruno Haible  <bruno@clisp.org>
13016
13017         * modules/xnanosleep: Put the Link section after the Include section.
13018
13019 2009-10-09  Eric Blake  <ebb9@byu.net>
13020
13021         dup2: work around FreeBSD 6.1 bug
13022         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13023         * doc/posix-functions/dup2.texi (dup2): Document it.
13024         Reported by Nelson H. F. Beebe and Jim Meyering.
13025
13026         test-stat-time: port to buggy NFS clients
13027         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13028         (test_ctime): Also skip test if mtime and ctime are skewed.
13029
13030         maint: prefer 'file system' over 'filesystem'
13031         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13032         * doc/posix-functions/lstat.texi (lstat): Likewise.
13033         * lib/file-has-acl.c (file_has_acl): Likewise.
13034         * lib/fwriteerror.c [TEST]: Likewise.
13035         * tests/test-areadlink.h (test_areadlink): Likewise.
13036         * tests/test-areadlinkat-with-size.c (main): Likewise.
13037         * tests/test-areadlinkat.c (main): Likewise.
13038         * tests/test-canonicalize-lgpl.c (main): Likewise.
13039         * tests/test-canonicalize.c (main): Likewise.
13040         * tests/test-fstatat.c (main): Likewise.
13041         * tests/test-linkat.c (main): Likewise.
13042         * tests/test-lstat.h (test_lstat_func): Likewise.
13043         * tests/test-mkdir.h (test_mkdir): Likewise.
13044         * tests/test-readlink.h (test_readlink): Likewise.
13045         * tests/test-remove.c (main): Likewise.
13046         * tests/test-rename.h (test_rename): Likewise.
13047         * tests/test-renameat.c (main): Likewise.
13048         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13049         * tests/test-symlink.h (test_symlink): Likewise.
13050         * tests/test-symlinkat.c (main): Likewise.
13051         * tests/test-unlink.h (test_unlink_func): Likewise.
13052         * tests/test-unlinkat.c (main): Likewise.
13053
13054         maint: make realtime library usage explicit
13055         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13056         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13057         * modules/settime (Link): Likewise.
13058         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13059
13060         test-stat-time: speed up execution
13061         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13062         warning on mingw.
13063         (nap): New helper function.
13064         (prepare_test): Use it to reduce sleep time.
13065         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13066         execution.
13067         * modules/stat-time-tests (configure.ac): Check for usleep.
13068
13069 2009-10-09  Jim Meyering  <meyering@redhat.com>
13070
13071         selinux-h: always use getfilecon wrappers
13072         * lib/getfilecon.c: New file.
13073         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13074         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13075         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13076         (fgetfilecon): Provide a stub.
13077         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13078         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13079         file unconditionally.
13080         When <selinux/selinux.h> is found, arrange to use wrappers.
13081         * modules/selinux-h (Files): Add getfilecon.c.
13082         (Makefile.am): Substitute include-next-related bits
13083         into the now-always-generated selinux/selinux.h file.
13084         * doc/glibc-functions/lgetfilecon.texi: New file.
13085         * doc/glibc-functions/fgetfilecon.texi: New file.
13086         * doc/glibc-functions/getfilecon.texi: New file.
13087         * doc/glibc-functions/getfilecon-desc.texi: New file.
13088         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13089         which to pull in the new files.
13090         * MODULES.html.sh (Misc): Add selinux-h.
13091
13092 2009-10-08  Jim Meyering  <meyering@redhat.com>
13093
13094         unistd: fix comment typo
13095         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13096
13097 2009-10-08  Eric Blake  <ebb9@byu.net>
13098
13099         areadlink: use SIZE_MAX consistently
13100         * modules/areadlink (Depends-on): Add stdint.
13101         * modules/areadlink-with-size (Depends-on): Likewise.
13102         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13103         gives NULL; drop sys/types, since unistd gives size_t; and add
13104         stdint for SIZE_MAX.
13105         (SIZE_MAX): Rely on headers.
13106         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13107         and add stdint.
13108         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13109         (SIZE_MAX): Likewise.
13110         (INITIAL_BUF_SIZE): Turn into enum.
13111         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13112
13113 2009-10-08  Jim Meyering  <meyering@redhat.com>
13114
13115         areadlinkat: avoid compilation failure
13116         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13117         Fix typo in comment.
13118
13119 2009-10-07  Eric Blake  <ebb9@byu.net>
13120
13121         areadlinkat-with-size: new module
13122         * modules/areadlinkat-with-size: New module.
13123         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13124         * lib/areadlink.h (areadlinkat): Declare it.
13125         * MODULES.html.sh (File system functions): Mention it.
13126         * modules/areadlinkat-with-size-tests: New test.
13127         * tests/test-areadlinkat-with-size.c: New file.
13128
13129         xreadlinkat: new module
13130         * modules/xreadlinkat: New module.
13131         * lib/xreadlinkat.c (xreadlinkat): New file.
13132         * lib/xreadlink.h (xreadlinkat): Declare it.
13133         * MODULES.html.sh (File system functions): Mention it.
13134
13135         areadlinkat: new module
13136         * lib/at-func.c (FUNC_FAIL): New define.
13137         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13138         * modules/areadlinkat: New module.
13139         * lib/linkat.c (areadlinkat): Move...
13140         * lib/areadlinkat.c (areadlinkat): ...to new file.
13141         * lib/areadlink.h (areadlinkat): Declare it.
13142         * modules/linkat (Depends-on): Add areadlinkat.
13143         * MODULES.html.sh (File system functions): Mention it.
13144         * modules/areadlinkat-tests: New test.
13145         * tests/test-areadlinkat.c: New file.
13146
13147         areadlink, areadlink-with-size: add tests
13148         * modules/areadlink-tests: New test.
13149         * modules/areadlink-with-size-tests: Likewise.
13150         * tests/test-areadlink.h: New file.
13151         * tests/test-areadlink.c: Likewise.
13152         * tests/test-areadlink-with-size.c: Likewise.
13153
13154         maint: minor cleanups
13155         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13156         _UNUSED_PARAMETER_ instead.
13157         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13158         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13159         * modules/linkat-tests (Files): Distribute test-link.h.
13160
13161         openat, utimens: whitespace cleanup
13162         * lib/openat.c: Prefer space throughout, rather than mix of 8
13163         spaces vs. tabs.
13164         * lib/at-func.c: Likewise.
13165         * lib/utimens.c: Likewise.
13166
13167         openat: avoid using wrong fd
13168         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13169         working directory chooses same fd.
13170         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13171
13172         mkdir, mkdirat: fix cygwin 1.5.x bug
13173         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13174         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13175         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13176         bug.
13177         (gl_PREREQ_MKDIR): Delete unused macro.
13178         * modules/mkdir (Files): Track file rename.
13179         (configure.ac): Update macro name.
13180         * modules/openat (Depends-on): Add mkdir.
13181         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13182
13183         mkdir, mkdirat: add tests
13184         * modules/mkdir-tests: New test.
13185         * tests/test-mkdir.h: New file.
13186         * tests/test-mkdir.c: Likewise.
13187         * tests/test-mkdirat.c: Likewise.
13188         * modules/openat-tests (Files): Add new files.
13189         (Makefile.am): Run new test.
13190
13191 2009-10-06  Eric Blake  <ebb9@byu.net>
13192
13193         doc: tweak *at function documentation
13194         * doc/posix-functions/faccessat.texi (faccessat): Mention
13195         known issue with replacement.
13196         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13197         * doc/posix-functions/linkat.texi (linkat): Likewise.
13198         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13199         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13200         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13201         * doc/posix-functions/renameat.texi (renameat): Likewise.
13202         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13203
13204         openat: fix GNU/Hurd bug in unlinkat
13205         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13206         broken.
13207         * doc/posix-functions/unlink.texi (unlink): Document this.
13208         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13209
13210         fdopendir: fix GNU/Hurd bug
13211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13212         allowing non-directory fds.
13213         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13214         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13215         * modules/dirent (Makefile.am): Substitute it.
13216         * lib/dirent.in.h (fdopendir): Declare replacement.
13217         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13218         * tests/test-fdopendir.c (main): Test something other than
13219         /dev/null, since on Hurd that behaves like a directory.
13220
13221         test-symlink: port to GNU/Hurd
13222         * tests/test-symlink.h (test_symlink): Relax expected errno.
13223
13224         doc: tweak more cygwin information
13225         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13226         now compatible with glibc.
13227         * doc/posix-functions/getopt.texi (getopt): Likewise.
13228
13229         getopt-gnu: add another test
13230         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13231         guarantee behavior relied on by m4.
13232         * tests/test-getopt.c (main): Use it.
13233         * modules/getopt-posix-tests (Depends-on): Add setenv.
13234         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13235
13236         getopt: fix compilation on darwin
13237         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13238         include.
13239         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13240         Reported by Ludovic Courtès.
13241
13242 2009-10-06  Bruno Haible  <bruno@clisp.org>
13243
13244         * modules/size_max (Description): Discourage its use.
13245         Reported by Simon Josefsson.
13246
13247 2009-10-06  Jim Meyering  <meyering@redhat.com>
13248
13249         linkat: avoid compilation failure
13250         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13251
13252 2009-10-05  Eric Blake  <ebb9@byu.net>
13253
13254         linkat: support Linux 2.6.17
13255         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13256         linkat on Linux, but allow cache variable override.
13257         * lib/linkat.c (rpl_linkat): Define override.
13258         * modules/linkat (Depends-on): Add symlinkat.
13259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13260         * modules/unistd (Makefile.am): Substitute it.
13261         * lib/unistd.in.h (linkat): Declare replacement.
13262         Reported by Pádraig Brady.
13263
13264         quotearg: port test to systems with C.UTF-8 locale
13265         * tests/test-quotearg.c (struct result_strings): Add another
13266         member, differentiating between C.ASCII and C.UTF-8 handling.
13267         (compare_strings): Add parameter.
13268         (main): Adjust all callers.
13269
13270         getopt: avoid clash with FreeBSD _getopt_internal
13271         * lib/getopt.in.h (_getopt_internal): Override the name.
13272         * lib/getopt_int.h (includes): Pick up any overrides.
13273         Reported by Reuben Thomas.
13274
13275         hash: allow C89 compilation
13276         * lib/hash.c (check_tuning): Move declaration before statement.
13277         Reported by Reuben Thomas.
13278
13279 2009-10-05  Karl Berry  <karl@gnu.org>
13280
13281         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13282
13283 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13284             Bruno Haible  <bruno@clisp.org>
13285
13286         * lib/uname.c (uname): Use a table-driven algorithm to compute
13287         Windows NT versions.
13288
13289 2009-10-04  Bruno Haible  <bruno@clisp.org>
13290
13291         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13292         program_invocation_short_name.
13293         * modules/progname (configure.ac): Test for presence of
13294         program_invocation_short_name.
13295         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13296
13297 2009-10-04  Bruno Haible  <bruno@clisp.org>
13298
13299         * lib/progname.c (set_program_name): Fix comment.
13300         Reported by Jim Meyering.
13301
13302 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13303             Bruno Haible  <bruno@clisp.org>
13304
13305         * lib/uname.c: Include <string.h>.
13306         (uname): Do only one call to GetVersionEx in the common case.
13307
13308 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13309             Bruno Haible  <bruno@clisp.org>
13310
13311         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13312         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13313         (uname): Add support for Windows CE and various non-x86 CPU types.
13314
13315 2009-10-03  Bruno Haible  <bruno@clisp.org>
13316
13317         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13318         invocation to tests/configure.ac.
13319         Reported by Ian Beckwith <ianb@erislabs.net>.
13320
13321 2009-10-02  Eric Blake  <ebb9@byu.net>
13322
13323         fchdir: avoid compiler warning
13324         * lib/fchdir.c (canonicalize_file_name)
13325         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13326
13327         test-open: support mingw errno values
13328         * tests/test-open.h (test_open): Relax test.
13329         * tests/test-fopen.h (test_fopen): Likewise.
13330         * tests/test-openat-safer.c (main): Likewise.
13331
13332         open: fix opening directory on mingw
13333         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13334
13335         test-open: on GNU/Hurd, /dev/null is a directory
13336         * tests/test-fopen.h (main): Rename...
13337         (test_fopen): ...to this.  Use a guaranteed non-directory when
13338         confirming open behavior on trailing slash.
13339         * tests/test-openat-safer.c (main): Likewise.
13340         * tests/test-open.h (main): Likewise....
13341         (test_open): ...to this.
13342         * tests/test-fopen.c (main): Adjust caller.
13343         * tests/test-fopen-safer.c (main): Likewise.
13344         * tests/test-open.c (main): Likewise.
13345         * tests/test-fcntl-safer.c (main): Likewise.
13346         Reported by Samuel Thibault.
13347
13348         rename, fchdir: don't ignore chdir failure
13349         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13350         * lib/rename.c (rpl_rename) [W32]: Likewise.
13351         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13352         an empty destination directory if source cannot be renamed,
13353         although there is still possibility for failure.
13354         * doc/posix-functions/rename.texi (rename): Document the race.
13355         Reported by Jim Meyering.
13356
13357         maint: cleanup whitespace in recent commits
13358         * lib/rename.c (rpl_rename): Remove tabs.
13359         * tests/test-link.h (test_link): Likewise.
13360         * lib/fchdir.c (get_name): Likewise.
13361         Reported by Jim Meyering.
13362
13363 2009-10-02  Ben Pfaff  <blp@gnu.org>
13364
13365         relocatable-prog-wrapper: Add missing dependency on
13366         double-slash-root.
13367         * modules/relocatable-prog-wrapper: Add dependency.
13368         Reported by Ian Beckwith <ianb@erislabs.net>.
13369
13370 2009-10-02  Eric Blake  <ebb9@byu.net>
13371
13372         renameat: fix Solaris bugs
13373         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13374         needed fixing.
13375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13376         * modules/stdio (Makefile.am): Substitute it.
13377         * lib/stdio.in.h (renameat): Declare replacement.
13378         * lib/renameat.c (rpl_renameat): Implement fix.
13379
13380         renameat: new module
13381         * modules/renameat: New file.
13382         * lib/renameat.c (renameat): Likewise.
13383         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13385         * modules/stdio (Makefile.am): Substitute them.
13386         * lib/stdio.in.h (renameat): Declare it.
13387         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13388         * doc/posix-functions/renameat.texi (renameat): Likewise.
13389         * modules/renameat-tests: New test.
13390         * tests/test-renameat.c: Likewise.
13391
13392         rename: fix mingw bugs
13393         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13394         directory overwrite bugs.
13395
13396         rename: fix another cygwin 1.5 bug
13397         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13398         checks.
13399         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13400         unnecessary cygwin workarounds.  Also work around bug with moving
13401         full directory onto an empty one.
13402         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13403
13404         rename-dest-slash: merge into rename module
13405         * modules/rename-dest-slash (Status): Mark obsolete.
13406         (Depends-on): Add rename.
13407         (Files): Let rename do it all.
13408         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13409         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13410         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13411         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13412         * lib/rename.c (rpl_rename): Update comments.
13413
13414         rename: fix cygwin 1.5.x bugs
13415         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13416         * lib/rename.c (rpl_rename): Work around them.
13417         * modules/rename (Depends-on): Add same-inode.
13418
13419         rename: fix Solaris 10 bug
13420         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13421         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13422         was the only bug.
13423
13424         rename: fix Solaris 9 bug
13425         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13426         on non-directory.  Avoid calling exit.
13427         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13428         strdup.
13429         * modules/rename-tests (Depends-on): Drop lstat.
13430         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13431         (gl_PREREQ_RENAME): Delete unused macro.
13432
13433         rename-dest-slash: fix NetBSD bug
13434         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13435         links.
13436         * modules/rename-dest-slash (Depends-on): Add same-inode.
13437
13438         rename-tests: new test, exposes several platform bugs
13439         * modules/rename-tests: New file.
13440         * tests/test-rename.h: Likewise.
13441         * tests/test-rename.c: Likewise.
13442         * doc/posix-functions/rename.texi (rename): Improve documentation,
13443         including bugs that will eventually be fixed in gnulib.
13444
13445 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13446
13447         * lib/uname.c: Include <stdlib.h>
13448         (uname): Assume version info is available.
13449
13450 2009-10-02  Jim Meyering  <meyering@redhat.com>
13451
13452         gnu-web-doc-update: correct --help output
13453         * build-aux/gnu-web-doc-update: Make --help output relevant.
13454
13455         gnu-web-doc-update: add standard options
13456         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13457
13458         gnu-web-doc-update: New module.
13459         Use this script to automatically update the on-line web documentation
13460         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13461         * modules/gnu-web-doc-update: New file, from coreutils.
13462         * build-aux/gnu-web-doc-update: New script.
13463
13464 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13465
13466         link: LoadLibrary is not needed.
13467         * lib/link.c: Use GetModuleHandle.
13468
13469 2009-10-01  Eric Blake  <ebb9@byu.net>
13470
13471         getopt: bump serial number
13472         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13473         change.
13474
13475         tests: tighten link, rmdir, and remove tests
13476         * tests/test-link.h (includes): No need to use <config.h> here.
13477         Clean up if directory hard link was created, otherwise test for
13478         trailing '.'.
13479         * tests/test-linkat.c (main): Simplify.
13480         * tests/test-remove.c (main): Enhance test for trailing '.'.
13481         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13482
13483 2009-10-01  Jim Meyering  <meyering@redhat.com>
13484
13485         maint.mk: requiring "make major" was annoying, for a "minor" release.
13486         What is intended is "stable", to contrast with alpha and beta,
13487         so require "make stable", not "make major".
13488         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13489         (get_tool_versions): Likewise.
13490         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13491
13492 2009-09-30  Ben Pfaff  <blp@gnu.org>
13493
13494         Fix broken build of replacement for Windows tmpfile().
13495         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13496         flags argument added along with the 'mkostemp' module.
13497
13498 2009-09-28  Bruno Haible  <bruno@clisp.org>
13499
13500         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13501         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13502         to 'remove_elt'.
13503         (gl_list_remove): Update.
13504         * lib/gl_list.c (gl_list_remove): Update.
13505         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13506         to 'remove_elt'.
13507         (gl_oset_remove): Update.
13508         * lib/gl_list.c (gl_oset_remove): Update.
13509         Reported by Eric Blake.
13510
13511 2009-09-28  Eric Blake  <ebb9@byu.net>
13512
13513         doc: mention yet more cygwin 1.7 status
13514         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13515         cygwin.
13516         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13517         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13518
13519         argp: fix test failure
13520         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13521         that are not upper-case.  Pass correct range to tolower.
13522
13523 2009-09-27  Jim Meyering  <meyering@redhat.com>
13524
13525         test-yesno: work around sparc-dash here-document infelicity
13526         Without this change, the literal \177 byte in a here document
13527         would make dash 0.5.5.1-3 access uninitialized memory.
13528         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13529         Instead, use a marker, "@", and filter through tr to create the desired
13530         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13531
13532 2009-09-27  Bruno Haible  <bruno@clisp.org>
13533
13534         Disable untested support for new flavours of ACLs on AIX.
13535         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13536         progress.
13537         * lib/set-mode-acl.c (qset_acl): Likewise.
13538
13539 2008-12-07  Bruno Haible  <bruno@clisp.org>
13540
13541         Add support for new flavours of ACLs on AIX. (Untested.)
13542         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13543         (file_has_acl): Add support for newer AIX.
13544         * lib/set-mode-acl.c (qset_acl): Likewise.
13545         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13546         Rainer Tammer <tammer@tammer.net>.
13547
13548 2009-09-26  Eric Blake  <ebb9@byu.net>
13549
13550         argp: fix compilation of getopt
13551         * lib/getopt.in.h (includes): Use different guard than glibc.
13552         Reported by Sergey Poznyakoff.
13553
13554         doc: mention more cygwin 1.7 status
13555         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13556         bug.
13557         * doc/posix-functions/execl.texi (execl): Likewise.
13558         * doc/posix-functions/execle.texi (execle): Likewise.
13559         * doc/posix-functions/execlp.texi (execlp): Likewise.
13560         * doc/posix-functions/execv.texi (execv): Likewise.
13561         * doc/posix-functions/execve.texi (execve): Likewise.
13562         * doc/posix-functions/execvp.texi (execvp): Likewise.
13563         * doc/glibc-functions/canonicalize_file_name.texi
13564         (canonicalize_file_name): Cygwin 1.7 now provides this.
13565         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13566         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13567         on AT_SYMLINK_NOFOLLOW.
13568
13569 2009-09-24  Eric Blake  <ebb9@byu.net>
13570
13571         test-linkat: make test more robust
13572         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13573
13574         getopt: fix inclusion guards for cygwin
13575         * modules/getopt-posix (Depends-on): Add include-next.
13576         (Makefile.am): Substitute more items in replacement header.
13577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13578         <getopt.h>.
13579         * lib/getopt.in.h (includes): Use split inclusion guard, and
13580         prefer <getopt.h> over include <unistd.h> when one is present.
13581         (option): Also override name of 'struct option'.
13582
13583         same-inode: revert prior change; it is not yet ready
13584         * NEWS: Undo mention of this change.
13585         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13586         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13587         * lib/cycle-check.c (cycle_check): Likewise.
13588         * lib/same.c (same_name): Likewise.
13589         * lib/at-func2.c (at_func2): Likewise.
13590
13591 2009-09-23  Eric Blake  <ebb9@byu.net>
13592
13593         linkat: new module
13594         * modules/linkat: New file.
13595         * lib/at-func2.c (at_func2): Likewise.
13596         * lib/linkat.c (linkat): Likewise.
13597         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13598         * lib/openat-priv.h (at_func2): Add declaration.
13599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13600         * modules/unistd (Makefile.am): Substitute them.
13601         * lib/unistd.in.h (linkat): Declare it.
13602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13603         * doc/posix-functions/linkat.texi (linkat): Likewise.
13604         * doc/posix-functions/link.texi (link): Tweak wording.
13605         * tests/test-link.c (main): Move guts...
13606         * tests/test-link.h (test_link): ...into new file.
13607         * modules/linkat-tests: New test.
13608         * tests/test-linkat.c: Likewise.
13609         * modules/link-tests (Files): Ship new file.
13610         (Depends-on): Add stdbool.
13611
13612         dirname: add library-safe mdir_name
13613         * lib/dirname.h (mdir_name): New prototype.
13614         * lib/dirname.c (dir_name): Move guts...
13615         (mdir_name): ...to new function that avoids xalloc_die.
13616
13617         fchdir: another mingw fix
13618         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13619         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13620         on mingw (where it has not yet been ported), and make it optional
13621         elsewhere.
13622         (_gl_register_fd): Use it.
13623
13624         same-inode: make SAME_INODE tri-state, to port to mingw
13625         * NEWS: Mention this change.
13626         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13627         st_ino always being 0.
13628         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13629         * lib/cycle-check.c (cycle_check): Likewise.
13630         * lib/same.c (same_name): Likewise.
13631
13632         lstat: avoid mingw compilation error
13633         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13634         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13635         lstat ourselves.
13636         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13637         was adequate.
13638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13639         the checks for lstat.
13640         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13641
13642         link: fix test failure on Solaris 9
13643         * lib/link.c (rpl_link): Don't assume link will catch bogus
13644         trailing slash on source.
13645
13646         test-symlinkat: enhance test
13647         * tests/test-readlink.c (main): Move guts...
13648         * tests/test-readlink.h (test_readlink): ...into new file.
13649         * tests/test-symlink.c (main): Move guts...
13650         * tests/test-symlink.h (test_symlink): ...into new file.
13651         * tests/test-symlinkat.c (main): Use new files for further
13652         coverage.
13653         (do_symlink, do_readlink): New helper functions.
13654         * modules/symlink-tests (Files): Ship new file.
13655         (Depends-on): Add stdbool.
13656         * modules/readlink-tests (Files): Ship new file.
13657         (Depends-on): Add stdbool.
13658         * modules/symlinkat-tests (Files): Use new files.
13659
13660 2009-09-23  Eric Blake  <ebb9@byu.net>
13661
13662         readlink: document portability issue with symlink length
13663         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13664         systems have bogus st_size on symlinks, and mention the
13665         areadlink-with-size module.
13666         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13667         * doc/posix-functions/readlink.texi (readlink): Mention the
13668         areadlink module, and ERANGE failure.
13669         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13670         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13671
13672         readlink: fix Solaris 9 bug with trailing slash
13673         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13674         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13675         * doc/posix-functions/readlink.texi (readlink): Document this.
13676         * modules/readlink-tests: New test.
13677         * tests/test-readlink.c: Likewise.
13678
13679         readlink: fix cygwin 1.5.x bug with return type
13680         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13681         * lib/unistd.in.h (readlink): Use ssize_t.
13682         * lib/readlink.c (readlink): Likewise.
13683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13684         * modules/unistd (Makefile.am): Substitute it.
13685         * lib/unistd.in.h (readlink): Declare replacement.
13686         * doc/posix-functions/readlink.texi (readlink): Document this.
13687
13688         symlink: use throughout gnulib
13689         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13690         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13691         symlink is not used.
13692         * modules/symlinkat (Depends-on): Add symlink.
13693         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13694         * modules/canonicalize-tests (Depends-on): Likewise.
13695         * modules/lstat-tests (Depends-on): Likewise.
13696         * modules/openat-tests (Depends-on): Likewise.
13697         * modules/remove-tests (Depends-on): Likewise.
13698         * modules/rmdir-tests (Depends-on): Likewise.
13699         * modules/unlink-tests (Depends-on): Likewise.
13700         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13701         * tests/test-canonicalize.c (symlink): Likewise.
13702         * tests/test-fstatat.c (symlink): Likewise.
13703         * tests/test-lstat.c (symlink): Likewise.
13704         * tests/test-remove.c (symlink): Likewise.
13705         * tests/test-rmdir.c (symlink): Likewise.
13706         * tests/test-unlink.c (symlink): Likewise.
13707         * tests/test-unlinkat.c (symlink): Likewise.
13708
13709         symlink: new module, for Solaris 9 bug
13710         * modules/symlink: New file.
13711         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13712         * lib/symlink.c: Likewise.
13713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13714         * modules/unistd (Makefile.am): Substitute them.
13715         * lib/unistd.in.h (symlink): Declare replacement.
13716         * MODULES.html.sh (File system functions): Mention it.
13717         * doc/posix-functions/symlink.texi (symlink): Likewise.
13718         * modules/symlink-tests: New test.
13719         * tests/test-symlink.c: Likewise.
13720
13721 2009-09-23  Bruno Haible  <bruno@clisp.org>
13722
13723         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13724         when needed.
13725         Test case: gnulib-tool --import --with-tests atexit inttypes.
13726         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13727
13728 2009-09-23  Bruno Haible  <bruno@clisp.org>
13729
13730         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13731         subcommand, not in a subshell.
13732
13733 2009-09-22  Eric Blake  <ebb9@byu.net>
13734
13735         unistd: sort replacement declarations
13736         * lib/unistd.in.h: Sort declarations.
13737
13738         open, openat: minor optimization
13739         * lib/open.c (open): If open succeeded, len is non-zero.
13740         * lib/openat.c (rpl_openat): Likewise.
13741
13742         link-follow: ensure correct result
13743         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13744         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13745         distinguish between possible failures.
13746
13747 2009-09-21  Eric Blake  <ebb9@byu.net>
13748
13749         fts: avoid compiler warning
13750         * lib/fts.c (dirent_inode_sort_may_be_useful)
13751         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13752
13753 2009-09-19  Bruno Haible  <bruno@clisp.org>
13754
13755         * lib/progreloc.c (canonicalize_file_name): New declaration.
13756
13757 2009-09-19  Eric Blake  <ebb9@byu.net>
13758
13759         link: fix quoting
13760         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13761
13762         openat: fix openat bugs on Solaris 9
13763         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13764         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13765         * modules/openat (Depends-on): Add open.
13766         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13767         * modules/fcntl-h (Makefile.am): Substitute it.
13768         * lib/fcntl.in.h (openat): Declare replacement.
13769         * doc/posix-functions/openat.texi (openat): Document this.
13770
13771         openat: move fstatat and unlinkat into correct files
13772         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13773         compiled.
13774         * lib/openat.c (fstatat, unlinkat): Move...
13775         * lib/fstatat.c (fstatat): ...into correct files.
13776         * lib/unlinkat.c (unlinkat): Likewise.
13777
13778         openat: fix unlinkat bugs on Solaris 9
13779         * lib/unlinkat.c (unlinkat): New file.
13780         * modules/openat (Depends-on): Add unlink.
13781         (Files): Distribute it.
13782         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13783         trailing slash behavior is broken.
13784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13785         * modules/unistd (Makefile.am): Substitute it.
13786         * lib/unistd.in.h (unlinkat): Declare replacement.
13787         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13788
13789         openat: fix fstatat bugs on Solaris 9
13790         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13791         stat.
13792         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13793
13794         test-unlinkat: enhance test, to expose Solaris 9 bug
13795         * tests/test-unlink.c (main): Factor guts...
13796         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13797         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13798         * tests/test-rmdir.c (main): Adjust caller.
13799         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13800         (unlinker): New helper function.
13801         (rmdirat): Enhance check.
13802         * modules/rmdir-tests (Depends-on): Add stdbool.
13803         * modules/unlink-tests (Depends-on): Likewise.
13804         (Files): Add test-unlink.h.
13805         * modules/openat-tests (Files): Likewise.
13806         (Depends-on): Add unlinkdir.
13807
13808         test-fstatat: new test, to expose Solaris 9 bugs
13809         * tests/test-stat.c (main): Factor guts...
13810         * tests/test-stat.h (test_stat_func): ...into new file.
13811         * tests/test-lstat.c (main): Factor guts...
13812         * tests/test-lstat.h (test_lstat_func): ...into new file.
13813         * tests/test-fstatat.c: New file.
13814         * modules/stat-tests (Files): Add test-stat.h.
13815         * modules/lstat-tests (Files): Add test-lstat.h.
13816         (Depends-on): Add stdbool.
13817         * modules/openat-tests (Depends-on): Add pathmax.
13818         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13819         (Makefile.am): Run new test.
13820
13821         remove: new module, for mingw and Solaris 9 bugs
13822         * modules/remove: New file.
13823         * lib/remove.c: Likewise.
13824         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13826         * modules/stdio (Makefile.am): Use them.
13827         * lib/stdio.in.h (remove): Declare replacement.
13828         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13829         * doc/posix-functions/remove.texi (remove): Likewise.
13830         * modules/remove-tests: New test.
13831         * tests/test-remove.c: Likewise.
13832
13833         unlink: new module, for Solaris 9 bug
13834         * modules/unlink: New file.
13835         * lib/unlink.c: Likewise.
13836         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13838         * modules/unistd (Makefile.am): Use them.
13839         * lib/unistd.in.h (stat): Declare replacement.
13840         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13841         * doc/posix-functions/unlink.texi (unlink): Likewise.
13842         * modules/unlink-tests: New test.
13843         * tests/test-unlink.c: Likewise.
13844
13845         lstat: fix Solaris 9 bug
13846         * lib/lstat.c (lstat): Also check for trailing slash on
13847         non-symlink, non-directories.  Use stat module to simplify logic.
13848         * doc/posix-functions/lstat.texi (lstat): Document it.
13849         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13850         (configure.ac): Check for symlink.
13851         * tests/test-lstat.c (main): Add more tests.
13852
13853         stat: add as dependency to other modules
13854         * modules/chown (Depends-on): Add stat.
13855         * modules/euidaccess (Depends-on): Likewise.
13856         * modules/fchdir (Depends-on): Likewise.
13857         * modules/isdir (Depends-on): Likewise.
13858         * modules/link (Depends-on): Likewise.
13859         * modules/lstat (Depends-on): Likewise.
13860         * modules/mkdir-p (Depends-on): Likewise.
13861         * modules/modechange (Depends-on): Likewise.
13862         * modules/open (Depends-on): Likewise.
13863         * modules/readlink (Depends-on): Likewise.
13864         * modules/same (Depends-on): Likewise.
13865
13866         stat: fix Solaris 9 bug
13867         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13868         slash.
13869         * lib/stat.c (rpl_stat): Work around it.
13870         * doc/posix-functions/stat.texi (stat): Update documentation.
13871
13872         stat: new module, for mingw bug
13873         * modules/stat: New file.
13874         * lib/stat.c: Likewise.
13875         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13876         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13877         * modules/sys_stat (Makefile.am): Use them.
13878         * lib/sys_stat.in.h (stat): Declare replacement.
13879         * lib/openat.c (fstatat): Deal with lstat and stat being function
13880         macros.
13881         * modules/openat (Depends-on): Add inline.
13882         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13883         * doc/posix-functions/stat.texi (stat): Likewise.
13884         * modules/stat-tests: New test.
13885         * tests/test-stat.c: Likewise.
13886
13887 2009-09-19  Jim Meyering  <meyering@redhat.com>
13888
13889         syntax-check: detect unnecessary inclusion of canonicalize.h
13890         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13891
13892 2009-09-19  Eric Blake  <ebb9@byu.net>
13893
13894         canonicalize-lgpl: adjust clients to use correct header
13895         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13896         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13897         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13898         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13899         * lib/progreloc.c (includes): Likewise.
13900
13901 2009-09-19  Jim Meyering  <meyering@redhat.com>
13902
13903         test-posixtm.c: correct a comment
13904         * tests/test-posixtm.c: Correct first-line comment.
13905         Spotted by Eric Blake.
13906
13907 2009-09-16  Jim Meyering  <meyering@redhat.com>
13908
13909         posixtm-tests: make T const-correct; add a test case
13910         * tests/test-posixtm.c (T): Declare const.
13911         Add a test for -(2^31+1).
13912         Remove useless can-succeed-only-in-2002 test.
13913
13914         posixtm-tests: adjust the sole failing test
13915         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13916         expected output matches what mktime now produces.  Cross-checked via
13917         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13918
13919         posixtm: move #ifdef'd tests into a new module
13920         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13921         * tests/test-posixtm.c: ... this new file.
13922         * modules/posixtm-tests: New module.
13923
13924 2009-09-19  Eric Blake  <ebb9@byu.net>
13925
13926         openat: simplify use of at-func.c
13927         * lib/at-func.c (includes): Include prerequisites here, to
13928         simplify requirements on client files.
13929         * lib/openat-priv.h: Add double-inclusion guard.
13930         * lib/faccessat.c (includes): Simplify.
13931         * lib/fchmodat.c (includes): Likewise.
13932         * lib/fchownat.c (includes): Likewise.
13933         * lib/mkdirat.c (includes): Likewise.
13934         * lib/mkfifoat.c (includes): Likewise.
13935         * lib/symlinkat.c (includes): Likewise.
13936
13937         openat: allow return of fd 0
13938         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13939         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13940         unistd-safer.
13941         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13942         <fcntl.h>; this module does not leak fds.
13943         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13944         must be allowed to return 0, leaving openat_safer to add the
13945         safety.
13946         (openat_permissive): Avoid writing to just-opened fd 2 if
13947         restoring the current directory fails.
13948         * lib/openat-die.c (openat_restore_fail): Add comment.
13949         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13950         (save_cwd): Guarantee safe fd, but without use of open_safer.
13951         * tests/test-openat.c: New test.
13952         * modules/openat-tests (Files, Makefile.am): Distribute and build
13953         new file.
13954
13955         relocatable-prog-wrapper: fix build
13956         * modules/relocatable-prog-wrapper (Files): Update name of
13957         canonicalize m4 file, broken on 2009-09-17.
13958         Reported by emad hajjar <aleppos@hotmail.com>.
13959
13960 2009-09-19  Bruno Haible  <bruno@clisp.org>
13961
13962         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13963         * lib/safe-alloc.c: Likewise.
13964         Reported by Ian Beckwith <ianb@erislabs.net>.
13965
13966 2009-09-18  Bruno Haible  <bruno@clisp.org>
13967
13968         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13969         Reported by <erobles@sensacd.com.mx>.
13970
13971 2009-09-17  Eric Blake  <ebb9@byu.net>
13972
13973         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13974         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13975         slashes when checking if last component is missing.
13976         * tests/test-canonicalize.c (main): Test this.
13977
13978         canonicalize, canonicalize-lgpl: honor // if distinct from /
13979         * modules/canonicalize (Files): Add double-slash-root.m4.
13980         * modules/canonicalize-lgpl (Files): Likewise.
13981         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13982         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13983         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13984         fallback definition.
13985         (canonicalize_filename_mode): Use it to protect //.
13986         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13987         (__realpath): Likewise.
13988         * tests/test-canonicalize.c (main): Test this.
13989         * tests/test-canonicalize-lgpl.c (main): Likewise.
13990         * modules/canonicalize-tests (Depends-on): Add same-inode.
13991         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13992
13993         canonicalize-lgpl: fix glibc bug with trailing slash
13994         * m4/canonicalize-lgpl.m4: Move contents...
13995         * m4/canonicalize.m4: ...here.
13996         (gl_CANONICALIZE_LGPL): Factor realpath check...
13997         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13998         glibc 2.3.5 bug, fixed 2005-04-27.
13999         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14000         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14001         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14002         * modules/canonicalize-lgpl (Files): Manage file rename.
14003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14004         * modules/stdlib (Makefile.am): Substitute witness.
14005         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14006         is needed.
14007         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14008         replacement is required.
14009         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14010         * doc/glibc-functions/canonicalize_file_name.texi
14011         (canonicalize_file_name): Document this.
14012         * doc/posix-functions/realpath.texi (realpath): Likewise.
14013
14014         canonicalize-lgpl: reject non-directory with trailing slash
14015         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14016         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14017         catches failures in glibc 2.3.5.
14018         * tests/test-canonicalize.c (main): Likewise.
14019
14020         canonicalize-lgpl: use native realpath if it works
14021         * lib/canonicalize-lgpl.c (realpath): Guard with
14022         FUNC_REALPATH_WORKS.
14023         * lib/stdlib.in.h (realpath): Make declaration optional based on
14024         HAVE_REALPATH.
14025         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14026         native realpath works.
14027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14028         * modules/stdlib (Makefile.am): Substitute witness.
14029
14030         canonicalize, canonicalize-lgpl: use <stdlib.h>
14031         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14032         (Include): Mention <stdlib.h>.
14033         (configure.ac): Mention functions we provide.
14034         * modules/canonicalize (configure.ac): Likewise.
14035         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14036         realpath if canonicalize_file_name is missing.
14037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14038         * modules/stdlib (Makefile.am): Substitute witnesses.
14039         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14040         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14041         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14042         * NEWS: Document this.
14043         * doc/glibc-functions/canonicalize_file_name.texi
14044         (canonicalize_file_name): Likewise.
14045         * doc/posix-functions/realpath.texi (realpath): Likewise.
14046         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14047
14048         test-canonicalize: consolidate into single C program
14049         * tests/test-canonicalize.sh: Delete; move setup into...
14050         * tests/test-canonicalize.c (main): ...the program, making it
14051         easier to run in debugger.  Add some tests.
14052         * modules/canonicalize-tests (Files): Remove unused file.
14053         (Depends-on): Add progname.
14054         (configure.ac, Makefile.am): Simplify.
14055
14056         test-canonicalize-lgpl: consolidate into single C program
14057         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14058         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14059         easier to run in debugger.  Add some tests.
14060         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14061         (configure.ac, Makefile.am): Simplify.
14062
14063         canonicalize: avoid resolvepath
14064         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14065         unnecessary checks.
14066         * lib/canonicalize.c (includes): Simplify.
14067         (canonicalize_file_name): Drop resolvepath implementation.
14068         * modules/canonicalize (Depends-on): Drop filenamecat.
14069
14070         canonicalize: don't lose errno
14071         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14072         over calls to free.
14073
14074         canonicalize: simplify errno handling
14075         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14076         assignment.
14077
14078         canonicalize, canonicalize-lgpl: update module dependencies
14079         * modules/canonicalize (Depends-on): Add extensions, lstat,
14080         pathmax, stdlib.
14081         (Files): Drop pathmax.h.
14082         (configure.ac): Adjust macro name.
14083         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14084         lstat, stdlib, sys_stat.
14085         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14086         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14087         extensions.
14088         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14089         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14090         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14091         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14092         declaration, if available.
14093         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14094         we can rely on the readlink module.
14095         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14096         (includes): Use <unistd.h> unconditionally.
14097
14098 2009-09-17  Eric Blake  <ebb9@byu.net>
14099
14100         maint: make Include sections of modules consistent
14101         * modules/alloca: Use only header name; no need to list #include.
14102         * modules/alloca-opt: Likewise.
14103         * modules/arpa_inet: Likewise.
14104         * modules/canon-host: Likewise.
14105         * modules/configmake: Likewise.
14106         * modules/dirent: Likewise.
14107         * modules/eealloc: Likewise.
14108         * modules/environ: Likewise.
14109         * modules/fchdir: Likewise.
14110         * modules/fcntl: Likewise.
14111         * modules/fcntl-h: Likewise.
14112         * modules/gethrxtime: Likewise.
14113         * modules/gettime: Likewise.
14114         * modules/ignore-value: Likewise.
14115         * modules/inet_ntop: Likewise.
14116         * modules/inet_pton: Likewise.
14117         * modules/inttypes: Likewise.
14118         * modules/isnand-nolibm: Likewise.
14119         * modules/isnanf-nolibm: Likewise.
14120         * modules/mbchar: Likewise.
14121         * modules/mbfile: Likewise.
14122         * modules/mbiter: Likewise.
14123         * modules/mbuiter: Likewise.
14124         * modules/netdb: Likewise.
14125         * modules/netinet_in: Likewise.
14126         * modules/nproc: Likewise.
14127         * modules/pagealign_alloc: Likewise.
14128         * modules/poll: Likewise.
14129         * modules/printf-frexp: Likewise.
14130         * modules/pthread: Likewise.
14131         * modules/putenv: Likewise.
14132         * modules/random_r: Likewise.
14133         * modules/relocatable-prog: Likewise.
14134         * modules/search: Likewise.
14135         * modules/select: Likewise.
14136         * modules/selinux-h: Likewise.
14137         * modules/settime: Likewise.
14138         * modules/signal: Likewise.
14139         * modules/size_max: Likewise.
14140         * modules/socklen: Likewise.
14141         * modules/ssize_t: Likewise.
14142         * modules/stdarg: Likewise.
14143         * modules/stdbool: Likewise.
14144         * modules/stddef: Likewise.
14145         * modules/stdint: Likewise.
14146         * modules/stdio: Likewise.
14147         * modules/stdlib: Likewise.
14148         * modules/string: Likewise.
14149         * modules/strings: Likewise.
14150         * modules/sys_file: Likewise.
14151         * modules/sys_ioctl: Likewise.
14152         * modules/sys_select: Likewise.
14153         * modules/sys_socket: Likewise.
14154         * modules/sys_stat: Likewise.
14155         * modules/sys_time: Likewise.
14156         * modules/sys_times: Likewise.
14157         * modules/sys_utsname: Likewise.
14158         * modules/sys_wait: Likewise.
14159         * modules/sysexits: Likewise.
14160         * modules/time: Likewise.
14161         * modules/times: Likewise.
14162         * modules/tmpfile: Likewise.
14163         * modules/trim: Likewise.
14164         * modules/unistd: Likewise.
14165         * modules/wchar: Likewise.
14166         * modules/wctype: Likewise.
14167
14168 2009-09-17  Bruno Haible  <bruno@clisp.org>
14169
14170         Make getdate.y compile on QNX and NetBSD 5 / i386.
14171         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14172         TIME_T_FITS_IN_LONG_INT.
14173         * lib/getdate.y (long_time_t): New type.
14174         (relative_time): Change type of 'seconds' field to long_time_t.
14175         (get_date): Update types of local variables. Check against overflow
14176         during conversion from long_time_t to time_t.
14177         Reported by Matt Kraai <kraai@ftbfs.org>
14178         and Hasso Tepper <hasso@netbsd.org>.
14179
14180 2009-09-17  Bruno Haible  <bruno@clisp.org>
14181
14182         * modules/COPYING: Update copyright years.
14183         * modules/README: Likeiwse.
14184         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14185         Reported by Ian Beckwith <ianb@erislabs.net>.
14186
14187 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14188
14189         * users.txt: Update references for gnuit package.
14190
14191 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14192
14193         * m4/getdelim.m4: Fix typo in copyright line.
14194
14195 2009-09-17  Bruno Haible  <bruno@clisp.org>
14196
14197         * lib/atoll.c: Use the standard header with GPL copyright.
14198         * lib/argz.in.h: Likewise.
14199         * lib/glob.c: Likewise.
14200         * lib/glob-libc.h: Likewise.
14201         * lib/random_r.c: Likewise.
14202         * lib/siglist.h: Likewise.
14203         * lib/strsignal.c: Likewise.
14204         Reported by Ian Beckwith <ianb@erislabs.net>.
14205
14206 2009-09-17  Eric Blake  <ebb9@byu.net>
14207
14208         rmdir: ensure correct dependency order
14209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14210
14211 2009-09-17  Bruno Haible  <bruno@clisp.org>
14212
14213         Disable assertion that fails on NetBSD 5 / i386.
14214         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14215         Reported by Sam Steingold <sds@gnu.org>
14216         and Hasso Tepper <hasso@netbsd.org>.
14217
14218 2009-09-16  Eric Blake  <ebb9@byu.net>
14219
14220         unlinkdir: port to mingw
14221         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14222         on which no one can unlink a directory.
14223
14224         stdlib: sort witness names
14225         * modules/stdlib (Makefile.am): Sort replacements.
14226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14227         * lib/stdlib.in.h: Likewise.
14228
14229         parse-duration-tests: avoid link failure
14230         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14231         LIBINTL.
14232         Reported by Tom G. Christensen.
14233
14234         openat-tests: ensure unlinkat behaves like rmdir
14235         * tests/test-rmdir.c (main): Factor guts...
14236         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14237         * modules/rmdir-tests (Files): Ship new file.
14238         * modules/openat-tests: New test.
14239         * tests/test-unlinkat.c: Likewise.
14240
14241         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14242         * modules/rmdir-errno (Status, Notice): Now obsolete.
14243
14244         rmdir: work around cygwin 1.5.x and mingw bugs
14245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14246         * lib/rmdir.c (rmdir): Work around it.
14247         * modules/rmdir (Status, Notice): No longer obsolete.
14248         (Files): Add dos.m4.
14249         (Depends-on): Add unistd.
14250         (configure.ac): Set witnesses.
14251         (License): Relax to LGPLv2+.
14252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14253         * modules/unistd (Makefile.am): Substitute witnesses.
14254         * lib/unistd.in.h (rmdir): Declare replacement.
14255         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14256         * modules/rmdir-tests: New tests.
14257         * tests/test-rmdir.c: Likewise.
14258
14259 2009-09-15  Eric Blake  <ebb9@byu.net>
14260
14261         fchdir: improve use of replacement functions
14262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14264         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14265         REPLACE_CLOSEDIR.
14266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14267         * modules/sys_stat (Makefile.am): Substitute correct witness.
14268         * modules/dirent (Makefile.am): Likewise.
14269         * modules/unistd (Makefile.am): Likewise.
14270         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14271         * lib/unistd.in.h (dup): Likewise.
14272         * lib/sys_stat.in.h (fstat): Likewise.
14273
14274         maint: ignore gnulib-tool temp files
14275         * .gitignore: Ignore files created during gnulib-tool --test.
14276
14277 2009-09-13  Jim Meyering  <meyering@redhat.com>
14278
14279         posixtm: don't reject a time that specify "60" as the number of seconds
14280         * lib/posixtm.c (posixtime): The code to reject invalid dates
14281         would also reject a time specified with the .60 suffix.
14282         But POSIX allows that, in order to accommodate leap seconds.
14283         So don't reject it.
14284         (main): Adjust tests accordingly.
14285         * modules/posixtm (Depends-on): Add stpcpy.
14286
14287 2009-09-11  Jim Meyering  <meyering@redhat.com>
14288
14289         announce-gen: include [$release_type] in emitted Subject:
14290         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14291         e.g., [stable] in the emitted Subject: line.
14292
14293 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14294
14295         Remove obsolete macros from several modules.
14296         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14297         obsolete Autoconf macros with their modern counterparts.
14298         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14299         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14300         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14301         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14302         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14303         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14305         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14306         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14307         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14308         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14310         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14311         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14313         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14314         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14315         * m4/time_r.m4 (gl_TIME_R): Likewise.
14316         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14317         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14318         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14319
14320         Fix copyright header in build-aux scripts.
14321         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14322         recommendation.
14323         * build-aux/ncftpput-ftp: Likewise.
14324         * build-aux/update-copyright: Likewise.
14325
14326 2009-09-09  Eric Blake  <ebb9@byu.net>
14327
14328         test-link: allow Linux choice of errno
14329         * tests/test-link.c (main): Relax test for alternate error.
14330
14331         strndup: fix improper m4 caching
14332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14333         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14334         (gl_PREREQ_STRNDUP): Delete.
14335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14336         * modules/string (Makefile.am): Substitute it.
14337         * lib/string.in.h (strndup): Modernize prototype.
14338
14339         getcwd: port to mingw
14340         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14341         different from the POSIX assumptions made throughout the getcwd
14342         module; fortunately, the mingw getcwd does not need replacement.
14343         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14344         * modules/getcwd-tests: New test.
14345         * tests/test-getcwd.c: Likewise.
14346
14347         link: fix platform bugs
14348         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14349         * lib/link.c (link): Work around them.  Fix related mingw bug.
14350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14351         * modules/unistd (Makefile.am): Substitute it.
14352         * lib/unistd.in.h (link): Declare replacement.
14353         * doc/posix-functions/link.texi (link): Document this.
14354         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14355
14356         test-link: consolidate into single C program, test more cases
14357         * tests/test-link.sh: Delete.
14358         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14359         at least Cygwin and Solaris.
14360         * modules/link-tests (Files): Remove unused file.
14361         (Depends-on): Add errno, sys_stat.
14362         (Makefile.am): Simplify.
14363
14364 2009-09-08  Bruno Haible  <bruno@clisp.org>
14365
14366         Work around towlower, towupper bug on mingw.
14367         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14368         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14369         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14370         * doc/posix-functions/towupper.texi: Likewise.
14371         Reported by Eric Blake.
14372
14373 2009-09-08  Jim Meyering  <meyering@redhat.com>
14374
14375         build: don't try to run autoheader if we don't use it
14376         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14377         is not used in configure.ac.
14378
14379 2009-09-08  Eric Blake  <ebb9@byu.net>
14380
14381         euidaccess: fix compilation error
14382         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14383
14384         rawmemchr: relax license
14385         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14386         okay.
14387         Reported by Jim Meyering.
14388
14389         mkfifoat: new module
14390         * modules/mkfifoat: New file.
14391         * lib/mkfifoat.c: Likewise.
14392         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14393         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14394         * modules/sys_stat (Makefile.am): Use them.
14395         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14396         * MODULES.html.sh (File system functions): Mention module.
14397         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14398         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14399         * modules/mkfifoat-tests: New test.
14400         * tests/test-mkfifoat.c: Likewise.
14401
14402         strchrnul: relax license
14403         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14404         okay.
14405         Reported by Jim Meyering.
14406
14407 2009-09-08  Eric Blake  <ebb9@byu.net>
14408
14409         fstatat: fix compilation on Solaris
14410         * lib/fstatat.c (includes): Add fcntl.h.
14411         Reported by Pádraig Brady.
14412
14413 2009-09-07  Eric Blake  <ebb9@byu.net>
14414
14415         rename: modernize replacement
14416         * modules/rename (Depends-on): Add stdio.
14417         (configure.ac): Declare witness.
14418         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14419         stdio take care of replacement.
14420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14421         * modules/stdio (Makefile.am): Substitute them.
14422         * lib/stdio.in.h (rename): Declare replacement.
14423         * lib/rename.c (includes): Allow cross-compilation to non-windows
14424         machines.
14425         * doc/posix-functions/rename.texi (rename): Improve
14426         documentation.
14427
14428         stdio: sort witness names
14429         * modules/stdio (Makefile.am): Sort replacements.
14430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14431         * lib/stdio.in.h: Likewise.
14432
14433         getcwd: minor cleanups
14434         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14435         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14436
14437         openat: provide more convenience names
14438         * modules/faccessat (configure.ac): Add C witness.
14439         * lib/unistd.in.h (readlinkat): Fix typo.
14440         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14441         convenience wrappers.
14442         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14443         wrappers in syntax checks.
14444
14445 2009-09-06  Eric Blake  <ebb9@byu.net>
14446
14447         doc: fix comments in recent patches
14448         * lib/faccessat.c: Mention correct function.
14449         * lib/fchmodat.c: Likewise.
14450         * lib/fchownat.c: Likewise.
14451         * lib/symlinkat.c: Likewise.
14452         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14453         constants.
14454
14455         faccessat, symlinkat: continue cleanup of previous patch
14456         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14457         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14458         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14460         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14461         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14462         set.
14463
14464 2009-09-06  Bruno Haible  <bruno@clisp.org>
14465
14466         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14467         (fstatat): Declare if GNULIB_FSTATAT is set.
14468         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14469         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14470         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14471         * modules/fcntl-h (Files): Remove m4/openat.m4.
14472         * modules/sys_stat (Files): Remove m4/openat.m4.
14473         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14474         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14475         * modules/unistd (Files): Remove m4/openat.m4.
14476         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14477         GNULIB_OPENAT.
14478         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14479         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14480         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14481         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14482         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14483         gl_OPENAT_DEFAULTS.
14484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14485         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14486         Don't require gl_OPENAT_DEFAULTS.
14487         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14488         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14489         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14490         (gl_OPENAT_DEFAULTS): Remove macro.
14491
14492 2009-09-06  Bruno Haible  <bruno@clisp.org>
14493
14494         * modules/openat (configure.ac): Remove unneeded witness.
14495
14496 2009-09-06  Bruno Haible  <bruno@clisp.org>
14497
14498         Set errno to ENOSYS when a function is entirely unsupported.
14499         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14500         EOPNOTSUPP.
14501         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14502         * modules/chown (Depends-on): Remove errno.
14503
14504 2009-09-06  Bruno Haible  <bruno@clisp.org>
14505
14506         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14507
14508 2009-09-06  Bruno Haible  <bruno@clisp.org>
14509
14510         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14511
14512 2009-09-06  Ben Pfaff  <blp@gnu.org>
14513             Bruno Haible  <bruno@clisp.org>
14514
14515         Work around a glibc bug in strtok_r.
14516         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14517         Undefine if UNDEFINE_STRTOK_R is set.
14518         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14520         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14522         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14523         UNDEFINE_STRTOK_R.
14524         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14525
14526 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14527
14528         exclude: minor fix
14529         * lib/exclude.c: Include wctype.h
14530
14531 2009-09-06  Akim Demaille  <demaille@gostai.com>
14532
14533         bootstrap: improve error message
14534         * build-aux/bootstrap (find_tool): Upon failure, report the list
14535         of candidates.
14536         Honor the initial value of the envvar.
14537
14538 2009-09-05  Eric Blake  <ebb9@byu.net>
14539
14540         symlinkat: new module
14541         * modules/symlinkat: New file.
14542         * lib/symlinkat.c: Likewise.
14543         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14545         * modules/unistd (Makefile.am): Use them.
14546         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14547         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14548         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14549         * MODULES.html.sh (File system functions): Mention module.
14550         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14551         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14552         * modules/symlinkat-tests: New test.
14553         * tests/test-symlinkat.c: Likewise.
14554
14555         test-openat-safer: add more checks
14556         * tests/test-openat-safer.c (main): Check more code paths.
14557
14558 2009-09-05  Jim Meyering  <meyering@redhat.com>
14559
14560         syntax-check: detect unnecessary inclusion of openat.h
14561         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14562
14563 2009-09-05  Bruno Haible  <bruno@clisp.org>
14564
14565         Support towlower, towupper.
14566         * doc/posix-functions/towlower.texi: Mention module wctype.
14567         * doc/posix-functions/towupper.texi: Likewise.
14568         * lib/wctype.in.h (towlower, towupper): New functions.
14569         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14570         (ASSERT): New macro.
14571         (e): New variable.
14572         (main): Test also towlower, towupper. Test WEOF argument.
14573         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14574
14575 2009-09-05  Bruno Haible  <bruno@clisp.org>
14576
14577         Fix conversion behaviour when the input is invalid.
14578         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14579         mark occurring in first pass of indirect conversion.
14580         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14581         input.
14582         Found by clang's static analyzer.
14583
14584 2009-09-05  Bruno Haible  <bruno@clisp.org>
14585
14586         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14587         where direct conversion is possible.
14588
14589 2009-09-04  Eric Blake  <ebb9@byu.net>
14590
14591         openat: fail with ENOENT on empty name
14592         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14593         buffer.
14594
14595         link-follow: fix logic bug in prior patch
14596         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14597         reversed sense of yes and no in prior patch.  Avoid confusing
14598         compilation failure with desired semantics.
14599
14600         link-follow: accomodate mingw and cross-compilation
14601         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14602         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14603         cross-compilation results to -1, to make linkat easier to
14604         implement when cross-compiling.  Trivially support mingw.
14605         * modules/link-follow (configure.ac): Call new name.
14606         * NEWS: Mention this.
14607
14608 2009-09-03  Eric Blake  <ebb9@byu.net>
14609
14610         faccessat: compile replacement
14611         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14612         needed.
14613
14614         fts: fix compilation error
14615         * lib/fts.c (includes): Re-add "openat.h", for
14616         openat_needs_fchdir.
14617
14618         faccessat: new module
14619         * modules/faccessat: New file.
14620         * lib/faccessat.c: Likewise.
14621         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14623         * modules/unistd (Makefile.am): Use it.
14624         * lib/unistd.in.h (faccessat): Declare it.
14625         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14626         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14627         * MODULES.html.sh (File system functions): Mention it.
14628         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14629         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14630
14631         euidaccess: prefer POSIX over non-standard implementation
14632         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14633         * lib/euidaccess.c (euidaccess): Use it if available.
14634
14635         openat: make template easier to use
14636         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14637         AT_FUNC_F2 to be undefined.
14638         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14639         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14640         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14641         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14642         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14643         Likewise.
14644         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14645         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14646         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14647         Likewise.
14648
14649         openat: declare in POSIX headers
14650         * NEWS: Mention this.
14651         * modules/openat (configure.ac): Declare witnesses.
14652         (Depends-on): Add fcntl-h, sys_stat, unistd.
14653         (Include): Mention correct headers.
14654         * modules/fcntl-h (Depends-on): Add link-warning.
14655         (Files): Add openat.m4.
14656         (Makefile.am): Substitute witnesses.
14657         * modules/sys_stat (Files, Makefile.am): Likewise.
14658         * modules/unistd (Files, Makefile.am): Likewise.
14659         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14660         (gl_OPENAT_DEFAULTS): New macro.
14661         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14664         (SYS_STAT_H): Remove unused variable.
14665         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14666         * lib/fcntl--.h (includes): Remove unneeded header.
14667         * lib/openat-safer.c (includes): Likewise.
14668         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14669         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14670         appropriate headers.
14671         (__OPENAT_PREFIX): Delete.
14672         * lib/fcntl.in.h (openat): Provide declaration.
14673         (AT_FDCWD): Fix Solaris bug.
14674         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14675         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14676         * lib/fchmodat.c (includes):  Adjust to find declaration.
14677         * lib/fchownat.c (includes): Likewise.
14678         * lib/mkdirat.c (includes): Likewise.
14679         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14680         still visible.
14681
14682 2009-09-02  Eric Blake  <ebb9@byu.net>
14683
14684         errno: use consistently
14685         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14686         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14687         * lib/canonicalize.c (ELOOP): Likewise.
14688         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14689         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14690         * lib/lchown.c (EOPNOTSUPP): Likewise.
14691         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14692         * lib/savewd.c (ESTALE): Likewise.
14693         * lib/settime.c (ENOSYS): Likewise.
14694         * lib/utimens.c (ENOSYS): Likewise.
14695         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14696         * lib/chdir-safer.c (ELOOP): Likewise.
14697         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14698         * modules/c-stack (Depends-on): Add errno.
14699         * modules/canonicalize (Depends-on): Likewise.
14700         * modules/chdir-safer (Depends-on): Likewise.
14701         * modules/fdopendir (Depends-on): Likewise.
14702         * modules/inet_ntop (Depends-on): Likewise.
14703         * modules/inet_pton (Depends-on): Likewise.
14704         * modules/lchown (Depends-on): Likewise.
14705         * modules/openat (Depends-on): Likewise.
14706         * modules/savewd (Depends-on): Likewise.
14707         * modules/settime (Depends-on): Likewise.
14708         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14709
14710         fts: avoid leaking fds
14711         * modules/fts (Depends-on): Add cloexec.
14712         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14713         flag.
14714
14715         fts: make directory fds more robust
14716         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14717         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14718
14719         backupfile, chdir-long, fts, savedir: make safer
14720         * lib/backupfile.c (includes): Use "dirent--.h", since
14721         numbered_backup can write to stderr during readdir.
14722         * lib/savedir.c (includes): Likewise.
14723         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14724         emulation can write to stderr on failure.
14725         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14726         * lib/getcwd.c: Document why opendir_safer is unused.
14727         * lib/glob.c: Likewise.
14728         * lib/scandir.c: Likewise.
14729         * lib/openat-proc.c: Likewise, for open_safer.
14730         * modules/backupfile (Depends-on): Add dirent-safer.
14731         * modules/savedir (Depends-on): Likewise.
14732         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14733         * modules/chdir-long (Depends-on): Add openat-safer.
14734
14735         openat-safer: new module
14736         * modules/openat-safer: New file.
14737         * lib/openat-safer.c: Likewise.
14738         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14739         * lib/fcntl-safer.h (openat_safer): Declare.
14740         * lib/fcntl--.h (openat): Override.
14741         * MODULES.html.sh (File descriptor based I/O): Mention it.
14742         * lib/openat.h: Add double-inclusion guards.
14743         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14744         "fcntl--.h", so we can implement openat.
14745         * modules/openat-safer-tests: New test.
14746         * tests/test-openat-safer.c: New file.
14747
14748         dirent-safer: new module
14749         * modules/dirent-safer: New file.
14750         * lib/dirent--.h: Likewise.
14751         * lib/dirent-safer.h: Likewise.
14752         * lib/opendir-safer.c: Likewise.
14753         * m4/dirent-safer.m4: Likewise.
14754         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14755         * modules/dirent-safer-tests: New test.
14756         * tests/test-dirent-safer.c: New file.
14757         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14758
14759         fdopendir: optimize on mingw
14760         * lib/unistd.in.h (_gl_directory_name): New prototype.
14761         * lib/fchdir.c (_gl_directory_name): Implement it.
14762         (fchdir): Use it to simplify implementation.
14763         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14764         fchdir, when available, to avoid calling [f]chdir().
14765
14766         fdopendir: split into its own module
14767         * lib/openat.c (fdopendir): Move...
14768         * lib/fdopendir.c: ...into new file.
14769         * modules/fdopendir: New module.
14770         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14771         * modules/openat (Depends-on): Add fdopendir.
14772         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14773         fdopendir here.
14774         * modules/savedir (Depends-on): Only need fdopendir, not full
14775         openat.
14776         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14777         * lib/openat.h (fdopendir): Drop prototype.
14778         * lib/dirent.in.h (fdopendir): Provide prototype.
14779         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14780         * modules/dirent (Makefile.am): Substitute them.
14781         * MODULES.html.sh (File system functions): Mention it.
14782         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14783         * modules/fdopendir-tests: New file.
14784         * tests/test-fdopendir.c: Likewise.
14785
14786         fchdir: use more consistent macro convention
14787         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14788         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14789         REPLACE_FCHDIR, rather than relying on config.h macros.
14790         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14791         inside a single make-time REPLACE_FCHDIR block, rather than using
14792         the config.h FCHDIR_REPLACEMENT.
14793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14794         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14795         Manage fstat replacement.
14796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14797         REPLACE_FCHDIR.
14798         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14799         (Makefile.am): Substitute REPLACE_FCHDIR.
14800         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14801         FCHDIR_REPLACEMENT.
14802         * lib/dup-safer.c (dup_safer): Likewise.
14803         * lib/dup2.c (rpl_dup2): Likewise.
14804         * lib/dup3.c (rpl_dup3): Likewise.
14805         * lib/open.c (rpl_open): Likewise.
14806
14807         fchdir: simplify error handling, and support dup3
14808         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14809         stdbool, malloc-posix, realloc-posix.
14810         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14811         (ensure_dirs_slot): Return false on allocation failure.
14812         (rpl_dup2): Delete.
14813         (_gl_register_dup): New function.
14814         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14815         (_gl_register_fd): Close fd on allocation failure.
14816         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14817         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14818         prototype.
14819         (rpl_dup2_fchdir): Delete prototype.
14820         * lib/open.c (open): Update caller.
14821         * lib/dup2.c (dup2): Track fchdir metadata.
14822         * lib/dup3.c (dup3): Likewise.
14823         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14825
14826 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14827
14828         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14829         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14830         don't pass arguments to AC_OUTPUT.
14831
14832 2009-09-02  Bruno Haible  <bruno@clisp.org>
14833
14834         * modules/mkdtemp (License): Relicense under LGPLv2+.
14835         Reported by Paolo Bonzini.
14836
14837 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14838
14839         Replace uses of obsolete autoconf macros in Jim's modules.
14840         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14841         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14842         can evoke a warning from autoconf when run with -Wobsolete
14843         enabled.  They were declared obsolete for good reasons (see
14844         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14845         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14846         should not continue using the deprecated macros.
14847         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14848         obsolete Autoconf macros with modern counterparts.
14849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14850         * m4/dos.m4 (gl_AC_DOS): Likewise.
14851         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14853         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14854         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14855         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14857         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14858         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14859         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14860         Likewise.
14861         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14862         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14863         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14864         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14865         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14866         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14867
14868 2009-09-01  Eric Blake  <ebb9@byu.net>
14869
14870         fchdir: fix off-by-one bug in previous patch
14871         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14872         (_gl_unregister_fd): Delete useless if.
14873
14874 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14875
14876         maint.mk: sort the list of syntax-check rules
14877         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14878         easier to get a sense of progress when the rules are run sequentially
14879         and take a long time.
14880
14881 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14882
14883         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14884         * modules/netinet_in: Likewise.
14885         * modules/sys_file: Likewise.
14886         * modules/sys_ioctl: Likewise.
14887         * modules/sys_select: Likewise.
14888         * modules/sys_socket: Likewise.
14889         * modules/sys_stat: Likewise.
14890         * modules/sys_time: Likewise.
14891         * modules/sys_times: Likewise.
14892         * modules/sys_utsname: Likewise.
14893         * modules/sys_wait: Likewise.
14894
14895 2009-09-01  Jim Meyering  <meyering@redhat.com>
14896
14897         fts: help ensure that return values are not ignored
14898         * lib/fts_.h (__GNUC_PREREQ): Define.
14899         (__attribute_warn_unused_result__): Define.
14900         (fts_children, fts_close, fts_open, fts_read): Declare with
14901         __attribute_warn_unused_result__.
14902
14903         fts: fts_close now fails also when closing a dir file descriptor fails
14904         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14905         and propagate to caller, along with errno.
14906
14907         announce-gen: correct formatting in --help output
14908         * build-aux/announce-gen (usage): Move the one-line description in
14909         --help output "up", to where it belongs, just after Usage:.
14910
14911 2009-08-31  Eric Blake  <ebb9@byu.net>
14912
14913         fchdir: port to mingw
14914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14915         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14916         opened, then use a substitute.
14917         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14918         replacement.
14919         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14920         (_gl_register_fd): No need to check stat if open already filters
14921         all directories.
14922         (fchdir): Fix error condition to match POSIX.
14923         * modules/fchdir (Depends-on): Add sys_stat.
14924         * doc/posix-functions/open.texi (open): Document the limitation.
14925         * modules/fchdir-tests: New file.
14926         * tests/test-fchdir.c: Likewise.
14927
14928         canonicalize: allow cross-testing from cygwin to mingw
14929         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14930         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14931         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14932         Likewise.
14933         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14934         target does not support symlinks.
14935         * tests/test-canonicalize-lgpl.sh: Likewise.
14936
14937         chown: avoid compilation warning on mingw
14938         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14939         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14940         mingw.
14941         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14942         * modules/chown (Depends-on): Add errno.
14943
14944 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14945
14946         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14947         command.
14948
14949 2009-08-31  Jim Meyering  <meyering@redhat.com>
14950
14951         canonicalize: remove useless initialization
14952         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14953         initialization of local, "end".
14954
14955 2009-08-30  Bruno Haible  <bruno@clisp.org>
14956
14957         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14958         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14959         ENOSYS.
14960
14961 2009-08-30  Bruno Haible  <bruno@clisp.org>
14962
14963         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14964         /usr/xpg4/bin/tr when it exists.
14965         * tests/test-pipe-filter-gi1.sh: Likewise.
14966
14967 2009-08-30  Bruno Haible  <bruno@clisp.org>
14968
14969         Work around deficient /usr/bin/id program on Solaris.
14970         * tests/test-file-has-acl.sh (ID): New variable.
14971         * tests/test-set-mode-acl.sh (ID): Likewise.
14972         * tests/test-copy-acl.sh (ID): Likewise.
14973         * tests/test-copy-file.sh (ID): Likewise.
14974
14975 2009-08-30  Bruno Haible  <bruno@clisp.org>
14976
14977         New module 'xstriconveh'.
14978         * lib/xstriconveh.h: New file.
14979         * lib/xstriconveh.c: New file.
14980         * modules/xstriconveh: New file.
14981
14982 2009-08-30  Bruno Haible  <bruno@clisp.org>
14983
14984         Make it easier to use mem_cd_iconveh.
14985         * lib/striconveh.h (iconveh_t): New type.
14986         (iconveh_open, iconveh_close): New declarations.
14987         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14988         with a single 'const iconveh_t *' argument.
14989         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14990         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14991         with a single 'const iconveh_t *' argument.
14992         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14993         * tests/test-striconveh.c (main): Update.
14994         * NEWS: Mention the change.
14995
14996 2009-08-30  Bruno Haible  <bruno@clisp.org>
14997
14998         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14999         problem.
15000
15001 2009-08-30  Bruno Haible  <bruno@clisp.org>
15002
15003         Work around iconv_open problem on Solaris.
15004         * lib/iconv_open-solaris.gperf: New file.
15005         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15006         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15007         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15008         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15009         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15010         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15011
15012 2009-08-29  Jim Meyering  <meyering@redhat.com>
15013
15014         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15015         * top/maint.mk (cvs-check): Remove target; it was just an alias
15016         to the better-named vc-diff-check.
15017         (maintainer-distcheck): Remove rule.  It was used only from
15018         the (alpha/beta/major) target, and all of its commands but one
15019         were coreutils-specific.
15020         (vc-dist): Remove rule.
15021         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15022         Run vc-diff-check, not vc-dist.
15023         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15024
15025 2009-08-27  Bruno Haible  <bruno@clisp.org>
15026
15027         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15028         of 0.
15029
15030 2009-08-27  Bruno Haible  <bruno@clisp.org>
15031
15032         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15033         compilers.
15034         * doc/func.texi: Document the SunPRO C bug.
15035
15036 2009-08-27  Bruno Haible  <bruno@clisp.org>
15037
15038         Fix link error on Solaris.
15039         * tests/test-parse-duration.c (xstrdup): Remove function.
15040
15041 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15042
15043         ignore-value: handle pointer types, too
15044         * lib/ignore-value.h (__attribute__): Remove definition.
15045         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15046         of a more concise and more-often effective "(void) i" statement.
15047         (ignore_ptr): New function to suppress warnings from functions that
15048         return pointers, and to make it explicit that one function doesn't
15049         handle all cases.
15050
15051 2009-08-25  Bruno Haible  <bruno@clisp.org>
15052
15053         dup2: work around a Linux bug.
15054         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15055         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15056         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15057         Reported by Simon Josefsson.
15058
15059 2009-08-25  Jim Meyering  <meyering@redhat.com>
15060
15061         libguestfs uses gnulib
15062         * users.txt: Add libguestfs.
15063
15064 2009-08-24  Eric Blake  <ebb9@byu.net>
15065
15066         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15067         * lib/pipe2.c (includes): Add binary-io.h.
15068         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15069
15070 2009-08-24  Bruno Haible  <bruno@clisp.org>
15071
15072         Tolerate declared but missing accept4 syscall.
15073         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15074         available.
15075         * lib/sys_socket.in.h (accept4): If the function is already present,
15076         override it.
15077         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15078         * modules/accept4 (Makefile.am): Compile accept4.c always.
15079         Reported by Paolo Bonzini and Eric Blake.
15080
15081 2009-08-23  Bruno Haible  <bruno@clisp.org>
15082
15083         New module 'accept4'.
15084         * lib/sys_socket.in.h (accept4): New declaration.
15085         * lib/accept4.c: New file.
15086         * m4/accept4.m4: New file.
15087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15088         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15089         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15090         HAVE_ACCEPT4.
15091         * modules/accept4: New file.
15092         * doc/glibc-functions/accept4.texi: Mention the new module.
15093
15094 2009-08-24  Jim Meyering  <meyering@redhat.com>
15095
15096         progname: also set global program_invocation_name, when possible
15097         Before this change, a libtool-enabled program that calls glibc's
15098         error function would report the program name as
15099         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15100         * modules/progname (configure.ac): Check for a declaration of
15101         program_invocation_name.
15102         * lib/progname.c:  Include <errno.h>.
15103         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15104         Set program_invocation_name.
15105
15106 2009-08-23  Bruno Haible  <bruno@clisp.org>
15107
15108         * lib/dup3.c: Include <string.h>.
15109
15110 2009-08-23  Bruno Haible  <bruno@clisp.org>
15111
15112         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15113         * lib/pipe2.c (pipe2): Likewise.
15114         Suggested by Eric Blake.
15115
15116 2009-08-23  Bruno Haible  <bruno@clisp.org>
15117
15118         Tolerate declared but missing dup3 syscall.
15119         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15120         * lib/unistd.in.h (dup3): If the function is already present,
15121         override it.
15122         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15123         * modules/dup3 (Makefile.am): Compile dup3.c always.
15124         Reported by Paolo Bonzini.
15125
15126 2009-08-23  Bruno Haible  <bruno@clisp.org>
15127
15128         Tolerate declared but missing pipe2 syscall.
15129         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15130         available.
15131         * lib/unistd.in.h (pipe2): If the function is already present,
15132         override it.
15133         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15134         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15135         Reported by Paolo Bonzini.
15136
15137 2009-08-23  Bruno Haible  <bruno@clisp.org>
15138
15139         * lib/pipe2.c (pipe2): Move #ifs inside function.
15140
15141 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15142
15143         quotearg: document limitations of quote_these_too
15144         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15145         those limitations are created.
15146         * lib/quotearg.h (set_char_quoting): Document that digits and
15147         letters that are special after backslash are not permitted.
15148         (quotearg_char): Cross-reference set_char_quoting documentation.
15149
15150 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15151
15152         quotearg: implement custom_quoting_style
15153         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15154         right_quote fields.
15155         (set_custom_quoting): New public function.
15156         (quotearg_buffer_restyled): Add left_quote and right_quote
15157         arguments, handle them very much like locale quoting, and update
15158         all uses.
15159         (quotearg_n_custom): New public function.
15160         (quotearg_n_custom_mem): New public function.
15161         (quotearg_custom): New public function.
15162         (quotearg_custom_mem): New public function.
15163         * lib/quotearg.h: Prototype and document new public functions.
15164         (enum quoting_style): For escape_quoting_style and
15165         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15166         ignored even though they're otherwise like c_quoting_style.
15167         Add custom_quoting_style member and document with comparison to
15168         clocale_quoting_style.
15169         * tests/test-quotearg.c (custom_quotes): New array.
15170         (custom_results): New array.
15171         (main): Extend to test custom quoting.
15172
15173 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15174
15175         quotearg: fix right quote escaping when it's in quote_these_too
15176         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15177         quote, be sure to prepend only one backslash.
15178         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15179         (main): Test it.
15180
15181 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15182
15183         quotearg-tests: test escaping of embedded locale quotes
15184         * tests/test-quotearg.c (struct result_strings): Add member for
15185         new input.
15186         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15187         (inputs): Add new input.
15188         (results_g): Add expected results.
15189         (flag_results): Likewise.
15190         (locale_results): Likewise.
15191         (compare_strings): Check those.
15192
15193 2009-08-23  Bruno Haible  <bruno@clisp.org>
15194
15195         Tests for module 'dup3'.
15196         * modules/dup3-tests: New file.
15197         * tests/test-dup3.c: New file.
15198
15199         New module 'dup3'.
15200         * lib/unistd.in.h (dup3): New declaration.
15201         * lib/dup3.c: New file.
15202         * m4/dup3.m4: New file.
15203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15204         HAVE_DUP3.
15205         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15206         * modules/dup3: New file.
15207         * doc/glibc-functions/dup3.texi: Mention the new module.
15208
15209 2009-08-23  Bruno Haible  <bruno@clisp.org>
15210
15211         Tweak the dup2 test.
15212         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15213         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15214         the test file is still empty. Fix argument order of lseek.
15215
15216 2009-08-23  Bruno Haible  <bruno@clisp.org>
15217
15218         Avoid test link errors when the modules getopt-gnu, gettext are used.
15219         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15221
15222 2009-08-23  Bruno Haible  <bruno@clisp.org>
15223
15224         Fix getdtablesize() on mingw.
15225         * lib/getdtablesize.c (getdtablesize): Implement differently.
15226         * lib/unistd.in.h (getdtablesize): Improve comment.
15227
15228 2009-08-23  Bruno Haible  <bruno@clisp.org>
15229
15230         New module 'mkostemp'.
15231         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15232         * lib/stdlib.in.h (mksotemp): New declaration.
15233         * lib/mkostemp.c: New file, from glibc with modifications.
15234         * lib/tempname.h (GT_FILE): Remove outdated comment.
15235         (gen_tempname): Add flags argument.
15236         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15237         (__GT_FILE): Map to 1.
15238         (small_open, large_open): Remove macros.
15239         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15240         * lib/mkstemp.c (mkstemp): Update.
15241         * lib/mkdtemp.c (mkdtemp): Likewise.
15242         * m4/mkostemp.m4: New file.
15243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15244         HAVE_MKOSTEMP.
15245         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15246         HAVE_MKOSTEMP.
15247         * modules/mkostemp: New file, based on modules/mkstemp.
15248         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15249         * NEWS: Mention the change.
15250
15251 2009-08-23  Bruno Haible  <bruno@clisp.org>
15252
15253         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15254         Reported by Eric Blake.
15255
15256 2009-08-23  Bruno Haible  <bruno@clisp.org>
15257
15258         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15259         Reported by Eric Blake.
15260
15261 2009-08-23  Bruno Haible  <bruno@clisp.org>
15262
15263         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15264         * modules/pipe2 (Depends-on): Likewise.
15265
15266 2009-08-23  Eric Blake  <ebb9@byu.net>
15267
15268         fcntl-h: add O_TTY_INIT support
15269         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15270         * tests/test-fcntl-h.c (o): Test it.
15271         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15272
15273         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15274         * modules/fcntl: Move <fcntl.h> header replacement...
15275         * modules/fcntl-h: ...to new name, so as not to collide with
15276         like-named function.
15277         * tests/test-fcntl.c: Rename...
15278         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15279         * modules/fcntl-tests: Rename...
15280         * modules/fcntl-h-tests: ...to this.  Update test file name.
15281         * modules/chdir-long (Depends-on): Update clients.
15282         * modules/chdir-safer (Depends-on): Likewise.
15283         * modules/fcntl-safer (Depends-on): Likewise.
15284         * modules/fts (Depends-on): Likewise.
15285         * modules/mkancesdirs (Depends-on): Likewise.
15286         * modules/mkdir-p (Depends-on): Likewise.
15287         * modules/open (Depends-on): Likewise.
15288         * modules/savewd (Depends-on): Likewise.
15289         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15290         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15291
15292 2009-08-22  Bruno Haible  <bruno@clisp.org>
15293
15294         * modules/binary-io (License): Relicense under LGPL.
15295         * modules/pipe2 (License): Likewise.
15296
15297 2009-08-22  Bruno Haible  <bruno@clisp.org>
15298
15299         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15300         return value.
15301         * lib/pipe-filter-gi.c (filter_init): Likewise.
15302         Reported by Eric Blake.
15303
15304 2009-08-22  Bruno Haible  <bruno@clisp.org>
15305
15306         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15307         * modules/pipe (Depends-on): Add pipe2.
15308
15309 2009-08-22  Bruno Haible  <bruno@clisp.org>
15310
15311         Tests for module 'pipe2'.
15312         * modules/pipe2-tests: New file.
15313         * tests/test-pipe2.c: New file.
15314
15315         New module 'pipe2'.
15316         * lib/unistd.in.h (pipe2): New declaration.
15317         * lib/pipe2.c: New file.
15318         * m4/pipe2.m4: New file.
15319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15320         HAVE_PIPE2.
15321         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15322         * modules/pipe2: New file.
15323         * doc/glibc-functions/pipe2.texi: Mention the new module.
15324
15325 2009-08-22  Bruno Haible  <bruno@clisp.org>
15326
15327         Reference some new glibc functions.
15328         * doc/glibc-functions/accept4.texi: New file.
15329         * doc/glibc-functions/dup3.texi: New file.
15330         * doc/glibc-functions/mkostemp.texi: New file.
15331         * doc/glibc-functions/pipe2.texi: New file.
15332         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15333         (Glibc sys/socket.h): Refer to accept4.
15334         (Glibc unistd.h): Refer to dup3, pipe2.
15335         Reported by Eric Blake.
15336
15337 2009-08-22  Jim Meyering  <meyering@redhat.com>
15338             Bruno Haible  <bruno@clisp.org>
15339
15340         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15341         This makes it so packages using automake-1.11's silent-rules option
15342         can print e.g., a single "GEN    configmake.h" line, rather than
15343         the 30+ statements that perform the job.  If you want to see the
15344         actual commands, you can still run "make V=1".
15345         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15346         so that make output is abbreviated when those variables are defined
15347         appropriately.
15348         * modules/argz: Likewise.
15349         * modules/arpa_inet: Likewise.
15350         * modules/byteswap: Likewise.
15351         * modules/configmake: Likewise.
15352         * modules/dirent: Likewise.
15353         * modules/errno: Likewise.
15354         * modules/fcntl: Likewise.
15355         * modules/float: Likewise.
15356         * modules/fnmatch: Likewise.
15357         * modules/getopt-posix: Likewise.
15358         * modules/glob: Likewise.
15359         * modules/iconv_open: Likewise.
15360         * modules/inttypes: Likewise.
15361         * modules/localcharset: Likewise.
15362         * modules/locale: Likewise.
15363         * modules/math: Likewise.
15364         * modules/netdb: Likewise.
15365         * modules/netinet_in: Likewise.
15366         * modules/poll: Likewise.
15367         * modules/posix_spawnp-tests: Likewise.
15368         * modules/sched: Likewise.
15369         * modules/search: Likewise.
15370         * modules/selinux-h: Likewise.
15371         * modules/signal: Likewise.
15372         * modules/spawn: Likewise.
15373         * modules/stdarg: Likewise.
15374         * modules/stdbool: Likewise.
15375         * modules/stddef: Likewise.
15376         * modules/stdint: Likewise.
15377         * modules/stdio: Likewise.
15378         * modules/stdlib: Likewise.
15379         * modules/string: Likewise.
15380         * modules/strings: Likewise.
15381         * modules/sys_file: Likewise.
15382         * modules/sys_ioctl: Likewise.
15383         * modules/sys_select: Likewise.
15384         * modules/sys_socket: Likewise.
15385         * modules/sys_stat: Likewise.
15386         * modules/sys_time: Likewise.
15387         * modules/sys_times: Likewise.
15388         * modules/sys_utsname: Likewise.
15389         * modules/sys_wait: Likewise.
15390         * modules/sysexits: Likewise.
15391         * modules/time: Likewise.
15392         * modules/unistd: Likewise.
15393         * modules/wchar: Likewise.
15394         * modules/wctype: Likewise.
15395
15396 2009-08-22  Jim Meyering  <meyering@redhat.com>
15397
15398         announce-gen: detect write failure
15399         * build-aux/announce-gen: Add Coda at end.
15400         Remove equivalent-but-more-verbose block at top.
15401
15402 2009-08-19  Akim Demaille  <demaille@gostai.com>
15403
15404         bootstrap: --help to stdout.
15405         * bootstrap (usage): Don't send --help to stderr.
15406         Use a here doc instead of a long string.
15407
15408 2009-08-21  Eric Blake  <ebb9@byu.net>
15409
15410         test-popen-safer: split from test-popen
15411         * tests/test-popen.c (main): Move...
15412         * tests/test-popen.h: ...into new file.
15413         * tests/test-popen-safer2.c: New file.
15414         * modules/popen-tests (Files): Add test-popen.h.
15415         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15416         Suggested by Bruno Haible.
15417
15418         test-fcntl-safer: split from test-open
15419         * tests/test-open.c (main): Move...
15420         * tests/test-open.h: ...into new file.
15421         * tests/test-fcntl-safer.c: New file.
15422         * modules/open-tests (Files): Add test-open.h.
15423         * modules/fcntl-safer-tests: New file.
15424         Suggested by Bruno Haible.
15425
15426         test-fopen-safer: split from test-fopen
15427         * tests/test-fopen.c (main): Move...
15428         * tests/test-fopen.h: ...into new file.
15429         * tests/test-fopen-safer.c: New file.
15430         * modules/fopen-tests (Files): Add test-fopen.h.
15431         * modules/fopen-safer-tests: New file.
15432         Suggested by Bruno Haible.
15433
15434 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15435
15436         popen-safer: test O_CLOEXEC at run-time.
15437         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15438
15439 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15440
15441         fcntl: move more flags to the header
15442         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15443         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15444         * lib/fcntl.in.h: Do both things here.
15445
15446 2009-08-21  Jim Meyering  <meyering@redhat.com>
15447
15448         consistently remove $@-t before redirecting to it
15449         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15450         * modules/alloca-opt: Likewise.
15451         * modules/byteswap: Likewise.
15452         * modules/fnmatch: Likewise.
15453         * modules/getopt-posix: Likewise.
15454         * modules/glob: Likewise.
15455         * modules/poll: Likewise.
15456         * modules/posix_spawnp-tests: Likewise.
15457         * modules/sys_socket: Likewise.
15458         * modules/sysexits: Likewise.
15459
15460 2009-08-21  Eric Blake  <ebb9@byu.net>
15461
15462         popen: simplify access to original popen
15463         * lib/popen.c (rpl_popen): No need to worry about popen being a
15464         macro.
15465         Reported by Bruno Haible.
15466
15467 2009-08-20  Eric Blake  <ebb9@byu.net>
15468
15469         build: avoid some compiler warnings
15470         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15471         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15472         type.
15473         (new_exclude_segment, excluded_file_pattern_p)
15474         (excluded_file_name_p): Reduce scope.
15475         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15476         old-style declaration.
15477
15478 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15479
15480         * tests/test-exclude1.sh: Handle Windows EOL.
15481         * tests/test-exclude2.sh: Likewise.
15482         * tests/test-exclude3.sh: Likewise.
15483         * tests/test-exclude4.sh: Likewise.
15484         * tests/test-exclude5.sh: Likewise.
15485         * tests/test-exclude6.sh: Likewise.
15486         * tests/test-exclude7.sh: Likewise.
15487
15488 2009-08-19  Akim Demaille  <demaille@gostai.com>
15489
15490         bootstrap: find sha1sum when named gsha1sum.
15491         * bootstrap (find_tool): New.
15492         ($SHA1SUM): New.
15493         Use it.
15494
15495 2009-08-20  Jim Meyering  <meyering@redhat.com>
15496
15497         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15498         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15499         expression that converts "." in a file name to "\." in the resulting
15500         regexp.  Start with a dummy statement, so that prior shell variable
15501         definitions are expanded portably.  Reported by Simon Josefsson.
15502
15503 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15504
15505         Fix polling for writeability of a screen buffer.
15506         * lib/poll.c: Distinguish input and screen buffers for the
15507         Win32 implementation.
15508         * lib/select.c: Likewise.
15509
15510 2009-08-19  Eric Blake  <ebb9@byu.net>
15511
15512         popen-safer: prevent popen from clobbering std descriptors
15513         * modules/popen-safer: New file.
15514         * lib/popen-safer.c: Likewise.
15515         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15516         * lib/stdio--.h (popen): Provide override.
15517         * lib/stdio-safer.h (popen_safer): Provide declaration.
15518         * tests/test-popen.c (includes): Partially test this.
15519         * modules/popen-safer-tests: New file, for more tests.
15520         * tests/test-popen-safer.c: Likewise.
15521         * MODULES.html.sh (file stream based Input/Output): Mention it.
15522
15523         tests: test some of the *-safer modules
15524         * modules/fopen-safer (Depends-on): Add fopen.
15525         * modules/fcntl-safer (Depends-on): Add fcntl.
15526         * modules/stdlib-safer (Depends-on): Add stdlib.
15527         (configure.ac): Set indicator.
15528         * modules/unistd-safer (configure.ac): Likewise.
15529         * modules/tmpfile-safer (configure.ac): Likewise.
15530         (Depends-on): Add tmpfile.
15531         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15532         active.
15533         * tests/test-fopen.c (includes): Test safer versions when they are
15534         in use.
15535         * tests/test-open.c (includes): Likewise.
15536
15537         popen: fix cygwin 1.5 bug when stdin closed
15538         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15539         * modules/popen: New file.
15540         * modules/popen-tests: Likewise.
15541         * tests/test-popen.c: Likewise.
15542         * m4/popen.m4: Likewise.
15543         * lib/popen.c: Likewise.
15544         * lib/stdio.in.h (popen): New declaration.
15545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15546         * modules/stdio (Makefile.am): Likewise.
15547         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15548
15549 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15550
15551         maint.mk: give full control over update-copyright exclusions
15552         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15553         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15554         (update-copyright): Don't force inclusion of top-level
15555         ChangeLog.  Don't force exclusion of all COPYING files, but make
15556         them the default exclusion instead.
15557
15558 2009-08-16  Bruno Haible  <bruno@clisp.org>
15559
15560         Fix test failures on Solaris 10.
15561         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15562         tests when Solaris iconv() is used.
15563         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15564         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15565         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15566         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15567         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15568
15569 2009-08-16  Bruno Haible  <bruno@clisp.org>
15570
15571         Fix test failures on Solaris 10.
15572         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15573         'tr' program and pass it as first argument.
15574         * tests/test-pipe-filter-gi1.sh: Likewise.
15575         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15576         program as first argument.
15577         * tests/test-pipe-filter-gi1.c (main): Likewise.
15578
15579 2009-08-16  Eric Blake  <ebb9@byu.net>
15580
15581         fpurge: fix previous commits
15582         * modules/fpurge (Makefile.am): Make replacement conditional,
15583         partially reverting 2007-04-29 change; missed in previous
15584         attempt.
15585         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15586         is missing.
15587
15588 2009-08-16  Bruno Haible  <bruno@clisp.org>
15589
15590         Clarify fpurge's effect on the file position.
15591         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15592         * tests/test-fpurge.c (main): Make a second pass for checking the file
15593         position.
15594
15595 2009-08-16  Bruno Haible  <bruno@clisp.org>
15596
15597         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15598         declaration of fpurge is missing.
15599         * tests/test-fpurge.c (main): Check that the file has not more contents
15600         than expected. Close the file before removing it.
15601
15602 2009-08-15  Eric Blake  <ebb9@byu.net>
15603
15604         fpurge: don't wrap working cygwin implementation
15605         * lib/fpurge.c (fpurge): Fix comment typo.
15606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15607         1.7 to avoid replacement.
15608         * tests/test-fpurge.c (main): Enhance test.
15609
15610 2009-08-15  Eric Blake  <ebb9@byu.net>
15611         and Jim Meyering  <meyering@redhat.com>
15612
15613         test-update-copyright: skip if perl is insufficient
15614         * tests/test-update-copyright.sh: Failure to run maintainer tool
15615         should not cause testsuite failure on cygwin 1.5.
15616
15617 2009-08-14  Eric Blake  <ebb9@byu.net>
15618
15619         doc: mention more functions added in cygwin 1.7.0
15620         * doc/posix-headers/limits.texi (limits.h): Update for recent
15621         cygwin additions.
15622         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15623         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15624         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15625         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15626         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15627
15628 2009-08-14  Eric Blake  <ebb9@byu.net>
15629
15630         maint.mk: simplify update-copyright rule
15631         * top/maint.mk (update-copyright-local): Delete, and document how
15632         to do it in cfg.mk instead.
15633         (update-copyright-exclude-regexp): Delete, and document how to do
15634         it in .x-update-copyright instead.
15635         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15636         exclude ChangeLog.
15637
15638 2009-08-14  Bruno Haible  <bruno@clisp.org>
15639
15640         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15641
15642 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15643
15644         maint.mk: support update-copyright-env
15645         * top/maint.mk (update-copyright-env): Define place-holder.
15646         (update-copyright): Expand $(update-copyright-env) before
15647         invoking update-copyright.
15648
15649 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15650
15651         update-copyright: implement forced reformatting
15652         * build-aux/update-copyright: Implement and document
15653         UPDATE_COPYRIGHT_FORCE.
15654         * tests/test-update-copyright.sh: Test it.
15655
15656 2009-08-14  Eric Blake  <ebb9@byu.net>
15657         and Bruno Haible  <bruno@clisp.org>
15658
15659         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15660         * tests/test-locale.c: Revert previous patch related to NULL.
15661         * tests/test-stdio.c: Likewise.
15662         * tests/test-stdlib.c: Likewise.
15663         * tests/test-string.c: Likewise.
15664         * tests/test-unistd.c: Likewise.
15665         * modules/time-tests (Depends-on): Add verify.
15666         * modules/wchar-tests (Depends-on): Likewise.
15667         * tests/test-time.c: Test for NULL compliance.
15668         * tests/test-wchar.c: Likewise.
15669         * modules/locale (Depends-on): Add stddef.
15670         * modules/stdio (Depends-on): Likewise.
15671         * modules/stdlib (Depends-on): Likewise.
15672         * modules/string (Depends-on): Likewise.
15673         * modules/time (Depends-on): Likewise.
15674         * modules/unistd (Depends-on): Likewise.
15675         * modules/wchar (Depends-on): Likewise.
15676         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15677         * lib/stdlib.in.h (includes): Likewise.
15678         * lib/string.in.h (includes): Likewise.
15679         * lib/time.in.h (includes): Likewise.
15680         * lib/unistd.in.h (includes): Likewise.
15681         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15682         replaced.
15683         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15684         * m4/stddef_h.m4: New file.
15685         * modules/stddef: Likewise.
15686         * lib/stddef.in.h: Likewise.
15687         * modules/stddef-tests: Likewise.
15688         * tests/test-stddef.c: Likewise.
15689         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15690         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15691         * doc/posix-headers/locale.texi (locale.h): Likewise.
15692         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15693         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15694         * doc/posix-headers/string.texi (string.h): Likewise.
15695         * doc/posix-headers/time.texi (time.h): Likewise.
15696         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15697         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15698
15699 2009-08-14  Eric Blake  <ebb9@byu.net>
15700
15701         doc: improve git diff of texinfo files
15702         * .gitattributes: Add rule for *.texi files, with hint on how to
15703         use it.
15704         Copied from m4, and based on a report by Bruno Haible.
15705
15706 2009-08-14  Bruno Haible  <bruno@clisp.org>
15707
15708         Disable multithread support by default on Cygwin 1.5.x for real.
15709         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15710
15711 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15712
15713         update-copyright: much ado about intervals
15714         * build-aux/update-copyright: Implement and document
15715         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15716         of copyright year intervals.
15717         Also, document UPDATE_COPYRIGHT_YEAR.
15718         * tests/test-update-copyright.sh: Test it.
15719
15720         update-copyright: convert 2-digit to 4-digit years
15721         * build-aux/update-copyright: Implement and document.
15722         * tests/test-update-copyright.sh: Update.
15723
15724 2009-08-14  Jim Meyering  <meyering@redhat.com>
15725
15726         test-exclude: avoid coreutils "make check" failure
15727         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15728         just as in test-argmatch.c.
15729
15730 2009-08-13  Eric Blake  <ebb9@byu.net>
15731
15732         test-dup2: fix bad assumption
15733         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15734         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15735
15736         test-version-etc: fix CRLF portability issue
15737         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15738         recognize \r.
15739         * tests/test-argp-version-etc-1.sh: Likewise.
15740
15741         getopt: update client modules
15742         * modules/argp (Depends-on): Use getopt-gnu.
15743         * modules/git-merge-changelog (Depends-on): Likewise.
15744         * modules/long-options (Depends-on): Likewise.
15745         * modules/xstrtol (Depends-on): Likewise.
15746
15747 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15748
15749         * tests/test-version-etc.sh: Don't fail on different
15750         project/version.  Don't fail on CRLF differences.  Rewrite to use
15751         multiple -e instead of multiple sed forks, suggested by Eric Blake
15752         <ebb9@byu.net>.
15753         * tests/test-argp-version-etc-1.sh: Likewise.
15754
15755 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15756
15757         * tests/test-version-etc.sh: Don't fail on different
15758         project/version.
15759
15760 2009-08-12  Bruno Haible  <bruno@clisp.org>
15761
15762         Tests for modules 'getopt-posix', 'getopt-gnu'.
15763         * modules/getopt-posix-tests: New file.
15764         * tests/test-getopt.c: New file.
15765         * tests/test-getopt.h: New file.
15766         * tests/test-getopt_long.h: New file.
15767
15768         New modules 'getopt-posix', 'getopt-gnu'.
15769         * modules/getopt-gnu: New file, renamed from modules/getopt.
15770         * modules/getopt-posix: New file.
15771         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15772         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15773         (gl_GETOPT): Remove macro.
15774         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15775         Disable the test against BSD systems that declare optreset. Test
15776         against mingw bug. Test against lack of support of optional arguments
15777         on many platforms.
15778         * doc/glibc-headers/getopt.texi: Update module name and list of
15779         relevant platforms.
15780         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15781         'getopt-gnu' and more portability problems.
15782         * NEWS: Mention the changes.
15783
15784 2009-08-12  Bruno Haible  <bruno@clisp.org>
15785
15786         Ensure that optarg etc. get declared by <unistd.h>.
15787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15788         AC_USE_SYSTEM_EXTENSIONS.
15789         * modules/getopt (Depends-on): Add 'extensions'.
15790
15791 2009-08-12  Bruno Haible  <bruno@clisp.org>
15792
15793         Avoid test link errors.
15794         * modules/pipe-filter-ii-tests (Makefile.am): Define
15795         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15796         * modules/pipe-filter-gi-tests (Makefile.am): Define
15797         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15799
15800 2009-08-12  Bruno Haible  <bruno@clisp.org>
15801
15802         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15803         gl_GETOPT_SUBSTITUTE before.
15804         (gl_GETOPT): Use it.
15805         * m4/argp.m4 (gl_ARGP): Update.
15806         Reported by Sergey Poznyakoff.
15807
15808         * m4/getopt.m4: Reorder macros.
15809         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15810         (gl_GETOPT_SUBSTITUTE): Remove macro.
15811
15812 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15813
15814         Minor improvement in gitlog-to-changelog
15815
15816         * build-aux/gitlog-to-changelog: New option `--format' makes
15817         output format string configurable.
15818
15819 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15820
15821         Optimize exclude: use hash tables for non-wildcard patterns.
15822
15823         * lib/exclude.c: Include hash.h and mbuiter.h
15824         (struct exclude_pattern, exclude_segment): New data types.
15825         (struct exclude): Rewrite.
15826         (fnmatch_pattern_has_wildcards): New function.
15827         (new_exclude_segment, free_exclude_segment): New functions.
15828         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15829         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15830         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15831         * modules/exclude: Depend on hash and mbuiter.
15832
15833         * modules/exclude-tests: New file.
15834         * tests/test-exclude.c: New file.
15835         * tests/test-exclude1.sh: New file.
15836         * tests/test-exclude2.sh: New file.
15837         * tests/test-exclude3.sh: New file.
15838         * tests/test-exclude4.sh: New file.
15839         * tests/test-exclude5.sh: New file.
15840         * tests/test-exclude6.sh: New file.
15841         * tests/test-exclude7.sh: New file.
15842
15843 2009-08-12  Bruno Haible  <bruno@clisp.org>
15844
15845         Ensure that getopt() gets declared by <unistd.h>.
15846         * lib/unistd.in.h: Conditionally include getopt.h.
15847         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15848         Set GNULIB_UNISTD_H_GETOPT.
15849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15850         GNULIB_UNISTD_H_GETOPT.
15851         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15852
15853 2009-08-12  Bruno Haible  <bruno@clisp.org>
15854
15855         Clarify logic.
15856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15857         gl_replace_getopt instead of GETOPT_H.
15858
15859 2009-08-12  Bruno Haible  <bruno@clisp.org>
15860
15861         * m4/getopt.m4: Add comments.
15862
15863 2009-08-12  Bruno Haible  <bruno@clisp.org>
15864
15865         Disable multithread support by default on Cygwin 1.5.x.
15866         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15867         set gl_use_threads=no if not specified otherwise.
15868
15869 2009-08-11  Bruno Haible  <bruno@clisp.org>
15870
15871         Avoid compilation error on NetBSD 5.0.
15872         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15873         * tests/test-stdio.c: Likewise.
15874         * tests/test-stdlib.c: Likewise.
15875         * tests/test-string.c: Likewise.
15876         * tests/test-unistd.c: Likewise.
15877         Reported by Greg Troxel <gdt@ir.bbn.com>
15878         at <https://savannah.gnu.org/support/?106973>.
15879
15880 2009-08-11  Bruno Haible  <bruno@clisp.org>
15881
15882         * modules/dup2-tests (Depends-on): Remove close.
15883
15884         Undo 2009-07-19 commit.
15885         * modules/acl-tests (Depends-on): Remove close.
15886         * modules/binary-io-tests (Depends-on): Likewise.
15887         * modules/closein-tests (Depends-on): Likewise.
15888         * modules/flock-tests (Depends-on): Likewise.
15889         * modules/fsync-tests (Depends-on): Likewise.
15890         * modules/lseek-tests (Depends-on): Likewise.
15891         * modules/pipe-tests (Depends-on): Likewise.
15892         * modules/posix_spawn-tests (Depends-on): Likewise.
15893         * modules/posix_spawnp-tests (Depends-on): Likewise.
15894         * modules/stat-time-tests (Depends-on): Likewise.
15895         * modules/yesno-tests (Depends-on): Likewise.
15896
15897 2009-08-10  Bruno Haible  <bruno@clisp.org>
15898
15899         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15900
15901 2009-08-10  Bruno Haible  <bruno@clisp.org>
15902
15903         Fix a gcc warning.
15904         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15905
15906 2009-08-10  Bruno Haible  <bruno@clisp.org>
15907
15908         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15909         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15910         not only the first time.
15911         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15912         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15913         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15914         is 1, not only the the first time.
15915
15916 2009-08-10  Bruno Haible  <bruno@clisp.org>
15917
15918         Make it possible to use module 'gethostname' without module 'close'.
15919         * lib/unistd.in.h (close): Evoke a link error only if
15920         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15922         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15923         * modules/unistd (Makefile.am): Substitute
15924         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15925         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15926         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15928         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15929         * modules/sys_ioctl (Makefile.am): Substitute
15930         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15931         * modules/socket (configure.ac): On native Windows, set
15932         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15933         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15934         Reported by Sam Steingold <sds@gnu.org>.
15935
15936 2009-08-10  Bruno Haible  <bruno@clisp.org>
15937
15938         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15939         * modules/ioctl (configure.ac): Likewise.
15940
15941 2009-08-10  Bruno Haible  <bruno@clisp.org>
15942
15943         Avoid collision between gnulib wrapper and libintl wrapper.
15944         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15945         already defined in intl/printf.c.
15946         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15947         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15948
15949 2009-08-09  Bruno Haible  <bruno@clisp.org>
15950
15951         Make <sys/select.h> really self-contained, also on Solaris 10.
15952         * lib/sys_select.in.h: Include <string.h>.
15953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15954         Solaris 10 problem.
15955         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15956         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15957         Reported by Jim Meyering.
15958
15959 2009-08-09  Bruno Haible  <bruno@clisp.org>
15960
15961         Avoid warnings from 'aclocal' that are due to a use of macro name
15962         AM_XGETTEXT_OPTION that is not defined in automake.
15963         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15964         automake.
15965         * modules/error (configure.ac): Likewise.
15966         * modules/propername (configure.ac): Likewise.
15967         * modules/vasprintf (configure.ac): Likewise.
15968         * modules/verror (configure.ac): Likewise.
15969         * modules/xprintf (configure.ac): Likewise.
15970         * modules/xvasprintf (configure.ac): Likewise.
15971
15972 2009-08-08  Bruno Haible  <bruno@clisp.org>
15973
15974         Avoid compilation error in C++ mode.
15975         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15976         Reported by Sam Steingold <sds@gnu.org>.
15977
15978 2009-08-08  Bruno Haible  <bruno@clisp.org>
15979
15980         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15981         for the various Unix platforms.
15982         * doc/posix-headers/limits.texi: Update platforms list regarding
15983         HOST_NAME_MAX.
15984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15985
15986 2009-08-07  Jim Meyering  <meyering@redhat.com>
15987
15988         selinux-at: fix typo in a comment
15989         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15990         Spotted by Paolo Bonzini.
15991
15992         selinux-at: remove redundant m4 code, add documentation
15993         * modules/selinux-at (configure.ac): Remove redundant code.
15994         LIB_SELINUX is already set via the dependent module, selinux-h.
15995         (Include): Add quotes around selinux-at.h.
15996         * lib/selinux-at.h: Add documentation.
15997         Reported by Bruno Haible in
15998         http://marc.info/?l=gnulib-bug&m=124958988300749
15999
16000 2009-08-07  Bruno Haible  <bruno@clisp.org>
16001
16002         Avoid link error on MacOS X 10.3 and 10.4.
16003         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16004         on non-ELF systems.
16005         * lib/argp-pv.c (argp_program_version): Likewise.
16006         Reported by Simon Josefsson.
16007
16008 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16009
16010         * tests/test-version-etc.sh: Use $EXEEXT.
16011
16012 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16013
16014         update-copyright: update documentation to point to maint.mk
16015         * build-aux/update-copyright: Here.
16016
16017 2009-08-06  Jim Meyering  <meyering@redhat.com>
16018
16019         maint.mk: support update-copyright-local
16020         * top/maint.mk (update-copyright-local): Define place-holder.
16021         (update-copyright): Depend on $(update-copyright-local).
16022
16023 2009-08-06  Jim Meyering  <meyering@redhat.com>
16024
16025         selinux-at: new module
16026         Initially written for coreutils, this module will soon be
16027         used by findutils, too.
16028         * MODULES.html.sh [Misc]: Add selinux-at.
16029         * lib/selinux-at.h: New file, from coreutils.
16030         * lib/selinux-at.c: Likewise.
16031         * modules/selinux-at: Likewise.
16032         (License): Change from LGPL to GPL, since it depends
16033         on the GPL'd openat module.
16034
16035         doc: update README
16036         * README: Remove references to cogito.
16037         Remove cvs-repo-updating instructions from 2007.
16038         Don't imply that CVS is better if you have limited disk space.
16039
16040 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16041
16042         update-copyright: support C-style comments
16043         * build-aux/update-copyright: Implement and document.
16044         * tests/test-update-copyright.sh: Test.
16045
16046 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16047
16048         update-copyright: support omitted "(C)"
16049         * build-aux/update-copyright: Implement and document.  Also,
16050         allow variable whitespace before "(C)".
16051         * tests/test-update-copyright.sh: Test.
16052
16053 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16054
16055         update-copyright: don't trip on non-FSF copyright statements
16056         * build-aux/update-copyright: Fix so that the first correctly
16057         formatted FSF copyright statement is recognized no matter what
16058         appears before it.  Update documentation.
16059         * tests/test-update-copyright.sh: Test that.
16060
16061 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16062
16063         update-copyright: clean up code a little
16064         * build-aux/update-copyright: Append "_re" to the name of any
16065         variable holding a regular expression.
16066         Replace "old" and "new" with "stmt" in variable names.
16067         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16068         handled correctly.
16069         Format code more consistently.
16070
16071 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16072
16073         update-copyright-tests: improve portability
16074         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16075         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16076
16077 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16078
16079         update-copyright: support @copyright{} and &copy;
16080         * build-aux/update-copyright: Implement and document.
16081         * tests/test-update-copyright.sh: Test.
16082
16083 2009-08-04  Jim Meyering  <meyering@redhat.com>
16084
16085         update-copyright-tests: correctly test EOL=\r\n handling
16086         * tests/test-update-copyright.sh: Put \r at the end of some lines
16087         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16088
16089         maint.mk: make update-copyright exclusion list more configurable
16090         * top/maint.mk (update-copyright): Default to excluding COPYING,
16091         but allow an override, in case someone does want to update that file.
16092
16093         maint.mk: don't update copyright date in COPYING
16094         * top/maint.mk (update-copyright): Exclude COPYING.
16095
16096         maint.mk: add a copyright-updating rule
16097         * top/maint.mk (update-copyright): New rule.
16098         Derived from coreutils/Makefile.am.
16099
16100         update-copyright: rename some variables
16101         * build-aux/update-copyright: Rename a few variables for clarity.
16102         Tweak syntax.  List Joel E. Denny as coauthor.
16103
16104 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16105
16106         update-copyright: fix bug for 2-digit last year and add tests
16107         * build-aux/update-copyright: Fix bug.
16108         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16109         specified.
16110         * modules/update-copyright-tests: New
16111         * tests/test-update-copyright.sh: New.
16112
16113 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16114
16115         update-copyright: handle leading tabs in line prefix
16116         * build-aux/update-copyright: Count leading tabs as 8 spaces
16117         when computing margin.  This helps with the formatting of
16118         ChangeLogs, for example.
16119         Fix documentation a little.
16120
16121 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16122
16123         update-copyright: support EOL=\r\n
16124         * build-aux/update-copyright: Implement that.
16125
16126 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16127
16128         update-copyright: automatically format copyright statements
16129         * build-aux/update-copyright: Implement that.
16130         Also, be a little more predictable and safer by always failing
16131         when the full copyright format is not perfectly recognized as an
16132         unbroken whole.  Discussed at
16133         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16134         Rewrite documentation.
16135
16136 2009-08-03  Bruno Haible  <bruno@clisp.org>
16137
16138         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16139
16140 2009-08-02  Bruno Haible  <bruno@clisp.org>
16141
16142         Tests for module 'uname'.
16143         * modules/uname-tests: New file.
16144         * tests/test-uname.c: New file.
16145
16146         New module 'uname'.
16147         * lib/uname.c: New file.
16148         * m4/uname.m4: New file.
16149         * modules/uname: New file.
16150         * doc/posix-functions/uname.texi: Mention the new module.
16151
16152 2009-08-02  Bruno Haible  <bruno@clisp.org>
16153
16154         Tests for module 'sys_utsname'.
16155         * modules/sys_utsname-tests: New file.
16156         * tests/test-sys_utsname.c: New file.
16157
16158         New module 'sys_utsname'.
16159         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16160         * m4/sys_utsname_h.m4: New file.
16161         * modules/sys_utsname: New file.
16162         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16163
16164 2009-08-02  Bruno Haible  <bruno@clisp.org>
16165
16166         Implicitly initialize the sockets library.
16167         * lib/gethostname.c: Include sockets.h.
16168         (rpl_gethostname): Invoke gl_sockets_startup.
16169         * lib/socket.c: Include sockets.h.
16170         (rpl_socket): Invoke gl_sockets_startup.
16171         * modules/gethostname (Depends-on): Add sockets.
16172         * modules/socket (Depends-on): Likewise.
16173         * tests/test-poll.c: Don't include sockets.h.
16174         (main): Don't invoke gl_sockets_startup.
16175         * tests/test-select.c: Don't include sockets.h.
16176         (main): Don't invoke gl_sockets_startup.
16177
16178 2009-08-02  Bruno Haible  <bruno@clisp.org>
16179
16180         Allow multiple calls to gl_sockets_startup.
16181         * lib/sockets.c (initialized_sockets_version): New variable.
16182         (gl_sockets_startup): Do nothing if already called for this or a higher
16183         version.
16184         (gl_sockets_cleanup): Reset initialized_sockets_version.
16185
16186 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16187
16188         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16189         different project/version.
16190
16191 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16192             Bruno Haible  <bruno@clisp.org>
16193
16194         Tests for module 'pipe-filter-gi'.
16195         * modules/pipe-filter-gi-tests: New file.
16196         * tests/test-pipe-filter-gi1.sh: New file.
16197         * tests/test-pipe-filter-gi1.c: New file.
16198         * tests/test-pipe-filter-gi2.sh: New file.
16199         * tests/test-pipe-filter-gi2-main.c: New file.
16200         * tests/test-pipe-filter-gi2-child.c: New file.
16201
16202         New module 'pipe-filter-gi'.
16203         * lib/pipe-filter-gi.c: New file.
16204         * modules/pipe-filter-gi: New file.
16205
16206 2009-08-02  Bruno Haible  <bruno@clisp.org>
16207             Paolo Bonzini  <bonzini@gnu.org>
16208
16209         Tests for module 'pipe-filter-ii'.
16210         * modules/pipe-filter-ii-tests: New file.
16211         * tests/test-pipe-filter-ii1.sh: New file.
16212         * tests/test-pipe-filter-ii1.c: New file.
16213         * tests/test-pipe-filter-ii2.sh: New file.
16214         * tests/test-pipe-filter-ii2-main.c: New file.
16215         * tests/test-pipe-filter-ii2-child.c: New file.
16216
16217         New module 'pipe-filter-ii'.
16218         * lib/pipe-filter.h: New file.
16219         * lib/pipe-filter-ii.c: New file.
16220         * lib/pipe-filter-aux.h: New file.
16221         * modules/pipe-filter-ii: New file.
16222
16223 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16224
16225         * lib/gc-libgcrypt.c: Change copyright to FSF.
16226         * lib/gc-gnulib.c: Likewise.
16227
16228 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16229
16230         * lib/gethostname.c: Include limits.h.
16231
16232 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16233             Bruno Haible  <bruno@clisp.org>
16234
16235         Ensure HOST_NAME_MAX as part of the gethostname module.
16236         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16237         define also HOST_NAME_MAX.
16238         * tests/test-gethostname.c: Include <limits.h>.
16239         (main): Check also HOST_NAME_MAX.
16240         * doc/posix-headers/limits.texi: Document the mingw problem.
16241
16242 2009-08-02  Bruno Haible  <bruno@clisp.org>
16243
16244         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16245         Add comments.
16246
16247 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16248
16249         * lib/gethostname.c: Add Windows wrapper.
16250         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16251         * modules/gethostname: Depend on sys_socket & errno, for also
16252         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16253         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16254
16255 2009-07-31  Jim Meyering  <meyering@redhat.com>
16256
16257         getloadavg: fix symbol name in comment
16258         * lib/getloadavg.c: Correct a typo I introduced when adding
16259         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16260         Matt Kraai spotted the problem.
16261
16262 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16263
16264         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16265         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16266         code also if ! defined N_NAME_POINTER.
16267         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16268         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16269         but the n_name member is a 12-byte array.
16270
16271 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16272
16273         update-copyright: generalize comment handling
16274         * build-aux/update-copyright: Handle copyright statements
16275         within more comment styles.
16276         Document usage.
16277         Report any file with an external copyright holder or parse failure.
16278
16279 2009-07-29  Jim Meyering  <meyering@redhat.com>
16280
16281         mktime: correct setting of REPLACE_MKTIME
16282         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16283
16284         update-copyright: new module
16285         * modules/update-copyright: New file.
16286         * build-aux/update-copyright: New file.
16287         * MODULES.html.sh (maint+release support): Add update-copyright.
16288
16289 2009-07-27  Bruno Haible  <bruno@clisp.org>
16290
16291         Fix compilation error when <ctime> is used and mktime is replaced.
16292         * lib/time.in.h (mktime): New declaration.
16293         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16294         REPLACE_MKTIME instead of defining mktime in config.h.
16295         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16296         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16297         Reported by Ross McFarland <rwmcfa1@neces.com>.
16298
16299 2009-07-27  Bruno Haible  <bruno@clisp.org>
16300
16301         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16302         Reported by Matt Kraai <mkraai@beckman.com>.
16303
16304 2009-07-25  Jim Meyering  <meyering@redhat.com>
16305
16306         maint.mk: avoid warnings about missing files
16307         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16308         diagnostic when .prev-version does not exist.
16309         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16310         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16311         nonexistent cfg.mk.
16312         Suggestions from Simon Josefsson.
16313
16314 2009-07-25  Bruno Haible  <bruno@clisp.org>
16315
16316         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16317         defined as macros. Needed on QNX 6.4.1.
16318         Reported by Matt Kraai <mkraai@beckman.com>.
16319
16320 2009-07-23  Jim Meyering  <meyering@redhat.com>
16321
16322         maint.mk: invoke "make dist" with a working value of XZ_OPT
16323         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16324
16325 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16326
16327         Make fseeko.c compile on QNX.
16328         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16329
16330 2009-07-22  Peter Simons  <simons@cryp.to>
16331
16332         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16333         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16334         * lib/md4.h: Likewise.
16335         * lib/md5.h: Likewise.
16336         * lib/sha1.h: Likewise.
16337         * lib/sha256.h: Likewise.
16338         * lib/sha512.h: Likewise.
16339
16340         tests-sha1: don't assign literal string to 'char *' variable
16341         * tests/test-sha1.c (main): Declare locals with "const" to match
16342         attributes of the right hand side.
16343
16344 2009-07-21  Eric Blake  <ebb9@byu.net>
16345
16346         dup2: fix more mingw problems
16347         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16348         fd to itself.
16349         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16350         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16351         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16352         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16353         care of mingw bugs.
16354
16355 2009-07-21  Jim Meyering  <meyering@redhat.com>
16356
16357         vc-list-files: avoid failure when /bin/sh is dash
16358         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16359         On some Debian based systems, /bin/sh is a symlink to dash, and running
16360         this command would omit the "/" following each 'tests' prefix:
16361           dash -x build-aux/vc-list-files -C . tests
16362         That is because bash and dash work differently:
16363           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16364           bash ok
16365           dash odd
16366
16367 2009-07-21  Eric Blake  <ebb9@byu.net>
16368
16369         dup2-tests: test previous patch
16370         * modules/dup2-tests: New file.
16371         * tests/test-dup2.c: Likewise.
16372         * tests/test-open.c (main): Avoid unspecified behavior.
16373         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16374         test.
16375
16376         dup2: work around mingw and cygwin 1.5 bug
16377         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16379         * modules/unistd (Makefile.am): Substitute it.
16380         * lib/unistd.in.h (dup2): Declare the replacement.
16381         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16382         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16383         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16384         * modules/execute (Depends-on): Add dup2.
16385         * modules/fseterr (Depends-on): Likewise.
16386         * modules/pipe (Depends-on): Likewise.
16387         * modules/posix_spawn-internal (Depends-on): Likewise.
16388
16389 2009-07-21  Bruno Haible  <bruno@clisp.org>
16390
16391         * modules/.gitattributes: New file.
16392
16393 2009-07-20  Bruno Haible  <bruno@clisp.org>
16394
16395         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16396         (main): Use it.
16397
16398 2009-07-20  Eric Blake  <ebb9@byu.net>
16399
16400         test-pipe: make a bit more robust.
16401         * tests/test-pipe.c (myerr): Allow error messages regardless of
16402         what we do to stderr.
16403         (test_pipe): Rearrange to avoid deadlock.
16404         (child_main): Try a larger read, to ensure we avoided deadlock.
16405         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16406         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16407         if misused.
16408
16409 2009-07-19  Jim Meyering  <meyering@redhat.com>
16410
16411         fts: avoid false-positive cycle-detection
16412         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16413         for each new command line argument.
16414
16415 2009-07-19  Bruno Haible  <bruno@clisp.org>
16416
16417         Fix build error on mingw with the modules sys_select and unistd.
16418         * modules/acl-tests (Depends-on): Add close.
16419         * modules/binary-io-tests (Depends-on): Likewise.
16420         * modules/closein-tests (Depends-on): Likewise.
16421         * modules/flock-tests (Depends-on): Likewise.
16422         * modules/fsync-tests (Depends-on): Likewise.
16423         * modules/lseek-tests (Depends-on): Likewise.
16424         * modules/pipe-tests (Depends-on): Likewise.
16425         * modules/posix_spawn-tests (Depends-on): Likewise.
16426         * modules/posix_spawnp-tests (Depends-on): Likewise.
16427         * modules/stat-time-tests (Depends-on): Likewise.
16428         * modules/yesno-tests (Depends-on): Likewise.
16429
16430 2009-07-19  Bruno Haible  <bruno@clisp.org>
16431
16432         Unify conditionals.
16433         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16434         macros, not at the compiler macros.
16435         * lib/pipe.c: Likewise.
16436         * lib/execute.c: Likewise.
16437         * lib/spawni.c: Likewise.
16438
16439 2009-07-19  Bruno Haible  <bruno@clisp.org>
16440
16441         Fix handling of closed stdin/stdout/stderr on mingw.
16442         * lib/w32spawn.h: Include unistd.h.
16443         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16444         file descriptor with O_NOINHERIT flag.
16445         (fd_safer_noinherit): New function, based on fd-safer.c.
16446         (dup_safer_noinherit): New function, based on dup-safer.c.
16447         (undup_safer_noinherit): New function.
16448         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16449         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16450         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16451         instead of fd_safer.
16452         * tests/test-pipe.c: Include <windows.h>.
16453         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16454
16455         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16456         from main.
16457         (test_pipe): Pass an extra argument for disambiguation.
16458         (main): Invoke parent_main or child_main.
16459
16460         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16461         consistently.
16462
16463 2009-07-18  Eric Blake  <ebb9@byu.net>
16464
16465         test-pipe: fix mingw build
16466         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16467
16468 2009-07-18  Bruno Haible  <bruno@clisp.org>
16469
16470         * modules/pipe-tests (Makefile.am): Fix typo.
16471
16472 2009-07-18  Eric Blake  <ebb9@byu.net>
16473
16474         error: fix mingw build
16475         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16476         Reported by Bruno Haible.
16477
16478         error: avoid undefined use of stdout
16479         * lib/error.c (error, error_at_line): Check that fd 1 is open
16480         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16481         is handling faults and the close_stdout module wants to report the
16482         detection of closed stdout as an error.
16483
16484 2009-07-17  Eric Blake  <ebb9@byu.net>
16485
16486         pipe: be robust in face of closed fds
16487         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16488         should cause child to misbehave.
16489         * modules/pipe-tests: New module.
16490         * tests/test-pipe.c: New file.
16491         * tests/test-pipe.sh: New file.
16492         Reported by Akim Demaille.
16493
16494 2009-07-14  Bruno Haible  <bruno@clisp.org>
16495
16496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16497         Reported by anonymous kc.
16498
16499 2009-07-07  Jim Meyering  <meyering@redhat.com>
16500
16501         maint.mk: don't look for translatable strings in *.m4 or *.mk
16502         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16503         when searching for translatable strings.
16504
16505 2009-07-05  Jim Meyering  <meyering@redhat.com>
16506
16507         remove superfluous parentheses in STREQ definition
16508         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16509         * lib/getugroups.c (STREQ): Likewise.
16510         * lib/fnmatch.c (STREQ): Likewise.
16511         Spotted by Bruno Haible.
16512
16513 2009-07-04  Jim Meyering  <meyering@redhat.com>
16514
16515         argv-iter: new module
16516         * MODULES.html.sh: Add argv-iter.
16517         * lib/argv-iter.c, lib/argv-iter.h: New files.
16518         * modules/argv-iter: New file.
16519         * modules/argv-iter-tests: New file.
16520         * tests/test-argv-iter.c: Test it.
16521
16522 2009-07-04  Bruno Haible  <bruno@clisp.org>
16523
16524         Fix assertion.
16525         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16526         contains more exact copies of a given entry than file2, leave the extra
16527         copies unpaired rather than aborting.
16528         Reported by Eric Blake.
16529
16530 2009-07-02  Bruno Haible  <bruno@clisp.org>
16531
16532         Speedup git-merge-changelog for git cherry-pick.
16533         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16534         (entries_mapping_get): New function, extracted from compute_mapping.
16535         (entries_mapping_reverse_get): New function.
16536         (compute_mapping): Add a 'full' argument. Return the result in a
16537         'struct entries_mapping'.
16538         (main): Update. Access the mappings through entries_mapping_get.
16539         Reported by Eric Blake.
16540
16541 2009-07-02  Bruno Haible  <bruno@clisp.org>
16542
16543         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16544         best_i.
16545
16546 2009-07-02  Bruno Haible  <bruno@clisp.org>
16547
16548         Speed up approximate search for matching ChangeLog entries.
16549         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16550         argument. Call fstrcmp_bounded instead of fstrcmp.
16551         (compute_mapping, try_split_merged_entry, main): Update callers.
16552
16553 2009-07-02  Bruno Haible  <bruno@clisp.org>
16554
16555         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16556
16557 2009-06-30  Bruno Haible  <bruno@clisp.org>
16558
16559         Reduce the number of uc_is_cased calls.
16560         * lib/unicase.h (casing_suffix_context_t): Add
16561         'first_char_except_ignorable' field.
16562         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16563         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16564         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16565         Update initializer.
16566         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16567         case-ignorable characters.
16568         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16569         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16570         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16571         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16572         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16573
16574 2009-06-30  Bruno Haible  <bruno@clisp.org>
16575
16576         Tests for module 'unicase/ignorable'.
16577         * modules/unicase/ignorable-tests: New file.
16578         * tests/unicase/test-ignorable.c: New file, generated by
16579         gen-uni-tables.
16580
16581         Tests for module 'unicase/cased'.
16582         * modules/unicase/cased-tests: New file.
16583         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16584         * tests/unicase/test-predicate-part1.h: New file, derived from
16585         tests/unictype/test-predicate-part1.h.
16586         * tests/unicase/test-predicate-part2.h: New file, same as
16587         tests/unictype/test-predicate-part2.h.
16588
16589         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16590         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16591         (output_casing_properties): New function.
16592         (main): Call it.
16593         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16594         * lib/unicase/cased.c: Include unictype/bitmap.h.
16595         (uc_is_cased): Define through a bitmap lookup.
16596         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16597         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16598         (uc_is_case_ignorable): Define through a bitmap lookup.
16599         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16600         lib/unictype/bitmap.h.
16601         (Depends-on): Add inline. Clean up.
16602         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16603         lib/unictype/bitmap.h.
16604         (Depends-on): Add inline. Clean up.
16605         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16606         recognition.
16607         * tests/unicase/test-u16-tolower.c (main): Likewise.
16608         * tests/unicase/test-u32-tolower.c (main): Likewise.
16609
16610 2009-06-30  Bruno Haible  <bruno@clisp.org>
16611
16612         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16613         * lib/unicase/u16-casemap.c: Likewise.
16614         * lib/unicase/u32-casemap.c: Likewise.
16615
16616 2009-06-29  Bruno Haible  <bruno@clisp.org>
16617
16618         Define u32_casefold as a wrapper around u32_ct_casefold.
16619         * lib/unicase/u32-casefold.c: Update.
16620         * modules/unicase/u32-casefold (Depends-on): Add
16621         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16622         unicase/empty-suffix-context. Clean up.
16623
16624         Define u16_casefold as a wrapper around u16_ct_casefold.
16625         * lib/unicase/u16-casefold.c: Update.
16626         * modules/unicase/u16-casefold (Depends-on): Add
16627         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16628         unicase/empty-suffix-context. Clean up.
16629
16630         Define u8_casefold as a wrapper around u8_ct_casefold.
16631         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16632         * lib/unicase/u8-casefold.c: Update.
16633         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16634         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16635
16636         Define u32_totitle as a wrapper around u32_ct_totitle.
16637         * lib/unicase/u32-totitle.c: Update.
16638         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16639         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16640
16641         Define u16_totitle as a wrapper around u16_ct_totitle.
16642         * lib/unicase/u16-totitle.c: Update.
16643         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16644         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16645
16646         Define u8_totitle as a wrapper around u8_ct_totitle.
16647         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16648         functions.
16649         (FUNC): Delegate to U_CT_TOTITLE.
16650         * lib/unicase/u8-totitle.c: Update.
16651         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16652         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16653
16654         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16655         invocation.
16656         * modules/unicase/u32-tolower (Depends-on): Add
16657         unicase/empty-prefix-context, unicase/empty-suffix-context.
16658
16659         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16660         invocation.
16661         * modules/unicase/u16-tolower (Depends-on): Add
16662         unicase/empty-prefix-context, unicase/empty-suffix-context.
16663
16664         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16665         * modules/unicase/u8-tolower (Depends-on): Add
16666         unicase/empty-prefix-context, unicase/empty-suffix-context.
16667
16668         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16669         invocation.
16670         * modules/unicase/u32-toupper (Depends-on): Add
16671         unicase/empty-prefix-context, unicase/empty-suffix-context.
16672
16673         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16674         invocation.
16675         * modules/unicase/u16-toupper (Depends-on): Add
16676         unicase/empty-prefix-context, unicase/empty-suffix-context.
16677
16678         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16679         * modules/unicase/u8-toupper (Depends-on): Add
16680         unicase/empty-prefix-context, unicase/empty-suffix-context.
16681
16682         New module 'unicase/u32-ct-casefold'.
16683         * lib/unicase/u32-ct-casefold.c: New file.
16684         * modules/unicase/u32-ct-casefold: New file.
16685
16686         New module 'unicase/u16-ct-casefold'.
16687         * lib/unicase/u16-ct-casefold.c: New file.
16688         * modules/unicase/u16-ct-casefold: New file.
16689
16690         New module 'unicase/u8-ct-casefold'.
16691         * lib/unicase/u8-ct-casefold.c: New file.
16692         * lib/unicase/u-ct-casefold.h: New file, derived from
16693         lib/unicase/u-casefold.h.
16694         * modules/unicase/u8-ct-casefold: New file.
16695
16696         New module 'unicase/u32-ct-totitle'.
16697         * lib/unicase/u32-ct-totitle.c: New file.
16698         * modules/unicase/u32-ct-totitle: New file.
16699
16700         New module 'unicase/u16-ct-totitle'.
16701         * lib/unicase/u16-ct-totitle.c: New file.
16702         * modules/unicase/u16-ct-totitle: New file.
16703
16704         New module 'unicase/u8-ct-totitle'.
16705         * lib/unicase/u8-ct-totitle.c: New file.
16706         * lib/unicase/u-ct-totitle.h: New file, derived from
16707         lib/unicase/u-totitle.h.
16708         * modules/unicase/u8-ct-totitle: New file.
16709
16710         New module 'unicase/u32-ct-tolower'.
16711         * lib/unicase/u32-ct-tolower.c: New file.
16712         * modules/unicase/u32-ct-tolower: New file.
16713
16714         New module 'unicase/u16-ct-tolower'.
16715         * lib/unicase/u16-ct-tolower.c: New file.
16716         * modules/unicase/u16-ct-tolower: New file.
16717
16718         New module 'unicase/u8-ct-tolower'.
16719         * lib/unicase/u8-ct-tolower.c: New file.
16720         * modules/unicase/u8-ct-tolower: New file.
16721
16722         New module 'unicase/u32-ct-toupper'.
16723         * lib/unicase/u32-ct-toupper.c: New file.
16724         * modules/unicase/u32-ct-toupper: New file.
16725
16726         New module 'unicase/u16-ct-toupper'.
16727         * lib/unicase/u16-ct-toupper.c: New file.
16728         * modules/unicase/u16-ct-toupper: New file.
16729
16730         New module 'unicase/u8-ct-toupper'.
16731         * lib/unicase/u8-ct-toupper.c: New file.
16732         * modules/unicase/u8-ct-toupper: New file.
16733
16734         Add context arguments to u*_casemap functions.
16735         * lib/unicase/unicasemap.h: Include unicase.h.
16736         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16737         suffix_context arguments.
16738         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16739         functions.
16740         (FUNC): Add prefix_context and suffix_context arguments. Use
16741         uc_is_cased and uc_is_case_ignorable.
16742         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16743         * lib/unicase/u16-casemap.c: Likewise.
16744         * lib/unicase/u32-casemap.c: Likewise.
16745         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16746         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16747         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16748         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16749         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16750         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16751
16752         New module 'unicase/u32-suffix-context'.
16753         * lib/unicase/u32-suffix-context.c: New file.
16754         * modules/unicase/u32-suffix-context: New file.
16755
16756         New module 'unicase/u16-suffix-context'.
16757         * lib/unicase/u16-suffix-context.c: New file.
16758         * modules/unicase/u16-suffix-context: New file.
16759
16760         New module 'unicase/u8-suffix-context'.
16761         * lib/unicase/u8-suffix-context.c: New file.
16762         * lib/unicase/u-suffix-context.h: New file.
16763         * modules/unicase/u8-suffix-context: New file.
16764
16765         New module 'unicase/empty-suffix-context'.
16766         * lib/unicase/empty-suffix-context.c: New file.
16767         * modules/unicase/empty-suffix-context: New file.
16768
16769         New module 'unicase/u32-prefix-context'.
16770         * lib/unicase/u32-prefix-context.c: New file.
16771         * modules/unicase/u32-prefix-context: New file.
16772
16773         New module 'unicase/u16-prefix-context'.
16774         * lib/unicase/u16-prefix-context.c: New file.
16775         * modules/unicase/u16-prefix-context: New file.
16776
16777         New module 'unicase/u8-prefix-context'.
16778         * lib/unicase/u8-prefix-context.c: New file.
16779         * lib/unicase/u-prefix-context.h: New file.
16780         * lib/unicase/context.h: New file.
16781         * modules/unicase/u8-prefix-context: New file.
16782
16783         New module 'unicase/empty-prefix-context'.
16784         * lib/unicase/empty-prefix-context.c: New file.
16785         * modules/unicase/empty-prefix-context: New file.
16786
16787         New module 'unicase/ignorable'.
16788         * lib/unicase/ignorable.c: New file.
16789         * modules/unicase/ignorable: New file.
16790
16791         New module 'unicase/cased'.
16792         * lib/unicase/caseprop.h: New file.
16793         * lib/unicase/cased.c: New file.
16794         * modules/unicase/cased: New file.
16795
16796         New functions for case mapping of substrings.
16797         * lib/unicase.h (casing_prefix_context_t): New type.
16798         (unicase_empty_prefix_context): New variable.
16799         (u8_casing_prefix_context, u16_casing_prefix_context,
16800         u32_casing_prefix_context, u8_casing_prefixes_context,
16801         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16802         declarations.
16803         (casing_suffix_context_t): New type.
16804         (unicase_empty_suffix_context): New variable.
16805         (u8_casing_suffix_context, u16_casing_suffix_context,
16806         u32_casing_suffix_context, u8_casing_suffixes_context,
16807         u16_casing_suffixes_context, u32_casing_suffixes_context,
16808         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16809         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16810         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16811         declarations.
16812
16813 2009-06-28  Jim Meyering  <meyering@redhat.com>
16814
16815         boostrap: indent only with spaces
16816         * build-aux/bootstrap: Indent only with spaces, never TABs.
16817
16818         bootstrap: split long lines
16819         * build-aux/bootstrap: Keep line length < 80.
16820
16821         bootstrap: sync from coreutils
16822         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16823         just as autoreconf does.  Verify a list of prerequisite
16824         package-name,version-number pairs if defined in bootstrap.conf.
16825         Refer to README-prereq, if prerequisites are not satisfied.
16826
16827 2009-06-27  Eric Blake  <ebb9@byu.net>
16828
16829         tests: add test for bogus NULL definition
16830         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16831         * tests/test-stdlib.c: Likewise.
16832         * tests/test-string.c: Likewise.
16833         * tests/test-locale.c: Likewise.
16834         * tests/test-unistd.c: Likewise.
16835         * modules/stdio-tests (Depends-on): Add verify.
16836         * modules/stdlib-tests (Depends-on): Likewise.
16837         * modules/string-tests (Depends-on): Likewise.
16838         * modules/locale-tests (Depends-on): Likewise.
16839         * modules/unistd-tests (Depends-on): Likewise.
16840
16841 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16842
16843         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16844         self-explaining comment.
16845         * m4/selinux-selinux-h: Update serial.
16846         (gl_LIBSELINUX): New macro, adding a warning for missing development
16847         packages to code extracted from...
16848         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16849         Add warning for missing development packages here, too.
16850
16851 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16852
16853         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16854
16855 2009-06-25  Eric Blake  <ebb9@byu.net>
16856
16857         version-etc: fix regression
16858         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16859         gcc.
16860         (version_etc): Use it, to catch bugs with trailing NULL.
16861         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16862         (version_etc_va): Fix logic bug.
16863         * modules/version-etc-tests: Add test.
16864         * tests/test-version-etc.c: New file.
16865         * tests/test-version-etc.sh: Likewise.
16866
16867 2009-06-25  Sam Steingold  <sds@gnu.org>
16868
16869         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16870         mbtowc declaration.
16871
16872 2009-06-25  Eric Blake  <ebb9@byu.net>
16873
16874         fpurge: migrate into <stdio.h>
16875         * lib/fpurge.h: Delete...
16876         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16877         * lib/fpurge.c (fpurge): Change declaring header.
16878         * modules/fpurge (Files): Drop deleted file.
16879         (Depends-on): Add stdio.
16880         (configure.ac): Set witness.
16881         * modules/stdio (Makefile.am): Support fpurge macros.
16882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16883         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16884         * lib/fflush.c: Update client.
16885         * tests/test-fpurge.c: Likewise.
16886         * NEWS: Mention the change.
16887
16888 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16889
16890         * lib/argp-version-etc.c (program_authors): Add const
16891         qualifier.
16892         * lib/version-etc.c: Fix typos in the comments.
16893         * modules/argp-version-etc: Depends on version-etc.
16894
16895 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16896
16897         argp-version-etc: new module.
16898
16899         * lib/argp-version-etc.c: New file.
16900         * lib/argp-version-etc.h: New file.
16901         * modules/argp-version-etc: New file.
16902         * modules/argp-version-etc-tests: New file.
16903         * tests/test-argp-version-etc.c: New test.
16904         * tests/test-argp-version-etc-1.sh: New test.
16905
16906 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16907
16908         Provide additional interfaces and documentation for version-etc
16909         module.
16910
16911         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16912         interfaces.
16913         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16914         prototypes.
16915
16916 2009-06-24  Bruno Haible  <bruno@clisp.org>
16917
16918         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16919         HAVE_LIB${NAME} macro.
16920         Reported by Sam Steingold <sds@gnu.org>.
16921
16922 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16923
16924         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16925         needed.
16926
16927 2009-06-21  Bruno Haible  <bruno@clisp.org>
16928
16929         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16930         work.
16931         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16932         together with LIB${NAME}, LTLIB${NAME}.
16933         Reported by Sam Steingold <sds@gnu.org>.
16934
16935 2009-06-20  Jim Meyering  <meyering@redhat.com>
16936
16937         tests: make sc_require_test_exit_idiom more generic
16938         * top/maint.mk (Exit_witness_file): New overridable variable.
16939         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16940         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16941
16942 2009-06-19  Jim Meyering  <meyering@redhat.com>
16943
16944         hash: reverse order of src/dst parameters in an internal interface
16945         * lib/hash.c (transfer_entries): Reverse order of parameters to
16946         put DST before SRC.  Adjust callers.
16947
16948         tests: test-hash: avoid wholesale duplication
16949         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16950         Instead, use a loop and add a single conditional.
16951
16952         tests: test-hash: allow seed selection via a command line argument
16953         * tests/test-hash.c (get_seed): New function.
16954         (main): Use it.
16955
16956 2009-06-19  Eric Blake  <ebb9@byu.net>
16957
16958         hash: avoid memory leak on allocation failure
16959         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16960         failure.  Factor repeated algorithm...
16961         (transfer_entries): ...into new helper routine.
16962         (hash_delete): React to hash_rehash return value.
16963
16964         hash: reduce memory pressure in hash_rehash no-op case
16965         * lib/hash.c (next_prime): Avoid overflow.
16966         (hash_initialize): Factor bucket size computation...
16967         (compute_bucket_size): ...into new helper function.
16968         (hash_rehash): Use new function and open coding to reduce memory
16969         pressure, and avoid a memory leak in USE_OBSTACK code.
16970         Reported by Jim Meyering.
16971
16972 2009-06-18  Eric Blake  <ebb9@byu.net>
16973
16974         hash: make rotation more obvious
16975         * modules/hash (Depends-on): Add bitrotate and stdint.
16976         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16977         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16978         (SIZE_MAX): Rely on headers for definition.
16979         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16980         (raw_hasher): Use rotr_sz.
16981         Suggested by Jim Meyering.
16982
16983         hash: fix memory leak in last patch
16984         * lib/hash.c (hash_rehash): Avoid memory leak.
16985
16986         hash: avoid no-op rehashing
16987         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16988
16989         hash: provide default callback functions
16990         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16991         (hash_initialize): Use them as defaults.
16992         * tests/test-hash.c (main): Test this.
16993
16994         hash: minor optimization
16995         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16996         when possible.
16997         (hash_initialize): Document this promise.
16998         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16999         * tests/test-hash.c (hash_compare_strings): Test this.
17000
17001 2009-06-18  Bruno Haible  <bruno@clisp.org>
17002
17003         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17004         going to be replaced anyway.
17005
17006 2009-06-18  Bruno Haible  <bruno@clisp.org>
17007
17008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17009         in one place.
17010         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17011         be replaced anyway.
17012
17013 2009-06-18  Eric Blake  <ebb9@byu.net>
17014
17015         hash: check for resize before insertion
17016         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17017         threshold before insertion, so that a pathological hash_rehash
17018         that fills every bucket can still trigger another rehash.
17019
17020 2009-06-18  Jim Meyering  <meyering@redhat.com>
17021
17022         hash-tests: add a loop around the small tests
17023         * tests/test-hash.c (main): Repeat small tests with selected
17024         small initial table sizes.
17025
17026 2009-06-17  Eric Blake  <ebb9@byu.net>
17027
17028         hash: minor cleanups
17029         * lib/hash.h (hash_entry): Make opaque, by moving...
17030         * lib/hash.c (hash_entry): ...here.
17031         (hash_insert): Clarify restrictions on what can be inserted.
17032         (hash_get_next): Clarify when it is safe to remove an element
17033         during traversal.
17034         (check_tuning): Skip verification when tuning is known safe.
17035         (hash_initialize): Clarify restrictions on tuning.
17036
17037 2009-06-17  Jim Meyering  <jim@meyering.net>
17038         and Eric Blake  <ebb9@byu.net>
17039
17040         hash-tests: new module
17041         * modules/hash-tests: New file.
17042         * tests/test-hash.c: New file.
17043
17044 2009-06-17  Eric Blake  <ebb9@byu.net>
17045
17046         strstr-simple: document new module
17047         * MODULES.html.sh: Document new module.
17048
17049         strstr, strcasestr: replace on platforms with broken memchr
17050         * modules/strstr: Split into...
17051         * modules/strstr-simple: ...new module that does not care about
17052         performance, but does care about glibc bug.
17053         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17054         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17055         if platform memchr is broken, per Debian bug 521737.
17056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17057         memchr.
17058         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17059         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17060         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17061         * modules/mountlist (Depends-on): Add strstr-simple.
17062         * modules/gen-uni-tables (Depends-on): Likewise.
17063         * modules/argz (Depends-on): Add strstr.
17064
17065 2009-06-17  Bruno Haible  <bruno@clisp.org>
17066
17067         * modules/posix_spawn-internal (Depends-on): Add errno.
17068
17069 2009-06-17  Bruno Haible  <bruno@clisp.org>
17070
17071         Define missing ESTALE on Interix 3.5.
17072         * lib/errno.in.h (ESTALE): Assign a value if missing.
17073         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17074         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17075         missing.
17076         * doc/posix-headers/errno.texi: Mention the Interix bug.
17077         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17078
17079 2009-06-15  Eric Blake  <ebb9@byu.net>
17080
17081         memchr, memchr2: add valgrind exception
17082         * lib/memchr.valgrind: New file.
17083         * lib/memchr2.valgrind: New file.
17084         * modules/memchr (Files): Distribute valgrind file.
17085         * modules/memchr2 (Files): Likewise.
17086
17087         docs: memchr is no longer obsolete
17088         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17089         * lib/string.in.h (memchr): Simplify logic.
17090
17091 2009-06-14  Jim Meyering  <meyering@redhat.com>
17092
17093         link-follow: fix the "checking..." message to not mention trailing slash
17094         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17095         never considered trailing slashes.
17096
17097 2009-06-14  Bruno Haible  <bruno@clisp.org>
17098
17099         * m4/memchr.m4: Mention also the bug on IA-64.
17100         * doc/posix-functions/memchr.texi: Likewise.
17101
17102 2009-06-12  Eric Blake  <ebb9@byu.net>
17103
17104         memchr: detect broken x86_64 and alpha implementations
17105         * modules/memchr-tests (Depends-on): Move mmap detection...
17106         * modules/memchr (Depends-on): ...here.
17107         (configure.ac): Set indicator.
17108         * lib/string.in.h (memchr): Declare replacement.
17109         * modules/string (Makefile.am): Trigger replacement.
17110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17111         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17112         bugs.
17113         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17114         * modules/getpagesize (License): Relax license.
17115
17116 2009-06-11  Bruno Haible  <bruno@clisp.org>
17117
17118         * lib/idpriv.h: Add more references.
17119
17120 2009-06-08  Bruno Haible  <bruno@clisp.org>
17121
17122         Tests for module 'idpriv-droptemp'.
17123         * modules/idpriv-droptemp-tests: New file.
17124         * tests/test-idpriv-droptemp.sh: New file.
17125         * tests/test-idpriv-droptemp.su.sh: New file.
17126         * tests/test-idpriv-droptemp.c: New file.
17127
17128         New module 'idpriv-droptemp'.
17129         * lib/idpriv-droptemp.c: New file.
17130         * modules/idpriv-droptemp: New file.
17131
17132 2009-06-08  Bruno Haible  <bruno@clisp.org>
17133
17134         Tests for module 'idpriv-drop'.
17135         * modules/idpriv-drop-tests: New file.
17136         * tests/test-idpriv-drop.sh: New file.
17137         * tests/test-idpriv-drop.su.sh: New file.
17138         * tests/test-idpriv-drop.c: New file.
17139
17140         New module 'idpriv-drop'.
17141         * lib/idpriv.h: New file.
17142         * lib-idpriv-drop.c: New file.
17143         * m4/idpriv.m4: New file.
17144         * modules/idpriv-drop: New file.
17145
17146 2009-06-08  Bruno Haible  <bruno@clisp.org>
17147
17148         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17155
17156 2009-06-08  Eric Blake  <ebb9@byu.net>
17157
17158         test-strstr: use memory fence, when possible
17159         * tests/test-strstr.c (main): Use memory fence, in order to be
17160         more likely to trigger Debian bug 521737.
17161         * modules/strstr-tests (Files): Pull in additional files.
17162
17163         memchr: no longer obsolete, for wider field testing
17164         * modules/memchr (Status, Notice): Delete, this module is no
17165         longer obsolete.
17166         * modules/vasnprintf (Depends-on): Add memchr.
17167
17168 2009-06-07  Jim Meyering  <meyering@redhat.com>
17169
17170         hash: declare some functions with the warn_unused_result attribute
17171         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17172
17173 2009-06-07  Bruno Haible  <bruno@clisp.org>
17174
17175         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17176         Reported by Eric Blake.
17177
17178 2009-06-06  Eric Blake  <ebb9@byu.net>
17179
17180         test-alignof: fix typo with long double
17181         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17182         compiler error.
17183
17184 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17185
17186         Escape non-texinfo { and }s.
17187         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17188         markup error.
17189
17190 2009-06-04  Jim Meyering  <meyering@redhat.com>
17191
17192         gitlog-to-changelog: don't infloop on an empty commit log
17193         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17194         Reported by Boris Petersen <transacid@centerim.org>.
17195
17196 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17197
17198         version-etc: extend for packagers
17199         Add three new configure options, intended for packagers:
17200           --with-packager="packager name"
17201           --with-packager-version="packager-specific version"
17202           --with-packager-bug-reports="packager bug reporting"
17203         An example with coreutils:
17204           $ ./configure \
17205             --with-packager=Gentoo \
17206             --with-packager-bug-report=http://bugs.gentoo.org/ \
17207             --with-packager-version="patchset 1.6"
17208           $ ./src/ls --version | head -n2
17209           ls (GNU coreutils) 7.1-dirty
17210           Packaged by Gentoo (patchset 1.6)
17211         Note that the bug reporting info via --help doesn't show up because
17212         coreutils uses its own custom emit_bug_reporting_address() implementation
17213         in src/system.h.  If it didn't, it'd look like:
17214           $ ./src/ls --help | tail -n4
17215           Report bugs to <bug-coreutils@gnu.org>.
17216           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17217           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17218           General help using GNU software: <http://www.gnu.org/gethelp/>.
17219         * lib/version-etc.c: Print new information, if provided.
17220         * m4/version-etc.m4: New file.
17221         * modules/version-etc (Files): Add m4/version-etc.m4.
17222         (configure.ac): Add gl_VERSION_ETC.
17223
17224 2009-05-31  Bruno Haible  <bruno@clisp.org>
17225
17226         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17227         and 'int64_t'.
17228         * modules/alignof-tests (Dependencies): Add stdint.
17229         Reported by Eric Blake.
17230
17231 2009-05-31  Bruno Haible  <bruno@clisp.org>
17232
17233         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17234         restriction due to compiler bugs.
17235         Reported by Eric Blake.
17236
17237 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17238             Bruno Haible  <bruno@clisp.org>
17239
17240         Fix test-alignof failure.
17241         * lib/alignof.h (alignof_slot): New macro.
17242         (alignof_type): New macro, with the same semantics as the previous
17243         'alignof'.
17244         (alignof): Alias to alignof_slot.
17245         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17246         check that the results are usable as constant expressions.
17247
17248 2009-05-31  Bruno Haible  <bruno@clisp.org>
17249
17250         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17251         * tests/test-memchr.c (main): Check that memchr does not read past the
17252         first occurrence of the byte.
17253         * tests/test-strstr.c (main): Update comment.
17254         Suggested by Eric Blake.
17255
17256 2009-05-30  Bruno Haible  <bruno@clisp.org>
17257
17258         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17259         detail how to use dumpbin.
17260         Reported by David Byron <dbyron@dbyron.com>.
17261
17262 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17263
17264         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17265
17266 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17267
17268         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17269
17270 2009-05-28  Bruno Haible  <bruno@clisp.org>
17271
17272         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17273         build-aux/ files.
17274
17275 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17276
17277         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17278
17279 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17280
17281         * gnulib-tool (sed_transform_main_lib_file)
17282         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17283         regexps.
17284
17285 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17286
17287         * tests/test-strstr.c: Add another self-test.
17288         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17289         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17290
17291 2009-05-23  Bruno Haible  <bruno@clisp.org>
17292
17293         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17294         change.
17295
17296 2009-05-21  Bruno Haible  <bruno@clisp.org>
17297
17298         Simplify use of mode_t varargs.
17299         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17300         uses 'mode_t' or 'int'.
17301         * lib/openat.c (openat): Likewise.
17302         * lib/open-safer.c (open_safer): Likewise.
17303         * m4/mode_t.m4: New file.
17304         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17305         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17306         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17307         * modules/open (Files): Add m4/mode_t.m4.
17308         * modules/openat (Files): Likewise.
17309         * modules/fcntl-safer (Files): Likewise.
17310         Suggested by Eric Blake.
17311
17312 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17313
17314         * doc/glibc-functions/fallocate.texi: New file.
17315         * doc/gnulib.texi: Include it.
17316
17317 2009-05-21  Eric Blake  <ebb9@byu.net>
17318             Bruno Haible  <bruno@clisp.org>
17319
17320         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17321         invocations.
17322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17323
17324 2009-05-21  Eric Blake  <ebb9@byu.net>
17325             Bruno Haible  <bruno@clisp.org>
17326
17327         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17328         include_next. Fix of 2008-11-20 commit.
17329         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17330         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17331         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17332         NEXT_MATH_H.
17333         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17334         instead of NEXT_MATH_H.
17335
17336 2009-05-21  Bruno Haible  <bruno@clisp.org>
17337
17338         Avoid redefinition warnings for SIZE_MAX.
17339         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17340         Reported by Simon Josefsson.
17341
17342 2009-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17345         AC_CACHE_VAL.
17346
17347 2009-05-20  Bruno Haible  <bruno@clisp.org>
17348
17349         Make zeroptr.h work on mingw.
17350         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17351         mprotect.
17352         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17353         * modules/memchr2-tests (configure.ac): Likewise.
17354         * modules/memcmp-tests (configure.ac): Likewise.
17355         * modules/memmem-tests (configure.ac): Likewise.
17356         * modules/memrchr-tests (configure.ac): Likewise.
17357         Reported by Simon Josefsson.
17358
17359 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17360
17361         * tests/test-glob.c: Include string.h for strcmp prototype.
17362
17363 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17364
17365         * modules/getdelim (Depends-on): Add explicit stdint, although it
17366         was implicitly already pulled in via realloc-posix.
17367         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17368
17369 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17370
17371         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17372         G. Christensen" <tgc@jupiterrise.com>.
17373         * m4/sys_socket_h.m4: Check for sa_family_t.
17374         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17375         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17376         * tests/test-sys_socket.c: Check that sa_family_t works.
17377
17378 2009-05-18  Eric Blake  <ebb9@byu.net>
17379
17380         maint.mk: allow gnulib_dir in VPATH build
17381         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17382
17383 2009-05-15  Jim Meyering  <meyering@redhat.com>
17384
17385         maint.mk: Give gnulib_dir a default definition.
17386         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17387         Thus, most packages no longer need to specify this variable in cfg.mk
17388
17389 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17390
17391         rename.m4: fix typos that would make non-mingw cross-configure fail
17392         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17393
17394 2009-05-13  Eric Blake  <ebb9@byu.net>
17395
17396         mmap-anon: avoid out-of-order autoconf expansion
17397         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17398         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17399         * modules/memchr-tests (Depends-on): Add extensions.
17400         * modules/memchr2-tests (Depends-on): Add extensions.
17401         * modules/memcmp-tests (Depends-on): Add extensions.
17402         * modules/memmem-tests (Depends-on): Add extensions.
17403         * modules/memrchr-tests (Depends-on): Add extensions.
17404
17405 2009-05-13  Bruno Haible  <bruno@clisp.org>
17406
17407         Make some tests ISO C 99 compliant.
17408         * tests/zerosize-ptr.h: New file.
17409         * tests/test-memchr.c: Include zerosize-ptr.h.
17410         (main): Use a zero-size object pointer instead of NULL.
17411         * tests/test-memchr2.c: Include zerosize-ptr.h.
17412         (main): Use a zero-size object pointer instead of NULL.
17413         * tests/test-memcmp.c: Include zerosize-ptr.h.
17414         (main): Use a zero-size object pointer instead of NULL.
17415         * tests/test-memmem.c: Include zerosize-ptr.h.
17416         (main): Use a zero-size object pointer instead of NULL.
17417         * tests/test-memrchr.c: Include zerosize-ptr.h.
17418         (main): Use a zero-size object pointer instead of NULL.
17419         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17420         m4/mmap-anon.m4.
17421         (Depends-on): Add getpagesize.
17422         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17423         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17424         m4/mmap-anon.m4.
17425         (Depends-on): Add getpagesize.
17426         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17427         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17428         m4/mmap-anon.m4.
17429         (Depends-on): Add getpagesize.
17430         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17431         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17432         m4/mmap-anon.m4.
17433         (Depends-on): Add getpagesize.
17434         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17435         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17436         m4/mmap-anon.m4.
17437         (Depends-on): Add getpagesize.
17438         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17439
17440 2009-05-12  Bruno Haible  <bruno@clisp.org>
17441
17442         Tests for module 'alignof'.
17443         * modules/alignof-tests: New file.
17444         * tests/test-alignof.c: New file.
17445
17446 2009-05-12  Bruno Haible  <bruno@clisp.org>
17447
17448         Fix alignof macro.
17449         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17450         vendor compilers that are always correct.
17451
17452 2009-05-12  Bruno Haible  <bruno@clisp.org>
17453
17454         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17455         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17456         not whether its fully works.
17457
17458 2009-05-12  Bruno Haible  <bruno@clisp.org>
17459
17460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17461
17462 2009-05-12  Jim Meyering  <meyering@redhat.com>
17463
17464         * top/maint.mk: Adjust backslash alignment.
17465
17466 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17467
17468         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17469
17470 2009-05-11  Eric Blake  <ebb9@byu.net>
17471
17472         argp: avoid undefined behavior
17473         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17474         macros.
17475
17476 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17477
17478         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17479         user.name to prevent git commit from complaining.
17480
17481 2009-05-10  Bruno Haible  <bruno@clisp.org>
17482
17483         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17484         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17485         it rewrites every file name only once.
17486         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17487
17488 2009-05-08  Bruno Haible  <bruno@clisp.org>
17489
17490         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17491         instead of 'max'.
17492
17493 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17494
17495         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17496         sockaddr_storage test.
17497
17498 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17499
17500         * modules/sys_socket (Makefile.am): Substitute
17501         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17502         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17503         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17504         * tests/test-sys_socket.c: Check sockaddr_storage.
17505
17506 2009-05-08  Bruno Haible  <bruno@clisp.org>
17507
17508         New module 'alignof'.
17509         * lib/alignof.h: New file.
17510         * modules/alignof: New file.
17511
17512 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17513             Bruno Haible  <bruno@clisp.org>
17514
17515         Fix test-file-has-acl on FreeBSD.
17516         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17517         mask is implicitly added.
17518         * tests/test-file-has-acl.c: Include <signal.h>.
17519         (main): Terminate the test after 5 seconds.
17520         * modules/acl-tests (configure.ac): Check for alarm function.
17521
17522 2009-05-04  Bruno Haible  <bruno@clisp.org>
17523
17524         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17525         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17526         * modules/errno (configure.ac): Drop AC_REQUIRE.
17527         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17528         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17529
17530 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17531
17532         * modules/glob-tests: New module.
17533         * tests/test-glob.c: Add.
17534
17535 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17536
17537         * modules/fnmatch-tests: New module.
17538         * tests/test-fnmatch.c: Add.
17539
17540 2009-05-04  Eric Blake  <ebb9@byu.net>
17541
17542         maint: make the new no-submodule-changes rule VPATH-safe
17543         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17544
17545 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17546             Bruno Haible  <bruno@clisp.org>
17547
17548         acl: Fix infinite loop on FreeBSD.
17549         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17550         of return value from acl_get_entry.
17551         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17552         Likewise.
17553
17554 2009-05-03  Bruno Haible  <bruno@clisp.org>
17555
17556         * lib/acl-internal.h (acl_entries): Clarify return value.
17557         * lib/acl_entries.c (acl_entries): Likewise.
17558
17559 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17560
17561         Bug fix in acl module.
17562         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17563
17564 2009-05-03  Bruno Haible  <bruno@clisp.org>
17565
17566         Create gperf-generated file in the source dir, not in the build dir.
17567         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17568         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17569         * modules/unicase/locale-language (unicase/locale-languages.h):
17570         Likewise.
17571         * modules/unicase/special-casing (unicase/special-casing-table.h):
17572         Likewise.
17573         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17574         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17575         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17576         Reported by Ralf Wildenhues.
17577
17578 2009-05-03  Bruno Haible  <bruno@clisp.org>
17579
17580         * modules/fnmatch (Description, configure.ac): Taken from
17581         fnmatch-posix.
17582         * modules/fnmatch-posix: Turn into a symbolic reference to the
17583         'fnmatch' module, and deprecate.
17584         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17585
17586 2009-05-03  Bruno Haible  <bruno@clisp.org>
17587
17588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17589         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17590         Reported by Ralf Wildenhues.
17591
17592 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17593
17594         * m4/fnmatch.m4: Fix fnmatch re-define.
17595
17596 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17597
17598         priv-set: new module and tests; adapt write-any-file
17599         * lib/priv-set.c: New file.
17600         * lib/priv-set.h: New file.
17601         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17602         * lib/write-any-file.c: Simplify by using priv-set module.
17603         * m4/priv-set.m4: New file.
17604         * modules/priv-set: New file.
17605         * modules/unlinkdir: Add dependency on priv-set module.
17606         * modules/write-any-file: Likewise.
17607
17608         Tests for module 'priv-set'.
17609         * modules/priv-set-tests: New file.
17610         * tests/test-priv-set.c: New file.
17611
17612 2009-05-03  Jim Meyering  <meyering@redhat.com>
17613             Bruno Haible  <bruno@clisp.org>
17614
17615         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17616         use the converted UTF-8 variant of the name instead.
17617
17618 2009-05-03  Jim Meyering  <meyering@redhat.com>
17619
17620         tests: tighten some getdate tests
17621         * tests/test-getdate.c (main): Tighten tests: require equality,
17622         not just greater than.  Set TZ envvar to UTC0.
17623
17624 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17625
17626         getdate: correctly interpret "next monday" when run on a Monday
17627         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17628         that e.g., "next tues" (when run on a tuesday) results in a date
17629         that is one week in the future, and not today's date.
17630         I.e., add a week when the wday is the same as the current one.
17631         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17632         and earlier by Martin Bernreuther and Jan Minář.
17633         * tests/test-getdate.c (main): Check that "next DAY" is always in
17634         the future and that "last DAY" is always in the past.
17635
17636 2009-05-02  Jim Meyering  <meyering@redhat.com>
17637
17638         build: ensure that a release build fails when a submodule is unclean
17639         * top/maint.mk (no-submodule-changes): New rule.
17640         (alpha beta major): Depend on it.
17641
17642 2009-05-02  Bruno Haible  <bruno@clisp.org>
17643
17644         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17645         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17646         shell variable gl_fnmatch_required to detect which variant is
17647         requested.
17648         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17649         gl_FUNC_FNMATCH_POSIX.
17650         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17651         exclude fnmatch-posix.
17652
17653 2009-05-02  Bruno Haible  <bruno@clisp.org>
17654
17655         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17656         * modules/mbsrtowcs (License): Change to LGPLv2+.
17657         * modules/strnlen1 (License): Likewise.
17658         Reported by Simon Josefsson.
17659
17660 2009-05-02  Bruno Haible  <bruno@clisp.org>
17661
17662         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17663         "cross".
17664         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17665         gnulib-tool was called with option --source-base=lib.
17666
17667 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17668
17669         Use automake *-local hooks without commands, for extensibility.
17670         * modules/localcharset (Makefile.am): Rename install-exec-local
17671         rule to install-exec-localcharset, and make it a prerequisite of
17672         install-exec-local.  Likewise, rename the uninstall-local rule to
17673         uninstall-localcharset, and make it a prerequisite of the former.
17674
17675 2009-05-01  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17678         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17679         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17681         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17682         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17683         m4/locale-zh.m4, m4/codeset.m4.
17684
17685         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17686         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17687         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17688         m4/locale-zh.m4.
17689
17690         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17691         REPLACE_WCRTOMB if mbstate_t must be replaced.
17692         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17693         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17694
17695 2009-05-01  Bruno Haible  <bruno@clisp.org>
17696
17697         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17698         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17699         dngettext, dcngettext, textdomain, bindtextdomain,
17700         bind_textdomain_codeset): Undefine before redefining.
17701
17702 2009-04-30  Bruno Haible  <bruno@clisp.org>
17703
17704         Fix bug introduced on 2009-04-25.
17705         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17706         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17707         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17708         is defined.
17709         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17710         is defined.
17711         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17712         is defined.
17713         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17714
17715 2009-04-28  Bruno Haible  <bruno@clisp.org>
17716
17717         Comment tweaks.
17718         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17719         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17720         * lib/unicase.h (u*_casexfrm): Likewise.
17721         Reported by Paolo Bonzini.
17722
17723 2009-04-28  Bruno Haible  <bruno@clisp.org>
17724
17725         Fix a compilation error.
17726         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17727         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17728         Reported by Jim Meyering.
17729
17730 2009-04-27  Bruno Haible  <bruno@clisp.org>
17731
17732         New module 'libunistring'.
17733         * modules/libunistring: New file.
17734         * m4/libunistring.m4: New file.
17735         * MODULES.html.sh (Unicode string functions): Add it.
17736
17737 2009-04-27  Eric Blake  <ebb9@byu.net>
17738
17739         maint.mk: allow package-specific header to provide <config.h>
17740         * top/maint.mk (sc_require_config_h): New variable.
17741         (sc_require_config_h, sc_require_config_h_first): Use it.
17742
17743 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17744
17745         * top/maint.mk (sc_avoid_if_before_free): Except
17746         useless-if-before-free script.
17747
17748 2009-04-27  Eric Blake  <ebb9@byu.net>
17749
17750         maintainer-makefile: depend on all required helper scripts
17751         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17752         useless-if-before-free.
17753         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17754         version, rather than assuming gnulib checkout is available.
17755         Reported by Simen Josefsson.
17756
17757 2009-04-26  Bruno Haible  <bruno@clisp.org>
17758
17759         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17761         "../" or "..".
17762
17763 2009-04-26  Bruno Haible  <bruno@clisp.org>
17764
17765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17766         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17767         AC_LIB_HAVE_LINKFLAGS.
17768
17769 2009-04-26  Bruno Haible  <bruno@clisp.org>
17770
17771         Simplify calling convention of u*_conv_from_encoding.
17772         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17773         u32_conv_from_encoding): Expect a resultbuf argument and return the
17774         result directly as a pointer.
17775         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17776         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17777         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17778         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17779         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17780         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17781         Update.
17782         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17783         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17784         * lib/vasnprintf.c (VASNPRINTF): Update.
17785         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17786         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17787         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17788         * NEWS: Mention the change.
17789
17790 2009-04-26  Bruno Haible  <bruno@clisp.org>
17791
17792         Simplify calling convention of u*_conv_to_encoding.
17793         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17794         u32_conv_to_encoding): Expect a resultbuf argument and return the
17795         result directly as a pointer.
17796         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17797         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17798         freeing scaled_offsets if mem_iconveha failed.
17799         * lib/unicase/u-casexfrm.h (FUNC): Update.
17800         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17801         * lib/vasnprintf.c (VASNPRINTF): Update.
17802         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17803         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17804         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17805         * NEWS: Mention the change.
17806
17807 2009-04-26  Bruno Haible  <bruno@clisp.org>
17808
17809         Avoid test failures on AIX and OSF/1.
17810         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17811         malloc(0).
17812         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17813         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17814         Likewise.
17815         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17816         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17817         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17818         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17819         * doc/posix-functions/malloc.texi: Document the portability problem
17820         related to malloc(0).
17821
17822 2009-04-26  Bruno Haible  <bruno@clisp.org>
17823
17824         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17825         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17826         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17827
17828 2009-04-25  Bruno Haible  <bruno@clisp.org>
17829
17830         Avoid link error when creating a namespace clean library.
17831         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17832         as macro with arguments if already defined as an alias.
17833         * lib/signbitf.c (gl_signbitf): Don't undefine.
17834         * lib/signbitd.c (gl_signbitd): Don't undefine.
17835         * lib/signbitl.c (gl_signbitl): Don't undefine.
17836
17837 2009-04-25  Jim Meyering  <meyering@redhat.com>
17838
17839         vc-list-files: fix another quoting bug
17840         * build-aux/vc-list-files: Avoid sed backslash expansion
17841         of pathological directory names.
17842
17843 2009-04-25  Eric Blake  <ebb9@byu.net>
17844
17845         vc-list-files: fix shell quoting error
17846         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17847         timestamp.
17848
17849 2009-04-25  Jim Meyering  <meyering@redhat.com>
17850
17851         vc-list-files: restore lost functionality with subdir argument
17852         * build-aux/vc-list-files: When given a non-"." sub-directory
17853         argument, substitute the $dir/ prefix back onto each resulting name.
17854         Otherwise, coreutils' root_tests check would fail.
17855
17856 2009-04-24  Eric Blake  <ebb9@byu.net>
17857
17858         vc-list-files: ignore git symlinks
17859         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17860         than ls-files, to ignore git symlinks.
17861
17862         maint.mk: import improvements from m4
17863         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17864         (move_if_change): Delete unused macro.
17865         (news-date-check, vc-diff-check): Support VPATH builds.
17866         (announcement): Likewise.  Split --bootstrap-tools list...
17867         (boostrap-tools): ...into separate list, which can be overridden
17868         in cfg.mk.
17869         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17870         requiring dependency on useless-if-before-free module.
17871         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17872         Support VPATH builds.
17873
17874 2009-04-24  Jim Meyering  <meyering@redhat.com>
17875
17876         maint.mk: remove coreutils-specific rules and variables
17877         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17878         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17879         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17880
17881         maint.mk: remove obsolete rule
17882         * top/maint.mk (rel-check): Remove rule.
17883         (WGET, WGETFLAGS): Remove now-unused variables.
17884
17885 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17886
17887         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17888         consistency.
17889
17890         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17891         '$(PATH_SEPARATOR)' instead of ':'.
17892
17893 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17894
17895         * lib/getopt1.c (main): Use 'const' for static array.
17896
17897 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17898
17899         * top/maint.mk: Sync with coreutils.
17900         * NEWS: Explain incompatibilities.
17901
17902 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17903             Bruno Haible  <bruno@clisp.org>
17904
17905         Fix cross-compilation results.
17906         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17907         statement, as third argument of AC_TRY_RUN.
17908         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17909         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17910         Likewise.
17911         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17912         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17913         Likewise.
17914         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17916         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17917
17918 2009-04-20  Bruno Haible  <bruno@clisp.org>
17919
17920         Avoid test failure on mingw.
17921         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17922
17923 2009-04-20  Bruno Haible  <bruno@clisp.org>
17924
17925         Avoid compilation error on mingw.
17926         * modules/localename-tests (Depends-on): Add locale.
17927
17928 2009-04-19  Bruno Haible  <bruno@clisp.org>
17929
17930         Support for building a shared library on Windows platforms.
17931         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17932         (main): Test the presence of UNINORM_NFC here.
17933         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17934         (main): Test the presence of UNINORM_NFD here.
17935         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17936         (main): Test the presence of UNINORM_NFKC here.
17937         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17938         (main): Test the presence of UNINORM_NFKD here.
17939
17940 2009-04-19  Bruno Haible  <bruno@clisp.org>
17941
17942         Avoid a compiler warning.
17943         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17944         Change type of variable 'sequence'.
17945
17946 2009-04-19  Bruno Haible  <bruno@clisp.org>
17947
17948         * modules/configmake (Makefile.am): When the contents of configmake.h
17949         does not change, arrange to preserve its modification time.
17950
17951 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17952
17953         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17954         gettext domain.
17955
17956 2009-04-16  Jim Meyering  <meyering@redhat.com>
17957
17958         useless-if-before-free: improve conversion code
17959         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17960         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17961
17962 2009-04-14  Bruno Haible  <bruno@clisp.org>
17963
17964         * modules/fcntl (Depends-on): Add extensions.
17965         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17966
17967 2009-04-12  Ben Pfaff  <blp@gnu.org>
17968
17969         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17970         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17971
17972 2009-03-20  Ben Pfaff  <blp@gnu.org>
17973
17974         Make rename replace existing destinations on Windows.
17975         * m4/rename.m4: Add test for Mingw.
17976         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17977         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17978         * doc/posix-functions/rename.texi: Document.
17979
17980 2009-04-10  Bruno Haible  <bruno@clisp.org>
17981
17982         New include file "iconveh.h".
17983         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17984         * lib/striconveh.h: Include it.
17985         (enum iconv_ilseq_handler): Remove definition.
17986         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17987         striconveh.h.
17988         * lib/striconveha.c: Include striconveh.h.
17989         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17990         * modules/striconveh (Files): Add lib/iconveh.h.
17991         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17992         lib/striconveh.h.
17993
17994 2009-04-10  Bruno Haible  <bruno@clisp.org>
17995
17996         * lib/uniconv.h: Update comment.
17997
17998 2009-04-10  Bruno Haible  <bruno@clisp.org>
17999
18000         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18001         always.
18002         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18003         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18004         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18005         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18006         "unistring-notinline.h", so that the function gets defined always.
18007         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18008         * lib/unistr/u8-uctomb.c: Likewise.
18009         * lib/unistr/u16-mbtouc.c: Likewise.
18010         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18011         * lib/unistr/u16-uctomb.c: Likewise.
18012         * lib/unistr/u32-mbtouc.c: Likewise.
18013         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18014         * lib/unistr/u32-uctomb.c: Likewise.
18015
18016 2009-04-10  Bruno Haible  <bruno@clisp.org>
18017
18018         Mark 'utime' obsolete.
18019         * modules/utime (Status, Notice): New sections.
18020         Suggested by Jim Meyering.
18021
18022         Fix cross-compile guess for utime test.
18023         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18024         autoconf.
18025         * doc/posix-functions/utime.texi: Give more precisions.
18026         Reported by Jan <ipif@ymail.com>.
18027
18028 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18029
18030         filevercmp: correct today's change
18031         * lib/filevercmp.c: Also handle coreutils' test inputs.
18032         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18033
18034         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18035         for reporting it.
18036         * lib/filevercmp.c: Special handle for "", "." and "..".
18037         * tests/test-filevercmp.c: Enlarge the set suite.
18038
18039 2009-04-07  Jim Meyering  <meyering@redhat.com>
18040
18041         useless-if-before-free: show how to remove braced useless free, too
18042         * build-aux/useless-if-before-free: still only in a comment, though.
18043
18044 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18045
18046         maint.mk: import changes to syntax-check macros from coreutils
18047         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18048         Use them in the relevant macros.
18049
18050 2009-04-06  Bruno Haible  <bruno@clisp.org>
18051
18052         Fix unportable use of bit-fields.
18053         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18054         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18055         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18056
18057 2009-04-06  Bruno Haible  <bruno@clisp.org>
18058
18059         Avoid test failures on AIX and OSF/1.
18060         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18061         that malloc(0) = NULL.
18062         * tests/unicase/test-u8-tolower.c (check): Likewise.
18063         * tests/unicase/test-u8-totitle.c (check): Likewise.
18064         * tests/unicase/test-u8-toupper.c (check): Likewise.
18065         * tests/unicase/test-u16-casefold.c (check): Likewise.
18066         * tests/unicase/test-u16-tolower.c (check): Likewise.
18067         * tests/unicase/test-u16-totitle.c (check): Likewise.
18068         * tests/unicase/test-u16-toupper.c (check): Likewise.
18069         * tests/unicase/test-u32-casefold.c (check): Likewise.
18070         * tests/unicase/test-u32-tolower.c (check): Likewise.
18071         * tests/unicase/test-u32-totitle.c (check): Likewise.
18072         * tests/unicase/test-u32-toupper.c (check): Likewise.
18073         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18074         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18075         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18076         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18077         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18078         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18079         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18080         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18081         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18082         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18083         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18084         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18085
18086 2009-04-05  Bruno Haible  <bruno@clisp.org>
18087
18088         Work around an autoconf limitation.
18089         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18090         comment line if it would be longer than 3 KB.
18091
18092 2009-04-05  Bruno Haible  <bruno@clisp.org>
18093
18094         Avoid test failure with libiconv-1.13.
18095         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18096         of the expected test results.
18097
18098 2009-04-05  Bruno Haible  <bruno@clisp.org>
18099
18100         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18101         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18102         that it should be installed.
18103
18104 2009-04-05  Bruno Haible  <bruno@clisp.org>
18105
18106         * gnulib-tool: New option --copy-file.
18107         (func_usage): Document it.
18108         (func_dest_tmpfilename): Moved out of func_import.
18109         (func_add_file, func_update_file): New functions, extracted from
18110         func_import.
18111         (func_import): Update.
18112
18113 2009-04-05  Karl Berry  <karl@gnu.org>
18114
18115         * README: prominently mention gnulib-tool.
18116         Rearrange sections so getting the code is near the top.
18117
18118 2009-04-05  Bruno Haible  <bruno@clisp.org>
18119
18120         * lib/unicase.h: Mention u*_cmp2.
18121         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18122         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18123         * lib/unicase/ulc-casecmp.c: Likewise.
18124         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18125         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18126         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18127         unistr/u8-cmp.
18128         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18129         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18130         unistr/u16-cmp.
18131         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18132         unistr/u32-cmp.
18133
18134         * lib/uninorm.h: Mention u*_cmp2.
18135         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18136         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18137         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18138         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18139         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18140         unistr/u8-cmp.
18141         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18142         unistr/u16-cmp.
18143         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18144         unistr/u32-cmp.
18145
18146         New module 'unistr/u32-cmp2'.
18147         * lib/unistr/u32-cmp2.c: New file.
18148         * modules/unistr/u32-cmp2: New file.
18149
18150         New module 'unistr/u16-cmp2'.
18151         * lib/unistr/u16-cmp2.c: New file.
18152         * modules/unistr/u16-cmp2: New file.
18153
18154         New module 'unistr/u8-cmp2'.
18155         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18156         * lib/unistr/u8-cmp2.c: New file.
18157         * lib/unistr/u-cmp2.h: New file.
18158         * modules/unistr/u8-cmp2: New file.
18159
18160 2009-04-05  Bruno Haible  <bruno@clisp.org>
18161
18162         * lib/unictype.h (uc_property_is_valid): New macro.
18163         * tests/unictype/test-pr_byname.c (main): Use it.
18164
18165         * lib/unistr.h: Doc fixes.
18166         * lib/uniconv.h: Doc fixes.
18167         * lib/unictype.h: Doc fixes.
18168
18169 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18170
18171         Port coreutils 7.2 to Solaris 8.
18172
18173         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18174         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18175         for Solaris 8.  This is a bit of a hack, as it means it's the
18176         caller's responsibility to add -lnsl if needed, but most likely it
18177         won't be needed since only getaddrinfo uses this and getaddrinfo
18178         isn't needed on Solaris 8.
18179
18180         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18181         problem to Solaris 8 encountered with coreutils 7.2, which
18182         resulted in a message "fnmatch.c:292: warning: passing argument 4
18183         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18184         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18185
18186 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18187
18188         * m4/ld-version-script.m4: Add FIXME comment.
18189
18190 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18191
18192         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18193         SOVERSION variable.
18194
18195 2009-04-02  Bruno Haible  <bruno@clisp.org>
18196
18197         * Makefile (info, html, dvi, pdf): Combine the rules.
18198         Suggested by Jim Meyering.
18199
18200 2009-04-01  Bruno Haible  <bruno@clisp.org>
18201
18202         * Makefile (info, html, dvi, pdf): New targets.
18203         Reported by Reuben Thomas <rrt@sc3d.org>.
18204
18205 2009-04-01  Bruno Haible  <bruno@clisp.org>
18206
18207         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18208         can be put into PATH.
18209         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18210
18211 2009-04-01  Bruno Haible  <bruno@clisp.org>
18212
18213         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18214
18215 2009-04-01  Bruno Haible  <bruno@clisp.org>
18216
18217         Rename module 'visibility'.
18218         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18219         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18220         * doc/gnulib.texi: Update.
18221         * MODULES.html.sh (Misc): Update.
18222         * NEWS: Mention the change.
18223
18224 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18225
18226         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18227         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18228         Eric Blake <ebb9@byu.net> for review.
18229         * MODULES.html.sh: Add lib-msvc-compat.
18230         * doc/gnulib.texi: Link to new section.
18231         * m4/ld-output-def.m4: New file.
18232         * doc/ld-output-def.texi: New file.
18233
18234 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18235
18236         Rename ld-version-script to lib-symbol-versions.  Suggested by
18237         Bruno Haible <bruno@clisp.org>.
18238         * modules/ld-version-script: Renamed to lib-symbol-versions.
18239         * doc/ld-version-script.texi: Fix module name.
18240         * MODULES.html.sh: Add lib-symbol-versions.
18241
18242 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18243
18244         * modules/u64-tests: New file.
18245         * tests/test-u64.c: New file.
18246
18247 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18248
18249         * MODULES.html.sh: Mention u64.
18250         * modules/u64: New module.
18251         * modules/crypto/sha512: Depend on u64 module instead of providing
18252         u64.h.
18253
18254 2009-03-27  Eric Blake  <ebb9@byu.net>
18255
18256         test-strerror: make debugging EAI_SYSTEM easier
18257         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18258         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18259         failure was EAI_SYSTEM.
18260
18261 2009-03-25  Bruno Haible  <bruno@clisp.org>
18262
18263         Fix a problem with --enable-relocatable on Solaris 7.
18264         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18265         since 2008-02-24.
18266
18267 2009-03-25  Eric Blake  <ebb9@byu.net>
18268
18269         test-sockets: avoid gcc warning
18270         * tests/test-sockets.c (main): Silence compiler warning.
18271
18272 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         New modules nproc, pthread, contributed by Glen Lenker.
18275
18276         * MODULES.html.sh: Add pthread, nproc.
18277         * lib/nproc.c: New file.
18278         * lib/nproc.h: New file.
18279         * lib/pthread.in.h: New file.
18280         * m4/pthread.m4: New file.
18281         * modules/nproc: New file.
18282         * modules/pthread: New file.
18283
18284 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18285
18286         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18287         New variable.
18288
18289 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18290
18291         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18292         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18293         * tests/test-filevercmp.c: Add tests for backup suffixes.
18294
18295 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18296
18297         * modules/stdlib (Depends-on): Add stdint, needed when defining
18298         struct random_data on, for example, HP-UX 10.20.  Reported by
18299         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18300
18301 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18302
18303         * lib/readline.c (readline): Call fflush on stdout after printing
18304         prompt.
18305
18306 2009-03-20  Bruno Haible  <bruno@clisp.org>
18307
18308         Remove dependency from 'close' module to -lws2_32 on native Windows.
18309         * lib/close-hook.h: New file.
18310         * lib/close-hook.c: New file.
18311         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18312         w32sock.h.
18313         (_gl_close_fd_maybe_socket): Remove function.
18314         (rpl_close): Invoke execute_all_close_hooks instead of
18315         _gl_close_fd_maybe_socket.
18316         * lib/sockets.c: Include close-hook.h, w32sock.h.
18317         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18318         (close_sockets_hook): New variable.
18319         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18320         (gl_sockets_cleanup): Unregister it.
18321         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18322         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18323         * modules/close-hook: New file.
18324         * modules/close (Files): Remove lib/w32sock.h.
18325         (Depends-on): Add close-hook.
18326         (Link): Remove section.
18327         * modules/sockets (Files): Add lib/w32sock.h.
18328         (Depends-on): Add close-hook.
18329         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18330         invocation.
18331         * NEWS: Mention that LIB_CLOSE is gone.
18332
18333 2009-03-23  Eric Blake  <ebb9@byu.net>
18334
18335         signal-tests: test previous patch
18336         * tests/test-signal.c: New file.
18337         * modules/signal-tests: Likewise.
18338
18339         signal.h: always support 'volatile sig_atomic_t'
18340         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18341         (gl_SIGNAL_H_DEFAULTS): Add a default.
18342         * modules/signal (Makefile.am): Substitute if needed.
18343         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18344         users can blindly add volatile.
18345         * doc/posix-headers/signal.texi (signal.h): Document it.
18346         Reported by Matthew Woehlke.
18347
18348 2009-03-23  Jim Meyering  <meyering@redhat.com>
18349
18350         pathmax: PATH_MAX: use pathconf only when available
18351         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18352         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18353         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18354         This avoids a link failure in a PSP cross-compilation environment
18355         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18356
18357         * lib/vasnprintf.c (divide): Fix typo in comment.
18358
18359 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18360
18361         * gnulib-tool (func_filter_filelist): Fix comment.
18362
18363 2009-03-20  Bruno Haible  <bruno@clisp.org>
18364
18365         Make sockets.h self-contained.
18366         * lib/sockets.c: Include sockets.h first.
18367         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18368
18369 2009-03-19  Eric Blake  <ebb9@byu.net>
18370
18371         doc: mention more functions added in cygwin 1.7.0
18372         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18373         addition.
18374         * doc/posix-functions/log2f.texi: Likewise.
18375
18376 2009-03-19  Jim Meyering  <meyering@redhat.com>
18377
18378         fsusage: avoid syntax error due to statement-before-declaration
18379         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18380         after all declarations.  Reported by Matthew Woehlke in
18381         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18382
18383 2009-03-18  Eric Blake  <ebb9@byu.net>
18384
18385         build-aux/compile: sync from automake
18386         * build-aux/compile: New file, from automake.
18387         * config/srclist.txt: Mention build-aux/compile.
18388
18389 2009-03-17  Bruno Haible  <bruno@clisp.org>
18390
18391         * lib/git-merge-changelog.c: Fix typo in comment.
18392         Reported by Reuben Thomas <rrt@sc3d.org>.
18393
18394 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18395
18396         * m4/regex.m4: update and improve help for
18397         --without-included-regex.
18398
18399 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18400
18401         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18402         failure on missing include files.
18403
18404 2009-03-17  Eric Blake  <ebb9@byu.net>
18405
18406         doc: mention more functions added in cygwin 1.7.0
18407         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18408         addition.
18409         * doc/posix-functions/fwscanf.texi: Likewise.
18410         * doc/posix-functions/swprintf.texi: Likewise.
18411         * doc/posix-functions/swscanf.texi: Likewise.
18412         * doc/posix-functions/vfwprintf.texi: Likewise.
18413         * doc/posix-functions/vfwscanf.texi: Likewise.
18414         * doc/posix-functions/vswprintf.texi: Likewise.
18415         * doc/posix-functions/vswscanf.texi: Likewise.
18416         * doc/posix-functions/vwprintf.texi: Likewise.
18417         * doc/posix-functions/vwscanf.texi: Likewise.
18418         * doc/posix-functions/wcscasecmp.texi: Likewise.
18419         * doc/posix-functions/wcsdup.texi: Likewise.
18420         * doc/posix-functions/wcsftime.texi: Likewise.
18421         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18422         * doc/posix-functions/wprintf.texi: Likewise.
18423         * doc/posix-functions/wscanf.texi: Likewise.
18424         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18425
18426 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18427
18428         maint.mk: really add $(AM_MAKEFLAGS)
18429         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18430         was inadvertently omitted in the last commit.
18431         Spotted by Bruno Haible.
18432
18433         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18434         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18435         $(AM_MAKEFLAGS)' rather than plain `make'.
18436
18437         gnulib-tool: execute $MAKE not make
18438         * gnulib-tool: Default $MAKE to 'make'.
18439         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18440         than make.  Initialize $MAKE in the do-autobuild script.
18441
18442         gnulib-tool: use $MAKE not make in generated files
18443         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18444         make, in generated files.  Initialize $MAKE in the do-autobuild
18445         script.
18446
18447         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18448
18449         GNUmakefile: disable parallelism only for multiple, recursive targets
18450         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18451         additions in the Makefile.
18452         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18453         by Automake.
18454         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18455         are listed on the command line and at least one of them is
18456         listed in $(ALL_RECURSIVE_TARGETS).
18457
18458 2009-03-14  Bruno Haible  <bruno@clisp.org>
18459
18460         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18461         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18462         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18463         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18464         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18465         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18466         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18467         unistr/u8-uctomb.
18468         * modules/unistr/u8-strchr (Depends-on): Likewise.
18469         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18470         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18471         unistr/u16-uctomb.
18472         * modules/unistr/u16-strchr (Depends-on): Likewise.
18473         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18474
18475 2009-03-12  Bruno Haible  <bruno@clisp.org>
18476
18477         Work around select() bug on Interix 3.5.
18478         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18479         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18480         * m4/select.m4: New file.
18481         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18482         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18483         * modules/select (Files): Add m4/select.m4.
18484         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18485         * modules/nanosleep (Depends-on): Add select.
18486         * modules/poll (Depends-on): Likewise.
18487         * doc/posix-functions/select.texi: Mention the Interix bug.
18488         Reported by Markus Duft <mduft@gentoo.org>.
18489
18490         * lib/select.c: Renamed from lib/winsock-select.c.
18491         * modules/select (Files): Add lib/select.c, remove
18492         lib/winsock-select.c.
18493         (configure.ac): Update.
18494
18495 2009-03-12  Jim Meyering  <meyering@redhat.com>
18496
18497         avoid gcc warnings about unused macro definitions
18498         * lib/readtokens.c (STREQ): Remove unused definition.
18499         * lib/xmalloc.c (SIZE_MAX): Likewise.
18500         * lib/openat-die.c (N_): Likewise.
18501         * lib/mountlist.c (SIZE_MAX): Remove definition.
18502         Instead, include <stdint.h>.
18503         * lib/readutmp.c: Likewise.
18504         * modules/readutmp (Depends-on): Add stdint.
18505         * modules/mountlist (Depends-on): Add stdint.
18506         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18507
18508 2009-03-10  Bruno Haible  <bruno@clisp.org>
18509
18510         Tests for module 'mbmemcasecoll'.
18511         * modules/mbmemcasecoll-tests: New file.
18512         * tests/test-mbmemcasecoll1.sh: New file.
18513         * tests/test-mbmemcasecoll2.sh: New file.
18514         * tests/test-mbmemcasecoll3.sh: New file.
18515         * tests/test-mbmemcasecoll.c: New file.
18516
18517         New module 'mbmemcasecoll'.
18518         * lib/mbmemcasecoll.h: New file.
18519         * lib/mbmemcasecoll.c: New file.
18520         * modules/mbmemcasecoll: New file.
18521
18522         * tests/test-mbmemcasecmp.h: New file, extracted from
18523         tests/test-mbmemcasecmp.c.
18524         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18525         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18526         (main): Update.
18527         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18528
18529 2009-03-09  Bruno Haible  <bruno@clisp.org>
18530
18531         Tests for module 'mbmemcasecmp'.
18532         * modules/mbmemcasecmp-tests: New file.
18533         * tests/test-mbmemcasecmp1.sh: New file.
18534         * tests/test-mbmemcasecmp2.sh: New file.
18535         * tests/test-mbmemcasecmp3.sh: New file.
18536         * tests/test-mbmemcasecmp.c: New file.
18537
18538         New module 'mbmemcasecmp'.
18539         * lib/mbmemcasecmp.h: New file.
18540         * lib/mbmemcasecmp.c: New file.
18541         * modules/mbmemcasecmp: New file.
18542
18543 2009-03-09  Bruno Haible  <bruno@clisp.org>
18544
18545         Tests for module 'unicase/ulc-casecoll'.
18546         * modules/unicase/ulc-casecoll-tests: New file.
18547         * tests/unicase/test-ulc-casecoll1.sh: New file.
18548         * tests/unicase/test-ulc-casecoll2.sh: New file.
18549         * tests/unicase/test-ulc-casecoll.c: New file.
18550
18551         New module 'unicase/ulc-casecoll'.
18552         * lib/unicase.h (ulc_casecoll): New declaration.
18553         * lib/unicase/ulc-casecoll.c: New file.
18554         * modules/unicase/ulc-casecoll: New file.
18555
18556         New module 'unicase/ulc-casexfrm'.
18557         * lib/unicase.h (ulc_casexfrm): New declaration.
18558         * lib/unicase/ulc-casexfrm.c: New file.
18559         * modules/unicase/ulc-casexfrm: New file.
18560
18561 2009-03-09  Bruno Haible  <bruno@clisp.org>
18562
18563         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18564         invocations.
18565
18566         * m4/mbscasecmp.m4: Remove file.
18567         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18568         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18569
18570         * m4/mbscasestr.m4: Remove file.
18571         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18572         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18573
18574         * m4/mbschr.m4: Remove file.
18575         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18576         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18577
18578         * m4/mbscspn.m4: Remove file.
18579         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18580         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18581
18582         * m4/mbslen.m4: Remove file.
18583         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18584         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18585
18586         * m4/mbsncasecmp.m4: Remove file.
18587         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18588         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18589
18590         * m4/mbsnlen.m4: Remove file.
18591         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18592         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18593
18594         * m4/mbspbrk.m4: Remove file.
18595         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18596         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18597
18598         * m4/mbspcasecmp.m4: Remove file.
18599         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18600         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18601
18602         * m4/mbsrchr.m4: Remove file.
18603         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18604         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18605
18606         * m4/mbssep.m4: Remove file.
18607         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18608         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18609
18610         * m4/mbsspn.m4: Remove file.
18611         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18612         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18613
18614         * m4/mbsstr.m4: Remove file.
18615         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18616         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18617
18618         * m4/mbstok_r.m4: Remove file.
18619         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18620         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18621
18622         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18623
18624         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18625         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18626
18627         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18628
18629 2009-03-08  Bruno Haible  <bruno@clisp.org>
18630
18631         Tests for module 'unicase/ulc-casecmp'.
18632         * modules/unicase/ulc-casecmp-tests: New file.
18633         * tests/unicase/test-ulc-casecmp1.sh: New file.
18634         * tests/unicase/test-ulc-casecmp2.sh: New file.
18635         * tests/unicase/test-ulc-casecmp.c: New file.
18636
18637         New module 'unicase/ulc-casecmp'.
18638         * lib/unicase.h (ulc_casecmp): New declaration.
18639         * lib/unicase/ulc-casecmp.c: New file.
18640         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18641         'const SRC_UNIT *'.
18642         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18643         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18644         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18645         * modules/unicase/ulc-casecmp: New file.
18646
18647         Tests for module 'unicase/u32-is-cased'.
18648         * modules/unicase/u32-is-cased-tests: New file.
18649         * tests/unicase/test-u32-is-cased.c: New file.
18650
18651         Tests for module 'unicase/u16-is-cased'.
18652         * modules/unicase/u16-is-cased-tests: New file.
18653         * tests/unicase/test-u16-is-cased.c: New file.
18654
18655         Tests for module 'unicase/u8-is-cased'.
18656         * modules/unicase/u8-is-cased-tests: New file.
18657         * tests/unicase/test-u8-is-cased.c: New file.
18658         * tests/unicase/test-is-cased.h: New file.
18659
18660         New module 'unicase/u32-is-cased'.
18661         * lib/unicase/u32-is-cased.c: New file.
18662         * modules/unicase/u32-is-cased: New file.
18663
18664         New module 'unicase/u16-is-cased'.
18665         * lib/unicase/u16-is-cased.c: New file.
18666         * modules/unicase/u16-is-cased: New file.
18667
18668         New module 'unicase/u8-is-cased'.
18669         * lib/unicase/u8-is-cased.c: New file.
18670         * lib/unicase/u-is-cased.h: New file.
18671         * modules/unicase/u8-is-cased: New file.
18672
18673         Tests for module 'unicase/u32-is-casefolded'.
18674         * modules/unicase/u32-is-casefolded-tests: New file.
18675         * tests/unicase/test-u32-is-casefolded.c: New file.
18676
18677         Tests for module 'unicase/u16-is-casefolded'.
18678         * modules/unicase/u16-is-casefolded-tests: New file.
18679         * tests/unicase/test-u16-is-casefolded.c: New file.
18680
18681         Tests for module 'unicase/u8-is-casefolded'.
18682         * modules/unicase/u8-is-casefolded-tests: New file.
18683         * tests/unicase/test-u8-is-casefolded.c: New file.
18684         * tests/unicase/test-is-casefolded.h: New file.
18685
18686         New module 'unicase/u32-is-casefolded'.
18687         * lib/unicase/u32-is-casefolded.c: New file.
18688         * modules/unicase/u32-is-casefolded: New file.
18689
18690         New module 'unicase/u16-is-casefolded'.
18691         * lib/unicase/u16-is-casefolded.c: New file.
18692         * modules/unicase/u16-is-casefolded: New file.
18693
18694         New module 'unicase/u8-is-casefolded'.
18695         * lib/unicase/u8-is-casefolded.c: New file.
18696         * modules/unicase/u8-is-casefolded: New file.
18697
18698         Tests for module 'unicase/u32-is-titlecase'.
18699         * modules/unicase/u32-is-titlecase-tests: New file.
18700         * tests/unicase/test-u32-is-titlecase.c: New file.
18701
18702         Tests for module 'unicase/u16-is-titlecase'.
18703         * modules/unicase/u16-is-titlecase-tests: New file.
18704         * tests/unicase/test-u16-is-titlecase.c: New file.
18705
18706         Tests for module 'unicase/u8-is-titlecase'.
18707         * modules/unicase/u8-is-titlecase-tests: New file.
18708         * tests/unicase/test-u8-is-titlecase.c: New file.
18709         * tests/unicase/test-is-titlecase.h: New file.
18710
18711         New module 'unicase/u32-is-titlecase'.
18712         * lib/unicase/u32-is-titlecase.c: New file.
18713         * modules/unicase/u32-is-titlecase: New file.
18714
18715         New module 'unicase/u16-is-titlecase'.
18716         * lib/unicase/u16-is-titlecase.c: New file.
18717         * modules/unicase/u16-is-titlecase: New file.
18718
18719         New module 'unicase/u8-is-titlecase'.
18720         * lib/unicase/u8-is-titlecase.c: New file.
18721         * modules/unicase/u8-is-titlecase: New file.
18722
18723         Tests for module 'unicase/u32-is-lowercase'.
18724         * modules/unicase/u32-is-lowercase-tests: New file.
18725         * tests/unicase/test-u32-is-lowercase.c: New file.
18726
18727         Tests for module 'unicase/u16-is-lowercase'.
18728         * modules/unicase/u16-is-lowercase-tests: New file.
18729         * tests/unicase/test-u16-is-lowercase.c: New file.
18730
18731         Tests for module 'unicase/u8-is-lowercase'.
18732         * modules/unicase/u8-is-lowercase-tests: New file.
18733         * tests/unicase/test-u8-is-lowercase.c: New file.
18734         * tests/unicase/test-is-lowercase.h: New file.
18735
18736         New module 'unicase/u32-is-lowercase'.
18737         * lib/unicase/u32-is-lowercase.c: New file.
18738         * modules/unicase/u32-is-lowercase: New file.
18739
18740         New module 'unicase/u16-is-lowercase'.
18741         * lib/unicase/u16-is-lowercase.c: New file.
18742         * modules/unicase/u16-is-lowercase: New file.
18743
18744         New module 'unicase/u8-is-lowercase'.
18745         * lib/unicase/u8-is-lowercase.c: New file.
18746         * modules/unicase/u8-is-lowercase: New file.
18747
18748         Tests for module 'unicase/u32-is-uppercase'.
18749         * modules/unicase/u32-is-uppercase-tests: New file.
18750         * tests/unicase/test-u32-is-uppercase.c: New file.
18751
18752         Tests for module 'unicase/u16-is-uppercase'.
18753         * modules/unicase/u16-is-uppercase-tests: New file.
18754         * tests/unicase/test-u16-is-uppercase.c: New file.
18755
18756         Tests for module 'unicase/u8-is-uppercase'.
18757         * modules/unicase/u8-is-uppercase-tests: New file.
18758         * tests/unicase/test-u8-is-uppercase.c: New file.
18759         * tests/unicase/test-is-uppercase.h: New file.
18760
18761         New module 'unicase/u32-is-uppercase'.
18762         * lib/unicase/u32-is-uppercase.c: New file.
18763         * modules/unicase/u32-is-uppercase: New file.
18764
18765         New module 'unicase/u16-is-uppercase'.
18766         * lib/unicase/u16-is-uppercase.c: New file.
18767         * modules/unicase/u16-is-uppercase: New file.
18768
18769         New module 'unicase/u8-is-uppercase'.
18770         * lib/unicase/u8-is-uppercase.c: New file.
18771         * modules/unicase/u8-is-uppercase: New file.
18772
18773         New module 'unicase/u32-is-invariant'.
18774         * lib/unicase/u32-is-invariant.c: New file.
18775         * modules/unicase/u32-is-invariant: New file.
18776
18777         New module 'unicase/u16-is-invariant'.
18778         * lib/unicase/u16-is-invariant.c: New file.
18779         * modules/unicase/u16-is-invariant: New file.
18780
18781         New module 'unicase/u8-is-invariant'.
18782         * lib/unicase/u8-is-invariant.c: New file.
18783         * lib/unicase/invariant.h: New file.
18784         * lib/unicase/u-is-invariant.h: New file.
18785         * modules/unicase/u8-is-invariant: New file.
18786
18787         Tests for module 'unicase/u32-casecoll'.
18788         * modules/unicase/u32-casecoll-tests: New file.
18789         * tests/unicase/test-u32-casecoll.c: New file.
18790
18791         Tests for module 'unicase/u16-casecoll'.
18792         * modules/unicase/u16-casecoll-tests: New file.
18793         * tests/unicase/test-u16-casecoll.c: New file.
18794
18795         Tests for module 'unicase/u8-casecoll'.
18796         * modules/unicase/u8-casecoll-tests: New file.
18797         * tests/unicase/test-u8-casecoll.c: New file.
18798
18799         New module 'unicase/u32-casecoll'.
18800         * lib/unicase/u32-casecoll.c: New file.
18801         * modules/unicase/u32-casecoll: New file.
18802
18803         New module 'unicase/u16-casecoll'.
18804         * lib/unicase/u16-casecoll.c: New file.
18805         * modules/unicase/u16-casecoll: New file.
18806
18807         New module 'unicase/u8-casecoll'.
18808         * lib/unicase/u8-casecoll.c: New file.
18809         * lib/unicase/u-casecoll.h: New file.
18810         * modules/unicase/u8-casecoll: New file.
18811
18812         New module 'unicase/u32-casexfrm'.
18813         * lib/unicase/u32-casexfrm.c: New file.
18814         * modules/unicase/u32-casexfrm: New file.
18815
18816         New module 'unicase/u16-casexfrm'.
18817         * lib/unicase/u16-casexfrm.c: New file.
18818         * modules/unicase/u16-casexfrm: New file.
18819
18820         New module 'unicase/u8-casexfrm'.
18821         * lib/unicase/u8-casexfrm.c: New file.
18822         * lib/unicase/u-casexfrm.h: New file.
18823         * modules/unicase/u8-casexfrm: New file.
18824
18825         Tests for module 'unicase/u32-casecmp'.
18826         * modules/unicase/u32-casecmp-tests: New file.
18827         * tests/unicase/test-u32-casecmp.c: New file.
18828
18829         Tests for module 'unicase/u16-casecmp'.
18830         * modules/unicase/u16-casecmp-tests: New file.
18831         * tests/unicase/test-u16-casecmp.c: New file.
18832
18833         Tests for module 'unicase/u8-casecmp'.
18834         * modules/unicase/u8-casecmp-tests: New file.
18835         * tests/unicase/test-u8-casecmp.c: New file.
18836         * tests/unicase/test-casecmp.h: New file.
18837
18838         New module 'unicase/u32-casecmp'.
18839         * lib/unicase/u32-casecmp.c: New file.
18840         * modules/unicase/u32-casecmp: New file.
18841
18842         New module 'unicase/u16-casecmp'.
18843         * lib/unicase/u16-casecmp.c: New file.
18844         * modules/unicase/u16-casecmp: New file.
18845
18846         New module 'unicase/u8-casecmp'.
18847         * lib/unicase/u8-casecmp.c: New file.
18848         * lib/unicase/u-casecmp.h: New file.
18849         * modules/unicase/u8-casecmp: New file.
18850
18851         Tests for module 'unicase/u32-casefold'.
18852         * modules/unicase/u32-casefold-tests: New file.
18853         * tests/unicase/test-u32-casefold.c: New file.
18854
18855         Tests for module 'unicase/u16-casefold'.
18856         * modules/unicase/u16-casefold-tests: New file.
18857         * tests/unicase/test-u16-casefold.c: New file.
18858
18859         Tests for module 'unicase/u8-casefold'.
18860         * modules/unicase/u8-casefold-tests: New file.
18861         * tests/unicase/test-u8-casefold.c: New file.
18862
18863         New module 'unicase/u32-casefold'.
18864         * lib/unicase/u32-casefold.c: New file.
18865         * modules/unicase/u32-casefold: New file.
18866
18867         New module 'unicase/u16-casefold'.
18868         * lib/unicase/u16-casefold.c: New file.
18869         * modules/unicase/u16-casefold: New file.
18870
18871         New module 'unicase/u8-casefold'.
18872         * lib/unicase/u8-casefold.c: New file.
18873         * lib/unicase/u-casefold.h: New file.
18874         * modules/unicase/u8-casefold: New file.
18875
18876         New module 'unicase/tocasefold'.
18877         * lib/unicase/casefold.h: New file.
18878         * lib/unicase/tocasefold.c: New file.
18879         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18880         * modules/unicase/tocasefold: New file.
18881
18882         Tests for module 'unicase/u32-totitle'.
18883         * modules/unicase/u32-totitle-tests: New file.
18884         * tests/unicase/test-u32-totitle.c: New file.
18885
18886         Tests for module 'unicase/u16-totitle'.
18887         * modules/unicase/u16-totitle-tests: New file.
18888         * tests/unicase/test-u16-totitle.c: New file.
18889
18890         Tests for module 'unicase/u8-totitle'.
18891         * modules/unicase/u8-totitle-tests: New file.
18892         * tests/unicase/test-u8-totitle.c: New file.
18893
18894         New module 'unicase/u32-totitle'.
18895         * lib/unicase/u32-totitle.c: New file.
18896         * modules/unicase/u32-totitle: New file.
18897
18898         New module 'unicase/u16-totitle'.
18899         * lib/unicase/u16-totitle.c: New file.
18900         * modules/unicase/u16-totitle: New file.
18901
18902         New module 'unicase/u8-totitle'.
18903         * lib/unicase/u8-totitle.c: New file.
18904         * lib/unicase/u-totitle.h: New file.
18905         * modules/unicase/u8-totitle: New file.
18906
18907         Tests for module 'unicase/u32-tolower'.
18908         * modules/unicase/u32-tolower-tests: New file.
18909         * tests/unicase/test-u32-tolower.c: New file.
18910
18911         Tests for module 'unicase/u16-tolower'.
18912         * modules/unicase/u16-tolower-tests: New file.
18913         * tests/unicase/test-u16-tolower.c: New file.
18914
18915         Tests for module 'unicase/u8-tolower'.
18916         * modules/unicase/u8-tolower-tests: New file.
18917         * tests/unicase/test-u8-tolower.c: New file.
18918
18919         New module 'unicase/u32-tolower'.
18920         * lib/unicase/u32-tolower.c: New file.
18921         * modules/unicase/u32-tolower: New file.
18922
18923         New module 'unicase/u16-tolower'.
18924         * lib/unicase/u16-tolower.c: New file.
18925         * modules/unicase/u16-tolower: New file.
18926
18927         New module 'unicase/u8-tolower'.
18928         * lib/unicase/u8-tolower.c: New file.
18929         * modules/unicase/u8-tolower: New file.
18930
18931         Tests for module 'unicase/u32-toupper'.
18932         * modules/unicase/u32-toupper-tests: New file.
18933         * tests/unicase/test-u32-toupper.c: New file.
18934
18935         Tests for module 'unicase/u16-toupper'.
18936         * modules/unicase/u16-toupper-tests: New file.
18937         * tests/unicase/test-u16-toupper.c: New file.
18938
18939         Tests for module 'unicase/u8-toupper'.
18940         * modules/unicase/u8-toupper-tests: New file.
18941         * tests/unicase/test-u8-toupper.c: New file.
18942
18943         New module 'unicase/u32-toupper'.
18944         * lib/unicase/u32-toupper.c: New file.
18945         * modules/unicase/u32-toupper: New file.
18946
18947         New module 'unicase/u16-toupper'.
18948         * lib/unicase/u16-toupper.c: New file.
18949         * modules/unicase/u16-toupper: New file.
18950
18951         New module 'unicase/u8-toupper'.
18952         * lib/unicase/u8-toupper.c: New file.
18953         * modules/unicase/u8-toupper: New file.
18954
18955         New module 'unicase/u32-casemap'.
18956         * lib/unicase/u32-casemap.c: New file.
18957         * modules/unicase/u32-casemap: New file.
18958
18959         New module 'unicase/u16-casemap'.
18960         * lib/unicase/u16-casemap.c: New file.
18961         * modules/unicase/u16-casemap: New file.
18962
18963         New module 'unicase/u8-casemap'.
18964         * lib/unicase/unicasemap.h: New file.
18965         * lib/unicase/u8-casemap.c: New file.
18966         * lib/unicase/u-casemap.h: New file.
18967         * modules/unicase/u8-casemap: New file.
18968
18969         New module 'unicase/special-casing'.
18970         * lib/unicase/special-casing.h: New file.
18971         * lib/unicase/special-casing.c: New file.
18972         * lib/unicase/special-casing-table.gperf: New file, generated by
18973         gen-uni-tables.c.
18974         * modules/unicase/special-casing: New file.
18975
18976         Tests for module 'unicase/locale-language'.
18977         * modules/unicase/locale-language-tests: New file.
18978         * tests/unicase/test-locale-language.sh: New file.
18979         * tests/unicase/test-locale-language.c: New file.
18980
18981         New module 'unicase/locale-language'.
18982         * lib/unicase/locale-language.c: New file.
18983         * lib/unicase/locale-languages.gperf: New file.
18984         * modules/unicase/locale-language: New file.
18985
18986         Generate more tables for case conversion and case folding.
18987         * lib/gen-uni-tables.c (SCC_*): New enum items.
18988         (struct special_casing_rule): New type.
18989         (casing_rules, num_casing_rules, allocated_casing_rules): New
18990         variables.
18991         (add_casing_rule, fill_casing_rules): New functions.
18992         (struct casefold_rule): New type.
18993         (casefolding_rules, num_casefolding_rules,
18994         allocated_casefolding_rules): New variables.
18995         (fill_casefolding_rules): New function.
18996         (unicode_casefold): New variable.
18997         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18998         sort_casing_rules, output_casing_rules): New functions.
18999         (main): Accept to more arguments: SpecialCasing.txt and
19000         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19001         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19002         Output mapping for casefolding.
19003
19004         * lib/unicase.h: Include stdbool.h, uninorm.h.
19005         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19006         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19007         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19008         arguments.
19009         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19010         resultp arguments.
19011         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19012         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19013         resultp arguments.
19014         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19015         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19016         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19017         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19018         declarations.
19019         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19020
19021 2009-03-08  Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19024         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19025         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19026         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19027
19028 2009-03-07  Bruno Haible  <bruno@clisp.org>
19029
19030         Adjust u*_normcmp, u*_normcoll API.
19031         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19032         u16_normcoll, u32_normcoll): Change failure conventions.
19033         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19034         errno and return -1.
19035         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19036
19037 2009-03-07  Bruno Haible  <bruno@clisp.org>
19038
19039         Tests for module 'uninorm/u32-normcoll'.
19040         * modules/uninorm/u32-normcoll-tests: New file.
19041         * tests/uninorm/test-u32-normcoll.c: New file.
19042
19043         Tests for module 'uninorm/u16-normcoll'.
19044         * modules/uninorm/u16-normcoll-tests: New file.
19045         * tests/uninorm/test-u16-normcoll.c: New file.
19046
19047         Tests for module 'uninorm/u8-normcoll'.
19048         * modules/uninorm/u8-normcoll-tests: New file.
19049         * tests/uninorm/test-u8-normcoll.c: New file.
19050
19051 2009-03-07  Bruno Haible  <bruno@clisp.org>
19052
19053         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19054         tests/uninorm/test-u32-normcmp.c.
19055         * tests/uninorm/test-u32-normcmp.c: Include it.
19056         (test_nonascii): New function, extracted from main. Add some more
19057         tests.
19058         (main): Invoke test_ascii and test_nonascii.
19059         * modules/uninorm/u32-normcmp-tests (Files): Add
19060         tests/uninorm/test-u32-normcmp.h.
19061         (Depends-on): Remove uninorm/u32-normcmp.
19062
19063         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19064         tests/uninorm/test-u16-normcmp.c.
19065         * tests/uninorm/test-u16-normcmp.c: Include it.
19066         (test_nonascii): New function, extracted from main. Add some more
19067         tests.
19068         (main): Invoke test_ascii and test_nonascii.
19069         * modules/uninorm/u16-normcmp-tests (Files): Add
19070         tests/uninorm/test-u16-normcmp.h.
19071         (Depends-on): Remove uninorm/u16-normcmp.
19072
19073         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19074         tests/uninorm/test-u8-normcmp.c.
19075         * tests/uninorm/test-u8-normcmp.c: Include it.
19076         (test_nonascii): New function, extracted from main. Add some more
19077         tests.
19078         (main): Invoke test_ascii and test_nonascii.
19079         * modules/uninorm/u8-normcmp-tests (Files): Add
19080         tests/uninorm/test-u8-normcmp.h.
19081         (Depends-on): Remove uninorm/u8-normcmp.
19082
19083 2009-03-07  Bruno Haible  <bruno@clisp.org>
19084
19085         New module 'uninorm/u32-normcoll'.
19086         * lib/uninorm/u32-normcoll.c: New file.
19087         * modules/uninorm/u32-normcoll: New file.
19088
19089         New module 'uninorm/u16-normcoll'.
19090         * lib/uninorm/u16-normcoll.c: New file.
19091         * modules/uninorm/u16-normcoll: New file.
19092
19093         New module 'uninorm/u8-normcoll'.
19094         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19095         declarations.
19096         * lib/uninorm/u8-normcoll.c: New file.
19097         * lib/uninorm/u-normcoll.h: New file.
19098         * modules/uninorm/u8-normcoll: New file.
19099
19100         New module 'uninorm/u32-normxfrm'.
19101         * lib/uninorm/u32-normxfrm.c: New file.
19102         * modules/uninorm/u32-normxfrm: New file.
19103
19104         New module 'uninorm/u16-normxfrm'.
19105         * lib/uninorm/u16-normxfrm.c: New file.
19106         * modules/uninorm/u16-normxfrm: New file.
19107
19108         New module 'uninorm/u8-normxfrm'.
19109         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19110         declarations.
19111         * lib/uninorm/u8-normxfrm.c: New file.
19112         * lib/uninorm/u-normxfrm.h: New file.
19113         * modules/uninorm/u8-normxfrm: New file.
19114
19115 2009-03-07  Bruno Haible  <bruno@clisp.org>
19116
19117         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19118         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19119         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19120
19121 2009-03-07  Bruno Haible  <bruno@clisp.org>
19122
19123         New module 'memxfrm'.
19124         * lib/memxfrm.h: New file.
19125         * lib/memxfrm.c: New file.
19126         * modules/memxfrm: New file.
19127
19128 2009-03-07  Bruno Haible  <bruno@clisp.org>
19129
19130         New module 'memcmp2'.
19131         * lib/memcmp2.h: New file.
19132         * lib/memcmp2.c: New file.
19133         * modules/memcmp2: New file.
19134
19135 2009-03-07  Bruno Haible  <bruno@clisp.org>
19136
19137         Tests for module 'uninorm/decomposing-form'.
19138         * modules/uninorm/decomposing-form-tests: New file.
19139         * tests/uninorm/test-decomposing-form.c: New file.
19140
19141         New module 'uninorm/decomposing-form'.
19142         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19143         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19144         Add 'decomposing_variant' field.
19145         * lib/uninorm/decomposing-form.c: New file.
19146         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19147         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19148         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19149         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19150         * modules/uninorm/decomposing-form: New file.
19151         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19152         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19153
19154 2009-03-07  Bruno Haible  <bruno@clisp.org>
19155
19156         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19157         strings.
19158
19159 2009-03-06  Bruno Haible  <bruno@clisp.org>
19160
19161         Tests for module 'uninorm/u32-normcmp'.
19162         * tests/uninorm/test-u32-normcmp.c: New file.
19163         * modules/uninorm/u32-normcmp-tests: New file.
19164
19165         Tests for module 'uninorm/u16-normcmp'.
19166         * tests/uninorm/test-u16-normcmp.c: New file.
19167         * modules/uninorm/u16-normcmp-tests: New file.
19168
19169         Tests for module 'uninorm/u8-normcmp'.
19170         * tests/uninorm/test-u8-normcmp.c: New file.
19171         * modules/uninorm/u8-normcmp-tests: New file.
19172
19173         New module 'uninorm/u32-normcmp'.
19174         * lib/uninorm/u32-normcmp.c: New file.
19175         * modules/uninorm/u32-normcmp: New file.
19176
19177         New module 'uninorm/u16-normcmp'.
19178         * lib/uninorm/u16-normcmp.c: New file.
19179         * modules/uninorm/u16-normcmp: New file.
19180
19181         New module 'uninorm/u8-normcmp'.
19182         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19183         declarations.
19184         * lib/uninorm/u8-normcmp.c: New file.
19185         * lib/uninorm/u-normcmp.h: New file.
19186         * modules/uninorm/u8-normcmp: New file.
19187
19188 2009-03-06  Bruno Haible  <bruno@clisp.org>
19189
19190         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19191         Reported by Eric Blake.
19192
19193 2009-03-06  Eric Blake  <ebb9@byu.net>
19194             Bruno Haible  <bruno@clisp.org>
19195
19196         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19197         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19198         condition.
19199         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19200         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19201         condition.
19202         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19203
19204 2009-03-06  Eric Blake  <ebb9@byu.net>
19205
19206         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19207         to avoid compiler warnings.
19208         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19209
19210 2009-03-05  Bruno Haible  <bruno@clisp.org>
19211
19212         * tests/test-ftell.c (main): Disable test beyond end of file on
19213         FreeMiNT.
19214         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19215
19216 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19217
19218         * lib/filevercmp.c: Move hidden files up in ordering.
19219         * tests/test-filevercmp.c: Add tests for hidden files.
19220
19221 2009-03-04  Bruno Haible  <bruno@clisp.org>
19222
19223         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19224         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19225         AM_CFLAGS.
19226         Reported by Simon Josefsson.
19227
19228 2009-03-03  Bruno Haible  <bruno@clisp.org>
19229
19230         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19231         Reported by Simon Josefsson.
19232
19233         * doc/ld-version-script.texi: Update node reference.
19234
19235 2009-03-03  Bruno Haible  <bruno@clisp.org>
19236
19237         * modules/visibility (License): Change to 'unlimited'.
19238         Suggested by Simon Josefsson.
19239
19240 2009-03-03  Jim Meyering  <meyering@redhat.com>
19241
19242         unlinkdir: cannot_unlink_dir may modify process state
19243         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19244         it's neither thread-safe nor appropriate for use in a library.
19245
19246 2009-03-03  Eric Blake  <ebb9@byu.net>
19247
19248         test-closein: silence test under Darwin
19249         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19250         care if it dies from EPIPE or EBADF.
19251
19252 2009-03-03  Bruno Haible  <bruno@clisp.org>
19253
19254         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19255         earlier.
19256         * doc/visibility.texi: Fix @node and @section.
19257
19258 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19259
19260         * doc/gnulib.texi: Link to sections for ld version script and
19261         visibility.
19262         * doc/visibility.texi: Add @node and @section.
19263         * modules/ld-version-script: New module.
19264         * m4/ld-version-script.m4: New file.
19265         * doc/ld-version-script.texi: New file.
19266
19267 2009-03-02  David Lutterkort  <lutter@redhat.com>
19268
19269         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19271
19272 2009-03-02  Bruno Haible  <bruno@clisp.org>
19273
19274         * doc/visibility.texi: Mention libtool's -export-symbols option.
19275
19276 2009-03-02  Jim Meyering  <meyering@redhat.com>
19277
19278         announce-gen: new option: --no-print-checksums
19279         * build-aux/announce-gen (usage): Describe it.
19280         (print_checksums): Print a newline here, not in the [*] footnote.
19281         (main): Honor it.
19282
19283 2009-03-01  Bruno Haible  <bruno@clisp.org>
19284
19285         Use socklen_t in the native Windows replacements prototypes.
19286         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19287         instead of 'int'.
19288         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19289         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19290         * modules/getsockopt (Depends-on): Add socklen.
19291         * modules/setsockopt (Depends-on): Add socklen.
19292
19293 2009-03-01  Bruno Haible  <bruno@clisp.org>
19294
19295         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19296         least 4.2.
19297
19298 2009-03-01  Eric Blake  <ebb9@byu.net>
19299             Bruno Haible  <bruno@clisp.org>
19300
19301         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19302         error messages.
19303         * lib/wait-process.c (wait_subprocess): Omit error message about
19304         deadly signal sent to the child of termsigp != NULL.
19305
19306 2009-03-01  Eric Blake  <ebb9@byu.net>
19307
19308         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19309
19310 2009-03-01  Bruno Haible  <bruno@clisp.org>
19311
19312         Avoid a gcc warning.
19313         * tests/test-sched.c (b): Make global.
19314         Reported by Eric Blake.
19315
19316 2009-01-19  Martin Lambers  <marlam@marlam.de>
19317
19318         Provide POSIX semantics for socket timeout options on W32.
19319         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19320         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19321         * modules/setsockopt: Depend on sys_time module for struct timeval.
19322         * modules/getsockopt: Depend on sys_time module for struct timeval.
19323
19324 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19325
19326         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19327         __USE_GNU, for consistency with netdb.in.h.
19328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19329
19330 2009-03-01  Bruno Haible  <bruno@clisp.org>
19331
19332         More support for FreeMiNT.
19333         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19334         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19335
19336 2009-03-01  Bruno Haible  <bruno@clisp.org>
19337
19338         More support for FreeMiNT.
19339         * lib/fpurge.c (fpurge): Correct last commit.
19340         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19341
19342 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19343
19344         Fix unportable awk script in vc-list-files.
19345         * build-aux/vc-list-files: In the replacement awk script, use
19346         substr with a second argument of 1, not zero.
19347         Report by Simon Josefsson.
19348
19349 2009-02-28  Bruno Haible  <bruno@clisp.org>
19350
19351         More support for FreeMiNT.
19352         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19353         to FreeMiNT today.
19354         * lib/fwriting.c (fwriting): Likewise.
19355         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19356
19357 2009-02-28  Bruno Haible  <bruno@clisp.org>
19358
19359         * tests/test-freadseek.c (main): Disable test beyond end of file on
19360         FreeMiNT.
19361         * tests/test-ftello.c (main): Likewise.
19362         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19363
19364 2009-02-28  Bruno Haible  <bruno@clisp.org>
19365
19366         Add tentative support for FreeMiNT.
19367         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19368         * lib/fpurge.c (fpurge): Likewise.
19369         * lib/freadable.c (freadable): Likewise.
19370         * lib/freading.c (freading): Likewise.
19371         * lib/freadptr.c (freadptr): Likewise.
19372         * lib/freadseek.c (freadptrinc): Likewise.
19373         * lib/fseeko.c (rpl_fseeko): Likewise.
19374         * lib/fseterr.c (fseterr): Likewise.
19375         * lib/fwritable.c (fwritable): Likewise.
19376         * lib/fwriting.c (fwriting): Likewise.
19377         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19378         Hourihane.
19379         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19380
19381 2009-02-28  Bruno Haible  <bruno@clisp.org>
19382
19383         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19384         SIGCHLD.
19385         Reported by Jim Meyering.
19386
19387 2009-02-28  Bruno Haible  <bruno@clisp.org>
19388
19389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19390         Mention the results of these tests on various platforms.
19391         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19392         order.
19393         * doc/posix-functions/printf.texi: Likewise.
19394         * doc/posix-functions/snprintf.texi: Likewise.
19395         * doc/posix-functions/sprintf.texi: Likewise.
19396         * doc/posix-functions/vfprintf.texi: Likewise.
19397         * doc/posix-functions/vprintf.texi: Likewise.
19398         * doc/posix-functions/vsnprintf.texi: Likewise.
19399         * doc/posix-functions/vsprintf.texi: Likewise.
19400         * doc/glibc-functions/obstack_printf.texi: Likewise.
19401         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19402
19403 2009-02-28  Bruno Haible  <bruno@clisp.org>
19404
19405         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19406         Reported by Loïc Minier <lool@dooz.org>.
19407
19408 2009-02-27  Bruno Haible  <bruno@clisp.org>
19409
19410         * gnulib-tool (func_import): Make the sed expression used to create the
19411         sed script for updating the .gitignore file POSIX compliant.
19412         Reported by Eric Blake.
19413
19414 2009-02-27  Bruno Haible  <bruno@clisp.org>
19415
19416         * gnulib-tool (sed): Don't alias as "sed --posix".
19417         Reported by Eric Blake.
19418
19419 2009-02-27  Bruno Haible  <bruno@clisp.org>
19420
19421         Avoid test link errors.
19422         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19423         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19424         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19425         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19427
19428 2009-02-27  Bruno Haible  <bruno@clisp.org>
19429
19430         Avoid spurious "(cached)" in configure output.
19431         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19432         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19433         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19434         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19435         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19436         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19437         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19438         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19439         Reported by Eric Blake.
19440
19441 2009-02-27  Eric Blake  <ebb9@byu.net>
19442
19443         printf: fix regression in previous patch
19444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19445
19446 2009-02-27  Bruno Haible  <bruno@clisp.org>
19447
19448         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19449         value.
19450         * lib/stdint.in.h: Likewise.
19451         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19452
19453 2009-02-27  Eric Blake  <ebb9@byu.net>
19454
19455         doc: mention more functions added in cygwin 1.7.0
19456         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19457         addition.
19458         * doc/posix-functions/open_wmemstream.texi: Likewise.
19459         * doc/posix-functions/wcsnlen.texi: Likewise.
19460         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19461         * doc/posix-functions/wcstod.texi: Likewise.
19462         * doc/posix-functions/wcstof.texi: Likewise.
19463         * doc/posix-functions/wcstoimax.texi: Likewise.
19464         * doc/posix-functions/wcstok.texi: Likewise.
19465         * doc/posix-functions/wcstoumax.texi: Likewise.
19466
19467         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19469         * doc/posix-functions/fprintf.texi: Update.
19470         * doc/posix-functions/printf.texi: Update.
19471         * doc/posix-functions/snprintf.texi: Update.
19472         * doc/posix-functions/sprintf.texi: Update.
19473         * doc/posix-functions/vfprintf.texi: Update.
19474         * doc/posix-functions/vprintf.texi: Update.
19475         * doc/posix-functions/vsnprintf.texi: Update.
19476         * doc/posix-functions/vsprintf.texi: Update.
19477         * doc/glibc-functions/obstack_printf.texi: Update.
19478         * doc/glibc-functions/obstack_vprintf.texi: Update.
19479
19480 2009-02-26  Eric Blake  <ebb9@byu.net>
19481
19482         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19483         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19484         compilation bug by using runtime conversion.
19485         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19486         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19487         * modules/ceill-tests (Files): Use nan.h.
19488         * modules/floorl-tests (Files): Likewise.
19489         * modules/frexpl-tests (Files): Likewise.
19490         * modules/isnanl-tests (Files): Likewise.
19491         * modules/ldexpl-tests (Files): Likewise.
19492         * modules/roundl-tests (Files): Likewise.
19493         * modules/truncl-tests (Files): Likewise.
19494         * tests/test-ceill.c (main): Use a working NaN.
19495         * tests/test-floorl.c (main): Likewise.
19496         * tests/test-frexpl.c (main): Likewise.
19497         * tests/test-isnan.c (test_long_double): Likewise.
19498         * tests/test-isnanl.h (main): Likewise.
19499         * tests/test-ldexpl.h (main): Likewise.
19500         * tests/test-roundl.h (main): Likewise.
19501         * tests/test-truncl.h (main): Likewise.
19502         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19503
19504 2009-02-26  Eric Blake  <ebb9@byu.net>
19505             Bruno Haible  <bruno@clisp.org>
19506
19507         Work around a *printf bug with %ls on Solaris.
19508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19509         precision is specified, sprintf stops converting the wide string
19510         argument when the number of bytes that have been produced by this
19511         conversion equals or exceeds the precision.
19512         * doc/posix-functions/fprintf.texi: Update.
19513         * doc/posix-functions/printf.texi: Update.
19514         * doc/posix-functions/snprintf.texi: Update.
19515         * doc/posix-functions/sprintf.texi: Update.
19516         * doc/posix-functions/vfprintf.texi: Update.
19517         * doc/posix-functions/vprintf.texi: Update.
19518         * doc/posix-functions/vsnprintf.texi: Update.
19519         * doc/posix-functions/vsprintf.texi: Update.
19520         * doc/glibc-functions/obstack_printf.texi: Update.
19521         * doc/glibc-functions/obstack_vprintf.texi: Update.
19522
19523 2009-02-26  Eric Blake  <ebb9@byu.net>
19524
19525         stdlib: favor compiler check of random.h
19526         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19527         to avoid an ObjC random.h installed by Swarm.
19528
19529 2009-02-26  Bruno Haible  <bruno@clisp.org>
19530
19531         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19532         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19533         Reported by Gary V. Vaughan <gary@gnu.org>.
19534
19535 2009-02-26  Bruno Haible  <bruno@clisp.org>
19536
19537         Fix *printf behaviour regarding the %ls directive.
19538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19539         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19540         NEED_PRINTF_DIRECTIVE_LS.
19541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19542         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19544         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19545         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19546         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19547         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19552         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19556         * doc/posix-functions/fprintf.texi: Update.
19557         * doc/posix-functions/printf.texi: Update.
19558         * doc/posix-functions/snprintf.texi: Update.
19559         * doc/posix-functions/sprintf.texi: Update.
19560         * doc/posix-functions/vfprintf.texi: Update.
19561         * doc/posix-functions/vprintf.texi: Update.
19562         * doc/posix-functions/vsnprintf.texi: Update.
19563         * doc/posix-functions/vsprintf.texi: Update.
19564         * doc/glibc-functions/obstack_printf.texi: Update.
19565         * doc/glibc-functions/obstack_vprintf.texi: Update.
19566         Reported by Eric Blake.
19567
19568 2009-02-25  Bruno Haible  <bruno@clisp.org>
19569
19570         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19571         with known value.
19572         Reported by Gary V. Vaughan <gary@gnu.org>.
19573
19574 2009-02-25  Bruno Haible  <bruno@clisp.org>
19575
19576         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19577         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19578         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19579         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19580         Reported by Gary V. Vaughan <gary@gnu.org>.
19581
19582 2009-02-25  Bruno Haible  <bruno@clisp.org>
19583
19584         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19585         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19586         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19587         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19588         Reported by Gary V. Vaughan <gary@gnu.org>.
19589
19590 2009-02-25  Eric Blake  <ebb9@byu.net>
19591
19592         tests: skip fseek/ftell tests if ungetc is broken
19593         * m4/ungetc.m4: New file.
19594         * modules/fseek-tests: Split test, so ungetc dependency is
19595         separate from rest of test.
19596         * modules/fseeko-tests: Likewise.
19597         * modules/ftell-tests: Likewise.
19598         * modules/ftello-tests: Likewise.
19599         * tests/test-fseek.c (main): Isolate ungetc dependency.
19600         * tests/test-fseeko.c (main): Likewise.
19601         * tests/test-ftell.c (main): Likewise.
19602         * tests/test-ftello.c (main): Likewise.
19603         * tests/test-fseek2.sh: New file.
19604         * tests/test-fseeko2.sh: Likewise.
19605         * tests/test-ftell2.sh: Likewise.
19606         * tests/test-ftello2.sh: Likewise.
19607
19608 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
19609
19610         test-getaddrinfo: fix usage of skip return code 77
19611         * tests/test-gettaddrinfo.c: Return skip code 77 only
19612         for first occurance of skip (4x77 is not 77)
19613
19614 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19615
19616         strtod: avoid C99 decl-after-statement
19617         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19618
19619 2009-02-24  Eric Blake  <ebb9@byu.net>
19620
19621         strtod: detect HP-UX 11.31 bug
19622         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19623         Reported by Gary V. Vaughan.
19624
19625 2009-02-23  Bruno Haible  <bruno@clisp.org>
19626
19627         Fix invalid read past end of memory block.
19628         * lib/vasnprintf.c (DCHAR_SET): Define.
19629         (local_wcslen): Define only when needed.
19630         (local_strnlen, local_wcsnlen): New functions.
19631         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19632         directives that involve a conversion ourselves.
19633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19634         wcsnlen, mbrtowc, wcrtomb.
19635         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19636         * tests/test-vasprintf-posix.c (test_function): Likewise.
19637         * tests/test-snprintf-posix.h (test_function): Likewise.
19638         * tests/test-sprintf-posix.h (test_function): Likewise.
19639         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19640
19641 2009-02-22  Bruno Haible  <bruno@clisp.org>
19642
19643         Implement new clarified decomposition of Hangul syllables.
19644         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19645         of type LTV, return only a pairwise decomposition.
19646         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19647         Likewise.
19648         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19649         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19650         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19651
19652 2009-02-22  Bruno Haible  <bruno@clisp.org>
19653
19654         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19655         zero-length results and shrink excess allocated memory.
19656         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19657         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19658         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19659         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19660         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19661         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19662         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19663         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19664         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19665         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19666         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19667         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19668
19669 2009-02-21  Bruno Haible  <bruno@clisp.org>
19670
19671         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19672         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19673         spaces after a period. Put a space between a macro name and its
19674         argument list. Trivial rewordings.
19675         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19676         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19677         (main): Return 0 explicitly.
19678
19679 2009-02-21  Bruno Haible  <bruno@clisp.org>
19680
19681         Tests for module 'uninorm/filter'.
19682         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19683         * modules/uninorm/filter-tests: New file.
19684
19685         New module 'uninorm/filter'.
19686         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19687         uninorm_filter_flush, uninorm_filter_free): New declarations.
19688         * lib/uninorm/uninorm-filter.c: New file.
19689         * modules/uninorm/filter: New file.
19690
19691 2009-02-21  Bruno Haible  <bruno@clisp.org>
19692
19693         Tests for module 'uninorm/nfkc'.
19694         * tests/uninorm/test-nfkc.c: New file.
19695         * tests/uninorm/test-u8-nfkc.c: New file.
19696         * tests/uninorm/test-u16-nfkc.c: New file.
19697         * tests/uninorm/test-u32-nfkc.c: New file.
19698         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19699         * tests/uninorm/test-u32-nfkc-big.c: New file.
19700         * modules/uninorm/nfkc-tests: New file.
19701
19702         New module 'uninorm/nfkc'.
19703         * lib/uninorm/nfkc.c: New file.
19704         * modules/uninorm/nfkc: New file.
19705
19706         Tests for module 'uninorm/nfkd'.
19707         * tests/uninorm/test-nfkd.c: New file.
19708         * tests/uninorm/test-u8-nfkd.c: New file.
19709         * tests/uninorm/test-u16-nfkd.c: New file.
19710         * tests/uninorm/test-u32-nfkd.c: New file.
19711         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19712         * tests/uninorm/test-u32-nfkd-big.c: New file.
19713         * modules/uninorm/nfkd-tests: New file.
19714
19715         New module 'uninorm/nfkd'.
19716         * lib/uninorm/nfkd.c: New file.
19717         * modules/uninorm/nfkd: New file.
19718
19719         Tests for module 'uninorm/nfc'.
19720         * tests/uninorm/test-nfc.c: New file.
19721         * tests/uninorm/test-u8-nfc.c: New file.
19722         * tests/uninorm/test-u16-nfc.c: New file.
19723         * tests/uninorm/test-u32-nfc.c: New file.
19724         * tests/uninorm/test-u32-nfc-big.sh: New file.
19725         * tests/uninorm/test-u32-nfc-big.c: New file.
19726         * modules/uninorm/nfc-tests: New file.
19727
19728         New module 'uninorm/nfc'.
19729         * lib/uninorm/nfc.c: New file.
19730         * modules/uninorm/nfc: New file.
19731
19732         Tests for module 'uninorm/nfd'.
19733         * tests/uninorm/test-nfd.c: New file.
19734         * tests/uninorm/test-u8-nfd.c: New file.
19735         * tests/uninorm/test-u16-nfd.c: New file.
19736         * tests/uninorm/test-u32-nfd.c: New file.
19737         * tests/uninorm/test-u32-nfd-big.sh: New file.
19738         * tests/uninorm/test-u32-nfd-big.c: New file.
19739         * tests/uninorm/test-u32-normalize-big.h: New file.
19740         * tests/uninorm/test-u32-normalize-big.c: New file.
19741         * tests/uninorm/NormalizationTest.txt: New file, created from
19742         Unicode 5.1.0 NormalizationTest.txt.
19743         * modules/uninorm/nfd-tests: New file.
19744
19745         New module 'uninorm/nfd'.
19746         * lib/uninorm/nfd.c: New file.
19747         * modules/uninorm/nfd: New file.
19748
19749         New module 'uninorm/u32-normalize'.
19750         * lib/uninorm/u32-normalize.c: New file.
19751         * modules/uninorm/u32-normalize: New file.
19752
19753         New module 'uninorm/u16-normalize'.
19754         * lib/uninorm/u16-normalize.c: New file.
19755         * modules/uninorm/u16-normalize: New file.
19756
19757         New module 'uninorm/u8-normalize'.
19758         * lib/uninorm/u8-normalize.c: New file.
19759         * lib/uninorm/normalize-internal.h: New file.
19760         * lib/uninorm/u-normalize-internal.h: New file.
19761         * modules/uninorm/u8-normalize: New file.
19762
19763         New module 'uninorm/decompose-internal'.
19764         * lib/uninorm/decompose-internal.c: New file.
19765         * modules/uninorm/decompose-internal: New file.
19766
19767         Tests for module 'uninorm/composition'.
19768         * tests/uninorm/test-composition.c: New file.
19769         * modules/uninorm/composition-tests: New file.
19770
19771         New module 'uninorm/composition'.
19772         * lib/uninorm/composition.c: New file.
19773         * lib/uninorm/composition-table.gperf: New file, generated by
19774         gen-uni-tables.
19775         * modules/uninorm/composition: New file.
19776
19777         Tests for module 'uninorm/compat-decomposition'.
19778         * tests/uninorm/test-compat-decomposition.c: New file.
19779         * modules/uninorm/compat-decomposition-tests: New file.
19780
19781         New module 'uninorm/compat-decomposition'.
19782         * lib/uninorm/decompose-internal.h: New file.
19783         * lib/uninorm/compat-decomposition.c: New file.
19784         * modules/uninorm/compat-decomposition: New file.
19785
19786         Tests for module 'uninorm/canonical-decomposition'.
19787         * tests/uninorm/test-canonical-decomposition.c: New file.
19788         * modules/uninorm/canonical-decomposition-tests: New file.
19789
19790         New module 'uninorm/canonical-decomposition'.
19791         * lib/uninorm/canonical-decomposition.c: New file.
19792         * modules/uninorm/canonical-decomposition: New file.
19793
19794         Tests for module 'uninorm/decomposition'.
19795         * tests/uninorm/test-decomposition.c: New file.
19796         * modules/uninorm/decomposition-tests: New file.
19797
19798         New module 'uninorm/decomposition'.
19799         * lib/uninorm/decomposition.c: New file.
19800         * modules/uninorm/decomposition: New file.
19801
19802         New module 'uninorm/decomposition-table'.
19803         * lib/uninorm/decomposition-table.h: New file.
19804         * lib/uninorm/decomposition-table.c: New file.
19805         * lib/uninorm/decomposition-table1.h: New file, generated by
19806         gen-uni-tables.
19807         * lib/uninorm/decomposition-table2.h: New file, generated by
19808         gen-uni-tables.
19809         * modules/uninorm/decomposition-table: New file.
19810
19811         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19812         (UC_DECOMP_*): New enumeration items.
19813         (get_decomposition): New function.
19814         (struct decomp_table): New type.
19815         (output_decomposition, output_decomposition_tables): New functions.
19816         (unicode_composition_exclusions): New variable.
19817         (fill_composition_exclusions, debug_output_composition_tables): New
19818         functions.
19819         (main): Accept one more argument. Invoke fill_composition_exclusions.
19820         Output decomposition and composition tables.
19821
19822         New module 'uninorm/base'.
19823         * lib/uninorm.h: New file.
19824         * lib/unictype.h: Update comment.
19825         * modules/uninorm/base: New file.
19826
19827 2009-02-21  David Lutterkort  <lutter@redhat.com>
19828
19829         Tests for module 'safe-alloc'.
19830         * tests/test-safe-alloc.c: New file.
19831         * modules/safe-alloc-tests: New file.
19832
19833         New module 'safe-alloc'.
19834         * lib/safe-alloc.h: New file.
19835         * lib/safe-alloc.c: New file.
19836         * m4/safe-alloc.m4: New file.
19837         * modules/safe-alloc: New file.
19838         * doc/safe-alloc.texi: New file.
19839         * doc/gnulib.texi: Include it.
19840         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19841         safe-alloc.
19842
19843 2009-02-18  Bruno Haible  <bruno@clisp.org>
19844
19845         Fix link error on non-glibc systems.
19846         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19847         variable.
19848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19849
19850 2009-02-18  Jim Meyering  <meyering@redhat.com>
19851
19852         fts: avoid used-uninitialized error due to recent change
19853         * lib/fts.c (fts_read): Guard uses of the new member,
19854         parent->fts_n_dirs_remaining, since it's not relevant for
19855         the parent of a directory specified on the command-line.
19856
19857 2009-02-17  James Youngman  <jay@gnu.org>
19858             Bruno Haible  <bruno@clisp.org>
19859
19860         * m4/include_next.m4: Reformulate comment.
19861
19862 2009-02-16  Jim Meyering  <meyering@redhat.com>
19863
19864         fts: add #if guards so that the fts_lgpl module still builds
19865         * lib/fts.c: Guard just-added hash-table-using parts with
19866         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19867         Reported by Simon Josefsson.
19868
19869 2009-02-15  Bruno Haible  <bruno@clisp.org>
19870
19871         * modules/array-mergesort-tests: New file.
19872         * tests/test-array-mergesort.c: New file.
19873
19874         New module 'array-mergesort'.
19875         * modules/array-mergesort: New file.
19876         * lib/array-mergesort.h: New file.
19877
19878 2009-02-15  Bruno Haible  <bruno@clisp.org>
19879
19880         Fix 2009-02-07 commit.
19881         * lib/gen-uni-tables.c (output_predicate, output_category,
19882         output_combclass, output_bidi_category, output_decimal_digit,
19883         output_digit, output_numeric, output_mirror, output_scripts,
19884         output_ident_category, output_simple_mapping): Fix format directives.
19885         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19886
19887 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19888
19889         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19890         fixes are available from IBM.
19891
19892 2009-02-13  Jim Meyering  <meyering@redhat.com>
19893
19894         fts: arrange not to stat non-directories in more cases
19895         This makes GNU find (when it doesn't need to stat each file)
19896         *much* more efficient at traversing reiserfs file systems.
19897         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19898         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19899         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19900         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19901         (leaf_optimization_applies): New function.
19902         (LCO_hash, LCO_compare): New helper functions.
19903         (link_count_optimize_ok): New function.
19904         (fts_stat): Initialize new member (if dir).
19905         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19906         we've just stat'ed a directory.  Skip the stat call when possible.
19907         ---
19908         Note this AFS-related exchange:
19909         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19910         and note find's pioctl call in find/fstype.c.
19911         But that is necessary only if you want to enable the
19912         optimization for AFS, and for now, I don't.
19913
19914         fts: move a function definition "up" (no semantic change)
19915         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19916         "up" to precede upcoming use of a related function.
19917
19918 2009-02-11  Jim Meyering  <meyering@redhat.com>
19919
19920         fts: correct internal computation of nlinks (optimization-related)
19921         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19922         whether the current entry is a directory, so don't test it.
19923
19924 2009-02-10  Bruno Haible  <bruno@clisp.org>
19925
19926         Tests for module 'uniwbrk/ulc-wordbreaks'.
19927         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19928         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19929         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19930
19931         Tests for module 'uniwbrk/u32-wordbreaks'.
19932         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19933         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19934
19935         Tests for module 'uniwbrk/u16-wordbreaks'.
19936         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19937         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19938
19939         Tests for module 'uniwbrk/u8-wordbreaks'.
19940         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19941         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19942
19943 2009-02-10  Bruno Haible  <bruno@clisp.org>
19944
19945         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19946         property.
19947         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19948         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19949         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19950
19951 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19952
19953         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19954         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19955
19956 2009-02-10  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19959         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19960         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19961         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19962         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19963         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19964
19965 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19966
19967         * lib/sockets.h (gl_fd_to_handle): New function.
19968
19969         * tests/test-sockets.c: Call gl_fd_to_handle.
19970
19971 2009-02-09  Bruno Haible  <bruno@clisp.org>
19972
19973         * doc/havelib.texi: Document the conventions on bi-arch systems.
19974
19975 2009-02-08  Bruno Haible  <bruno@clisp.org>
19976
19977         Document the AC_LIB_LINKFLAGS macro.
19978         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19979         * doc/gnulib.texi: Include it.
19980
19981 2009-02-08  Bruno Haible  <bruno@clisp.org>
19982
19983         Fix wrong order of sections, compared to TOC.
19984         * doc/gnulib.texi: Include relocatable-maint.texi after the
19985         "Regular expressions" node, not before.
19986
19987 2009-02-08  Bruno Haible  <bruno@clisp.org>
19988
19989         Tests for module 'unicase/totitle'.
19990         * modules/unicase/totitle-tests: New file.
19991
19992         Tests for module 'unicase/tolower'.
19993         * modules/unicase/tolower-tests: New file.
19994
19995         Tests for module 'unicase/toupper'.
19996         * modules/unicase/toupper-tests: New file.
19997         * tests/unicase/test-mapping-part1.h: New file.
19998         * tests/unicase/test-mapping-part2.h: New file.
19999
20000         New module 'unicase/totitle'.
20001         * modules/unicase/totitle: New file.
20002         * lib/unicase/totitle.c: New file.
20003
20004         New module 'unicase/tolower'.
20005         * modules/unicase/tolower: New file.
20006         * lib/unicase/tolower.c: New file.
20007
20008         New module 'unicase/toupper'.
20009         * modules/unicase/toupper: New file.
20010         * lib/unicase/toupper.c: New file.
20011         * lib/unicase/simple-mapping.h: New file.
20012
20013         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20014         (mapping_table): New structure.
20015         (output_simple_mapping): New function.
20016         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20017         * modules/gen-uni-tables (Description): Update.
20018         * lib/unicase/toupper.h: New file, automatically generated by
20019         gen-uni-tables.
20020         * lib/unicase/tolower.h: New file, automatically generated by
20021         gen-uni-tables.
20022         * lib/unicase/totitle.h: New file, automatically generated by
20023         gen-uni-tables.
20024         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20025         gen-uni-tables.
20026         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20027         gen-uni-tables.
20028         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20029         gen-uni-tables.
20030
20031         New module 'unicase/base'.
20032         * modules/unicase/base: New file.
20033         * lib/unicase.h: New file.
20034
20035 2009-02-08  Bruno Haible  <bruno@clisp.org>
20036
20037         New module 'uniwbrk/ulc-wordbreaks'.
20038         * modules/uniwbrk/ulc-wordbreaks: New file.
20039         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20040
20041         New module 'uniwbrk/u32-wordbreaks'.
20042         * modules/uniwbrk/u32-wordbreaks: New file.
20043         * lib/uniwbrk/u32-wordbreaks.c: New file.
20044
20045         New module 'uniwbrk/u16-wordbreaks'.
20046         * modules/uniwbrk/u16-wordbreaks: New file.
20047         * lib/uniwbrk/u16-wordbreaks.c: New file.
20048
20049         New module 'uniwbrk/u8-wordbreaks'.
20050         * modules/uniwbrk/u8-wordbreaks: New file.
20051         * lib/uniwbrk/u8-wordbreaks.c: New file.
20052         * lib/uniwbrk/u-wordbreaks.h: New file.
20053
20054         New module 'uniwbrk/table'.
20055         * modules/uniwbrk/table: New file.
20056         * lib/uniwbrk/wbrktable.h: New file.
20057         * lib/uniwbrk/wbrktable.c: New file.
20058
20059         New module 'uniwbrk/wordbreak-property'.
20060         * modules/uniwbrk/wordbreak-property: New file.
20061         * lib/uniwbrk/wordbreak-property.c: New file.
20062
20063         * lib/gen-uni-tables.c (WBP_*): New enum items.
20064         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20065         (unicode_org_wbp): New variable.
20066         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20067         New functions.
20068         (wbp_table): New structure.
20069         (output_wbp, output_wbrk_tables): New functions.
20070         (main): Accept additional argument. Invoke fill_org_wbp,
20071         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20072         output_wbrk_tables.
20073         * modules/gen-uni-tables (Description): Update.
20074         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20075         gen-uni-tables.
20076
20077         New module 'uniwbrk/base'.
20078         * modules/uniwbrk/base: New file.
20079         * lib/uniwbrk.h: New file.
20080
20081 2009-02-08  Bruno Haible  <bruno@clisp.org>
20082
20083         Update to Unicode 5.1.0.
20084         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20085         U+2185..U+2188.
20086         (is_property_default_ignorable_code_point): Don't include characters
20087         of category Cc or Cs and not-a-characters.
20088         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20089         U+0D79, U+109E, U+109F, U+A60C.
20090         * lib/unictype/bidi_of.h: Regenerated.
20091         * lib/unictype/blocks.h: Regenerated.
20092         * lib/unictype/categ_C.h: Regenerated.
20093         * lib/unictype/categ_Cf.h: Regenerated.
20094         * lib/unictype/categ_Cn.h: Regenerated.
20095         * lib/unictype/categ_L.h: Regenerated.
20096         * lib/unictype/categ_Ll.h: Regenerated.
20097         * lib/unictype/categ_Lm.h: Regenerated.
20098         * lib/unictype/categ_Lo.h: Regenerated.
20099         * lib/unictype/categ_Lu.h: Regenerated.
20100         * lib/unictype/categ_M.h: Regenerated.
20101         * lib/unictype/categ_Mc.h: Regenerated.
20102         * lib/unictype/categ_Me.h: Regenerated.
20103         * lib/unictype/categ_Mn.h: Regenerated.
20104         * lib/unictype/categ_N.h: Regenerated.
20105         * lib/unictype/categ_Nd.h: Regenerated.
20106         * lib/unictype/categ_Nl.h: Regenerated.
20107         * lib/unictype/categ_No.h: Regenerated.
20108         * lib/unictype/categ_P.h: Regenerated.
20109         * lib/unictype/categ_Pd.h: Regenerated.
20110         * lib/unictype/categ_Pe.h: Regenerated.
20111         * lib/unictype/categ_Pf.h: Regenerated.
20112         * lib/unictype/categ_Pi.h: Regenerated.
20113         * lib/unictype/categ_Po.h: Regenerated.
20114         * lib/unictype/categ_Ps.h: Regenerated.
20115         * lib/unictype/categ_S.h: Regenerated.
20116         * lib/unictype/categ_Sk.h: Regenerated.
20117         * lib/unictype/categ_Sm.h: Regenerated.
20118         * lib/unictype/categ_So.h: Regenerated.
20119         * lib/unictype/categ_of.h: Regenerated.
20120         * lib/unictype/combining.h: Regenerated.
20121         * lib/unictype/ctype_alnum.h: Regenerated.
20122         * lib/unictype/ctype_alpha.h: Regenerated.
20123         * lib/unictype/ctype_graph.h: Regenerated.
20124         * lib/unictype/ctype_lower.h: Regenerated.
20125         * lib/unictype/ctype_print.h: Regenerated.
20126         * lib/unictype/ctype_punct.h: Regenerated.
20127         * lib/unictype/ctype_upper.h: Regenerated.
20128         * lib/unictype/decdigit.h: Regenerated.
20129         * lib/unictype/digit.h: Regenerated.
20130         * lib/unictype/mirror.h: Regenerated.
20131         * lib/unictype/numeric.h: Regenerated.
20132         * lib/unictype/pr_alphabetic.h: Regenerated.
20133         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20134         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20135         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20136         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20137         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20138         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20139         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20140         * lib/unictype/pr_combining.h: Regenerated.
20141         * lib/unictype/pr_dash.h: Regenerated.
20142         * lib/unictype/pr_decimal_digit.h: Regenerated.
20143         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20144         * lib/unictype/pr_deprecated.h: Regenerated.
20145         * lib/unictype/pr_diacritic.h: Regenerated.
20146         * lib/unictype/pr_extender.h: Regenerated.
20147         * lib/unictype/pr_format_control.h: Regenerated.
20148         * lib/unictype/pr_grapheme_base.h: Regenerated.
20149         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20150         * lib/unictype/pr_grapheme_link.h: Regenerated.
20151         * lib/unictype/pr_id_continue.h: Regenerated.
20152         * lib/unictype/pr_id_start.h: Regenerated.
20153         * lib/unictype/pr_ideographic.h: Regenerated.
20154         * lib/unictype/pr_ignorable_control.h: Regenerated.
20155         * lib/unictype/pr_lowercase.h: Regenerated.
20156         * lib/unictype/pr_math.h: Regenerated.
20157         * lib/unictype/pr_numeric.h: Regenerated.
20158         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20159         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20160         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20161         * lib/unictype/pr_other_id_continue.h: Regenerated.
20162         * lib/unictype/pr_other_lowercase.h: Regenerated.
20163         * lib/unictype/pr_other_math.h: Regenerated.
20164         * lib/unictype/pr_punctuation.h: Regenerated.
20165         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20166         * lib/unictype/pr_soft_dotted.h: Regenerated.
20167         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20168         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20169         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20170         * lib/unictype/pr_uppercase.h: Regenerated.
20171         * lib/unictype/pr_xid_continue.h: Regenerated.
20172         * lib/unictype/pr_xid_start.h: Regenerated.
20173         * lib/unictype/pr_zero_width.h: Regenerated.
20174         * lib/unictype/scripts.h: Regenerated.
20175         * lib/unictype/scripts_byname.gperf: Regenerated.
20176         * lib/unictype/sy_java_ident.h: Regenerated.
20177         * lib/unilbrk/lbrkprop1.h: Regenerated.
20178         * lib/unilbrk/lbrkprop2.h: Regenerated.
20179         * tests/unictype/test-categ_C.c: Regenerated.
20180         * tests/unictype/test-categ_Cf.c: Regenerated.
20181         * tests/unictype/test-categ_Cn.c: Regenerated.
20182         * tests/unictype/test-categ_L.c: Regenerated.
20183         * tests/unictype/test-categ_Ll.c: Regenerated.
20184         * tests/unictype/test-categ_Lm.c: Regenerated.
20185         * tests/unictype/test-categ_Lo.c: Regenerated.
20186         * tests/unictype/test-categ_Lu.c: Regenerated.
20187         * tests/unictype/test-categ_M.c: Regenerated.
20188         * tests/unictype/test-categ_Mc.c: Regenerated.
20189         * tests/unictype/test-categ_Me.c: Regenerated.
20190         * tests/unictype/test-categ_Mn.c: Regenerated.
20191         * tests/unictype/test-categ_N.c: Regenerated.
20192         * tests/unictype/test-categ_Nd.c: Regenerated.
20193         * tests/unictype/test-categ_Nl.c: Regenerated.
20194         * tests/unictype/test-categ_No.c: Regenerated.
20195         * tests/unictype/test-categ_P.c: Regenerated.
20196         * tests/unictype/test-categ_Pd.c: Regenerated.
20197         * tests/unictype/test-categ_Pe.c: Regenerated.
20198         * tests/unictype/test-categ_Pf.c: Regenerated.
20199         * tests/unictype/test-categ_Pi.c: Regenerated.
20200         * tests/unictype/test-categ_Po.c: Regenerated.
20201         * tests/unictype/test-categ_Ps.c: Regenerated.
20202         * tests/unictype/test-categ_S.c: Regenerated.
20203         * tests/unictype/test-categ_Sk.c: Regenerated.
20204         * tests/unictype/test-categ_Sm.c: Regenerated.
20205         * tests/unictype/test-categ_So.c: Regenerated.
20206         * tests/unictype/test-ctype_alnum.c: Regenerated.
20207         * tests/unictype/test-ctype_alpha.c: Regenerated.
20208         * tests/unictype/test-ctype_graph.c: Regenerated.
20209         * tests/unictype/test-ctype_lower.c: Regenerated.
20210         * tests/unictype/test-ctype_print.c: Regenerated.
20211         * tests/unictype/test-ctype_punct.c: Regenerated.
20212         * tests/unictype/test-ctype_upper.c: Regenerated.
20213         * tests/unictype/test-decdigit.h: Regenerated.
20214         * tests/unictype/test-digit.h: Regenerated.
20215         * tests/unictype/test-numeric.h: Regenerated.
20216         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20217         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20218         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20219         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20220         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20221         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20222         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20223         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20224         * tests/unictype/test-pr_combining.c: Regenerated.
20225         * tests/unictype/test-pr_dash.c: Regenerated.
20226         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20227         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20228         * tests/unictype/test-pr_deprecated.c: Regenerated.
20229         * tests/unictype/test-pr_diacritic.c: Regenerated.
20230         * tests/unictype/test-pr_extender.c: Regenerated.
20231         * tests/unictype/test-pr_format_control.c: Regenerated.
20232         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20233         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20234         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20235         * tests/unictype/test-pr_id_continue.c: Regenerated.
20236         * tests/unictype/test-pr_id_start.c: Regenerated.
20237         * tests/unictype/test-pr_ideographic.c: Regenerated.
20238         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20239         * tests/unictype/test-pr_lowercase.c: Regenerated.
20240         * tests/unictype/test-pr_math.c: Regenerated.
20241         * tests/unictype/test-pr_numeric.c: Regenerated.
20242         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20243         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20244         Regenerated.
20245         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20246         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20247         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20248         * tests/unictype/test-pr_other_math.c: Regenerated.
20249         * tests/unictype/test-pr_punctuation.c: Regenerated.
20250         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20251         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20252         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20253         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20254         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20255         * tests/unictype/test-pr_uppercase.c: Regenerated.
20256         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20257         * tests/unictype/test-pr_xid_start.c: Regenerated.
20258         * tests/unictype/test-pr_zero_width.c: Regenerated.
20259
20260         Update to Unicode 5.1.0.
20261         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20262         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20263         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20264         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20265         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20266         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20267         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20268         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20269         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20270         (nonspacing_table_ind): Update.
20271         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20272
20273         Update to Unicode 5.1.0.
20274         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20275         code transform.
20276         * lib/uniname/uniname.c (unicode_character_name,
20277         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20278         * lib/uniname/uninames.h: Regenerated.
20279         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20280
20281 2009-02-07  Bruno Haible  <bruno@clisp.org>
20282
20283         Merge gen-ctype and gen-lbrk into a single program.
20284         * lib/gen-uni-tables.c: New file, incorporating
20285         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20286         Add directory prefixes to the names of the generated files.
20287         * lib/unictype/gen-ctype.c: Remove file.
20288         * lib/unilbrk/gen-lbrk.c: Remove file.
20289         * modules/gen-uni-tables: New file.
20290         * modules/unictype/gen-ctype: Remove file.
20291         * modules/unilbrk/gen-lbrk: Remove file.
20292
20293 2009-02-07  Bruno Haible  <bruno@clisp.org>
20294
20295         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20296
20297         New module 'unistr/u32-strcoll'.
20298         * modules/unistr/u32-strcoll: New file.
20299         * lib/unistr/u32-strcoll.c: New file.
20300
20301         New module 'unistr/u16-strcoll'.
20302         * modules/unistr/u16-strcoll: New file.
20303         * lib/unistr/u16-strcoll.c: New file.
20304
20305         New module 'unistr/u8-strcoll'.
20306         * modules/unistr/u8-strcoll: New file.
20307         * lib/unistr/u8-strcoll.c: New file.
20308         * lib/unistr/u-strcoll.h: New file.
20309
20310 2009-02-07  Bruno Haible  <bruno@clisp.org>
20311
20312         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20313         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20314         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20315         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20316         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20317         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20318
20319 2009-02-07  Bruno Haible  <bruno@clisp.org>
20320
20321         Make 64-bit clean.
20322         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20323         output_combclass, output_bidi_category, output_decimal_digit,
20324         output_digit, output_numeric, output_mirror, output_scripts,
20325         output_ident_category): Use proper width specifier in format strings.
20326
20327 2009-02-07  Bruno Haible  <bruno@clisp.org>
20328
20329         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20330         failure behaviour.
20331
20332 2009-02-07  Jim Meyering  <meyering@redhat.com>
20333
20334         regex: avoid compilation failure with upcoming gcc-4.4
20335         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20336         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20337         "... error: integer overflow in preprocessor expression".
20338
20339 2009-02-05  Ben Pfaff  <blp@gnu.org>
20340
20341         Fix link errors on Windows when close module is used.
20342         * modules/close: Add $(LIB_CLOSE) to Link section.
20343         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20344         $(LIB_CLOSE) on Windows.
20345
20346 2009-02-05  Jim Meyering  <meyering@redhat.com>
20347
20348         still avoid unused-parameter warnings, but do it cleanly
20349         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20350         (get_fs_usage): Cast to void instead.
20351         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20352         (dev_from_mount_options, read_file_system_list): Cast to void.
20353         Prompted by Bruno Haible.
20354
20355 2009-02-04  Jim Meyering  <meyering@redhat.com>
20356
20357         fsusage.c: correct copyright year
20358         * lib/fsusage.c: Reflect year in which the change is pushed into
20359
20360         avoid misc. warnings
20361         * lib/fsusage.c (UNUSED_PARAM): Define.
20362         (get_fs_usage): Mark parameter "disk" as unused.
20363         * lib/getugroups.c (getgrent): Use "void" in prototype.
20364         * lib/mountlist.c: Mark unused parameters.
20365         (read_file_system_list): Declare a local with "const".
20366         * lib/nanosleep.c (getnow): Declare static.
20367         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20368
20369         dirfd: set errno upon failure
20370         * lib/dirfd.c: Include <errno.h>.
20371         Set errno to ENOTSUP when returning -1.
20372         * modules/dirfd (Depends-on): Add errno.
20373         Suggested by John Kodis <kodis@comcast.net>.
20374
20375 2009-02-01  Bruno Haible  <bruno@clisp.org>
20376
20377         Don't assume sizeof (long) >= sizeof (void *).
20378         * lib/memcmp.c: Include stdint.h.
20379         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20380         srcp2 to 'const byte *'.
20381         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20382         types to uintptr_t.
20383         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20384         * modules/memcmp (Depends-on): Add stdint.
20385         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20386
20387 2009-01-30  Eric Blake  <ebb9@byu.net>
20388
20389         fix more require-before-expand issues
20390         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20391         expand, AC_PROG_AWK.
20392         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20393
20394 2009-01-28  Eric Blake  <ebb9@byu.net>
20395
20396         version-etc: use consistent URL formatting
20397         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20398         Improve formatting.  Use fputs for string without %.
20399
20400 2009-01-28  Jim Meyering  <meyering@redhat.com>
20401
20402         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20403         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20404         "underquoted definition of NAME" from autoconf-2.59.
20405
20406 2009-01-28  Bruno Haible  <bruno@clisp.org>
20407
20408         * doc/gnulib.texi: Add "Obsolete modules" to index.
20409
20410 2009-01-28  Jim Meyering  <meyering@redhat.com>
20411
20412         useless-if-before-free: recognize more variants
20413         * build-aux/useless-if-before-free: Also recognize e.g.,
20414         if (NULL != p) free (p);
20415
20416 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20417
20418         test-getaddrinfo: skip (don't fail) this test when there's no network
20419         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20420         on the presumption that it means you lack network access.
20421
20422 2009-01-26  Jim Meyering  <meyering@redhat.com>
20423
20424         fflush: avoid warnings on modern systems
20425         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20426         pos and result, into scopes where they're used.
20427
20428 2009-01-26  Eric Blake  <ebb9@byu.net>
20429
20430         Silence warning reintroduced by recent extensions patch.
20431         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20432         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20433         autoconf.
20434
20435         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20436         * m4/00gnulib.m4: New file.
20437         * gnulib-tool (func_get_filelist): Always use it.
20438         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20439         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20440
20441 2009-01-25  Bruno Haible  <bruno@clisp.org>
20442
20443         Make test-quotearg work on MacOS X and AIX.
20444         * tests/test-quotearg.sh: New file.
20445         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20446         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20447         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20448         include <libintl.h>.
20449         (fake_locale): Remove variable.
20450         (gettext, dgettext, dcgettext): Remove functions.
20451         (main): Instead of setting a fake locale, set a real locale. Call
20452         textdomain and bindtextdomain.
20453         * modules/quotearg-tests (Files): Add the new files.
20454         (Depends-on): Add gettext, setenv, unsetenv.
20455         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20456         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20457         Augment TESTS_ENVIRONMENT.
20458
20459 2009-01-25  Bruno Haible  <bruno@clisp.org>
20460
20461         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20462         fr_FR.ISO8859-1 locale on MacOS X.
20463         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20464         ja_JP.eucJP locale on MacOS X.
20465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20466         zh_CN.GB18030 locale on MacOS X.
20467
20468 2009-01-25  Bruno Haible  <bruno@clisp.org>
20469
20470         Avoid link errors on MacOS X 10.3.
20471         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20472         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20473
20474 2009-01-25  Bruno Haible  <bruno@clisp.org>
20475
20476         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20477         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20478         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20479         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20480         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20481         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20482         posix_spawnattr_init, posix_spawnattr_setsigmask,
20483         posix_spawnattr_setflags, posix_spawnattr_destroy.
20484
20485         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20486         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20487         * modules/execute (Files): Remove m4/posix_spawn.m4.
20488         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20489         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20490         posix_spawnattr_init, posix_spawnattr_setsigmask,
20491         posix_spawnattr_setflags, posix_spawnattr_destroy.
20492
20493 2009-01-25  Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/glthread/threadlib.c: Include <stdlib.h>.
20496
20497 2009-01-25  Bruno Haible  <bruno@clisp.org>
20498
20499         * lib/glthread/threadlib.c (dummy): New declaration.
20500
20501 2009-01-25  Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20504         multibyte characters also for the GB18030 encoding. Don't crash when
20505         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20506
20507 2009-01-25  Bruno Haible  <bruno@clisp.org>
20508
20509         Avoid redefining 'struct random_data' on OSF/1 5.1.
20510         * lib/stdlib.in.h: Include <random.h> if it exists.
20511         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20512         HAVE_RANDOM_H. Include <random.h> when testing whether
20513         'struct random_data' exists.
20514         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20515
20516 2009-01-25  Bruno Haible  <bruno@clisp.org>
20517
20518         Don't install charset.alias on MacOS X >= 10.3.
20519         * lib/localcharset.c (DARWIN7): New macro.
20520         (get_charset_aliases): Hardcode the result for Darwin7.
20521         * modules/localcharset (install-exec-local): Don't install
20522         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20523
20524 2009-01-25  Bruno Haible  <bruno@clisp.org>
20525
20526         Don't install charset.alias on mingw and Cygwin.
20527         * modules/localcharset (install-exec-local): Don't install
20528         charset.alias on mingw and Cygwin, if the file does not yet exist.
20529         The result for these platforms is hardcoded in localcharset.c.
20530
20531 2009-01-25  Bruno Haible  <bruno@clisp.org>
20532
20533         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20535         before requiring AC_USE_SYSTEM_EXTENSIONS.
20536
20537 2009-01-25  Jim Meyering  <meyering@redhat.com>
20538
20539         c-strtod: avoid warnings
20540         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20541         "assignment discards qualifiers from pointer target type" warnings.
20542
20543 2009-01-24  Bruno Haible  <bruno@clisp.org>
20544
20545         Add support for non-UTF-8 locales on MacOS X.
20546         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20547         canonical encodings. For Darwin 7 and newer, don't map traditional
20548         encodings to UTF-8.
20549         Reported by Vincent Lefevre <vincent@vinc17.org>
20550         at <http://savannah.gnu.org/bugs/?25235>.
20551
20552 2009-01-24  Bruno Haible  <bruno@clisp.org>
20553
20554         * doc/gnulib.texi (Obsolete modules): New section.
20555         Reported by Mike Frysinger <vapier@gentoo.org>.
20556
20557 2009-01-24  Bruno Haible  <bruno@clisp.org>
20558
20559         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20560         (%.dvi): New rule.
20561
20562 2009-01-24  Bruno Haible  <bruno@clisp.org>
20563
20564         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20565         Reported by Eric Blake.
20566
20567 2009-01-24  Bruno Haible  <bruno@clisp.org>
20568
20569         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20570         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20571         Reported by Gary V. Vaughan <gary@gnu.org>.
20572
20573 2009-01-24  Bruno Haible  <bruno@clisp.org>
20574
20575         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20576
20577 2009-01-23  Bruno Haible  <bruno@clisp.org>
20578
20579         Make c-strtod, c-strtold usable in libraries.
20580         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20581         (C_STRTOD): Call strdup instead of xstrdup.
20582         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20583         * modules/c-strtold (Depends-on): Likewise.
20584         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20585         * NEWS: Mention the change.
20586         Reported by Michael Gold <mgold@ncf.ca>.
20587
20588 2009-01-23  Jim Meyering  <meyering@redhat.com>
20589
20590         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20591         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20592         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20593
20594 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20595
20596         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20597         GNU CoreUtils.
20598         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20599         * modules/version-etc (Description): Update.
20600
20601 2009-01-22  Bruno Haible  <bruno@clisp.org>
20602
20603         Cache the C locale object.
20604         * lib/c-strtod.c (c_locale_cache): New variable.
20605         (c_locale): New function.
20606         (C_STRTOD): Use it, and don't call freelocale.
20607         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20608         Suggested by Paolo Bonzini.
20609
20610 2009-01-21  Bruno Haible  <bruno@clisp.org>
20611
20612         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20613         conditions other than overflow.
20614
20615 2009-01-21  Bruno Haible  <bruno@clisp.org>
20616
20617         * lib/c-strtod.c: Include errno.h.
20618         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20619         value from STRTOD_L and STRTOD.
20620
20621 2009-01-21  Bruno Haible  <bruno@clisp.org>
20622         and Jim Meyering  <meyering@redhat.com>
20623
20624         nanosleep: skip configure test (fail it) for apple universal builds
20625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20626         universal builds, assume that nanosleep does not work.
20627         * modules/nanosleep (Depends-on): Add multiarch.
20628
20629         mktime: skip configure test (fail it) for apple universal builds
20630         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20631         universal builds, assume that mktime does not work.
20632         * modules/mktime (Depends-on): Add multiarch.
20633
20634 2009-01-21  Eric Blake  <ebb9@byu.net>
20635
20636         multiarch: avoid expand-before-require warning
20637         * modules/multiarch (configure.ac): Require, rather than expand,
20638         gl_MULTIARCH.
20639         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20640         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20641         enforce that all clients require it.  Partial reversion of
20642         2008-12-29 patch.
20643
20644         error: avoid expand-before-require warning
20645         * modules/errno (configure.ac): Require, rather than expand,
20646         gl_HEADER_ERRNO_H.
20647         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20648         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20649         enforce that all clients require it.
20650
20651         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20652         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20653         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20654         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20655
20656 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20657
20658         Revert:
20659         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20660
20661         regex: do not depend on obsolete modules.
20662         * modules/regex: Remove memcmp and memmove.
20663
20664 2009-01-20  Bruno Haible  <bruno@clisp.org>
20665
20666         Make the 'link' module link on Windows NT 4.
20667         * lib/link.c (_WIN32_WINNT): Don't define.
20668         (CreateHardLinkFuncType): New type.
20669         (CreateHardLinkFunc, initialized): New variables.
20670         (initialize): New function.
20671         (link): Invoke CreateHardLink indirectly through the function pointer.
20672
20673 2009-01-20  Bruno Haible  <bruno@clisp.org>
20674
20675         Fix compilation failure on mingw.
20676         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20677
20678 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20679
20680         * doc/c-strtod.texi: Mention a couple of restrictions.
20681
20682 2009-01-20  Jim Meyering  <meyering@redhat.com>
20683
20684         gettimeofday: move more declarations out of functions
20685         * lib/gettimeofday.c: Move extern declarations of tzset and
20686         gmtime out of containing functions.  Prompted by Bruno Haible.
20687
20688 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20689
20690         regex: do not depend on obsolete modules.
20691         * modules/regex: Remove memcmp and memmove.
20692
20693 2009-01-19  Bruno Haible  <bruno@clisp.org>
20694
20695         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20696         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20697         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20698         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20699         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20700
20701 2009-01-19  Bruno Haible  <bruno@clisp.org>
20702
20703         * tests/test-link.c: Include <errno.h>.
20704         (main): Exit with code 77 when a hard link cannot be created due to
20705         the file system.
20706         * tests/test-link.sh: Skip test when a hard link cannot be created due
20707         to the file system.
20708         Suggested by Eric Blake.
20709
20710 2009-01-19  Martin Lambers  <marlam@marlam.de>
20711
20712         * modules/link-tests: New file.
20713         * tests/test-link.sh: New file.
20714         * tests/test-link.c: New file.
20715
20716 2009-01-19  Eric Blake  <ebb9@byu.net>
20717
20718         doc: mention another function added in cygwin 1.7.0
20719         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20720         Another new function in cygwin 1.7.
20721
20722 2009-01-19  Bruno Haible  <bruno@clisp.org>
20723
20724         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20725         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20726         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20727         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20728         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20729         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20730         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20731         * m4/md4.m4 (gl_MD4): Likewise.
20732         * m4/md5.m4 (gl_MD5): Likewise.
20733         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20734         * m4/sha1.m4 (gl_SHA1): Likewise.
20735         * m4/sha256.m4 (gl_SHA256): Likewise.
20736         * m4/sha512.m4 (gl_SHA512): Likewise.
20737
20738 2009-01-19  Bruno Haible  <bruno@clisp.org>
20739
20740         * modules/uniname/uniname-tests (Depends-on): Add progname.
20741         * tests/uniname/test-uninames.c: Include progname.h.
20742         (main): Call set_program_name.
20743
20744         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20745         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20746         (main): Call set_program_name.
20747
20748         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20749         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20750         (main): Call set_program_name.
20751
20752         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20753         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20754         (main): Call set_program_name.
20755
20756         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20757         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20758         (main): Call set_program_name.
20759
20760         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20761         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20762         (main): Call set_program_name.
20763
20764         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20765         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20766         (main): Call set_program_name.
20767
20768         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20769         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20770         (main): Call set_program_name.
20771
20772         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20773         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20774         (main): Call set_program_name.
20775
20776 2009-01-19  Eric Blake  <ebb9@byu.net>
20777
20778         test-unistd: test previous patch
20779         * tests/test-unistd.c: Test *_FILENO macros.
20780
20781         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20782         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20783         Guarantee a definition.
20784         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20785         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20786         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20787         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20788         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20789         Likewise.
20790         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20791         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20792         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20793         Likewise.
20794         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20795         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20796         (STDERR_FILENO): Likewise.
20797         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20798         (STDERR_FILENO): Likewise.
20799         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20800         (STDERR_FILENO): Likewise.
20801         Reported by Elbert Pol.
20802
20803 2009-01-19  Eric Blake  <ebb9@byu.net>
20804
20805         doc: mention more functions added in cygwin 1.7.0
20806         * doc/posix-functions/abort.texi (abort): Update wording related
20807         to cygwin.
20808         * doc/posix-functions/daylight.texi (daylight): Likewise.
20809         * doc/posix-functions/optarg.texi (optarg): Likewise.
20810         * doc/posix-functions/optarg.texi (opterr): Likewise.
20811         * doc/posix-functions/optarg.texi (optind): Likewise.
20812         * doc/posix-functions/optarg.texi (optopt): Likewise.
20813         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20814         worked in 1.5.x, and was withdrawn in 1.7.
20815         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20816         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20817         cygwin versions.
20818         * doc/posix-functions/perror.texi (perror): Likewise.
20819         * doc/posix-functions/printf.texi (printf): Likewise.
20820         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20821         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20822         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20823         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20824         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20825         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20826         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20827         Likewise.
20828         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20829         Likewise.
20830         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20831         this function.
20832         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20833         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20834         Likewise.
20835         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20836         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20837         * doc/posix-functions/confstr.texi (confstr): Likewise.
20838         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20839         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20840         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20841         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20842         * doc/posix-functions/fputws.texi (fputws): Likewise.
20843         * doc/posix-functions/fwide.texi (fwide): Likewise.
20844         * doc/posix-functions/getwc.texi (getwc): Likewise.
20845         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20846         * doc/posix-functions/putwc.texi (putwc): Likewise.
20847         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20848         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20849         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20850         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20851         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20852         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20853         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20854         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20855         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20856         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20857         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20858
20859 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20860
20861         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20862         * lib/ioctl.c: Include <sys/ioctl.h>.
20863
20864 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20865
20866         * modules/getdate-tests (Depends-on): Add progname.
20867         * tests/test-getdate.c: Use progname module, to avoid link errors
20868         on non-glibc systems.
20869
20870 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20871
20872         * modules/filenamecat-tests (Depends-on): Add progname.
20873         * modules/fstrcmp-tests (Depends-on): Likewise.
20874
20875         * tests/test-filenamecat.c: Use progname module, to avoid link
20876         errors on non-glibc systems.
20877         * tests/test-fstrcmp.c: Likewise.
20878
20879 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20880
20881         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20882         * lib/gettimeofday.c: Move extern declaration out of function.
20883
20884 2009-01-18  Bruno Haible  <bruno@clisp.org>
20885
20886         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20887         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20888         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20889
20890 2009-01-18  Bruno Haible  <bruno@clisp.org>
20891
20892         * lib/strftime.c (MEMPCPY): Remove unused macro.
20893         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20894
20895 2009-01-18  Martin Lambers  <marlam@marlam.de>
20896
20897         New module 'link'.
20898         * lib/unistd.in.h (link): New declaration.
20899         * lib/link.c: New file.
20900         * m4/link.m4: New file.
20901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20902         HAVE_LINK.
20903         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20904         * modules/link: New file.
20905         * doc/posix-functions/link.texi: Mention the new module.
20906
20907 2009-01-18  Bruno Haible  <bruno@clisp.org>
20908
20909         * tests/test-avltree_list.c (main): Call set_program_name.
20910         * tests/test-avltree_oset.c (main): Likewise.
20911         * tests/test-obstack-printf.c: Include progname.h.
20912         (main): Call set_program_name.
20913         * tests/test-quotearg.c: Include progname.h.
20914         (main): Call set_program_name.
20915         * tests/test-xmemdup0.c: Include progname.h.
20916         (main): Call set_program_name.
20917
20918 2009-01-18  Bruno Haible  <bruno@clisp.org>
20919
20920         New module 'alphasort'.
20921         * lib/dirent.in.h (alphasort): New declaration.
20922         * lib/alphasort.c: New file, from glibc with modifications.
20923         * m4/alphasort.m4: New file.
20924         * modules/alphasort: New file.
20925         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20926         HAVE_ALPHASORT.
20927         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20928         HAVE_ALPHASORT.
20929         * doc/posix-functions/alphasort.texi: Mention the new module and the
20930         portability problems.
20931
20932 2009-01-18  Bruno Haible  <bruno@clisp.org>
20933
20934         New module 'scandir'.
20935         * lib/dirent.in.h (scandir): New declaration.
20936         * lib/scandir.c: New file, from glibc with modifications.
20937         * m4/scandir.m4: New file.
20938         * modules/scandir: New file.
20939         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20940         HAVE_SCANDIR.
20941         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20942         HAVE_SCANDIR.
20943         * doc/posix-functions/scandir.texi: Mention the new module and the
20944         portability problems.
20945
20946 2009-01-17  Bruno Haible  <bruno@clisp.org>
20947
20948         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20949         Update documentation.
20950         (func_remove_suffix): Escape all dots in the suffix. Update
20951         documentation.
20952         (func_filter_filelist): Update documentation.
20953         Reported by Ralf Wildenhues.
20954
20955 2009-01-17  Bruno Haible  <bruno@clisp.org>
20956
20957         * modules/dprintf-posix-tests: New file.
20958         * tests/test-dprintf-posix.sh: New file.
20959         * tests/test-dprintf-posix.c: New file.
20960
20961         New modules 'dprintf', 'dprintf-posix'.
20962         * lib/stdio.in.h (dprintf): New declaration.
20963         * lib/dprintf.c: New file.
20964         * m4/dprintf.m4: New file.
20965         * m4/dprintf-posix.m4: New file.
20966         * modules/dprintf: New file.
20967         * modules/dprintf-posix: New file.
20968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20969         HAVE_DPRINTF, REPLACE_DPRINTF.
20970         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20971         HAVE_DPRINTF, REPLACE_DPRINTF.
20972         * doc/posix-functions/dprintf.texi: Mention the new modules.
20973
20974 2009-01-17  Bruno Haible  <bruno@clisp.org>
20975
20976         * modules/vdprintf-posix-tests: New file.
20977         * tests/test-vdprintf-posix.sh: New file.
20978         * tests/test-vdprintf-posix.c: New file.
20979
20980         New modules 'vdprintf', 'vdprintf-posix'.
20981         * lib/stdio.in.h (vdprintf): New declaration.
20982         * lib/vdprintf.c: New file.
20983         * m4/vdprintf.m4: New file.
20984         * m4/vdprintf-posix.m4: New file.
20985         * modules/vdprintf: New file.
20986         * modules/vdprintf-posix: New file.
20987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20988         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20989         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20990         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20991         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20992
20993 2009-01-17  Bruno Haible  <bruno@clisp.org>
20994
20995         Fix replacement of fopen on mingw.
20996         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20997         mingw.
20998
20999 2009-01-17  Bruno Haible  <bruno@clisp.org>
21000
21001         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21002         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21003
21004 2009-01-17  Bruno Haible  <bruno@clisp.org>
21005
21006         Avoid test-fflush2.sh failure on mingw.
21007         * tests/test-fflush2.c: Include binary-io.h.
21008         (main): Put standard input into binary mode.
21009         * modules/fflush-tests (Depends-on): Add binary-io.
21010
21011 2009-01-17  Bruno Haible  <bruno@clisp.org>
21012
21013         * lib/wchar.in.h: In another particular situation, include only the
21014         system's <wchar.h> file.
21015         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21016         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21017         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21018
21019 2009-01-17  Bruno Haible  <bruno@clisp.org>
21020
21021         Support for stripping executables in --enable-relocatable.
21022         * build-aux/install-reloc: Expect one more argument, or an environment
21023         variable RELOC_STRIP_PROG. If set, strip the destination program and
21024         its wrapper.
21025         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21026         RELOC_STRIP_PROG.
21027         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21028         to set RELOCATABLE_STRIP.
21029         * NEWS: Mention the new Makefile requirement.
21030
21031 2009-01-17  Bruno Haible  <bruno@clisp.org>
21032
21033         * build-aux/install-reloc: Remove debugging information left over by
21034         C compiler on MacOS X.
21035
21036 2009-01-17  Bruno Haible  <bruno@clisp.org>
21037
21038         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21039         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21040         _NSGetExecutablePath.
21041
21042 2009-01-16  Jim Meyering  <meyering@redhat.com>
21043
21044         strerror: avoid warnings about discarding "const"
21045         * lib/strerror.c (rpl_strerror): Instead of returning a const
21046         string from each and every "case", use a variable, and add a single
21047         cast after the switch.
21048
21049 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21050
21051         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21052
21053 2009-01-16  Bruno Haible  <bruno@clisp.org>
21054
21055         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21056         array initializer syntax that also works in C++ mode.
21057         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21058
21059 2009-01-16  Jim Meyering  <meyering@redhat.com>
21060
21061         poll: suppress a warning
21062         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21063         to ignore "...unsigned expression < 0 is always false" warnings.
21064
21065 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21066
21067         poll: remove declarations of unused variables
21068         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21069         sockbuf and optlen.
21070
21071 2009-01-15  Bruno Haible  <bruno@clisp.org>
21072
21073         Make fflush-after-ungetc POSIX compliant on BSD systems.
21074         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21075         (clear_ungetc_buffer): Implement also for other systems.
21076         (rpl_fflush): On glibc systems, invoke
21077         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21078         clear_ungetc_buffer after fetching the stream's position, not before.
21079
21080 2009-01-15  Bruno Haible  <bruno@clisp.org>
21081
21082         Make fflush-after-ungetc POSIX compliant on glibc systems.
21083         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21084         after ungetc.
21085         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21086         (rpl_fflush): On glibc systems, simply call the system's fflush
21087         function after clearing the ungetc buffer.
21088         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21089         Instead, lseek only to the end of file, then use the system's fseeko
21090         for the rest. On glibc systems, reset the EOF indicator bit.
21091
21092 2009-01-15  Jim Meyering  <meyering@redhat.com>
21093
21094         openmp.m4: revert quote-adding change, for portability to older autoconf
21095         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21096         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21097         Simon Josefsson noticed the problem when using autoconf-2.61.
21098
21099 2009-01-15  Bruno Haible  <bruno@clisp.org>
21100
21101         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21102         * tests/test-fflush2.c (ASSERT): Always fail.
21103         (main): Add two tests for fflush() after ungetc(), taking into account
21104         the Austin Group's clarification.
21105         Suggested by Eric Blake.
21106
21107 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21108
21109         mktime.m4: remove K&R-style function prototypes
21110         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21111         for the Sun C++ compiler.
21112
21113 2009-01-14  Bruno Haible  <bruno@clisp.org>
21114
21115         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21116         while including <wchar.h>.
21117         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21118         the system's <wchar.h> file.
21119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21120
21121 2009-01-14  Bruno Haible  <bruno@clisp.org>
21122
21123         * m4/csharp.m4: Don't mention gettext on the serial number line.
21124         * m4/csharpexec.m4: Likewise.
21125         * m4/eaccess.m4: Likewise.
21126         * m4/javaexec.m4: Likewise.
21127         * m4/sig_atomic_t.m4: Likewise.
21128         * m4/tmpdir.m4: Likewise.
21129         * m4/intldir.m4: Bump gettext version.
21130         * m4/lib-ld.m4: Likewise.
21131
21132 2009-01-14  Bruno Haible  <bruno@clisp.org>
21133
21134         * lib/progname.c (set_program_name): Add more comments.
21135         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21136
21137 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21138
21139         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21140         were sys/stat.h does not define it.
21141
21142 2009-01-14  Jim Meyering  <meyering@redhat.com>
21143
21144         many *.m4 files: improve m4 quoting
21145         99% of this change was performed by running the following commands:
21146         git ls-files | grep '\.m4$' | xargs perl -pi \
21147           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21148           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21149           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21150           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21151         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21152         The remainder were to add Copyright dates, increment serial numbers,
21153         undo some changes in comments, exclude m4/intl.m4, and add quotes
21154         around the "1" in ",1" where the unusual spacing prohibited the
21155         above regexps from doing the job.  For more details, see
21156         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21157         * m4/acl.m4: Modified.
21158         * m4/afs.m4: Likewise.
21159         * m4/alloca.m4: Likewise.
21160         * m4/argp.m4: Likewise.
21161         * m4/argz.m4: Likewise.
21162         * m4/atexit.m4: Likewise.
21163         * m4/bison-i18n.m4: Likewise.
21164         * m4/bison.m4: Likewise.
21165         * m4/byteswap.m4: Likewise.
21166         * m4/c-stack.m4: Likewise.
21167         * m4/c-strtod.m4: Likewise.
21168         * m4/calloc.m4: Likewise.
21169         * m4/canonicalize-lgpl.m4: Likewise.
21170         * m4/chown.m4: Likewise.
21171         * m4/clock_time.m4: Likewise.
21172         * m4/codeset.m4: Likewise.
21173         * m4/copy-file.m4: Likewise.
21174         * m4/csharp.m4: Likewise.
21175         * m4/csharpcomp.m4: Likewise.
21176         * m4/csharpexec.m4: Likewise.
21177         * m4/d-ino.m4: Likewise.
21178         * m4/d-type.m4: Likewise.
21179         * m4/dirfd.m4: Likewise.
21180         * m4/double-slash-root.m4: Likewise.
21181         * m4/eaccess.m4: Likewise.
21182         * m4/eealloc.m4: Likewise.
21183         * m4/environ.m4: Likewise.
21184         * m4/errno_h.m4: Likewise.
21185         * m4/euidaccess.m4: Likewise.
21186         * m4/execute.m4: Likewise.
21187         * m4/fatal-signal.m4: Likewise.
21188         * m4/fchdir.m4: Likewise.
21189         * m4/fcntl_h.m4: Likewise.
21190         * m4/fileblocks.m4: Likewise.
21191         * m4/filenamecat.m4: Likewise.
21192         * m4/findprog.m4: Likewise.
21193         * m4/flexmember.m4: Likewise.
21194         * m4/fnmatch.m4: Likewise.
21195         * m4/fopen.m4: Likewise.
21196         * m4/fpending.m4: Likewise.
21197         * m4/fprintf-posix.m4: Likewise.
21198         * m4/free.m4: Likewise.
21199         * m4/frexp.m4: Likewise.
21200         * m4/frexpl.m4: Likewise.
21201         * m4/fsusage.m4: Likewise.
21202         * m4/ftruncate.m4: Likewise.
21203         * m4/gc-camellia.m4: Likewise.
21204         * m4/gc-random.m4: Likewise.
21205         * m4/gc.m4: Likewise.
21206         * m4/getaddrinfo.m4: Likewise.
21207         * m4/getcwd-abort-bug.m4: Likewise.
21208         * m4/getcwd-path-max.m4: Likewise.
21209         * m4/getdate.m4: Likewise.
21210         * m4/getdomainname.m4: Likewise.
21211         * m4/getgroups.m4: Likewise.
21212         * m4/gethostname.m4: Likewise.
21213         * m4/gethrxtime.m4: Likewise.
21214         * m4/getline.m4: Likewise.
21215         * m4/getloadavg.m4: Likewise.
21216         * m4/getndelim2.m4: Likewise.
21217         * m4/getpass.m4: Likewise.
21218         * m4/gettext.m4: Likewise.
21219         * m4/gettime.m4: Likewise.
21220         * m4/gettimeofday.m4: Likewise.
21221         * m4/gnulib-common.m4: Likewise.
21222         * m4/group-member.m4: Likewise.
21223         * m4/host-os.m4: Likewise.
21224         * m4/iconv.m4: Likewise.
21225         * m4/iconv_open.m4: Likewise.
21226         * m4/inet_ntop.m4: Likewise.
21227         * m4/inet_pton.m4: Likewise.
21228         * m4/inline.m4: Likewise.
21229         * m4/intldir.m4: Likewise.
21230         * m4/intlmacosx.m4: Likewise.
21231         * m4/intmax.m4: Likewise.
21232         * m4/intmax_t.m4: Likewise.
21233         * m4/inttypes.m4: Likewise.
21234         * m4/inttypes_h.m4: Likewise.
21235         * m4/inttypes-pri.m4: Likewise.
21236         * m4/isapipe.m4: Likewise.
21237         * m4/isnand.m4: Likewise.
21238         * m4/isnanf.m4: Likewise.
21239         * m4/isnanl.m4: Likewise.
21240         * m4/javacomp.m4: Likewise.
21241         * m4/javaexec.m4: Likewise.
21242         * m4/jm-winsz1.m4: Likewise.
21243         * m4/jm-winsz2.m4: Likewise.
21244         * m4/lchown.m4: Likewise.
21245         * m4/lcmessage.m4: Likewise.
21246         * m4/ldexpl.m4: Likewise.
21247         * m4/lib-ld.m4: Likewise.
21248         * m4/lib-link.m4: Likewise.
21249         * m4/libsigsegv.m4: Likewise.
21250         * m4/link-follow.m4: Likewise.
21251         * m4/localcharset.m4: Likewise.
21252         * m4/locale-fr.m4: Likewise.
21253         * m4/locale-ja.m4: Likewise.
21254         * m4/locale-tr.m4: Likewise.
21255         * m4/locale-zh.m4: Likewise.
21256         * m4/lock.m4: Likewise.
21257         * m4/longlong.m4: Likewise.
21258         * m4/ls-mntd-fs.m4: Likewise.
21259         * m4/lstat.m4: Likewise.
21260         * m4/malloc.m4: Likewise.
21261         * m4/mathl.m4: Likewise.
21262         * m4/mbrtowc.m4: Likewise.
21263         * m4/mbstate_t.m4: Likewise.
21264         * m4/mbswidth.m4: Likewise.
21265         * m4/memchr.m4: Likewise.
21266         * m4/memcmp.m4: Likewise.
21267         * m4/memcpy.m4: Likewise.
21268         * m4/memmem.m4: Likewise.
21269         * m4/memmove.m4: Likewise.
21270         * m4/mempcpy.m4: Likewise.
21271         * m4/memrchr.m4: Likewise.
21272         * m4/memset.m4: Likewise.
21273         * m4/minmax.m4: Likewise.
21274         * m4/mkdir-slash.m4: Likewise.
21275         * m4/mkdtemp.m4: Likewise.
21276         * m4/mktime.m4: Likewise.
21277         * m4/mmap-anon.m4: Likewise.
21278         * m4/mountlist.m4: Likewise.
21279         * m4/nanosleep.m4: Likewise.
21280         * m4/nls.m4: Likewise.
21281         * m4/nocrash.m4: Likewise.
21282         * m4/open.m4: Likewise.
21283         * m4/openat.m4: Likewise.
21284         * m4/openmp.m4: Likewise.
21285         * m4/pathmax.m4: Likewise.
21286         * m4/perl.m4: Likewise.
21287         * m4/physmem.m4: Likewise.
21288         * m4/pipe.m4: Likewise.
21289         * m4/po.m4: Likewise.
21290         * m4/poll.m4: Likewise.
21291         * m4/posixtm.m4: Likewise.
21292         * m4/posixver.m4: Likewise.
21293         * m4/printf-frexp.m4: Likewise.
21294         * m4/printf-frexpl.m4: Likewise.
21295         * m4/printf-posix.m4: Likewise.
21296         * m4/printf-posix-rpl.m4: Likewise.
21297         * m4/printf.m4: Likewise.
21298         * m4/progtest.m4: Likewise.
21299         * m4/putenv.m4: Likewise.
21300         * m4/readline.m4: Likewise.
21301         * m4/readlink.m4: Likewise.
21302         * m4/readutmp.m4: Likewise.
21303         * m4/realloc.m4: Likewise.
21304         * m4/regex.m4: Likewise.
21305         * m4/relocatable.m4: Likewise.
21306         * m4/relocatable-lib.m4: Likewise.
21307         * m4/rename-dest-slash.m4: Likewise.
21308         * m4/rename.m4: Likewise.
21309         * m4/rmdir-errno.m4: Likewise.
21310         * m4/rmdir.m4: Likewise.
21311         * m4/roundf.m4: Likewise.
21312         * m4/roundl.m4: Likewise.
21313         * m4/rpmatch.m4: Likewise.
21314         * m4/save-cwd.m4: Likewise.
21315         * m4/selinux-selinux-h.m4: Likewise.
21316         * m4/setenv.m4: Likewise.
21317         * m4/settime.m4: Likewise.
21318         * m4/sig2str.m4: Likewise.
21319         * m4/sig_atomic_t.m4: Likewise.
21320         * m4/signalblocking.m4: Likewise.
21321         * m4/signbit.m4: Likewise.
21322         * m4/sigpipe.m4: Likewise.
21323         * m4/sockets.m4: Likewise.
21324         * m4/sockpfaf.m4: Likewise.
21325         * m4/st_dm_mode.m4: Likewise.
21326         * m4/stat-time.m4: Likewise.
21327         * m4/stdbool.m4: Likewise.
21328         * m4/stdint.m4: Likewise.
21329         * m4/stdint_h.m4: Likewise.
21330         * m4/stpcpy.m4: Likewise.
21331         * m4/stpncpy.m4: Likewise.
21332         * m4/strcase.m4: Likewise.
21333         * m4/strchrnul.m4: Likewise.
21334         * m4/strcspn.m4: Likewise.
21335         * m4/strdup.m4: Likewise.
21336         * m4/strftime.m4: Likewise.
21337         * m4/strndup.m4: Likewise.
21338         * m4/strnlen.m4: Likewise.
21339         * m4/strpbrk.m4: Likewise.
21340         * m4/strptime.m4: Likewise.
21341         * m4/strsep.m4: Likewise.
21342         * m4/strtod.m4: Likewise.
21343         * m4/strtoimax.m4: Likewise.
21344         * m4/strtok_r.m4: Likewise.
21345         * m4/strtol.m4: Likewise.
21346         * m4/strtoll.m4: Likewise.
21347         * m4/strtoul.m4: Likewise.
21348         * m4/strtoull.m4: Likewise.
21349         * m4/strtoumax.m4: Likewise.
21350         * m4/strverscmp.m4: Likewise.
21351         * m4/threadlib.m4: Likewise.
21352         * m4/timegm.m4: Likewise.
21353         * m4/tm_gmtoff.m4: Likewise.
21354         * m4/tmpdir.m4: Likewise.
21355         * m4/tmpfile.m4: Likewise.
21356         * m4/tzset.m4: Likewise.
21357         * m4/uintmax_t.m4: Likewise.
21358         * m4/unlinkdir.m4: Likewise.
21359         * m4/unlocked-io.m4: Likewise.
21360         * m4/uptime.m4: Likewise.
21361         * m4/userspec.m4: Likewise.
21362         * m4/utimbuf.m4: Likewise.
21363         * m4/utime.m4: Likewise.
21364         * m4/utimes-null.m4: Likewise.
21365         * m4/utimes.m4: Likewise.
21366         * m4/vararrays.m4: Likewise.
21367         * m4/vasnprintf.m4: Likewise.
21368         * m4/vfprintf-posix.m4: Likewise.
21369         * m4/vprintf-posix.m4: Likewise.
21370         * m4/wait-process.m4: Likewise.
21371         * m4/wchar_t.m4: Likewise.
21372         * m4/wint_t.m4: Likewise.
21373         * m4/write-any-file.m4: Likewise.
21374         * m4/yield.m4: Likewise.
21375
21376 2009-01-13  Bruno Haible  <bruno@clisp.org>
21377
21378         Avoid test-copy-file.sh failures when ACL support insufficient.
21379         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21380         TESTS_ENVIRONMENT.
21381         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21382         Reported by Jim Meyering.
21383
21384 2009-01-13  Bruno Haible  <bruno@clisp.org>
21385
21386         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21387         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21388         * modules/unistdio/u8-printf-parse (Files): Likewise.
21389         * modules/unistdio/u32-printf-parse (Files): Likewise.
21390         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21391
21392 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21393
21394         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21395         and m4/inttypes_h.m4 too.
21396
21397 2009-01-12  Eric Blake  <ebb9@byu.net>
21398
21399         tests: IRIX 6.2 cc can't compile -0.0 into .data
21400         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21401         rather than at compile-time.
21402         * tests/test-floorl.c (minus_zero): Likewise.
21403         * tests/test-frexpl.c (minus_zero): Likewise.
21404         * tests/test-isnan.c (minus_zerol): Likewise.
21405         * tests/test-isnanl.h (minus_zero): Likewise.
21406         * tests/test-ldexpl.c (minus_zero): Likewise.
21407         * tests/test-roundl.c (minus_zero): Likewise.
21408         * tests/test-signbit.c (minus_zerol): Likewise.
21409         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21410         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21411         * tests/test-truncl.c (minus_zero): Likewise.
21412         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21413         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21414         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21415
21416 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21417
21418         regex: fix glibc bug 9697
21419         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21420         handling.
21421
21422 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21423
21424         regex: fix glibc bug 697
21425         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21426         being NULL also if there are no backreferences.
21427
21428 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21429
21430         regex: merge glibc changes
21431         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21432         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21433         re_string_skip_chars, re_string_reconstruct): Likewise.
21434         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21435
21436 2009-01-07  Jim Meyering  <meyering@redhat.com>
21437
21438         poll: filter through cppi
21439         * lib/poll.c: Indent cpp directives to reflect nesting.
21440
21441 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21442
21443         poll: don't return uninitialized
21444         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21445
21446 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21447
21448         avoid compile failure on AIX 6.1
21449         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21450         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21451
21452 2009-01-04  Jim Meyering  <meyering@redhat.com>
21453
21454         remove duplicate inclusion of <stdio.h>
21455         * tests/test-fprintf-posix.c: Likewise.
21456         * tests/test-printf-posix.c: Likewise.
21457         * tests/test-snprintf-posix.c: Likewise.
21458         * tests/test-sprintf-posix.c: Likewise.
21459         * tests/test-vasprintf-posix.c: Likewise.
21460         * tests/test-vfprintf-posix.c: Likewise.
21461         * tests/test-vprintf-posix.c: Likewise.
21462         * tests/test-vsnprintf-posix.c: Likewise.
21463         * tests/test-vsprintf-posix.c: Likewise.
21464
21465 2009-01-03  Jim Meyering  <meyering@redhat.com>
21466
21467         gnulib-tool: fix sed-based filtering
21468         * gnulib-tool (func_filter_filelist): Remove extra backslash
21469         in sed_fff_filter definition.
21470
21471 2009-01-02  Jim Meyering  <meyering@redhat.com>
21472
21473         strftime: avoid compilation failure on Solaris 2.6
21474         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21475         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21476         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21477         be available.  Reported by Tom G. Christensen.  Details in
21478         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21479
21480 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21481             Bruno Haible  <bruno@clisp.org>
21482
21483         Speed up gnulib-tool by doing more string processing through shell
21484         built-ins.
21485         * gnulib-tool (fast_func_append): New variable.
21486         (func_remove_prefix, func_remove_suffix): New functions.
21487         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21488         (func_filter_filelist): New function.
21489         (func_get_dependencies): Use func_remove_suffix instead of sed.
21490         (func_get_automake_snippet): Use func_filter_filelist instead of a
21491         subshell and sed invocation.
21492
21493 2009-01-01  Bruno Haible  <bruno@clisp.org>
21494
21495         Fix a security bug.
21496         * gnulib-tool (func_import, import, update): Don't allow the characters
21497         '"', '$', '`', '\' in macro arguments that become part of commands that
21498         are evaluated.
21499
21500 2009-01-01  Bruno Haible  <bruno@clisp.org>
21501
21502         * gnulib-tool (func_reset_sigpipe): Add more comments.
21503
21504 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21505
21506         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21507         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21508         already know the answer.
21509
21510 2009-01-01  Jim Meyering  <meyering@redhat.com>
21511
21512         * lib/version-etc.c (version_etc_va): Update copyright year.
21513
21514 2008-12-30  Bruno Haible  <bruno@clisp.org>
21515
21516         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21517         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21518         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21519
21520 2008-12-29  Eric Blake  <ebb9@byu.net>
21521
21522         multiarch: avoid autoconf AC_REQUIRE bug
21523         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21524         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21525         2.63 and older.
21526         Reported by Bruno Haible, and analyzed in
21527         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21528
21529 2008-12-29  Bruno Haible  <bruno@clisp.org>
21530
21531         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21532         files in subdirectories correctly.
21533         Reported by Ralf Wildenhues.
21534
21535 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21536
21537         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21538         rather than 'join FILE -', for Solaris join.
21539
21540 2008-12-29  Bruno Haible  <bruno@clisp.org>
21541
21542         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21543         quoting.
21544         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21545         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21546         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21547         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21548         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21549         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21550         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21551         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21552         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21553         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21554         * m4/nls.m4 (AM_NLS): Likewise.
21555         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21556         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21557         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21558         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21559         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21560         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21561         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21562         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21563         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21564         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21565         * m4/xsize.m4 (gl_XSIZE): Likewise.
21566         Suggested by Jim Meyering.
21567
21568 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21569
21570         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21571         * lib/parse-duration.c: use a switch instead of cascading if's.
21572
21573 2008-12-29  Eric Blake  <ebb9@byu.net>
21574
21575         wchar.h: supply WEOF on Irix 5.3
21576         * lib/wchar.in.h (wint_t): Also supply WEOF.
21577         * lib/wctype.in.h (wint_t): Likewise.
21578         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21579         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21580         Reported by Tom G. Christensen.
21581
21582 2008-12-26  Bruno Haible  <bruno@clisp.org>
21583
21584         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21585         i486, i586, i686.
21586
21587 2008-12-26  Bruno Haible  <bruno@clisp.org>
21588
21589         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21590
21591 2008-12-26  Bruno Haible  <bruno@clisp.org>
21592
21593         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21594         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21595         not __STDC_CONSTANT_MACROS.
21596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21597
21598 2008-12-25  Bruno Haible  <bruno@clisp.org>
21599
21600         Add support for universal builds to vasnprintf.
21601         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21602         universal builds, guess no.
21603         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21604         * modules/vasprintf-posix (Depends-on): Likewise.
21605         * modules/fprintf-posix (Depends-on): Likewise.
21606         * modules/vfprintf-posix (Depends-on): Likewise.
21607         * modules/snprintf-posix (Depends-on): Likewise.
21608         * modules/vsnprintf-posix (Depends-on): Likewise.
21609         * modules/sprintf-posix (Depends-on): Likewise.
21610         * modules/vsprintf-posix (Depends-on): Likewise.
21611         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21612         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21613         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21614         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21615         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21616         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21617         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21618
21619         Add support for universal builds to <inttypes.h>.
21620         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21621         _SCNu64_PREFIX): In Apple
21622         universal builds, define directly, using _LP64.
21623         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21624         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21625         * modules/inttypes (Depends-on): Add multiarch.
21626         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21627
21628         Add support for universal builds to <stdint.h>.
21629         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21630         universal builds, define directly, using _LP64.
21631         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21632         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21633         and size_t.
21634         * modules/stdint (Depends-on): Add multiarch.
21635         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21636
21637         New module 'multiarch'.
21638         * modules/multiarch: New file.
21639         * m4/multiarch.m4: New file.
21640
21641 2008-12-25  Bruno Haible  <bruno@clisp.org>
21642
21643         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21644
21645 2008-12-25  Bruno Haible  <bruno@clisp.org>
21646
21647         * modules/btowc (License): Relicense under LGPLv2+.
21648         * modules/mbsinit (License): Likewise.
21649         * modules/mbrtowc (License): Likewise.
21650         * modules/wcrtomb (License): Likewise.
21651         * modules/streq (License): Likewise.
21652         Reported by David Lutterkort <lutter@redhat.com>.
21653
21654 2008-12-23  Bruno Haible  <bruno@clisp.org>
21655
21656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21657
21658 2008-12-23  Bruno Haible  <bruno@clisp.org>
21659
21660         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21661         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21662         GETADDRINFO_LIB, not in LIBS.
21663         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21664         * modules/canon-host (Link): Likewise.
21665         * NEWS: Mention the change.
21666         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21667         GETADDRINFO_LIB.
21668
21669 2008-12-22  Bruno Haible  <bruno@clisp.org>
21670
21671         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21672         * doc/posix-functions/iswalpha_l.texi: Likewise.
21673         * doc/posix-functions/iswblank_l.texi: Likewise.
21674         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21675         * doc/posix-functions/iswctype_l.texi: Likewise.
21676         * doc/posix-functions/iswdigit_l.texi: Likewise.
21677         * doc/posix-functions/iswgraph_l.texi: Likewise.
21678         * doc/posix-functions/iswlower_l.texi: Likewise.
21679         * doc/posix-functions/iswprint_l.texi: Likewise.
21680         * doc/posix-functions/iswpunct_l.texi: Likewise.
21681         * doc/posix-functions/iswspace_l.texi: Likewise.
21682         * doc/posix-functions/iswupper_l.texi: Likewise.
21683         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21684         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21685         * doc/posix-functions/open_wmemstream.texi: Likewise.
21686         * doc/posix-functions/swscanf.texi: Likewise.
21687         * doc/posix-functions/towctrans_l.texi: Likewise.
21688         * doc/posix-functions/towlower.texi: Likewise.
21689         * doc/posix-functions/towlower_l.texi: Likewise.
21690         * doc/posix-functions/towupper.texi: Likewise.
21691         * doc/posix-functions/towupper_l.texi: Likewise.
21692         * doc/posix-functions/vfwprintf.texi: Likewise.
21693         * doc/posix-functions/vfwscanf.texi: Likewise.
21694         * doc/posix-functions/vswscanf.texi: Likewise.
21695         * doc/posix-functions/vwprintf.texi: Likewise.
21696         * doc/posix-functions/vwscanf.texi: Likewise.
21697         * doc/posix-functions/wcpcpy.texi: Likewise.
21698         * doc/posix-functions/wcpncpy.texi: Likewise.
21699         * doc/posix-functions/wcscasecmp.texi: Likewise.
21700         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21701         * doc/posix-functions/wcscoll_l.texi: Likewise.
21702         * doc/posix-functions/wcsdup.texi: Likewise.
21703         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21704         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21705         * doc/posix-functions/wcsnlen.texi: Likewise.
21706         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21707         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21708         * doc/posix-functions/wctrans_l.texi: Likewise.
21709         * doc/posix-functions/wctype_l.texi: Likewise.
21710         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21711         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21712         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21713         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21714         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21715         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21716         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21717         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21718         * doc/glibc-functions/wcschrnul.texi: Likewise.
21719         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21720         * doc/glibc-functions/wcstod_l.texi: Likewise.
21721         * doc/glibc-functions/wcstof_l.texi: Likewise.
21722         * doc/glibc-functions/wcstol_l.texi: Likewise.
21723         * doc/glibc-functions/wcstold_l.texi: Likewise.
21724         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21725         * doc/glibc-functions/wcstoq.texi: Likewise.
21726         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21727         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21728         * doc/glibc-functions/wcstouq.texi: Likewise.
21729         * doc/glibc-functions/wmempcpy.texi: Likewise.
21730
21731 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21732             Eric Blake  <ebb9@byu.net>
21733             Paolo Bonzini  <bonzini@gnu.org>
21734             Bruno Haible  <bruno@clisp.org>
21735
21736         Make c-stack work on Haiku.
21737         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21738         (c_stack_action): Use SA_ONSTACK flag.
21739
21740 2008-12-22  Bruno Haible  <bruno@clisp.org>
21741
21742         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21743
21744 2008-12-22  Bruno Haible  <bruno@clisp.org>
21745
21746         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21747         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21748         being overridden.
21749         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21750         New macros.
21751         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21753         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21754         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21755
21756 2008-12-22  Bruno Haible  <bruno@clisp.org>
21757
21758         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21759         from test code.
21760
21761 2008-12-22  Eric Blake  <ebb9@byu.net>
21762
21763         Avoid gcc warnings on cygwin.
21764         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21765         Avoid unused variable.
21766         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21767         Likewise.
21768
21769 2008-12-22  Bruno Haible  <bruno@clisp.org>
21770
21771         Remove HAVE_MBRTOWC conditionals.
21772         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21773         (mbscasecmp): Assume mbrtowc function.
21774         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21775         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21776         * lib/mbschr.c: Include mbuiter.h unconditionally.
21777         (mbschr): Assume mbrtowc function.
21778         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21779         (mbscspn): Assume mbrtowc function.
21780         * lib/mbslen.c: Include mbuiter.h unconditionally.
21781         (mbslen): Assume mbrtowc function.
21782         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21783         (mbsncasecmp): Assume mbrtowc function.
21784         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21785         (mbsnlen): Assume mbrtowc function.
21786         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21787         (mbspbrk): Assume mbrtowc function.
21788         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21789         (mbspcasecmp): Assume mbrtowc function.
21790         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21791         (mbsrchr): Assume mbrtowc function.
21792         * lib/mbssep.c: Include mbuiter.h unconditionally.
21793         (mbssep): Assume mbrtowc function.
21794         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21795         (mbsspn): Assume mbrtowc function.
21796         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21797         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21798         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21799         (mbstok_r): Assume mbrtowc function.
21800         * lib/propername.c: Include mbuiter.h unconditionally.
21801         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21802         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21803         (trim2): Assume mbrtowc function.
21804         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21805         (mbsnwidth): Assume mbrtowc function.
21806         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21807         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21808         fallback definitions.
21809         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21810
21811 2008-12-22  Bruno Haible  <bruno@clisp.org>
21812
21813         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21814
21815 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21816
21817         * modules/regex: Request emulations for the mb*/wc* functions we need.
21818         * m4/regex.m4: Don't look for those functions here.
21819         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21820
21821 2008-12-22  Bruno Haible  <bruno@clisp.org>
21822
21823         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21824
21825 2008-12-21  Bruno Haible  <bruno@clisp.org>
21826
21827         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21828         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21829         (Include): Remove conditionalization.
21830         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21831         (Include): Remove conditionalization.
21832         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21833         (Include): Remove conditionalization.
21834         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21835         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21836         * NEWS: Mention the change.
21837         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21838         via Sergey Poznyakoff <gray@gnu.org.ua>.
21839
21840 2008-12-21  Bruno Haible  <bruno@clisp.org>
21841
21842         * MODULES.html.sh (Extended multibyte and wide character utilities
21843         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21844         wcrtomb, wcsrtombs.
21845         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21846         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21847         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21848         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21849
21850 2008-12-21  Bruno Haible  <bruno@clisp.org>
21851
21852         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21853
21854 2008-12-21  Bruno Haible  <bruno@clisp.org>
21855
21856         * modules/wcsnrtombs-tests: New file.
21857         * tests/test-wcsnrtombs1.sh: New file.
21858         * tests/test-wcsnrtombs2.sh: New file.
21859         * tests/test-wcsnrtombs3.sh: New file.
21860         * tests/test-wcsnrtombs4.sh: New file.
21861         * tests/test-wcsnrtombs.c: New file.
21862
21863         New module 'wcsnrtombs'.
21864         * lib/wchar.in.h (wcsnrtombs): New declaration.
21865         * lib/wcsnrtombs.c: New file.
21866         * lib/wcsrtombs-state.c: New file.
21867         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21868         (internal_state): Remove variable.
21869         * m4/wcsnrtombs.m4: New file.
21870         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21871         compilation units.
21872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21873         HAVE_WCSNRTOMBS.
21874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21875         HAVE_WCSNRTOMBS.
21876         * modules/wcsnrtombs: New file.
21877         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21878         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21879
21880 2008-12-21  Bruno Haible  <bruno@clisp.org>
21881
21882         * modules/wcsrtombs-tests: New file.
21883         * tests/test-wcsrtombs1.sh: New file.
21884         * tests/test-wcsrtombs2.sh: New file.
21885         * tests/test-wcsrtombs3.sh: New file.
21886         * tests/test-wcsrtombs4.sh: New file.
21887         * tests/test-wcsrtombs.c: New file.
21888
21889         New module 'wcsrtombs'.
21890         * lib/wchar.in.h (wcsrtombs): New declaration.
21891         * lib/wcsrtombs.c: New file.
21892         * m4/wcsrtombs.m4: New file.
21893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21894         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21896         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21897         * modules/wcsrtombs: New file.
21898         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21899         bugs.
21900
21901 2008-12-21  Bruno Haible  <bruno@clisp.org>
21902
21903         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21904         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21905         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21906         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21907         if not correct.
21908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21909         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21910         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21911         m4/locale-zh.m4, m4/codeset.m4.
21912         * doc/posix-functions/wcrtomb.texi: Document the bug.
21913
21914 2008-12-21  Bruno Haible  <bruno@clisp.org>
21915
21916         Work around a btowc() bug on IRIX 6.5.
21917         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21918         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21919         REPLACE_WTOBC if not.
21920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21921         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21922         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21923
21924 2008-12-21  Bruno Haible  <bruno@clisp.org>
21925
21926         * modules/wcrtomb-tests: New file.
21927         * tests/test-wcrtomb.sh: New file.
21928         * tests/test-wcrtomb.c: New file.
21929
21930         New module 'wcrtomb'.
21931         * lib/wchar.in.h (wcrtomb): New declaration.
21932         * lib/wcrtomb.c: New file.
21933         * m4/wcrtomb.m4: New file.
21934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21935         HAVE_WCRTOMB.
21936         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21937         HAVE_WCRTOMB.
21938         * modules/wcrtomb: New file.
21939         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21940
21941 2008-12-21  Bruno Haible  <bruno@clisp.org>
21942
21943         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21944         * modules/mbsrtowcs (Files): Likewise.
21945         * modules/wctob (Files): Likewise.
21946         * modules/c-strcase-tests (Files): Likewise.
21947         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21948         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21949         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21950         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21951         * modules/vasnprintf-posix-tests (Files): Likewise.
21952
21953 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21954
21955         gitlog-to-changelog: pass all command-line arguments to git-log
21956         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21957         it is sometimes convenient to filter the commits in various ways.
21958         gitlog-to-changelog only allows --since to specify a start date,
21959         but git-log itself supports many other filtering mechanisms.
21960         At the moment, I want to filter by branch name.  Rather than
21961         adding a --branch option to gitlog-to-changelog, it seems more
21962         flexible to simply pass all options directly to git-log and let
21963         git do the work.  Notice that this effectively makes --since a
21964         redundant option for gitlog-to-changelog, but removing it would
21965         require current usage to change since calls would then require
21966         an additional '--'.
21967
21968 2008-12-21  Bruno Haible  <bruno@clisp.org>
21969
21970         * modules/mbsnrtowcs-tests: New file.
21971         * tests/test-mbsnrtowcs1.sh: New file.
21972         * tests/test-mbsnrtowcs2.sh: New file.
21973         * tests/test-mbsnrtowcs3.sh: New file.
21974         * tests/test-mbsnrtowcs4.sh: New file.
21975         * tests/test-mbsnrtowcs.c: New file.
21976
21977         New module 'mbsnrtowcs'.
21978         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21979         * lib/mbsnrtowcs.c: New file.
21980         * lib/mbsrtowcs-state.c: New file.
21981         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21982         (internal_state): Remove variable.
21983         * m4/mbsnrtowcs.m4: New file.
21984         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21985         compilation units.
21986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21987         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21988         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21989         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21990         * modules/mbsnrtowcs: New file.
21991         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21992         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21993         portability problem.
21994
21995 2008-12-21  Bruno Haible  <bruno@clisp.org>
21996
21997         Work around mbsrtowcs bug.
21998         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21999         (gl_FUNC_MBSRTOWCS): Invoke it.
22000         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22001         m4/locale-zh.m4.
22002         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22003
22004 2008-12-21  Bruno Haible  <bruno@clisp.org>
22005
22006         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22007
22008 2008-12-21  Bruno Haible  <bruno@clisp.org>
22009
22010         Update doc for AIX.
22011         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22012         16-bit wchar_t type.
22013         * doc/posix-functions/btowc.texi: Likewise.
22014         * doc/posix-functions/fgetwc.texi: Likewise.
22015         * doc/posix-functions/fgetws.texi: Likewise.
22016         * doc/posix-functions/fputwc.texi: Likewise.
22017         * doc/posix-functions/fputws.texi: Likewise.
22018         * doc/posix-functions/fwide.texi: Likewise.
22019         * doc/posix-functions/fwprintf.texi: Likewise.
22020         * doc/posix-functions/fwscanf.texi: Likewise.
22021         * doc/posix-functions/getwchar.texi: Likewise.
22022         * doc/posix-functions/getwc.texi: Likewise.
22023         * doc/posix-functions/iswalnum.texi: Likewise.
22024         * doc/posix-functions/iswalpha.texi: Likewise.
22025         * doc/posix-functions/iswblank.texi: Likewise.
22026         * doc/posix-functions/iswcntrl.texi: Likewise.
22027         * doc/posix-functions/iswctype.texi: Likewise.
22028         * doc/posix-functions/iswdigit.texi: Likewise.
22029         * doc/posix-functions/iswgraph.texi: Likewise.
22030         * doc/posix-functions/iswlower.texi: Likewise.
22031         * doc/posix-functions/iswprint.texi: Likewise.
22032         * doc/posix-functions/iswpunct.texi: Likewise.
22033         * doc/posix-functions/iswspace.texi: Likewise.
22034         * doc/posix-functions/iswupper.texi: Likewise.
22035         * doc/posix-functions/iswxdigit.texi: Likewise.
22036         * doc/posix-functions/mbrtowc.texi: Likewise.
22037         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22038         * doc/posix-functions/mbstowcs.texi: Likewise.
22039         * doc/posix-functions/mbtowc.texi: Likewise.
22040         * doc/posix-functions/putwchar.texi: Likewise.
22041         * doc/posix-functions/putwc.texi: Likewise.
22042         * doc/posix-functions/swprintf.texi: Likewise.
22043         * doc/posix-functions/tolower.texi: Likewise.
22044         * doc/posix-functions/toupper.texi: Likewise.
22045         * doc/posix-functions/towctrans.texi: Likewise.
22046         * doc/posix-functions/ungetwc.texi: Likewise.
22047         * doc/posix-functions/vswprintf.texi: Likewise.
22048         * doc/posix-functions/wcrtomb.texi: Likewise.
22049         * doc/posix-functions/wcscat.texi: Likewise.
22050         * doc/posix-functions/wcschr.texi: Likewise.
22051         * doc/posix-functions/wcscmp.texi: Likewise.
22052         * doc/posix-functions/wcscoll.texi: Likewise.
22053         * doc/posix-functions/wcscpy.texi: Likewise.
22054         * doc/posix-functions/wcscspn.texi: Likewise.
22055         * doc/posix-functions/wcsftime.texi: Likewise.
22056         * doc/posix-functions/wcslen.texi: Likewise.
22057         * doc/posix-functions/wcsncat.texi: Likewise.
22058         * doc/posix-functions/wcsncmp.texi: Likewise.
22059         * doc/posix-functions/wcsncpy.texi: Likewise.
22060         * doc/posix-functions/wcspbrk.texi: Likewise.
22061         * doc/posix-functions/wcsrchr.texi: Likewise.
22062         * doc/posix-functions/wcsrtombs.texi: Likewise.
22063         * doc/posix-functions/wcsspn.texi: Likewise.
22064         * doc/posix-functions/wcsstr.texi: Likewise.
22065         * doc/posix-functions/wcstod.texi: Likewise.
22066         * doc/posix-functions/wcstof.texi: Likewise.
22067         * doc/posix-functions/wcstoimax.texi: Likewise.
22068         * doc/posix-functions/wcstok.texi: Likewise.
22069         * doc/posix-functions/wcstold.texi: Likewise.
22070         * doc/posix-functions/wcstoll.texi: Likewise.
22071         * doc/posix-functions/wcstol.texi: Likewise.
22072         * doc/posix-functions/wcstombs.texi: Likewise.
22073         * doc/posix-functions/wcstoull.texi: Likewise.
22074         * doc/posix-functions/wcstoul.texi: Likewise.
22075         * doc/posix-functions/wcstoumax.texi: Likewise.
22076         * doc/posix-functions/wcswidth.texi: Likewise.
22077         * doc/posix-functions/wcsxfrm.texi: Likewise.
22078         * doc/posix-functions/wctob.texi: Likewise.
22079         * doc/posix-functions/wctomb.texi: Likewise.
22080         * doc/posix-functions/wctrans.texi: Likewise.
22081         * doc/posix-functions/wctype.texi: Likewise.
22082         * doc/posix-functions/wcwidth.texi: Likewise.
22083         * doc/posix-functions/wmemchr.texi: Likewise.
22084         * doc/posix-functions/wmemcmp.texi: Likewise.
22085         * doc/posix-functions/wmemcpy.texi: Likewise.
22086         * doc/posix-functions/wmemmove.texi: Likewise.
22087         * doc/posix-functions/wmemset.texi: Likewise.
22088         * doc/posix-functions/wprintf.texi: Likewise.
22089         * doc/posix-functions/wscanf.texi: Likewise.
22090
22091 2008-12-21  Bruno Haible  <bruno@clisp.org>
22092
22093         Update doc for HP-UX 11.11.
22094         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22095         in HP-UX version 11.00, not in all versions of HP-UX 11.
22096         * doc/posix-functions/fwide.texi: Likewise.
22097         * doc/posix-functions/fwprintf.texi: Likewise.
22098         * doc/posix-functions/fwscanf.texi: Likewise.
22099         * doc/posix-functions/inet_ntop.texi: Likewise.
22100         * doc/posix-functions/inet_pton.texi: Likewise.
22101         * doc/posix-functions/mbrlen.texi: Likewise.
22102         * doc/posix-functions/mbrtowc.texi: Likewise.
22103         * doc/posix-functions/mbsinit.texi: Likewise.
22104         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22105         * doc/posix-functions/swprintf.texi: Likewise.
22106         * doc/posix-functions/swscanf.texi: Likewise.
22107         * doc/posix-functions/towctrans.texi: Likewise.
22108         * doc/posix-functions/vfwprintf.texi: Likewise.
22109         * doc/posix-functions/vswprintf.texi: Likewise.
22110         * doc/posix-functions/vwprintf.texi: Likewise.
22111         * doc/posix-functions/wcrtomb.texi: Likewise.
22112         * doc/posix-functions/wcsrtombs.texi: Likewise.
22113         * doc/posix-functions/wcsstr.texi: Likewise.
22114         * doc/posix-functions/wctob.texi: Likewise.
22115         * doc/posix-functions/wctrans.texi: Likewise.
22116         * doc/posix-functions/wmemchr.texi: Likewise.
22117         * doc/posix-functions/wmemcmp.texi: Likewise.
22118         * doc/posix-functions/wmemcpy.texi: Likewise.
22119         * doc/posix-functions/wmemmove.texi: Likewise.
22120         * doc/posix-functions/wmemset.texi: Likewise.
22121         * doc/posix-functions/wprintf.texi: Likewise.
22122         * doc/posix-functions/wscanf.texi: Likewise.
22123
22124 2008-12-21  Bruno Haible  <bruno@clisp.org>
22125
22126         Work around a portability problem.
22127         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22128         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22129
22130 2008-12-20  Bruno Haible  <bruno@clisp.org>
22131
22132         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22133         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22134         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22136         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22137
22138         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22139         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22140         set.
22141         (GNULIB_defined_mbstate_t): New macro.
22142         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22143         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22144         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22145         reuses the system's mbrtowc function but works around the bugs.
22146         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22147         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22148         macros.
22149         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22150         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22151         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22152         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22153         REPLACE_MBSINIT if mbsinit needs to be overridden.
22154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22155         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22156         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22157         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22158         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22159         m4/locale-zh.m4.
22160         (Depends): Add mbsinit.
22161         * modules/mbsinit (Depends): Add mbrtowc.
22162         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22163
22164 2008-12-20  Bruno Haible  <bruno@clisp.org>
22165
22166         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22167         so that there are no conversion errors on AIX.
22168         * tests/test-mbsrtowcs.c (main): LIkewise.
22169
22170 2008-12-20  Bruno Haible  <bruno@clisp.org>
22171
22172         Work around wctob bug on Solaris <= 9.
22173         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22174         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22176         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22177         * modules/wctob (Files): Add m4/locale-fr.m4.
22178         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22179
22180 2008-12-20  Bruno Haible  <bruno@clisp.org>
22181
22182         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22183         /dev/null.
22184         * tests/test-select-in.sh: Likewise.
22185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22186
22187 2008-12-20  Bruno Haible  <bruno@clisp.org>
22188
22189         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22190         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22191         Cygwin 1.5.x.
22192
22193 2008-12-20  Bruno Haible  <bruno@clisp.org>
22194
22195         Ensure mbstate_t is defined on HP-UX 11.11.
22196         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22197         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22198         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22199         AC_USE_SYSTEM_EXTENSIONS.
22200         * modules/fnmatch (Depends-on): Add extensions.
22201         * modules/mbrlen (Depends-on): Likewise.
22202         * modules/mbrtowc (Depends-on): Likewise.
22203         * modules/mbsinit (Depends-on): Likewise.
22204         * modules/mbsrtowcs (Depends-on): Likewise.
22205         * modules/mbswidth (Depends-on): Likewise.
22206         * modules/quotearg (Depends-on): Likewise.
22207         * modules/strftime (Depends-on): Likewise.
22208
22209 2008-12-20  Bruno Haible  <bruno@clisp.org>
22210
22211         Ensure wctob is declared on IRIX 6.5.
22212         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22213         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22214         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22216         of HAVE_WCTOB.
22217         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22218         HAVE_WCTOB.
22219         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22220
22221 2008-12-19  Bruno Haible  <bruno@clisp.org>
22222
22223         * modules/mbsrtowcs-tests: New file.
22224         * tests/test-mbsrtowcs1.sh: New file.
22225         * tests/test-mbsrtowcs2.sh: New file.
22226         * tests/test-mbsrtowcs3.sh: New file.
22227         * tests/test-mbsrtowcs4.sh: New file.
22228         * tests/test-mbsrtowcs.c: New file.
22229
22230         New module 'mbsrtowcs'.
22231         * lib/wchar.in.h (mbsrtowcs): New declaration.
22232         * lib/mbsrtowcs.c: New file.
22233         * m4/mbsrtowcs.m4: New file.
22234         * modules/mbsrtowcs: New file.
22235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22236         HAVE_MBSRTOWCS.
22237         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22238         HAVE_MBSRTOWCS.
22239         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22240
22241 2008-12-19  Bruno Haible  <bruno@clisp.org>
22242
22243         New module 'mbrlen'.
22244         * lib/wchar.in.h (mbrlen): New declaration.
22245         * lib/mbrlen.c: New file.
22246         * m4/mbrlen.m4: New file.
22247         * modules/mbrlen: New file.
22248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22249         HAVE_MBRLEN.
22250         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22251         HAVE_MBRLEN.
22252         * doc/posix-functions/mbrlen.texi: Document the new module.
22253
22254 2008-12-19  Bruno Haible  <bruno@clisp.org>
22255
22256         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22257         * modules/mbrtowc (Depends-on): Add verify.
22258         Suggested by Paul Eggert.
22259
22260 2008-12-18  Bruno Haible  <bruno@clisp.org>
22261
22262         * modules/mbsinit-tests: New file.
22263         * tests/test-mbsinit.sh: New file.
22264         * tests/test-mbsinit.c: New file.
22265
22266 2008-12-18  Bruno Haible  <bruno@clisp.org>
22267
22268         * modules/mbrtowc-tests: New file.
22269         * tests/test-mbrtowc1.sh: New file.
22270         * tests/test-mbrtowc2.sh: New file.
22271         * tests/test-mbrtowc3.sh: New file.
22272         * tests/test-mbrtowc4.sh: New file.
22273         * tests/test-mbrtowc.c: New file.
22274
22275         New module 'mbrtowc'.
22276         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22277         mbsinit and mbrtowc.
22278         (mbrtowc): New declaration.
22279         * lib/mbrtowc.c: New file.
22280         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22281         * modules/mbrtowc: New file.
22282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22283         HAVE_MBRTOWC.
22284         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22285         HAVE_MBRTOWC.
22286         * doc/posix-functions/mbrtowc.texi: Document the new module.
22287
22288 2008-12-18  Bruno Haible  <bruno@clisp.org>
22289
22290         New module 'wctob'.
22291         * lib/wchar.in.h (wctob): New declaration.
22292         * lib/wctob.c: New file.
22293         * m4/wctob.m4: New file.
22294         * modules/wctob: New file.
22295         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22296         HAVE_WCTOB.
22297         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22298         * doc/posix-functions/wctob.texi: Document the new module.
22299
22300 2008-12-18  Bruno Haible  <bruno@clisp.org>
22301
22302         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22303         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22304
22305 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22306
22307         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22308         G. Christensen" <tgc@jupiterrise.com>.
22309
22310         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22311         G. Christensen" <tgc@jupiterrise.com>.
22312
22313         * lib/flock.c: Need to include string.h.  Reported by "Tom
22314         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22315         <ebb9@byu.net>.
22316
22317 2008-12-18  Bruno Haible  <bruno@clisp.org>
22318
22319         * m4/locale-ja.m4: New file, from GNU gettext.
22320
22321 2008-12-17  Bruno Haible  <bruno@clisp.org>
22322
22323         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22324         Suggested by Eric Blake.
22325
22326 2008-12-17  Bruno Haible  <bruno@clisp.org>
22327
22328         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22329
22330 2008-12-17  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22333         * modules/mbsinit (Depends-on): Add verify.
22334         Suggested by Paul Eggert.
22335
22336 2008-12-17  Bruno Haible  <bruno@clisp.org>
22337
22338         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22339         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22340         gl_FUNC_MBRTOWC.
22341         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22342         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22343         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22344         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22345         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22346         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22347         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22348         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22349         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22350         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22351         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22352         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22353         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22354         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22355         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22356         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22357         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22358         * modules/trim (configure.ac): Likewise.
22359
22360 2008-12-17  Bruno Haible  <bruno@clisp.org>
22361
22362         * modules/btowc-tests: New file.
22363         * tests/test-btowc1.sh: New file.
22364         * tests/test-btowc2.sh: New file.
22365         * tests/test-btowc.c: New file.
22366
22367         New module 'btowc'.
22368         * lib/wchar.in.h (btowc): New declaration.
22369         * lib/btowc.c: New file.
22370         * m4/btowc.m4: New file.
22371         * modules/btowc: New file.
22372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22373         HAVE_BTOWC.
22374         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22375         * doc/posix-functions/btowc.texi: Document the new module.
22376
22377 2008-12-17  Bruno Haible  <bruno@clisp.org>
22378
22379         New module 'mbsinit'.
22380         * lib/wchar.in.h (mbsinit): New declaration.
22381         * lib/mbsinit.c: New file.
22382         * m4/mbsinit.m4: New file.
22383         * modules/mbsinit: New file.
22384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22385         HAVE_MBSINIT.
22386         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22387         HAVE_MBSINIT.
22388         * doc/posix-functions/mbsinit.texi: Document the new module.
22389
22390 2008-12-16  Bruno Haible  <bruno@clisp.org>
22391
22392         * lib/unistd.in.h: Add comment.
22393         * tests/test-environ.c: Don't include <stdlib.h>.
22394
22395 2008-12-16  Bruno Haible  <bruno@clisp.org>
22396
22397         * lib/parse-duration.h (parse_duration): Document return value
22398         convention.
22399         * lib/parse-duration.c: Include specification header first. Add
22400         comments.
22401         (_): Remove macro.
22402         (parse_year_month_day, parse_hour_minute_second): Move side effects
22403         outside of strchr call.
22404         (parse_non_iso8601): Move side effects outside of isspace call.
22405         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22406         call.
22407
22408 2008-12-16  Bruno Haible  <bruno@clisp.org>
22409
22410         * tests/test-parse-duration.sh: Produce no output when the test
22411         succeeds.
22412
22413 2008-12-16  Bruno Haible  <bruno@clisp.org>
22414
22415         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22416         expressions.
22417
22418 2008-12-15  Bruno Haible  <bruno@clisp.org>
22419
22420         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22421         * doc/glibc-functions/flistxattr.texi: Likewise.
22422         * doc/glibc-functions/fopencookie.texi: Likewise.
22423         * doc/glibc-functions/fremovexattr.texi: Likewise.
22424         * doc/glibc-functions/fsetxattr.texi: Likewise.
22425         * doc/glibc-functions/getxattr.texi: Likewise.
22426         * doc/glibc-functions/lgetxattr.texi: Likewise.
22427         * doc/glibc-functions/listxattr.texi: Likewise.
22428         * doc/glibc-functions/llistxattr.texi: Likewise.
22429         * doc/glibc-functions/lremovexattr.texi: Likewise.
22430         * doc/glibc-functions/lsetxattr.texi: Likewise.
22431         * doc/glibc-functions/removexattr.texi: Likewise.
22432         * doc/glibc-functions/setxattr.texi: Likewise.
22433         * doc/posix-functions/open_memstream.texi: Likewise.
22434
22435 2008-12-15  Eric Blake  <ebb9@byu.net>
22436
22437         Update doc for cygwin 1.7.
22438         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22439         functions.
22440         * doc/posix-functions/fchmodat.texi: Likewise.
22441         * doc/posix-functions/fchownat.texi: Likewise.
22442         * doc/posix-functions/fdopendir.texi: Likewise.
22443         * doc/posix-functions/fmemopen.texi: Likewise.
22444         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22445         * doc/posix-functions/fstatat.texi: Likewise.
22446         * doc/posix-functions/futimens.texi: Likewise.
22447         * doc/posix-functions/gai_strerror.texi: Likewise.
22448         * doc/posix-functions/getaddrinfo.texi: Likewise.
22449         * doc/posix-functions/getnameinfo.texi: Likewise.
22450         * doc/posix-functions/if_freenameindex.texi: Likewise.
22451         * doc/posix-functions/if_indextoname.texi: Likewise.
22452         * doc/posix-functions/if_nameindex.texi: Likewise.
22453         * doc/posix-functions/if_nametoindex.texi: Likewise.
22454         * doc/posix-functions/insque.texi: Likewise.
22455         * doc/posix-functions/linkat.texi: Likewise.
22456         * doc/posix-functions/llrint.texi: Likewise.
22457         * doc/posix-functions/llrintf.texi: Likewise.
22458         * doc/posix-functions/llrintl.texi: Likewise.
22459         * doc/posix-functions/lockf.texi: Likewise.
22460         * doc/posix-functions/lrintl.texi: Likewise.
22461         * doc/posix-functions/mkdirat.texi: Likewise.
22462         * doc/posix-functions/mkfifoat.texi: Likewise.
22463         * doc/posix-functions/mknodat.texi: Likewise.
22464         * doc/posix-functions/mq_close.texi: Likewise.
22465         * doc/posix-functions/mq_getattr.texi: Likewise.
22466         * doc/posix-functions/mq_notify.texi: Likewise.
22467         * doc/posix-functions/mq_open.texi: Likewise.
22468         * doc/posix-functions/mq_receive.texi: Likewise.
22469         * doc/posix-functions/mq_send.texi: Likewise.
22470         * doc/posix-functions/mq_setattr.texi: Likewise.
22471         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22472         * doc/posix-functions/mq_timedsend.texi: Likewise.
22473         * doc/posix-functions/mq_unlink.texi: Likewise.
22474         * doc/posix-functions/open_memstream.texi: Likewise.
22475         * doc/posix-functions/openat.texi: Likewise.
22476         * doc/posix-functions/posix_fadvise.texi: Likewise.
22477         * doc/posix-functions/posix_fallocate.texi: Likewise.
22478         * doc/posix-functions/posix_madvise.texi: Likewise.
22479         * doc/posix-functions/posix_memalign.texi: Likewise.
22480         * doc/posix-functions/posix_openpt.texi: Likewise.
22481         * doc/posix-functions/readlinkat.texi: Likewise.
22482         * doc/posix-functions/remque.texi: Likewise.
22483         * doc/posix-functions/renameat.texi: Likewise.
22484         * doc/posix-functions/rintl.texi: Likewise.
22485         * doc/posix-functions/sem_unlink.texi: Likewise.
22486         * doc/posix-functions/shm_open.texi: Likewise.
22487         * doc/posix-functions/shm_unlink.texi: Likewise.
22488         * doc/posix-functions/signgam.texi: Likewise.
22489         * doc/posix-functions/sigset.texi: Likewise.
22490         * doc/posix-functions/stpcpy.texi: Likewise.
22491         * doc/posix-functions/stpncpy.texi: Likewise.
22492         * doc/posix-functions/strerror.texi: Likewise.
22493         * doc/posix-functions/strtod.texi: Likewise.
22494         * doc/posix-functions/symlinkat.texi: Likewise.
22495         * doc/posix-functions/unlinkat.texi: Likewise.
22496         * doc/posix-functions/utimensat.texi: Likewise.
22497         * doc/glibc-functions/bindresvport.texi: Likewise.
22498         * doc/glibc-functions/dn_expand.texi: Likewise.
22499         * doc/glibc-functions/exp10.texi: Likewise.
22500         * doc/glibc-functions/exp10f.texi: Likewise.
22501         * doc/glibc-functions/fgetxattr.texi: Likewise.
22502         * doc/glibc-functions/flistxattr.texi: Likewise.
22503         * doc/glibc-functions/fopencookie.texi: Likewise.
22504         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22505         * doc/glibc-functions/fremovexattr.texi: Likewise.
22506         * doc/glibc-functions/fsetxattr.texi: Likewise.
22507         * doc/glibc-functions/getifaddrs.texi: Likewise.
22508         * doc/glibc-functions/getxattr.texi: Likewise.
22509         * doc/glibc-functions/lgetxattr.texi: Likewise.
22510         * doc/glibc-functions/listxattr.texi: Likewise.
22511         * doc/glibc-functions/llistxattr.texi: Likewise.
22512         * doc/glibc-functions/lremovexattr.texi: Likewise.
22513         * doc/glibc-functions/lsetxattr.texi: Likewise.
22514         * doc/glibc-functions/pow10.texi: Likewise.
22515         * doc/glibc-functions/pow10f.texi: Likewise.
22516         * doc/glibc-functions/rcmd_af.texi: Likewise.
22517         * doc/glibc-functions/removexattr.texi: Likewise.
22518         * doc/glibc-functions/res_init.texi: Likewise.
22519         * doc/glibc-functions/res_mkquery.texi: Likewise.
22520         * doc/glibc-functions/res_query.texi: Likewise.
22521         * doc/glibc-functions/res_querydomain.texi: Likewise.
22522         * doc/glibc-functions/res_send.texi: Likewise.
22523         * doc/glibc-functions/rresvport_af.texi: Likewise.
22524         * doc/glibc-functions/setxattr.texi: Likewise.
22525         * doc/glibc-functions/strcasestr.texi: Likewise.
22526
22527 2008-12-15  Bruno Haible  <bruno@clisp.org>
22528
22529         Fix compilation error on OSF/1 4.0.
22530         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22531         <sys/time.h>, simply delegate to the system header.
22532         Reported by Daniel Richard G. <oss@teragram.com>.
22533
22534 2008-12-15  Bruno Haible  <bruno@clisp.org>
22535
22536         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22537         * doc/posix-functions/fchmodat.texi: Likewise.
22538         * doc/posix-functions/fchownat.texi: Likewise.
22539         * doc/posix-functions/fdopendir.texi: Likewise.
22540         * doc/posix-functions/fstatat.texi: Likewise.
22541         * doc/posix-functions/mkdirat.texi: Likewise.
22542         * doc/posix-functions/unlinkat.texi: Likewise.
22543
22544 2008-12-14  Bruno Haible  <bruno@clisp.org>
22545
22546         Update doc for POSIX:2008.
22547         * doc/posix-functions/faccessat.texi: New file.
22548         * doc/posix-functions/fchmodat.texi: New file.
22549         * doc/posix-functions/fchownat.texi: New file.
22550         * doc/posix-functions/fdopendir.texi: New file.
22551         * doc/posix-functions/fstatat.texi: New file.
22552         * doc/posix-functions/futimens.texi: New file.
22553         * doc/posix-functions/linkat.texi: New file.
22554         * doc/posix-functions/mkdirat.texi: New file.
22555         * doc/posix-functions/mkfifoat.texi: New file.
22556         * doc/posix-functions/mknodat.texi: New file.
22557         * doc/posix-functions/open_wmemstream.texi: New file.
22558         * doc/posix-functions/openat.texi: New file.
22559         * doc/posix-functions/psiginfo.texi: New file.
22560         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22561         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22562         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22563         * doc/posix-functions/readlinkat.texi: New file.
22564         * doc/posix-functions/renameat.texi: New file.
22565         * doc/posix-functions/strerror_l.texi: New file.
22566         * doc/posix-functions/symlinkat.texi: New file.
22567         * doc/posix-functions/unlinkat.texi: New file.
22568         * doc/posix-functions/utimensat.texi: New file.
22569         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22570
22571 2008-12-14  Bruno Haible  <bruno@clisp.org>
22572
22573         Update doc for POSIX:2008.
22574         * doc/posix-functions/alphasort.texi: Renamed from
22575         doc/glibc-functions/alphasort.texi.
22576         * doc/posix-functions/dirfd.texi: Renamed from
22577         doc/glibc-functions/dirfd.texi.
22578         * doc/posix-functions/dprintf.texi: Renamed from
22579         doc/glibc-functions/dprintf.texi.
22580         * doc/posix-functions/duplocale.texi: Renamed from
22581         doc/glibc-functions/duplocale.texi.
22582         * doc/posix-functions/fexecve.texi: Renamed from
22583         doc/glibc-functions/fexecve.texi.
22584         * doc/posix-functions/fmemopen.texi: Renamed from
22585         doc/glibc-functions/fmemopen.texi.
22586         * doc/posix-functions/freelocale.texi: Renamed from
22587         doc/glibc-functions/freelocale.texi.
22588         * doc/posix-functions/getdate_err.texi: Renamed from
22589         doc/glibc-functions/getdate_err.texi.
22590         * doc/posix-functions/isalnum_l.texi: Renamed from
22591         doc/glibc-functions/isalnum_l.texi.
22592         * doc/posix-functions/isalpha_l.texi: Renamed from
22593         doc/glibc-functions/isalpha_l.texi.
22594         * doc/posix-functions/isblank_l.texi: Renamed from
22595         doc/glibc-functions/isblank_l.texi.
22596         * doc/posix-functions/iscntrl_l.texi: Renamed from
22597         doc/glibc-functions/iscntrl_l.texi.
22598         * doc/posix-functions/isdigit_l.texi: Renamed from
22599         doc/glibc-functions/isdigit_l.texi.
22600         * doc/posix-functions/isgraph_l.texi: Renamed from
22601         doc/glibc-functions/isgraph_l.texi.
22602         * doc/posix-functions/islower_l.texi: Renamed from
22603         doc/glibc-functions/islower_l.texi.
22604         * doc/posix-functions/isprint_l.texi: Renamed from
22605         doc/glibc-functions/isprint_l.texi.
22606         * doc/posix-functions/ispunct_l.texi: Renamed from
22607         doc/glibc-functions/ispunct_l.texi.
22608         * doc/posix-functions/isspace_l.texi: Renamed from
22609         doc/glibc-functions/isspace_l.texi.
22610         * doc/posix-functions/isupper_l.texi: Renamed from
22611         doc/glibc-functions/isupper_l.texi.
22612         * doc/posix-functions/iswalnum_l.texi: Renamed from
22613         doc/glibc-functions/iswalnum_l.texi.
22614         * doc/posix-functions/iswalpha_l.texi: Renamed from
22615         doc/glibc-functions/iswalpha_l.texi.
22616         * doc/posix-functions/iswblank_l.texi: Renamed from
22617         doc/glibc-functions/iswblank_l.texi.
22618         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22619         doc/glibc-functions/iswcntrl_l.texi.
22620         * doc/posix-functions/iswctype_l.texi: Renamed from
22621         doc/glibc-functions/iswctype_l.texi.
22622         * doc/posix-functions/iswdigit_l.texi: Renamed from
22623         doc/glibc-functions/iswdigit_l.texi.
22624         * doc/posix-functions/iswgraph_l.texi: Renamed from
22625         doc/glibc-functions/iswgraph_l.texi.
22626         * doc/posix-functions/iswlower_l.texi: Renamed from
22627         doc/glibc-functions/iswlower_l.texi.
22628         * doc/posix-functions/iswprint_l.texi: Renamed from
22629         doc/glibc-functions/iswprint_l.texi.
22630         * doc/posix-functions/iswpunct_l.texi: Renamed from
22631         doc/glibc-functions/iswpunct_l.texi.
22632         * doc/posix-functions/iswspace_l.texi: Renamed from
22633         doc/glibc-functions/iswspace_l.texi.
22634         * doc/posix-functions/iswupper_l.texi: Renamed from
22635         doc/glibc-functions/iswupper_l.texi.
22636         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22637         doc/glibc-functions/iswxdigit_l.texi.
22638         * doc/posix-functions/isxdigit_l.texi: Renamed from
22639         doc/glibc-functions/isxdigit_l.texi.
22640         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22641         doc/glibc-functions/mbsnrtowcs.texi.
22642         * doc/posix-functions/mkdtemp.texi: Renamed from
22643         doc/glibc-functions/mkdtemp.texi.
22644         * doc/posix-functions/newlocale.texi: Renamed from
22645         doc/glibc-functions/newlocale.texi.
22646         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22647         doc/glibc-functions/nl_langinfo_l.texi.
22648         * doc/posix-functions/open_memstream.texi: Renamed from
22649         doc/glibc-functions/open_memstream.texi.
22650         * doc/posix-functions/opterr.texi: Renamed from
22651         doc/glibc-functions/opterr.texi.
22652         * doc/posix-functions/optind.texi: Renamed from
22653         doc/glibc-functions/optind.texi.
22654         * doc/posix-functions/optopt.texi: Renamed from
22655         doc/glibc-functions/optopt.texi.
22656         * doc/posix-functions/psignal.texi: Renamed from
22657         doc/glibc-functions/psignal.texi.
22658         * doc/posix-functions/scandir.texi: Renamed from
22659         doc/glibc-functions/scandir.texi.
22660         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22661         doc/glibc-functions/sched_get_priority_min.texi.
22662         * doc/posix-functions/signgam.texi: Renamed from
22663         doc/glibc-functions/signgam.texi.
22664         * doc/posix-functions/stpcpy.texi: Renamed from
22665         doc/glibc-functions/stpcpy.texi.
22666         * doc/posix-functions/stpncpy.texi: Renamed from
22667         doc/glibc-functions/stpncpy.texi.
22668         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22669         doc/glibc-functions/strcasecmp_l.texi.
22670         * doc/posix-functions/strcoll_l.texi: Renamed from
22671         doc/glibc-functions/strcoll_l.texi.
22672         * doc/posix-functions/strfmon_l.texi: Renamed from
22673         doc/glibc-functions/strfmon_l.texi.
22674         * doc/posix-functions/strftime_l.texi: Renamed from
22675         doc/glibc-functions/strftime_l.texi.
22676         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22677         doc/glibc-functions/strncasecmp_l.texi.
22678         * doc/posix-functions/strndup.texi: Renamed from
22679         doc/glibc-functions/strndup.texi.
22680         * doc/posix-functions/strnlen.texi: Renamed from
22681         doc/glibc-functions/strnlen.texi.
22682         * doc/posix-functions/strsignal.texi: Renamed from
22683         doc/glibc-functions/strsignal.texi.
22684         * doc/posix-functions/strxfrm_l.texi: Renamed from
22685         doc/glibc-functions/strxfrm_l.texi.
22686         * doc/posix-functions/timer_gettime.texi: Renamed from
22687         doc/glibc-functions/timer_gettime.texi.
22688         * doc/posix-functions/tolower_l.texi: Renamed from
22689         doc/glibc-functions/tolower_l.texi.
22690         * doc/posix-functions/toupper_l.texi: Renamed from
22691         doc/glibc-functions/toupper_l.texi.
22692         * doc/posix-functions/towctrans_l.texi: Renamed from
22693         doc/glibc-functions/towctrans_l.texi.
22694         * doc/posix-functions/towlower_l.texi: Renamed from
22695         doc/glibc-functions/towlower_l.texi.
22696         * doc/posix-functions/towupper_l.texi: Renamed from
22697         doc/glibc-functions/towupper_l.texi.
22698         * doc/posix-functions/uselocale.texi: Renamed from
22699         doc/glibc-functions/uselocale.texi.
22700         * doc/posix-functions/vdprintf.texi: Renamed from
22701         doc/glibc-functions/vdprintf.texi.
22702         * doc/posix-functions/wcpcpy.texi:
22703         Renamed from doc/glibc-functions/wcpcpy.texi.
22704         * doc/posix-functions/wcpncpy.texi: Renamed from
22705         doc/glibc-functions/wcpncpy.texi.
22706         * doc/posix-functions/wcscasecmp.texi: Renamed from
22707         doc/glibc-functions/wcscasecmp.texi.
22708         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22709         doc/glibc-functions/wcscasecmp_l.texi.
22710         * doc/posix-functions/wcscoll_l.texi: Renamed from
22711         doc/glibc-functions/wcscoll_l.texi.
22712         * doc/posix-functions/wcsdup.texi: Renamed from
22713         doc/glibc-functions/wcsdup.texi.
22714         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22715         doc/glibc-functions/wcsncasecmp.texi.
22716         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22717         doc/glibc-functions/wcsncasecmp_l.texi.
22718         * doc/posix-functions/wcsnlen.texi: Renamed from
22719         doc/glibc-functions/wcsnlen.texi.
22720         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22721         doc/glibc-functions/wcsnrtombs.texi.
22722         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22723         doc/glibc-functions/wcsxfrm_l.texi.
22724         * doc/posix-functions/wctrans_l.texi: Renamed from
22725         doc/glibc-functions/wctrans_l.texi.
22726         * doc/posix-functions/wctype_l.texi: Renamed from
22727         doc/glibc-functions/wctype_l.texi.
22728         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22729         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22730         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22731         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22732         these subsections.
22733         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22734         Remove sections.
22735
22736 2008-12-14  Bruno Haible  <bruno@clisp.org>
22737
22738         Update doc for POSIX:2008.
22739         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22740
22741 2008-12-14  Bruno Haible  <bruno@clisp.org>
22742
22743         Update doc for POSIX:2008.
22744         * doc/pastposix-functions/bcmp.texi: Renamed from
22745         doc/posix-functions/bcmp.texi.
22746         * doc/pastposix-functions/bcopy.texi: Renamed from
22747         doc/posix-functions/bcopy.texi.
22748         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22749         doc/posix-functions/bsd_signal.texi.
22750         * doc/pastposix-functions/bzero.texi: Renamed from
22751         doc/posix-functions/bzero.texi.
22752         * doc/pastposix-functions/ecvt.texi: Renamed from
22753         doc/posix-functions/ecvt.texi.
22754         * doc/pastposix-functions/fcvt.texi: Renamed from
22755         doc/posix-functions/fcvt.texi.
22756         * doc/pastposix-functions/ftime.texi: Renamed from
22757         doc/posix-functions/ftime.texi.
22758         * doc/pastposix-functions/gcvt.texi: Renamed from
22759         doc/posix-functions/gcvt.texi.
22760         * doc/pastposix-functions/getcontext.texi: Renamed from
22761         doc/posix-functions/getcontext.texi.
22762         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22763         doc/posix-functions/gethostbyaddr.texi.
22764         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22765         doc/posix-functions/gethostbyname.texi.
22766         * doc/pastposix-functions/getwd.texi: Renamed from
22767         doc/posix-functions/getwd.texi.
22768         * doc/pastposix-functions/h_errno.texi: Renamed from
22769         doc/posix-functions/h_errno.texi.
22770         * doc/pastposix-functions/index.texi: Renamed from
22771         doc/posix-functions/index.texi.
22772         * doc/pastposix-functions/makecontext.texi: Renamed from
22773         doc/posix-functions/makecontext.texi.
22774         * doc/pastposix-functions/mktemp.texi: Renamed from
22775         doc/posix-functions/mktemp.texi.
22776         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22777         doc/posix-functions/pthread_attr_getstackaddr.texi.
22778         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22779         doc/posix-functions/pthread_attr_setstackaddr.texi.
22780         * doc/pastposix-functions/rindex.texi: Renamed from
22781         doc/posix-functions/rindex.texi.
22782         * doc/pastposix-functions/scalb.texi: Renamed from
22783         doc/posix-functions/scalb.texi.
22784         * doc/pastposix-functions/setcontext.texi: Renamed from
22785         doc/posix-functions/setcontext.texi.
22786         * doc/pastposix-functions/swapcontext.texi: Renamed from
22787         doc/posix-functions/swapcontext.texi.
22788         * doc/pastposix-functions/ualarm.texi: Renamed from
22789         doc/posix-functions/ualarm.texi.
22790         * doc/pastposix-functions/usleep.texi: Renamed from
22791         doc/posix-functions/usleep.texi.
22792         * doc/pastposix-functions/vfork.texi: Renamed from
22793         doc/posix-functions/vfork.texi.
22794         * doc/pastposix-functions/wcswcs.texi: Renamed from
22795         doc/posix-functions/wcswcs.texi.
22796         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22797         (Function Substitutes): Update.
22798
22799 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22800
22801         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22802         m4/strerror.m4.
22803
22804 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22805             Bruno Haible  <bruno@clisp.org>
22806
22807         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22808
22809 2008-12-13  Bruno Haible  <bruno@clisp.org>
22810
22811         * modules/strtoull (Depends-on): Remove unistd.
22812
22813 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22814
22815         * modules/strtoull (Depends-on): Add stdlib.
22816
22817 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22818
22819         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22820
22821 2008-12-10  Jim Meyering  <meyering@redhat.com>
22822
22823         gl_ASSERT: don't say assertions are disabled when they're not
22824         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22825         "checking whether to enable assertions... no", when they are in
22826         fact enabled.  This is solely a bug in the output of configure.
22827         In spite of saying "no", NDEBUG was not defined in that case.
22828         Also, as noted by Eric Blake, leave assertions enabled upon
22829         --enable-assert=INVALID.
22830
22831 2008-12-10  Bruno Haible  <bruno@clisp.org>
22832
22833         Change MODULES.html to refer to POSIX:2008 where possible.
22834         * MODULES.html.sh (POSIX2008_URL): New variable.
22835         (posix_headers): Remove sys/timeb, ucontext.
22836         (posix2001_headers): New variable.
22837         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22838         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22839         index, makecontext, mktemp, pthread_attr_getstackaddr,
22840         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22841         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22842         (posix2001_functions): New variable.
22843         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22844         otherwise.
22845
22846 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22847
22848         add missing include to parse-duration.c
22849         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22850         * modules/parse-duration (Depends-on): Add xalloc.
22851
22852         fix sed script reading maint.mk
22853         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22854         (syntax-check-rules): Use it.
22855
22856 2008-12-09  Bruno Haible  <bruno@clisp.org>
22857
22858         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22859         MacOS X 10.4/PowerPC.
22860         Reported by Simon Josefsson.
22861
22862 2008-12-08  Jim Meyering  <meyering@redhat.com>
22863
22864         work around mingw's lack of some S_IF definitions
22865         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22866         Reported by Simon Josefsson.
22867
22868 2008-12-08  Bruno Haible  <bruno@clisp.org>
22869
22870         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22871         applied to variables. Needed on MacOS X 10.4/PowerPC.
22872         Reported by Simon Josefsson.
22873
22874 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22875         and Eric Blake  <ebb9@byu.net>
22876
22877         assert: honor --enable-assert
22878         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22879         order to honor --enable-assert, rather than treating it as a
22880         synonym for --disable-assert.
22881
22882 2008-12-08  Jim Meyering  <meyering@redhat.com>
22883
22884         * lib/posixtm.c: Remove now-useless declaration of mktime.
22885
22886         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22887
22888 2008-12-07  Bruno Haible  <bruno@clisp.org>
22889
22890         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22891         test_once): Mark functions as static.
22892         * tests/test-tls.c (test_tls): Likewise.
22893
22894 2008-12-07  Bruno Haible  <bruno@clisp.org>
22895
22896         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22897         iconv_register_autodetect.
22898
22899 2008-12-07  Jim Meyering  <meyering@redhat.com>
22900
22901         posixtm.c: avoid a warning
22902         * lib/posixtm.c (posixtime): Don't initialize tm0.
22903         It's no longer needed to placate gcc4's -Wuninitialized,
22904         and the attempt to placate would elicit a new warning.
22905
22906         unicodeio.c: mark unused parameters
22907         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22908         (fallback_failure_callback): Likewise.
22909
22910 2008-12-07  Bruno Haible  <bruno@clisp.org>
22911
22912         * gnulib-tool (func_create_testdir): When building the tests
22913         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22914         Reported by Simon Josefsson.
22915
22916 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22917
22918         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22919
22920 2008-12-06  Bruno Haible  <bruno@clisp.org>
22921
22922         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22923         Suggested by Eric Blake.
22924
22925 2008-12-06  Bruno Haible  <bruno@clisp.org>
22926
22927         Fix a c-stack test failure on MacOS X.
22928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22929         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22930         handler for SIGBUS as well.
22931         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22932         install a signal handler for SIGBUS as well.
22933         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22934
22935 2008-12-06  Bruno Haible  <bruno@clisp.org>
22936
22937         Advocacy documentation.
22938         * doc/gnulib-intro.texi (Benefits): New section.
22939         * doc/gnulib.texi: Update.
22940
22941 2008-12-06  Bruno Haible  <bruno@clisp.org>
22942
22943         Document the 'manywarnings' module.
22944         * doc/manywarnings.texi: New file.
22945         * doc/gnulib.texi: Include it.
22946
22947 2008-12-05  Eric Blake  <ebb9@byu.net>
22948
22949         tests: silence some gcc warnings
22950         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22951         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22952         type mismatches.
22953
22954 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22955             Bruno Haible  <bruno@clisp.org>
22956
22957         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22958
22959 2008-11-29  Jim Meyering  <meyering@redhat.com>
22960
22961         unicodeio.c: mark unused parameters
22962         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22963         (fallback_failure_callback): Likewise.
22964
22965         fts: fix a thinko
22966         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22967         (set_stat_type): Return S_IF*-valued "type" directly.
22968         Prompted by James Youngman's spotting a related bug.
22969         Confirmed by further testing through find.
22970
22971         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22972         * lib/fts.c (D_TYPE): Define.
22973         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22974         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22975         (s_ifmt_shift_bits): New function.
22976         (set_stat_type): New function.
22977         (fts_build): When not calling fts_stat, call set_stat_type
22978         to propagate dirent.d_type info to fts_read caller.
22979         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22980         fts_statp->st_mode type information may be valid.
22981
22982 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22983
22984         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22985         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22986         <sds@gnu.org>.
22987
22988 2008-11-20  Bruno Haible  <bruno@clisp.org>
22989
22990         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22991         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22992         INCLUDE_NEXT.
22993         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22994         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22995         * modules/math (Makefile.am): Substitute
22996         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22997         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22998
22999 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23000             Bruno Haible  <bruno@clisp.org>
23001
23002         * lib/stdint.in.h: Define all type macros so that their expansion is
23003         a single typedef'ed token. Fixes a compilation failure in Boost which
23004         does "using ::int8_t;".
23005
23006 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23007
23008         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23009         gl_MANYWARN_ALL_GCC.
23010         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23011         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23012         * modules/manywarnings: New file.
23013         * MODULES.html.sh: Mention manywarnings module.
23014
23015 2008-11-18  Bruno Haible  <bruno@clisp.org>
23016
23017         * doc/gnulib-tool.texi (Unit tests): New section.
23018
23019 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23020
23021         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23022         paths like 'lib/po/foo.po'.
23023
23024 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23025
23026         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23027         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23028
23029 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23030
23031         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23032         parameter works.
23033
23034 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23035
23036         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23037
23038 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23039
23040         * modules/parse-duration-tests: New file.
23041         * tests/test-parse-duration.sh: New file.
23042         * tests/test-parse-duration.c: New file.
23043
23044         New module 'parse-duration'.
23045         * lib/parse-duration.h: New file.
23046         * lib/parse-duration.c: New file.
23047         * modules/parse-duration: New file.
23048
23049 2008-11-17  Bruno Haible  <bruno@clisp.org>
23050
23051         * tests/test-select-out.sh: Comment out the first pipe test.
23052         Reported by Simon Josefsson.
23053
23054 2008-11-17  Bruno Haible  <bruno@clisp.org>
23055
23056         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23057         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23058         gl_HOSTENT.
23059
23060 2008-11-17  Bruno Haible  <bruno@clisp.org>
23061
23062         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23063         -lnetwork and -lnet. Needed for Haiku and BeOS.
23064
23065 2008-11-16  Bruno Haible  <bruno@clisp.org>
23066
23067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23068
23069 2008-11-16  Bruno Haible  <bruno@clisp.org>
23070
23071         Avoid test failure on Haiku.
23072         * tests/test-fsync.c: Include <errno.h>.
23073         (main): Don't require that fsync (0) fails.
23074
23075 2008-11-15  Bruno Haible  <bruno@clisp.org>
23076
23077         New module 'hostent'.
23078         * modules/hostent: New file.
23079         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23080
23081 2008-11-15  Bruno Haible  <bruno@clisp.org>
23082
23083         New module 'servent'.
23084         * modules/servent: New file.
23085         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23086
23087 2008-11-15  Bruno Haible  <bruno@clisp.org>
23088
23089         Avoid generating same test program with two different rules.
23090         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23091         test-frexp to test-frexp-nolibm.
23092         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23093         test-frexpl to test-frexpl-nolibm.
23094
23095 2008-11-15  Bruno Haible  <bruno@clisp.org>
23096
23097         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23098         $(FREXPL_LIBM).
23099
23100 2008-11-15  Bruno Haible  <bruno@clisp.org>
23101
23102         * lib/netdb.in.h: Activate the definitions also when the system's
23103         <netdb.h> has 'struct addrinfo'.
23104         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23105         EAI_OVERFLOW or AI_NUMERICSERV.
23106         * doc/posix-headers/netdb.texi: Document the problem.
23107
23108 2008-11-15  Bruno Haible  <bruno@clisp.org>
23109
23110         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23111
23112         Make the 'sched' module work on platforms where <sched.h> exists but
23113         is incomplete (such as Haiku).
23114         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23115         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23116         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23117         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23118         HAVE_STRUCT_SCHED_PARAM.
23119         * modules/sched (Depends-on): Add include_next.
23120         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23121         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23122         * doc/posix-headers/sched.texi: Document the issue.
23123
23124 2008-11-13  Jim Meyering  <meyering@redhat.com>
23125
23126         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23127         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23128         test would fail due to the difference in the Report bugs to ...
23129         line.  The expected address is empty, "<>", while the actual
23130         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23131
23132 2008-11-12  Bruno Haible  <bruno@clisp.org>
23133
23134         lstat: don't compile lstat.c on systems lacking lstat
23135         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23136         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23137         Reported by Daniel P. Berrange via Jim Meyering.
23138
23139 2008-11-12  Jim Meyering  <meyering@redhat.com>
23140
23141         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23142
23143 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23144
23145         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23146         instead.
23147
23148 2008-11-12  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/unicodeio.c: Include unistr.h.
23151         (utf8_wctomb): Remove function.
23152         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23153
23154 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23155
23156         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23157         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23158         <bruno@clisp.org>.
23159         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23160
23161 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23162
23163         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23164         * doc/gnulib.texi: Add section for warnings.
23165
23166 2008-11-11  Bruno Haible  <bruno@clisp.org>
23167
23168         * lib/sockets.h: Add a comment.
23169
23170 2008-11-11  Karl Berry  <karl@gnu.org>
23171
23172         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23173
23174 2008-11-11  Eric Blake  <ebb9@byu.net>
23175
23176         fdl.texi: avoid git symlinks
23177         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23178
23179 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23180
23181         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23182
23183 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23184
23185         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23186         (gl_WARN_ADD): Substitute $2 if literal.
23187
23188 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23189
23190         * m4/warning.m4: Remove.
23191
23192 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23193
23194         * m4/warnings.m4: Almost complete rewrite. :-)
23195
23196 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23197
23198         * modules/warnings: New module.
23199         * m4/warnings.m4: New file.
23200         * MODULES.html.sh: Mention warnings module.
23201         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23202         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23203
23204 2008-11-10  Eric Blake  <ebb9@byu.net>
23205
23206         fdl.texi: make a symlink to the latest version
23207         * doc/standards.texi: Revert today's earlier change.
23208         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23209         * doc/fdl.texi: ...and replace this with a symlink to the newer
23210         fdl-1.3.texi.
23211
23212 2008-11-10  Bruno Haible  <bruno@clisp.org>
23213
23214         * tests/test-select-fd.c (main): Accept the result file name as fourth
23215         argument.
23216         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23217         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23218
23219 2008-11-10  Bruno Haible  <bruno@clisp.org>
23220
23221         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23222         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23223         as autoconf-substituted macros.
23224         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23226         gl_NETDB_H_DEFAULTS. Set these variables.
23227         * modules/netdb (Makefile.am): Substitute these variables.
23228
23229 2008-11-10  Eric Blake  <ebb9@byu.net>
23230
23231         standards.texi: include correct file for FDL 1.3
23232         * doc/standards.texi (GNU Free Documentation License): Change
23233         include file to pull in FDL 1.3, not 1.2.
23234
23235         fdl.texi: revert accidental change to license
23236         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23237
23238 2008-11-10  Bruno Haible  <bruno@clisp.org>
23239
23240         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23241         cross-compiling guesses also when the native compile gives no result.
23242
23243 2008-11-10  Bruno Haible  <bruno@clisp.org>
23244
23245         * lib/spawni.c (__spawni): Force variable into the stack.
23246
23247 2008-11-10  Bruno Haible  <bruno@clisp.org>
23248
23249         Add support for Haiku.
23250         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23251         glibc and BeOS, but also on Haiku.
23252         * lib/fpurge.c (fpurge): Likewise.
23253         * lib/freadable.c (freadable): Likewise.
23254         * lib/freadahead.c (freadahead): Likewise.
23255         * lib/freading.c (freading): Likewise.
23256         * lib/freadptr.c (freadptr): Likewise.
23257         * lib/freadseek.c (freadptrinc): Likewise.
23258         * lib/fseeko.c (rpl_fseeko): Likewise.
23259         * lib/fseterr.c (fseterr): Likewise.
23260         * lib/fwritable.c (fwritable): Likewise.
23261         * lib/fwriting.c (fwriting): Likewise.
23262         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23263
23264 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23265
23266         * lib/config.charset: Treat Haiku like BeOS.
23267
23268 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23269
23270         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23271         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23272
23273 2008-11-08  Bruno Haible  <bruno@clisp.org>
23274
23275         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23276         AC_CACHE_CHECK.
23277
23278 2008-11-08  Bruno Haible  <bruno@clisp.org>
23279
23280         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23281
23282 2008-11-08  Bruno Haible  <bruno@clisp.org>
23283
23284         * tests/test-select-fd.c: New file.
23285         * tests/test-select-in.sh: New file.
23286         * tests/test-select-out.sh: New file.
23287         * tests/test-select-stdin.c: New file.
23288         * modules/select-tests (Files): Add the new files.
23289         (Depends-on): Add gettimeofday.
23290         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23291         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23292         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23293
23294 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23295             Bruno Haible  <bruno@clisp.org>
23296
23297         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23298
23299 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23300
23301         * build-aux/pmccabe2html: Added support for C++ source files.
23302
23303 2008-11-05  Ben Pfaff  <blp@gnu.org>
23304
23305         Fix lib/close.c build on Windows.
23306         * modules/close (Files): Add lib/w32sock.h.
23307
23308 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23309
23310         Accept Bison's NEWS format.
23311         * build-aux/announce-gen (print_news_deltas): Tweak
23312         $re_prefix.
23313
23314 2008-11-04  Bruno Haible  <bruno@clisp.org>
23315
23316         * modules/random_r (Maintainer): Add glibc.
23317
23318 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23319
23320         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23321         by karl@freefriends.org (Karl Berry).
23322         * doc/alloca.texi: Likewise.
23323         * doc/c-ctype.texi: Likewise.
23324         * doc/c-strcase.texi: Likewise.
23325         * doc/c-strcaseeq.texi: Likewise.
23326         * doc/c-strcasestr.texi: Likewise.
23327         * doc/c-strstr.texi: Likewise.
23328         * doc/c-strtod.texi: Likewise.
23329         * doc/c-strtold.texi: Likewise.
23330         * doc/ctime.texi: Likewise.
23331         * doc/error.texi: Likewise.
23332         * doc/fdl.texi: Likewise.
23333         * doc/gcd.texi: Likewise.
23334         * doc/getdate.texi: Likewise.
23335         * doc/gnulib-intro.texi: Likewise.
23336         * doc/gnulib-tool.texi: Likewise.
23337         * doc/gnulib.texi: Likewise.
23338         * doc/inet_ntoa.texi: Likewise.
23339         * doc/maintain.texi: Likewise.
23340         * doc/make-stds.texi: Likewise.
23341         * doc/quote.texi: Likewise.
23342         * doc/regexprops-generic.texi: Likewise.
23343         * doc/standards.texi: Likewise.
23344         * doc/verify.texi: Likewise.
23345         * doc/visibility.texi: Likewise.
23346         * doc/gnulib.texi (GNU Free Documentation License): Include
23347         fdl-1.3.texi instead of fdl.texi.
23348
23349 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23350
23351         * doc/fdl-1.3.texi: New file, from
23352         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23353         * modules/fdl-1.3: Add.
23354         * MODULES.html.sh: Add fdl-1.3.
23355
23356 2008-11-03  Bruno Haible  <bruno@clisp.org>
23357
23358         Make determination of absolute name of header file work with AIX xlc.
23359         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23360         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23361         preprocessing.
23362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23363         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23364
23365 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23366
23367         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23368         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23369         <ludo@gnu.org>.
23370
23371 2008-11-02  Bruno Haible  <bruno@clisp.org>
23372
23373         Mark 'strpbrk' obsolete.
23374         * modules/strpbrk (Status, Notice): New sections.
23375         * modules/strtok_r (Depends-on): Add strpbrk.
23376
23377 2008-11-02  Bruno Haible  <bruno@clisp.org>
23378
23379         Mark 'strdup' obsolete.
23380         * modules/strdup (Status, Notice): New sections.
23381         * modules/findprog (Depends-on): Add strdup.
23382         * modules/getaddrinfo (Depends-on): Likewise.
23383         * modules/localename (Depends-on): Likewise.
23384         * modules/relocatable-lib (Depends-on): Likewise.
23385         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23386         * modules/relocatable-prog (Depends-on): Likewise.
23387         * modules/trim (Depends-on): Likewise.
23388         * modules/unictype/gen-ctype (Depends-on): Likewise.
23389         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23390
23391 2008-11-02  Bruno Haible  <bruno@clisp.org>
23392
23393         Mark 'strcspn' obsolete.
23394         * modules/strcspn (Status, Notice): New sections.
23395
23396 2008-11-02  Bruno Haible  <bruno@clisp.org>
23397
23398         Mark 'rmdir' obsolete.
23399         * modules/rmdir (Status, Notice): New sections.
23400         * modules/clean-temp (Depends-on): Add rmdir.
23401         * modules/openat (Depends-on): Likewise.
23402
23403 2008-11-02  Bruno Haible  <bruno@clisp.org>
23404
23405         Mark 'raise' obsolete.
23406         * modules/raise (Status, Notice): New sections.
23407         (Include): Specify <signal.h>.
23408         * modules/stdio (Depends-on): Add raise.
23409         * modules/write (Depends-on): Likewise.
23410
23411 2008-11-02  Bruno Haible  <bruno@clisp.org>
23412
23413         Mark 'memset' obsolete.
23414         * modules/memset (Status, Notice): New sections.
23415
23416 2008-11-02  Bruno Haible  <bruno@clisp.org>
23417
23418         Mark 'memmove' obsolete.
23419         * modules/memmove (Status, Notice): New sections.
23420         * modules/argp (Depends-on): Add memmove.
23421         * modules/argz (Depends-on): Likewise.
23422         * modules/canonicalize (Depends-on): Likewise.
23423         * modules/canonicalize-lgpl (Depends-on): Likewise.
23424         * modules/fts (Depends-on): Likewise.
23425         * modules/getcwd (Depends-on): Likewise.
23426         * modules/human (Depends-on): Likewise.
23427         * modules/regex (Depends-on): Likewise.
23428         * modules/striconveh (Depends-on): Likewise.
23429         * modules/trim (Depends-on): Likewise.
23430         * modules/unistr/u8-move (Depends-on): Likewise.
23431         * modules/unistr/u16-move (Depends-on): Likewise.
23432         * modules/unistr/u32-move (Depends-on): Likewise.
23433
23434 2008-11-02  Bruno Haible  <bruno@clisp.org>
23435
23436         Mark 'memcpy' obsolete.
23437         * modules/memcpy (Status, Notice): New sections.
23438
23439 2008-11-02  Bruno Haible  <bruno@clisp.org>
23440
23441         Mark 'memcmp' obsolete.
23442         * modules/memcmp (Status, Notice): New sections.
23443         * modules/argmatch (Depends-on): Add memchr.
23444         * modules/backupfile (Depends-on): Likewise.
23445         * modules/c-strcasestr (Depends-on): Likewise.
23446         * modules/crypto/des (Depends-on): Likewise.
23447         * modules/csharpcomp (Depends-on): Likewise.
23448         * modules/fnmatch (Depends-on): Likewise.
23449         * modules/git-merge-changelog (Depends-on): Likewise.
23450         * modules/isnand (Depends-on): Likewise.
23451         * modules/isnand-nolibm (Depends-on): Likewise.
23452         * modules/isnanf (Depends-on): Likewise.
23453         * modules/isnanf-nolibm (Depends-on): Likewise.
23454         * modules/isnanl (Depends-on): Likewise.
23455         * modules/isnanl-nolibm (Depends-on): Likewise.
23456         * modules/mbchar (Depends-on): Likewise.
23457         * modules/memcoll (Depends-on): Likewise.
23458         * modules/quotearg (Depends-on): Likewise.
23459         * modules/regex (Depends-on): Likewise.
23460         * modules/relocatable-prog (Depends-on): Likewise.
23461         * modules/same (Depends-on): Likewise.
23462         * modules/signbit (Depends-on): Likewise.
23463         * modules/strcasestr-simple (Depends-on): Likewise.
23464         * modules/unictype/gen-ctype (Depends-on): Likewise.
23465         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23466         * modules/uniname/uniname (Depends-on): Likewise.
23467         * modules/unistr/u8-cmp (Depends-on): Likewise.
23468
23469 2008-11-02  Bruno Haible  <bruno@clisp.org>
23470
23471         Mark 'memchr' obsolete.
23472         * modules/memchr (Status, Notice): New sections.
23473         * modules/argp (Depends-on): Add memchr.
23474         * modules/base64 (Depends-on): Likewise.
23475         * modules/c-strcasestr (Depends-on): Likewise.
23476         * modules/chdir-long (Depends-on): Likewise.
23477         * modules/fnmatch (Depends-on): Likewise.
23478         * modules/getsubopt (Depends-on): Likewise.
23479         * modules/git-merge-changelog (Depends-on): Likewise.
23480         * modules/glob (Depends-on): Likewise.
23481         * modules/strcasestr-simple (Depends-on): Likewise.
23482         * modules/strnlen (Depends-on): Likewise.
23483
23484 2008-11-02  Bruno Haible  <bruno@clisp.org>
23485
23486         Mark 'atexit' obsolete.
23487         * modules/atexit (Status, Notice): New sections.
23488         * modules/chdir-long (Depends-on): Add atexit.
23489         * modules/wait-process (Depends-on): Likewise.
23490
23491 2008-11-02  Bruno Haible  <bruno@clisp.org>
23492
23493         * gnulib-tool: New option --with-obsolete.
23494         (func_usage): Document it.
23495         (func_modules_transitive_closure): Drop obsolete dependencies if
23496         incobsolete is not true.
23497         (func_import): Read and save the incobsolete variable to the cache.
23498
23499 2008-11-02  Bruno Haible  <bruno@clisp.org>
23500
23501         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23502         * gnulib-tool: New option --extract-status.
23503         (func_usage): Document it.
23504         (sed_extract_prog): Recognize it.
23505         (func_get_status): New function.
23506
23507 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23508
23509         * modules/sockets (License): Change from LGPL to LGPLv2+.
23510
23511 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23512
23513         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23514
23515 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23516
23517         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23518         Mention times and sys_times.
23519         * modules/sys_times, modules/sys_times-tests: New modules.
23520         * modules/times, modules/times-tests: Likewise
23521         * m4/sys_times_h.m4: New file.
23522         * lib/sys_times.in.h: Likewise
23523         * lib/times.c: Likewise.
23524         * tests/test-sys_times.c: Likewise.
23525         * tests/test-times.c: Likewise.
23526         * doc/posix-headers/sys_times.texi: Update.
23527         * doc/posix-functions/times.texi: Update.
23528
23529 2008-10-28  Jim Meyering  <meyering@redhat.com>
23530
23531         * modules/tempname (Depends-on): Add lstat.
23532
23533         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23534
23535 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23536
23537         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23538         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23539         using idiom used elsewhere in gnulib.
23540
23541 2008-10-27  Jim Meyering  <meyering@redhat.com>
23542
23543         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23544
23545 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23546
23547         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23548         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23549         programs.
23550         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23551
23552 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23553
23554         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23555
23556 2008-10-27  Bruno Haible  <bruno@clisp.org>
23557
23558         * tests/test-lstat.c: Include <stdio.h>.
23559
23560 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23561
23562         * modules/lstat-tests: New module.
23563         * tests/test-lstat.c: New file.
23564
23565 2008-10-26  Jim Meyering  <meyering@redhat.com>
23566
23567         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23568
23569 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23570             Bruno Haible  <bruno@clisp.org>
23571
23572         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23573         * modules/configmake (Include): Add a note that the include must come
23574         after all system headers.
23575         * lib/javaversion.c: Include configmake.h after all other includes.
23576
23577 2008-10-26  Bruno Haible  <bruno@clisp.org>
23578
23579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23580         HAVE_STRUCT_RANDOM_DATA to 1.
23581         (gl_STDLIB_H): Simplify.
23582
23583 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23584
23585         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23586         substitute HAVE_STRUCT_RANDOM_DATA.
23587         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23588         random_data.
23589         * modules/stdlib (Makefile.am): Substitute
23590         HAVE_STRUCT_RANDOM_DATA.
23591
23592 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23593
23594         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23595         * doc/gnulib-intro.texi (Copyright): Likewise.
23596
23597 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23598
23599         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23600         findings.
23601
23602 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23603             Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/unistd.in.h: Include <winsock2.h>.
23606         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23607         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23608         Provide dummy declarations.
23609         (gethostname): Override.
23610         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23611         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23612         gl_PREREQ_SYS_H_WINSOCK2.
23613         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23614         * doc/posix-functions/gethostname.texi: More details.
23615
23616 2008-10-25  Bruno Haible  <bruno@clisp.org>
23617
23618         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23619         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23620         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23621
23622         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23623         here ...
23624         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23625         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23626         gl_UNISTD_H_DEFAULTS.
23627
23628 2008-10-25  Eric Blake  <ebb9@byu.net>
23629
23630         signbit: avoid spurious compiler failure
23631         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23632         declarations inside function.
23633
23634 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23635             Bruno Haible  <bruno@clisp.org>
23636
23637         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23638         * modules/random_r (Depends-on): Add stdint.
23639
23640 2008-10-24  Bruno Haible  <bruno@clisp.org>
23641
23642         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23643         Eggert.
23644         * modules/strerror (License): Likewise.
23645
23646 2008-10-24  Jim Meyering  <meyering@redhat.com>
23647
23648         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23649         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23650
23651 2008-10-24  Eric Blake  <ebb9@byu.net>
23652
23653         getgroups: fix compilation when getgroups is available
23654         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23655         but with <config.h> override of getgroups disabled.
23656
23657 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23658
23659         * doc/gnulib.texi (Header files): Add note about C++ problems.
23660         Explained by Bruno Haible <bruno@clisp.org>.
23661
23662 2008-10-23  Bruno Haible  <bruno@clisp.org>
23663
23664         Define a dummy SA_NODEFER macro on Interix.
23665         * lib/signal.in.h (SA_NODEFER): Define fallback.
23666         Reported by Aleksey Cheusov <cheusov@tut.by> via
23667         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23668
23669 2008-10-23  Bruno Haible  <bruno@clisp.org>
23670
23671         * modules/freadahead (License): Change to LGPLv2+.
23672         Suggested by Simon Josefsson.
23673
23674 2008-10-23  Jim Meyering  <meyering@redhat.com>
23675
23676         random_r: new module
23677         * modules/random_r: New file.
23678         * m4/random_r.m4: New file.
23679         * lib/random_r.c: New file, from glibc.
23680         * modules/random_r-tests: New file.
23681         * tests/test-random_r.c: New file.
23682         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23683          Declare.
23684         (RAND_MAX): Define.
23685         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23686         * modules/stdlib: Substitute them, too.
23687         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23688         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23689         * doc/glibc-functions/random_r.texi: Likewise.
23690         * doc/glibc-functions/setstate_r.texi: Likewise.
23691         * doc/glibc-functions/srandom_r.texi: Likewise.
23692         * config/srclist.txt: Mention it.
23693
23694 2008-10-23  David Lutterkort  <lutter@redhat.com>
23695
23696         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23697         link requirement
23698
23699 2008-10-23  Jim Meyering  <meyering@redhat.com>
23700
23701         selinux-h: mark parameters of stub functions as intentionally unused
23702         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23703         * lib/se-context.in.h: Likewise.
23704
23705 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23706
23707         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23708
23709 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23710
23711         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23712
23713 2008-10-22  Eric Blake  <ebb9@byu.net>
23714
23715         glthread/thread: avoid compiler warning
23716         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23717         Add unreachable abort to silence compiler.
23718
23719 2008-10-22  Eric Blake  <ebb9@byu.net>
23720
23721         netdb: also supply struct addrinfo for cygwin 1.5.x
23722         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23723         older cygwin.
23724         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23725         cygwin.
23726         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23727
23728 2008-10-22  Bruno Haible  <bruno@clisp.org>
23729
23730         * users.txt: Update entry about pspp.
23731
23732 2008-10-21  Bruno Haible  <bruno@clisp.org>
23733
23734         Simplification.
23735         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23736         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23737
23738         Simplification.
23739         * lib/ioctl.c (ioctl): Don't undefine.
23740         * lib/socket.c (socket): Don't undefine.
23741
23742         Remove unused module indicator macros.
23743         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23744         GNULIB_$1 as a C macro.
23745
23746         * doc/posix-functions/close.texi: Undo last change.
23747         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23748         Windows platforms.
23749
23750 2008-10-21  Bruno Haible  <bruno@clisp.org>
23751
23752         Add gethostname() declaration to <unistd.h>.
23753         * lib/unistd.in.h (gethostname): New declaration.
23754         * lib/gethostname.c: Include <unistd.h>.
23755         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23756         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23758         and HAVE_GETHOSTNAME.
23759         * modules/gethostname (Depends-on): Add unistd.
23760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23761         (Include): Specify <unistd.h>.
23762         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23763         HAVE_GETHOSTNAME.
23764         * tests/test-gethostname.c: Include <unistd.h> first.
23765
23766 2008-10-21  Bruno Haible  <bruno@clisp.org>
23767
23768         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23769         * modules/select-tests (Depends-on): Likewise.
23770         Reported by Simon Josefsson.
23771
23772 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23773
23774         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23775         * lib/accept.c: New file, based on winsock.c.
23776         * lib/bind.c: New file, based on winsock.c.
23777         * lib/connect.c: New file, based on winsock.c.
23778         * lib/getpeername.c: New file, based on winsock.c.
23779         * lib/getsockname.c: New file, based on winsock.c.
23780         * lib/getsockopt.c: New file, based on winsock.c.
23781         * lib/ioctl.c: New file, based on winsock.c.
23782         * lib/listen.c: New file, based on winsock.c.
23783         * lib/recv.c: New file, based on winsock.c.
23784         * lib/recvfrom.c: New file, based on winsock.c.
23785         * lib/send.c: New file, based on winsock.c.
23786         * lib/sendto.c: New file, based on winsock.c.
23787         * lib/setsockopt.c: New file, based on winsock.c.
23788         * lib/shutdown.c: New file, based on winsock.c.
23789         * lib/socket.c: New file, based on winsock.c.
23790         * lib/w32sock.h: New file, based on winsock.c.
23791         * lib/winsock.c: Remove file.
23792         * modules/accept: Likewise.
23793         * modules/bind: Likewise.
23794         * modules/connect: Likewise.
23795         * modules/getpeername: Likewise.
23796         * modules/getsockname: Likewise.
23797         * modules/getsockopt: Likewise.
23798         * modules/ioctl: Likewise.
23799         * modules/listen: Likewise.
23800         * modules/recv: Likewise.
23801         * modules/recvfrom: Likewise.
23802         * modules/send: Likewise.
23803         * modules/sendto: Likewise.
23804         * modules/setsockopt: Likewise.
23805         * modules/shutdown: Likewise.
23806         * modules/socket: Use socket.c instead of winsock.c.
23807         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23808         * doc/posix-functions/accept.texi: Doc fix.
23809         * doc/posix-functions/bind.texi: Doc fix.
23810         * doc/posix-functions/close.texi: Doc fix.
23811         * doc/posix-functions/connect.texi: Doc fix.
23812         * doc/posix-functions/getpeername.texi: Doc fix.
23813         * doc/posix-functions/getsockname.texi: Doc fix.
23814         * doc/posix-functions/getsockopt.texi: Doc fix.
23815         * doc/posix-functions/ioctl.texi: Doc fix.
23816         * doc/posix-functions/listen.texi: Doc fix.
23817         * doc/posix-functions/recv.texi: Doc fix.
23818         * doc/posix-functions/recvfrom.texi: Doc fix.
23819         * doc/posix-functions/send.texi: Doc fix.
23820         * doc/posix-functions/sendto.texi: Doc fix.
23821         * doc/posix-functions/setsockopt.texi: Doc fix.
23822         * doc/posix-functions/shutdown.texi: Doc fix.
23823         * doc/posix-functions/socket.texi: Doc fix.
23824
23825 2008-10-20  Bruno Haible  <bruno@clisp.org>
23826
23827         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23828         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23829         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23830         as an alias for SIGABRT.
23831         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23832         (sigaction): Map it to SIGABRT.
23833         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23834
23835 2008-10-20  Bruno Haible  <bruno@clisp.org>
23836
23837         * lib/fts.c: Don't include lstat.h.
23838         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23839
23840         Move the lstat() declaration to <sys/stat.h>.
23841         * lib/lstat.h: Remove file.
23842         * lib/sys_stat.in.h: Add special invocation convention.
23843         (lstat): New declaration.
23844         * lib/lstat.c (orig_lstat): New function.
23845         (rpl_lstat): Use orig_lstat instead of lstat.
23846         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23847         AC_C_INLINE. Set REPLACE_LSTAT.
23848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23849         and REPLACE_LSTAT.
23850         * modules/lstat (Files): Remove lib/lstat.h.
23851         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23852         (Include): Specify <sys/stat.h> instead of lstat.h.
23853         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23854         REPLACE_LSTAT.
23855         * NEWS: Mention the change.
23856
23857 2008-10-20  Bruno Haible  <bruno@clisp.org>
23858
23859         * modules/posix_spawn-tests: New file.
23860         * tests/test-posix_spawn3.c: New file.
23861
23862 2008-10-20  Bruno Haible  <bruno@clisp.org>
23863
23864         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23865         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23866         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23867         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23868         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23869
23870 2008-10-20  Bruno Haible  <bruno@clisp.org>
23871
23872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23873         of posix_spawn on AIX 5.3.
23874
23875 2008-10-20  Bruno Haible  <bruno@clisp.org>
23876
23877         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23878
23879 2008-10-20  Bruno Haible  <bruno@clisp.org>
23880
23881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23882         of AC_LANG_PROGRAM.
23883
23884 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23885
23886         * lib/netdb.in.h: Don't define GNU specific constants until they
23887         are supported or needed.  Reported by Bruno Haible
23888         <bruno@clisp.org>.
23889
23890 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23891
23892         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23893
23894 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23895
23896         * lib/getaddrinfo.h: Remove file.
23897         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23898         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23899         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23900         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23901         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23902         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23903         * tests/test-getaddrinfo.c: Likewise.
23904         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23905         * NEWS: Mention change.
23906
23907 2008-10-19  Bruno Haible  <bruno@clisp.org>
23908
23909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23910
23911 2008-10-19  Bruno Haible  <bruno@clisp.org>
23912
23913         * lib/wait-process.c: Include simply <sys/wait.h>.
23914         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23915         WIFSTOPPED): Remove fallback definitions.
23916         * modules/wait-process (Depends-on): Add sys_wait.
23917
23918         New module 'sys_wait'.
23919         * modules/sys_wait: New file.
23920         * lib/sys_wait.in.h: New file, partially copied from
23921         lib/wait-process.c.
23922         * m4/sys_wait_h.m4: New file.
23923         * doc/posix-headers/sys_wait.texi: Mention the new module.
23924
23925 2008-10-19  Bruno Haible  <bruno@clisp.org>
23926
23927         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23928
23929 2008-10-19  Bruno Haible  <bruno@clisp.org>
23930
23931         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23932         * lib/wait-process.c (WAIT_T): Remove type.
23933         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23934         (wait_subprocess): Update.
23935
23936 2008-10-19  Bruno Haible  <bruno@clisp.org>
23937
23938         New module 'atoll'.
23939         * modules/atoll: New file.
23940         * lib/stdlib.in.h (atoll): New declaration.
23941         * lib/atoll.c: New file, from glibc with modifications.
23942         * m4/atoll.m4: New file.
23943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23944         HAVE_ATOLL.
23945         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23946         * doc/posix-functions/atoll.texi: Mention the new module.
23947
23948 2008-10-19  Bruno Haible  <bruno@clisp.org>
23949
23950         Add strtoull() declaration to <stdlib.h>.
23951         * lib/stdlib.in.h (strtoull): New declaration.
23952         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23953         Set HAVE_STRTOULL.
23954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23955         HAVE_STRTOULL.
23956         * modules/strtoull (Depends-on): Add stdlib.
23957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23958         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23959         HAVE_STRTOULL.
23960
23961 2008-10-19  Bruno Haible  <bruno@clisp.org>
23962
23963         Add strtoll() declaration to <stdlib.h>.
23964         * lib/stdlib.in.h (strtoll): New declaration.
23965         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23966         Set HAVE_STRTOLL.
23967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23968         HAVE_STRTOLL.
23969         * modules/strtoll (Depends-on): Add stdlib.
23970         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23971         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23972
23973 2008-10-19  Bruno Haible  <bruno@clisp.org>
23974
23975         * modules/bcopy (Depends-on): Add strings.
23976         (Include): Specify <strings.h>.
23977
23978 2008-10-19  Bruno Haible  <bruno@clisp.org>
23979
23980         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23981
23982 2008-10-19  Bruno Haible  <bruno@clisp.org>
23983
23984         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23985         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23986         mingw.
23987
23988 2008-10-19  Bruno Haible  <bruno@clisp.org>
23989
23990         * lib/atanl.c: Don't include isnanl.h.
23991         * lib/cosl.c: Likewise.
23992         * lib/ldexpl.c: Likewise.
23993         * lib/logl.c: Likewise.
23994         * lib/sinl.c: Likewise.
23995         * lib/sqrtl.c: Likewise.
23996         * lib/tanl.c: Likewise.
23997
23998         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23999         * lib/isnanf.h: Remove file.
24000         * lib/isnand.h: Remove file.
24001         * lib/isnanl.h: Remove file.
24002         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24003         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24004         macros.
24005         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24006         HAVE_ISNANF, don't define it as a C macro.
24007         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24008         HAVE_ISNAND, don't define it as a C macro.
24009         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24010         HAVE_ISNANL, don't define it as a C macro.
24011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24012         HAVE_ISNAN[FDL].
24013         * modules/isnanf (Files): Remove lib/isnanf.h.
24014         (Depends-on): Add math.
24015         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24016         (Include): Specify <math.h> instead of isnanf.h.
24017         * modules/isnand (Files): Remove lib/isnand.h.
24018         (Depends-on): Add math.
24019         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24020         (Include): Specify <math.h> instead of isnand.h.
24021         * modules/isnanl (Files): Remove lib/isnanl.h.
24022         (Depends-on): Add math.
24023         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24024         (Include): Specify <math.h> instead of isnanl.h.
24025         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24026         HAVE_ISNAN[FDL].
24027         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24028         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24029         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24030         * NEWS: Mention the change.
24031
24032 2008-10-18  Bruno Haible  <bruno@clisp.org>
24033
24034         Add getusershell(), setusershell(), endusershell() declarations to
24035         <unistd.h>.
24036         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24037         declarations.
24038         * lib/getusershell.c: Include unistd.h.
24039         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24040         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24041         HAVE_GETUSERSHELL.
24042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24043         and HAVE_GETUSERSHELL.
24044         * modules/getusershell (Depends-on): Add unistd, extensions.
24045         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24046         (Include): Specify <unistd.h>.
24047         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24048         HAVE_GETUSERSHELL.
24049
24050 2008-10-18  Bruno Haible  <bruno@clisp.org>
24051
24052         Add a getloadavg() declaration to <stdlib.h>.
24053         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24054         getloadavg declaration.
24055         (getloadavg): New declaration.
24056         * lib/getloadavg.c: Include <stdlib.h> first.
24057         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24058         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24059         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24061         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24062         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24064         (Include): Specify <stdlib.h>.
24065         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24066         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24067
24068 2008-10-18  Bruno Haible  <bruno@clisp.org>
24069
24070         * lib/dirchownmod.c: Don't include lchmod.h.
24071
24072         Move the lchmod() declaration to <sys/stat.h>.
24073         * lib/lchmod.h: Remove file.
24074         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24075         (lchmod): New declaration, moved here from lib/lchown.h.
24076         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24077         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24079         and HAVE_LCHMOD.
24080         * modules/lchmod (Files): Remove lib/lchmod.h.
24081         (Depends-on): Add sys_stat, extensions.
24082         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24083         (Include): Specify <sys/stat.h> instead of lchmod.h.
24084         * modules/sys_stat (Depends-on): Add link-warning.
24085         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24086         definition of GL_LINK_WARNING.
24087         * NEWS: Mention the change.
24088
24089 2008-10-18  Bruno Haible  <bruno@clisp.org>
24090
24091         * lib/fchdir.c: Don't include dirfd.h.
24092         * lib/fts.c: Likewise.
24093         * lib/getcwd.c: Likewise.
24094         * lib/glob.c: Likewise.
24095
24096         Move the dirfd() declaration to <dirent.h>.
24097         * lib/dirfd.h: Remove file.
24098         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24099         (dirfd): New declaration.
24100         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24102         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24103         HAVE_DECL_DIRFD.
24104         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24105         HAVE_DECL_DIRFD.
24106         * modules/dirfd (Files): Remove lib/dirfd.h.
24107         (Depends-on): Add dirent, extensions.
24108         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24109         (Include): Specify <dirent.h> instead of dirfd.h.
24110         * modules/dirent (Depends-on): Add link-warning.
24111         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24112         definition of GL_LINK_WARNING.
24113         * NEWS: Mention the change.
24114
24115 2008-10-18  Bruno Haible  <bruno@clisp.org>
24116
24117         Move the euidaccess() declaration to <unistd.h>.
24118         * lib/euidaccess.h: Remove file.
24119         * lib/unistd.in.h (euidaccess): New declaration.
24120         * lib/euidaccess.c: Don't include euidaccess.h.
24121         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24122         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24124         and HAVE_EUIDACCESS.
24125         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24126         (Depends-on): Add unistd.
24127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24128         (Include): Specify <unistd.h> instead of euidaccess.h.
24129         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24130         HAVE_EUIDACCESS.
24131         * NEWS: Mention the change.
24132
24133 2008-10-18  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24136
24137         Move the getdomainname() declaration to <unistd.h>.
24138         * lib/getdomainname.h: Remove file.
24139         * lib/unistd.in.h (getdomainname): New declaration.
24140         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24141         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24142         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24143         HAVE_GETDOMAINNAME.
24144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24145         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24146         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24147         (Depends-on): Add unistd, extensions.
24148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24149         (Includes): Specify <unistd.h> instead of getdomainname.h.
24150         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24151         HAVE_GETDOMAINNAME.
24152         * NEWS: Mention the change.
24153
24154 2008-10-18  Bruno Haible  <bruno@clisp.org>
24155
24156         * modules/dirent: New file.
24157         * m4/dirent_h.m4: New file.
24158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24159         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24160         * modules/fchdir (Files): Remove lib/dirent.in.h.
24161         (Depends-on): Add dirent.
24162         (Makefile.am): Move rules to modules/dirent.
24163         * doc/posix-headers/dirent.texi: Mention the new module.
24164
24165 2008-10-18  Bruno Haible  <bruno@clisp.org>
24166
24167         Avoid -Wunused-parameter warnings in public gnulib header files.
24168         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24169         macro.
24170         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24171
24172 2008-10-18  Bruno Haible  <bruno@clisp.org>
24173
24174         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24175         * doc/glibc-functions/error.texi: Mention the module 'error'.
24176         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24177         * doc/glibc-functions/getdomainname.texi: Mention the module
24178         'getdomainname'.
24179         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24180         * doc/glibc-functions/getpagesize.texi: Mention the module
24181         'getpagesize'.
24182         * doc/glibc-functions/getusershell.texi: Mention the module
24183         'getusershell'.
24184         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24185         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24186         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24187         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24188         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24189         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24190         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24191         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24192         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24193         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24194         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24195         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24196         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24197         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24198
24199 2008-10-17  Bruno Haible  <bruno@clisp.org>
24200
24201         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24202         HP-UX and IRIX, use -0.0L.
24203         * tests/test-ceill.c (minus_zero): Likewise.
24204         * tests/test-floorl.c (minus_zero): Likewise.
24205         * tests/test-frexpl.c (minus_zero): Likewise.
24206         * tests/test-isnan.c (minus_zerol): Likewise.
24207         * tests/test-isnanl.h (minus_zero): Likewise.
24208         * tests/test-ldexpl.c (minus_zero): Likewise.
24209         * tests/test-roundl.c (minus_zero): Likewise.
24210         * tests/test-signbit.c (minus_zerol): Likewise.
24211         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24212         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24213         * tests/test-truncl.c (minus_zero): Likewise.
24214         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24215         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24216         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24217         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24218
24219 2008-10-17  Bruno Haible  <bruno@clisp.org>
24220
24221         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24222         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24223         that it gets activated only for gcc >= 3.0.
24224         * lib/dirent.in.h: Likewise.
24225         * lib/errno.in.h: Likewise.
24226         * lib/fcntl.in.h: Likewise.
24227         * lib/float.in.h: Likewise.
24228         * lib/iconv.in.h: Likewise.
24229         * lib/inttypes.in.h: Likewise.
24230         * lib/locale.in.h: Likewise.
24231         * lib/math.in.h: Likewise.
24232         * lib/netdb.in.h: Likewise.
24233         * lib/netinet_in.in.h: Likewise.
24234         * lib/search.in.h: Likewise.
24235         * lib/signal.in.h: Likewise.
24236         * lib/spawn.in.h: Likewise.
24237         * lib/stdarg.in.h: Likewise.
24238         * lib/stdint.in.h: Likewise.
24239         * lib/stdio.in.h: Likewise.
24240         * lib/stdlib.in.h: Likewise.
24241         * lib/string.in.h: Likewise.
24242         * lib/strings.in.h: Likewise.
24243         * lib/sys_file.in.h: Likewise.
24244         * lib/sys_ioctl.in.h: Likewise.
24245         * lib/sys_select.in.h: Likewise.
24246         * lib/sys_socket.in.h: Likewise.
24247         * lib/sys_stat.in.h: Likewise.
24248         * lib/sys_time.in.h: Likewise.
24249         * lib/sysexits.in.h: Likewise.
24250         * lib/time.in.h: Likewise.
24251         * lib/unistd.in.h: Likewise.
24252         * lib/wchar.in.h: Likewise.
24253         * lib/wctype.in.h: Likewise.
24254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24255
24256 2008-10-17  Jim Meyering  <meyering@redhat.com>
24257
24258         ignore-value: don't depend on inline module
24259         * modules/ignore-value (Depends-on): Remove 'inline'.
24260         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24261         Suggestion from Bruno Haible.
24262
24263 2008-10-17  Bruno Haible  <bruno@clisp.org>
24264
24265         New implementation of condition variables for Win32.
24266         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24267         (gl_linked_waitqueue_t): New type.
24268         (gl_cond_t): Use it.
24269         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24270         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24271         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24272         (glthread_cond_init_func, glthread_cond_wait_func,
24273         glthread_cond_timedwait_func, glthread_cond_signal_func,
24274         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24275         Reimplemented on the basis of gl_linked_waitqueue_t.
24276         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24277         gl_waitqueue_t.
24278         (gl_rwlock_t): Update.
24279         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24280
24281 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24282
24283         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24284         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24285
24286 2008-10-17  Jim Meyering  <meyering@redhat.com>
24287
24288         ignore-value: new module
24289         * modules/ignore-value: New file.
24290         * lib/ignore-value.h: New file.
24291         * MODULES.html.sh (Compiler warning management): New section,
24292         just for this module.  More to come.
24293
24294 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24297         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24298         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24299
24300 2008-10-16  Jim Meyering  <meyering@redhat.com>
24301
24302         openat-die.c: avoid 'no previous prototype' warning
24303         * lib/openat-die.c: Include "openat.h".
24304         Reported by Reuben Thomas <rrt@sc3d.org>.
24305
24306 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24307
24308         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24309         * lib/netdb.in.h: Fix typo.
24310         Reported by Bruno Haible  <bruno@clisp.org>
24311
24312         * lib/netdb.in.h: Include sys/socket.h for platforms without
24313         netdb.h, to get structures like hostent on MinGW.
24314         * modules/netdb (Depends-on): Add sys_socket.
24315
24316 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24317
24318         * modules/netdb, modules/netdb-tests: New file.
24319         * m4/netdb_h.m4: New file.
24320         * lib/netdb.in.h: Add, currently just an empty file pending
24321         definitions.
24322         * tests/test-netdb.c: New file.
24323         * doc/posix-headers/netdb.texi: Mention that we replace it if
24324         needed.
24325         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24326         netdb.
24327
24328 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24329
24330         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24331         with code.
24332
24333 2008-10-13  Bruno Haible  <bruno@clisp.org>
24334
24335         * lib/glthread/cond.c (glthread_cond_wait_func,
24336         glthread_cond_timedwait_func): Add a comment.
24337
24338 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24339
24340         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24341         * tests/test-select.c: Likewise,
24342
24343 2008-10-13  Bruno Haible  <bruno@clisp.org>
24344
24345         * lib/glthread/cond.c (glthread_cond_wait_func,
24346         glthread_cond_timedwait_func): Fix variable name.
24347         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24348
24349 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24350
24351         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24353         struct sockaddr.sa_len.
24354         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24355
24356 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24357
24358         * build-aux/pmccabe2html: Add css and css_url parameters.
24359
24360 2008-10-12  Bruno Haible  <bruno@clisp.org>
24361
24362         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24363         calling aclx_get.
24364         Reported by Rainer Tammer <tammer@tammer.net>.
24365
24366 2008-10-12  Bruno Haible  <bruno@clisp.org>
24367
24368         Use msvcrt aware primitives for creation/termination of Win32 threads.
24369         * lib/glthread/thread.c: Include <process.h>.
24370         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24371         (wrapper_func): Update signature.
24372         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24373
24374 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24375             Bruno Haible  <bruno@clisp.org>
24376
24377         Provide a Win32 implementation of the 'cond' module.
24378         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24379         * lib/glthread/cond.c (glthread_cond_init_func,
24380         glthread_cond_wait_func, glthread_cond_timedwait_func,
24381         glthread_cond_signal_func, glthread_cond_broadcast_func,
24382         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24383         * modules/cond (Dependencies): Add gettimeofday.
24384
24385 2008-10-11  Bruno Haible  <bruno@clisp.org>
24386
24387         Make sleep work on older versions of mingw.
24388         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24389         only whether it exists.
24390         * doc/posix-functions/sleep.texi: Mention the problem with older
24391         versions of mingw.
24392
24393 2008-10-11  Bruno Haible  <bruno@clisp.org>
24394
24395         New module 'shutdown'.
24396         * modules/shutdown: New file.
24397         * lib/sys_socket.in.h (shutdown): New declaration.
24398         * lib/winsock.c (shutdown): New function.
24399         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24400         GNULIB_SHUTDOWN.
24401         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24402         * doc/posix-functions/shutdown.texi: Document the new module.
24403
24404 2008-10-11  Jim Meyering  <meyering@redhat.com>
24405
24406         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24407
24408 2008-10-11  Bruno Haible  <bruno@clisp.org>
24409
24410         New module 'fclose'.
24411         * modules/fclose: New file.
24412         * lib/stdio.in.h (fclose): New declaration.
24413         * lib/fclose.c: New file.
24414         * m4/fclose.m4: New file.
24415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24416         REPLACE_FCLOSE.
24417         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24418         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24419         REPLACE_FCLOSE.
24420         * modules/close (Depends-on): fclose.
24421         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24422
24423 2008-10-11  Bruno Haible  <bruno@clisp.org>
24424
24425         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24426         set errno and don't call _close.
24427
24428 2008-10-10  Bruno Haible  <bruno@clisp.org>
24429
24430         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24431         ACL, not afterwards. Fixes test failure on Cygwin.
24432
24433 2008-10-09  Ben Pfaff  <blp@gnu.org>
24434
24435         * build-aux/announce-gen: Fix gnulib version related part of usage
24436         message.  Die with a useful error message if no tarballs are
24437         found.
24438
24439 2008-10-10  Jim Meyering  <meyering@redhat.com>
24440
24441         bootstrap: use git's --depth=N option only if it's supported
24442         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24443         recognize the --depth option.  Reported by Pádraig Brady.
24444
24445 2008-10-09  Bruno Haible  <bruno@clisp.org>
24446
24447         New module 'ioctl'.
24448         * modules/ioctl: New file.
24449         * lib/sys_socket.in.h (ioctl): Remove declaration.
24450         * lib/winsock.c: Include <sys/ioctl.h>.
24451         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24452         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24453         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24454         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24455         * doc/posix-functions/ioctl.texi: Mention the new module.
24456
24457 2008-10-09  Bruno Haible  <bruno@clisp.org>
24458
24459         New module 'sys_ioctl'.
24460         * lib/sys_ioctl.in.h: New file.
24461         * m4/sys_ioctl_h.m4: New file.
24462         * modules/sys_ioctl: New file.
24463         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24464
24465 2008-10-09  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24468         * lib/winsock.c: Include <stdarg.h>.
24469         (rpl_ioctl): Change to second argument 'int' and then varargs.
24470
24471 2008-10-09  Bruno Haible  <bruno@clisp.org>
24472
24473         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24474         when the sys_socket module is present and the system has <winsock2.h>.
24475
24476 2008-10-09  Bruno Haible  <bruno@clisp.org>
24477
24478         * doc/posix-functions/close.texi: Mention module 'close' instead of
24479         module 'sys_socket'.
24480
24481 2008-10-09  Bruno Haible  <bruno@clisp.org>
24482
24483         * doc/glibc-headers/sys_ioctl.texi: New file.
24484         * doc/gnulib.texi: Include it.
24485
24486 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24487             Bruno Haible  <bruno@clisp.org>
24488
24489         Combine the two replacements of 'close'.
24490         * lib/sys_socket.in.h (close): Define to a reminder to include
24491         <unistd.h>.
24492         (_gl_close_fd_maybe_socket): New declaration.
24493         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24494         * lib/winsock.c (close): Remove undefinition.
24495         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24496         needed for the gnulib module 'close'.
24497         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24498         define to an error symbol or to a warning, if suitable.
24499         * lib/close.c: Include <sys/socket.h>.
24500         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24501         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24502         UNISTD_H_HAVE_WINSOCK2_H.
24503         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24505         UNISTD_H_HAVE_WINSOCK2_H.
24506         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24507         (configure.ac): Set a module indicator.
24508         (Makefile.am): Substitute GNULIB_CLOSE.
24509         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24510         * modules/poll-tests (Depends-on): Add close.
24511         * modules/select-tests (Depends-on): Likewise.
24512
24513 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24514             Bruno Haible  <bruno@clisp.org>
24515
24516         New module 'close'.
24517         * modules/close: New file.
24518         * lib/unistd.in.h (close): Move declaration out of the
24519         FCHDIR_REPLACEMENT scope.
24520         (_gl_unregister_fd): New declaration.
24521         * lib/close.c: New file.
24522         * lib/fchdir.c (rpl_close): Remove function.
24523         * m4/close.m4: New file.
24524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24525         close.
24526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24527         REPLACE_CLOSE.
24528         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24529         REPLACE_CLOSE.
24530         * modules/fchdir (Depends-on): Add close.
24531
24532 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24533             Bruno Haible  <bruno@clisp.org>
24534
24535         * lib/fcntl.in.h (open): Simplify conditionals.
24536         (_gl_register_fd): New declaration.
24537         * lib/fchdir.c (rpl_open): Remove function.
24538         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24539         also.
24540         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24542         open.
24543
24544 2008-10-09  Jim Meyering  <meyering@redhat.com>
24545
24546         GNUmakefile: use the more name-space-friendly "_version"
24547         * top/GNUmakefile (_dummy): Update.
24548         (_version): Rename from "version".
24549
24550 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24551             Bruno Haible  <bruno@clisp.org>
24552
24553         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24554         rpl_close.
24555         (_gl_register_fd): New function, extracted from rpl_open.
24556         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24557         (rpl_open, rpl_opendir): Use _gl_register_fd.
24558
24559 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24560
24561         Fix organization of 'open' replacement.
24562         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24563         (gl_FUNC_OPEN): Use it.
24564         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24565
24566 2008-10-08  Bruno Haible  <bruno@clisp.org>
24567
24568         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24569
24570 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24571
24572         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24573         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24574         listen).
24575
24576 2008-10-08  Eric Blake  <ebb9@byu.net>
24577
24578         GNUmakefile: add 'make version' target
24579         * top/GNUmakefile (_curr-ver): Split version update rules...
24580         (version): ...into a target.
24581
24582 2008-10-07  Bruno Haible  <bruno@clisp.org>
24583
24584         Use a more portable replacement expression for -0.0L.
24585         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24586         instead of -0.0L. Fix m4 quotation.
24587
24588         * tests/test-signbit.c: Include <float.h>.
24589         (minus_zero): New variable.
24590         (test_signbitl): Use minus_zero instead of -zero.
24591         * modules/signbit-tests (Depends-on): Add float.
24592
24593         * tests/test-ceill.c: Include <float.h>.
24594         (zero): Remove variable.
24595         (minus_zero): New variable.
24596         (main): Use minus_zero instead of -zero.
24597         * modules/ceill-tests (Depends-on): Add float.
24598
24599         * tests/test-floorl.c: Include <float.h>.
24600         (zero): Remove variable.
24601         (minus_zero): New variable.
24602         (main): Use minus_zero instead of -zero.
24603         * modules/floorl-tests (Depends-on): Add float.
24604
24605         * tests/test-roundl.c: Include <float.h>.
24606         (zero): Remove variable.
24607         (minus_zero): New variable.
24608         (main): Use minus_zero instead of -zero.
24609         * modules/roundl-tests (Depends-on): Add float.
24610
24611         * tests/test-truncl.c: Include <float.h>.
24612         (zero): Remove variable.
24613         (minus_zero): New variable.
24614         (main): Use minus_zero instead of -zero.
24615         * modules/truncl-tests (Depends-on): Add float.
24616
24617         * tests/test-frexpl.c (zero): Remove variable.
24618         (minus_zero): New variable.
24619         (main): Use minus_zero instead of -zero.
24620         * modules/frexpl-tests (Depends-on): Add float.
24621
24622         * tests/test-isnan.c (zerol): Remove variable.
24623         (minus_zerol): New variable.
24624         (test_long_double): Use minus_zerol instead of -zerol.
24625         * modules/isnan-tests (Depends-on): Add float.
24626
24627         * tests/test-isnanl.h (zero): Remove variable.
24628         (minus_zero): New variable.
24629         (main): Use minus_zero instead of -zero.
24630         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24631         * modules/isnanl-tests (Depends-on): Add float.
24632
24633         * tests/test-ldexpl.c (zero): Remove variable.
24634         (minus_zero): New variable.
24635         (main): Use minus_zero instead of -zero.
24636         * modules/ldexpl-tests (Depends-on): Add float.
24637
24638         * tests/test-snprintf-posix.h (zerol): Remove variable.
24639         (minus_zerol): New variable.
24640         (test_function): Use minus_zerol instead of -zerol.
24641         * modules/snprintf-posix-tests (Depends-on): Add float.
24642         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24643
24644         * tests/test-sprintf-posix.h (zerol): Remove variable.
24645         (minus_zerol): New variable.
24646         (test_function): Use minus_zerol instead of -zerol.
24647         * modules/sprintf-posix-tests (Depends-on): Add float.
24648         * modules/vsprintf-posix-tests (Depends-on): Add float.
24649
24650         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24651         (minus_zerol): New variable.
24652         (test_function): Use minus_zerol instead of -zerol.
24653         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24654
24655         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24656         (minus_zerol): New variable.
24657         (test_function): Use minus_zerol instead of -zerol.
24658         * modules/vasprintf-posix-tests (Depends-on): Add float.
24659
24660 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24661
24662         * MODULES.html.sh (Support for building documentation): Mention
24663         pmccabe2html.  Sort entries.
24664
24665         Add pmccabe2html module, from gnupdf.
24666         * build-aux/pmccabe.css: New file.
24667         * build-aux/pmccabe2html: New file.
24668         * m4/pmccabe2html.m4: New file.
24669         * modules/pmccabe2html: New file.
24670
24671 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24672
24673         flock: new module
24674         * MODULES.html.sh: Add to list of modules.
24675         * lib/flock.c: flock implementation for Windows and Unix systems
24676         which have fcntl.
24677         * doc/glibc-functions/flock.texi: Update documentation.
24678         * lib/sys_file.in.h: <sys/file.h> header file.
24679         * m4/flock.m4: M4 macros.
24680         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24681         * modules/flock: flock module.
24682         * modules/flock-tests: flock tests module.
24683         * modules/sys_file: sys/file.h module.
24684         * tests/test-flock.c: test suite for flock.
24685
24686 2008-10-06  Jim Meyering  <meyering@redhat.com>
24687
24688         bootstrap: check for LT_INIT more portably still ;-)
24689         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24690         Spotted by Bruno Haible.
24691
24692 2008-10-06  Eric Blake  <ebb9@byu.net>
24693
24694         test-signbit: avoid tripping Irix cc bug on -0.0L
24695         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24696         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24697         entire testsuite consistent and avoids an Irix 6.2 bug.
24698
24699 2008-10-05  Bruno Haible  <bruno@clisp.org>
24700             Jim Meyering  <jim@meyering.net>
24701
24702         Add an option for ignoring EPIPE during close_stdout.
24703         * lib/closeout.h: Include <stdbool.h>.
24704         (close_stdout_set_ignore_EPIPE): New declaration.
24705         * lib/closeout.c: Include <stdbool.h>.
24706         (ignore_EPIPE): New variable.
24707         (close_stdout_set_ignore_EPIPE): New function.
24708         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24709         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24710         failure.
24711         * modules/closeout (Depends-on): Add stdbool.
24712
24713 2008-10-05  Bruno Haible  <bruno@clisp.org>
24714
24715         * modules/accept: New file.
24716         * modules/bind: New file.
24717         * modules/connect: New file.
24718         * modules/getpeername: New file.
24719         * modules/getsockname: New file.
24720         * modules/getsockopt: New file.
24721         * modules/listen: New file.
24722         * modules/recv: New file.
24723         * modules/recvfrom: New file.
24724         * modules/send: New file.
24725         * modules/sendto: New file.
24726         * modules/setsockopt: New file.
24727         * modules/socket: New file.
24728         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24729         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24730         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24731         the particular module is requested. Add a link warning when the
24732         particular module is not requested.
24733         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24734         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24735         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24736         the particular module is requested.
24737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24738         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24739         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24740         * modules/sys_socket (Depends-on): Add link-warning.
24741         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24742         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24743         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24744         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24745         GL_LINK_WARNING.
24746         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24747         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24748         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24749         * doc/posix-functions/getpeername.texi: Mention the new module
24750         'getpeername'.
24751         * doc/posix-functions/getsockname.texi: Mention the new module
24752         'getsockname'.
24753         * doc/posix-functions/getsockopt.texi: Mention the new module
24754         'getsockopt'.
24755         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24756         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24757         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24758         * doc/posix-functions/send.texi: Mention the new module 'send'.
24759         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24760         * doc/posix-functions/setsockopt.texi: Mention the new module
24761         'setsockopt'.
24762         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24763         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24764         listen, connect, accept.
24765         * modules/select-tests (Depends-on): Likewise.
24766
24767 2008-10-05  Bruno Haible  <bruno@clisp.org>
24768
24769         * lib/winsock.c (strerror): Remove unused #undef.
24770         (rpl_close): Remove unused local variable.
24771
24772         * modules/sys_socket (Depends-on); Add errno.
24773
24774 2008-10-05  Bruno Haible  <bruno@clisp.org>
24775
24776         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24777         (select): Add a link warning when the 'select' module is not used.
24778         * modules/sys_select (Depends-on): Add link-warning.
24779         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24780         Suggested by Paolo Bonzini.
24781
24782 2008-10-05  Jim Meyering  <meyering@redhat.com>
24783
24784         bootstrap: check for LT_INIT more portably
24785         * build-aux/bootstrap: Avoid using grep -E, since it's not
24786         portable enough.  Suggestion from Bruno Haible.
24787
24788 2008-10-05  Bruno Haible  <bruno@clisp.org>
24789
24790         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24791         as being fixed by gnulib.
24792
24793 2008-10-05  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/select-tests: New file, mostly copied from
24796         modules/sys_select-tests.
24797         * tests/test-select.c: New file, mostly copied from
24798         tests/test-sys_select.c.
24799         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24800         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24801         (Makefile.am): Remove test_sys_select_LDADD.
24802
24803         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24804         to an undefined symbol, for an error message.
24805         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24806         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24807         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24808         winsock-select.c here.
24809         * modules/sys_select (Files): Remove lib/winsock-select.c.
24810         (Depends-on): Remove alloca.
24811         (Makefile.am): Substitute GNULIB_SELECT.
24812         * modules/select: New file.
24813         * doc/posix-functions/select.texi: Update.
24814
24815 2008-10-05  Bruno Haible  <bruno@clisp.org>
24816
24817         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24818         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24819         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24820         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24821         getdtablesize.
24822         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24823         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24824
24825 2008-10-05  Bruno Haible  <bruno@clisp.org>
24826
24827         * modules/getdtablesize-tests: New file.
24828         * tests/test-getdtablesize.c: New file.
24829
24830         New module 'getdtablesize'.
24831         * lib/unistd.in.h (getdtablesize): New declaration.
24832         * lib/getdtablesize.c: New file.
24833         * m4/getdtablesize.m4: New file.
24834         * modules/getdtablesize: New file.
24835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24836         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24837         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24838         HAVE_GETDTABLESIZE.
24839         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24840
24841 2008-10-05  Bruno Haible  <bruno@clisp.org>
24842
24843         * modules/sched (Makefile.am): Fix typo.
24844         Reported by Simon Josefsson.
24845
24846 2008-10-05  Jim Meyering  <meyering@redhat.com>
24847
24848         bootstrap: check for LT_INIT, too
24849         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24850         are deprecated.  Suggestion from Ralf Wildenhues.
24851
24852 2008-10-05  Bruno Haible  <bruno@clisp.org>
24853
24854         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24855         overriding them by ours.
24856         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24857
24858 2008-10-05  Jim Meyering  <meyering@redhat.com>
24859
24860         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24861         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24862         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24863
24864 2008-10-04  Bruno Haible  <bruno@clisp.org>
24865
24866         * modules/dup2 (License): Change to LGPLv2+.
24867         * modules/sleep (License): Likewise.
24868         * modules/perror (License): Likewise.
24869         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24870         Blake.
24871         * modules/signal (License): Likewise.
24872         * modules/sigprocmask (License): Likewise.
24873         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24874         Meyering.
24875
24876 2008-10-04  Bruno Haible  <bruno@clisp.org>
24877
24878         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24879         Reported by Rainer Tammer <tammer@tammer.net>.
24880
24881 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24882             Bruno Haible  <bruno@clisp.org>
24883
24884         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24885         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24886         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24887
24888 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24889
24890         filevercmp: new module
24891         * lib/filevercmp.h: New function filevercmp comparing version strings.
24892         * lib/filevercmp.c: Implementation of filevercmp function.
24893         * modules/filevercmp: Module metadata.
24894         * tests/test-filevercmp.c: Unit test for new module.
24895         * modules/filevercmp-tests: Unit test metadata.
24896         * MODULES.html.sh: Add filevercmp module.
24897
24898 2008-10-03  Bruno Haible  <bruno@clisp.org>
24899
24900         * lib/c-ctype.h: Add comment.
24901         Reported by Jim Meyering.
24902
24903 2008-10-02  Bruno Haible  <bruno@clisp.org>
24904
24905         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24906
24907 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24908
24909         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24910         name of bootstrap.conf accordingly.
24911
24912 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24913
24914         * build-aux/bootstrap: Install git-merge-changelog configuration
24915         items into .gitconfig if needed.
24916
24917 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24918
24919         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24920         git repository, and initialize/update it accordingly.
24921
24922 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24923
24924         * modules/fsync-tests: New file.
24925         * tests/test-fsync.c: New file.
24926
24927         New module 'fsync'.
24928         * lib/fsync.c: New file.
24929         * m4/fsync.m4: New file.
24930         * modules/fsync: New file.
24931         * lib/unistd.in.h (fsync): New declaration.
24932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24933         GNULIB_FSYNC and HAVE_FSYNC.
24934         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24935         * MODULES.html.sh (posix_functions): Add fsync.
24936         * doc/posix-functions/fsync.texi: Mention the new module.
24937
24938 2008-10-02  Jim Meyering  <meyering@redhat.com>
24939
24940         fts.c: sync with similar code from coreutils' remove.c
24941         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24942         Guard also with "#if defined __linux__", since for now at least,
24943         this code is Linux-kernel-specific.
24944
24945 2008-10-02  Jim Meyering  <meyering@redhat.com>
24946
24947         fts: bug fixes
24948         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24949         Include <sys/vfs.h>, not <sys/statfs.h>.
24950
24951         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24952         Include <sys/vfs.h>, not <sys/statfs.h>.
24953
24954 2008-10-01  Bruno Haible  <bruno@clisp.org>
24955
24956         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24958         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24959         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24960         * doc/posix-functions/posix_spawnp.texi: Likewise.
24961         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24962         whether posix_spawn actually works.
24963         * m4/pipe.m4 (gl_PIPE): Likewise.
24964         * modules/execute (Files): Add m4/posix_spawn.m4.
24965         * modules/pipe (Files): Add m4/posix_spawn.m4.
24966         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24967
24968 2008-10-01  Jim Meyering  <meyering@redhat.com>
24969
24970         remove trailing spaces
24971         * NEWS: Likewise.
24972         * lib/poll.c (poll): Likewise.
24973         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24974         * lib/winsock.c (rpl_close): Likewise.
24975         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24976         * modules/yield: Likewise.
24977         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24978         * tests/test-sys_select.c (connect_to_socket): Likewise.
24979
24980         fts.c: adjust a new interface to be more generally useful
24981         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24982         (fts_build): Adjust caller.
24983
24984 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24985
24986         * modules/cond-tests: New file.
24987         * tests/test-cond.c: New file.
24988
24989 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24990             Bruno Haible  <bruno@clisp.org>
24991
24992         * modules/cond (Dependencies): Add errno, time.
24993         * lib/glthread/cond.h: Include <time.h>.
24994         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24995         across platforms.
24996
24997 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24998             Bruno Haible  <bruno@clisp.org>
24999
25000         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25001
25002 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25003             Bruno Haible  <bruno@clisp.org>
25004
25005         * modules/tls-tests (Depends-on): Add thread, yield.
25006         (configure.ac): Remove all checks.
25007         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25008         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25009         gl_thread_self): Remove definitions. Include glthread/thread.h and
25010         glthread/yield.h instead.
25011         (test_tls): Pass an additional NULL argument to gl_thread_join.
25012
25013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25014             Bruno Haible  <bruno@clisp.org>
25015
25016         * modules/lock-tests (Depends-on): Add thread, yield.
25017         (configure.ac): Remove all checks.
25018         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25019         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25020         gl_thread_self): Remove definitions. Include glthread/thread.h and
25021         glthread/yield.h instead.
25022         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25023         additional NULL argument to gl_thread_join.
25024
25025 2008-09-30  Bruno Haible  <bruno@clisp.org>
25026
25027         Fix the Win32 implementation of the 'thread' module.
25028         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25029         pointer type.
25030         (gl_thread_self): Invoke gl_thread_self_func.
25031         (gl_thread_self_func): New declaration.
25032         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25033         (do_init_self_key, init_self_key): New functions.
25034         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25035         Remove some fields.
25036         (running_threads, running_lock): Remove variables.
25037         (get_current_thread_handle): New function.
25038         (gl_thread_self_func, wrapper_func, glthread_create_func,
25039         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25040         simplified.
25041
25042 2008-09-30  Bruno Haible  <bruno@clisp.org>
25043
25044         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25045         files.
25046
25047 2008-09-30  Jim Meyering  <meyering@redhat.com>
25048
25049         fts.m4: correct the test for statfs.f_type
25050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25051         when checking for statfs.f_type.
25052
25053 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25054
25055         tests: avoid some compiler warnings
25056         * tests/test-memchr.c (main): Pass NULL indirectly.
25057         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25058
25059 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
25060
25061         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25062         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25063         exactly specified dayshifts.
25064         (dayshift): New rule.
25065         (rel): Add dayshift.
25066         (relative_time_table) [tomorrow, yesterday, today, now]:
25067         Use tDAY_SHIFT in place of tDAY_UNIT.
25068         * tests/test-getdate.c: Add tests for now-disallowed countable
25069         dayshifts, e.g., "4 yesterday ago".
25070
25071 2008-09-29  Bruno Haible  <bruno@clisp.org>
25072
25073         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25074         * tests/test-posix_spawn1.in.sh: Renamed from
25075         tests/test-posix_spawn.in.sh.
25076         * tests/test-posix_spawn2.c: New file.
25077         * tests/test-posix_spawn2.in.sh: New file.
25078         * modules/posix_spawnp-tests (Files): Update.
25079         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25080
25081 2008-09-29  Bruno Haible  <bruno@clisp.org>
25082
25083         Propagate effects of putenv/setenv/unsetenv to child processes.
25084         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25085         * lib/pipe.c (create_pipe): Likewise.
25086
25087 2008-09-29  Bruno Haible  <bruno@clisp.org>
25088
25089         Enable use of shell scripts as executables in mingw.
25090         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25091         run the program as a shell script.
25092         * lib/pipe.c (create_pipe): Likewise.
25093         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25094         resulting array.
25095
25096 2008-09-29  Eric Blake  <ebb9@byu.net>
25097
25098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25099
25100 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25101
25102         * doc/posix-functions/accept.texi: Update mingw problems.
25103         * doc/posix-functions/bind.texi: Update mingw problems.
25104         * doc/posix-functions/close.texi: Update mingw problems.
25105         * doc/posix-functions/connect.texi: Update mingw problems.
25106         * doc/posix-functions/getpeername.texi: Update mingw problems.
25107         * doc/posix-functions/getsockname.texi: Update mingw problems.
25108         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25109         * doc/posix-functions/ioctl.texi: Update mingw problems.
25110         * doc/posix-functions/listen.texi: Update mingw problems.
25111         * doc/posix-functions/recv.texi: Update mingw problems.
25112         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25113         * doc/posix-functions/select.texi: Update mingw problems.
25114         * doc/posix-functions/send.texi: Update mingw problems.
25115         * doc/posix-functions/sendto.texi: Update mingw problems.
25116         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25117         * doc/posix-functions/socket.texi: Update mingw problems.
25118
25119 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25120             Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/sys_select.in.h: Include sys/time.h.
25123         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25124         * modules/sys_select: Depend on sys_time.
25125         * tests/test-sys_select.c: Test that sys/select.h defines struct
25126         timeval fully.
25127
25128 2008-09-29  Bruno Haible  <bruno@clisp.org>
25129
25130         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25131         * lib/sys_select.in.h: Likewise.
25132
25133 2008-09-29  Bruno Haible  <bruno@clisp.org>
25134
25135         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25136
25137 2008-09-29  Bruno Haible  <bruno@clisp.org>
25138
25139         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25140         Set LIBSOCKET instead of augmenting LIBS.
25141         * modules/sockets (Link): New section.
25142         * modules/sockets-tests (test_sockets_LDADD): New variable.
25143         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25144         * modules/poll-tests (test_poll_LDADD): New variable.
25145         * NEWS: Document the change.
25146
25147 2008-09-29  Bruno Haible  <bruno@clisp.org>
25148
25149         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25150         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25151         ARPA_INET_H directly.
25152         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25153
25154 2008-09-28  Bruno Haible  <bruno@clisp.org>
25155
25156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25157         from gl_HEADER_SYS_SOCKET.
25158         (gl_HEADER_SYS_SOCKET): Invoke it.
25159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25160
25161 2008-09-28  Bruno Haible  <bruno@clisp.org>
25162
25163         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25164         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25165         Needed on OSF/1 4.0.
25166
25167 2008-09-28  Bruno Haible  <bruno@clisp.org>
25168
25169         Override open more carefully.
25170         * lib/open.c (orig_open): New function.
25171         (rpl_open): Use orig_open instead of open.
25172         * lib/fcntl.in.h: Add special invocation convention.
25173         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25174         (gl_FUNC_OPEN): Invoke it.
25175
25176         Override freopen more carefully.
25177         * lib/freopen.c (orig_freopen): New function.
25178         (rpl_freopen): Use orig_freopen instead of freopen.
25179         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25180         (gl_FUNC_FREOPEN): Invoke it.
25181
25182         Override fopen more carefully.
25183         * lib/fopen.c (orig_fopen): New function.
25184         (rpl_fopen): Use orig_fopen instead of fopen.
25185         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25186         (gl_FUNC_FOPEN): Invoke it.
25187         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25188
25189 2008-09-28  Bruno Haible  <bruno@clisp.org>
25190
25191         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25192         SIGPIPE.
25193
25194 2008-09-28  Bruno Haible  <bruno@clisp.org>
25195
25196         * tests/test-sigaction.c (handler, main): Disable the check whether
25197         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25198         glibc systems with LinuxThreads.
25199
25200 2008-09-28  Bruno Haible  <bruno@clisp.org>
25201
25202         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25203
25204         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25205         with AIX xlc.
25206         * lib/fcntl.in.h (open): Likewise.
25207         Reported by Rainer Tammer <tammer@tammer.net>.
25208
25209 2008-09-28  Bruno Haible  <bruno@clisp.org>
25210
25211         * modules/posix_spawnp-tests: New file.
25212         * tests/test-posix_spawn.c: New file.
25213         * tests/test-posix_spawn.in.sh: New file.
25214
25215         New module 'posix_spawnp'.
25216         * modules/posix_spawnp: New file.
25217         * lib/spawnp.c: New file, from GNU libc with modifications.
25218         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25219
25220         New module 'posix_spawn'.
25221         * modules/posix_spawn: New file.
25222         * lib/spawn.c: New file, from GNU libc with modifications.
25223         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25224
25225         New module 'posix_spawnattr_destroy'.
25226         * modules/posix_spawnattr_destroy: New file.
25227         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25228         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25229         module.
25230
25231         New module 'posix_spawnattr_setsigmask'.
25232         * modules/posix_spawnattr_setsigmask: New file.
25233         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25234         modifications.
25235         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25236         new module.
25237
25238         New module 'posix_spawnattr_getsigmask'.
25239         * modules/posix_spawnattr_getsigmask: New file.
25240         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25241         modifications.
25242         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25243         new module.
25244
25245         New module 'posix_spawnattr_setsigdefault'.
25246         * modules/posix_spawnattr_setsigdefault: New file.
25247         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25248         modifications.
25249         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25250         new module.
25251
25252         New module 'posix_spawnattr_getsigdefault'.
25253         * modules/posix_spawnattr_getsigdefault: New file.
25254         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25255         modifications.
25256         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25257         new module.
25258
25259         New module 'posix_spawnattr_setschedpolicy'.
25260         * modules/posix_spawnattr_setschedpolicy: New file.
25261         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25262         modifications.
25263         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25264         new module.
25265
25266         New module 'posix_spawnattr_getschedpolicy'.
25267         * modules/posix_spawnattr_getschedpolicy: New file.
25268         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25269         modifications.
25270         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25271         new module.
25272
25273         New module 'posix_spawnattr_setschedparam'.
25274         * modules/posix_spawnattr_setschedparam: New file.
25275         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25276         modifications.
25277         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25278         new module.
25279
25280         New module 'posix_spawnattr_getschedparam'.
25281         * modules/posix_spawnattr_getschedparam: New file.
25282         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25283         modifications.
25284         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25285         new module.
25286
25287         New module 'posix_spawnattr_setpgroup'.
25288         * modules/posix_spawnattr_setpgroup: New file.
25289         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25290         modifications.
25291         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25292         module.
25293
25294         New module 'posix_spawnattr_getpgroup'.
25295         * modules/posix_spawnattr_getpgroup: New file.
25296         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25297         modifications.
25298         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25299         module.
25300
25301         New module 'posix_spawnattr_setflags'.
25302         * modules/posix_spawnattr_setflags: New file.
25303         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25304         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25305         module.
25306
25307         New module 'posix_spawnattr_getflags'.
25308         * modules/posix_spawnattr_getflags: New file.
25309         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25310         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25311         module.
25312
25313         New module 'posix_spawnattr_init'.
25314         * modules/posix_spawnattr_init: New file.
25315         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25316         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25317         module.
25318
25319         New module 'posix_spawn_file_actions_destroy'.
25320         * modules/posix_spawn_file_actions_destroy: New file.
25321         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25322         modifications.
25323         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25324         the new module.
25325
25326         New module 'posix_spawn_file_actions_addopen'.
25327         * modules/posix_spawn_file_actions_addopen: New file.
25328         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25329         modifications.
25330         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25331         the new module.
25332
25333         New module 'posix_spawn_file_actions_adddup2'.
25334         * modules/posix_spawn_file_actions_adddup2: New file.
25335         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25336         modifications.
25337         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25338         the new module.
25339
25340         New module 'posix_spawn_file_actions_addclose'.
25341         * modules/posix_spawn_file_actions_addclose: New file.
25342         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25343         modifications.
25344         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25345         the new module.
25346
25347         New module 'posix_spawn_file_actions_init'.
25348         * modules/posix_spawn_file_actions_init: New file.
25349         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25350         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25351         new module.
25352
25353         New module 'posix_spawn-internal'.
25354         * modules/posix_spawn-internal: New file.
25355         * lib/spawn_int.h: New file, from GNU libc with modifications.
25356         * lib/spawni.c: New file, from GNU libc with modifications.
25357         * m4/posix_spawn.m4: New file.
25358
25359         New module 'spawn'.
25360         * modules/spawn: New file.
25361         * lib/spawn.in.h: New file, from GNU libc with modifications.
25362         * m4/spawn_h.m4: New file.
25363         * doc/posix-headers/spawn.texi: Mention the new module.
25364
25365 2008-09-28  Bruno Haible  <bruno@clisp.org>
25366
25367         * modules/sched-tests: New file.
25368         * tests/test-sched.c: New file.
25369
25370         New module 'sched'.
25371         * modules/sched: New file.
25372         * lib/sched.in.h: New file.
25373         * m4/sched_h.m4: New file.
25374         * doc/posix-headers/sched.texi: Mention the new module.
25375
25376 2008-09-27  Eric Blake  <ebb9@byu.net>
25377
25378         Fix previous patch, and tweak references to $0.
25379         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25380         (func_version, func_gnulib_dir): Don't call this program
25381         gnulib-tool.
25382         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25383         with using $0 in function.
25384         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25385         (func_fatal_error): Reuse the name the user invoked us with.
25386
25387 2008-09-27  Bruno Haible  <bruno@clisp.org>
25388
25389         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25390         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25391         (gl_ICONV_H): Not here.
25392         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25393         instead of assigning ICONV_H directly.
25394
25395         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25397         WCHAR_H directly.
25398
25399 2008-09-27  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25402         * modules/arpa_inet (Depends-on): Add link-warning.
25403         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25404         * modules/unistd (Makefile.am): Likewise.
25405
25406 2008-09-26  Bruno Haible  <bruno@clisp.org>
25407
25408         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25409         variables.
25410         (func_version): Essentially copied from gnulib-tool.
25411         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25412         func_readlink): Copied from gnulib-tool.
25413
25414 2008-09-26  Bruno Haible  <bruno@clisp.org>
25415
25416         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25417         invoking git-version-gen.
25418
25419 2008-09-26  Bruno Haible  <bruno@clisp.org>
25420
25421         * posix-modules: Update to directory names changed on 2008-01-19.
25422         Remove commas in output before splitting into words. No more need to
25423         avoid 'ftruncate' since 2007-02-19.
25424
25425 2008-09-26  Bruno Haible  <bruno@clisp.org>
25426
25427         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25428
25429 2008-09-26  Bruno Haible  <bruno@clisp.org>
25430
25431         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25432         * modules/fwriteerror (Depends-on): Add errno.
25433
25434 2008-09-26  Bruno Haible  <bruno@clisp.org>
25435
25436         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25437         * tests/test-vc-list-files-cvs.sh: Likewise.
25438
25439 2008-09-26  Bruno Haible  <bruno@clisp.org>
25440
25441         * doc/posix-headers/sys_resource.texi: Reorder items.
25442
25443 2008-09-26  Jim Meyering  <meyering@redhat.com>
25444
25445         fts: tweak inode comparison function
25446         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25447         inode numbers, as documented.
25448
25449         fts: sort dirent entries on inode number before traversing
25450         This avoids a quadratic, seek-related performance penalty when
25451         operating on a directory containing many entries (measurable at 10k;
25452         3.5 hours at 2 million entries with a cold cache) on certain types
25453         of file systems, including ext3 and ext4, but not tmpfs.
25454         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25455         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25456         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25457         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25458         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25459         (fts_build): Set the stat.st_ino member from D_INO.
25460         If it is likely to be useful, sort dirent entries on inode number.
25461
25462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25463         and the struct statfs.f_type member.
25464         * modules/fts (Depends-on): Add d-ino.
25465
25466 2008-09-26  Bruno Haible  <bruno@clisp.org>
25467
25468         * modules/sigpipe-die (Depends-on): Add sigpipe.
25469
25470         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25471         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25472         and GNULIB_STDIO_H_SIGPIPE are set.
25473         * lib/stdio-write.c: New file.
25474         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25475         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25476         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25477         REPLACE_STDIO_WRITE_FUNCS.
25478         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25479         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25480         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25481         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25482         * modules/stdio (Files): Add lib/stdio-write.c.
25483         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25484         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25485         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25486         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25487         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25488         REPLACE_FPRINTF_POSIX.
25489         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25490         REPLACE_PRINTF_POSIX.
25491         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25492         REPLACE_VFPRINTF_POSIX.
25493         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25494         REPLACE_VPRINTF_POSIX.
25495         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25496         SIGPIPE issue.
25497         * doc/posix-functions/fputc.texi: Likewise.
25498         * doc/posix-functions/fputs.texi: Likewise.
25499         * doc/posix-functions/fwrite.texi: Likewise.
25500         * doc/posix-functions/printf.texi: Likewise.
25501         * doc/posix-functions/putc.texi: Likewise.
25502         * doc/posix-functions/putchar.texi: Likewise.
25503         * doc/posix-functions/puts.texi: Likewise.
25504         * doc/posix-functions/vfprintf.texi: Likewise.
25505         * doc/posix-functions/vprintf.texi: Likewise.
25506
25507         * modules/safe-write (Depends-on): Add write.
25508
25509         * modules/sigpipe-tests: New file.
25510         * tests/test-sigpipe.c: New file.
25511         * tests/test-sigpipe.sh: New file.
25512
25513         * modules/write: New file.
25514         * lib/unistd.in.h: Include <sys/types.h>.
25515         (write): New declaration.
25516         * lib/write.c: New file.
25517         * m4/write.m4: New file.
25518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25519         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25520         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25521         GNULIB_WRITE, REPLACE_WRITE.
25522         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25523         and the SIGPIPE issue.
25524
25525         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25526         (raise): New declaration.
25527         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25528         (ext_signal): New function.
25529         (rpl_raise): New function.
25530         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25531         GNULIB_SIGNAL_H_SIGPIPE.
25532         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25533         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25534
25535         * modules/sigpipe: New file.
25536         * m4/sigpipe.m4: New file.
25537
25538 2008-09-25  Derek Price  <derek@ximbiot.com>
25539             Bruno Haible  <bruno@clisp.org>
25540
25541         * gnulib-tool (func_import): Report all license incompatibilities, not
25542         just the first one.
25543
25544 2008-09-25  Bruno Haible  <bruno@clisp.org>
25545
25546         * gnulib-tool (func_import): When computing the edits, consider not
25547         only the Makefile.ams that exist but also those that will be generated.
25548
25549 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25550
25551         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25552         fixes gnulib-tool --test warning about duplicate dependency.
25553
25554 2008-09-25  Bruno Haible  <bruno@clisp.org>
25555
25556         * gnulib-tool: Don't ask the user to perform edits in the generated
25557         Makefile.ams.
25558         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25559         apply to the Makefile.am being generated.
25560         (func_emit_tests_Makefile_am): Execute edits that apply to the
25561         Makefile.am being generated.
25562         (func_import): Setup list of Makefile.am edits before emitting the
25563         Makefile.ams, not at the end.
25564         (func_create_testdir): Update.
25565         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25566
25567 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25568
25569         * gnulib-tool (func_import): Store the --tests-base option in the
25570         comment in gnulib-cache.m4.
25571
25572 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25573
25574         * NEWS: Document increased portability that sys_select now provides.
25575
25576         * lib/sys_select.in.h: Install select wrapper.
25577         * lib/sys_socket.in.h: Use more descriptive name when there is no
25578         select wrapper.
25579         * lib/winsock-select.c: New.
25580         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25581         Require gl_HEADER_SYS_SOCKET.
25582         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25583         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25584         * tests/test-sys_select.c: Add functional tests.
25585
25586 2008-09-24  Eric Blake  <ebb9@byu.net>
25587
25588         open, fopen: close fd leak in last patch
25589         * lib/open.c (rpl_open): Close fd before returning error.
25590         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25591         * doc/posix-functions/open.texi (open): Document that Irix also
25592         has the bug.
25593         * doc/posix-functions/fopen.texi (fopen): Likewise.
25594         Reported by Paolo Bonzini.
25595
25596 2008-09-24  Bruno Haible  <bruno@clisp.org>
25597
25598         Ensure that a filename ending in a slash cannot be used to access a
25599         non-directory.
25600         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25601         to check whether it's really a directory.
25602         * lib/fopen.c: Include fcntl.h, unistd.h.
25603         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25604         and fdopen().
25605         * modules/fopen (Depends-on): Add unistd.
25606         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25607         * tests/test-fopen.c (main): Likewise.
25608         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25609         * doc/posix-functions/fopen.texi: Likewise.
25610         Reported by Eric Blake.
25611
25612 2008-09-23  Eric Blake  <ebb9@byu.net>
25613
25614         c-stack: avoid compiler optimizations when provoking overflow
25615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25616         recursion harder to optimize, to ensure a stack overflow occurs.
25617         * tests/test-c-stack.c (recurse): Likewise.
25618         Borrowed from libsigsegv.
25619
25620         c-stack: work around Irix sigaltstack bug
25621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25622         whether sigaltstack uses wrong end of stack_t (copied in part from
25623         libsigsegv).
25624         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25625         Irix bug, without requiring an over-allocation.
25626         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25627         bug.
25628
25629         fopen: document mingw bug on directories
25630         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25631         not allowing a stream visiting a directory, even though reading
25632         from such a stream is not portable.
25633
25634 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25635
25636         * lib/poll.c: Rewrite.
25637         * modules/poll: Depend on alloca.
25638
25639 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25640
25641         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25642         instead define prototypes for a full set of wrappers.  Ensure
25643         that Cygwin does not use the compatibility code, which is only
25644         for MinGW.
25645         * lib/winsock.c: New.
25646         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25647         * modules/sys_socket: Add lib/winsock.c.
25648
25649         * modules/poll-tests: Add errno and perror.
25650         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25651
25652 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25653
25654         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25655
25656 2008-09-23  Bruno Haible  <bruno@clisp.org>
25657
25658         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25659         * doc/glibc-functions/*: Likewise.
25660
25661 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25662
25663         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25664         success.
25665
25666 2008-09-22  Eric Blake  <ebb9@byu.net>
25667             Bruno Haible  <bruno@clisp.org>
25668
25669         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25670         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25671         supply %A but mishandle pseudo-NaN.
25672         Reported by Simon Josefsson.
25673
25674 2008-09-21  Bruno Haible  <bruno@clisp.org>
25675
25676         * tests/test-lock.c (main): Tweak skip message.
25677         * tests/test-tls.c (main): Likewise.
25678
25679 2008-09-21  Bruno Haible  <bruno@clisp.org>
25680
25681         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25682         whether 'struct sigaction' has sa_sigaction here...
25683         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25684         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25685
25686 2008-09-21  Bruno Haible  <bruno@clisp.org>
25687
25688         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25689         section.
25690         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25691         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25692         the new section.
25693         (Support for obsolete systems lacking POSIX:2001): New section.
25694         (String handling <string.h>): Move strdup to the new section.
25695         Suggested by Simon Josefsson and Paolo Bonzini.
25696
25697 2008-09-21  Bruno Haible  <bruno@clisp.org>
25698
25699         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25700         exponents in %e and %g results on 'long double'. Needed for mingw's
25701         improved *printf functions.
25702         * tests/test-vasprintf-posix.c (test_function): Likewise.
25703         * tests/test-snprintf-posix.h (test_function): Likewise.
25704         * tests/test-sprintf-posix.h (test_function): Likewise.
25705         Reported by Eric Blake.
25706
25707 2008-09-21  Bruno Haible  <bruno@clisp.org>
25708
25709         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25710         * tests/test-sprintf-posix.h (test_function): Likewise.
25711
25712 2008-09-21  Bruno Haible  <bruno@clisp.org>
25713
25714         * modules/getpass (Depends-on): Add strdup-posix.
25715
25716         New module 'strdup-posix'.
25717         * modules/strdup-posix: New file.
25718         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25719         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25721         REPLACE_STRDUP.
25722         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25723         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25725         strdup-posix.
25726
25727         * modules/strdup (Depends-on): Remove malloc-posix.
25728
25729 2008-09-20  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25732         Wildenhues.
25733
25734 2008-09-20  Bruno Haible  <bruno@clisp.org>
25735
25736         Ensure that wint_t gets defined on IRIX 5.3.
25737         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25738         * lib/wctype.in.h (wint_t): Likewise.
25739         (__wctype_wint_t): Remove type.
25740         (isw*): Use wint_t instead of __wctype_wint_t.
25741         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25742         * modules/wchar (Files): Add m4/wint_t.m4.
25743         (Makefile.am): Substitute HAVE_WINT_T.
25744         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25745         * tests/test-wctype.c: Check that wint_t is defined.
25746         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25747         * doc/posix-headers/wctype.texi: Likewise.
25748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25749
25750 2008-09-18  Bruno Haible  <bruno@clisp.org>
25751
25752         * gnulib-tool (func_exit): Update comment.
25753
25754 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25755
25756         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25757         assumes strdup exists and does not depend on strdup to return
25758         ENOMEM on out of memory conditions.
25759
25760 2008-09-18  Bruno Haible  <bruno@clisp.org>
25761
25762         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
25763         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25764         digits for the exponent.
25765
25766 2008-09-18  Jim Meyering  <meyering@redhat.com>
25767             Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/vasnprintf.c (decimal_point_char): Define also if
25770         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25771
25772 2008-09-16  Bruno Haible  <bruno@clisp.org>
25773         and Eric Blake  <ebb9@byu.net>
25774
25775         vasnprintf: support Irix 5.3
25776         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25777         that mishandle long double infinity.
25778         Reported by Tom G. Christensen.
25779
25780 2008-09-16  Bruno Haible  <bruno@clisp.org>
25781
25782         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25783         Solaris 9.
25784         * doc/glibc-functions/alphasort.texi: Likewise.
25785         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25786
25787 2008-09-16  Jim Meyering  <meyering@redhat.com>
25788
25789         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25790         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25791         a umask modification leak out of a subshell.  Otherwise, the
25792         opensolaris /bin/sh would be accepted and thus cause unwarranted
25793         failures in the coreutils test suite.
25794
25795 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25796
25797         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25798         to succeed.
25799
25800 2008-09-16  Jim Meyering  <meyering@redhat.com>
25801
25802         avoid spurious test failure when library is built without ACL support
25803         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25804         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25805         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25806         * tests/test-copy-acl.sh: Likewise.
25807
25808 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25809
25810         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25811         based on character occurrence counts.
25812
25813 2008-09-15  Eric Blake  <ebb9@byu.net>
25814
25815         tests: avoid some compiler warnings
25816         * tests/test-memchr.c (main): Pass NULL indirectly.
25817         * tests/test-closein.c (main): Avoid unused variable.
25818
25819 2008-09-15  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25822         are missing on OpenBSD 4.0 individually.
25823         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25824
25825 2008-09-15  Bruno Haible  <bruno@clisp.org>
25826
25827         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25828         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25829         * doc/posix-functions/perror.texi: Likewise.
25830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25831         is missing.
25832         Reported by Eric Blake.
25833
25834         * lib/errno.in.h: Use replacement values >= 2000.
25835         Reported by Eric Blake.
25836
25837 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25838
25839         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25840         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25841         limit.
25842         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25843         compareseq was aborted.
25844
25845 2008-09-14  Bruno Haible  <bruno@clisp.org>
25846
25847         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25848         yvec_edit_count.
25849         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25850         (fstrcmp_bounded): Simplify result computation accordingly.
25851
25852 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25853
25854         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25855         (fstrcmp): Define in terms of fstrcmp_bounded.
25856         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25857         lower_bound argument.
25858         Return quickly if the result is certainly < lower_bound.
25859         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25860
25861 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25862
25863         * lib/diffseq.h (EARLY_ABORT): New macro.
25864         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25865         evaluates to true.
25866
25867 2008-09-14  Bruno Haible  <bruno@clisp.org>
25868
25869         * modules/perror-tests: New file.
25870         * tests/test-perror.sh: New file.
25871         * tests/test-perror.c: New file.
25872
25873         New module 'perror'.
25874         * lib/stdio.in.h (perror): New declaration.
25875         * lib/perror.c: New file.
25876         * m4/perror.m4: New file.
25877         * modules/perror: New file.
25878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25879         * doc/posix-functions/perror.texi: Mention the perror module.
25880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25881         REPLACE_PERROR.
25882         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25883         REPLACE_PERROR.
25884
25885 2008-09-14  Bruno Haible  <bruno@clisp.org>
25886
25887         * modules/stdio (Makefile.am): Reorder to match the order in
25888         lib/stdio.in.h.
25889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25890
25891 2008-09-13  Bruno Haible  <bruno@clisp.org>
25892
25893         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25894
25895 2008-09-13  Bruno Haible  <bruno@clisp.org>
25896
25897         Extend strerror to cover the added errno values.
25898         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25899         (rpl_strerror): Provide error messages for the added errno values and
25900         for the WSA* values.
25901         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25902         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25903         strerror.
25904         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25905         * modules/strerror (Depends-on): Add errno.
25906         * doc/posix-functions/strerror.texi: Document the change.
25907         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25908         and EOVERFLOW.
25909
25910 2008-09-13  Bruno Haible  <bruno@clisp.org>
25911
25912         * modules/EOVERFLOW: Remove file.
25913         * m4/eoverflow.m4: Remove file.
25914         * modules/EOVERFLOW-tests: Remove file.
25915         * tests/test-EOVERFLOW.c: Remove file.
25916         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25917         * modules/ftell (Depends-on): Likewise.
25918         * modules/getdelim (Depends-on): Likewise.
25919         * modules/getugroups (Depends-on): Likewise.
25920         * modules/poll (Depends-on): Likewise.
25921         * modules/snprintf (Depends-on): Likewise.
25922         * modules/sprintf-posix (Depends-on): Likewise.
25923         * modules/vasnprintf (Depends-on): Likewise.
25924         * modules/vasprintf (Depends-on): Likewise.
25925         * modules/vfprintf-posix (Depends-on): Likewise.
25926         * modules/vsnprintf (Depends-on): Likewise.
25927         * modules/vsprintf-posix (Depends-on): Likewise.
25928         * modules/xvasprintf (Depends-on): Likewise.
25929         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25930         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25931         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25932         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25933         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25934         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25935         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25936         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25937         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25938         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25939         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25940         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25942         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25943         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25944         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25946         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25947         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25948         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25949         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25950         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25951         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25952         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25953         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25955         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25956         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25957         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25958         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25959         * MODULES.html.sh: Remove EOVERFLOW.
25960         * NEWS: Mention the change.
25961
25962 2008-09-13  Bruno Haible  <bruno@clisp.org>
25963
25964         * modules/errno-tests: New file.
25965         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25966
25967         * lib/errno.in.h: New file.
25968         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25969         * modules/errno: New file.
25970         * doc/posix-headers/errno.texi: Update documentation.
25971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25972
25973 2008-09-13  Bruno Haible  <bruno@clisp.org>
25974
25975         * tests/test-poll.c: Use #if for native Windows, rather than testing
25976         __MSVCRT__.
25977
25978 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25979             Bruno Haible  <bruno@clisp.org>
25980
25981         * lib/glob.c: Don't include <pwd.h> on native Windows.
25982         (WINDOWS32): New macro.
25983         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25984
25985 2008-09-13  Bruno Haible  <bruno@clisp.org>
25986
25987         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25988         (ETIMEDOUT): Remove macro.
25989         (glthread_cond_timedwait_multithreaded): New declaration.
25990         (glthread_cond_timedwait): Use it.
25991         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25992         (glthread_cond_timedwait_multithreaded): New function.
25993
25994 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25995
25996         * modules/poll-tests: Do not check for io.h.
25997         * tests/test-poll.c: Check for __MSVCRT__ instead.
25998
25999 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26000
26001         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26002         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26003         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26004
26005 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26006
26007         * modules/poll-tests: New.
26008         * tests/test-poll.c: New.
26009
26010 2008-09-12  Eric Blake  <ebb9@byu.net>
26011
26012         frexp: test for NetBSD failure on -0.0
26013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26014         not all, bugs from NetBSD 3.0 have been fixed.
26015         * doc/posix-functions/frexp.texi (frexp): Document bug.
26016         Reported by Thomas Klausner.
26017
26018         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26019         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26020         literal -0.0.
26021         Reported by Jonathan C. Patschke <jp@centtech.com>.
26022
26023 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26024
26025         * lib/glthread/cond.h: Use dummy implementation also if
26026         USE_WIN32_THREADS.
26027
26028 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26029
26030         * modules/fnmatch-posix (License): Change to LGPLv2+.
26031         * modules/fnmatch-gnu (License): Likewise.
26032
26033 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26034
26035         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26036
26037 2008-09-11  Jim Meyering  <meyering@redhat.com>
26038
26039         * users.txt: Add gtk-vnc.
26040
26041 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26042
26043         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26044         rotate amounts.
26045
26046         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26047         required for 16-bit and 8-bit rotates.
26048         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26049         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26050         UINT8_MAX instead of hard-coded constants.
26051         Suggested by Paul Eggert.
26052
26053 2008-09-07  Bruno Haible  <bruno@clisp.org>
26054
26055         * tests/test-striconveh.c (main): Check behaviour when converting from
26056         UTF-7.
26057
26058         Make striconveh work better with stateful encodings.
26059         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26060         that iconv does not increment the inptr when returning -1/EINVAL.
26061
26062 2008-09-07  Bruno Haible  <bruno@clisp.org>
26063
26064         * build-aux/config.rpath: Update according to libtool-2.2.6.
26065         * build-aux/config.libpath: Likewise.
26066
26067 2008-09-06  Bruno Haible  <bruno@clisp.org>
26068
26069         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26070         * lib/freadptr.c (freadptr): Likewise.
26071         * lib/freadseek.c (freadptrinc): Likewise.
26072         Reported by Simon Josefsson.
26073
26074 2008-09-06  Bruno Haible  <bruno@clisp.org>
26075
26076         * modules/freadptr (License): Change to LGPLv2+.
26077         * modules/freadseek (License): Likewise.
26078         Suggested by Eric Blake.
26079
26080         * modules/memchr2 (License): Change to LGPLv2+.
26081         Approved by Eric Blake.
26082
26083 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26084             Bruno Haible  <bruno@clisp.org>
26085
26086         Make gnulib-tool work with native 'sed' on AIX.
26087         * gnulib-tool (sed_noop): New variable.
26088         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26089         func_add_or_update, func_create_testdir): Use it to initialize sed
26090         script variables.
26091         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26092
26093 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26094             Bruno Haible  <bruno@clisp.org>
26095
26096         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26097         also works after #include directives.
26098
26099 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
26100
26101         getdate.y: reject an out-of-range timezone value
26102         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26103         the range [-24...+24].  When specified with only one or two digits,
26104         * tests/test-getdate.c: Tests for the fix.
26105         * doc/getdate.texi: Document this change.
26106
26107 2008-09-03  Bruno Haible  <bruno@clisp.org>
26108
26109         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26110
26111 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26112
26113         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26114         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26115         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26116         Blake <ebb9@byu.net>.
26117
26118         * tests/test-bitrotate.c: Add more test vectors.
26119
26120 2008-09-02  Eric Blake  <ebb9@byu.net>
26121
26122         vasnprintf-posix: handle large precision via %.*d
26123         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26124         when handling it ourselves.
26125         * tests/test-vasnprintf-posix.c (test_function): Add test.
26126         * tests/test-snprintf-posix.h (test_function): Likewise.
26127         * tests/test-sprintf-posix.h (test_function): Likewise.
26128         * tests/test-vasprintf-posix.c (test_function): Likewise.
26129         Reported by Alain Guibert.
26130
26131 2008-09-01  Eric Blake  <ebb9@byu.net>
26132
26133         c-stack: make configure-time check more robust
26134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26135         successful sigaction call.
26136         Reported by Tom G. Christensen.
26137
26138 2008-09-01  Bruno Haible  <bruno@clisp.org>
26139
26140         New module 'findprog-lgpl'.
26141         * modules/findprog-lgpl: New file.
26142         * lib/findprog-lgpl.c: New file.
26143         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26144         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26145         to decide whether to use strdup or xstrdup, concatenated_filename or
26146         xconcatenated_filename.
26147
26148 2008-09-01  Bruno Haible  <bruno@clisp.org>
26149
26150         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26151         'xconcat-filename' (GPL).
26152         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26153         (License): Change to LGPLv2+.
26154         * modules/xconcat-filename: New file.
26155         * lib/concat-filename.h (concatenated_filename): Change specification.
26156         (xconcatenated_filename): New declaration.
26157         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26158         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26159         memory situations.
26160         * lib/xconcat-filename.c: New file.
26161         * NEWS: Mention the change.
26162         * lib/findprog.c: Include concat-filename.h, not filename.h.
26163         (find_in_path): Use xconcatenated_filename instead of
26164         concatenated_filename.
26165         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26166         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26167         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26168         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26169         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26170         instead of concatenated_filename.
26171         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26172         (execute_java_class): Use xconcatenated_filename instead of
26173         concatenated_filename.
26174         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26175         * modules/javacomp (Depends-on): Likewise.
26176         * modules/javaexec (Depends-on): Likewise.
26177
26178 2008-09-01  Bruno Haible  <bruno@clisp.org>
26179
26180         Split module 'filename' into 'filename' and 'concat-filename'.
26181         * modules/filename: Keep only lib/filename.h.
26182         (License): Change to LGPLv2+.
26183         * modules/concat-filename: New file, extracted from modules/filename.
26184         * lib/filename.h (concatenated_filename): Remove declaration.
26185         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26186         * lib/concat-filename.c: Include concat-filename.h.
26187         * NEWS: Mention the change.
26188
26189 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26190
26191         * lib/bitrotate.h (rotl8, rotr8): Add.
26192
26193         * modules/bitrotate (configure.ac): Need
26194         AC_REQUIRE([AC_C_INLINE]).
26195         (Description): Mention stdint.h.  Reported by Bruno Haible
26196         <bruno@clisp.org>.
26197
26198         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26199         Paolo Bonzini <bonzini@gnu.org>.
26200
26201 2008-08-31  Bruno Haible  <bruno@clisp.org>
26202
26203         Assume Solaris specific bi-arch conventions on Solaris systems.
26204         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26205         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26206         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26207         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26208         like acl_libdirstem.
26209         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26210         acl_libdirstem.
26211         * NEWS: Mention the change.
26212         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26213
26214 2008-08-31  Jim Meyering  <meyering@redhat.com>
26215
26216         * lib/strftime.h: Add comments describing the two added arguments.
26217
26218         remove duplicate #include directives
26219         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26220         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26221
26222 2008-08-31  Bruno Haible  <bruno@clisp.org>
26223
26224         New module 'sigpipe-die'.
26225         * modules/sigpipe-die: New file.
26226         * lib/sigpipe-die.h: New file.
26227         * lib/sigpipe-die.c: New file.
26228         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26229
26230 2008-08-31  Bruno Haible  <bruno@clisp.org>
26231
26232         Don't override previously installed signal handlers.
26233         * lib/fatal-signal.c (saved_sigactions): New variable.
26234         (uninstall_handlers): Reset the signal to the saved handler, not
26235         to SIG_DFL (except when ignored).
26236         (install_handlers): Save the previous handlers.
26237
26238 2008-08-30  Bruno Haible  <bruno@clisp.org>
26239
26240         * gnulib-tool (func_reset_sigpipe): New function.
26241         (func_get_automake_snippet, func_modules_transitive_closure,
26242         func_import): Invoke it before a join command that reads from stdin,
26243         to avoid "echo: write error: Broken pipe" error messages on stderr.
26244         Reported by Sam Steingold <sds@gnu.org>.
26245
26246 2008-08-30  Bruno Haible  <bruno@clisp.org>
26247
26248         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26249         Code copied from m4/open.m4.
26250         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26251         access and the filename ends in a slash. Code copied from lib/open.c.
26252         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26253         * tests/test-fopen.c (main): Check against bug with trailing slash.
26254
26255 2008-08-29  Bruno Haible  <bruno@clisp.org>
26256
26257         Avoid some "gcc -pedantic" warnings.
26258         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26259         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26260         * lib/dirent.in.h: Likewise.
26261         * lib/fcntl.in.h: Likewise.
26262         * lib/float.in.h: Likewise.
26263         * lib/iconv.in.h: Likewise.
26264         * lib/inttypes.in.h: Likewise.
26265         * lib/locale.in.h: Likewise.
26266         * lib/math.in.h: Likewise.
26267         * lib/netinet_in.in.h: Likewise.
26268         * lib/search.in.h: Likewise.
26269         * lib/signal.in.h: Likewise.
26270         * lib/stdarg.in.h: Likewise.
26271         * lib/stdint.in.h: Likewise.
26272         * lib/stdio.in.h: Likewise.
26273         * lib/stdlib.in.h: Likewise.
26274         * lib/string.in.h: Likewise.
26275         * lib/strings.in.h: Likewise.
26276         * lib/sys_select.in.h: Likewise.
26277         * lib/sys_socket.in.h: Likewise.
26278         * lib/sys_stat.in.h: Likewise.
26279         * lib/sys_time.in.h: Likewise.
26280         * lib/sysexits.in.h: Likewise.
26281         * lib/time.in.h: Likewise.
26282         * lib/unistd.in.h: Likewise.
26283         * lib/wchar.in.h: Likewise.
26284         * lib/wctype.in.h: Likewise.
26285         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26286         * modules/fchdir (Makefile.am): Likewise.
26287         * modules/fcntl (Makefile.am): Likewise.
26288         * modules/float (Makefile.am): Likewise.
26289         * modules/iconv_open (Makefile.am): Likewise.
26290         * modules/inttypes (Makefile.am): Likewise.
26291         * modules/locale (Makefile.am): Likewise.
26292         * modules/math (Makefile.am): Likewise.
26293         * modules/netinet_in (Makefile.am): Likewise.
26294         * modules/search (Makefile.am): Likewise.
26295         * modules/signal (Makefile.am): Likewise.
26296         * modules/stdarg (Makefile.am): Likewise.
26297         * modules/stdint (Makefile.am): Likewise.
26298         * modules/stdio (Makefile.am): Likewise.
26299         * modules/stdlib (Makefile.am): Likewise.
26300         * modules/string (Makefile.am): Likewise.
26301         * modules/strings (Makefile.am): Likewise.
26302         * modules/sys_select (Makefile.am): Likewise.
26303         * modules/sys_socket (Makefile.am): Likewise.
26304         * modules/sys_stat (Makefile.am): Likewise.
26305         * modules/sys_time (Makefile.am): Likewise.
26306         * modules/sysexits (Makefile.am): Likewise.
26307         * modules/time (Makefile.am): Likewise.
26308         * modules/unistd (Makefile.am): Likewise.
26309         * modules/wchar (Makefile.am): Likewise.
26310         * modules/wctype (Makefile.am): Likewise.
26311         Reported by Reuben Thomas <rrt@sc3d.org>.
26312
26313 2008-08-29  Bruno Haible  <bruno@clisp.org>
26314
26315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26316         any more.
26317
26318 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26319
26320         * MODULES.html.sh (Misc): Add bitrotate.
26321
26322         * modules/bitrotate: New file.
26323
26324         * lib/bitrotate.h: New file.
26325
26326         * modules/bitrotate-tests: New file.
26327
26328         * tests/test-bitrotate.c: New file.
26329
26330         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26331         on the bitrotate module.
26332
26333         * lib/arctwo.c: Use new bitrotate module.
26334
26335 2008-08-29  Jim Meyering  <meyering@redhat.com>
26336
26337         bootstrap: merge changes from coreutils
26338         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26339         of copied files.  Remove a kludge, now that this is fixed.
26340         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26341         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26342         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26343
26344 2008-08-29  Bruno Haible  <bruno@clisp.org>
26345
26346         * MODULES.html.sh: Remove --cvs-urls option.
26347
26348 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26349
26350         maint.mk: adjust to file name change
26351         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26352
26353 2008-08-28  Jim Meyering  <meyering@redhat.com>
26354
26355         * modules/getndelim2 (License): Relicense to LGPLv2+.
26356         Approved by Richard Stallman for the version of 1995, and by
26357         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26358
26359 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26360
26361         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26362         dummy if one is not available.  Do not touch them if
26363         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26364         (getc_maybe_unlocked): New.
26365         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26366
26367 2008-08-26  Eric Blake  <ebb9@byu.net>
26368
26369         doc/INSTALL: resync from autoconf
26370         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26371         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26372         moving...
26373         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26374         * INSTALL: Regenerate.
26375         * INSTALL.ISO: New file.
26376         * INSTALL.UTF-8: Likewise.
26377
26378 2008-08-26  Jim Meyering  <meyering@redhat.com>
26379
26380         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26381         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26382         these definitions conditional, so that they may be overridden, too.
26383
26384 2008-08-26  Bruno Haible  <bruno@clisp.org>
26385
26386         Generate INSTALL file variants with prettier quotes.
26387         * doc/Makefile (INSTALL_PRELUDE): New macro.
26388         (INSTALL): Use it.
26389         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26390
26391 2008-08-26  Bruno Haible  <bruno@clisp.org>
26392
26393         Run makeinfo in an English locale.
26394         * doc/Makefile (MAKEINFO): New variable.
26395
26396 2008-08-26  Bruno Haible  <bruno@clisp.org>
26397
26398         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26399         Suggested by Eric Blake.
26400
26401 2008-08-25  Bruno Haible  <bruno@clisp.org>
26402
26403         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26404
26405 2008-08-25  Eric Blake  <ebb9@byu.net>
26406
26407         c-stack: test that stack overflow can be caught
26408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26409         that platform allows handling stack overflow; at least OS/2 EMX
26410         has sigaltstack, but crashes before transferring control to
26411         handler on stack overflow.
26412         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26413         check for HAVE_STACK_OVERFLOW_HANDLING.
26414         Reported by Elbert Pol.
26415
26416 2008-08-25  Bruno Haible  <bruno@clisp.org>
26417
26418         * doc/posix-functions/strftime.texi: Fix description of strftime
26419         module.
26420
26421 2008-08-24  Bruno Haible  <bruno@clisp.org>
26422
26423         * tests/uniwidth/test-uc_width2.c: New file.
26424         * tests/uniwidth/test-uc_width2.sh: New file.
26425         * modules/uniwidth/width-tests (Files): Add the new files.
26426         (TESTS): Add uniwidth/test-uc_width2.sh.
26427         (TESTS_ENVIRONMENT): New variable.
26428         (check_PROGRAMS): Add test-uc_width2.
26429         (test_uc_width2_SOURCES): New variable.
26430
26431         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26432         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26433         not 0x00AB.
26434         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26435
26436 2008-08-22  Eric Blake  <ebb9@byu.net>
26437
26438         test-lock, test-tls: mention why a test is skipped
26439         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26440         skipped.
26441         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26442
26443         count-one-bits: relax license
26444         * modules/count-one-bits (License): Relicense to LGPLv2+.
26445         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26446
26447 2008-08-22  Andreas Schwab  <schwab@suse.de>
26448
26449         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26450         Remove spurious space in assignment.
26451
26452 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26453
26454         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26455         Paul Eggert <eggert@CS.UCLA.EDU>.
26456
26457 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26458
26459         * modules/gettext: Add m4/threadlib.m4.
26460
26461 2008-08-19  Eric Blake  <ebb9@byu.net>
26462
26463         test-c-stack: fix compilation failure on FreeBSD 5.0
26464         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26465         headers before <sys/resource.h>.
26466         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26467         the bug.
26468         Reported by Nelson H. F. Beebe.
26469
26470         strverscmp: migrate from "strverscmp.h" to <string.h>
26471         * modules/string (Makefile.am): Add new hooks.
26472         * modules/strverscmp (Files): Remove strverscmp.h.
26473         (Depends-on): Add string.
26474         (configure.ac): Add indicator.
26475         (Include): Mention new header.
26476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26477         defaults.
26478         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26479         results.
26480         * lib/strverscmp.h: Delete.
26481         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26482         * tests/test-strverscmp.c (includes): Adjust client.
26483         * lib/check-version.c (includes): Likewise.
26484         * NEWS: Document the change.
26485
26486         strverscmp: add unit test
26487         * modules/strverscmp-tests: New file.
26488         * tests/test-strverscmp.c: Likewise.
26489
26490 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26491
26492         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26493         regarding Windows crypto stuff, from Mono.
26494
26495 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26496
26497         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26498         if present, for intel RND.  Return error on failures.
26499
26500 2008-08-18  Ben Pfaff  <blp@gnu.org>
26501
26502         gitlog-to-changelog: give better diagnostic for failed pipe-open
26503         * build-aux/gitlog-to-changelog: Improve error message: suggest
26504         that the version of Git may be too old.
26505
26506 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26507
26508         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26509         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26510
26511 2008-08-18  Bruno Haible  <bruno@clisp.org>
26512
26513         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26514         pthread_in_use().
26515
26516 2008-08-18  Bruno Haible  <bruno@clisp.org>
26517
26518         * lib/glthread/threadlib.c: Include <pthread.h>.
26519
26520 2008-08-18  Bruno Haible  <bruno@clisp.org>
26521
26522         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26523         glthread_recursive_lock_* macros.
26524         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26525         Fix syntax error.
26526
26527 2008-08-18  Bruno Haible  <bruno@clisp.org>
26528
26529         * lib/glthread/thread.c: Avoid forcing a context switch right after
26530         thread creation.
26531
26532 2008-08-17  Bruno Haible  <bruno@clisp.org>
26533
26534         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26535         * lib/glthread/thread.h: Provide Win32 specific implementation.
26536         * modules/thread (Files): Add lib/glthread/thread.c.
26537         (Depends-on): Add lock.
26538         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26539
26540 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26541
26542         New module 'yield'.
26543         * modules/yield: New file.
26544         * lib/glthread/yield.h: New file.
26545         * m4/yield.m4: New file.
26546         * MODULES.html.sh (Multithreading): Add yield.
26547
26548 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26549
26550         New module 'thread'.
26551         * modules/thread: New file.
26552         * lib/glthread/thread.h: New file.
26553         * m4/thread.m4: New file.
26554         * MODULES.html.sh (Multithreading): Add thread.
26555
26556 2008-08-17  Bruno Haible  <bruno@clisp.org>
26557
26558         * lib/glthread/lock.h: Include <stdlib.h> always.
26559         * lib/glthread/tls.h: Likewise.
26560         * lib/glthread/cond.h: Likewise.
26561
26562 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26563
26564         New module 'cond'.
26565         * modules/cond: New file.
26566         * lib/glthread/cond.h: New file.
26567         * lib/glthread/cond.c: New file.
26568         * m4/cond.m4: New file.
26569         * MODULES.html.sh (Multithreading): Add cond.
26570
26571 2008-08-16  Eric Blake  <ebb9@byu.net>
26572
26573         c-stack: fix regression on Irix 5.3 from 2008-06-21
26574         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26575         sa_sigaction...
26576         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26577         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26578         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26579         * modules/signal (Makefile.am): Use the value.
26580         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26581         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26582         * doc/posix-headers/signal.texi (signal.h): Document this
26583         portability issue.
26584         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26585         Reported by Tom G. Christensen.
26586
26587 2008-08-17  Bruno Haible  <bruno@clisp.org>
26588
26589         New module 'threadlib'.
26590         * modules/threadlib: New file.
26591         * lib/glthread/threadlib.c: New file, extracted from
26592         lib/glthread/lock.c.
26593         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26594         functions.
26595         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26596         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26597         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26598         macros.
26599         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26600         (gl_DISABLE_THREADS): Remove macro.
26601         * modules/lock (Files): Remove build-aux/config.rpath.
26602         (Depends-on): Remove havelib. Add threadlib.
26603         (configure.ac-early): Remove section.
26604         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26605         * modules/tls (Depends-on): Remove lock. Add threadlib.
26606         (Link): New section, copied from threadlib.
26607         * MODULES.html.sh (Multithreading): Add threadlib.
26608
26609 2008-08-14  Bruno Haible  <bruno@clisp.org>
26610
26611         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26612         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26613         glthread_rwlock_unlock, glthread_rwlock_destroy,
26614         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26615         glthread_recursive_lock_destroy): Define as macros always.
26616         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26617         glthread_lock_lock.
26618         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26619         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26620         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26621         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26622         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26623         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26624         (glthread_recursive_lock_lock_func): Renamed from
26625         glthread_recursive_lock_lock.
26626         (glthread_recursive_lock_unlock_func): Renamed from
26627         glthread_recursive_lock_unlock.
26628         (glthread_recursive_lock_destroy_func): Renamed from
26629         glthread_recursive_lock_destroy.
26630
26631 2008-08-14  Bruno Haible  <bruno@clisp.org>
26632
26633         * lib/glthread/lock.h: Renamed from lib/lock.h.
26634         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26635         * lib/glthread/tls.h: Renamed from lib/tls.h.
26636         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26637         * lib/fstrcmp.c: Update includes.
26638         * lib/strsignal.c: Update includes.
26639         * modules/lock (Files, Makefile.am): Update.
26640         (Include): Change to "glthread/lock.h".
26641         * modules/tls (Files, Makefile.am): Update.
26642         (Include): Change to "glthread/tls.h".
26643         * tests/test-lock.c: Update includes.
26644         * tests/test-tls.c: Update includes.
26645         * NEWS: Mention the renamed header files.
26646
26647 2008-08-11  Jim Meyering  <meyering@redhat.com>
26648
26649         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26650
26651 2008-08-11  Eric Blake  <ebb9@byu.net>
26652
26653         test-c-stack: avoid C99-ism
26654         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26655         before statement.
26656         Reported by Alain Guibert.
26657
26658 2008-08-10  Jim Meyering  <meyering@redhat.com>
26659
26660         ensure that return value of uinttostr et al are not ignored
26661         * lib/inttostr.h (__GNUC_PREREQ): Define.
26662         (__attribute_warn_unused_result__): Define.
26663         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26664
26665 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26666
26667         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26668         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26669
26670 2008-08-07  Jim Meyering  <meyering@redhat.com>
26671
26672         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26673
26674         * modules/mkstemp (License): Relicense under LGPLv2+.
26675         * modules/tempname (License): Likewise.
26676
26677 2008-08-06  Bruno Haible  <bruno@clisp.org>
26678
26679         * lib/poll.c (poll): Further micro-optimization.
26680
26681 2008-08-06  Jim Meyering  <meyering@redhat.com>
26682
26683         inet_pton.c: use locale-independent tolower
26684         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26685         (inet_pton6): Use c_tolower rather than tolower.
26686         * modules/inet_pton (Depends-on): Add c-ctype.
26687
26688 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26689
26690         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26691         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26692
26693 2008-08-06  Jim Meyering  <meyering@redhat.com>
26694
26695         * modules/inet_pton (License): Relicense under LGPLv2+.
26696
26697 2008-08-03  Bruno Haible  <bruno@clisp.org>
26698
26699         Additional non-aborting API for lock and tls.
26700         * lib/lock.h: Include <errno.h>.
26701         (glthread_lock_init): New macro/function.
26702         (gl_lock_init): Define as wrapper around glthread_lock_init.
26703         (glthread_lock_lock): New macro/function.
26704         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26705         (glthread_lock_unlock): New macro/function.
26706         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26707         (glthread_lock_destroy): New macro/function.
26708         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26709         (glthread_rwlock_init): New macro/function.
26710         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26711         (glthread_rwlock_rdlock): New macro/function.
26712         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26713         (glthread_rwlock_wrlock): New macro/function.
26714         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26715         (glthread_rwlock_unlock): New macro/function.
26716         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26717         (glthread_rwlock_destroy): New macro/function.
26718         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26719         (glthread_recursive_lock_init): New macro/function.
26720         (gl_recursive_lock_init): Define as wrapper around
26721         glthread_recursive_lock_init.
26722         (glthread_recursive_lock_lock): New macro/function.
26723         (gl_recursive_lock_lock): Define as wrapper around
26724         glthread_recursive_lock_lock.
26725         (glthread_recursive_lock_unlock): New macro/function.
26726         (gl_recursive_lock_unlock): Define as wrapper around
26727         glthread_recursive_lock_unlock.
26728         (glthread_recursive_lock_destroy): New macro/function.
26729         (gl_recursive_lock_destroy): Define as wrapper around
26730         glthread_recursive_lock_destroy.
26731         (glthread_once): New macro/function.
26732         (gl_once): Define as wrapper around glthread_once.
26733         Update function declarations.
26734         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26735         glthread_rwlock_init. Return error code.
26736         (glthread_rwlock_rdlock_multithreaded): Renamed from
26737         glthread_rwlock_rdlock. Return error code.
26738         (glthread_rwlock_wrlock_multithreaded): Renamed from
26739         glthread_rwlock_wrlock. Return error code.
26740         (glthread_rwlock_unlock_multithreaded): Renamed from
26741         glthread_rwlock_unlock. Return error code.
26742         (glthread_rwlock_destroy_multithreaded): Renamed from
26743         glthread_rwlock_destroy. Return error code.
26744         (glthread_recursive_lock_init_multithreaded): Renamed from
26745         glthread_recursive_lock_init. Return error code.
26746         (glthread_recursive_lock_lock_multithreaded): Renamed from
26747         glthread_recursive_lock_lock. Return error code.
26748         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26749         glthread_recursive_lock_unlock. Return error code.
26750         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26751         glthread_recursive_lock_destroy. Return error code.
26752         (glthread_once_call): Make static.
26753         (glthread_once_multithreaded): Renamed from glthread_once.
26754         * lib/tls.h: Include <errno.h>.
26755         (glthread_tls_key_init): New macro/function.
26756         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26757         (glthread_tls_set): New macro/function.
26758         (gl_tls_set): Define as wrapper around glthread_tls_set.
26759         (glthread_tls_key_destroy): New macro/function.
26760         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26761         Update function declarations.
26762         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26763         glthread_tls_get.
26764         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26765
26766 2008-08-04  Eric Blake  <ebb9@byu.net>
26767
26768         gnumakefile: use space, not TAB, outside of targets
26769         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26770
26771 2008-08-02  Jim Meyering  <meyering@redhat.com>
26772
26773         getdate.y: avoid locale-dependent date parsing failure
26774         In Turkish locales, getdate would fail to recognize keywords
26775         containing a lowercase "i".  The solution is not to rely on
26776         locale-sensitive case-conversion.
26777         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26778         (lookup_word): Use c_toupper in place of toupper.
26779         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26780         Reported by Vefa Bicakci <bicave@superonline.com> in
26781         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26782         * modules/getdate (Depends-on): Add c-ctype.
26783
26784 2008-08-02  Bruno Haible  <bruno@clisp.org>
26785
26786         * gnulib-tool (func_import): When updating or creating a .gitignore
26787         file, prepend each added line with a slash, and ignore leading slashes
26788         from the existing lines.
26789         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26790
26791 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26792
26793         Portability fix for GNU make 3.79.1.
26794         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26795         versions do not understand.
26796
26797 2008-08-01  Bruno Haible  <bruno@clisp.org>
26798
26799         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26800         * tests/test-isnanf.h (zero): New variable.
26801         (main): Avoid literal -0.0f.
26802         * tests/test-isnand.h (zero): New variable.
26803         (main): Avoid literal -0.0.
26804         * tests/test-isnanl.h (zero): New variable.
26805         (main): Avoid literal -0.0L.
26806         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26807         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26808         -0.0, -0.0L.
26809         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26810         (test_signbitd): Avoid literal -0.0.
26811         (test_signbitl): Avoid literal -0.0L.
26812         * tests/test-ceilf1.c (zero): New variable.
26813         (main): Avoid literal -0.0f.
26814         * tests/test-ceill.c (zero): New variable.
26815         (main): Avoid literal -0.0L.
26816         * tests/test-floorf1.c (zero): New variable.
26817         (main): Avoid literal -0.0f.
26818         * tests/test-floorl.c (zero): New variable.
26819         (main): Avoid literal -0.0L.
26820         * tests/test-roundf1.c (zero): New variable.
26821         (main): Avoid literal -0.0f.
26822         * tests/test-round1.c (zero): New variable.
26823         (main): Avoid literal -0.0.
26824         * tests/test-roundl.c (zero): New variable.
26825         (main): Avoid literal -0.0L.
26826         * tests/test-truncf1.c (zero): New variable.
26827         (main): Avoid literal -0.0f.
26828         * tests/test-trunc1.c (zero): New variable.
26829         (main): Avoid literal -0.0.
26830         * tests/test-truncl.c (zero): New variable.
26831         (main): Avoid literal -0.0L.
26832         * tests/test-frexp.c (zero): New variable.
26833         (main): Avoid literal -0.0.
26834         * tests/test-frexpl.c (zero): New variable.
26835         (main): Avoid literal -0.0L.
26836         * tests/test-ldexpl.c (zero): New variable.
26837         (main): Avoid literal -0.0L.
26838         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26839         (zerod, zerol): New variables.
26840         (test_function): Avoid literals -0.0, -0.0L.
26841         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26842         (zerod, zerol): New variables.
26843         (test_function): Avoid literals -0.0, -0.0L.
26844         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26845         (zerod, zerol): New variables.
26846         (test_function): Avoid literals -0.0, -0.0L.
26847         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26848         (zerod, zerol): New variables.
26849         (test_function): Avoid literals -0.0, -0.0L.
26850         * tests/test-strtod.c (zero): New variable.
26851         (main): Avoid literal -0.0.
26852         Reported by Jonathan C. Patschke <jp@centtech.com>.
26853
26854 2008-07-31  Jim Meyering  <meyering@redhat.com>
26855
26856         sha256.h: correct definition of SHA224_DIGEST_SIZE
26857         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26858         Reported by Paulie Pena IV <paulie4@gmail.com>.
26859         Define as 224 / 8, rather than as a literal.
26860         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26861         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26862         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26863
26864 2008-07-31  Bruno Haible  <bruno@clisp.org>
26865
26866         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26867         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26868         Reported by Jonathan Patschke <jp@centtech.com>.
26869
26870 2008-07-31  Bruno Haible  <bruno@clisp.org>
26871
26872         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26873         Reported by Paolo Bonzini <bonzini@gnu.org>.
26874
26875 2008-07-30  Eric Blake  <ebb9@byu.net>
26876
26877         test-strtod: allow compilation without -lm
26878         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26879         Reported by Dennis Clarke <blastwave@gmail.com>.
26880
26881 2008-07-28  Jim Meyering  <meyering@redhat.com>
26882
26883         bootstrap: work also when there are no .po files in po/
26884         * build-aux/bootstrap (update_po_files): Complete the change
26885         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26886
26887 2008-07-27  Jim Meyering  <meyering@redhat.com>
26888
26889         * users.txt: Add zile.
26890
26891 2008-07-26  Ben Pfaff  <blp@gnu.org>
26892
26893         Add missing dependencies on new m4/exponent[fdl].m4 files.
26894         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26895         * modules/isnand-nolibm: Add m4/exponentd.m4.
26896         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26897         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26898         m4/isnan[fdl].m4, because the macros actually used moved.
26899         Reported by Jim Meyering.
26900
26901 2008-07-14  Ben Pfaff  <blp@gnu.org>
26902
26903         Add isinf module.
26904         * lib/isinf.c: New file.
26905         * lib/math.in.h: Define isinf macro if we have decided to replace
26906         it.
26907         * m4/isinf.m4: New file.
26908         * m4/math_h.m4: Initialize and substitute variables for isinf
26909         module.
26910         * modules/isinf: New file.
26911         * modules/isinf-tests: New file.
26912         * modules/math: Add substitutions for new module.
26913         * tests/test-isinf.c: New file.
26914         * doc/posix-functions/isinf.texi: Mention new module.
26915         * MODULES.html.sh: Mention new module.
26916
26917 2008-07-14  Ben Pfaff  <blp@gnu.org>
26918
26919         Factor out some macros for use by additional modules.
26920         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26921         exponentf.m4.
26922         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26923         exponentd.m4.
26924         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26925         file exponentl.m4.
26926         * m4/exponentf.m4: New file.
26927         * m4/exponentd.m4: New file.
26928         * m4/exponentl.m4: New file.
26929         * modules/isnanf: Use new file m4/exponentf.m4.
26930         * modules/isnand: Use new file m4/exponentd.m4.
26931         * modules/isnanl: Use new file m4/exponentl.m4.
26932
26933 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26934
26935         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26936         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26937         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26938         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26939
26940         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26941         readlink on platforms without PATH_MAX.
26942
26943 2008-07-21  Eric Blake  <ebb9@byu.net>
26944
26945         Warn, not fail, on stale version.
26946         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26947
26948         Don't allow installation with stale devel version number.
26949         * top/GNUmakefile (_is-install-target): New macro.
26950         (_curr-ver): Forbid installation with stale version number.
26951
26952 2008-07-20  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26955         TESTS_ENVIRONMENT.
26956         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26957
26958 2008-07-20  Bruno Haible  <bruno@clisp.org>
26959
26960         * lib/c-stack.h (c_stack_action): Add documentation.
26961         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26962
26963 2008-07-20  Bruno Haible  <bruno@clisp.org>
26964
26965         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26966         * modules/readlink (License): Likewise.
26967
26968 2008-07-17  Eric Blake  <ebb9@byu.net>
26969
26970         * modules/c-stack (Link): Fix typo.
26971
26972         Make c-stack use libsigsegv, when available.
26973         * modules/c-stack (Depends-on): Add libsigsegv.
26974         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26975         needed.
26976         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26977         (segv_handler, overflow_handler, c_stack_action)
26978         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26979         implementation when libsigsegv is available, but only when using
26980         the library is necessary.
26981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26982         comment, explaining why XSI check fails on Linux.
26983         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26984         * tests/test-c-stack2.sh: Tweak skip message.
26985         * NEWS: Document new link-time requirements.
26986
26987 2008-07-16  Eric Blake  <ebb9@byu.net>
26988
26989         c-stack: Expose false positives when not using libsigsegv.
26990         * modules/c-stack-tests (Files): Expand test.
26991         * tests/test-c-stack.c (main): Add means to conditionally trigger
26992         non-overflow SIGSEGV.
26993         * tests/test-c-stack2.sh: New file.
26994
26995 2008-07-14  Bruno Haible  <bruno@clisp.org>
26996
26997         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26998         Reported by Eric Blake.
26999
27000 2008-07-14  Sam Steingold  <sds@gnu.org>
27001             Bruno Haible  <bruno@clisp.org>
27002
27003         New module libsigsegv.
27004         * modules/libsigsegv: New file.
27005         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27006         modifications.
27007         * MODULES.html.sh (Signal handling): New section.
27008
27009 2008-07-14  Bruno Haible  <bruno@clisp.org>
27010
27011         * modules/unictype/ctype-* (Description): Add the word "function".
27012         Improves the resulting doc in MODULES.html.
27013
27014 2008-07-12  Ben Pfaff  <blp@gnu.org>
27015
27016         Add longlong module.
27017         * modules/longlong: New file.
27018
27019 2008-07-12  Bruno Haible  <bruno@clisp.org>
27020
27021         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27022         to empty.
27023
27024 2008-07-10  Ben Pfaff  <blp@gnu.org>
27025
27026         Add isnan module.
27027         * doc/posix-functions/isnan.texi: Mention new module.
27028         * lib/math.in.h: Define isnan macro if we have decided to replace
27029         it.
27030         * m4/isnan.m4: New file.
27031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27032         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27033         also.
27034         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27035         redundancy.
27036         * m4/math_h.m4: Initialize and substitute variables for isnan
27037         module.
27038         * modules/isnan: New file.
27039         * modules/isnan-tests: New file.
27040         * modules/math: Add substitutions for new module.
27041         * tests/test-isnan.c: New file.
27042         * MODULES.html.sh: Mention new module.
27043
27044 2008-07-10  Ben Pfaff  <blp@gnu.org>
27045
27046         Add isnanf module.
27047         * lib/isnanf.m4: New file.
27048         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27049         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27050         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27051         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27052         * modules/isnanf: New file.
27053         * modules/isnanf-tests: New file.
27054         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27055         files.
27056         * tests/test-isnanf-nolibm.c: factored most of its contents into
27057         new file tests/test-isnanf.h.
27058         * tests/test-isnanf.h: New file.
27059         * tests/test-isnanf.c: New file.
27060         * MODULES.html.sh: Mention new module.
27061         * doc/glibc-functions/isnanf.texi: Mention new module.
27062
27063 2008-07-10  Ben Pfaff  <blp@gnu.org>
27064
27065         Add isnand module.
27066         * lib/isnand.h: New file.
27067         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27068         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27069         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27070         functionality also.
27071         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27072         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27073         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27074         * modules/isnand: New file.
27075         * modules/isnand-tests: New file.
27076         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27077         files.
27078         * tests/test-isnand-nolibm.c: factored most of its contents into
27079         new file tests/test-isnand.h.
27080         * tests/test-isnand.h: New file.
27081         * tests/test-isnand.c: New file.
27082         * MODULES.html.sh: Mention new module.
27083
27084 2008-07-10  Ben Pfaff  <blp@gnu.org>
27085
27086         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27087         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27088         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27089         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27090         * modules/isnanf-nolibm: Update references to renamed files.
27091         * modules/isnand-nolibm: Likewise.
27092         * modules/isnanf-nolibm-tests: Likewise.
27093         * modules/isnand-nolibm-tests: Likewise.
27094         * lib/frexp.c: Likewise.
27095         * lib/isfinite.c: Likewise.
27096         * lib/signbitd.c: Likewise.
27097         * lib/signbitf.c: Likewise.
27098         * lib/vasnprintf.c: Likewise.
27099         * tests/test-ceilf1.c: Likewise.
27100         * tests/test-ceilf2.c: Likewise.
27101         * tests/test-floorf1.c: Likewise.
27102         * tests/test-floorf2.c: Likewise.
27103         * tests/test-frexp.c: Likewise.
27104         * tests/test-round1.c: Likewise.
27105         * tests/test-round2.c: Likewise.
27106         * tests/test-roundf1.c: Likewise.
27107         * tests/test-strtod.c: Likewise.
27108         * tests/test-trunc1.c: Likewise.
27109         * tests/test-trunc2.c: Likewise.
27110         * tests/test-truncf1.c: Likewise.
27111         * tests/test-truncf2.c: Likewise.
27112         * NEWS: Mention the renamed header files.
27113
27114 2008-07-11  Jim Meyering  <meyering@redhat.com>
27115
27116         vc-list-files: make the last-resort awk code more portable
27117         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27118         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27119         does not support it.
27120
27121 2008-07-10  Eric Blake  <ebb9@byu.net>
27122
27123         Work with tar's bootstrap.
27124         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27125         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27126         an m4 comment.
27127
27128 2008-07-09  Jim Meyering  <meyering@redhat.com>
27129
27130         posix-shell.m4: fix typo that made this test malfunction
27131         * m4/posix-shell.m4: Remove capitalization in variable name.
27132
27133 2008-07-08  Bruno Haible  <bruno@clisp.org>
27134
27135         * m4/onceonly.m4: Update comments.
27136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27137
27138 2008-07-04  Jim Meyering  <meyering@redhat.com>
27139
27140         * users.txt: Add vc-dwim.
27141         (bison, coreutils): Use the gitweb URL.
27142
27143 2008-07-03  Jim Meyering  <meyering@redhat.com>
27144
27145         * users.txt: Add libffcall.  From Sam Steingold.
27146
27147 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
27148
27149         getdate.y: do not ignore TZ with relative day, month or year offset
27150         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27151         relative-date-handling, since otherwise, the latter would clobber the
27152         sole output (an updated Start value) of the tz-handling block.
27153         * tests/test-getdate.c: Tests for the fix
27154
27155 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27156
27157         Recognize 'foo_LIBRARIES += libgnu.a'.
27158         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27159         makefile snippet has already specified an installation location,
27160         also using '+='.
27161
27162 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
27163
27164         getdate.y: factor out common actions
27165         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27166         Use them in place of open-coded actions.
27167
27168 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27169
27170         Add self-test for getdate module.
27171         * modules/getdate-tests: New file.
27172         * tests/test-getdate.c: New file.
27173
27174 2008-06-29  Bruno Haible  <bruno@clisp.org>
27175
27176         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27177         .gitignore.
27178         Reported by Sylvain Beucler <beuc@beuc.net>.
27179
27180 2008-06-29  Bruno Haible  <bruno@clisp.org>
27181
27182         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27183         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27184
27185 2008-06-29  Bruno Haible  <bruno@clisp.org>
27186
27187         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27188         EXTRA_DIST.
27189         Reported by Sylvain Beucler <beuc@beuc.net>.
27190
27191 2008-06-26  Jim Meyering  <meyering@redhat.com>
27192
27193         make several modules depend on the "open" module
27194         This provides slightly increased consistency when opening-for-write
27195         the name of a non-directory spelled with a trailing slash.
27196         * modules/chdir-safer: Likewise.
27197         * modules/chown: Likewise.
27198         * modules/clean-temp: Likewise.
27199         * modules/copy-file: Likewise.
27200         * modules/fchdir: Likewise.
27201         * modules/fcntl-safer: Likewise.
27202         * modules/pipe: Likewise.
27203         * modules/utime: Likewise.
27204         Prompted by Eric Blake and Bruno Haible.
27205
27206 2008-06-24  Andreas Schwab  <schwab@suse.de>
27207
27208         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27209         literals can be used as initializers for global variables.
27210
27211 2008-06-23  Eric Blake  <ebb9@byu.net>
27212
27213         Make gnulib-cache.m4 easier to diff.
27214         * gnulib-tool (func_import): Allow newlines when reading cached
27215         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27216
27217 2008-06-23  Bruno Haible  <bruno@clisp.org>
27218
27219         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27220         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27221         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27222         m4/signalblocking.m4.
27223         (gl_PREREQ_SIGACTION): Don't invoke it.
27224         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27225         gl_PREREQ_SIG_HANDLER_H.
27226         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27227         Don't check for sigaction here.
27228
27229 2008-06-23  Bruno Haible  <bruno@clisp.org>
27230
27231         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27232         (install_handlers): Don't set the SA_RESETHAND flag.
27233
27234 2008-06-23  Bruno Haible  <bruno@clisp.org>
27235
27236         * m4/sigaction.m4: Comment fixes.
27237         * lib/signal.in.h: Likewise.
27238
27239 2008-06-23  Eric Blake  <ebb9@byu.net>
27240
27241         Fix typo.
27242         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27243
27244         Avoid SA_ namespace.
27245         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27246         Reported by Ralf Wildenhues.
27247
27248         Avoid test failure due to SA_RESTORER.
27249         * tests/test-sigaction.c (SA_MASK): New macro.
27250         (main): Avoid failing due to extension flags being set.
27251         Reported by Jim Meyering.
27252
27253         Revert use of sig-handler.h in sigprocmask.c.
27254         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27255         it requires the existence of struct sigaction.
27256         * lib/sigprocmask.c (handler_t): Restore typedef.
27257         (rpl_signal, old_handlers): Use local type.
27258
27259 2008-06-22  Bruno Haible  <bruno@clisp.org>
27260
27261         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27262         conditionally.
27263         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27264
27265 2008-06-22  Bruno Haible  <bruno@clisp.org>
27266
27267         * doc/posix-functions/siginterrupt.texi: Move note.
27268
27269         * lib/signal.in.h (SA_RESTART): New macro.
27270         * lib/sigaction.c: Update comment.
27271
27272         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27273
27274         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27275         (gl_PREREQ_SIGPROCMASK): Invoke it.
27276         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27277
27278         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27279
27280         * lib/sigprocmask.c: Update a comment.
27281
27282 2008-06-21  Eric Blake  <ebb9@byu.net>
27283
27284         Use sigaction module rather than signal().
27285         * modules/c-stack (Depends-on): Add sigaction.
27286         * modules/fatal-signal (Depends-on): Likewise.
27287         * modules/nanosleep (Depends-on): Likewise.
27288         * modules/sigprocmask (Files): Add sig-handler.h.
27289         * modules/sigaction (Files): Likewise.
27290         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27291         Eggert.
27292         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27293         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27294         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27295         (init_fatal_signals): Likewise.
27296         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27297         (siginterrupt): Delete fallback.
27298         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27299         instead.
27300         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27301         siginterrupt.
27302
27303         New module sigaction, for mingw.
27304         * modules/sigaction: New module...
27305         * modules/sigaction-tests: ...and its test.
27306         * m4/sigaction.m4: New file.
27307         * lib/sigaction.c: Likewise.
27308         * tests/test-sigaction.c: Likewise.
27309         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27310         * modules/signal (Makefile.am): Likewise.
27311         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27312         needed.
27313         * doc/posix-headers/signal.texi (signal.h): Mention provided
27314         types.
27315         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27316         that sigaction is preferable.
27317         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27318         module.
27319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27320         sigaction.
27321
27322         Improve robustness of sigprocmask by overriding signal.
27323         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27324         is in use.
27325         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27326         (SIGKILL, SIGSTOP): Provide fallbacks.
27327         (rpl_signal): Implement.
27328         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27329         signal can be called inside handlers.
27330
27331         Fix nanosleep module on mingw.
27332         * modules/nanosleep (Depends-on): Add sys_select.
27333         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27334
27335         Fix licensing of sigprocmask.
27336         * modules/raise (License): Relicense as LGPL.
27337
27338 2008-06-21  Bruno Haible  <bruno@clisp.org>
27339
27340         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27341         result if it contains question marks.
27342         Reported by Michael Geng <linux@michaelgeng.de>.
27343
27344 2008-06-19  Bruno Haible  <bruno@clisp.org>
27345
27346         Fix CVS-ism.
27347         * doc/gnulib.texi: Include updated-stamp.texi.
27348         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27349         (updated-stamp.texi): New rule.
27350         (gnulib.info): Depend on it.
27351         * doc/.gitignore: Add updated-stamp.texi.
27352         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27353
27354 2008-06-19  Bruno Haible  <bruno@clisp.org>
27355
27356         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27357         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27358
27359 2008-06-19  Eric Blake  <ebb9@byu.net>
27360
27361         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27362         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27363         Reported by Stepan Kasal.
27364
27365 2008-06-18  Bruno Haible  <bruno@clisp.org>
27366
27367         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27368         Reported by Eric Blake.
27369
27370 2008-06-18  Eric Blake  <ebb9@byu.net>
27371
27372         Work around cygwin 1.5.25 strsignal bug.
27373         * tests/test-strsignal.c: Allow for const char *.
27374         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27375
27376 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27377
27378         * users.txt: Update URL to article and add author/date
27379         information.
27380
27381 2008-06-17  Bruno Haible  <bruno@clisp.org>
27382
27383         New macro gl_DISABLE_THREADS.
27384         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27385         if the user did not pass --enable-threads or --disable-threads option.
27386         (gl_DISABLE_THREADS): New macro.
27387         Reported by Eric Blake <ebb9@byu.net>.
27388
27389 2008-06-17  Bruno Haible  <bruno@clisp.org>
27390
27391         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27392         when the macro ignores it.
27393         Based on a patch by Eric Blake <ebb9@byu.net>.
27394
27395 2008-06-17  Bruno Haible  <bruno@clisp.org>
27396
27397         * modules/tls (License): Change to LGPLv2+.
27398         Reported by Eric Blake.
27399
27400 2008-06-17  Eric Blake  <ebb9@byu.net>
27401
27402         Simplify c-stack prerequisites.
27403         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27405         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27406         check.
27407         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27408         <sys/resource.h>.
27409
27410         Move c-stack test into testsuite.
27411         * modules/c-stack-tests: New file.
27412         * lib/c-stack.c [DEBUG]: Move test program...
27413         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27414         fail test if sigaltstack is lacking.
27415         * tests/test-c-stack.sh: New driver file.
27416
27417 2008-06-16  Eric Blake  <ebb9@byu.net>
27418
27419         Use raise module consistently.
27420         * modules/fatal-signal (Depends-on): Add raise.
27421         * modules/sigprocmask (Depends-on): Likewise.
27422         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27423         * lib/sigprocmask.c (sigprocmask): Likewise.
27424         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27425         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27426
27427         Fix compliance bug in sigpending.
27428         * lib/sigprocmask.c (sigpending): Return pending array via
27429         parameter, not return value.
27430
27431 2008-06-14  Eric Blake  <ebb9@byu.net>
27432
27433         Improve obstack-printf test code.
27434         * tests/test-obstack-printf.c (test_function): Fix comment, and
27435         simplify usage of obstack_* in macros.  Add a test for coverage.
27436         Reported by Bruno Haible.
27437
27438 2008-06-14  Bruno Haible  <bruno@clisp.org>
27439
27440         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27441         array size as a constant, not as a const variable.
27442         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27443         AC_USE_SYSTEM_EXTENSIONS.
27444         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27445         Test whether the obstack_printf function actually exists.
27446         * modules/obstack-printf (Depends-on): Add extensions.
27447         (Include): Remove obstack.h.
27448         * modules/obstack-printf-posix (Depends-on): Add extensions.
27449         (Include): Remove obstack.h.
27450
27451 2008-06-13  Eric Blake  <ebb9@byu.net>
27452
27453         Add obstack-printf and obstack-printf-posix modules.
27454         * modules/obstack-printf: New file.
27455         * modules/obstack-printf-posix: Likewise.
27456         * MODULES.html.sh (Misc): Mention them.
27457         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27458         Likewise.
27459         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27460         Likewise.
27461         * modules/stdio (Makefile.am): Accomodate new modules.
27462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27463         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27464         Declare.
27465         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27466         functions.
27467         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27468         (gl_REPLACE_OBSTACK_PRINTF): New macros
27469         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27470         * tests/test-obstack-printf.c: New file.
27471         * modules/obstack-printf-tests: Likewise.
27472         * modules/obstack-printf-posix-tests: Likewise.
27473
27474 2008-06-11  Bruno Haible  <bruno@clisp.org>
27475
27476         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27477         * lib/open.c: Include errno.h.
27478         (open): Fail when attempting to write to a file that has a trailing
27479         slash.
27480         * tests/test-open.c (main): Test against trailing slash bug.
27481         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27482
27483 2008-06-10  Bruno Haible  <bruno@clisp.org>
27484
27485         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27486         for $? to work inside the trap command, with various /bin/sh-s.
27487         * tests/test-vc-list-files-cvs.sh: Likewise.
27488
27489 2008-06-10  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/acl-internal.h: Don't include gettext.h here.
27492         * lib/set-mode-acl.c: Include gettext.h here.
27493         * lib/copy-acl.c: Likewise.
27494
27495 2008-06-10  Bruno Haible  <bruno@clisp.org>
27496
27497         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27498         * lib/wait-process.c (wait_subprocess): Likewise.
27499         * lib/execute.h (execute): Add termsigp argument.
27500         * lib/execute.c (execute): Likewise.
27501         * lib/csharpcomp.c (compile_csharp_using_pnet,
27502         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27503         * lib/csharpexec.c (execute_csharp_using_pnet,
27504         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27505         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27506         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27507         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27508         is_jikes_present): Update.
27509         * lib/javaexec.c (execute_java_class): Update.
27510         * lib/javaversion.c (execute_and_read_line): Update.
27511         * NEWS: Document the changes.
27512         Reported by Eric Blake.
27513
27514 2008-06-10  Eric Blake  <ebb9@byu.net>
27515
27516         Add missing include.
27517         * tests/test-strstr.c (includes): Add <signal.h>.
27518         * tests/test-strcasestr.c (includes): Likewise.
27519         * tests/test-memmem.c (includes): Likewise.
27520
27521 2008-06-10  Bruno Haible  <bruno@clisp.org>
27522
27523         * lib/wait-process.c (wait_subprocess): Add an assertion.
27524
27525 2008-06-10  Bruno Haible  <bruno@clisp.org>
27526
27527         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27528
27529 2008-06-10  Bruno Haible  <bruno@clisp.org>
27530
27531         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27532         using alarm().
27533         * tests/test-strcasestr.c (main): Likewise.
27534         * tests/test-strstr.c (main): Likewise.
27535
27536 2008-06-09  Bruno Haible  <bruno@clisp.org>
27537
27538         Work around the Solaris 10 ACE ACLs ABI change.
27539         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27540         declare if ACL_NO_TRIVIAL is present.
27541         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27542         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27543         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27544         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27545         define if ACL_NO_TRIVIAL is present.
27546         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27547         and use the current ABI.
27548         (file_has_acl): Use same #if condition as elsewhere.
27549         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27550         in use, and use the current ABI.
27551         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27552         Reported by Jim Meyering.
27553
27554 2008-06-09  Eric Blake  <ebb9@byu.net>
27555
27556         Work around environments that (stupidly) ignore SIGALRM.
27557         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27558         before using alarm().
27559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27561         Reported by Ian Beckwith <ianb@erislabs.net>.
27562
27563         Produce autobuild blurb earlier in log.
27564         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27565
27566 2008-06-09  Jim Meyering  <meyering@redhat.com>
27567         and OndÅ™ej Vašík  <ovasik@redhat.com>
27568
27569         utimens.c: correct kernel bug work-around
27570         OndÅ™ej Vašík found that the invalid return value of 280 indicates
27571         failure, not success, and the kernel bug we're trying to work
27572         around affects not just the utimensat call, but also the fallback
27573         futimens call.
27574         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27575         not success.
27576         [HAVE_FUTIMENS]: Use the same work-around, here.
27577
27578 2008-06-09  Jim Meyering  <meyering@redhat.com>
27579
27580         add more guards around definition of ACE_-related code
27581         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27582         ALLOW and ACE_OWNER are also defined.
27583
27584 2008-06-08  Bruno Haible  <bruno@clisp.org>
27585
27586         * lib/acl-internal.h: Add me as co-author.
27587         * lib/file-has-acl.c: Likewise.
27588         * lib/set-mode-acl.c: Likewise.
27589         * lib/copy-acl.c: Likewise.
27590
27591 2008-06-08  Bruno Haible  <bruno@clisp.org>
27592
27593         Add support for AIX ACLs.
27594         * lib/acl-internal.h (acl_nontrivial): New declaration.
27595         * lib/file-has-acl.c (acl_nontrivial): New function.
27596         (file_has_acl): Add implementation using AIX 4 ACL API.
27597         * lib/set-mode-acl.c (qset_acl): Likewise.
27598         * lib/copy-acl.c (qcopy_acl): Likewise.
27599
27600 2008-06-08  Bruno Haible  <bruno@clisp.org>
27601
27602         Add support for HP-UX ACLs.
27603         * lib/acl-internal.h (acl_nontrivial): New declaration.
27604         * lib/file-has-acl.c (acl_nontrivial): New function.
27605         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27606         * lib/set-mode-acl.c (qset_acl): Likewise.
27607         * lib/copy-acl.c (qcopy_acl): Likewise.
27608
27609 2008-06-08  Bruno Haible  <bruno@clisp.org>
27610
27611         Add support for Cygwin ACLs.
27612         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27613         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27614         the chmod_or_fchmod call.
27615         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27616
27617 2008-06-08  Bruno Haible  <bruno@clisp.org>
27618
27619         Fix bug with setuid modes in Solaris 10+ code.
27620         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27621         succeeded, when the mode contains some special bits.
27622
27623 2008-06-08  Bruno Haible  <bruno@clisp.org>
27624
27625         Add support for Solaris 7..10 ACLs.
27626         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27627         declarations.
27628         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27629         functions.
27630         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27631         * lib/set-mode-acl.c (qset_acl): Likewise.
27632         * lib/copy-acl.c (qcopy_acl): Likewise.
27633
27634 2008-06-08  Bruno Haible  <bruno@clisp.org>
27635
27636         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27637         declaration.
27638         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27639         (acl_access_nontrivial): Remove MacOS X case.
27640         (file_has_acl): Use acl_extended_nontrivial.
27641         * lib/copy-acl.c (qcopy_acl): Likewise.
27642
27643 2008-06-08  Bruno Haible  <bruno@clisp.org>
27644
27645         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27646
27647 2008-06-08  Jim Meyering  <meyering@redhat.com>
27648
27649         * modules/acl (Maintainer): Add Bruno Haible.
27650
27651 2008-06-07  Bruno Haible  <bruno@clisp.org>
27652
27653         Improve support for Tru64 ACLs.
27654         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27655         ACL on OSF/1.
27656
27657 2008-06-07  Bruno Haible  <bruno@clisp.org>
27658
27659         Add support for MacOS X ACLs.
27660         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27661         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27662         * lib/set-mode-acl.c (qset_acl): Likewise.
27663         * lib/copy-acl.c (qcopy_acl): Likewise.
27664
27665 2008-06-07  Bruno Haible  <bruno@clisp.org>
27666
27667         Fix memory leak introduced on 2008-05-22.
27668         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27669         use.
27670
27671 2008-06-07  Bruno Haible  <bruno@clisp.org>
27672
27673         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27674         to construct an empty ACL.
27675
27676 2008-06-07  Bruno Haible  <bruno@clisp.org>
27677
27678         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27679         precisely.
27680         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27681
27682 2008-06-07  Bruno Haible  <bruno@clisp.org>
27683
27684         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27685         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27686
27687 2008-06-07  Bruno Haible  <bruno@clisp.org>
27688
27689         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27690         regardless of POSIX.
27691         * doc/posix-functions/_longjmp.texi: Likewise.
27692         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27693         SystemV platform in this case.
27694
27695 2008-06-06  Eric Blake  <ebb9@byu.net>
27696
27697         Document abort() bugs.
27698         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27699
27700         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27701         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27702         sigsetjmp.
27703         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27704         siglongjmp, but only as a macro.
27705         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27706         is obsolete.
27707         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27708
27709         Tweak documentation to cover cygwin argz bugs.
27710         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27711         argz bug fix; no code change needed since no cygwin releases
27712         occurred between the last fix and the bug being tested.
27713         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27714         module and recently fixed cygwin bugs.
27715         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27716         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27717         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27718         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27719         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27720         Likewise.
27721         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27722         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27723         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27724         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27725         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27726         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27727         Likewise.
27728
27729         Avoid gcc warning on cygwin.
27730         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27731         !ACL_NO_TRIVIAL]: Avoid unused variable.
27732
27733 2008-06-05  Eric Blake  <ebb9@byu.net>
27734
27735         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27736         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27737         git-version-gen fails to come up with a version.
27738         Reported by Simon Josefsson.
27739
27740 2008-06-05  Jim Meyering  <meyering@redhat.com>
27741             Paul Eggert  <eggert@cs.ucla.edu>
27742
27743         utimens.c: work around a probable Linux kernel bug
27744         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27745         appears to be a kernel bug that causes utimensat to return 280
27746         instead of 0, indicating success.
27747
27748 2008-06-04  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27751         2008-06-01 commit.
27752
27753 2008-06-04  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27756         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27757         (file_has_acl): Use it. Save errno afterwards.
27758         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27759
27760 2008-06-03  Bruno Haible  <bruno@clisp.org>
27761
27762         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27763         draft code. Simplify #ifs.
27764         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27765         Put Solaris code after POSIX-draft code. Fix comments regarding
27766         Solaris 10, HP-UX. Mention Cygwin.
27767         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27768
27769 2008-06-03  Eric Blake  <ebb9@byu.net>
27770
27771         Provide fallback for older kernels.
27772         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27773         Provide runtime fallback if kernel lacks support.
27774         Reported by Mike Frysinger.
27775
27776 2008-06-02  Bruno Haible  <bruno@clisp.org>
27777
27778         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27779         it exists.
27780
27781 2008-06-02  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27784         * lib/copy-acl.c (qcopy_acl): Update comment.
27785
27786 2008-06-02  Bruno Haible  <bruno@clisp.org>
27787
27788         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27789         like ACL APIs.
27790
27791 2008-06-02  Bruno Haible  <bruno@clisp.org>
27792
27793         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27794         * tests/test-set-mode-acl.sh: Likewise.
27795         * tests/test-copy-acl.sh: Likewise.
27796         * tests/test-copy-file.sh: Likewise.
27797
27798 2008-06-02  Bruno Haible  <bruno@clisp.org>
27799
27800         * tests/test-file-has-acl.sh: Remove unused code.
27801
27802 2008-06-01  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27805         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27806         messages.
27807         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27808
27809 2008-06-01  Bruno Haible  <bruno@clisp.org>
27810
27811         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27812         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27813         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27814         APIs.
27815         * modules/acl-tests (configure.ac): Remove tests now contained in
27816         m4/acl.m4.
27817
27818 2008-06-02  Jim Meyering  <meyering@redhat.com>
27819
27820         announce-gen: use a better key-server host name
27821         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27822         it may be more consistently reliable.  Suggested by Werner Koch
27823         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27824
27825 2008-06-01  Bruno Haible  <bruno@clisp.org>
27826
27827         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27828         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27829
27830 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27831
27832         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27833
27834 2008-06-01  Bruno Haible  <bruno@clisp.org>
27835
27836         New ACL tests.
27837         * tests/test-file-has-acl.sh: New file.
27838         * tests/test-file-has-acl.c: New file.
27839         * tests/test-set-mode-acl.sh: New file.
27840         * tests/test-set-mode-acl.c: New file.
27841         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27842         * tests/test-copy-acl.c: New file.
27843         * modules/acl-tests: New file, based on modules/copy-file-tests.
27844         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27845         (Depends-on): Add acl-tests.
27846         (configure.ac): Remove checks.
27847         (Makefile.am): Don't create test-sameacls program here any more.
27848
27849 2008-06-01  Bruno Haible  <bruno@clisp.org>
27850
27851         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27852         * tests/test-sameacls.c: Include progname.h.
27853         (main): Invoke set_program_name. Portability fixes for MacOS X,
27854         Solaris, HP-UX.
27855
27856 2008-06-01  Bruno Haible  <bruno@clisp.org>
27857
27858         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27859         function.
27860         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27861
27862 2008-06-01  Bruno Haible  <bruno@clisp.org>
27863
27864         * modules/rpmatch (Depends-on): Add strdup.
27865
27866 2008-06-01  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/pipe.c: Include unistd-safer.h.
27869         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27870         * modules/pipe (Depends-on): Add unistd-safer.
27871
27872 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27873
27874         * modules/autobuild (configure.ac): Call AB_INIT.
27875
27876 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27877
27878         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27879         Suggested by Bruno Haible <bruno@clisp.org>.
27880
27881 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27882
27883         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27884         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27885         <bruno@clisp.org>.
27886
27887 2008-05-29  Eric Blake  <ebb9@byu.net>
27888
27889         Prefer new POSIX 200x interfaces over futimesat.
27890         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27891         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27892         when available.
27893         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27894
27895 2008-05-28  Bruno Haible  <bruno@clisp.org>
27896
27897         * modules/stpcpy (License): Change to LGPLv2+.
27898         Requested by David Lutterkort <dlutter@redhat.com>.
27899
27900 2008-05-27  Bruno Haible  <bruno@clisp.org>
27901
27902         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27903         current mingw.
27904         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27905
27906 2008-05-27  Bruno Haible  <bruno@clisp.org>
27907
27908         * modules/iconv_open (Link): New section, from module 'iconv'.
27909         * modules/striconv (Link): Likewise.
27910         * modules/striconveh (Link): Likewise.
27911         * modules/xstriconv (Link): Likewise.
27912         * modules/unicodeio (Link): Likewise.
27913         * modules/propername (Link): Likewise.
27914         Reported by Jim Meyering.
27915
27916 2008-05-26  Jim Meyering  <meyering@redhat.com>
27917
27918         sha256: do not artificially restrict buffer length to be < 2^32
27919         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27920         uint32_t to size_t.
27921         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27922         to match.
27923
27924         avoid unaligned access errors, e.g., on sparc
27925         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27926         direct access through a possibly-unaligned uint64* pointer.
27927         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27928         direct access through a possibly-unaligned uint32* pointer.
27929         Prompted by this patch from Tom "spot" Callaway:
27930         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27931
27932         sha512.c: fix typo in comment
27933         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27934
27935 2008-05-25  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27938         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27939         (Makefile.am): Update lib_SOURCES.
27940
27941 2008-05-25  Bruno Haible  <bruno@clisp.org>
27942
27943         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27944
27945 2008-05-25  Jim Meyering  <meyering@redhat.com>
27946
27947         useless-if-before-free: freed expr may have white-space differences
27948         * build-aux/useless-if-before-free: Recognize cases in which the
27949         freed expression differs from the tested one in embedded white
27950         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27951         $1 was used, so we can't make any regexp shy.  Improved tests now
27952         detect this.
27953
27954         useless-if-before-free: accept white space in the expression.
27955         * build-aux/useless-if-before-free: For now, any white space
27956         in the expression must be identical in the free argument.
27957
27958         useless-if-before-free: efficiency tweak
27959         * build-aux/useless-if-before-free: Make the expression-matching
27960         regexp "shy".
27961         Make the *outer* regexp shy, not the expr-matching one.
27962
27963         update code-in-comment to accept cast of free arg
27964         * build-aux/useless-if-before-free: Update regexp.
27965
27966 2008-05-25  Bruno Haible  <bruno@clisp.org>
27967
27968         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27969         * modules/copy-file-tests (Files, Makefile.am): Update.
27970         * tests/test-copy-file.c (func_test_copy): Update.
27971
27972 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27973
27974         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27975
27976 2008-05-23  Bruno Haible  <bruno@clisp.org>
27977
27978         Improve support for ACLs on OSF/1.
27979         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27980         Remove fallback for unknown flavors of ACLs.
27981
27982 2008-05-22  Bruno Haible  <bruno@clisp.org>
27983
27984         Add support for ACLs on OSF/1.
27985         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27986         replacements.
27987         (acl_free_text): New macro fallback.
27988         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27989         acl_free.
27990         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27991         acl_free_text function. Require AC_C_INLINE.
27992
27993 2008-05-22  Bruno Haible  <bruno@clisp.org>
27994
27995         Make copy_acl work on MacOS X 10.5.
27996         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27997         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27998         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27999         If MODE_INSIDE_ACL, don't assume that every system has the same text
28000         representation for ACLs as FreeBSD.
28001         * lib/copy-acl.c (copy_acl): Add support for platforms with
28002         !MODE_INSIDE_ACL.
28003         * lib/file-has-acl.c (file_has_acl): Likewise.
28004         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28005         FreeBSD, MacOS X, or IRIX, respectively.
28006
28007 2008-05-22  Bruno Haible  <bruno@clisp.org>
28008
28009         * lib/acl.h: Don't include <sys/acl.h>.
28010         (GETACLCNT): Move fallback to lib/acl-internal.h.
28011         * lib/acl-internal.h: Include <sys/acl.h> here.
28012         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28013
28014 2008-05-22  Bruno Haible  <bruno@clisp.org>
28015
28016         Split off copy_acl function to separate file.
28017         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28018         * lib/acl.c (copy_acl): Moved function to separate file.
28019         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28020         * modules/acl (Files): Add lib/copy-acl.c.
28021         (Makefiles.am): Augment lib_SOURCES.
28022
28023 2008-05-22  Bruno Haible  <bruno@clisp.org>
28024
28025         * modules/copy-file-tests: New file.
28026         * tests/test-copy-file.sh: New file.
28027         * tests/test-copy-file.c: New file.
28028         * tests/test-copy-file-sameacls.c: New file.
28029
28030 2008-05-22  Eric Blake  <ebb9@byu.net>
28031
28032         Avoid gcc warning.
28033         * tests/test-memcmp.c (main): Pass NULL indirectly.
28034
28035 2008-05-21  Bruno Haible  <bruno@clisp.org>
28036
28037         Add reference doc about ACLs.
28038         * doc/acl-resources.txt: New file.
28039         * doc/acl-cygwin.txt: New file.
28040
28041 2008-05-21  Bruno Haible  <bruno@clisp.org>
28042
28043         Avoid one more warning from gcc.
28044         * lib/vasnprintf.c (IF_LINT): Update comments.
28045         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28046
28047 2008-05-21  Jim Meyering  <meyering@redhat.com>
28048
28049         avoid a warning from gcc
28050         * lib/vasnprintf.c (IF_LINT): Define.
28051         (scale10_round_decimal_long_double):
28052         Use it to avoid a "may be used uninitialized" warning.
28053         (scale10_round_decimal_double): Likewise.
28054
28055 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28056
28057         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28058         declared.
28059
28060 2008-05-20  Bruno Haible  <bruno@clisp.org>
28061
28062         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28063         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28064
28065 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28066
28067         * modules/memcmp-tests: New file.
28068         * tests/test-memcmp.c: New file.
28069
28070 2008-05-19  Bruno Haible  <bruno@clisp.org>
28071
28072         * modules/propername (Notice, configure.ac): Put quoted "..." into
28073         --keyword option.
28074         * lib/propername.h: Update comments accordingly.
28075         Reported by Eric Blake.
28076
28077 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28078
28079         * modules/getpass-gnu (Depends-on): Add fseeko.
28080
28081 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28082
28083         * modules/base64-tests: New file.
28084
28085 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28086
28087         * lib/base64.c (base64_decode_ctx): If a decode context structure
28088         was passed in use it to ignore newlines.  If a context structure
28089         was _not_ passed in, continue to treat newlines as garbage (this
28090         is the historical behavior).  Formerly base64_decode.
28091         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28092         takes a decode context structure.
28093         * lib/base64.h (base64_decode): Macro for four-argument calls.
28094         (base64_decode_alloc): Likewise.
28095         * lib/base64.c (base64_decode_ctx): If a decode context structure
28096         was passed in use it to ignore newlines.  If a context structure
28097         was _not_ passed in, continue to treat newlines as garbage (this
28098         is the historical behavior).  Formerly base64_decode.
28099         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28100         takes a decode context structure.
28101         * lib/base64.h (base64_decode): Macro for four-argument calls.
28102         (base64_decode_alloc): Likewise.
28103
28104 2008-05-19  Jim Meyering  <meyering@redhat.com>
28105
28106         avoid a warning from gcc
28107         * lib/trim.c (IF_LINT): Define.
28108         (trim2): Use it to avoid a "may be used uninitialized" warning.
28109
28110         Fix doc typo.
28111         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28112
28113 2008-05-19  Bruno Haible  <bruno@clisp.org>
28114
28115         * doc/glibc-functions/getpass.texi: Document limits of other
28116         implementations.
28117
28118 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28119             Bruno Haible <bruno@clisp.org>
28120
28121         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28122
28123 2008-05-18  Bruno Haible  <bruno@clisp.org>
28124
28125         * modules/propername: New file, from GNU gettext.
28126         * lib/propername.h: New file, from GNU gettext.
28127         * lib/propername.c: New file, from GNU gettext.
28128         * MODULES.html.sh (Internationalization functions): Add propername.
28129
28130 2008-05-16  Jim Meyering  <meyering@redhat.com>
28131             Bruno Haible  <bruno@clisp.org>
28132
28133         Avoid some warnings from "gcc -Wshadow".
28134         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28135
28136 2008-05-15  Eric Blake  <ebb9@byu.net>
28137
28138         Extend previous patch to cygwin 1.7.0.
28139         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28140         fast implementation in cygwin >= 1.7.0.
28141         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28143
28144 2008-05-15  Bruno Haible  <bruno@clisp.org>
28145
28146         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28147         implementation in glibc >= 2.9.
28148         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28150
28151 2008-05-15  Bruno Haible  <bruno@clisp.org>
28152
28153         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28154         (Unicode string functions): Add unilbrk/*.
28155         Reported by Karl Berry.
28156
28157 2008-05-15  Eric Blake  <ebb9@byu.net>
28158
28159         Fix violation of <stdbool.h> replacement in regex.
28160         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28161         * lib/regexec.c (re_search_internal): Likewise.
28162         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28163
28164 2008-05-15  Jim Meyering  <meyering@redhat.com>
28165
28166         avoid distracting test output when git or cvs is not found
28167         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28168         * tests/test-vc-list-files-git.sh: Likewise.
28169
28170 2008-05-15  Eric Blake  <ebb9@byu.net>
28171
28172         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28173         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28174         glibc version.
28175         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28176         * doc/posix-functions/strstr.texi (strstr): Likewise.
28177         * lib/str-two-way.h (MAX): Sychronize with glibc.
28178
28179 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28180
28181         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28182         opr.ctx_type.
28183         (calc_first): Initialize constraint field.
28184         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28185         Fix grammar.
28186         (duplicate_node): Merge constraint field for all node types.
28187         (calc_eclosure_iter): Look at constraint field for all node types.
28188         * lib/regex_internal.c (create_cd_newstate): Don't look at
28189         opr.ctx_type.
28190
28191 2008-05-14  Bruno Haible  <bruno@clisp.org>
28192
28193         Help GCC to do better code generation.
28194         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28195         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28196         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28197         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28198         Declare with attribute 'malloc' if supported.
28199
28200 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28201
28202         use "echo STR|wc -c" rather than unportable "expr length STR"
28203         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28204         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28205
28206 2008-05-14  Jim Meyering  <meyering@redhat.com>
28207
28208         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28209         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28210         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28211         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28212         via Collin Lasse.
28213
28214 2008-05-14  Eric Blake  <ebb9@byu.net>
28215
28216         Avoid quadratic growth in gl_LIBSOURCES.
28217         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28218         Suggested by Bruno Haible.
28219
28220         Test xmemdup0.
28221         * modules/xmemdup0-tests: New file.
28222         * tests/test-xmemdup0.c: Likewise.
28223
28224 2008-05-13  Eric Blake  <ebb9@byu.net>
28225
28226         Split xmemdup0 into its own module.
28227         * modules/xmemdup0: New file.
28228         * lib/xmemdup0.h: Likewise.
28229         * lib/xmemdup0.c: Likewise.
28230         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28231         * lib/xalloc.h (xmemdup0): Remove.
28232         * lib/xmalloc.c (xmemdup0): Likewise.
28233
28234 2008-05-13  Eric Blake  <ebb9@byu.net>
28235             Bruno Haible  <bruno@clisp.org>
28236
28237         Reduce number of forks required during autoconf.
28238         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28239         and gl_LIBSOURCES_DIR.
28240         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28241         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28242         m4_syscmd per file.
28243         <m4_foreach_w>: Move...
28244         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28245
28246 2008-05-13  Eric Blake  <ebb9@byu.net>
28247
28248         * gnulib-tool: Fix various comment typos.
28249
28250 2008-05-12  Bruno Haible  <bruno@clisp.org>
28251
28252         Tailor the linebreaking algorithm.
28253         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28254
28255 2008-05-12  Bruno Haible  <bruno@clisp.org>
28256
28257         Update to Unicode 5.0.0.
28258         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28259         LBP_JV, LBP_JT. Redistribute values.
28260         (unilbrk_table): Change size.
28261         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28262         Unicode TR#14 rev. 22.
28263         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28264         LBP_JV, LBP_JT. Redistribute values.
28265         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28266         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28267         Update.
28268         * lib/unilbrk/lbrkprop1.h: Regenerated.
28269         * lib/unilbrk/lbrkprop2.h: Regenerated.
28270         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28271         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28272         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28273         Likewise.
28274         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28275         Likewise.
28276         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28277         result.
28278         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28279         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28280         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28281         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28282         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28283         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28284
28285 2008-05-11  Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28288
28289 2008-05-11  Bruno Haible  <bruno@clisp.org>
28290
28291         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28292         * modules/unilbrk/gen-lbrk: New file.
28293
28294 2008-05-11  Bruno Haible  <bruno@clisp.org>
28295
28296         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28297         * m4/sha512.m4 (gl_SHA512): Likewise.
28298
28299 2008-05-11  Jim Meyering  <meyering@redhat.com>
28300
28301         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28302         * modules/crypto/sha256: New file.
28303         * modules/crypto/sha512: Likewise.
28304         * lib/sha256.c: Likewise.
28305         * lib/sha256.h: Likewise.
28306         * lib/sha512.c: Likewise.
28307         * lib/sha512.h: Likewise.
28308         * lib/u64.h: Likewise.
28309         * m4/sha256.m4: Likewise.
28310         * m4/sha512.m4: Likewise.
28311         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28312
28313 2008-05-10  Bruno Haible  <bruno@clisp.org>
28314
28315         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28316         (Input/Output <stdio.h>): Add xprintf.
28317         (Signal handling <signal.h>): Add strsignal.
28318         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28319         (Core language properties): Add func.
28320         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28321         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28322         strings.
28323         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28324         (Input/output): New section.
28325         (File system functions): Add openat-die, stat-macros.
28326         (Networking functions): Add sockets.
28327         (Unicode string functions): Add unictype/*.
28328         (Support for building libraries and executables): Add gperf.
28329         (Support for building documentation): Add agpl-3.0.
28330         (Misc): Add nocrash.
28331
28332 2008-05-10  Bruno Haible  <bruno@clisp.org>
28333
28334         * modules/unictype/gen-ctype: New file.
28335
28336 2008-05-10  Jim Meyering  <meyering@redhat.com>
28337
28338         Make chdir-safer.c more efficient on a system with no symlinks.
28339         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28340         also if ELOOP is zero.  Suggested by Bruno Haible.
28341
28342         Make chdir-safer.c slightly safer.
28343         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28344         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28345
28346         Avoid compile failure on systems without ELOOP (like mingw).
28347         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28348         Reported by Bruno Haible.
28349
28350 2008-05-10  Bruno Haible  <bruno@clisp.org>
28351
28352         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28353         (is_utf8_encoding): Use a case-insensitive comparison.
28354         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28355         streq.
28356
28357 2008-05-10  Bruno Haible  <bruno@clisp.org>
28358
28359         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28360         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28361         * lib/unilbrk/ulc-common.h (iconv_string_length,
28362         iconv_string_keeping_offsets): Remove declarations.
28363         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28364         Don't include <iconv.h>, streq.h, xsize.h.
28365         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28366         conversion.
28367         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28368         <iconv.h>, streq.h, xsize.h.
28369         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28370         conversion.
28371         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28372         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28373         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28374         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28375
28376 2008-05-10  Bruno Haible  <bruno@clisp.org>
28377
28378         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28379         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28380
28381         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28382         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28383
28384         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28385         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28386
28387         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28388         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28389
28390         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28391         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28392
28393         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28394         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28395
28396         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28397         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28398
28399         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28400         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28401
28402 2008-05-10  Bruno Haible  <bruno@clisp.org>
28403
28404         Split up 'linebreak' module.
28405         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28406         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28407         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28408         modifications.
28409         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28410         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28411         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28412         lib/linebreak.c.
28413         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28414         lib/linebreak.c.
28415         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28416         lib/linebreak.c.
28417         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28418         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28419         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28420         lib/linebreak.c.
28421         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28422         lib/linebreak.c.
28423         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28424         lib/linebreak.c.
28425         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28426         lib/linebreak.c.
28427         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28428         lib/linebreak.c.
28429         * modules/unilbrk/base: New file.
28430         * modules/unilbrk/tables: New file.
28431         * modules/unilbrk/u8-possible-linebreaks: New file.
28432         * modules/unilbrk/u16-possible-linebreaks: New file.
28433         * modules/unilbrk/u32-possible-linebreaks: New file.
28434         * modules/unilbrk/ulc-common: New file.
28435         * modules/unilbrk/ulc-possible-linebreaks: New file.
28436         * modules/unilbrk/u8-width-linebreaks: New file.
28437         * modules/unilbrk/u16-width-linebreaks: New file.
28438         * modules/unilbrk/u32-width-linebreaks: New file.
28439         * modules/unilbrk/ulc-width-linebreaks: New file.
28440         * lib/linebreak.h: Remove file.
28441         * lib/linebreak.c: Remove file.
28442         * m4/linebreak.m4: Remove file.
28443         * modules/linebreak: Remove file.
28444         * NEWS: Mention the changes.
28445
28446 2008-05-09  Eric Blake  <ebb9@byu.net>
28447
28448         Add xmemdup0.
28449         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28450         implementation.
28451         * lib/xmalloc.c (xmemdup0): New C implementation.
28452
28453 2008-05-08  Bruno Haible  <bruno@clisp.org>
28454
28455         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28456
28457 2008-05-07  Eric Blake  <ebb9@byu.net>
28458
28459         Support cross-compilation of <wctype.h>.
28460         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28461         AC_CACHE_CHECK.
28462
28463 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28464
28465         * build-aux/vc-list-files: Add support for bzr.
28466
28467 2008-05-03  Jim Meyering  <meyering@redhat.com>
28468
28469         avoid failed assertion with tight malloc
28470         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28471
28472 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28473
28474         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28475         are needed from arpa/inet.h.
28476         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28477         Reported by Bruno Haible.
28478
28479 2008-05-02  Jim Meyering  <meyering@redhat.com>
28480
28481         avoid compilation error on FreeBSD 6
28482         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28483
28484 2008-05-01  Jim Meyering  <meyering@redhat.com>
28485
28486         useless-if-before-free: correct --help's exit status description
28487         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28488         for one or more matches, etc.  Reported by Bruno Haible.
28489
28490         vc-list-files: make the stand-alone gnulib test work
28491         * modules/vc-list-files-tests (configure.ac):
28492         Define and AC_SUBST abs_aux_dir.
28493         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28494         $(abs_top_srcdir) to each script and having each of them
28495         duplicate the work of setting PATH, set PATH here, using
28496         the new variable, abs_aux_dir instead.
28497         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28498         * tests/test-vc-list-files-git.sh: Likewise.
28499         Reported by Bruno Haible.
28500
28501 2008-05-01  Bruno Haible  <bruno@clisp.org>
28502
28503         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28504         reallocation. Rename 'done' to 'found_delimiter'.
28505
28506 2008-05-01  Jim Meyering  <meyering@redhat.com>
28507
28508         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28509         * build-aux/vc-list-files: Use `...`, not $(...).
28510
28511 2008-04-30  Jim Meyering  <meyering@redhat.com>
28512
28513         add tests for vc-list-files
28514         * modules/vc-list-files-tests: New module.
28515         * tests/test-vc-list-files-cvs.sh: New file.
28516         * tests/test-vc-list-files-git.sh: New file.
28517
28518         avoid a warning from gcc
28519         * lib/getndelim2.c (IF_LINT): Define.
28520         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28521
28522         vc-list-files: work properly with build-aux/cvsu, too
28523         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28524         to all cvs-based clauses.
28525
28526         vc-list-files: work properly in the CVS+awk case, too
28527         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28528
28529         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28530         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28531         take more than one file argument, so .  Add quotes, just in case $dir
28532         ever contains a shell meta-character.  Prompted by Soren Hansen in
28533         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28534
28535 2008-04-29  Eric Blake  <ebb9@byu.net>
28536
28537         Optimize getndelim2 to use block operations when possible.
28538         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28539         freadseek, and memchr2.
28540         * lib/getndelim2.c (getndelim2): Use them for block reads.
28541
28542 2008-04-29  Bruno Haible  <bruno@clisp.org>
28543
28544         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28545         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28546         * modules/inet_ntop (Depends-on): Add extensions.
28547         * modules/inet_pton (Depends-on): Likewise.
28548         Reported by Simon Josefsson.
28549
28550 2008-04-29  Jim Meyering  <meyering@redhat.com>
28551
28552         When the is more than one match in a block, match all of them.
28553         * build-aux/useless-if-before-free: Iterate through each block
28554         until there are no more matches.
28555
28556         Fix broken useless-if-before-free script.
28557         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28558         the expression to match cast of argument to free-like function.
28559
28560 2008-04-29  Eric Blake  <ebb9@byu.net>
28561
28562         Use new header.
28563         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28564
28565 2008-04-29  Jim Meyering  <meyering@redhat.com>
28566
28567         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28568         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28569         by gnulib to exist and to declare e.g., inet_ntop.
28570         Don't include "inet_ntop.h", now removed.
28571
28572         * m4/arpa_inet_h.m4: Remove trailing blanks.
28573
28574 2008-04-29  Eric Blake  <ebb9@byu.net>
28575
28576         Silence valgrind on safe reads beyond potential array bounds.
28577         * lib/rawmemchr.valgrind: New file.
28578         * lib/strchrnul.valgrind: Likewise.
28579         * modules/rawmemchr (Files): Distribute new file.
28580         * modules/strchrnul (Files): Likewise.
28581         Suggested by Bruno Haible.
28582
28583 2008-04-29  Bruno Haible  <bruno@clisp.org>
28584
28585         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28586         (inet_ntop, inet_pton): Change portability warning's wording.
28587         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28588         Invoke gl_CHECK_NEXT_HEADERS.
28589         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28590         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28591         set ARPA_INET_H.
28592         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28593         * modules/arpa_inet (Description): No longer only for systems that
28594         lack it.
28595         (Depends-on): Add include_next.
28596         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28597         HAVE_ARPA_INET_H.
28598
28599 2008-04-29  Jim Meyering  <meyering@redhat.com>
28600
28601         * modules/mkdir (License): Re-license as LGPLv2+.
28602
28603 2008-04-29  Bruno Haible  <bruno@clisp.org>
28604
28605         * modules/rawmemchr (Maintainer): Set to Eric.
28606         * modules/strchrnul (Maintainer): Likewise.
28607
28608 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28609
28610         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28611         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28612
28613         * modules/arpa_inet (arpa/inet.h): Use them.
28614
28615 2008-04-28  Eric Blake  <ebb9@byu.net>
28616
28617         Test getndelim2.
28618         * modules/getndelim2-tests: New file.
28619         * tests/test-getndelim2.c: Likewise.
28620         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28621         stream.
28622         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28623
28624         * MODULES.html.sh: Document new module.
28625
28626 2008-04-20  Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/c-stack.c (die): Use raise.
28629         * modules/c-stack (Depends-on): Add raise.
28630
28631 2008-04-28  Bruno Haible  <bruno@clisp.org>
28632
28633         Expect rpmatch to be declared.
28634         * lib/yesno.c (rpmatch): Remove declaration.
28635
28636         Declare rpmatch.
28637         * lib/stdlib.in.h (rpmatch): New declaration.
28638         * lib/rpmatch.c: Include <stdlib.h> first.
28639         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28640         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28642         HAVE_RPMATCH.
28643         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28645         (Include): Set to <stdlib.h>.
28646         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28647         HAVE_RPMATCH.
28648         * NEWS: Document the change.
28649
28650 2008-04-28  Bruno Haible  <bruno@clisp.org>
28651
28652         Change rpmatch to use nl_langinfo when appropriate.
28653         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28654         (N_): New macro.
28655         (localized_pattern): New function/macro.
28656         (try): Remove match, nomatch arguments. Copy the pattern into safe
28657         memory before caching it.
28658         (rpmatch): Use localized_pattern. Add translator comments.
28659         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28660         Suggested by Eric Blake.
28661         * modules/rpmatch (Depends-on): Add stdbool.
28662
28663 2008-04-28  Eric Blake  <ebb9@byu.net>
28664
28665         Add rawmemchr module, matching glibc.
28666         * modules/string (Makefile.am): New indicator.
28667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28668         * lib/string.in.h (rawmemchr): Declare when appropriate.
28669         * modules/rawmemchr: New file.
28670         * m4/rawmemchr.m4: Likewise.
28671         * lib/rawmemchr.c: Likewise.
28672         * modules/rawmemchr-tests: Likewise.
28673         * tests/test-rawmemchr.c: Likewise.
28674         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28675         module.
28676         * modules/strchrnul (Depends-on): Add rawmemchr.
28677         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28678
28679         Whitespace cleanup.
28680         * tests/test-strchrnul.c: Reindent.
28681         * lib/strchrnul.c: Likewise.
28682
28683         Optimize and test strchrnul.
28684         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28685         * modules/strchrnul-tests: New file.
28686         * tests/test-strchrnul.c: Likewise.
28687
28688         Remove intprops dependency.
28689         * modules/memchr (Depends-on): Remove intprops.
28690         * modules/memrchr (Depends-on): Likewise.
28691         * modules/memchr2 (Depends-on): Likewise.
28692         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28693         * lib/memrchr.c (__memrchr): Likewise.
28694         * lib/memrchr2.c (memchr2): Likewise.
28695         Reported by Simon Josefsson.
28696
28697 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28698
28699         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28700         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28701
28702 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28703
28704         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28705
28706         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28707
28708         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28709
28710         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28711         declarations.
28712         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28713
28714         * m4/inet_pton.m4: Don't check for header files.
28715
28716         * m4/inet_ntop.m4: Don't check for header files.
28717
28718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28719
28720         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28721         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28722         trigger for cygwin).
28723         Reported by Bruno Haible  <bruno@clisp.org>.
28724
28725 2008-04-28  Bruno Haible  <bruno@clisp.org>
28726
28727         * doc/posix-functions/strdup.texi: Mention mingw problem.
28728
28729 2008-04-27  Bruno Haible  <bruno@clisp.org>
28730
28731         * modules/stat-time-tests (Depends-on): Add sleep.
28732         * tests/test-stat-time.c (force_unlink): New function.
28733         (cleanup): Use it.
28734         (test_mtime): Remove the ctime related tests.
28735         (test_ctime): New function, containing the ctime related tests.
28736         (main): Call test_ctime, except on native Windows platforms.
28737
28738 2008-04-27  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/rpmatch.c (rpmatch): Add some comments.
28741         Reported by James Youngman <jay@gnu.org>.
28742
28743 2008-04-27  Bruno Haible  <bruno@clisp.org>
28744
28745         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28746         quiet NaNs.
28747
28748 2008-04-27  Bruno Haible  <bruno@clisp.org>
28749
28750         Make test-yesno.sh work on mingw.
28751         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28752         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28753         (main): Set stdin to binary mode.
28754         * modules/yesno-tests (Depends-on): Add binary-io.
28755
28756 2008-04-27  Bruno Haible  <bruno@clisp.org>
28757
28758         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28759         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28760         argument that lie outside the IEEE 854 domain.
28761         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28762         (gl_ISFINITE): Use it.
28763         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28764
28765 2008-04-27  Bruno Haible  <bruno@clisp.org>
28766
28767         Allow local renaming in config.h.
28768         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28769
28770 2008-04-27  Bruno Haible  <bruno@clisp.org>
28771
28772         * lib/memchr.c (__memchr): Change type of 'i'.
28773         * lib/memchr2.c (memchr2): Likewise.
28774
28775 2008-04-26  Eric Blake  <ebb9@byu.net>
28776         and Bruno Haible  <bruno@clisp.org>
28777
28778         Optimize and test memrchr.
28779         * modules/memrchr (Depends-on): Add intprops.
28780         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28781         * modules/memrchr-tests: New file.
28782         * tests/test-memrchr.c: New file.
28783
28784 2008-04-26  Bruno Haible  <bruno@clisp.org>
28785
28786         Add tentative support for DragonFly BSD.
28787         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28788         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28789         fp.
28790         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28791         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28792         * lib/fpurge.c (fpurge): Likewise.
28793         * lib/freadable.c (freaadable): Likewise.
28794         * lib/freadahead.c (freadahead): Likewise.
28795         * lib/freading.c (freading): Likewise.
28796         * lib/freadptr.c (freadptr): Likewise.
28797         * lib/freadseek.c (freadptrinc): Likewise.
28798         * lib/fseeko.c (fseeko): Likewise.
28799         * lib/fseterr.c (fseterr): Likewise.
28800         * lib/fwritable.c (fwritable): Likewise.
28801         * lib/fwriting.c (fwriting): Likewise.
28802
28803 2008-04-26  Bruno Haible  <bruno@clisp.org>
28804
28805         * lib/stdio-impl.h: New file.
28806         * lib/fbufmode.c: Include stdio-impl.h.
28807         (fbufmode): Use fp_, remove redundant #defines.
28808         * lib/fflush.c: Include stdio-impl.h.
28809         (clear_ungetc_buffer): Remove redundant #defines.
28810         * lib/fpurge.c: Include stdio-impl.h.
28811         (fpurge): Remove redundant #defines.
28812         * lib/freadable.c: Include stdio-impl.h.
28813         (freadable): Remove redundant #defines.
28814         * lib/freadahead.c: Include stdio-impl.h.
28815         (freadahead): Remove redundant #defines.
28816         * lib/freading.c: Include stdio-impl.h.
28817         (freading): Remove redundant #defines.
28818         * lib/freadptr.c: Include stdio-impl.h.
28819         (freadptr): Remove redundant #defines.
28820         * lib/freadseek.c: Include stdio-impl.h.
28821         (freadptrinc): Remove redundant #defines.
28822         * lib/fseeko.c: Include stdio-impl.h.
28823         (rpl_fseeko): Remove redundant #defines.
28824         * lib/fseterr.c: Include stdio-impl.h.
28825         (fseterr): Remove redundant #defines.
28826         * lib/fwritable.c: Include stdio-impl.h.
28827         (fwritable: Remove redundant #defines.
28828         * lib/fwriting.c: Include stdio-impl.h.
28829         (fwriting): Remove redundant #defines.
28830         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28831         * modules/fflush (Files): Likewise.
28832         * modules/fpurge (Files): Likewise.
28833         * modules/freadable (Files): Likewise.
28834         * modules/freadahead (Files): Likewise.
28835         * modules/freading (Files): Likewise.
28836         * modules/freadptr (Files): Likewise.
28837         * modules/freadseek (Files): Likewise.
28838         * modules/fseeko (Files): Likewise.
28839         * modules/fseterr (Files): Likewise.
28840         * modules/fwritable (Files): Likewise.
28841         * modules/fwriting (Files): Likewise.
28842
28843 2008-04-26  Bruno Haible  <bruno@clisp.org>
28844
28845         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28846         restore_seek_optimization, update_fpos_cache): New functions, extracted
28847         from rpl_fflush.
28848         (rpl_fflush): Use them.
28849         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28850         (gl_REPLACE_FFLUSH): Use it.
28851
28852 2008-04-26  Bruno Haible  <bruno@clisp.org>
28853
28854         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28855         on Solaris.
28856         * tests/test-xstrtoimax.sh: Likewise.
28857         * tests/test-xstrtoumax.sh: Likewise.
28858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28859
28860 2008-04-26  Bruno Haible  <bruno@clisp.org>
28861
28862         * modules/memchr-tests: New file.
28863         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28864
28865 2008-04-26  Eric Blake  <ebb9@byu.net>
28866             Bruno Haible  <bruno@clisp.org>
28867
28868         * lib/memchr.c: Include intprops.h.
28869         (__memchr): Optimize parallel detection of matching bytes. Rename local
28870         variables. Add explanatory comments.
28871
28872 2008-04-26  Bruno Haible  <bruno@clisp.org>
28873
28874         Fix module 'memchr', broken since 2000-10-28.
28875         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28876
28877 2008-04-26  Bruno Haible  <bruno@clisp.org>
28878
28879         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28880         comments.
28881
28882 2008-04-25  Eric Blake  <ebb9@byu.net>
28883
28884         Use native fstatat on cygwin 1.7.0.
28885         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28886         first.
28887
28888 2008-04-23  Eric Blake  <ebb9@byu.net>
28889
28890         Improve memchr2 performance.
28891         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28892         NUL bytes.
28893         * modules/memchr2 (Depends-on): Use intprops.h.
28894
28895 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28896
28897         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28898         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28899         <blp@cs.stanford.edu>.
28900
28901 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28902
28903         * lib/arpa_inet.in.h: New file.
28904
28905         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28906         (Makefile.am): Sed in substitute header file.
28907
28908         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28909         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28910
28911         * modules/inet_ntop (configure.ac): Use
28912         gl_ARPA_INET_MODULE_INDICATOR.
28913
28914         * modules/inet_pton (configure.ac): Use
28915         gl_ARPA_INET_MODULE_INDICATOR.
28916
28917 2008-04-22  Jim Meyering  <meyering@redhat.com>
28918
28919         * modules/verify (License): Re-license as LGPLv2+.
28920
28921 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28922
28923         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28924         parameter to void* as per POSIX standard (MinGW uses char*).
28925
28926 2008-04-21  Bruno Haible  <bruno@clisp.org>
28927
28928         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28929         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28930         Define to replacements if REPLACE_ISWCNTRL is 1.
28931         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28932         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28933         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28934         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28935         what it fixes.
28936         * doc/posix-functions/iswalpha.texi: Likewise.
28937         * doc/posix-functions/iswblank.texi: Likewise.
28938         * doc/posix-functions/iswcntrl.texi: Likewise.
28939         * doc/posix-functions/iswdigit.texi: Likewise.
28940         * doc/posix-functions/iswgraph.texi: Likewise.
28941         * doc/posix-functions/iswlower.texi: Likewise.
28942         * doc/posix-functions/iswprint.texi: Likewise.
28943         * doc/posix-functions/iswpunct.texi: Likewise.
28944         * doc/posix-functions/iswspace.texi: Likewise.
28945         * doc/posix-functions/iswupper.texi: Likewise.
28946         * doc/posix-functions/iswxdigit.texi: Likewise.
28947         Reported by Alain Guibert.
28948
28949 2008-04-21  Bruno Haible  <bruno@clisp.org>
28950
28951         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28952         Patch by Alain Guibert.
28953
28954 2008-04-21  Bruno Haible  <bruno@clisp.org>
28955
28956         Fix test failures on mingw.
28957         * tests/test-xstrtol.c (print_no_progname): New function.
28958         (main): Install it in error_print_progname hook.
28959         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28960         * tests/test-xstrtoimax.sh: Likewise.
28961         * tests/test-xstrtoumax.sh: Likewise.
28962
28963 2008-04-21  Bruno Haible  <bruno@clisp.org>
28964
28965         Fix test failure on mingw.
28966         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28967
28968 2008-04-21  Bruno Haible  <bruno@clisp.org>
28969
28970         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28971         Actually assign a value.
28972
28973 2008-04-20  Bruno Haible  <bruno@clisp.org>
28974
28975         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28976         take 2.
28977         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28978         'canonicalize-lgpl' module is also used.
28979         * lib/canonicalize-lgpl.c: Undo last change.
28980         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28981
28982 2008-04-20  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28985         config.h. Provide _mkdir based fallback for mingw.
28986         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28987         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28988         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28989         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28990         rather than defining mkdir in config.h.
28991         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28992         (gl_SYS_STAT_H_DEFAULTS): New macro.
28993         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28994         HAVE_IO_H any more.
28995         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28996         HAVE_DECL_MKDIR and HAVE_IO_H.
28997
28998 2008-04-20  Bruno Haible  <bruno@clisp.org>
28999
29000         * lib/isapipe.c: Port to native Windows platforms.
29001
29002 2008-04-20  Bruno Haible  <bruno@clisp.org>
29003
29004         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29005
29006 2008-04-21  Eric Blake  <ebb9@byu.net>
29007
29008         Work around preprocessors that don't handle UINTMAX_MAX.
29009         * lib/memchr2.c (memchr2): Avoid embedded #if.
29010         Reported by Alain Guibert, fix suggested by Bruno Haible.
29011
29012 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29013
29014         * doc/posix-functions/strftime.texi (strftime): Explain better
29015         Windows incompatibility.  Suggested by Micah Cowan
29016         <micah@cowan.name>.
29017
29018 2008-04-20  Bruno Haible  <bruno@clisp.org>
29019
29020         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29021         unistr/u8-mblen.
29022
29023 2008-04-20  Bruno Haible  <bruno@clisp.org>
29024
29025         Fix test failure on platforms with non-GNU iconv.
29026         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29027         (U_TO_U8): Use it, rather than u16_to_u8.
29028         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29029         units at the end of the input string.
29030         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29031
29032 2008-04-20  Bruno Haible  <bruno@clisp.org>
29033
29034         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29035         when the resulting length is 0.
29036         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29037
29038 2008-04-20  Bruno Haible  <bruno@clisp.org>
29039
29040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29041         works.
29042         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29043
29044 2008-04-20  Bruno Haible  <bruno@clisp.org>
29045
29046         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29047         * modules/tsearch-tests (configure.ac): Test for initstate function.
29048
29049 2008-04-20  Bruno Haible  <bruno@clisp.org>
29050
29051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29052         for nlink_t if missing.
29053         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29054
29055 2008-04-19  Bruno Haible  <bruno@clisp.org>
29056
29057         Work around snprintf bug on Linux libc5.
29058         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29060         gl_SNPRINTF_SIZE1.
29061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29062         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29063         that test failed.
29064         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29065         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29066         * modules/snprintf (Files): Add m4/printf.m4.
29067         * modules/vsnprintf (Files): Likewise.
29068         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29069         * doc/posix-functions/vsnprintf.texi: Likewise.
29070
29071 2008-04-19  Bruno Haible  <bruno@clisp.org>
29072
29073         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29074         from 0.0058 to less than 10^-7.
29075
29076 2008-04-19  Bruno Haible  <bruno@clisp.org>
29077
29078         Fix rounding when a precision is given.
29079         * lib/vasnprintf.c (is_borderline): New function.
29080         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29081         9...9x.
29082         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29083         %e, %g.
29084         * tests/test-vasprintf-posix.c (test_function): Likewise.
29085         * tests/test-snprintf-posix.h (test_function): Likewise.
29086         * tests/test-sprintf-posix.h (test_function): Likewise.
29087         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29088         * tests/test-printf-posix.h (test_function): Likewise.
29089         * tests/test-printf-posix.output: Update.
29090         Reported by John Darrington <john@darrington.wattle.id.au> via
29091         Ben Pfaff <blp@cs.stanford.edu>.
29092
29093 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29094
29095         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29096         Suggested by Bruno Haible <bruno@clisp.org>.
29097
29098 2008-04-17  Bruno Haible  <bruno@clisp.org>
29099
29100         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29101         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29102         implementation.
29103         Patch by Bruce Merry <bmerry@gmail.com>.
29104
29105 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29106
29107         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29108         doesn't work under Windows.
29109
29110 2008-04-16  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29113         New macros.
29114         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29115         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29116         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29117         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29118         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29119         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29120         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29121         macros.
29122         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29123         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29124         Northern Sotho, Uighur.
29125
29126 2008-04-16  Bruno Haible  <bruno@clisp.org>
29127
29128         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29129         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29130         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29131         Reported by Daniel Bergström <daniel@octocode.com>.
29132
29133 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29134             Bruno Haible  <bruno@clisp.org>
29135
29136         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29137         function.
29138         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29139         New functions, mostly extracted from gl_locale_name_default.
29140         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29141
29142 2008-04-16  Eric Blake  <ebb9@byu.net>
29143
29144         Adjust strtod detection to catch glibc 2.7 bug.
29145         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29146         Reported by John Gatewood Ham.
29147
29148 2008-04-16  Bruno Haible  <bruno@clisp.org>
29149
29150         Add tentative support for Linux libc5.
29151         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29152         * lib/fpurge.c (fpurge): Likewise.
29153         * lib/freadable.c (freadable): Likewise.
29154         * lib/freadahead.c (freadahead): Likewise.
29155         * lib/freading.c (freading): Likewise.
29156         * lib/freadptr.c (freadptr): Likewise.
29157         * lib/freadseek.c (freadptrinc): Likewise.
29158         * lib/fseeko.c (rpl_fseeko): Likewise.
29159         * lib/fseterr.c (fseterr): Likewise.
29160         * lib/fwritable.c (fwritable): Likewise.
29161         * lib/fwriting.c (fwriting): Likewise.
29162         Reported by Alain Guibert <alguibert+bts@free.fr>.
29163
29164 2008-04-15  Bruno Haible  <bruno@clisp.org>
29165
29166         * modules/mathl (configure.ac): Define module indicator.
29167
29168 2008-04-15  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/logl.c (logl): Remove unused variables.
29171
29172 2008-04-15  Bruno Haible  <bruno@clisp.org>
29173
29174         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29175         fails.
29176
29177 2008-04-15  Bruno Haible  <bruno@clisp.org>
29178
29179         * lib/trim.c (trim2): Fix argument of isspace() macro.
29180
29181 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29182
29183         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29184         to 0.
29185         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29186
29187 2008-04-14  Bruno Haible  <bruno@clisp.org>
29188
29189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29190         AC_LANG_PROGRAM argument.
29191         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29192         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29194         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29195         * m4/math_h.m4 (gl_MATH_H): Likewise.
29196         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29198         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29199         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29200         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29201         * m4/regex.m4 (gl_REGEX): Likewise.
29202         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29203         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29205         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29207         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29210
29211 2008-04-14  Jim Meyering  <meyering@redhat.com>
29212
29213         test-strtod: fix typos: s/abs/fabs/
29214         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29215
29216 2008-04-13  Bruno Haible  <bruno@clisp.org>
29217
29218         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29219         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29220         module is also used and while not building the reloc-wrapper.
29221
29222 2008-04-13  Bruno Haible  <bruno@clisp.org>
29223
29224         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29225
29226 2008-04-13  Bruno Haible  <bruno@clisp.org>
29227
29228         Fix AIX compilation failure introduced on 2008-04-02.
29229         * tests/test-frexp.c (exp): Undefine before redefining.
29230         * tests/test-frexpl.c (exp): Likewise.
29231
29232 2008-04-13  Bruno Haible  <bruno@clisp.org>
29233
29234         Work around a HP-UX stdio bug.
29235         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29236         * tests/test-ftello.c (main): Likewise.
29237         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29238         * doc/posix-functions/ftello.texi: Likewise.
29239
29240 2008-04-13  Bruno Haible  <bruno@clisp.org>
29241
29242         Make test-signbit pass on HP-UX/hppa.
29243         * tests/test-signbit.c (minus_zerol): New variable.
29244         (test_signbitl): Use it.
29245
29246 2008-04-13  Bruno Haible  <bruno@clisp.org>
29247
29248         Make truncl work on OSF/1 4.0.
29249         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29250         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29251         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29253         HAVE_DECL_TRUNCL.
29254         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29255         HAVE_DECL_TRUNCL.
29256         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29257
29258 2008-04-13  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29261
29262 2008-04-13  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29265         expression, so as to avoid HP-UX 11 cc compiler bug.
29266
29267 2008-04-13  Bruno Haible  <bruno@clisp.org>
29268
29269         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29270
29271 2008-04-13  Bruno Haible  <bruno@clisp.org>
29272
29273         * lib/git-merge-changelog.c: Remove empty declaration outside of
29274         functions.
29275
29276 2008-04-13  Bruno Haible  <bruno@clisp.org>
29277
29278         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29279
29280 2008-04-13  Bruno Haible  <bruno@clisp.org>
29281
29282         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29283         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29285         also if it exists but lacks definitions of the SHUT_* macros.
29286         * modules/sys_socket (Description): Update.
29287         Reported by Elbert Pol <e.pol@chello.nl>.
29288
29289 2008-04-13  Bruno Haible  <bruno@clisp.org>
29290
29291         * lib/localcharset.c (OS2): Don't redefine if already defined.
29292         Reported by Elbert Pol <e.pol@chello.nl>.
29293
29294 2008-04-13  Bruno Haible  <bruno@clisp.org>
29295
29296         * lib/binary-io.h [__EMX__]: Include <io.h>.
29297         Reported by Elbert Pol <e.pol@chello.nl>.
29298
29299 2008-04-12  Bruno Haible  <bruno@clisp.org>
29300
29301         * lib/fpucw.h: Enable the definitions also for x86_64.
29302         Needed for NetBSD/x86_64.
29303         Reported by Thomas Klausner <tk@giga.or.at>.
29304
29305 2008-04-12  Bruno Haible  <bruno@clisp.org>
29306
29307         * tests/test-strtod.c: Include isnand.h.
29308         (main): Use isnand instead of isnan.
29309         Reported by Jim Meyering.
29310
29311 2008-04-12  Bruno Haible  <bruno@clisp.org>
29312
29313         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29314         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29315
29316 2008-04-12  Jim Meyering  <meyering@redhat.com>
29317
29318         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29319
29320 2008-04-12  Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29323         Reported by Elbert Pol <e.pol@chello.nl>.
29324
29325 2008-04-12  Eric Blake  <ebb9@byu.net>
29326
29327         Work around Solaris 10 math.h bug.
29328         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29329         (gl_MATH_H_DEFAULTS): Set up default.
29330         * modules/math (Makefile.am): Replace new indicators.
29331         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29332         * tests/test-math.c (main): Test this.
29333         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29334         * doc/posix-headers/math.texi (math.h): Mention bug.
29335         Reported by Nelson H. F. Beebe and Jim Meyering.
29336
29337 2008-04-11  Bruno Haible  <bruno@clisp.org>
29338
29339         Adapt to future versions of Apple GCC.
29340         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29341         Reported by Peter O'Gorman <peter@pogma.com>.
29342
29343 2008-04-11  Bruno Haible  <bruno@clisp.org>
29344
29345         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29346
29347 2008-04-11  Bruno Haible  <bruno@clisp.org>
29348
29349         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29350
29351         * modules/getaddrinfo-tests (Makefile.am): Define
29352         test_getaddrinfo_LDADD.
29353
29354 2008-04-11  Bruno Haible  <bruno@clisp.org>
29355
29356         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29357         (init): Fix syntax error.
29358         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29359         is declared.
29360
29361 2008-04-11  Bruno Haible  <bruno@clisp.org>
29362
29363         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29364         * modules/glob (Depends-on): Add stdbool.
29365
29366 2008-04-11  Bruno Haible  <bruno@clisp.org>
29367
29368         * lib/trim.c: Include <string.h>.
29369
29370 2008-04-11  Eric Blake  <ebb9@byu.net>
29371
29372         Avoid compile failure on OS/2.
29373         * lib/regex_internal.h (internal_function): Disable optimization
29374         on OS/2 (__EMX__), where it caused compiler error.
29375         Reported by Elbert Pol.
29376
29377 2008-04-11  Bruno Haible  <bruno@clisp.org>
29378
29379         Flush the standard error stream before aborting. Needed on mingw.
29380         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29381         * tests/test-array_list.c (ASSERT): Likewise.
29382         * tests/test-array_oset.c (ASSERT): Likewise.
29383         * tests/test-avltree_list.c (ASSERT): Likewise.
29384         * tests/test-avltree_oset.c (ASSERT): Likewise.
29385         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29386         * tests/test-binary-io.c (ASSERT): Likewise.
29387         * tests/test-byteswap.c (ASSERT): Likewise.
29388         * tests/test-c-ctype.c (ASSERT): Likewise.
29389         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29390         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29391         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29392         * tests/test-c-strstr.c (ASSERT): Likewise.
29393         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29394         * tests/test-canonicalize.c (ASSERT): Likewise.
29395         * tests/test-carray_list.c (ASSERT): Likewise.
29396         * tests/test-ceilf1.c (ASSERT): Likewise.
29397         * tests/test-ceilf2.c (ASSERT): Likewise.
29398         * tests/test-ceill.c (ASSERT): Likewise.
29399         * tests/test-count-one-bits.c (ASSERT): Likewise.
29400         * tests/test-fbufmode.c (ASSERT): Likewise.
29401         * tests/test-fflush2.c (ASSERT): Likewise.
29402         * tests/test-floorf1.c (ASSERT): Likewise.
29403         * tests/test-floorf2.c (ASSERT): Likewise.
29404         * tests/test-floorl.c (ASSERT): Likewise.
29405         * tests/test-fopen.c (ASSERT): Likewise.
29406         * tests/test-fpending.c (ASSERT): Likewise.
29407         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29408         * tests/test-fpurge.c (ASSERT): Likewise.
29409         * tests/test-freadable.c (ASSERT): Likewise.
29410         * tests/test-freadahead.c (ASSERT): Likewise.
29411         * tests/test-freading.c (ASSERT): Likewise.
29412         * tests/test-freadptr.c (ASSERT): Likewise.
29413         * tests/test-freadptr2.c (ASSERT): Likewise.
29414         * tests/test-freadseek.c (ASSERT): Likewise.
29415         * tests/test-freopen.c (ASSERT): Likewise.
29416         * tests/test-frexp.c (ASSERT): Likewise.
29417         * tests/test-frexpl.c (ASSERT): Likewise.
29418         * tests/test-fseek.c (ASSERT): Likewise.
29419         * tests/test-fseeko.c (ASSERT): Likewise.
29420         * tests/test-fstrcmp.c (ASSERT): Likewise.
29421         * tests/test-ftell.c (ASSERT): Likewise.
29422         * tests/test-ftello.c (ASSERT): Likewise.
29423         * tests/test-func.c (ASSERT): Likewise.
29424         * tests/test-fwritable.c (ASSERT): Likewise.
29425         * tests/test-fwriting.c (ASSERT): Likewise.
29426         * tests/test-getdelim.c (ASSERT): Likewise.
29427         * tests/test-getline.c (ASSERT): Likewise.
29428         * tests/test-i-ring.c (ASSERT): Likewise.
29429         * tests/test-iconv-utf.c (ASSERT): Likewise.
29430         * tests/test-iconv.c (ASSERT): Likewise.
29431         * tests/test-isfinite.c (ASSERT): Likewise.
29432         * tests/test-isnand.c (ASSERT): Likewise.
29433         * tests/test-isnanf.c (ASSERT): Likewise.
29434         * tests/test-isnanl.h (ASSERT): Likewise.
29435         * tests/test-ldexpl.c (ASSERT): Likewise.
29436         * tests/test-linked_list.c (ASSERT): Likewise.
29437         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29438         * tests/test-localename.c (ASSERT): Likewise.
29439         * tests/test-lseek.c (ASSERT): Likewise.
29440         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29441         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29442         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29443         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29444         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29445         * tests/test-mbschr.c (ASSERT): Likewise.
29446         * tests/test-mbscspn.c (ASSERT): Likewise.
29447         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29448         * tests/test-mbspbrk.c (ASSERT): Likewise.
29449         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29450         * tests/test-mbsrchr.c (ASSERT): Likewise.
29451         * tests/test-mbsspn.c (ASSERT): Likewise.
29452         * tests/test-mbsstr1.c (ASSERT): Likewise.
29453         * tests/test-mbsstr2.c (ASSERT): Likewise.
29454         * tests/test-mbsstr3.c (ASSERT): Likewise.
29455         * tests/test-memchr2.c (ASSERT): Likewise.
29456         * tests/test-memmem.c (ASSERT): Likewise.
29457         * tests/test-open.c (ASSERT): Likewise.
29458         * tests/test-printf-frexp.c (ASSERT): Likewise.
29459         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29460         * tests/test-printf-posix.c (ASSERT): Likewise.
29461         * tests/test-quotearg.c (ASSERT): Likewise.
29462         * tests/test-rbtree_list.c (ASSERT): Likewise.
29463         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29464         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29465         * tests/test-round1.c (ASSERT): Likewise.
29466         * tests/test-roundf1.c (ASSERT): Likewise.
29467         * tests/test-roundl.c (ASSERT): Likewise.
29468         * tests/test-signbit.c (ASSERT): Likewise.
29469         * tests/test-sleep.c (ASSERT): Likewise.
29470         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29471         * tests/test-snprintf.c (ASSERT): Likewise.
29472         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29473         * tests/test-stat-time.c (ASSERT): Likewise.
29474         * tests/test-strcasestr.c (ASSERT): Likewise.
29475         * tests/test-strerror.c (ASSERT): Likewise.
29476         * tests/test-striconv.c (ASSERT): Likewise.
29477         * tests/test-striconveh.c (ASSERT): Likewise.
29478         * tests/test-striconveha.c (ASSERT): Likewise.
29479         * tests/test-strsignal.c (ASSERT): Likewise.
29480         * tests/test-strstr.c (ASSERT): Likewise.
29481         * tests/test-strtod.c (ASSERT): Likewise.
29482         * tests/test-trunc1.c (ASSERT): Likewise.
29483         * tests/test-trunc2.c (ASSERT): Likewise.
29484         * tests/test-truncf1.c (ASSERT): Likewise.
29485         * tests/test-truncf2.c (ASSERT): Likewise.
29486         * tests/test-truncl.c (ASSERT): Likewise.
29487         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29488         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29489         * tests/test-vasnprintf.c (ASSERT): Likewise.
29490         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29491         * tests/test-vasprintf.c (ASSERT): Likewise.
29492         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29493         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29494         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29495         * tests/test-vsnprintf.c (ASSERT): Likewise.
29496         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29497         * tests/test-wcwidth.c (ASSERT): Likewise.
29498         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29499         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29500         * tests/test-xvasprintf.c (ASSERT): Likewise.
29501         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29502         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29503         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29504         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29505         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29506         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29507         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29508         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29509         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29510         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29511         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29512         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29513         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29514         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29515         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29516         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29517         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29518         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29519         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29520         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29521         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29522         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29523         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29524         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29525         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29526         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29527         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29528         * tests/unictype/test-combining.c (ASSERT): Likewise.
29529         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29530         * tests/unictype/test-digit.c (ASSERT): Likewise.
29531         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29532         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29533         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29534         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29535         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29536         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29537         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29538         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29539         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29540         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29541         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29542         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29543         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29544         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29545         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29546         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29547         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29548         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29549         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29550         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29551         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29552         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29553         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29554         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29555         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29556         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29557         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29558         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29559         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29560         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29561         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29562         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29563         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29564         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29565         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29566         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29567         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29568         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29569         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29570         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29571         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29572         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29573         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29574         Reported by Eric Blake.
29575
29576 2008-04-11  Bruno Haible  <bruno@clisp.org>
29577
29578         * lib/wchar.in.h: Tweak comment.
29579
29580 2008-04-11  Bruno Haible  <bruno@clisp.org>
29581
29582         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29583         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29584         gl_COMMON.
29585         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29586
29587 2008-04-11  Bruno Haible  <bruno@clisp.org>
29588
29589         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29590
29591 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29592
29593         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29594         of attempting to use non-existing /dev/*random.  Based on patch
29595         from Adam Strzelecki <ono@java.pl> in
29596         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29597
29598 2008-04-08  Bruno Haible  <bruno@clisp.org>
29599
29600         Add tentative support for emx+gcc.
29601         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29602         * lib/fpurge.c (fpurge): Likewise.
29603         * lib/freadable.c (freadable): Likewise.
29604         * lib/freadahead.c (freadahead): Likewise.
29605         * lib/freading.c (freading): Likewise.
29606         * lib/freadptr.c (freadptr): Likewise.
29607         * lib/freadseek.c (freadptrinc): Likewise.
29608         * lib/fseeko.c (rpl_fseeko): Likewise.
29609         * lib/fseterr.c (fseterr): Likewise.
29610         * lib/fwritable.c (fwritable): Likewise.
29611         * lib/fwriting.c (fwriting): Likewise.
29612         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29613
29614 2008-04-09  Eric Blake  <ebb9@byu.net>
29615
29616         Avoid some autoconf warnings.
29617         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29618         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29619         * m4/afs.m4 (gl_AFS): Likewise.
29620         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29621         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29623         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29624         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29625         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29626         (AC_CHECK_DECLS_ONCE): Likewise.
29627         Rename file...
29628         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29629         gnulib-tool requires autoconf 2.59 or better.
29630         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29631
29632 2008-04-08  Eric Blake  <ebb9@byu.net>
29633
29634         Use 'git describe --match' if present (added in git 1.5.5).
29635         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29636         if possible.
29637
29638 2008-04-08  Bruno Haible  <bruno@clisp.org>
29639
29640         Add tentative support for OpenServer.
29641         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29642         _ptr, _cnt.
29643         * lib/fpurge.c (fpurge): Likewise.
29644         * lib/freadable.c (freadable): Likewise.
29645         * lib/freadahead.c (freadahead): Likewise.
29646         * lib/freading.c (freading): Likewise.
29647         * lib/freadptr.c (freadptr): Likewise.
29648         * lib/freadseek.c (freadptrinc): Likewise.
29649         * lib/fseeko.c (rpl_fseeko): Likewise.
29650         * lib/fseterr.c (fseterr): Likewise.
29651         * lib/fwritable.c (fwritable): Likewise.
29652         * lib/fwriting.c (fwriting): Likewise.
29653         Reported by Roger Cornelius <rac@tenzing.org> and
29654         Brian K. White <brian@aljex.com>.
29655
29656 2008-04-06  Jim Meyering  <meyering@redhat.com>
29657
29658         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29659
29660 2008-04-06  Bruno Haible  <bruno@clisp.org>
29661
29662         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29663         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29664         * tests/test-printf-posix.sh: Likewise.
29665         * tests/test-vfprintf-posix.sh: Likewise.
29666         * tests/test-vprintf-posix.sh: Likewise.
29667         * tests/test-xprintf-posix.sh: Likewise.
29668
29669 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29670
29671         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29672         hide error from 'ls', needed on OS/2.
29673         Report by Elbert Pol <elbert.pol@gmail.com>.
29674
29675 2008-04-04  Eric Blake  <ebb9@byu.net>
29676
29677         Make test-fseeko.c failures meaningful.
29678         * tests/test-fseeko.c: Print line number on failure.
29679         * tests/test-fseek.c: Likewise.
29680         Reported by Nelson H. F. Beebe.
29681
29682         Improve strtod bug detection check.
29683         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29684         required for Solaris 10.
29685         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29686
29687 2008-04-04  Bruno Haible  <bruno@clisp.org>
29688
29689         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29690         by m4/setenv.m4.
29691
29692 2008-04-03  Eric Blake  <ebb9@byu.net>
29693
29694         Ensure sane .version contents.
29695         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29696         version string.
29697         * build-aux/git-version-gen: Improve documentation.
29698
29699         Make GNU make output nicer.
29700         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29701         MAKECMDGOALS to enforce message for all command line targets.  Set
29702         srcdir for use in maint.mk.
29703
29704         Another maintainer tweak.
29705         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29706         a target that regenerates version.
29707
29708 2008-04-03  Jim Meyering  <meyering@redhat.com>
29709
29710         vc-list-files: don't cause coreutils "make po-check" failure
29711         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29712
29713 2008-04-03  Eric Blake  <ebb9@byu.net>
29714
29715         Allow VPATH usage of vc-list-files.
29716         * build-aux/vc-list-files (scriptversion): Add timestamp.
29717         (options): Add --help, --version, -C.
29718         (CVS): Support installed cvsu.
29719
29720 2008-04-02  Bruno Haible  <bruno@clisp.org>
29721
29722         Avoid some "statement with no effect" warnings from gcc.
29723         * tests/test-wctype.c (main): Explicitly ignore unused values.
29724         Reported by Jim Meyering.
29725
29726 2008-04-02  Jim Meyering  <meyering@redhat.com>
29727
29728         Avoid some warnings from "gcc -Wshadow".
29729         * tests/test-frexp.c (exp): Define to a different identifier.
29730         * tests/test-frexpl.c (exp): Likewise.
29731
29732 2008-04-03  Jim Meyering  <meyering@redhat.com>
29733
29734         bootstrap: remove dangling *.[ch] symlinks from lib
29735         * build-aux/bootstrap [dangling symlink removal]: Move find's
29736         -depth option to precede all others, to avoid a warning.
29737         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29738
29739 2008-04-02  Bruno Haible  <bruno@clisp.org>
29740
29741         Avoid some warnings from "gcc -Wshadow".
29742         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29743         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29744         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29745         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29746         Reported by Jim Meyering.
29747
29748 2008-04-01  Bruno Haible  <bruno@clisp.org>
29749
29750         Fix test to work on IRIX 6.5 with cc.
29751         * tests/test-math.c (numeric_equal): New function.
29752         (main): Use it.
29753
29754 2008-04-01  Bruno Haible  <bruno@clisp.org>
29755
29756         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29757
29758 2008-04-01  Bruno Haible  <bruno@clisp.org>
29759
29760         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29761         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29762         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29763         (Depends-on): Remove math.
29764
29765         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29766         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29767         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29768         (Depends-on): Remove math.
29769
29770         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29771         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29772         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29773         (Depends-on): Remove math.
29774         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29775         (Depends-on): Remove math.
29776
29777         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29778         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29779         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29780         (Depends-on): Remove math.
29781         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29782         (Depends-on): Remove math.
29783
29784         * tests/test-round1.c: Include nan.h.
29785         (main): Use NaNd instead of NAN.
29786         * modules/round-tests (Files): Add tests/nan.h.
29787
29788         * tests/test-trunc1.c: Include nan.h.
29789         (main): Use NaNd instead of NAN.
29790         * modules/trunc-tests (Files): Add tests/nan.h.
29791
29792         * tests/test-roundf1.c: Include nan.h.
29793         (main): Use NaNf instead of NAN.
29794         * modules/roundf-tests (Files): Add tests/nan.h.
29795
29796         * tests/test-truncf1.c: Include nan.h.
29797         (main): Use NaNf instead of NAN.
29798         * modules/truncf-tests (Files): Add tests/nan.h.
29799
29800         * tests/test-ceilf1.c: Include nan.h.
29801         (main): Use NaNf instead of NAN.
29802         * modules/ceilf-tests (Files): Add tests/nan.h.
29803
29804         * tests/test-floorf1.c: Include nan.h.
29805         (main): Use NaNf instead of NAN.
29806         * modules/floorf-tests (Files): Add tests/nan.h.
29807
29808         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29809         (main): Use NaNf instead of NAN.
29810         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29811
29812         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29813         (main): Use NaNd instead of NAN.
29814         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29815
29816         * tests/test-frexp.c: Include nan.h.
29817         (main): Use NaNd instead of NAN.
29818         * modules/frexp-tests (Files): Add tests/nan.h.
29819
29820         * lib/isnan.c: Don't include <math.h>.
29821         (FUNC): Don't use NAN macro.
29822         * modules/isnand-nolibm (Depends-on): Remove math.
29823         * modules/isnanf-nolibm (Depends-on): Remove math.
29824         * modules/isnanl (Depends-on): Remove math.
29825         * modules/isnanl-nolibm (Depends-on): Remove math.
29826
29827         * tests/nan.h: New file.
29828
29829 2008-04-01  Eric Blake  <ebb9@byu.net>
29830
29831         Fix typos.
29832         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29833         values to be the right type.
29834
29835         For now, cater to gnulib strtod inaccuracies.
29836         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29837         fractional results.  While not as nice from a QoI perspective, it
29838         is a quicker patch than correctly implementing decimal to binary
29839         rounding.
29840
29841 2008-03-31  Eric Blake  <ebb9@byu.net>
29842
29843         Guarantee a definition of NAN.
29844         * lib/math.in.h (NAN): Define if missing.
29845         * tests/test-math.c (main): Test it.
29846         * doc/posix-headers/math.texi (math.h): Document this.
29847         * lib/isnan.c (rpl_isnand): Use it.
29848         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29849         * tests/test-floorf1.c (NaN): Likewise.
29850         * tests/test-frexp.c (NaN): Likewise.
29851         * tests/test-isnand.c (NaN): Likewise.
29852         * tests/test-isnanf.c (NaN): Likewise.
29853         * tests/test-round1.c (NaN): Likewise.
29854         * tests/test-roundf1.c (NaN): Likewise.
29855         * tests/test-snprintf-posix.h (NaN): Likewise.
29856         * tests/test-sprintf-posix.h (NaN): Likewise.
29857         * tests/test-trunc1.c (NaN): Likewise.
29858         * tests/test-truncf1.c (NaN): Likewise.
29859         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29860         * tests/test-vasprintf-posix.c (NaN): Likewise.
29861         * modules/isnand-nolibm (Depends-on): Add math.
29862         * modules/isnanf-nolibm (Depends-on): Likewise.
29863         * modules/isnanl (Depends-on): Likewise.
29864         * modules/isnanl-nolibm (Depends-on): Likewise.
29865         * modules/snprintf-posix-tests (Depends-on): Likewise.
29866         * modules/sprintf-posix-tests (Depends-on): Likewise.
29867         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29868         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29869         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29870         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29871
29872 2008-03-31  Bruno Haible  <bruno@clisp.org>
29873
29874         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29875         * doc/posix-functions/strtod.texi: Likewise.
29876
29877 2008-03-31  Bruno Haible  <bruno@clisp.org>
29878
29879         * tests/test-strtod.c (main): Don't use C99 syntax.
29880
29881 2008-03-31  Bruno Haible  <bruno@clisp.org>
29882
29883         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29884         Reported by Eric Blake.
29885
29886 2008-03-31  Jim Meyering  <meyering@redhat.com>
29887
29888         Don't compare actual signbit return values.
29889         * tests/test-strtod.c (main): Rather, compare only their
29890         zero/non-zero nature.
29891
29892 2008-03-31  Eric Blake  <ebb9@byu.net>
29893
29894         More strtod documentation.
29895         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29896         failures as distinct bugs.
29897
29898 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29899
29900         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29901         Problem reported by Erik Benada in
29902         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29903
29904 2008-03-30  Bruno Haible  <bruno@clisp.org>
29905
29906         * tests/test-strtod.c: Add comments about which assertion fails on which
29907         platform.
29908         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29909
29910 2008-03-30  Eric Blake  <ebb9@byu.net>
29911
29912         Test signbit behavior on zeros.
29913         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29914         (test_signbitd, test_signbitl): Likewise.
29915
29916         More strtod touchups.
29917         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29918         sign of negative underflow, for now.  Use .5, not .1.
29919         * doc/posix-functions/strtod.texi (strtod): Mention these
29920         limitations.
29921         Reported by Jim Meyering.
29922
29923 2008-03-30  Bruno Haible  <bruno@clisp.org>
29924
29925         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29926         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29927
29928 2008-03-30  Bruno Haible  <bruno@clisp.org>
29929
29930         Avoid failure when attempting to return empty iconv results on some
29931         platforms.
29932         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29933         allocation, don't report ENOMEM when the resulting string is empty.
29934
29935 2008-03-30  Bruno Haible  <bruno@clisp.org>
29936
29937         Fix buffer overrun.
29938         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29939         Don't consider the width for tmp_length. Check count against tmp_length
29940         before doing the padding. Ensure enough allocation during padding.
29941
29942 2008-03-30  Eric Blake  <ebb9@byu.net>
29943
29944         strtod touchups.
29945         * lib/strtod.c (strtod): Avoid compiler warnings.
29946         Reported by Jim Meyering.
29947
29948 2008-03-30  Bruno Haible  <bruno@clisp.org>
29949
29950         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29951         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29952         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29953         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29954         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29955         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29956         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29957         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29958
29959         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29960         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29961         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29962         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29963         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29964         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29965         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29966         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29967
29968         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29969         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29970         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29971         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29972         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29973         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29974         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29975         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29976
29977         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29978         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29979
29980         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29981         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29982
29983         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29984         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29985
29986         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29987         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29988         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29989
29990         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29992         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29993
29994         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29996         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29997
29998         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30000         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30001
30002         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30003         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30005         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30006         (Depends-on): Add EOVERFLOW.
30007         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30008         (Depends-on): Add EOVERFLOW.
30009         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30010         (Depends-on): Add EOVERFLOW.
30011         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30012         (Depends-on): Add EOVERFLOW.
30013         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30014         (Depends-on): Add EOVERFLOW.
30015         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30016         (Depends-on): Add EOVERFLOW.
30017         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30018         (Depends-on): Add EOVERFLOW.
30019         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30020         (Depends-on): Add EOVERFLOW.
30021
30022         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30024         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30025
30026         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30028         * modules/snprintf (Depends-on): Add EOVERFLOW.
30029
30030         * lib/poll.c (EOVERFLOW): Remove fallback.
30031         * modules/poll (Depends-on): Add EOVERFLOW.
30032
30033         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30034         * modules/getugroups (Depends-on): Add EOVERFLOW.
30035
30036         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30037         * modules/getdelim (Depends-on): Add EOVERFLOW.
30038
30039         * lib/ftell.c (EOVERFLOW): Remove fallback.
30040         * modules/ftell (Depends-on): Add EOVERFLOW.
30041
30042         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30044         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30045
30046         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30047
30048         * modules/EOVERFLOW-tests: New file.
30049         * tests/test-EOVERFLOW.c: New file.
30050
30051         * modules/EOVERFLOW: New file.
30052         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30053
30054 2008-03-30  Bruno Haible  <bruno@clisp.org>
30055
30056         Fix bug introduced on 2007-06-10.
30057         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30058         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30059
30060 2008-03-30  Bruno Haible  <bruno@clisp.org>
30061
30062         Improve freadseek's efficiency after ungetc.
30063         * lib/freadseek.c: Include freadahead.h.
30064         (freadptrinc): New function, extracted from freadseek.
30065         (freadseek): Use it in a loop. Use freadahead to determine the number
30066         of loop iterations.
30067         * modules/freadseek (Depends-on): Add freadahead.
30068         (configure.ac): Require AC_C_INLINE.
30069
30070 2008-03-30  Bruno Haible  <bruno@clisp.org>
30071
30072         * lib/freadseek.c (freadseek): Don't ignore the return value of
30073         freadptr.
30074
30075 2008-03-29  Eric Blake  <ebb9@byu.net>
30076
30077         Add hex float support.
30078         * modules/strtod (Depends-on): Add c-ctype.
30079         (Link): Mention POW_LIB.
30080         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30081         whitespace between 'e' and exponent.
30082         * tests/test-strtod.c (main): Enable hex float tests.
30083         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30084         now provides.
30085
30086         Document various strtod bugs, with some fixes.
30087         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30088         "-0x", "inf", "nan", and hex constants.
30089         * doc/posix-functions/atof.texi (atof): Likewise.
30090         * modules/stdlib (Makefile.am): Support strtod.
30091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30092         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30093         detect additional strtod bugs.
30094         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30095         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30096         bool where appropriate.  Parse 'inf' and 'nan'.
30097         * tests/test-strtod.c: New file.
30098         * modules/strtod (Depends-on): Add stdbool, stdlib.
30099         (configure.ac): Turn on module indicator.
30100         * modules/strtod-tests: New module.
30101
30102 2008-03-29  Eric Blake  <ebb9@byu.net>
30103
30104         Fix ftell on mingw.
30105         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30106         * modules/ftell-tests (Depends-on): Add binary-io.
30107         * modules/ftello-tests (Depends-on): Likewise.
30108         * tests/test-ftell.c (main): Enhance test to cover behavior after
30109         ungetc.  Enforce binary mode.
30110         * tests/test-ftello.c (main): Likewise.
30111
30112         Pass test-freadseek on cygwin.
30113         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30114         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30115         ungetc buffer.
30116
30117         * tests/test-fflush2.c (main): Fix typo.
30118
30119 2008-03-29  Bruno Haible  <bruno@clisp.org>
30120
30121         * tests/test-fflush2.c (main): Temporarily disable the contents of
30122         this test.
30123         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30124         Reported by Eric Blake.
30125
30126 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30127
30128         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30129         (GC_SHA224_DIGEST_SIZE): Add.
30130
30131         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30132         (gc_hash_digest_length): Likewise.
30133         (gc_hash_buffer): Likewise.
30134
30135 2008-03-25  Bruno Haible  <bruno@clisp.org>
30136
30137         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30138         detail which gettext release to use.
30139         Reported by Simon Josefsson.
30140
30141 2008-03-26  Jim Meyering  <meyering@redhat.com>
30142
30143         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30144         * modules/gnumakefile (clean-GNUmakefile): Also, use
30145         test ... && ... || : syntax rather than if-then ... fi.
30146
30147         gnumakefile: Don't double-quote-expand $(VPATH) value.
30148         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30149
30150 2008-03-24  Eric Blake  <ebb9@byu.net>
30151
30152         Alter GNUmakefile to install into top directory.
30153         * modules/maintainer-makefile: Split, and add dependency...
30154         * modules/gnumakefile: to this new module.
30155         * build-aux/GNUmakefile: Move...
30156         * top/GNUmakefile: ...here.
30157         * build-aux/maint.mk: Move...
30158         * top/maint.mk: ...here.
30159         * MODULES.html.sh (Support for maintaining...): Document new
30160         module.
30161
30162 2008-03-23  Bruno Haible  <bruno@clisp.org>
30163
30164         * gnulib-tool: New options --vc-files, --no-vc-files.
30165         (func_usage): Document them.
30166         (vc_files): New variable.
30167         (func_import): Consider vc_files.
30168         (func_create_testdir): Set vc_files to empty.
30169         Suggested by Jim Meyering and Karl Berry.
30170
30171 2008-03-23  Bruno Haible  <bruno@clisp.org>
30172
30173         Fix regex compilation error on HP-UX 11.
30174         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30175         * modules/regex (Files): Add m4/mbstate_t.m4.
30176         Reported by Ton Voon <ton.voon@altinity.com>.
30177
30178 2008-03-23  Bruno Haible  <bruno@clisp.org>
30179
30180         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30181
30182 2008-03-23  Eric Blake  <ebb9@byu.net>
30183             Bruno Haible  <bruno@clisp.org>
30184
30185         Install files from top/ in the destination directory.
30186         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30187         augmentation also for the files from top/.
30188         (func_import, func_create_testdir): Rewrite file names:
30189         top/filename -> filename.
30190
30191 2008-03-23  Bruno Haible  <bruno@clisp.org>
30192
30193         Tweak "gnulib --version" output.
30194         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30195
30196 2008-03-23  Bruno Haible  <bruno@clisp.org>
30197
30198         Tweak "gnulib --version" output.
30199         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30200         rather than contents of ChangeLog, when possible.
30201
30202 2008-03-21  Eric Blake  <ebb9@byu.net>
30203
30204         More --version tweaks.
30205         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30206         date of last ChangeLog entry.
30207
30208 2008-03-21  Jim Meyering  <meyering@redhat.com>
30209
30210         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30211
30212 2008-03-20  Eric Blake  <ebb9@byu.net>
30213
30214         VPATH fix.
30215         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30216
30217 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30218
30219         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30220         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30221
30222 2008-03-20  Eric Blake  <ebb9@byu.net>
30223
30224         Sync GNUmakefile with coreutils.
30225         * build-aux/GNUmakefile (have-Makefile): Rename...
30226         (_have-Makefile): ...to this, for namespace consideration.
30227         (GNUmakefile.cfg): Include, if present.
30228         (_autoreconf): Define a default.
30229         (_is-dist-target): New rule for rebuilds to pick up intra-release
30230         version.
30231         (maint-cfg.mk): Rename...
30232         (cfg.mk): ...to this.
30233
30234 2008-03-18  Jim Meyering  <meyering@redhat.com>
30235
30236         New script and module: mktempd
30237         * MODULES.html.sh (maint+release support): Add mktempd.
30238         * build-aux/mktempd: New file.
30239         * modules/mktempd: New file.
30240
30241 2008-03-15  Jim Meyering  <meyering@redhat.com>
30242
30243         Undo last change.
30244         * lib/sha1.c, lib/md5.c: 63 != ~63.
30245         Reported by Andreas Schwab.
30246
30247         sha1.c, md5.c: Hoist a redundant expression.
30248         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30249         "ctx->buflen" only once, before calling *_process_block.
30250         * lib/md5.c (md5_process_bytes): Likewise.
30251
30252 2008-03-14  Eric Blake  <ebb9@byu.net>
30253
30254         Bump copyright year in files generated by gnulib-tool.
30255         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30256         gnulib-tool, rather than hard-coding it.
30257
30258         Fix 'gnulib-tool --version' output to work with git.
30259         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30260         (startup): ...here.
30261         (func_version): Use it to invoke git-version-gen, rather than
30262         relying on CVS keyword expansion.  Modernize wording.
30263         (cvsdatestamp, last_checkin_date, version): Kill unused
30264         variables.
30265
30266 2008-03-12  Jim Meyering  <meyering@redhat.com>
30267
30268         Recognize optional cast of the argument to free.
30269         * build-aux/useless-if-before-free: Update regexps.
30270
30271         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30272
30273 2008-03-11  Bruno Haible  <bruno@clisp.org>
30274
30275         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30276         by a single package.
30277         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30278         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30279         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30280         Reported by Sam Steingold <sds@gnu.org>.
30281
30282 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30283
30284         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30285         repositories.
30286
30287 2008-03-11  Bruno Haible  <bruno@clisp.org>
30288
30289         Avoid conflicts between local macro definitions.
30290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30291         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30292
30293 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30294             Bruno Haible  <bruno@clisp.org>
30295
30296         Make va_copy work with some version of xlc on AIX 5.1.
30297         * lib/stdarg.in.h: New file.
30298         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30299         On AIX, use a <stdarg.h> file substitute.
30300         * modules/stdarg (Files): Add lib/stdarg.in.h.
30301         (Depends-on): Add include_next.
30302         (Makefile.am): Build a stdarg.h substitute if requested.
30303         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30304
30305 2008-03-10  Bruno Haible  <bruno@clisp.org>
30306
30307         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30309         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30310
30311 2008-03-10  Bruno Haible  <bruno@clisp.org>
30312
30313         * modules/stdlib (Depends-on): Add include_next, remove
30314         absolute-header.
30315
30316 2008-03-09  Bruno Haible  <bruno@clisp.org>
30317
30318         * lib/freadahead.h (freadahead): Document more precisely.
30319         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30320         the sum of both buffer sizes.
30321         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30322         * NEWS: Document the change.
30323
30324 2008-03-09  Bruno Haible  <bruno@clisp.org>
30325
30326         Extend freadptr to return also the buffer size.
30327         * lib/freadptr.h (freadptr): Add sizep argument.
30328         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30329         (freadptr): Add sizep argument. Determine buffer size like freadahead
30330         does.
30331         * tests/test-freadptr.c: Don't include freadahead.h.
30332         (main): Adapt for new calling convention of freadptr.
30333         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30334         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30335         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30336         tests/test-freadptr2.sh.
30337         (Depends): Remove freadahead.
30338         (TESTS): Add test-freadptr2.sh.
30339         (check_PROGRAMS): Add test-freadptr2.
30340
30341 2008-03-09  Bruno Haible  <bruno@clisp.org>
30342
30343         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30344         Report and solution by Simon Josefsson.
30345
30346 2008-03-06  Bruno Haible  <bruno@clisp.org>
30347
30348         Make fflush after ungetc work on BSD platforms.
30349         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30350         * tests/test-fflush2.c: New file.
30351         * tests/test-fflush2.sh: New file.
30352         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30353         tests/test-fflush2.c.
30354         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30355         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30356
30357 2008-03-06  Eric Blake  <ebb9@byu.net>
30358
30359         Likewise for ftello.
30360         * modules/ftello (Dependencies): Add extensions.
30361         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30362
30363 2008-03-06  Bruno Haible  <bruno@clisp.org>
30364
30365         * modules/fseeko (Dependencies): Add extensions.
30366         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30367         Needed on glibc systems.
30368
30369 2008-03-06  Bruno Haible  <bruno@clisp.org>
30370
30371         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30372         email address.
30373         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30374
30375 2008-03-06  Bruno Haible  <bruno@clisp.org>
30376
30377         * users.txt: Add libgnupdf.
30378
30379 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30380
30381         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30382         (Header File Substitutes, Function Substitutes,
30383         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30384         (Build robot for gnulib): Fix typo.
30385
30386 2008-03-06  Bruno Haible  <bruno@clisp.org>
30387
30388         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30389         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30390
30391 2008-03-06  Bruno Haible  <bruno@clisp.org>
30392
30393         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30394         * doc/gnulib.texi: Include it.
30395
30396 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30397
30398         * modules/func (License): Change license to unlimited; there was
30399         no LGPL parts in the module anyway.
30400
30401 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30402
30403         * modules/__func__: Renamed to modules/func.
30404         * modules/__func__-tests: Renamed to modules/func-tests.
30405         * tests/test-__func__.c: Renamed to tests/test-func.c.
30406         * m4/__func__.m4: Renamed to m4/func.m4.
30407         * doc/gnulib.texi (__func__): Section renamed to func.
30408         Suggested by Eric Blake <ebb9@byu.net>.
30409
30410 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30411
30412         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30413         about __func__.  Make example self-contained.  Suggested by Eric
30414         Blake <ebb9@byu.net>.
30415
30416         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30417         Suggested by Eric Blake <ebb9@byu.net>.
30418
30419 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30420
30421         * modules/__func__: New file.
30422         * modules/__func__-tests: New file.
30423         * tests/test-__func__.c: New file.
30424         * m4/__func__.m4: New file.
30425         * doc/gnulib.texi (__func__): Document __func__ module.
30426
30427 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30428
30429         * modules/byteswap (License): Re-license as LGPLv2+.
30430
30431 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30432
30433         * doc/Makefile: Add pdf target.
30434
30435 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30436
30437         * modules/inline (License): Use 'unlimited', since there are only
30438         *.m4 files in this module.
30439
30440 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30441             Bruno Haible  <bruno@clisp.org>
30442
30443         Add support for HP C 7.1 on OpenVMS 8.3.
30444         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30445
30446 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30447
30448         Update VMS specifics.
30449         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30450
30451 2008-03-02  Jim Meyering  <meyering@redhat.com>
30452
30453         Remove the last dependency on the "free" module.
30454         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30455         Reported by Bob Proulx.
30456
30457         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30458
30459         Remove useless "if" tests before free.  Deprecate "free" module.
30460         * doc/posix-functions/free.texi: Mention that this
30461         module is no longer useful.
30462         * modules/free (Notice): Say this module is obsolete.
30463         * modules/readutmp (Depends-on): Remove free.
30464         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30465         * lib/putenv.c (putenv): Likewise.
30466         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30467         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30468         * tests/test-c-strcasestr.c (main): Likewise.
30469         * tests/test-c-strstr.c (main): Likewise.
30470         * tests/test-mbscasestr1.c (main): Likewise.
30471         * tests/test-mbscasestr2.c (main): Likewise.
30472         * tests/test-mbsstr1.c (main): Likewise.
30473         * tests/test-mbsstr2.c (main): Likewise.
30474         * tests/test-memmem.c (main): Likewise.
30475         * tests/test-strcasestr.c (main): Likewise.
30476         * tests/test-striconv.c (main): Likewise.
30477         * tests/test-striconveh.c (main): Likewise.
30478         * tests/test-striconveha.c (main): Likewise.
30479         * tests/test-strstr.c (main): Likewise.
30480
30481         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30482
30483         bootstrap: sync from coreutils again
30484         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30485
30486 2008-03-01  Jim Meyering  <meyering@redhat.com>
30487
30488         bootstrap: sync from coreutils
30489         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30490         also when the target doesn't exist.
30491
30492 2008-03-01  Eric Blake  <ebb9@byu.net>
30493
30494         Fix bugs in last patch.
30495         * lib/memchr2.c (memchr2): Fix typo.
30496         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30497         extension.
30498         Reported by Bruce Korb.
30499
30500         New module 'memchr2'.
30501         * modules/memchr2: New file.
30502         * modules/memchr2-tests: Likewise.
30503         * lib/memchr2.h: Likewise.
30504         * lib/memchr2.c: Likewise, based on memchr.c.
30505         * tests/test-memchr2.c: New test.
30506         * MODULES.html.sh (String handling): Add memchr2.
30507
30508 2008-02-29  Bruno Haible  <bruno@clisp.org>
30509
30510         * modules/freadseek-tests: New file.
30511         * tests/test-freadseek.sh: New file.
30512         * tests/test-freadseek.c: New file.
30513
30514         New module 'freadseek'.
30515         * modules/freadseek: New file.
30516         * lib/freadseek.h: New file.
30517         * lib/freadseek.c: New file.
30518         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30519
30520 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30521
30522         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30523         wydawca.
30524
30525         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30526         program_invocation_name and program_invocation_short_name are
30527         present.
30528
30529 2008-02-28  Bruno Haible  <bruno@clisp.org>
30530
30531         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30532         * tests/test-freadptr.sh: Also test non-seekable stdin.
30533
30534 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30535
30536         * build-aux/bootstrap (source_base, m4_base)
30537         (doc_base, tests_base): New variables.
30538         (gnulib_tool_options): Do not hardcode base directories, use
30539         the above variables instead.
30540
30541 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30542
30543         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30544
30545 2008-02-28  Bruno Haible  <bruno@clisp.org>
30546
30547         * modules/freadptr-tests: New file.
30548         * tests/test-freadptr.sh: New file.
30549         * tests/test-freadptr.c: New file.
30550
30551         New module 'freadptr'.
30552         * modules/freadptr: New file.
30553         * lib/freadptr.h: New file.
30554         * lib/freadptr.c: New file.
30555         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30556
30557 2008-02-26  Karl Berry  <karl@freefriends.org>
30558
30559         Sync from Libtool:
30560         * libltdl/argz.c (argz_add, argz_count): New functions.
30561         * libltdl/argz.in.h: Declare them.
30562         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30563
30564 2008-02-22  Bruno Haible  <bruno@clisp.org>
30565
30566         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30567         is a pointer type.  Needed for HP-UX 10.
30568         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30569         * doc/posix-functions/gmtime_r.texi: Likewise.
30570         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30571
30572 2008-02-24  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/environ-tests: New file.
30575         * tests/test-environ.c: New file.
30576
30577         New module 'environ'.
30578         * modules/environ: New file.
30579         * lib/unistd.in.h (environ): New declaration.
30580         * m4/environ.m4: New file.
30581         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30582         after use.
30583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30584         HAVE_DECL_ENVIRON.
30585         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30586         HAVE_DECL_ENVIRON.
30587         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30588         wrong claim that 'environ' is missing on some systems.
30589         * modules/execute (Depends-on): Add environ.
30590         * lib/execute.c (environ): Remove fallback declaration.
30591         * modules/pipe (Depends-on): Add environ.
30592         * lib/pipe.c (environ): Remove fallback declaration.
30593         * modules/setenv (Depends-on): Add environ.
30594         * lib/setenv.c (environ): Remove fallback declaration.
30595         * modules/unsetenv (Depends-on): Add environ.
30596         * lib/unsetenv.c (environ): Remove fallback declaration.
30597         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30598         m4/environ.m4.
30599         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30600         (gl_PREREQ_UNSETENV): Likewise.
30601
30602 2008-02-24  Bruno Haible  <bruno@clisp.org>
30603
30604         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30605
30606 2008-02-20  Bob Proulx  <bob@proulx.com>
30607
30608         Enable use of older two part flavor 'git describe'.
30609         * build-aux/git-version-gen: If using the older two part flavor of
30610         git version then recreate the third part now present in the
30611         newer three part flavor of git describe.
30612
30613 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30614
30615         * lib/fts.c (fts_build): Typo correction to comment.
30616
30617 2008-02-17  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30620         generating no-op conflicts.
30621
30622 2008-02-17  Bruno Haible  <bruno@clisp.org>
30623
30624         Speed up by 10%.
30625         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30626         result_entries, rather than an index-based loop.
30627
30628 2008-02-17  Bruno Haible  <bruno@clisp.org>
30629
30630         Speed up by 25%.
30631         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30632         'hashcode_cached'.
30633         (entry_create): New function.
30634         (entry_hashcode): Use the cached hashcode if possible.
30635         (read_changelog_file, try_split_merged_entry): Use entry_create.
30636
30637 2008-02-17  Bruno Haible  <bruno@clisp.org>
30638
30639         Speed up from O(n^2) to O(n) for long ChangeLog files.
30640         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30641         (read_changelog_file): Change implementation of entries_reversed list
30642         to rbtreehash.
30643         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30644
30645 2008-02-17  Bruno Haible  <bruno@clisp.org>
30646
30647         New option --split-merged-entry.
30648         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30649         (find_paragraph_end, try_split_merged_entry): New functions.
30650         (long_options): Add option --split-merged-entry.
30651         (usage): Document option --split-merged-entry.
30652         (main): Implement option --split-merged-entry.
30653         Reported by Eric Blake.
30654
30655 2008-02-17  Bruno Haible  <bruno@clisp.org>
30656
30657         * lib/git-merge-changelog.c: Include c-strstr.h.
30658         (main): Support the "git pull --rebase" situation.
30659         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30660         Reported by Eric Blake.
30661
30662 2008-02-16  Eric Blake  <ebb9@byu.net>
30663
30664         Avoid doubling \ in common case of "c-maybe" quoting style.
30665         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30666         eliding outer quotes.
30667         * lib/quotearg.h: Document this.
30668         * tests/test-quotearg.c (result_strings, inputs, results_g)
30669         (flag_results, locale_results): Test it by adding a new string to
30670         each test group.
30671         (compare_strings): Test new string.
30672
30673 2008-02-13  Eric Blake  <ebb9@byu.net>
30674
30675         Avoid trigraph quoting in default output.
30676         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30677         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30678         unless explicitly requested.
30679         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30680
30681 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30682
30683         Don't rely on signed integer overflowing to negative value.
30684         * lib/getugroups.c (getugroups): Include <limits.h>.
30685         Instead, compare against INT_MAX, and increment only if the test passes.
30686
30687 2008-02-13  Jim Meyering  <meyering@redhat.com>
30688         and Eric Blake  <ebb9@byu.net>
30689
30690         Avoid shadowing warning and compile errors on Linux.
30691         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30692         forwarding macros on Linux.
30693         (dcgettext): Define a stub, for Linux.
30694         (results_g, main): Avoid warnings.
30695
30696 2008-02-12  Eric Blake  <ebb9@byu.net>
30697
30698         Silence warning in last patch.
30699         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30700
30701         Quotearg part 4: add tests, fix c-maybe colon quoting.
30702         * lib/quotearg.h: Improve documentation.
30703         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30704         escapes when adding outer quotes.  When quoting trigraphs, use
30705         valid C notation.  When quoting NUL, omit extra characters if next
30706         character is not digit.  Alter prototype.
30707         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30708         callers.
30709         * modules/quotearg-tests: New module.
30710         * tests/test-quotearg.c: New test.
30711
30712 2008-02-07  Eric Blake  <ebb9@byu.net>
30713
30714         Quotearg part 3: add flag to control outer quote elision.
30715         * lib/quotearg.h (c_maybe_quoting_style): New style.
30716         (enum quoting_flags): Better documentation of flags.
30717         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30718         c-maybe style.
30719         (quotearg_buffer_restyled): Handle new flag to elide outer
30720         quotes.
30721
30722         Quotearg part 2: add flag that can control NUL elision.
30723         * lib/quotearg.h (set_quoting_flags): New prototype.
30724         * lib/quotearg.c (struct quoting_options): Add flag field.
30725         (set_quoting_flags): New function.
30726         (quotearg_buffer_restyled): Add flags parameter.
30727         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30728         (quotearg_n_options): Set the flag, since length cannot be
30729         returned.
30730         (quoting_options_from_style): Default flags correctly.
30731
30732         Quotearg part 1: more wrappers, restore quotearg_char state.
30733         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30734         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30735         (quotearg_colon_mem): New wrappers.
30736         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30737         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30738         functions.
30739         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30740         (quotearg_colon_mem): New functions.
30741
30742 2008-02-11  Bruno Haible  <bruno@clisp.org>
30743
30744         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30745         library in the current directory: it does not work with parallel make.
30746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30747
30748 2008-02-11  Bruno Haible  <bruno@clisp.org>
30749
30750         * .gitattributes: New file.
30751
30752 2008-02-11  Jim Meyering  <meyering@redhat.com>
30753
30754         useless-if-before-free: Fix reversed exit values.
30755         * build-aux/useless-if-before-free: Use correct values
30756         for EXIT_MATCH and EXIT_NO_MATCH.
30757
30758         * build-aux/useless-if-before-free: Close stdout carefully.
30759
30760 2008-02-10  Bruno Haible  <bruno@clisp.org>
30761
30762         New module 'git-merge-changelog'.
30763         * modules/git-merge-changelog: New file.
30764         * lib/git-merge-changelog.c: New file.
30765
30766 2008-02-10  Jim Meyering  <meyering@redhat.com>
30767
30768         useless-if-before-free: New option: --list (-l).
30769
30770         useless-if-before-free: Don't exit immediately upon open failure.
30771         * build-aux/useless-if-before-free: Exit 2 for errors.
30772         Upon failure to open a file, don't exit immediately.
30773         Rather, just warn and continue with any remaining files.
30774
30775 2008-02-10  Bruno Haible  <bruno@clisp.org>
30776
30777         New abstract list operation 'node_set_value'.
30778         * lib/gl_list.h (gl_list_node_set_value): New function.
30779         (struct gl_list_implementation): New field node_set_value.
30780         * lib/gl_list.c (gl_list_node_set_value): New function.
30781         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30782         (gl_array_list_implementation): Update.
30783         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30784         (gl_carray_list_implementation): Update.
30785         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30786         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30787         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30788         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30789         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30790         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30791         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30792         Update.
30793         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30794         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30795         (gl_sublist_list_implementation): Update.
30796
30797 2008-02-10  Bruno Haible  <bruno@clisp.org>
30798
30799         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30800         Needed when ELEMENT is #defined to 'some_type *'.
30801
30802 2008-02-10  Jim Meyering  <meyering@redhat.com>
30803
30804         New script and module: useless-if-before-free
30805         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30806         * build-aux/useless-if-before-free: New file.
30807         * modules/useless-if-before-free: New file.
30808
30809         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30810
30811         xstrtol_error: Fix typo.
30812         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30813         s/exit_failure/exit_status/.
30814
30815 2008-02-09  Jim Meyering  <meyering@redhat.com>
30816
30817         New script and module: gitlog-to-changelog
30818         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30819         * modules/gitlog-to-changelog: New file.
30820         * build-aux/gitlog-to-changelog: New file.
30821
30822 2008-02-08  Jim Meyering  <meyering@redhat.com>
30823
30824         Avoid two "parameter unused" warnings.
30825         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30826         Mark "st" as used.
30827
30828         Use "git COMMAND", not "git-COMMAND".
30829         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30830         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30831         * build-aux/git-version-gen: Use "git status", not "git-status".
30832
30833 2008-02-07  Bruno Haible  <bruno@clisp.org>
30834
30835         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30836         Avoids a crash on Windows Vista.
30837         Reported by Adam Strzelecki <ono@java.pl> via
30838         Simon Josefsson <simon@josefsson.org>.
30839
30840 2008-02-06  Bruno Haible  <bruno@clisp.org>
30841
30842         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30843         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30844         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30846         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30848         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30849         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30851         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30853         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30854         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30856         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30857         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30858         left-adjust flag.
30859         * tests/test-snprintf-posix.h (test_function): Likewise.
30860         * tests/test-sprintf-posix.h (test_function): Likewise.
30861         * tests/test-vasprintf-posix.c (test_function): Likewise.
30862         * doc/posix-functions/fprintf.texi: Update.
30863         * doc/posix-functions/printf.texi: Update.
30864         * doc/posix-functions/snprintf.texi: Update.
30865         * doc/posix-functions/sprintf.texi: Update.
30866         * doc/posix-functions/vfprintf.texi: Update.
30867         * doc/posix-functions/vprintf.texi: Update.
30868         * doc/posix-functions/vsnprintf.texi: Update.
30869         * doc/posix-functions/vsprintf.texi: Update.
30870         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30871
30872 2008-02-06  Bruno Haible  <bruno@clisp.org>
30873
30874         Fix bug introduced on 2008-01-26.
30875         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30876
30877 2008-02-06  Bruno Haible  <bruno@clisp.org>
30878
30879         Fix bug introduced on 2007-06-10.
30880         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30881         !NEED_PRINTF_FLAG_ZERO.
30882
30883 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30884
30885         getloadavg: use libperfstat on AIX5
30886         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30887
30888 2008-02-03  Bruno Haible  <bruno@clisp.org>
30889
30890         * lib/diffseq.h: Add comments about required #includes.
30891         Reported by Michael Biggs <gnulib@doubleplum.net>.
30892
30893 2008-02-01  Bruno Haible  <bruno@clisp.org>
30894
30895         * users.txt: Add gnuit.
30896
30897 2008-01-31  Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/md4.c (set_uint32): Mark as inline.
30900         * lib/md5.c (set_uint32): Likewise.
30901         * lib/sha1.c (set_uint32): Likewise.
30902         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30903         * m4/md5.m4 (gl_MD5): Likewise.
30904         * m4/sha1.m4 (gl_SHA1): Likewise.
30905
30906 2008-01-31  Jim Meyering  <meyering@redhat.com>
30907
30908         Use "sizeof VAR", rather than a literal "4".
30909         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30910         * lib/md4.c (md4_read_ctx): Likewise.
30911         * lib/sha1.c (sha1_read_ctx): Likewise.
30912
30913 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30914
30915         * tests/test-sha1.c: New file, based on test-md5.c.
30916
30917         * modules/crypto/sha1-tests: New file.
30918
30919 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30920
30921         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30922
30923 2008-01-31  Jim Meyering  <meyering@redhat.com>
30924
30925         Prefer "sizeof v" over the equivalent "4".
30926         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30927         * lib/md5.c (set_uint32): Likewise.
30928         * lib/sha1.c (set_uint32): Likewise.
30929
30930 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30931
30932         * lib/sha1.c (set_uint32): Mark function as static.
30933
30934 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30935
30936         md2: clarify comments to say that alignment is not required.
30937         * lib/md2.h: Remove warning about alignment in comment.
30938         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30939         never been required.
30940
30941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30942
30943         md4: adapt alignment constraint fix from sha1.
30944         * lib/md4.c (set_uint32): New function, from sha1.c
30945         (md4_read_ctx): Use it.
30946         (md4_finish_ctx): Doc fix.
30947         * lib/md4.h: Doc fix.
30948
30949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30950
30951         md5: adapt alignment constraint fix from sha1.
30952         * lib/md5.c (set_uint32): New function, from sha1.c
30953         (md5_read_ctx): Use it.
30954         (md5_finish_ctx): Doc fix.
30955         * lib/md5.h: Doc fix.
30956
30957 2008-01-30  Peter Palfrader  <weasel@debian.org>
30958
30959         sha1: remove the result buffer alignment constraint
30960         * lib/sha1.c (set_uint32): New function.
30961         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30962         constraint.
30963         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30964         * lib/sha1.h: Likewise.
30965
30966 2008-01-30  Andreas Schwab  <schwab@suse.de>
30967             Bruno Haible  <bruno@clisp.org>
30968
30969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30970         correct definition of LDBL_MIN_EXP.
30971
30972 2008-01-30  Karl Berry  <karl@gnu.org>
30973
30974         * config/srclist-update: try to preserve x bit on updates.
30975         * config/srclistvars.sh: update for karl.
30976
30977 2008-01-29  Jim Meyering  <meyering@redhat.com>
30978
30979         vasnprintf.c: Avoid warning about unused label
30980         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30981         "overflow" label definition and associated code with the
30982         same cpp condition that guards the sole use of that label.
30983
30984 2008-01-26  Bruno Haible  <bruno@clisp.org>
30985
30986         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30987         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30988         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30989         * lib/isnanl-nolibm.h (isnanl): Likewise.
30990         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30991
30992 2008-01-26  Bruno Haible  <bruno@clisp.org>
30993
30994         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30995         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30996
30997 2008-01-26  Bruno Haible  <bruno@clisp.org>
30998
30999         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31000         GCC >= 4.0 built-in.
31001         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31002
31003 2008-01-26  Bruno Haible  <bruno@clisp.org>
31004
31005         Rename isnan, applicable to 'double' only, to isnand.
31006         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31007         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31008         (configure.ac): Update.
31009         (Include): Replace "isnan.h" with "isnand.h".
31010         * m4/isnand.m4: Renamed from m4/isnan.m4.
31011         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31012         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31013         instead of isnan.c.
31014         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31015         instead of HAVE_ISNAN_IN_LIBC.
31016         (isnand): Renamed from isnan.
31017         * lib/isnand.c: New file.
31018         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31019         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31020         (Makefile.am): Update.
31021         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31022         Include isnand.h instead of isnan.h.
31023         (main): Test isnand instead of isnan.
31024         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31025         isnan-nolibm.
31026         * modules/frexp (Depends-on): Likewise.
31027         * modules/frexp-tests (Depends-on): Likewise.
31028         * modules/frexp-nolibm (Depends-on): Likewise.
31029         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31030         * modules/isfinite (Depends-on): Likewise.
31031         * modules/round-tests (Depends-on): Likewise.
31032         * modules/signbit (Depends-on): Likewise.
31033         * modules/signbit-tests (Depends-on): Likewise.
31034         * modules/snprintf-posix (Depends-on): Likewise.
31035         * modules/sprintf-posix (Depends-on): Likewise.
31036         * modules/trunc-tests (Depends-on): Likewise.
31037         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31038         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31039         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31040         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31041         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31042         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31043         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31044         * modules/vasnprintf-posix (Depends-on): Likewise.
31045         * modules/vasprintf-posix (Depends-on): Likewise.
31046         * modules/vfprintf-posix (Depends-on): Likewise.
31047         * modules/vsnprintf-posix (Depends-on): Likewise.
31048         * modules/vsprintf-posix (Depends-on): Likewise.
31049         * lib/frexp.c: Include isnand.h instead of isnan.h.
31050         (ISNAN): Set to isnand instead of isnan.
31051         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31052         (gl_isfinited): Use isnand instead of isnan.
31053         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31054         (gl_signbitd): Use isnand instead of isnan.
31055         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31056         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31057         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31058         (main): Use isnand instead of isnan.
31059         * tests/test-round1.c: Include isnand.h.
31060         (main): Use isnand instead of isnan.
31061         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31062         (ISNAN): Set to isnand instead of isnan.
31063         * tests/test-trunc1.c: Include isnand.h.
31064         (main): Use isnand instead of isnan.
31065         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31066         (equal): Use isnand instead of isnan.
31067         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31068         isnand-nolibm.
31069         * NEWS: Mention the change.
31070
31071 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31072             Bruno Haible  <bruno@clisp.org>
31073
31074         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31075         the GCC builtins for signbits are present and set
31076         REPLACE_SIGNBIT_USING_GCC if so.
31077         * lib/math.in.h (signbit): Define using GCC builtins if
31078         REPLACE_SIGNBIT_USING_GCC is set.
31079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31080         REPLACE_SIGNBIT_USING_GCC.
31081         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31082
31083 2008-01-25  Jim Meyering  <meyering@redhat.com>
31084
31085         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31086         * lib/poll.c: Include <config.h>, not "config.h".
31087         * tests/test-getaddrinfo.c: Likewise.
31088
31089 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31090
31091         * modules/sockets-tests: New file.
31092
31093 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31094
31095         * modules/sockets: New module, can be used to call WSA_Startup and
31096         WSA_Cleanup when needed.
31097
31098         * lib/sockets.h, lib/sockets.c: New files.
31099
31100         * m4/sockets.m4: New file.
31101
31102         * tests/test-sockets.c: New file.
31103
31104 2008-01-19  Bruno Haible  <bruno@clisp.org>
31105
31106         * doc/posix-headers: Renamed from doc/headers.
31107         * doc/posix-functions: Renamed from doc/functions.
31108         * doc/gnulib.texi: Update.
31109
31110 2008-01-19  Bruno Haible  <bruno@clisp.org>
31111
31112         * doc/glibc-functions/strcasestr.texi: Include contents of
31113         doc/functions/strcasestr.texi, fixing the list of platforms.
31114         * doc/functions/strcasestr.texi: Remove file.
31115
31116 2008-01-19  Bruno Haible  <bruno@clisp.org>
31117
31118         * doc/glibc-functions/memmem.texi: Include contents of
31119         doc/functions/memmem.texi.
31120         * doc/functions/memmem.texi: Remove file.
31121
31122 2008-01-18  Bruno Haible  <bruno@clisp.org>
31123
31124         * doc/glibc-functions/*.texi: New files.
31125         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31126         to use the new files.
31127
31128 2008-01-17  Bruno Haible  <bruno@clisp.org>
31129
31130         * tests/test-gethostname.c (main): Fix printf statement.
31131
31132 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31133
31134         * modules/gethostname-tests: New file.
31135
31136         * tests/test-gethostname.c: New file.
31137
31138 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31139
31140         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31141         used by the UNAME case.  Reported by Bruno Haible
31142         <bruno@clisp.org>.
31143
31144 2008-01-17  Eric Blake  <ebb9@byu.net>
31145
31146         Convert c-strcasestr to be more efficient.
31147         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31148         (Depends-on): Add c-strcase, remove malloca, strnlen.
31149         * tests/test-c-strcasestr.c (main): Enhance test.
31150         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31151
31152 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31153
31154         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31155         Use it in creating po/Makevars.
31156
31157 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31158
31159         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31160         Applications that requires it should initialize libgcrypt
31161         manually.
31162
31163 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31164
31165         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31166
31167 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         Fix problem with getdate on mingw32 reported by Simon Josefsson
31170         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31171         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31172         tzname", when deciding whether to declare tzname.
31173         * lib/strftime.c (tzname): Likewise.
31174
31175 2008-01-15  Bruno Haible  <bruno@clisp.org>
31176
31177         Work around a MacOS X 10.5 bug in frexpl().
31178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31179         * doc/functions/frexpl.texi: Document the bug.
31180         Reported by Elias Pipping <pipping@gentoo.org>.
31181
31182 2008-01-14  Eric Blake  <ebb9@byu.net>
31183
31184         Touch up previous patch.
31185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31186         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31187
31188         Convert strcasestr module to use Two-Way algorithm.
31189         * modules/strcasestr-simple: New module, based on the old
31190         strcasestr, but with Two-Way rather than KMP.
31191         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31192         * lib/string.in.h (rpl_strcasestr): Declare.
31193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31194         performance.
31195         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31196         * modules/string (Makefile.am): Support strcasestr.
31197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31198         * modules/strcasestr-tests (Depends-on): Check for alarm.
31199         * tests/test-strcasestr.c: Augment test.
31200         * lib/str-two-way.h: Clean up stray macro.
31201         * NEWS: Document new module.
31202         * MODULES.html.sh (string handling): Likewise.
31203         * doc/functions/strcasestr.texi: New file.
31204         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31205         here, since it is not a POSIX function.
31206
31207 2008-01-14  Colin Watson  <cjwatson@debian.org>
31208             Bruno Haible  <bruno@clisp.org>
31209
31210         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31211         works fine; if not, set REPLACE_STRSIGNAL.
31212         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31214         REPLACE_STRSIGNAL.
31215         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31216         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31217         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31218
31219 2008-01-14  Bruno Haible  <bruno@clisp.org>
31220
31221         * modules/strsignal (Include): Change to <string.h>.
31222
31223 2008-01-14  Colin Watson  <cjwatson@debian.org>
31224
31225         * modules/argp (Notice): Add a notice recommending to change
31226         XGETTEXT_OPTIONS.
31227         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31228
31229 2008-01-13  Colin Watson  <cjwatson@debian.org>
31230
31231         * modules/strsignal-tests: New file.
31232         * tests/test-strsignal.c: New file.
31233
31234         * lib/strsignal.c: New file, from glibc with modifications.
31235         * lib/siglist.h: New file, from glibc with modifications.
31236         * lib/string.in.h (strsignal): New declaration.
31237         * m4/strsignal.m4: New file.
31238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31239         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31240         * modules/strsignal: New file.
31241         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31242         HAVE_DECL_STRSIGNAL.
31243
31244 2008-01-13  Bruno Haible  <bruno@clisp.org>
31245
31246         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31247         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31248         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31250
31251 2008-01-13  Bruno Haible  <bruno@clisp.org>
31252
31253         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31254         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31255         * lib/argp.h (__attribute__): Likewise.
31256         * lib/c-stack.c (__attribute__): Likewise.
31257         * lib/error.h (__attribute__): Likewise.
31258         * lib/fts.c (__attribute__): Likewise.
31259         * lib/openat.h (__attribute__): Likewise.
31260         * lib/stdio.in.h (__attribute__): Likewise.
31261         * lib/string.in.h (__attribute__): Likewise.
31262         * lib/utimens.c (__attribute__): Likewise.
31263         * lib/vasnprintf.h (__attribute__): Likewise.
31264         * lib/xalloc.h (__attribute__): Likewise.
31265         * lib/xprintf.h (__attribute__): Likewise.
31266         * lib/xstrtol.h (__attribute__): Likewise.
31267         * lib/xvasprintf.h (__attribute__): Likewise.
31268
31269 2008-01-12  Bruno Haible  <bruno@clisp.org>
31270
31271         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31272         * doc/glibc-headers/a.out.texi: New file.
31273         * doc/glibc-headers/aliases.texi: New file.
31274         * doc/glibc-headers/alloca.texi: New file.
31275         * doc/glibc-headers/ar.texi: New file.
31276         * doc/glibc-headers/argp.texi: New file.
31277         * doc/glibc-headers/argz.texi: New file.
31278         * doc/glibc-headers/byteswap.texi: New file.
31279         * doc/glibc-headers/crypt.texi: New file.
31280         * doc/glibc-headers/endian.texi: New file.
31281         * doc/glibc-headers/envz.texi: New file.
31282         * doc/glibc-headers/err.texi: New file.
31283         * doc/glibc-headers/error.texi: New file.
31284         * doc/glibc-headers/execinfo.texi: New file.
31285         * doc/glibc-headers/fpu_control.texi: New file.
31286         * doc/glibc-headers/fstab.texi: New file.
31287         * doc/glibc-headers/fts.texi: New file.
31288         * doc/glibc-headers/getopt.texi: New file.
31289         * doc/glibc-headers/ieee754.texi: New file.
31290         * doc/glibc-headers/ifaddrs.texi: New file.
31291         * doc/glibc-headers/libintl.texi: New file.
31292         * doc/glibc-headers/mcheck.texi: New file.
31293         * doc/glibc-headers/mntent.texi: New file.
31294         * doc/glibc-headers/obstack.texi: New file.
31295         * doc/glibc-headers/paths.texi: New file.
31296         * doc/glibc-headers/printf.texi: New file.
31297         * doc/glibc-headers/pty.texi: New file.
31298         * doc/glibc-headers/resolv.texi: New file.
31299         * doc/glibc-headers/shadow.texi: New file.
31300         * doc/glibc-headers/sysexits.texi: New file.
31301         * doc/glibc-headers/ttyent.texi: New file.
31302
31303 2008-01-12  Jim Meyering  <meyering@redhat.com>
31304
31305         announce-gen: emit Gnulib's git-based version string.
31306         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31307         New option --gnulib-version=V, where V is expected to be
31308         the output of running git describe in the gnulib directory.
31309         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31310         not useful, and plan to stop publishing an xdelta file with each
31311         coreutils release.
31312
31313         * build-aux/announce-gen: Also check for lzma-compressed files.
31314
31315 2008-01-11  Bruno Haible  <bruno@clisp.org>
31316
31317         * tests/test-memmem.c (main): Increase maximum allowed time.
31318         * tests/test-strstr.c (main): Likewise.
31319
31320 2008-01-11  Bruno Haible  <bruno@clisp.org>
31321
31322         * doc/functions/memmem.texi: Add more precisions about platforms.
31323         * doc/functions/strstr.texi: Likewise.
31324
31325 2008-01-10  Eric Blake  <ebb9@byu.net>
31326
31327         * m4/strstr.m4: Delete cruft from copy-n-paste.
31328         Reported by Bruno Haible.
31329
31330 2008-01-10  Bruno Haible  <bruno@clisp.org>
31331
31332         Make c-strstr rely on strstr.
31333         * lib/c-strstr.c: Don't include str-kmp.h.
31334         (c_strstr): Define in terms of strstr.
31335         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31336         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31337
31338 2008-01-10  Bruno Haible  <bruno@clisp.org>
31339
31340         * doc/gnulib.texi (String Functions in C Locale): New section.
31341         * doc/c-ctype.texi: New file.
31342         * doc/c-strcase.texi: New file.
31343         * doc/c-strcaseeq.texi: New file.
31344         * doc/c-strcasestr.texi: New file.
31345         * doc/c-strstr.texi: New file.
31346         * doc/c-strtod.texi: New file.
31347         * doc/c-strtold.texi: New file.
31348
31349 2008-01-10  Eric Blake  <ebb9@byu.net>
31350
31351         * lib/relocatable.h: Fix a comment.
31352
31353 2008-01-10  Eric Blake  <ebb9@byu.net>
31354
31355         Share two-way algorithm.
31356         * lib/str-two-way.h: New file, merged from...
31357         * lib/memmem.c: ...here...
31358         * lib/strstr.c: ...and here.
31359         * modules/memmem (Files): Use it.
31360         * modules/strstr (Files): Likewise.
31361
31362         Avoid quadratic strstr implementations.
31363         * lib/strstr.c: New file.
31364         * m4/strstr.m4: Likewise.
31365         * modules/strstr: Likewise.
31366         * modules/strstr-tests: Likewise.
31367         * tests/test-strstr.c: Likewise.
31368         * lib/string.in.h (rpl_strstr): Declare.
31369         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31371         * modules/string (Makefile.am): Likewise.
31372         * MODULES.html.sh (string handling): Mention new module.
31373         * doc/functions/strstr.texi (strstr): Document the bug.
31374
31375 2008-01-10  Bruno Haible  <bruno@clisp.org>
31376
31377         * lib/relocatable.h (relocate): State whether result is freshly
31378         allocated or not.
31379         * lib/relocatable.c (relocate): Return a freshly allocated string
31380         instead of a pointer to a privately held string.
31381         Reported by Sylvain Beucler <beuc@gnu.org>.
31382
31383 2008-01-10  Colin Watson  <cjwatson@debian.org>
31384
31385         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31386         s/S_ISNLK/S_ISLNK/.
31387
31388 2008-01-09  Bruno Haible  <bruno@clisp.org>
31389
31390         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31391         and other files.
31392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31393         if it's only a guess.
31394         * modules/memmem: Simplify by depending on memmem-simple.
31395
31396 2008-01-09  Bruno Haible  <bruno@clisp.org>
31397
31398         Work around OpenBSD 4.0 tdelete() bug.
31399         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31400         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31401         macros and don't redefine the enum values.
31402         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31403         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31404         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31405
31406 2008-01-09  Bruno Haible  <bruno@clisp.org>
31407
31408         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31409         (main): Don't perform the tests if setlocale did not install a UTF-8
31410         locale. Needed on OpenBSD 4.0.
31411         * modules/wcwidth-tests (Depends-on): Add localcharset.
31412
31413 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31414
31415         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31416         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31417         * NEWS: announce this.
31418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31419
31420 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31421         and Eric Blake  <ebb9@byu.net>
31422
31423         Add memmem-simple module.
31424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31425         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31426         * modules/memmem-simple: New file.
31427         * modules/memmem (Description): Tweak.
31428         * MODULES.html.sh (string handling): Mention new module.
31429         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31430         addressed by memmem-simple.
31431         * NEWS: Document the difference.
31432
31433 2008-01-09  Eric Blake  <ebb9@byu.net>
31434
31435         Give gcc some memmem optimization hints.
31436         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31437         (strcasestr): Declare as pure.
31438         * modules/memmem (Maintainer): Claim my implementation.
31439
31440 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31441
31442         Support AIX 6.1 and higher.
31443         * build-aux/config.libpath: Likewise.
31444         * build-aux/config.rpath: Likewise.
31445
31446 2008-01-08  Jim Meyering  <meyering@redhat.com>
31447             Bruno Haible  <bruno@clisp.org>
31448
31449         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31450         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31451         Reported by Peter Fales in
31452         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31453
31454 2008-01-08  Bruno Haible  <bruno@clisp.org>
31455
31456         * modules/unictype/category-of (Depends-on): Add
31457         unictype/category-none.
31458         * modules/unictype/category-and-tests (Depends-on): Add
31459         unictype/category-{L,N,Lu,Nd}.
31460         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31461         * modules/unictype/category-or-tests (Depends-on): Add
31462         unictype/category-{L,N}.
31463         * modules/unictype/category-name-tests (Depends-on): Add
31464         unictype/category-{Z,Nl}.
31465         Reported by Simon Josefsson.
31466
31467 2008-01-08  Bruno Haible  <bruno@clisp.org>
31468
31469         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31470         convention better.
31471         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31472         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31473         Reported by Peter Miller <millerp@canb.auug.org.au>.
31474
31475 2008-01-08  Eric Blake  <ebb9@byu.net>
31476
31477         Rewrite memmem to guarantee linear complexity without malloc.
31478         * lib/memmem.c (memmem): Use Two-Way rather than
31479         Knuth-Morris-Pratt, to allow O(1) space usage.
31480         (critical_factorization, two_way_short_needle)
31481         (two_way_long_needle): New functions.
31482         (knuth_morris_pratt): Delete.
31483         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31484         Add stdint.
31485         * tests/test-memmem.c (main): Add tests for periodic needle and
31486         sublinear performance.
31487         * doc/functions/memmem.texi (memmem): Document other deficiencies
31488         in cygwin and older glibc.
31489
31490 2008-01-08  Bruno Haible  <bruno@clisp.org>
31491
31492         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31493         augmentation.
31494
31495 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31496
31497         Add a configure time option: --disable-acl.
31498         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31499         AC_ARG_ENABLE(acl).
31500
31501 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31502
31503         * tests/test-localename.c: Don't include obsolete "setenv.h".
31504
31505         * modules/localename-tests (Depends-on): Need unsetenv.
31506
31507 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31508
31509         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31510
31511 2008-01-06  Colin Watson  <cjwatson@debian.org>
31512
31513         * users.txt: Add man-db.
31514
31515 2008-01-07  Bruno Haible  <bruno@clisp.org>
31516
31517         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31518         previous section name.
31519
31520 2008-01-07  Bruno Haible  <bruno@clisp.org>
31521
31522         * lib/progname.c (set_program_name): Don't strip off a leading
31523         "lt-" prefix outside a .libs directory.
31524         Suggested by Paul Eggert.
31525
31526 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31527             Bruno Haible  <bruno@clisp.org>
31528
31529         Improve memory cleanup in 'relocatable' module.
31530         * lib/relocatable.h (compute_curr_prefix): Change return type to
31531         'char *'.
31532         * lib/relocatable.c (compute_curr_prefix): Change return type to
31533         'char *'. Free curr_installdir after use.
31534         (relocate): Free curr_prefix_better after use.
31535         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31536
31537 2008-01-01  Bruno Haible  <bruno@clisp.org>
31538
31539         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31540         failure on older glibc systems.
31541         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31542
31543 2008-01-05  Eric Blake  <ebb9@byu.net>
31544
31545         Avoid quadratic system memmem.
31546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31547         Reported by Ralf Wildenhues.
31548
31549         Fix memmem test for mingw.
31550         * modules/memmem-tests (configure.ac): Check for alarm.
31551         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31552         it.
31553         * doc/functions/memmem.texi: New file.
31554         * doc/gnulib.texi (Function Substitutes): Add memmem.
31555         Reported by Bruno Haible.
31556
31557 2008-01-04  Bruno Haible  <bruno@clisp.org>
31558
31559         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31560         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31561         gl_HEADER_STRING_H_DEFAULTS.
31562
31563 2008-01-04  Eric Blake  <ebb9@byu.net>
31564
31565         Shorten duration of memmem test.
31566         * tests/test-memmem.c (main): Use alarm to declare failure if test
31567         is taking too long.
31568         Reported by Ralf Wildenhues.
31569
31570 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31571
31572         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31573         string, needed by strerror.
31574
31575 2008-01-03  Colin Watson  <cjwatson@debian.org>
31576             Bruno Haible  <bruno@clisp.org>
31577
31578         * doc/gnulib-tool.texi (Localization): New section.
31579
31580 2008-01-02  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31583         variables to 'unsigned char *' type.
31584         Reported by Paul Eggert.
31585
31586 2008-01-02  Jim Meyering  <jim@meyering.net>
31587
31588         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31589
31590 2007-12-31  Jim Meyering  <jim@meyering.net>
31591
31592         Avoid use of private FTS type name.
31593         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31594
31595 2007-12-30  Karl Berry  <karl@gnu.org>
31596
31597         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31598         work around defect in Texinfo and/or the standalone Info browser.
31599
31600 2007-12-30  Bruno Haible  <bruno@clisp.org>
31601
31602         Unify 5 copies of the KMP code.
31603         * lib/str-kmp.h: New file.
31604         * lib/c-strcasestr.c: Include str-kmp.h.
31605         (knuth_morris_pratt): Remove function.
31606         (c_strcasestr): Update.
31607         * lib/c-strstr.c: Include str-kmp.h.
31608         (knuth_morris_pratt): Remove function.
31609         (c_strcasestr): Update.
31610         * lib/mbscasestr.c: Include str-kmp.h.
31611         (knuth_morris_pratt_unibyte): Remove function.
31612         * lib/mbsstr.c: Include str-kmp.h.
31613         (knuth_morris_pratt_unibyte): Remove function.
31614         * lib/strcasestr.c: Include str-kmp.h.
31615         (knuth_morris_pratt): Remove function.
31616         (strcasestr): Update.
31617         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31618         * modules/c-strstr (Files): Likewise.
31619         * modules/mbscasestr (Files): Likewise.
31620         * modules/mbsstr (Files): Likewise.
31621         * modules/strcasestr (Files): Likewise.
31622         Suggested by Paul Eggert.
31623
31624 2007-12-30  Bruno Haible  <bruno@clisp.org>
31625
31626         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31627         defined.
31628
31629 2007-12-30  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/xmalloca.h: Include xalloc.h.
31632         (xnmalloca): New macro.
31633
31634 2007-12-30  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/malloca.h (nmalloca): New macro.
31637         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31638         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31639         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31640         knuth_morris_pratt_multibyte): Likewise.
31641         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31642         knuth_morris_pratt_multibyte): Likewise.
31643         * lib/memmem.c (knuth_morris_pratt): Likewise.
31644         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31645
31646 2007-12-25  Bruno Haible  <bruno@clisp.org>
31647
31648         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31649         * lib/glob.c: Don't include openat.h.
31650         (link_exists2_p): Add back the code that deals with the
31651         !GLOB_ALTDIRFUNC case.
31652         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31653         let it do the filename concatenation.
31654         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31655         * modules/glob (Depends-on): Remove openat.
31656
31657 2007-12-31  Bruno Haible  <bruno@clisp.org>
31658
31659         * modules/dirfd (License): Change to LGPLv2+.
31660         Approved by Jim Meyering.
31661
31662 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31663
31664         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31665         when multiplying M by sizeof (size_t).
31666
31667 2007-12-10  Martin Lambers  <marlam@marlam.de>
31668
31669         Override getpagesize on mingw.
31670         * lib/getpagesize.c: New file.
31671         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31672         * modules/getpagesize (Files): Add lib/getpagesize.c.
31673         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31675         REPLACE_GETPAGESIZE.
31676         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31677
31678 2007-12-25  Bruno Haible  <bruno@clisp.org>
31679
31680         * modules/localcharset (Notice): New field.
31681         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31682         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31683
31684 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31685             Bruno Haible  <bruno@clisp.org>
31686
31687         Avoid using the syntax symbol() in formatted documentation.
31688         * MODULES.html.sh (func_module): When replacing symbol() with a
31689         hyperlink, remove the parentheses. Show an error if some remain.
31690         Recognize and render the '...' syntax.
31691         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31692         Rework. Add paragraph about GCC's inlining.
31693         * doc/alloca.texi: Likewise.
31694         * doc/error.texi: Remove parentheses from symbol reference.
31695         * doc/gnulib-intro.texi: Likewise.
31696         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31697         * modules/fnmatch (Description): Reword to say "the ... function".
31698         * modules/full-read (Description): Likewise.
31699         * modules/full-write (Description): Likewise.
31700         * modules/safe-read (Description): Likewise.
31701         * modules/safe-write (Description): Likewise.
31702         * modules/strchrnul (Description): Likewise.
31703         * modules/trim (Description): Likewise.
31704         * modules/error (Description): Remove parentheses from symbol
31705         references.
31706         * modules/verror (Description): Likewise.
31707         Reported by Karl Berry.
31708
31709 2007-12-25  Bruno Haible  <bruno@clisp.org>
31710
31711         Fixup after 2007-10-16 commit.
31712         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31713
31714 2007-12-24  Bruno Haible  <bruno@clisp.org>
31715
31716         Make --enable-relocatable work with DESTDIR.
31717         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31718         to compute installdir from destprog.
31719         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31720         also set the RELOC_DESTDIR variable.
31721         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31722
31723 2007-12-24  Bruno Haible  <bruno@clisp.org>
31724
31725         Fix link error due to xalloc_die().
31726         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31727         of xreadlink.
31728         * lib/relocwrapper.c: Update comments.
31729         * build-aux/install-reloc: Remove xreadlink.c from file list.
31730         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31731         xreadlink.c.
31732         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31733
31734 2007-12-24  Bruno Haible  <bruno@clisp.org>
31735
31736         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31737         * lib/setenv.h: Remove file.
31738         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31739         lib/setenv.h.
31740         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31741         (Depends-on): Add stdlib.
31742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31743         gl_FUNC_UNSETENV.
31744         (Include): Replace setenv.h with <stdlib.h>.
31745         * modules/unsetenv: New file.
31746         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31747         * lib/unsetenv.c: Include <stdlib.h> first.
31748         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31749         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31750         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31751         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31752         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31753         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31755         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31756         * doc/functions/unsetenv.texi: Update.
31757         * modules/xsetenv (Depends-on): Add unsetenv.
31758         * modules/getdate (Depends-on): Likewise.
31759         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31760         * lib/xsetenv.c: Don't include setenv.h.
31761         * lib/getdate.y: Likewise.
31762         * lib/relocwrapper.c: Likewise.
31763         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31764         (Depends-on): Add stdlib.
31765         * NEWS: Mention the changes.
31766         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31767
31768 2007-12-23  Bruno Haible  <bruno@clisp.org>
31769
31770         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31771         indentation.
31772
31773 2007-12-23  Bruno Haible  <bruno@clisp.org>
31774
31775         * lib/c-strcasestr.c: Add more comments.
31776         * lib/c-strstr.c: Likewise.
31777         * lib/mbscasestr.c: Likewise.
31778         * lib/mbsstr.c: Likewise.
31779         * lib/strcasestr.c: Likewise.
31780         * lib/memmem.c: Likewise.
31781
31782 2007-12-23  Bruno Haible  <bruno@clisp.org>
31783
31784         * tests/test-memmem.c: Include <string.h> first.
31785
31786 2007-12-22  Bruno Haible  <bruno@clisp.org>
31787
31788         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31789         the contents of $testsbase.
31790         Reported by Ralf Wildenhues.
31791
31792 2007-12-22  Bruno Haible  <bruno@clisp.org>
31793
31794         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31795         two variables local_ldadd_before, local_ldadd_last.
31796
31797 2007-12-20  Eric Blake  <ebb9@byu.net>
31798
31799         Work around circular library issue when cross-compiling.
31800         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31801         that progname.o does not need to pull in rpl_memcmp.
31802
31803 2007-12-19  Eric Blake  <ebb9@byu.net>
31804
31805         Fix memmem to avoid O(n^2) worst-case complexity.
31806         * lib/memmem.c (knuth_morris_pratt): New function.
31807         (memmem): Use it if first few naive iterations fail.
31808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31809         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31810         * modules/memchr (License): Likewise.
31811         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31812         malloca.
31813         * tests/test-memmem.c: Rewrite, borrowing ideas from
31814         test-mbsstr1.c; the old version wouldn't even compile!
31815         * modules/memmem-tests: New file.
31816         * lib/string.in.h (rpl_memmem): Add declaration.
31817         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31819         REPLACE_MEMMEM.
31820
31821 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31822
31823         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31824         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31825         before any system include files, and undef after them all.  This
31826         should fix a problem on VMS reported by John E. Malmberg in
31827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31828
31829 2007-12-17  Eric Blake  <ebb9@byu.net>
31830
31831         Revert addition of verify, for BSD/OS.
31832         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31833         can't handle large files, for the sake of obsolete platforms.
31834         * modules/fseeko (Depends-on): Remove verify.
31835         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31836         * doc/functions/ftello.texi (ftello): Likewise.
31837         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31838         Reported by Larry Jones.
31839
31840 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31841
31842         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31843         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31844
31845 2007-12-17  Jim Meyering  <meyering@redhat.com>
31846
31847         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31848         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31849         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31850         * modules/getcwd (Depends-on): Add openat.
31851         Reported by Petr Salinger.
31852
31853 2007-12-17  Bruno Haible  <bruno@clisp.org>
31854
31855         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31856         avoid a segmentation fault of the configure test on x86_64 systems.
31857
31858 2007-12-15  Jim Meyering  <meyering@redhat.com>
31859
31860         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31861
31862 2007-12-13  Eric Blake  <ebb9@byu.net>
31863
31864         Another fseek test.
31865         * tests/test-fseek.c (main): Also test ungetc handling.
31866         * tests/test-fseeko.c (main): Likewise.
31867         * modules/fseeko (Depends-on): Add verify.
31868         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31869         large.
31870         Reported by Larry Jones.
31871
31872         Fix fseeko on mingw.
31873         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31874         seek.
31875
31876         Beef up fseek tests.
31877         * tests/test-fseek.c (main): Also test eof handling.
31878         * tests/test-fseeko.c (main): Likewise.
31879         Reported by Larry Jones.
31880
31881 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31882
31883         Fix fseeko on BSD-based platforms.
31884         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31885         successful seek.
31886
31887 2007-12-12  Eric Blake  <ebb9@byu.net>
31888
31889         Allow circular dependency of separate libtests.a
31890         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31891         when use_libtests.
31892
31893 2007-12-11  Eric Blake  <ebb9@byu.net>
31894
31895         Fix bug with -0.0L in previous patch.
31896         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31897         * tests/test-isnan.c (main): Also test on zeroes.
31898         * tests/test-isnanf.c (main): Likewise.
31899         * tests/test-isnanl.h (main): Likewise.
31900
31901         Detect pseudo-denormals on x86 even when cross-compiling.
31902         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31903         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31904         invalid bit patterns that happen to satisfy ==.
31905
31906         Avoid link failures with separate libtests.a.
31907         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31908         last, to satisfy circular dependencies.
31909
31910 2007-12-11  Eric Blake  <ebb9@byu.net>
31911         and Bruno Haible  <bruno@clisp.org>
31912
31913         Fix OpenBSD 4.0 <float.h> handling of long double.
31914         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31915         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31916         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31917
31918 2007-12-11  Jim Meyering  <meyering@redhat.com>
31919
31920         * users.txt: Add libvirt.
31921
31922         Support versions of autoconf prior to 2.59c.
31923         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31924         if it is not already defined.
31925
31926 2007-12-09  Bruno Haible  <bruno@clisp.org>
31927
31928         Let 'gnulib-tool --import' collect sources needed for the tests in
31929         tests/ rather than in lib/.
31930         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31931         argument. If true, add rules to generate libtests.a, and put libtests.a
31932         into $(LDADD). Consider source files in subdirectories and set
31933         uses_subdirs.
31934         (func_emit_initmacro_start, func_emit_initmacro_end,
31935         func_emit_initmacro_done): Pass all arguments explicitly.
31936         (func_import): Determine two module lists main_modules,
31937         testsrelated_modules. Determine use_libtests. Determine two variables
31938         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31939         instead of just sed_transform_lib_file. Determine two variables
31940         main_files and testsrelated_files. Compute 'files' as the union of
31941         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31942         func_add_or_update. In the generated gnulib-comp.m4, collect the
31943         object files for tests/ in different variables than those for lib/.
31944         Substitute LIBTESTS_LIBDEPS.
31945         (func_create_testdir): Combine the uses_subdirs results from
31946         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31947
31948 2007-12-09  Bruno Haible  <bruno@clisp.org>
31949
31950         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31951         the build-aux directory.
31952
31953 2007-12-09  Bruno Haible  <bruno@clisp.org>
31954
31955         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31956         introduced on 2006-09-09.
31957
31958 2007-12-07  Jim Meyering  <meyering@redhat.com>
31959
31960         Let these macros work also with autoconf-2.59.
31961         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31962         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31964
31965 2007-12-06  Jim Meyering  <meyering@redhat.com>
31966
31967         Avoid a configure-time syntax error in gl_FUNC_ACL.
31968         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31969         function in each branch, before testing the cache variable.
31970
31971 2007-12-04  Eric Blake  <ebb9@byu.net>
31972
31973         Make scripts executable.
31974         * build-aux/config.guess: Add execute permissions.
31975         * build-aux/config.sub: Likewise.
31976         * build-aux/gendocs.sh: Likewise.
31977
31978         Fix frexp on mingw.
31979         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31980         cross-compiling.
31981         * doc/functions/frexp.texi (frexp): Document the bug.
31982
31983         Make cygwin fseeko check more reliable.
31984         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31985         version numbers, rather than unrelated feature check.
31986         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31987         * doc/functions/ftello.texi (ftello): Likewise.
31988         Reported by Bruno Haible.
31989
31990         * m4/strerror.m4: Bump version number.
31991
31992 2007-12-03  Bruno Haible  <bruno@clisp.org>
31993
31994         * doc/functions/mprotect.texi: Mention the mingw problem.
31995
31996 2007-12-03  Eric Blake  <ebb9@byu.net>
31997
31998         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31999         REPLACE_STRERROR is initialized before this macro.
32000
32001 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32002
32003         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32004         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32005         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32006         put -lsec in even for programs other than 'ls'.  This fixes a problem
32007         for gettext reported by Bruno Haible in
32008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32009         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32010         Add support for Solaris 10.  This isn't efficient, but should get the
32011         job done for now.
32012
32013 2007-12-03  James Youngman  <jay@gnu.org>
32014
32015         * doc/regexprops-generic.texi: change "an close-group" to "a
32016         close-group" and "illegal" to "not allowed".
32017
32018 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32019
32020         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32021         pr_byname.h. Needed for the rare case when the maintainer has done
32022         "make maintainer-clean" in the source directory and then attempts a
32023         build outside the source directory.
32024         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32025         scripts_byname.h.
32026
32027 2007-12-02  Martin Lambers <marlam@marlam.de>
32028             Bruno Haible  <bruno@clisp.org>
32029
32030         * lib/getpagesize.h: Remove file.
32031         * lib/unistd.in.h: Include declaration of getpagesize here.
32032         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32033         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32034         HAVE_SYS_PARAM_H.
32035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32036         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32037         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32038         (Depends-on): Add unistd.
32039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32040         (Include): Use <unistd.h> instead of getpagesize.h.
32041         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32042         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32043         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32044         gl_GETPAGESIZE invocation, already handled by module dependency.
32045         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32046
32047 2007-12-02  Bruno Haible  <bruno@clisp.org>
32048
32049         * modules/strings-tests: New file.
32050         * tests/test-strings.c: New file.
32051
32052         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32053         * lib/strings.in.h: New file.
32054         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32055         * m4/strings_h.m4: New file.
32056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32057         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32058         * modules/strings: New file.
32059         * modules/string (Makefile.am): Update.
32060         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32061         Reported by Karl Berry.
32062
32063 2007-12-01  Eric Blake  <ebb9@byu.net>
32064
32065         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32066         accomodate fix in cygwin 1.5.25.
32067
32068 2007-12-01  Jim Meyering  <meyering@redhat.com>
32069
32070         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32071         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32072         that would inhibit utf8-optimization of a regexp containing line-
32073         or buffer-anchors, e.g., `^', `$'.
32074
32075 2007-11-30  Bruno Haible  <bruno@clisp.org>
32076
32077         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32078         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32079         glthread_recursive_lock_init.
32080         * lib/lock.c (glthread_recursive_lock_init)
32081         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32082         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32083
32084 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32085
32086         New function qset_acl, like set_acl but with syscall semantics.
32087         * lib/acl.h (qset_acl): New decl.
32088         * lib/acl.c (qset_acl): New function.
32089         (set_acl): Use new function.  Use more-consistent diagnostics.
32090
32091 2007-11-28  Jim Meyering  <meyering@redhat.com>
32092
32093         * modules/physmem (License): Change from GPL to LGPLv2+.
32094
32095 2007-11-26  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32098         'long double' type has excess precision.
32099         Reported by Jim Meyering in
32100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32101
32102 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32103
32104         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32105         Sync from <http://gnu.org/licenses>.
32106         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32107         with license text from same location.
32108         * doc/maintain.texi, doc/standards.texi:  Sync from
32109         <http://savannah.gnu.org/projects/gnustandards>.
32110
32111 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
32112         and Jim Meyering  <meyering@redhat.com>
32113
32114         Adjust getdate' grammar to accept a slightly more regular language.
32115         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32116         Before, the former was rejected.
32117         * lib/getdate.y (digits_to_date_time): New function, factored
32118         out of ...
32119         (number): ...here.  Just call digits_to_date_time.
32120         (hybrid): New non-terminal to handle an <unsigned number,
32121         signed relative offset> sequence consistently.
32122
32123 2007-11-18  Jim Meyering  <meyering@redhat.com>
32124
32125         Pull my changes from coreutils:
32126         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32127         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32128         use of $gnulib_tool_option_extras, so that it's separated from the
32129         preceding argument.
32130
32131         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32132         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32133         parent destination directories before copying a file into place.
32134
32135 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32136
32137         bootstrap: work also with 4-argument variant of AC_INIT
32138         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32139
32140 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32141
32142         Port test-getaddrinfo to Solaris.
32143         Problem reported by Bruno Haible in
32144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32145         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32146         explanation of setting 'hints'.
32147         Don't reject an implementation merely because it returns EAI_SERVICE.
32148         (EAI_SERVICE): Define to 0 if not defined.
32149
32150 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32151
32152         The license of gnu-make and posix-shell is now "GPLed build tool".
32153         * modules/gnu-make (License): Likewise.
32154         * modules/posix-shell (License): Likewise.
32155
32156         New module posix-shell, for determining a POSIX shell
32157         or perhaps something that is close enough to a POSIX shell.
32158         * m4/posix-shell.m4: New file.
32159         * modules/posix-shell: New file.
32160
32161         * MODULES.html.sh: Mention new module.
32162
32163         New module gnu-make, for determining whether we're using GNU Make.
32164         * m4/gnu-make.m4: New file.
32165         * modules/gnu-make: New file.
32166         * MODULES.html.sh: Mention new module.
32167
32168 2007-11-14  Jim Meyering  <meyering@redhat.com>
32169
32170         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32171         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32172         use this macro to create a function _definition_.
32173         Remove useless "#undef ARGMATCH_DIE".
32174
32175 2007-11-14  Bruno Haible  <bruno@clisp.org>
32176
32177         * lib/config.charset: Update for OpenBSD 4.1.
32178         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32179
32180 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32181
32182         Document 64-bit #if problems in stdint.texi.
32183         * doc/headers/stdint.texi (stdint.h): Mention problems with
32184         64-bit-#if, and how to work around them.
32185
32186         Don't insist on 'long long int' support in the preprocessor.  It
32187         breaks too many things.  For example, PRIdMAX still uses a 'long
32188         long int' format with the latest Sun compiler, even though
32189         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32190         preprocessor problem.  This causes the latest coreutils to dump
32191         core on Solaris 10 sparc with the Sun C compiler.
32192         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32193         the troublesome expressions at configure-time, not at #if-time.
32194         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32195         preprocessor.
32196         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32197         compile-time C checks, done at 'configure'-time.
32198         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32199         * modules/inttypes (Makefile): Substitute the new symbols that
32200         gl_INTTYPES_H now generates.
32201         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32202
32203 2007-11-12  Bruno Haible  <bruno@clisp.org>
32204
32205         Tests for Unicode character classification functions.
32206
32207         * modules/unictype/bidicategory-byname-tests: New file.
32208         * modules/unictype/bidicategory-name-tests: New file.
32209         * modules/unictype/bidicategory-of-tests: New file.
32210         * modules/unictype/bidicategory-test-tests: New file.
32211         * modules/unictype/block-list-tests: New file.
32212         * modules/unictype/block-of-tests: New file.
32213         * modules/unictype/block-test-tests: New file.
32214         * modules/unictype/category-C-tests: New file.
32215         * modules/unictype/category-Cc-tests: New file.
32216         * modules/unictype/category-Cf-tests: New file.
32217         * modules/unictype/category-Cn-tests: New file.
32218         * modules/unictype/category-Co-tests: New file.
32219         * modules/unictype/category-Cs-tests: New file.
32220         * modules/unictype/category-L-tests: New file.
32221         * modules/unictype/category-Ll-tests: New file.
32222         * modules/unictype/category-Lm-tests: New file.
32223         * modules/unictype/category-Lo-tests: New file.
32224         * modules/unictype/category-Lt-tests: New file.
32225         * modules/unictype/category-Lu-tests: New file.
32226         * modules/unictype/category-M-tests: New file.
32227         * modules/unictype/category-Mc-tests: New file.
32228         * modules/unictype/category-Me-tests: New file.
32229         * modules/unictype/category-Mn-tests: New file.
32230         * modules/unictype/category-N-tests: New file.
32231         * modules/unictype/category-Nd-tests: New file.
32232         * modules/unictype/category-Nl-tests: New file.
32233         * modules/unictype/category-No-tests: New file.
32234         * modules/unictype/category-P-tests: New file.
32235         * modules/unictype/category-Pc-tests: New file.
32236         * modules/unictype/category-Pd-tests: New file.
32237         * modules/unictype/category-Pe-tests: New file.
32238         * modules/unictype/category-Pf-tests: New file.
32239         * modules/unictype/category-Pi-tests: New file.
32240         * modules/unictype/category-Po-tests: New file.
32241         * modules/unictype/category-Ps-tests: New file.
32242         * modules/unictype/category-S-tests: New file.
32243         * modules/unictype/category-Sc-tests: New file.
32244         * modules/unictype/category-Sk-tests: New file.
32245         * modules/unictype/category-Sm-tests: New file.
32246         * modules/unictype/category-So-tests: New file.
32247         * modules/unictype/category-Z-tests: New file.
32248         * modules/unictype/category-Zl-tests: New file.
32249         * modules/unictype/category-Zp-tests: New file.
32250         * modules/unictype/category-Zs-tests: New file.
32251         * modules/unictype/category-and-not-tests: New file.
32252         * modules/unictype/category-and-tests: New file.
32253         * modules/unictype/category-byname-tests: New file.
32254         * modules/unictype/category-name-tests: New file.
32255         * modules/unictype/category-none-tests: New file.
32256         * modules/unictype/category-of-tests: New file.
32257         * modules/unictype/category-or-tests: New file.
32258         * modules/unictype/category-test-withtable-tests: New file.
32259         * modules/unictype/combining-class-tests: New file.
32260         * modules/unictype/ctype-alnum-tests: New file.
32261         * modules/unictype/ctype-alpha-tests: New file.
32262         * modules/unictype/ctype-blank-tests: New file.
32263         * modules/unictype/ctype-cntrl-tests: New file.
32264         * modules/unictype/ctype-digit-tests: New file.
32265         * modules/unictype/ctype-graph-tests: New file.
32266         * modules/unictype/ctype-lower-tests: New file.
32267         * modules/unictype/ctype-print-tests: New file.
32268         * modules/unictype/ctype-punct-tests: New file.
32269         * modules/unictype/ctype-space-tests: New file.
32270         * modules/unictype/ctype-upper-tests: New file.
32271         * modules/unictype/ctype-xdigit-tests: New file.
32272         * modules/unictype/decimal-digit-tests: New file.
32273         * modules/unictype/digit-tests: New file.
32274         * modules/unictype/mirror-tests: New file.
32275         * modules/unictype/numeric-tests: New file.
32276         * modules/unictype/property-alphabetic-tests: New file.
32277         * modules/unictype/property-ascii-hex-digit-tests: New file.
32278         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32279         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32280         * modules/unictype/property-bidi-block-separator-tests: New file.
32281         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32282         * modules/unictype/property-bidi-common-separator-tests: New file.
32283         * modules/unictype/property-bidi-control-tests: New file.
32284         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32285         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32286         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32287         * modules/unictype/property-bidi-european-digit-tests: New file.
32288         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32289         * modules/unictype/property-bidi-left-to-right-tests: New file.
32290         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32291         * modules/unictype/property-bidi-other-neutral-tests: New file.
32292         * modules/unictype/property-bidi-pdf-tests: New file.
32293         * modules/unictype/property-bidi-segment-separator-tests: New file.
32294         * modules/unictype/property-bidi-whitespace-tests: New file.
32295         * modules/unictype/property-byname-tests: New file.
32296         * modules/unictype/property-combining-tests: New file.
32297         * modules/unictype/property-composite-tests: New file.
32298         * modules/unictype/property-currency-symbol-tests: New file.
32299         * modules/unictype/property-dash-tests: New file.
32300         * modules/unictype/property-decimal-digit-tests: New file.
32301         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32302         * modules/unictype/property-deprecated-tests: New file.
32303         * modules/unictype/property-diacritic-tests: New file.
32304         * modules/unictype/property-extender-tests: New file.
32305         * modules/unictype/property-format-control-tests: New file.
32306         * modules/unictype/property-grapheme-base-tests: New file.
32307         * modules/unictype/property-grapheme-extend-tests: New file.
32308         * modules/unictype/property-grapheme-link-tests: New file.
32309         * modules/unictype/property-hex-digit-tests: New file.
32310         * modules/unictype/property-hyphen-tests: New file.
32311         * modules/unictype/property-id-continue-tests: New file.
32312         * modules/unictype/property-id-start-tests: New file.
32313         * modules/unictype/property-ideographic-tests: New file.
32314         * modules/unictype/property-ids-binary-operator-tests: New file.
32315         * modules/unictype/property-ids-trinary-operator-tests: New file.
32316         * modules/unictype/property-ignorable-control-tests: New file.
32317         * modules/unictype/property-iso-control-tests: New file.
32318         * modules/unictype/property-join-control-tests: New file.
32319         * modules/unictype/property-left-of-pair-tests: New file.
32320         * modules/unictype/property-line-separator-tests: New file.
32321         * modules/unictype/property-logical-order-exception-tests: New file.
32322         * modules/unictype/property-lowercase-tests: New file.
32323         * modules/unictype/property-math-tests: New file.
32324         * modules/unictype/property-non-break-tests: New file.
32325         * modules/unictype/property-not-a-character-tests: New file.
32326         * modules/unictype/property-numeric-tests: New file.
32327         * modules/unictype/property-other-alphabetic-tests: New file.
32328         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32329         * modules/unictype/property-other-grapheme-extend-tests: New file.
32330         * modules/unictype/property-other-id-continue-tests: New file.
32331         * modules/unictype/property-other-id-start-tests: New file.
32332         * modules/unictype/property-other-lowercase-tests: New file.
32333         * modules/unictype/property-other-math-tests: New file.
32334         * modules/unictype/property-other-uppercase-tests: New file.
32335         * modules/unictype/property-paired-punctuation-tests: New file.
32336         * modules/unictype/property-paragraph-separator-tests: New file.
32337         * modules/unictype/property-pattern-syntax-tests: New file.
32338         * modules/unictype/property-pattern-white-space-tests: New file.
32339         * modules/unictype/property-private-use-tests: New file.
32340         * modules/unictype/property-punctuation-tests: New file.
32341         * modules/unictype/property-quotation-mark-tests: New file.
32342         * modules/unictype/property-radical-tests: New file.
32343         * modules/unictype/property-sentence-terminal-tests: New file.
32344         * modules/unictype/property-soft-dotted-tests: New file.
32345         * modules/unictype/property-space-tests: New file.
32346         * modules/unictype/property-terminal-punctuation-tests: New file.
32347         * modules/unictype/property-test-tests: New file.
32348         * modules/unictype/property-titlecase-tests: New file.
32349         * modules/unictype/property-unassigned-code-value-tests: New file.
32350         * modules/unictype/property-unified-ideograph-tests: New file.
32351         * modules/unictype/property-uppercase-tests: New file.
32352         * modules/unictype/property-variation-selector-tests: New file.
32353         * modules/unictype/property-white-space-tests: New file.
32354         * modules/unictype/property-xid-continue-tests: New file.
32355         * modules/unictype/property-xid-start-tests: New file.
32356         * modules/unictype/property-zero-width-tests: New file.
32357         * modules/unictype/scripts-tests: New file.
32358         * modules/unictype/syntax-c-ident-tests: New file.
32359         * modules/unictype/syntax-c-whitespace-tests: New file.
32360         * modules/unictype/syntax-java-ident-tests: New file.
32361         * modules/unictype/syntax-java-whitespace-tests: New file.
32362         * tests/unictype/test-bidi_byname.c: New file.
32363         * tests/unictype/test-bidi_name.c: New file.
32364         * tests/unictype/test-bidi_of.c: New file.
32365         * tests/unictype/test-bidi_test.c: New file.
32366         * tests/unictype/test-block_list.c: New file.
32367         * tests/unictype/test-block_of.c: New file.
32368         * tests/unictype/test-block_test.c: New file.
32369         * tests/unictype/test-categ_and.c: New file.
32370         * tests/unictype/test-categ_and_not.c: New file.
32371         * tests/unictype/test-categ_byname.c: New file.
32372         * tests/unictype/test-categ_name.c: New file.
32373         * tests/unictype/test-categ_none.c: New file.
32374         * tests/unictype/test-categ_of.c: New file.
32375         * tests/unictype/test-categ_or.c: New file.
32376         * tests/unictype/test-categ_test_withtable.c: New file.
32377         * tests/unictype/test-combining.c: New file.
32378         * tests/unictype/test-decdigit.c: New file.
32379         * tests/unictype/test-digit.c: New file.
32380         * tests/unictype/test-mirror.c: New file.
32381         * tests/unictype/test-numeric.c: New file.
32382         * tests/unictype/test-pr_byname.c: New file.
32383         * tests/unictype/test-pr_test.c: New file.
32384         * tests/unictype/test-predicate-part1.h: New file.
32385         * tests/unictype/test-predicate-part2.h: New file.
32386         * tests/unictype/test-scripts.c: New file.
32387         * tests/unictype/test-sy_c_ident.c: New file.
32388         * tests/unictype/test-sy_java_ident.c: New file.
32389
32390         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32391         for Unicode 5.0.0.
32392         * tests/unictype/test-categ_Cc.c: Likewise.
32393         * tests/unictype/test-categ_Cf.c: Likewise.
32394         * tests/unictype/test-categ_Cn.c: Likewise.
32395         * tests/unictype/test-categ_Co.c: Likewise.
32396         * tests/unictype/test-categ_Cs.c: Likewise.
32397         * tests/unictype/test-categ_L.c: Likewise.
32398         * tests/unictype/test-categ_Ll.c: Likewise.
32399         * tests/unictype/test-categ_Lm.c: Likewise.
32400         * tests/unictype/test-categ_Lo.c: Likewise.
32401         * tests/unictype/test-categ_Lt.c: Likewise.
32402         * tests/unictype/test-categ_Lu.c: Likewise.
32403         * tests/unictype/test-categ_M.c: Likewise.
32404         * tests/unictype/test-categ_Mc.c: Likewise.
32405         * tests/unictype/test-categ_Me.c: Likewise.
32406         * tests/unictype/test-categ_Mn.c: Likewise.
32407         * tests/unictype/test-categ_N.c: Likewise.
32408         * tests/unictype/test-categ_Nd.c: Likewise.
32409         * tests/unictype/test-categ_Nl.c: Likewise.
32410         * tests/unictype/test-categ_No.c: Likewise.
32411         * tests/unictype/test-categ_P.c: Likewise.
32412         * tests/unictype/test-categ_Pc.c: Likewise.
32413         * tests/unictype/test-categ_Pd.c: Likewise.
32414         * tests/unictype/test-categ_Pe.c: Likewise.
32415         * tests/unictype/test-categ_Pf.c: Likewise.
32416         * tests/unictype/test-categ_Pi.c: Likewise.
32417         * tests/unictype/test-categ_Po.c: Likewise.
32418         * tests/unictype/test-categ_Ps.c: Likewise.
32419         * tests/unictype/test-categ_S.c: Likewise.
32420         * tests/unictype/test-categ_Sc.c: Likewise.
32421         * tests/unictype/test-categ_Sk.c: Likewise.
32422         * tests/unictype/test-categ_Sm.c: Likewise.
32423         * tests/unictype/test-categ_So.c: Likewise.
32424         * tests/unictype/test-categ_Z.c: Likewise.
32425         * tests/unictype/test-categ_Zl.c: Likewise.
32426         * tests/unictype/test-categ_Zp.c: Likewise.
32427         * tests/unictype/test-categ_Zs.c: Likewise.
32428         * tests/unictype/test-ctype_alnum.c: Likewise.
32429         * tests/unictype/test-ctype_alpha.c: Likewise.
32430         * tests/unictype/test-ctype_blank.c: Likewise.
32431         * tests/unictype/test-ctype_cntrl.c: Likewise.
32432         * tests/unictype/test-ctype_digit.c: Likewise.
32433         * tests/unictype/test-ctype_graph.c: Likewise.
32434         * tests/unictype/test-ctype_lower.c: Likewise.
32435         * tests/unictype/test-ctype_print.c: Likewise.
32436         * tests/unictype/test-ctype_punct.c: Likewise.
32437         * tests/unictype/test-ctype_space.c: Likewise.
32438         * tests/unictype/test-ctype_upper.c: Likewise.
32439         * tests/unictype/test-ctype_xdigit.c: Likewise.
32440         * tests/unictype/test-decdigit.h: Likewise.
32441         * tests/unictype/test-digit.h: Likewise.
32442         * tests/unictype/test-numeric.h: Likewise.
32443         * tests/unictype/test-pr_alphabetic.c: Likewise.
32444         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32445         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32446         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32447         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32448         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32449         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32450         * tests/unictype/test-pr_bidi_control.c: Likewise.
32451         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32452         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32453         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32454         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32455         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32456         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32457         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32458         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32459         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32460         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32461         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32462         * tests/unictype/test-pr_combining.c: Likewise.
32463         * tests/unictype/test-pr_composite.c: Likewise.
32464         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32465         * tests/unictype/test-pr_dash.c: Likewise.
32466         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32467         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32468         * tests/unictype/test-pr_deprecated.c: Likewise.
32469         * tests/unictype/test-pr_diacritic.c: Likewise.
32470         * tests/unictype/test-pr_extender.c: Likewise.
32471         * tests/unictype/test-pr_format_control.c: Likewise.
32472         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32473         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32474         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32475         * tests/unictype/test-pr_hex_digit.c: Likewise.
32476         * tests/unictype/test-pr_hyphen.c: Likewise.
32477         * tests/unictype/test-pr_id_continue.c: Likewise.
32478         * tests/unictype/test-pr_id_start.c: Likewise.
32479         * tests/unictype/test-pr_ideographic.c: Likewise.
32480         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32481         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32482         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32483         * tests/unictype/test-pr_iso_control.c: Likewise.
32484         * tests/unictype/test-pr_join_control.c: Likewise.
32485         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32486         * tests/unictype/test-pr_line_separator.c: Likewise.
32487         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32488         * tests/unictype/test-pr_lowercase.c: Likewise.
32489         * tests/unictype/test-pr_math.c: Likewise.
32490         * tests/unictype/test-pr_non_break.c: Likewise.
32491         * tests/unictype/test-pr_not_a_character.c: Likewise.
32492         * tests/unictype/test-pr_numeric.c: Likewise.
32493         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32494         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32495         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32496         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32497         * tests/unictype/test-pr_other_id_start.c: Likewise.
32498         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32499         * tests/unictype/test-pr_other_math.c: Likewise.
32500         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32501         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32502         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32503         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32504         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32505         * tests/unictype/test-pr_private_use.c: Likewise.
32506         * tests/unictype/test-pr_punctuation.c: Likewise.
32507         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32508         * tests/unictype/test-pr_radical.c: Likewise.
32509         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32510         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32511         * tests/unictype/test-pr_space.c: Likewise.
32512         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32513         * tests/unictype/test-pr_titlecase.c: Likewise.
32514         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32515         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32516         * tests/unictype/test-pr_uppercase.c: Likewise.
32517         * tests/unictype/test-pr_variation_selector.c: Likewise.
32518         * tests/unictype/test-pr_white_space.c: Likewise.
32519         * tests/unictype/test-pr_xid_continue.c: Likewise.
32520         * tests/unictype/test-pr_xid_start.c: Likewise.
32521         * tests/unictype/test-pr_zero_width.c: Likewise.
32522         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32523         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32524
32525 2007-11-12  Bruno Haible  <bruno@clisp.org>
32526
32527         Unicode character classification functions.
32528         * lib/unictype.h: New file.
32529         * modules/unictype/base: New file.
32530         * modules/unictype/category-L: New file.
32531         * modules/unictype/category-Lu: New file.
32532         * modules/unictype/category-Ll: New file.
32533         * modules/unictype/category-Lt: New file.
32534         * modules/unictype/category-Lm: New file.
32535         * modules/unictype/category-Lo: New file.
32536         * modules/unictype/category-M: New file.
32537         * modules/unictype/category-Mn: New file.
32538         * modules/unictype/category-Mc: New file.
32539         * modules/unictype/category-Me: New file.
32540         * modules/unictype/category-N: New file.
32541         * modules/unictype/category-Nd: New file.
32542         * modules/unictype/category-Nl: New file.
32543         * modules/unictype/category-No: New file.
32544         * modules/unictype/category-P: New file.
32545         * modules/unictype/category-Pc: New file.
32546         * modules/unictype/category-Pd: New file.
32547         * modules/unictype/category-Ps: New file.
32548         * modules/unictype/category-Pe: New file.
32549         * modules/unictype/category-Pi: New file.
32550         * modules/unictype/category-Pf: New file.
32551         * modules/unictype/category-Po: New file.
32552         * modules/unictype/category-S: New file.
32553         * modules/unictype/category-Sm: New file.
32554         * modules/unictype/category-Sc: New file.
32555         * modules/unictype/category-Sk: New file.
32556         * modules/unictype/category-So: New file.
32557         * modules/unictype/category-Z: New file.
32558         * modules/unictype/category-Zs: New file.
32559         * modules/unictype/category-Zl: New file.
32560         * modules/unictype/category-Zp: New file.
32561         * modules/unictype/category-C: New file.
32562         * modules/unictype/category-Cc: New file.
32563         * modules/unictype/category-Cf: New file.
32564         * modules/unictype/category-Cs: New file.
32565         * modules/unictype/category-Co: New file.
32566         * modules/unictype/category-Cn: New file.
32567         * modules/unictype/category-or: New file.
32568         * modules/unictype/category-of: New file.
32569         * modules/unictype/category-test: New file.
32570         * modules/unictype/category-test-withtable: New file.
32571         * modules/unictype/category-byname: New file.
32572         * modules/unictype/category-none: New file.
32573         * modules/unictype/category-and: New file.
32574         * modules/unictype/category-and-not: New file.
32575         * modules/unictype/category-name: New file.
32576         * modules/unictype/combining-class: New file.
32577         * modules/unictype/category-all: New file.
32578         * modules/unictype/bidicategory-all: New file.
32579         * modules/unictype/bidicategory-byname: New file.
32580         * modules/unictype/bidicategory-name: New file.
32581         * modules/unictype/bidicategory-of: New file.
32582         * modules/unictype/bidicategory-test: New file.
32583         * modules/unictype/decimal-digit: New file.
32584         * modules/unictype/digit: New file.
32585         * modules/unictype/numeric: New file.
32586         * modules/unictype/mirror: New file.
32587         * modules/unictype/property-white-space: New file.
32588         * modules/unictype/property-alphabetic: New file.
32589         * modules/unictype/property-other-alphabetic: New file.
32590         * modules/unictype/property-not-a-character: New file.
32591         * modules/unictype/property-default-ignorable-code-point: New file.
32592         * modules/unictype/property-other-default-ignorable-code-point: New
32593         file.
32594         * modules/unictype/property-deprecated: New file.
32595         * modules/unictype/property-logical-order-exception: New file.
32596         * modules/unictype/property-variation-selector: New file.
32597         * modules/unictype/property-private-use: New file.
32598         * modules/unictype/property-unassigned-code-value: New file.
32599         * modules/unictype/property-uppercase: New file.
32600         * modules/unictype/property-other-uppercase: New file.
32601         * modules/unictype/property-lowercase: New file.
32602         * modules/unictype/property-other-lowercase: New file.
32603         * modules/unictype/property-titlecase: New file.
32604         * modules/unictype/property-soft-dotted: New file.
32605         * modules/unictype/property-id-start: New file.
32606         * modules/unictype/property-other-id-start: New file.
32607         * modules/unictype/property-id-continue: New file.
32608         * modules/unictype/property-other-id-continue: New file.
32609         * modules/unictype/property-xid-start: New file.
32610         * modules/unictype/property-xid-continue: New file.
32611         * modules/unictype/property-pattern-white-space: New file.
32612         * modules/unictype/property-pattern-syntax: New file.
32613         * modules/unictype/property-join-control: New file.
32614         * modules/unictype/property-grapheme-base: New file.
32615         * modules/unictype/property-grapheme-extend: New file.
32616         * modules/unictype/property-other-grapheme-extend: New file.
32617         * modules/unictype/property-grapheme-link: New file.
32618         * modules/unictype/property-bidi-control: New file.
32619         * modules/unictype/property-bidi-left-to-right: New file.
32620         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32621         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32622         * modules/unictype/property-bidi-european-digit: New file.
32623         * modules/unictype/property-bidi-eur-num-separator: New file.
32624         * modules/unictype/property-bidi-eur-num-terminator: New file.
32625         * modules/unictype/property-bidi-arabic-digit: New file.
32626         * modules/unictype/property-bidi-common-separator: New file.
32627         * modules/unictype/property-bidi-block-separator: New file.
32628         * modules/unictype/property-bidi-segment-separator: New file.
32629         * modules/unictype/property-bidi-whitespace: New file.
32630         * modules/unictype/property-bidi-non-spacing-mark: New file.
32631         * modules/unictype/property-bidi-boundary-neutral: New file.
32632         * modules/unictype/property-bidi-pdf: New file.
32633         * modules/unictype/property-bidi-embedding-or-override: New file.
32634         * modules/unictype/property-bidi-other-neutral: New file.
32635         * modules/unictype/property-hex-digit: New file.
32636         * modules/unictype/property-ascii-hex-digit: New file.
32637         * modules/unictype/property-ideographic: New file.
32638         * modules/unictype/property-unified-ideograph: New file.
32639         * modules/unictype/property-radical: New file.
32640         * modules/unictype/property-ids-binary-operator: New file.
32641         * modules/unictype/property-ids-trinary-operator: New file.
32642         * modules/unictype/property-zero-width: New file.
32643         * modules/unictype/property-space: New file.
32644         * modules/unictype/property-non-break: New file.
32645         * modules/unictype/property-iso-control: New file.
32646         * modules/unictype/property-format-control: New file.
32647         * modules/unictype/property-dash: New file.
32648         * modules/unictype/property-hyphen: New file.
32649         * modules/unictype/property-punctuation: New file.
32650         * modules/unictype/property-line-separator: New file.
32651         * modules/unictype/property-paragraph-separator: New file.
32652         * modules/unictype/property-quotation-mark: New file.
32653         * modules/unictype/property-sentence-terminal: New file.
32654         * modules/unictype/property-terminal-punctuation: New file.
32655         * modules/unictype/property-currency-symbol: New file.
32656         * modules/unictype/property-math: New file.
32657         * modules/unictype/property-other-math: New file.
32658         * modules/unictype/property-paired-punctuation: New file.
32659         * modules/unictype/property-left-of-pair: New file.
32660         * modules/unictype/property-combining: New file.
32661         * modules/unictype/property-composite: New file.
32662         * modules/unictype/property-decimal-digit: New file.
32663         * modules/unictype/property-numeric: New file.
32664         * modules/unictype/property-diacritic: New file.
32665         * modules/unictype/property-extender: New file.
32666         * modules/unictype/property-ignorable-control: New file.
32667         * modules/unictype/property-test: New file.
32668         * modules/unictype/property-byname: New file.
32669         * modules/unictype/property-all: New file.
32670         * modules/unictype/scripts: New file.
32671         * modules/unictype/scripts-all: New file.
32672         * modules/unictype/block-of: New file.
32673         * modules/unictype/block-test: New file.
32674         * modules/unictype/block-list: New file.
32675         * modules/unictype/block-all: New file.
32676         * modules/unictype/syntax-c-whitespace: New file.
32677         * modules/unictype/syntax-java-whitespace: New file.
32678         * modules/unictype/syntax-c-ident: New file.
32679         * modules/unictype/syntax-java-ident: New file.
32680         * modules/unictype/ctype-alnum: New file.
32681         * modules/unictype/ctype-alpha: New file.
32682         * modules/unictype/ctype-cntrl: New file.
32683         * modules/unictype/ctype-digit: New file.
32684         * modules/unictype/ctype-graph: New file.
32685         * modules/unictype/ctype-lower: New file.
32686         * modules/unictype/ctype-print: New file.
32687         * modules/unictype/ctype-punct: New file.
32688         * modules/unictype/ctype-space: New file.
32689         * modules/unictype/ctype-upper: New file.
32690         * modules/unictype/ctype-xdigit: New file.
32691         * modules/unictype/ctype-blank: New file.
32692         * lib/unictype/bidi_byname.c: New file.
32693         * lib/unictype/bidi_name.c: New file.
32694         * lib/unictype/bidi_of.c: New file.
32695         * lib/unictype/bidi_test.c: New file.
32696         * lib/unictype/bitmap.h: New file.
32697         * lib/unictype/block_test.c: New file.
32698         * lib/unictype/blocks.c: New file.
32699         * lib/unictype/categ_C.c: New file.
32700         * lib/unictype/categ_Cc.c: New file.
32701         * lib/unictype/categ_Cf.c: New file.
32702         * lib/unictype/categ_Cn.c: New file.
32703         * lib/unictype/categ_Co.c: New file.
32704         * lib/unictype/categ_Cs.c: New file.
32705         * lib/unictype/categ_L.c: New file.
32706         * lib/unictype/categ_Ll.c: New file.
32707         * lib/unictype/categ_Lm.c: New file.
32708         * lib/unictype/categ_Lo.c: New file.
32709         * lib/unictype/categ_Lt.c: New file.
32710         * lib/unictype/categ_Lu.c: New file.
32711         * lib/unictype/categ_M.c: New file.
32712         * lib/unictype/categ_Mc.c: New file.
32713         * lib/unictype/categ_Me.c: New file.
32714         * lib/unictype/categ_Mn.c: New file.
32715         * lib/unictype/categ_N.c: New file.
32716         * lib/unictype/categ_Nd.c: New file.
32717         * lib/unictype/categ_Nl.c: New file.
32718         * lib/unictype/categ_No.c: New file.
32719         * lib/unictype/categ_P.c: New file.
32720         * lib/unictype/categ_Pc.c: New file.
32721         * lib/unictype/categ_Pd.c: New file.
32722         * lib/unictype/categ_Pe.c: New file.
32723         * lib/unictype/categ_Pf.c: New file.
32724         * lib/unictype/categ_Pi.c: New file.
32725         * lib/unictype/categ_Po.c: New file.
32726         * lib/unictype/categ_Ps.c: New file.
32727         * lib/unictype/categ_S.c: New file.
32728         * lib/unictype/categ_Sc.c: New file.
32729         * lib/unictype/categ_Sk.c: New file.
32730         * lib/unictype/categ_Sm.c: New file.
32731         * lib/unictype/categ_So.c: New file.
32732         * lib/unictype/categ_Z.c: New file.
32733         * lib/unictype/categ_Zl.c: New file.
32734         * lib/unictype/categ_Zp.c: New file.
32735         * lib/unictype/categ_Zs.c: New file.
32736         * lib/unictype/categ_and.c: New file.
32737         * lib/unictype/categ_and_not.c: New file.
32738         * lib/unictype/categ_byname.c: New file.
32739         * lib/unictype/categ_name.c: New file.
32740         * lib/unictype/categ_none.c: New file.
32741         * lib/unictype/categ_of.c: New file.
32742         * lib/unictype/categ_or.c: New file.
32743         * lib/unictype/categ_test.c: New file.
32744         * lib/unictype/combining.c: New file.
32745         * lib/unictype/ctype_alnum.c: New file.
32746         * lib/unictype/ctype_alpha.c: New file.
32747         * lib/unictype/ctype_blank.c: New file.
32748         * lib/unictype/ctype_cntrl.c: New file.
32749         * lib/unictype/ctype_digit.c: New file.
32750         * lib/unictype/ctype_graph.c: New file.
32751         * lib/unictype/ctype_lower.c: New file.
32752         * lib/unictype/ctype_print.c: New file.
32753         * lib/unictype/ctype_punct.c: New file.
32754         * lib/unictype/ctype_space.c: New file.
32755         * lib/unictype/ctype_upper.c: New file.
32756         * lib/unictype/ctype_xdigit.c: New file.
32757         * lib/unictype/decdigit.c: New file.
32758         * lib/unictype/digit.c: New file.
32759         * lib/unictype/identsyntaxmap.h: New file.
32760         * lib/unictype/mirror.c: New file.
32761         * lib/unictype/numeric.c: New file.
32762         * lib/unictype/pr_alphabetic.c: New file.
32763         * lib/unictype/pr_ascii_hex_digit.c: New file.
32764         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32765         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32766         * lib/unictype/pr_bidi_block_separator.c: New file.
32767         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32768         * lib/unictype/pr_bidi_common_separator.c: New file.
32769         * lib/unictype/pr_bidi_control.c: New file.
32770         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32771         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32772         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32773         * lib/unictype/pr_bidi_european_digit.c: New file.
32774         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32775         * lib/unictype/pr_bidi_left_to_right.c: New file.
32776         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32777         * lib/unictype/pr_bidi_other_neutral.c: New file.
32778         * lib/unictype/pr_bidi_pdf.c: New file.
32779         * lib/unictype/pr_bidi_segment_separator.c: New file.
32780         * lib/unictype/pr_bidi_whitespace.c: New file.
32781         * lib/unictype/pr_byname.c: New file.
32782         * lib/unictype/pr_byname.gperf: New file.
32783         * lib/unictype/pr_combining.c: New file.
32784         * lib/unictype/pr_composite.c: New file.
32785         * lib/unictype/pr_currency_symbol.c: New file.
32786         * lib/unictype/pr_dash.c: New file.
32787         * lib/unictype/pr_decimal_digit.c: New file.
32788         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32789         * lib/unictype/pr_deprecated.c: New file.
32790         * lib/unictype/pr_diacritic.c: New file.
32791         * lib/unictype/pr_extender.c: New file.
32792         * lib/unictype/pr_format_control.c: New file.
32793         * lib/unictype/pr_grapheme_base.c: New file.
32794         * lib/unictype/pr_grapheme_extend.c: New file.
32795         * lib/unictype/pr_grapheme_link.c: New file.
32796         * lib/unictype/pr_hex_digit.c: New file.
32797         * lib/unictype/pr_hyphen.c: New file.
32798         * lib/unictype/pr_id_continue.c: New file.
32799         * lib/unictype/pr_id_start.c: New file.
32800         * lib/unictype/pr_ideographic.c: New file.
32801         * lib/unictype/pr_ids_binary_operator.c: New file.
32802         * lib/unictype/pr_ids_trinary_operator.c: New file.
32803         * lib/unictype/pr_ignorable_control.c: New file.
32804         * lib/unictype/pr_iso_control.c: New file.
32805         * lib/unictype/pr_join_control.c: New file.
32806         * lib/unictype/pr_left_of_pair.c: New file.
32807         * lib/unictype/pr_line_separator.c: New file.
32808         * lib/unictype/pr_logical_order_exception.c: New file.
32809         * lib/unictype/pr_lowercase.c: New file.
32810         * lib/unictype/pr_math.c: New file.
32811         * lib/unictype/pr_non_break.c: New file.
32812         * lib/unictype/pr_not_a_character.c: New file.
32813         * lib/unictype/pr_numeric.c: New file.
32814         * lib/unictype/pr_other_alphabetic.c: New file.
32815         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32816         * lib/unictype/pr_other_grapheme_extend.c: New file.
32817         * lib/unictype/pr_other_id_continue.c: New file.
32818         * lib/unictype/pr_other_id_start.c: New file.
32819         * lib/unictype/pr_other_lowercase.c: New file.
32820         * lib/unictype/pr_other_math.c: New file.
32821         * lib/unictype/pr_other_uppercase.c: New file.
32822         * lib/unictype/pr_paired_punctuation.c: New file.
32823         * lib/unictype/pr_paragraph_separator.c: New file.
32824         * lib/unictype/pr_pattern_syntax.c: New file.
32825         * lib/unictype/pr_pattern_white_space.c: New file.
32826         * lib/unictype/pr_private_use.c: New file.
32827         * lib/unictype/pr_punctuation.c: New file.
32828         * lib/unictype/pr_quotation_mark.c: New file.
32829         * lib/unictype/pr_radical.c: New file.
32830         * lib/unictype/pr_sentence_terminal.c: New file.
32831         * lib/unictype/pr_soft_dotted.c: New file.
32832         * lib/unictype/pr_space.c: New file.
32833         * lib/unictype/pr_terminal_punctuation.c: New file.
32834         * lib/unictype/pr_test.c: New file.
32835         * lib/unictype/pr_titlecase.c: New file.
32836         * lib/unictype/pr_unassigned_code_value.c: New file.
32837         * lib/unictype/pr_unified_ideograph.c: New file.
32838         * lib/unictype/pr_uppercase.c: New file.
32839         * lib/unictype/pr_variation_selector.c: New file.
32840         * lib/unictype/pr_white_space.c: New file.
32841         * lib/unictype/pr_xid_continue.c: New file.
32842         * lib/unictype/pr_xid_start.c: New file.
32843         * lib/unictype/pr_zero_width.c: New file.
32844         * lib/unictype/scripts.c: New file.
32845         * lib/unictype/sy_c_ident.c: New file.
32846         * lib/unictype/sy_c_whitespace.c: New file.
32847         * lib/unictype/sy_java_ident.c: New file.
32848         * lib/unictype/sy_java_whitespace.c: New file.
32849
32850         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32851         Unicode 5.0.0.
32852         * lib/unictype/blocks.h: Likewise.
32853         * lib/unictype/categ_C.h: Likewise.
32854         * lib/unictype/categ_Cc.h: Likewise.
32855         * lib/unictype/categ_Cf.h: Likewise.
32856         * lib/unictype/categ_Cn.h: Likewise.
32857         * lib/unictype/categ_Co.h: Likewise.
32858         * lib/unictype/categ_Cs.h: Likewise.
32859         * lib/unictype/categ_L.h: Likewise.
32860         * lib/unictype/categ_Ll.h: Likewise.
32861         * lib/unictype/categ_Lm.h: Likewise.
32862         * lib/unictype/categ_Lo.h: Likewise.
32863         * lib/unictype/categ_Lt.h: Likewise.
32864         * lib/unictype/categ_Lu.h: Likewise.
32865         * lib/unictype/categ_M.h: Likewise.
32866         * lib/unictype/categ_Mc.h: Likewise.
32867         * lib/unictype/categ_Me.h: Likewise.
32868         * lib/unictype/categ_Mn.h: Likewise.
32869         * lib/unictype/categ_N.h: Likewise.
32870         * lib/unictype/categ_Nd.h: Likewise.
32871         * lib/unictype/categ_Nl.h: Likewise.
32872         * lib/unictype/categ_No.h: Likewise.
32873         * lib/unictype/categ_P.h: Likewise.
32874         * lib/unictype/categ_Pc.h: Likewise.
32875         * lib/unictype/categ_Pd.h: Likewise.
32876         * lib/unictype/categ_Pe.h: Likewise.
32877         * lib/unictype/categ_Pf.h: Likewise.
32878         * lib/unictype/categ_Pi.h: Likewise.
32879         * lib/unictype/categ_Po.h: Likewise.
32880         * lib/unictype/categ_Ps.h: Likewise.
32881         * lib/unictype/categ_S.h: Likewise.
32882         * lib/unictype/categ_Sc.h: Likewise.
32883         * lib/unictype/categ_Sk.h: Likewise.
32884         * lib/unictype/categ_Sm.h: Likewise.
32885         * lib/unictype/categ_So.h: Likewise.
32886         * lib/unictype/categ_Z.h: Likewise.
32887         * lib/unictype/categ_Zl.h: Likewise.
32888         * lib/unictype/categ_Zp.h: Likewise.
32889         * lib/unictype/categ_Zs.h: Likewise.
32890         * lib/unictype/categ_of.h: Likewise.
32891         * lib/unictype/combining.h: Likewise.
32892         * lib/unictype/ctype_alnum.h: Likewise.
32893         * lib/unictype/ctype_alpha.h: Likewise.
32894         * lib/unictype/ctype_blank.h: Likewise.
32895         * lib/unictype/ctype_cntrl.h: Likewise.
32896         * lib/unictype/ctype_digit.h: Likewise.
32897         * lib/unictype/ctype_graph.h: Likewise.
32898         * lib/unictype/ctype_lower.h: Likewise.
32899         * lib/unictype/ctype_print.h: Likewise.
32900         * lib/unictype/ctype_punct.h: Likewise.
32901         * lib/unictype/ctype_space.h: Likewise.
32902         * lib/unictype/ctype_upper.h: Likewise.
32903         * lib/unictype/ctype_xdigit.h: Likewise.
32904         * lib/unictype/decdigit.h: Likewise.
32905         * lib/unictype/digit.h: Likewise.
32906         * lib/unictype/mirror.h: Likewise.
32907         * lib/unictype/numeric.h: Likewise.
32908         * lib/unictype/pr_alphabetic.h: Likewise.
32909         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32910         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32911         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32912         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32913         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32914         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32915         * lib/unictype/pr_bidi_control.h: Likewise.
32916         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32917         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32918         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32919         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32920         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32921         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32922         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32923         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32924         * lib/unictype/pr_bidi_pdf.h: Likewise.
32925         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32926         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32927         * lib/unictype/pr_combining.h: Likewise.
32928         * lib/unictype/pr_composite.h: Likewise.
32929         * lib/unictype/pr_currency_symbol.h: Likewise.
32930         * lib/unictype/pr_dash.h: Likewise.
32931         * lib/unictype/pr_decimal_digit.h: Likewise.
32932         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32933         * lib/unictype/pr_deprecated.h: Likewise.
32934         * lib/unictype/pr_diacritic.h: Likewise.
32935         * lib/unictype/pr_extender.h: Likewise.
32936         * lib/unictype/pr_format_control.h: Likewise.
32937         * lib/unictype/pr_grapheme_base.h: Likewise.
32938         * lib/unictype/pr_grapheme_extend.h: Likewise.
32939         * lib/unictype/pr_grapheme_link.h: Likewise.
32940         * lib/unictype/pr_hex_digit.h: Likewise.
32941         * lib/unictype/pr_hyphen.h: Likewise.
32942         * lib/unictype/pr_id_continue.h: Likewise.
32943         * lib/unictype/pr_id_start.h: Likewise.
32944         * lib/unictype/pr_ideographic.h: Likewise.
32945         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32946         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32947         * lib/unictype/pr_ignorable_control.h: Likewise.
32948         * lib/unictype/pr_iso_control.h: Likewise.
32949         * lib/unictype/pr_join_control.h: Likewise.
32950         * lib/unictype/pr_left_of_pair.h: Likewise.
32951         * lib/unictype/pr_line_separator.h: Likewise.
32952         * lib/unictype/pr_logical_order_exception.h: Likewise.
32953         * lib/unictype/pr_lowercase.h: Likewise.
32954         * lib/unictype/pr_math.h: Likewise.
32955         * lib/unictype/pr_non_break.h: Likewise.
32956         * lib/unictype/pr_not_a_character.h: Likewise.
32957         * lib/unictype/pr_numeric.h: Likewise.
32958         * lib/unictype/pr_other_alphabetic.h: Likewise.
32959         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32960         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32961         * lib/unictype/pr_other_id_continue.h: Likewise.
32962         * lib/unictype/pr_other_id_start.h: Likewise.
32963         * lib/unictype/pr_other_lowercase.h: Likewise.
32964         * lib/unictype/pr_other_math.h: Likewise.
32965         * lib/unictype/pr_other_uppercase.h: Likewise.
32966         * lib/unictype/pr_paired_punctuation.h: Likewise.
32967         * lib/unictype/pr_paragraph_separator.h: Likewise.
32968         * lib/unictype/pr_pattern_syntax.h: Likewise.
32969         * lib/unictype/pr_pattern_white_space.h: Likewise.
32970         * lib/unictype/pr_private_use.h: Likewise.
32971         * lib/unictype/pr_punctuation.h: Likewise.
32972         * lib/unictype/pr_quotation_mark.h: Likewise.
32973         * lib/unictype/pr_radical.h: Likewise.
32974         * lib/unictype/pr_sentence_terminal.h: Likewise.
32975         * lib/unictype/pr_soft_dotted.h: Likewise.
32976         * lib/unictype/pr_space.h: Likewise.
32977         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32978         * lib/unictype/pr_titlecase.h: Likewise.
32979         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32980         * lib/unictype/pr_unified_ideograph.h: Likewise.
32981         * lib/unictype/pr_uppercase.h: Likewise.
32982         * lib/unictype/pr_variation_selector.h: Likewise.
32983         * lib/unictype/pr_white_space.h: Likewise.
32984         * lib/unictype/pr_xid_continue.h: Likewise.
32985         * lib/unictype/pr_xid_start.h: Likewise.
32986         * lib/unictype/pr_zero_width.h: Likewise.
32987         * lib/unictype/scripts.h: Likewise.
32988         * lib/unictype/scripts_byname.gperf: Likewise.
32989         * lib/unictype/sy_c_ident.h: Likewise.
32990         * lib/unictype/sy_c_whitespace.h: Likewise.
32991         * lib/unictype/sy_java_ident.h: Likewise.
32992         * lib/unictype/sy_java_whitespace.h: Likewise.
32993
32994         * lib/unictype/Makefile: New file.
32995         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32996         glibc.
32997         * lib/unictype/3level.h: New file, copied from glibc.
32998         * lib/unictype/3levelbit.h: New file.
32999
33000 2007-11-11  Bruno Haible  <bruno@clisp.org>
33001
33002         * modules/gperf: New file.
33003         * modules/iconv_open (Depends-on): Add it.
33004         (Makefile.am): Remove the GPERF definition.
33005
33006 2007-11-11  Bruno Haible  <bruno@clisp.org>
33007
33008         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33009         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33010
33011 2007-11-11  Bruno Haible  <bruno@clisp.org>
33012
33013         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33014         (usage): Remove function.
33015
33016 2007-11-11  Bruno Haible  <bruno@clisp.org>
33017
33018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33019         gl_FUNC_CEILF_LIBS.
33020         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33021         gl_FUNC_CEIL_LIBS.
33022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33023         gl_FUNC_CEILL_LIBS.
33024         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33025         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33026         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33027
33028 2007-11-11  Bruno Haible  <bruno@clisp.org>
33029
33030         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33031         roundf were declared but do not exist on functions.
33032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33033         roundl were declared but do not exist on functions.
33034         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33035         HAVE_FLOORL_AND_CEILL, respectively.
33036         Needed for Sun C on Solaris 10.
33037
33038 2007-11-11  Bruno Haible  <bruno@clisp.org>
33039
33040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33041         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33042         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33043         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33045         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33046         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33047         HAVE_DECL_ROUNDF.
33048         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33049         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33051         of HAVE_DECL_ROUND*.
33052         * modules/math (Makefile.am): Update.
33053
33054 2007-11-10  Bruno Haible  <bruno@clisp.org>
33055
33056         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33057         ptrdiff_t as m4/intl.m4.
33058
33059 2007-11-10  Jim Meyering  <meyering@redhat.com>
33060
33061         Avoid link failure for the argmatch test.
33062         * tests/test-argmatch.c (usage): Define function to avoid a link
33063         failure: argmatch_die requires a usage function.
33064
33065 2007-11-09  Bruno Haible  <bruno@clisp.org>
33066
33067         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33068         * doc/functions/vsnprintf.texi: Likewise.
33069         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33070         with a size argument < 2.
33071
33072 2007-11-09  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33075         buffer. Fixes an inefficiency introduced on 2007-11-03.
33076
33077 2007-11-09  Bruno Haible  <bruno@clisp.org>
33078
33079         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33080         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33081
33082 2007-11-08  Jim Meyering  <meyering@redhat.com>
33083
33084         Change cache variable name prefix "jm_" to "gl_" everywhere.
33085         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33086         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33087         * m4/uptime.m4: s/gl_/jm_/
33088
33089 2007-11-07  Bruno Haible  <bruno@clisp.org>
33090
33091         Update to GNU gettext 0.17.
33092         * m4/intl.m4: Update to GNU gettext 0.17.
33093         * m4/po.m4: Likewise.
33094         * modules/gettext (Files): Remove m4/ulonglong.m4.
33095         (configure.ac): Require gettext infrastructure from version 0.17.
33096
33097 2007-11-06  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33100         symbolic values are not defined in a public header.
33101         * lib/freadable.c (freadable) [QNX]: Likewise.
33102         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33103         * lib/freading.c (freading) [QNX]: Likewise.
33104         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33105         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33106         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33107         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33108         Reported by Alain Magloire.
33109
33110         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33111
33112 2007-11-05  Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33115         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33116         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33117         Reported by Eric Blake.
33118
33119 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33120             Bruno Haible  <bruno@clisp.org>
33121
33122         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33123         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33124         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33125         (malloc): Undefine also before including <stdlib.h>.
33126         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33127         Needed on OSF/1 4.0.
33128
33129 2007-11-05  Jim Meyering  <meyering@redhat.com>
33130
33131         git-version-gen: sync from coreutils.
33132         * build-aux/git-version-gen: Add comments.
33133         Change the first '-' to '.' in the snapshot version string,
33134         e.g., 6.9-377-08144 -> 6.9.377-08144
33135         Remove first parameter.
33136         Don't declare a version "-dirty" merely because a time
33137         stamp has changed.
33138
33139 2007-11-04  Bruno Haible  <bruno@clisp.org>
33140
33141         * lib/lock.h: Protect all macro definitions containing an 'if'
33142         statement through a "do { ... } while (0)".
33143         * lib/tls.h: Likewise.
33144
33145 2007-11-04  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33148
33149 2007-11-04  Bruno Haible  <bruno@clisp.org>
33150
33151         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33152         * modules/fprintf-posix (Depends-on): Add nocrash.
33153         * modules/snprintf-posix (Depends-on): Likewise.
33154         * modules/sprintf-posix (Depends-on): Likewise.
33155         * modules/vasnprintf-posix (Depends-on): Likewise.
33156         * modules/vasprintf-posix (Depends-on): Likewise.
33157         * modules/vfprintf-posix (Depends-on): Likewise.
33158         * modules/vsnprintf-posix (Depends-on): Likewise.
33159         * modules/vsprintf-posix (Depends-on): Likewise.
33160         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33161         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33162         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33163         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33164         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33165         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33166         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33167
33168 2007-11-04  Bruno Haible  <bruno@clisp.org>
33169
33170         * modules/nocrash: New file.
33171         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33172         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33173
33174 2007-11-04  Bruno Haible  <bruno@clisp.org>
33175
33176         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33177         precision handling.
33178         * tests/test-vasprintf-posix.c (test_function): Likewise.
33179         * tests/test-snprintf-posix.h (test_function): Likewise.
33180         * tests/test-sprintf-posix.h (test_function): Likewise.
33181
33182         Fix *printf behaviour for large precisions on mingw and BeOS.
33183         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33184         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33186         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33188         gl_PRINTF_PRECISION and test its result. Invoke
33189         gl_PREREQ_VASNPRINTF_PRECISION.
33190         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33194         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33195         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33196         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33197         * doc/functions/fprintf.texi: Update.
33198         * doc/functions/printf.texi: Update.
33199         * doc/functions/snprintf.texi: Update.
33200         * doc/functions/sprintf.texi: Update.
33201         * doc/functions/vfprintf.texi: Update.
33202         * doc/functions/vprintf.texi: Update.
33203         * doc/functions/vsnprintf.texi: Update.
33204         * doc/functions/vsprintf.texi: Update.
33205
33206 2007-11-04  Bruno Haible  <bruno@clisp.org>
33207
33208         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33209
33210 2007-11-04  Bruno Haible  <bruno@clisp.org>
33211
33212         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33213         Reported by Sylvain Beucler <beuc@gnu.org>.
33214
33215 2007-11-03  Bruno Haible  <bruno@clisp.org>
33216
33217         * tests/test-fprintf-posix2.sh: New file.
33218         * tests/test-fprintf-posix2.c: New file.
33219         * modules/fprintf-posix-tests (Files): Add them.
33220         (TESTS): Add test-fprintf-posix2.sh.
33221         (configure.ac): Check for getrlimit and setrlimit.
33222         (check_PROGRAMS): Add test-fprintf-posix2.
33223
33224         * tests/test-printf-posix2.sh: New file.
33225         * tests/test-printf-posix2.c: New file.
33226         * modules/printf-posix-tests (Files): Add them.
33227         (TESTS): Add test-printf-posix2.sh.
33228         (configure.ac): Check for getrlimit and setrlimit.
33229         (check_PROGRAMS): Add test-printf-posix2.
33230
33231         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33232         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33233         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33234         (decode_double): New function, copied from decode_long_double.
33235         (scale10_round_decimal_decoded): New function, extracted from
33236         scale10_round_decimal_long_double.
33237         (scale10_round_decimal_long_double): Use it.
33238         (scale10_round_decimal_double): New function.
33239         (floorlog10): New function.
33240         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33242         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33244         gl_PRINTF_ENOMEM and test its result. Invoke
33245         gl_PREREQ_VASNPRINTF_ENOMEM.
33246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33250         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33253         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33254         * modules/snprintf-posix (Depends-on): Likewise.
33255         * modules/sprintf-posix (Depends-on): Likewise.
33256         * modules/vasnprintf-posix (Depends-on): Likewise.
33257         * modules/vasprintf-posix (Depends-on): Likewise.
33258         * modules/vfprintf-posix (Depends-on): Likewise.
33259         * modules/vsnprintf-posix (Depends-on): Likewise.
33260         * modules/vsprintf-posix (Depends-on): Likewise.
33261         * doc/functions/fprintf.texi: Update.
33262         * doc/functions/printf.texi: Update.
33263         * doc/functions/snprintf.texi: Update.
33264         * doc/functions/sprintf.texi: Update.
33265         * doc/functions/vfprintf.texi: Update.
33266         * doc/functions/vprintf.texi: Update.
33267         * doc/functions/vsnprintf.texi: Update.
33268         * doc/functions/vsprintf.texi: Update.
33269
33270 2007-11-03  Bruno Haible  <bruno@clisp.org>
33271
33272         * modules/frexp-nolibm-tests: New file.
33273
33274         * modules/frexp-nolibm: New file.
33275         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33276
33277 2007-11-03  Bruno Haible  <bruno@clisp.org>
33278
33279         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33280         value is C99 compliant.
33281         Needed for OSF/1 5.1.
33282
33283 2007-11-03  Bruno Haible  <bruno@clisp.org>
33284
33285         Fix out-of-memory handling of vasnprintf.
33286         * lib/printf-parse.c: Include <errno.h>.
33287         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33288         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33289         is already set.
33290
33291 2007-11-02  Eric Blake  <ebb9@byu.net>
33292
33293         Fix tests on cygwin.
33294         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33295
33296 2007-11-01  Bruno Haible  <bruno@clisp.org>
33297
33298         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33299         warning.
33300         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33301         needed for POSIX compatibility.
33302
33303 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33304
33305         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33306         for compatibility with GNU.
33307
33308 2007-11-01  Bruno Haible  <bruno@clisp.org>
33309
33310         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33311         (putenv): Renamed from rpl_putenv. Change argument type from
33312         'const char *' to 'char *'.
33313         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33314         of defining putenv in config.h, just set REPLACE_PUTENV.
33315         * modules/putenv (Depends-on): Add stdlib.
33316         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33317         (Include): Use <stdlib.h>.
33318         * lib/stdlib.in.h (putenv): New declaration.
33319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33320         REPLACE_PUTENV.
33321         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33322         REPLACE_PUTENV.
33323         Needed for MacOS X 10.5.0.
33324         Reported by Peter O'Gorman <peter@pogma.com>.
33325
33326 2007-11-01  Jim Meyering  <meyering@redhat.com>
33327
33328         Treat an empty date string exactly like "0".
33329         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33330         if the remaining date string (to be parsed) is empty, use "0".
33331         Reported by Mischa Molhoek and discussed in this thread:
33332         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33333
33334 2007-10-31  Bruno Haible  <bruno@clisp.org>
33335
33336         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33337         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33338         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33339         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33340         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33341         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33342
33343 2007-10-31  Bruno Haible  <bruno@clisp.org>
33344
33345         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33346         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33347         (AC_TYPE_LONG_LONG_INT): Use it.
33348         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33349         it as well.
33350         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33351         to m4/longlong.m4.
33352         * modules/stdint (Files): Remove m4/ulonglong.m4.
33353         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33354         m4/ulonglong.m4.
33355         * modules/strtoumax (Files): Likewise.
33356
33357 2007-10-30  Bruno Haible  <bruno@clisp.org>
33358
33359         * modules/xvasprintf-posix: New file.
33360         Suggested by Eric Blake.
33361
33362 2007-10-30  Bruno Haible  <bruno@clisp.org>
33363
33364         * modules/xprintf-posix-tests: New file.
33365         * tests/test-xprintf-posix.sh: New file.
33366         * tests/test-xprintf-posix.c: New file.
33367         * tests/test-xfprintf-posix.c: New file.
33368
33369         * modules/xprintf-posix: New file.
33370
33371 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33372
33373         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33374         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33375         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33376
33377 2007-10-29  Bruno Haible  <bruno@clisp.org>
33378
33379         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33380         contain the special marker '_cv_'.
33381         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33382         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33383         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33384         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33385         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33386         Reported by Ralf Wildenhues.
33387
33388 2007-10-29  Bruno Haible  <bruno@clisp.org>
33389
33390         * gnulib-tool (func_import): When --lgpl is not specified, set
33391         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33392         GPLv3.
33393         Reported by Simon Josefsson.
33394
33395 2007-10-28  Bruno Haible  <bruno@clisp.org>
33396
33397         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33398         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33399         HAVE_DECL_ISFINITE.
33400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33401         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33402         HAVE_DECL_ISFINITE.
33403
33404 2007-10-28  Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33407         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33408
33409 2007-10-28  Bruno Haible  <bruno@clisp.org>
33410
33411         Fix link errors with Sun C 5.0 on Solaris 10.
33412         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33413         function is declared but not present in the compiler's libm.
33414         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33415         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33416         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33417         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33418         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33419         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33420         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33422         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33423         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33424         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33425         HAVE_DECL_FLOORL.
33426
33427 2007-10-28  Bruno Haible  <bruno@clisp.org>
33428
33429         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33430         gl_FUNC_FLOORL. Cache the result.
33431         (gl_FUNC_FLOORL): Use it.
33432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33433         gl_FUNC_CEILL. Cache the result.
33434         (gl_FUNC_CEILL): Use it.
33435
33436         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33437         gl_FUNC_FLOOR. Cache the result.
33438         (gl_FUNC_FLOOR): Use it.
33439         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33440         gl_FUNC_CEIL. Cache the result.
33441         (gl_FUNC_CEIL): Use it.
33442
33443         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33444         gl_FUNC_FLOORF. Cache the result.
33445         (gl_FUNC_FLOORF): Use it.
33446         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33447         gl_FUNC_CEILF. Cache the result.
33448         (gl_FUNC_CEILF): Use it.
33449
33450 2007-10-28  Bruno Haible  <bruno@clisp.org>
33451
33452         * gnulib-tool: Allow specifying the LGPL version number through
33453         --lgpl=2 or --lgpl=3.
33454         (func_usage): Document --lgpl with argument.
33455         Handle --lgpl=... arguments.
33456         (func_import): Recognize also gl_LGPL calls with an argument. When
33457         --lgpl=2 is used and the module's license is just LGPL, report an
33458         error. Set sed_transform_lib_file according to the lgpl variable. In
33459         the generated files, use --lgpl or gl_LGPL invocations with argument,
33460         if necessary.
33461         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33462         an LGPv2+ license.
33463         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33464         gl_LGPL macro.
33465
33466 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33467             Bruno Haible  <bruno@clisp.org>
33468
33469         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33470         (u16_uctomb_aux): Likewise.
33471         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33472         !HAVE_INLINE.
33473         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33474
33475 2007-10-28  Bruno Haible  <bruno@clisp.org>
33476
33477         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33478         Invoke AM_GETTEXT_OPTION if it exists.
33479         * modules/vasprintf: Likewise.
33480         * modules/verror: Likewise.
33481         * modules/xprintf: Likewise.
33482         * modules/xvasprintf: Likewise.
33483
33484 2007-10-27  Ben Pfaff  <blp@gnu.org>
33485
33486         * lib/math.in.h: Define isfinite macro and prototypes for
33487         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33488         implementations.
33489         * m4/math_h.m4: New substitutions for isfinite module.
33490         * lib/isfinite.c: New file.
33491         * m4/isfinite.m4: New file.
33492         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33493         * modules/isfinite: New file.
33494         * modules/isfinite-tests: New file.
33495         * tests/tests-isfinite.c: New file.
33496         * doc/functions/isfinite.texi: Mention isfinite module.
33497         * MODULES.html.sh: Mention new module.
33498
33499 2007-10-27  Ben Pfaff  <blp@gnu.org>
33500
33501         Ralf Wildenhues reported that Tru64 4.0D declares the round
33502         functions but does not have definitions.
33503         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33504         cannot be found in any library, set the output variable to
33505         "missing" instead of "".
33506         * m4/round.m4: Also use our substitute if we cannot find round in
33507         any library, even if it is declared.
33508         * m4/roundf.m4: Likewise for roundf.
33509         * m4/roundl.m4: Likewise for roundl.
33510         * lib/math.in.h: Undefine roundf, round, roundl before defining
33511         their replacements, to allow for hypothetical systems where these
33512         may be defined as macros but not available in libraries.
33513
33514 2007-10-27  Bruno Haible  <bruno@clisp.org>
33515
33516         * doc/gnulib.texi: Invoke @firstparagraphindent.
33517         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33518         changes in gnulib.
33519         (Source changes): New section.
33520
33521 2007-10-26  Bruno Haible  <bruno@clisp.org>
33522
33523         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33524         borrowed from autoconf.
33525
33526 2007-10-26  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33529         strerror returned the empty string. Needed on HP-UX 11.00.
33530
33531 2007-10-24  Micah Cowan  <micah@cowan.name>
33532
33533         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33534         * build-aux/bootstrap: Remove support for now-unnecessary option,
33535         --cvs-user, and envvars CVS_USER, CVS_RSH.
33536
33537 2007-10-24  Jim Meyering  <meyering@redhat.com>
33538
33539         Avoid diagnostics from sha1sum when there is no cached checksum.
33540         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33541         if the po.s1 file hasn't been created yet.
33542
33543         * build-aux/bootstrap: Sync from coreutils:
33544         2007-10-24  Jim Meyering  <meyering@redhat.com>
33545         Get gnulib from the git repository, not from an obsolete cvs one.
33546         * build-aux/bootstrap: Suggestion from Micah Cowan.
33547         2007-10-04  Jim Meyering  <jim@meyering.net>
33548         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33549         (update_po_files): Work also when there are no .po files in po/.
33550
33551 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33552
33553         * README: Append ".git" to git and cg examples.
33554         Problem reported by Benoit Sigoure.
33555
33556 2007-10-23  Micah Cowan  <micah@cowan.name>
33557
33558         * users.txt: Add wget.
33559
33560 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33561
33562         Fix linking of some unistdio tests on FreeBSD.
33563         * modules/unistdio/u16-vsnprintf-tests
33564         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33565         * modules/unistdio/u16-vsprintf-tests
33566         (test_u16_vsnprintf1_LDADD): Likewise.
33567         * modules/unistdio/u32-vsnprintf-tests
33568         (test_u32_vsnprintf1_LDADD): Likewise.
33569         * modules/unistdio/u32-vsprintf-tests
33570         (test_u32_vsprintf1_LDADD): Likewise.
33571         * modules/unistdio/u8-vsnprintf-tests
33572         (test_u8_vsnprintf1_LDADD): Likewise.
33573         * modules/unistdio/u8-vsprintf-tests
33574         (test_u8_vsprintf1_LDADD): Likewise.
33575         * modules/unistdio/ulc-vsnprintf-tests
33576         (test_ulc_vsnprintf1_LDADD): Likewise.
33577         * modules/unistdio/ulc-vsprintf-tests
33578         (test_ulc_vsprintf1_LDADD): Likewise.
33579
33580         Fix linking of some uniconv tests on FreeBSD.
33581         * modules/uniconv/u16-conv-from-enc-tests
33582         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33583         * modules/uniconv/u16-conv-to-enc-tests
33584         (test_u16_conv_to_enc_LDADD): Likewise.
33585         * modules/uniconv/u16-strconv-from-enc-tests
33586         (test_u16_strconv_from_enc_LDADD): Likewise.
33587         * modules/uniconv/u16-strconv-to-enc-tests
33588         (test_u16_strconv_to_enc_LDADD): Likewise.
33589         * modules/uniconv/u32-conv-from-enc-tests
33590         (test_u32_conv_from_enc_LDADD): Likewise.
33591         * modules/uniconv/u32-conv-to-enc-tests
33592         (test_u32_conv_to_enc_LDADD): Likewise.
33593         * modules/uniconv/u32-strconv-from-enc-tests
33594         (test_u32_strconv_from_enc_LDADD): Likewise.
33595         * modules/uniconv/u32-strconv-to-enc-tests
33596         (test_u32_strconv_to_enc_LDADD): Likewise.
33597         * modules/uniconv/u8-conv-from-enc-tests
33598         (test_u8_conv_from_enc_LDADD): Likewise.
33599         * modules/uniconv/u8-conv-to-enc-tests
33600         (test_u8_conv_to_enc_LDADD): Likewise.
33601         * modules/uniconv/u8-strconv-from-enc-tests
33602         (test_u8_strconv_from_enc_LDADD): Likewise.
33603         * modules/uniconv/u8-strconv-to-enc-tests
33604         (test_u8_strconv_to_enc_LDADD): Likewise.
33605
33606 2007-10-22  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33609         size.
33610
33611 2007-10-22  Eric Blake  <ebb9@byu.net>
33612
33613         Tweak x*printf documentation.
33614         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33615         variable name and comments.
33616         Suggested by Bruno Haible.
33617
33618 2007-10-22  Bruno Haible  <bruno@clisp.org>
33619
33620         * lib/acl.c (copy_acl): Fix file name in comment.
33621
33622 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33623
33624         Fix Tru64 problem with stdbool.h.
33625         * lib/stdbool.in.h (false, true):
33626         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33627         Don't declare as an enum in this situation; it runs afoul of Tru64.
33628         Problem reported by Steven M. Schweda in
33629         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33630
33631 2007-10-22  Eric Blake  <ebb9@byu.net>
33632
33633         Also wrap vf?printf.
33634         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33635         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33636         (xvprintf, xvfprintf): New functions.
33637
33638 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33639
33640         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33641         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33642
33643         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33644         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33645
33646 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33647
33648         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33649         by Bruno Haible.
33650
33651 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33652
33653         * lib/getloadavg.c
33654         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33655         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33656
33657         * tests/test-i-ring.c: Work for C89.
33658
33659 2007-10-22  Bruno Haible  <bruno@clisp.org>
33660
33661         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33662         -1u, in preprocessor expression, so that we don't test for the bug
33663         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33665
33666 2007-10-22  Eric Blake  <ebb9@byu.net>
33667
33668         * tests/test-yesno.sh: Silence stderr during test.
33669
33670 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33671
33672         * modules/crypto/gc-camellia: New file.
33673
33674         * m4/gc-camellia.m4: New file.
33675
33676         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33677
33678         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33679
33680 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33681
33682         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33683         --help to stdout.  Reported by sms@antinode.org (Steven
33684         M. Schweda).
33685
33686 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33687
33688         * users.txt: Fix link to libksba.
33689
33690 2007-10-21  Ben Pfaff  <blp@gnu.org>
33691
33692         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33693         round.c roundf implementation that depends on floorf and ceilf to
33694         be tested unconditionally.
33695
33696 2007-10-21  Ben Pfaff  <blp@gnu.org>
33697
33698         * m4/check-libm-func.m4: Removed.
33699         * m4/check-math-lib.m4: New file.
33700         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33701         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33702         definition and lack of AC_LIBOBJ([roundf]).
33703         * m4/roundl.m4: Ditto, and similarly for roundl.
33704         * modules/round: Reference new m4 file.
33705         * modules/roundf: Ditto.
33706         * modules/roundl: Ditto.
33707         * tests/test-round2.c (main): Use ROUND instead of round.
33708         Bug report from Bruno Haible.
33709
33710 2007-10-21  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33713         context.
33714
33715 2007-10-21  Bruno Haible  <bruno@clisp.org>
33716
33717         * tests/test-wcwidth.c (main): Allow negative result for some control
33718         characters.
33719
33720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33721         Needed on OSF/1 5.1.
33722
33723 2007-10-21  Bruno Haible  <bruno@clisp.org>
33724
33725         * tests/test-floorf1.c: Include isnanf.h.
33726         (main): Use isnanf() instead of isnan().
33727         * tests/test-ceilf1.c: Include isnanf.h.
33728         (main): Use isnanf() instead of isnan().
33729         * tests/test-truncf1.c: Include isnanf.h.
33730         (main): Use isnanf() instead of isnan().
33731         * tests/test-roundf1.c: Include isnanf.h.
33732         (main): Use isnanf() instead of isnan().
33733
33734 2007-10-21  Eric Blake  <ebb9@byu.net>
33735
33736         * users.txt: Update URL for m4.
33737
33738 2007-10-21  Bruno Haible  <bruno@clisp.org>
33739
33740         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33741
33742 2007-10-21  Bruno Haible  <bruno@clisp.org>
33743
33744         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33745         Git's management files if the CVS files are not present.
33746
33747 2007-10-20  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33750         gcc-3.4.x.
33751
33752 2007-10-20  Ben Pfaff  <blp@gnu.org>
33753
33754         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33755         implementations.
33756         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33757         * lib/round.c: New file.
33758         * lib/roundf.c: New file.
33759         * lib/roundl.c: New file.
33760         * m4/round.m4: New file.
33761         * m4/roundf.m4: New file.
33762         * m4/roundl.m4: New file.
33763         * m4/check-libm-func-m4: New file.
33764         * modules/math: Replace round, roundf, roundl related @VARS@ in
33765         math.in.h.
33766         * modules/round: New file.
33767         * modules/round-tests: New file.
33768         * modules/roundf: New file.
33769         * modules/roundf-tests: New file.
33770         * modules/roundl: New file.
33771         * modules/roundl-tests: New file.
33772         * tests/test-round1.c: New file.
33773         * tests/test-round2.c: New file.
33774         * tests/test-roundf1.c: New file.
33775         * tests/test-roundf2.c: New file.
33776         * tests/test-roundl.c: New file.
33777         * doc/functions/round.texi: Mention round module.
33778         * doc/functions/roundf.texi: Mention roundf module.
33779         * doc/functions/roundl.texi: Mention roundl module.
33780         * MODULES.html.sh: Mention new modules.
33781         Thanks to Bruno Haible for suggestions.
33782
33783 2007-10-20  Jim Meyering  <meyering@redhat.com>
33784
33785         * lib/xprintf.c: Include <config.h> unconditionally.
33786
33787         Change xprintf's license to GPL.
33788         * modules/xprintf (License): s/LGPL/GPL/, since this module
33789         depends on modules (exit and exitfail) which are GPL.
33790         Suggestion from Bruno Haible.
33791
33792         xprintf fixes.
33793         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33794         Use a clearer diagnostic.
33795         Patch from Bruno Haible.
33796
33797 2007-10-20  Bruno Haible  <bruno@clisp.org>
33798
33799         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33800         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33802
33803 2007-10-20  Bruno Haible  <bruno@clisp.org>
33804
33805         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33806         precision in the comparison result > x - 1 or similar.
33807         * tests/test-ceilf2.c (correct_result_p): Likewise.
33808         * tests/test-truncf2.c (correct_result_p): Likewise.
33809         * tests/test-trunc2.c (correct_result_p): Likewise.
33810         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33811
33812 2007-10-20  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/ceil: New file.
33815         * m4/ceil.m4: New file.
33816         * doc/functions/ceil.texi: Mention the 'ceil' module.
33817
33818 2007-10-20  Bruno Haible  <bruno@clisp.org>
33819
33820         * modules/floor: New file.
33821         * m4/floor.m4: New file.
33822         * doc/functions/floor.texi: Mention the 'floor' module.
33823
33824 2007-10-20  Bruno Haible  <bruno@clisp.org>
33825
33826         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33827         of %a.
33828         * modules/floorf-tests (Depends-on): Likewise.
33829         * modules/truncf-tests (Depends-on): Likewise.
33830         * modules/trunc-tests (Depends-on): Likewise.
33831         Reported by Ben Pfaff.
33832
33833 2007-10-19  Jim Meyering  <meyering@redhat.com>
33834
33835         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33836         Don't bother testing specific errno values.  Just test ferror.
33837
33838         New module: xprintf
33839         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33840
33841 2007-10-19  Bruno Haible  <bruno@clisp.org>
33842
33843         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33844         syntax.
33845         * modules/javaexec (Makefile.am): Likewise.
33846         * modules/relocatable-prog (Makefile.am): Likewise.
33847         Suggested by Jim Meyering.
33848
33849 2007-10-18  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33852         Reported by Jim Meyering.
33853
33854 2007-10-18  Eric Blake  <ebb9@byu.net>
33855
33856         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33857
33858 2007-10-18  Bruno Haible  <bruno@clisp.org>
33859
33860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33861         the format string into writable memory. Needed in Fortify conditions.
33862
33863 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33867         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33868         * modules/trim (Depends-on): Add mbchar.
33869         (configure.ac): Add gl_FUNC_MBRTOWC.
33870         (Makefile.am): Augment lib_SOURCES.
33871
33872 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33873
33874         Modify glob.c to use fstatat and dirfd, to simplify it.
33875         Suggested by Eric Blake.
33876         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33877         Don't include <stdbool.h>; not used.
33878         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33879         (link_exists_p): Simplify implementation, since we can now assume
33880         dirfd and fstatat.
33881         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33882
33883 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33884
33885         * gnulib-tool (func_get_dependencies): Fix sed script to
33886         match only tests.
33887
33888 2007-10-17  Bruno Haible  <bruno@clisp.org>
33889
33890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33891         allow locale names without encoding suffix.
33892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33894
33895 2007-10-16  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33898         * lib/getgroups.c (getgroups): Likewise.
33899         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33900
33901 2007-10-16  Bruno Haible  <bruno@clisp.org>
33902
33903         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33904         * modules/malloc-posix (License): Likewise.
33905         * modules/realloc-posix (License): Likewise.
33906         * modules/calloc-posix (License): Likewise.
33907         * modules/intprops (License): Change from GPL to LGPL, with
33908         Paul Eggert's approval.
33909
33910 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33911
33912         Merge glibc changes into lib/glob.c.
33913
33914         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33915         2007-10-15 04:59:03 UTC.  Here are the changes:
33916
33917         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33918
33919         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33920
33921         * lib/glob.c: Add some branch prediction throughout.
33922
33923         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33924
33925         [BZ #5103]
33926         * lib/glob.c (glob): Recognize patterns starting \/.
33927
33928         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33929
33930         [BZ #3996]
33931         * lib/glob.c (attribute_hidden): Define if not defined.
33932         (glob): Unescape dirname, filename or username when needed and not
33933         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33934         is NULL.  Handle unescaped [ in pattern without closing ].
33935         Don't pass GLOB_CHECK down to recursive glob for directories.
33936         (__glob_pattern_type): New function.
33937         (__glob_pattern_p): Implement using __glob_pattern_type.
33938         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33939         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33940         Remove unreachable code.
33941
33942         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33943
33944         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33945         explain why there are no leaks.
33946
33947         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33948
33949         [BZ #3253]
33950         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33951         time, rather allocate increasingly bigger arrays of pointers, if
33952         possible with alloca, if too large with malloc.
33953
33954 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33955
33956         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33957         Problem reported by H.Merijn Brand in
33958         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33959         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33960         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33961
33962 2007-10-15  Bruno Haible  <bruno@clisp.org>
33963
33964         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33965         with explicit rpl_ prefix.
33966         * lib/fopen.c (fopen): Likewise.
33967         * lib/freopen.c (freopen): Likewise.
33968         * lib/iconv.c (iconv): Likewise.
33969         * lib/iconv_close.c (iconv_close): Likewise.
33970
33971 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33972
33973         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33974
33975 2007-10-15  Bruno Haible  <bruno@clisp.org>
33976
33977         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33978         <stddef.h> instead of <stdlib.h> since we only need NULL.
33979         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33980
33981 2007-10-15  Bruno Haible  <bruno@clisp.org>
33982
33983         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33984         Replace paragraph talking about LIBOBJS.
33985         Reported by Colin Watson <cjwatson@debian.org>.
33986
33987 2007-10-15  Bruno Haible  <bruno@clisp.org>
33988
33989         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33990         <stdlib.h> before using NULL.
33991
33992 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33993
33994         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33995         Reported by Albert Chin <china@thewrittenword.com>.
33996
33997 2007-10-14  Bruno Haible  <bruno@clisp.org>
33998
33999         * modules/iconv_open-utf-tests: New file.
34000         * tests/test-iconv-utf.c: New file.
34001
34002         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34003         * modules/iconv_open-utf: New file.
34004         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34005         (iconv, iconv_close): New declarations.
34006         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34007         be defined.
34008         (iconv_open): Add special handling of conversion between UTF-8 and
34009         UTF-{16,32}{BE,LE}.
34010         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34011         * lib/iconv_close.c: New file.
34012         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34013         gl_FUNC_ICONV_OPEN.
34014         (gl_FUNC_ICONV_OPEN): Use it.
34015         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34016         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34017         and REPLACE_ICONV_UTF.
34018         * modules/iconv_open (Depends-on): Add c-strcase.
34019         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34020         ICONV_CONST.
34021         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34022
34023 2007-10-13  Albert Chin  <china@thewrittenword.com>
34024             Bruno Haible  <bruno@clisp.org>
34025
34026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34027         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34028
34029 2007-10-13  Bruno Haible  <bruno@clisp.org>
34030
34031         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34032         defined, use the ISO C99 inline semantics.
34033         * lib/argp.h (ARGP_EI): Likewise.
34034
34035 2007-10-13  Bruno Haible  <bruno@clisp.org>
34036
34037         Handle 'inline' change in gcc 4.3.0.
34038         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34039         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34040         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34041         argp_fmtstream_point): Disable 'extern' declaration if the function
34042         definition is going to be provided inline.
34043         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34044         semantics, not the ISO C99 inline semantics.
34045         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34046         'extern' declaration if the function definition is going to be provided
34047         inline.
34048         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34049         the GNU C inline semantics, not the ISO C99 inline semantics. With
34050         GCC 4.2, avoid a warning.
34051
34052 2007-10-13  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/freading.h (freading): Enable the use of __freading for
34055         glibc >= 2.7.
34056         * lib/freading.c (freading): Likewise.
34057
34058 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34059
34060         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34061         "warning: C99 inline functions are not supported; using GNU89".
34062
34063 2007-10-12  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34066         of 2.
34067         * tests/test-ceilf2.c: New file.
34068         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34069
34070         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34071         * modules/ceilf-tests: Update.
34072
34073 2007-10-12  Bruno Haible  <bruno@clisp.org>
34074
34075         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34076         of 2.
34077         * tests/test-floorf2.c: New file.
34078         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34079
34080         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34081         * modules/floorf-tests: Update.
34082
34083 2007-10-12  Bruno Haible  <bruno@clisp.org>
34084
34085         * tests/test-trunc2.c: New file.
34086         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34087
34088         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34089         * modules/trunc-tests: Update.
34090
34091 2007-10-12  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34094         of 2.
34095         * tests/test-truncf2.c: New file.
34096         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34097
34098         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34099         * modules/truncf-tests: Update.
34100
34101 2007-10-11  Eric Blake  <ebb9@byu.net>
34102
34103         Don't claim strerror is broken on Interix.
34104         * doc/functions/strerror.texi (strerror): Known broken systems are
34105         now Solaris 8, and not Interix.
34106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34107         Interix on cross-compile.
34108         Reported by Martin Koeppe in
34109         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34110
34111 2007-10-11  Bruno Haible  <bruno@clisp.org>
34112
34113         * modules/i-ring-tests: New file.
34114         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34115         instead of assert.
34116
34117 2007-10-11  Bruno Haible  <bruno@clisp.org>
34118
34119         * modules/filenamecat-tests: New file.
34120         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34121         * lib/filenamecat.c: Remove test code.
34122
34123 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34124
34125         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34126
34127         * lib/strerror.c: Include <string.h> always, to test interface,
34128         and to remove the need for the dummy.
34129         Include intprops.h to compute width instead of doing it ourselves
34130         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34131         (strerror): Define it to return NULL if there's no system strerror.
34132         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34133         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34134         ancient pre-strerror Unix systems well any more.  Saying "unknown
34135         system error" is enough.
34136         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34137         simpler strerror.c implementation.
34138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34139         Simplify the tests to reflect the simpler strerror implementation.
34140         * modules/strerror (Depends-on): Add intprops.
34141
34142 2007-10-09  Eric Blake  <ebb9@byu.net>
34143
34144         Silence test-fpending.
34145         * modules/fpending-tests (Files): Add wrapper script.
34146         * tests/test-fpending.sh: New file.
34147
34148 2007-10-09  Bruno Haible  <bruno@clisp.org>
34149
34150         * MODULES.html.sh (func_module): Don't create a hyperlink for
34151         function names like 'printf_frexp'.
34152         (Misc): Add crc, memxor.
34153         (Characteristics of floating types): New section.
34154         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34155         isnanf-nolibm, signbit, trunc, truncf, truncl.
34156         (Enhancements for ISO C 99 functions): New subsection Input/output.
34157         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34158         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34159         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34160         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34161         (Enhancements for POSIX:2001 functions): Add chdir-long.
34162         (File system functions): Add areadlink, chdir-safer, read-file.
34163         Remove cycle-check.
34164         (File system as inode set): New section.
34165         (Date and time): Add gethrxtime.
34166         (Multithreading): Add openmp.
34167         (Internationalization functions): Add localename.
34168         (Unicode string functions): Add unistr/u*-mbsnlen.
34169         (Support for maintaining and releasing projects): Add git-version-gen.
34170         (Lone files): Remove directories.
34171
34172 2007-10-08  Ben Pfaff  <blp@gnu.org>
34173
34174         * lib/xmalloca.h: Fix typo in comment.
34175
34176 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34177
34178         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34179         when avoiding problems with integer overflow.  Use a portable test
34180         instead.
34181
34182 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34183
34184         * modules/dummy (License): Change to LGPLv2+.
34185         * modules/float (License): Likewise
34186         * modules/realloc (License): Likewise
34187         * modules/stdlib (License): Likewise
34188
34189 2007-10-07  Bruno Haible  <bruno@clisp.org>
34190
34191         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34192         * floor.c (TWO_MANT_DIG): Likewise.
34193         * ceil.c (TWO_MANT_DIG): Likewise.
34194         Reported by Ben Pfaff.
34195
34196 2007-10-07  Bruno Haible  <bruno@clisp.org>
34197
34198         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34199         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34200         * lib/frexp.c (FUNC): Likewise.
34201         * lib/printf-frexp.h (printf_frexp): Likewise.
34202         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34203         * lib/printf-frexp.c (FUNC): Likewise.
34204         Suggested by Jim Meyering.
34205
34206 2007-10-07  Jim Meyering  <meyering@redhat.com>
34207
34208         Make xnanosleep's integer overflow test more robust.
34209         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34210         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34211
34212 2007-10-07  Bruno Haible  <bruno@clisp.org>
34213
34214         * NEWS: Mention the license change.
34215
34216         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34217         abbreviations in the modules files.
34218
34219         Change copyright notice from GPLv2+ to GPLv3+.
34220         * README: Change copyright notice.
34221         * MODULES.html.sh: Likewise.
34222         * build-aux/bootstrap.conf: Likewise.
34223         * build-aux/config.libpath: Likewise.
34224         * build-aux/csharpcomp.sh.in: Likewise.
34225         * build-aux/csharpexec.sh.in: Likewise.
34226         * build-aux/install-reloc: Likewise.
34227         * build-aux/javacomp.sh.in: Likewise.
34228         * build-aux/javaexec.sh.in: Likewise.
34229         * build-aux/ldd.sh.in: Likewise.
34230         * build-aux/reloc-ldflags: Likewise.
34231         * build-aux/relocatable.sh.in: Likewise.
34232         * build-aux/x-to-1.in: Likewise.
34233         * check-module: Likewise.
34234         * config/srclistvars.sh: Likewise.
34235         * gnulib-tool: Likewise.
34236         * lib/acl-internal.h: Likewise.
34237         * lib/acl.c: Likewise.
34238         * lib/acl.h: Likewise.
34239         * lib/acl_entries.c: Likewise.
34240         * lib/areadlink-with-size.c: Likewise.
34241         * lib/areadlink.c: Likewise.
34242         * lib/areadlink.h: Likewise.
34243         * lib/argmatch.c: Likewise.
34244         * lib/argmatch.h: Likewise.
34245         * lib/argp-ba.c: Likewise.
34246         * lib/argp-eexst.c: Likewise.
34247         * lib/argp-fmtstream.c: Likewise.
34248         * lib/argp-fmtstream.h: Likewise.
34249         * lib/argp-fs-xinl.c: Likewise.
34250         * lib/argp-help.c: Likewise.
34251         * lib/argp-namefrob.h: Likewise.
34252         * lib/argp-parse.c: Likewise.
34253         * lib/argp-pin.c: Likewise.
34254         * lib/argp-pv.c: Likewise.
34255         * lib/argp-pvh.c: Likewise.
34256         * lib/argp-xinl.c: Likewise.
34257         * lib/argp.h: Likewise.
34258         * lib/at-func.c: Likewise.
34259         * lib/atanl.c: Likewise.
34260         * lib/backupfile.c: Likewise.
34261         * lib/backupfile.h: Likewise.
34262         * lib/basename.c: Likewise.
34263         * lib/binary-io.h: Likewise.
34264         * lib/byteswap.in.h: Likewise.
34265         * lib/c-stack.c: Likewise.
34266         * lib/c-stack.h: Likewise.
34267         * lib/c-strcasestr.c: Likewise.
34268         * lib/c-strcasestr.h: Likewise.
34269         * lib/c-strstr.c: Likewise.
34270         * lib/c-strstr.h: Likewise.
34271         * lib/c-strtod.c: Likewise.
34272         * lib/calloc.c: Likewise.
34273         * lib/canon-host.c: Likewise.
34274         * lib/canon-host.h: Likewise.
34275         * lib/canonicalize-lgpl.c: Likewise.
34276         * lib/canonicalize.c: Likewise.
34277         * lib/canonicalize.h: Likewise.
34278         * lib/ceil.c: Likewise.
34279         * lib/ceilf.c: Likewise.
34280         * lib/ceill.c: Likewise.
34281         * lib/chdir-long.c: Likewise.
34282         * lib/chdir-long.h: Likewise.
34283         * lib/chdir-safer.c: Likewise.
34284         * lib/chdir-safer.h: Likewise.
34285         * lib/chown.c: Likewise.
34286         * lib/classpath.c: Likewise.
34287         * lib/classpath.h: Likewise.
34288         * lib/clean-temp.c: Likewise.
34289         * lib/clean-temp.h: Likewise.
34290         * lib/cloexec.c: Likewise.
34291         * lib/close-stream.c: Likewise.
34292         * lib/closein.c: Likewise.
34293         * lib/closein.h: Likewise.
34294         * lib/closeout.c: Likewise.
34295         * lib/closeout.h: Likewise.
34296         * lib/concat-filename.c: Likewise.
34297         * lib/copy-file.c: Likewise.
34298         * lib/copy-file.h: Likewise.
34299         * lib/count-one-bits.h: Likewise.
34300         * lib/crc.c: Likewise.
34301         * lib/crc.h: Likewise.
34302         * lib/creat-safer.c: Likewise.
34303         * lib/csharpcomp.c: Likewise.
34304         * lib/csharpcomp.h: Likewise.
34305         * lib/csharpexec.c: Likewise.
34306         * lib/csharpexec.h: Likewise.
34307         * lib/cycle-check.c: Likewise.
34308         * lib/cycle-check.h: Likewise.
34309         * lib/diacrit.c: Likewise.
34310         * lib/diacrit.h: Likewise.
34311         * lib/diffseq.h: Likewise.
34312         * lib/dirchownmod.c: Likewise.
34313         * lib/dirent.in.h: Likewise.
34314         * lib/dirfd.c: Likewise.
34315         * lib/dirfd.h: Likewise.
34316         * lib/dirname.c: Likewise.
34317         * lib/dirname.h: Likewise.
34318         * lib/dummy.c: Likewise.
34319         * lib/dup-safer.c: Likewise.
34320         * lib/dup2.c: Likewise.
34321         * lib/eealloc.h: Likewise.
34322         * lib/error.c: Likewise.
34323         * lib/error.h: Likewise.
34324         * lib/euidaccess.c: Likewise.
34325         * lib/exclude.c: Likewise.
34326         * lib/exclude.h: Likewise.
34327         * lib/execute.c: Likewise.
34328         * lib/execute.h: Likewise.
34329         * lib/exitfail.c: Likewise.
34330         * lib/exitfail.h: Likewise.
34331         * lib/expl.c: Likewise.
34332         * lib/fatal-signal.c: Likewise.
34333         * lib/fatal-signal.h: Likewise.
34334         * lib/fbufmode.c: Likewise.
34335         * lib/fbufmode.h: Likewise.
34336         * lib/fchdir.c: Likewise.
34337         * lib/fchmodat.c: Likewise.
34338         * lib/fchownat.c: Likewise.
34339         * lib/fcntl--.h: Likewise.
34340         * lib/fcntl-safer.h: Likewise.
34341         * lib/fcntl.in.h: Likewise.
34342         * lib/fd-safer.c: Likewise.
34343         * lib/fflush.c: Likewise.
34344         * lib/file-has-acl.c: Likewise.
34345         * lib/file-set.c: Likewise.
34346         * lib/file-type.c: Likewise.
34347         * lib/file-type.h: Likewise.
34348         * lib/fileblocks.c: Likewise.
34349         * lib/filemode.c: Likewise.
34350         * lib/filemode.h: Likewise.
34351         * lib/filename.h: Likewise.
34352         * lib/filenamecat.c: Likewise.
34353         * lib/filenamecat.h: Likewise.
34354         * lib/findprog.c: Likewise.
34355         * lib/findprog.h: Likewise.
34356         * lib/float.in.h: Likewise.
34357         * lib/floor.c: Likewise.
34358         * lib/floorf.c: Likewise.
34359         * lib/floorl.c: Likewise.
34360         * lib/fopen-safer.c: Likewise.
34361         * lib/fopen.c: Likewise.
34362         * lib/fpending.c: Likewise.
34363         * lib/fpending.h: Likewise.
34364         * lib/fprintf.c: Likewise.
34365         * lib/fprintftime.h: Likewise.
34366         * lib/fpucw.h: Likewise.
34367         * lib/fpurge.c: Likewise.
34368         * lib/fpurge.h: Likewise.
34369         * lib/freadable.c: Likewise.
34370         * lib/freadable.h: Likewise.
34371         * lib/freadahead.c: Likewise.
34372         * lib/freadahead.h: Likewise.
34373         * lib/freading.c: Likewise.
34374         * lib/freading.h: Likewise.
34375         * lib/free.c: Likewise.
34376         * lib/freopen.c: Likewise.
34377         * lib/frexp.c: Likewise.
34378         * lib/frexpl.c: Likewise.
34379         * lib/fseek.c: Likewise.
34380         * lib/fseterr.c: Likewise.
34381         * lib/fseterr.h: Likewise.
34382         * lib/fstatat.c: Likewise.
34383         * lib/fstrcmp.c: Likewise.
34384         * lib/fstrcmp.h: Likewise.
34385         * lib/fsusage.c: Likewise.
34386         * lib/fsusage.h: Likewise.
34387         * lib/ftell.c: Likewise.
34388         * lib/ftello.c: Likewise.
34389         * lib/fts-cycle.c: Likewise.
34390         * lib/fts.c: Likewise.
34391         * lib/fts_.h: Likewise.
34392         * lib/full-read.c: Likewise.
34393         * lib/full-read.h: Likewise.
34394         * lib/full-write.c: Likewise.
34395         * lib/full-write.h: Likewise.
34396         * lib/fwritable.c: Likewise.
34397         * lib/fwritable.h: Likewise.
34398         * lib/fwriteerror.c: Likewise.
34399         * lib/fwriteerror.h: Likewise.
34400         * lib/fwriting.c: Likewise.
34401         * lib/fwriting.h: Likewise.
34402         * lib/gcd.c: Likewise.
34403         * lib/gcd.h: Likewise.
34404         * lib/getcwd.c: Likewise.
34405         * lib/getdate.h: Likewise.
34406         * lib/getdate.y: Likewise.
34407         * lib/getdomainname.c: Likewise.
34408         * lib/getdomainname.h: Likewise.
34409         * lib/getgroups.c: Likewise.
34410         * lib/gethostname.c: Likewise.
34411         * lib/gethrxtime.c: Likewise.
34412         * lib/gethrxtime.h: Likewise.
34413         * lib/getloadavg.c: Likewise.
34414         * lib/getndelim2.c: Likewise.
34415         * lib/getndelim2.h: Likewise.
34416         * lib/getnline.c: Likewise.
34417         * lib/getnline.h: Likewise.
34418         * lib/getopt.c: Likewise.
34419         * lib/getopt.in.h: Likewise.
34420         * lib/getopt1.c: Likewise.
34421         * lib/getopt_int.h: Likewise.
34422         * lib/getpagesize.h: Likewise.
34423         * lib/getsubopt.c: Likewise.
34424         * lib/gettime.c: Likewise.
34425         * lib/getugroups.c: Likewise.
34426         * lib/getugroups.h: Likewise.
34427         * lib/getusershell.c: Likewise.
34428         * lib/gl_anyavltree_list1.h: Likewise.
34429         * lib/gl_anyavltree_list2.h: Likewise.
34430         * lib/gl_anyhash_list1.h: Likewise.
34431         * lib/gl_anyhash_list2.h: Likewise.
34432         * lib/gl_anylinked_list1.h: Likewise.
34433         * lib/gl_anylinked_list2.h: Likewise.
34434         * lib/gl_anyrbtree_list1.h: Likewise.
34435         * lib/gl_anyrbtree_list2.h: Likewise.
34436         * lib/gl_anytree_list1.h: Likewise.
34437         * lib/gl_anytree_list2.h: Likewise.
34438         * lib/gl_anytree_oset.h: Likewise.
34439         * lib/gl_anytreehash_list1.h: Likewise.
34440         * lib/gl_anytreehash_list2.h: Likewise.
34441         * lib/gl_array_list.c: Likewise.
34442         * lib/gl_array_list.h: Likewise.
34443         * lib/gl_array_oset.c: Likewise.
34444         * lib/gl_array_oset.h: Likewise.
34445         * lib/gl_avltree_list.c: Likewise.
34446         * lib/gl_avltree_list.h: Likewise.
34447         * lib/gl_avltree_oset.c: Likewise.
34448         * lib/gl_avltree_oset.h: Likewise.
34449         * lib/gl_avltreehash_list.c: Likewise.
34450         * lib/gl_avltreehash_list.h: Likewise.
34451         * lib/gl_carray_list.c: Likewise.
34452         * lib/gl_carray_list.h: Likewise.
34453         * lib/gl_linked_list.c: Likewise.
34454         * lib/gl_linked_list.h: Likewise.
34455         * lib/gl_linkedhash_list.c: Likewise.
34456         * lib/gl_linkedhash_list.h: Likewise.
34457         * lib/gl_list.c: Likewise.
34458         * lib/gl_list.h: Likewise.
34459         * lib/gl_oset.c: Likewise.
34460         * lib/gl_oset.h: Likewise.
34461         * lib/gl_rbtree_list.c: Likewise.
34462         * lib/gl_rbtree_list.h: Likewise.
34463         * lib/gl_rbtree_oset.c: Likewise.
34464         * lib/gl_rbtree_oset.h: Likewise.
34465         * lib/gl_rbtreehash_list.c: Likewise.
34466         * lib/gl_rbtreehash_list.h: Likewise.
34467         * lib/gl_sublist.c: Likewise.
34468         * lib/gl_sublist.h: Likewise.
34469         * lib/group-member.c: Likewise.
34470         * lib/group-member.h: Likewise.
34471         * lib/hard-locale.c: Likewise.
34472         * lib/hard-locale.h: Likewise.
34473         * lib/hash-pjw.c: Likewise.
34474         * lib/hash-pjw.h: Likewise.
34475         * lib/hash-triple.c: Likewise.
34476         * lib/hash.c: Likewise.
34477         * lib/hash.h: Likewise.
34478         * lib/human.c: Likewise.
34479         * lib/human.h: Likewise.
34480         * lib/i-ring.c: Likewise.
34481         * lib/i-ring.h: Likewise.
34482         * lib/idcache.c: Likewise.
34483         * lib/imaxabs.c: Likewise.
34484         * lib/imaxdiv.c: Likewise.
34485         * lib/inet_pton.c: Likewise.
34486         * lib/inet_pton.h: Likewise.
34487         * lib/intprops.h: Likewise.
34488         * lib/inttostr.c: Likewise.
34489         * lib/inttostr.h: Likewise.
34490         * lib/inttypes.in.h: Likewise.
34491         * lib/isapipe.c: Likewise.
34492         * lib/isdir.c: Likewise.
34493         * lib/isnan.c: Likewise.
34494         * lib/isnan.h: Likewise.
34495         * lib/isnanf.c: Likewise.
34496         * lib/isnanf.h: Likewise.
34497         * lib/isnanl-nolibm.h: Likewise.
34498         * lib/isnanl.c: Likewise.
34499         * lib/isnanl.h: Likewise.
34500         * lib/javacomp.c: Likewise.
34501         * lib/javacomp.h: Likewise.
34502         * lib/javaexec.c: Likewise.
34503         * lib/javaexec.h: Likewise.
34504         * lib/javaversion.c: Likewise.
34505         * lib/javaversion.h: Likewise.
34506         * lib/javaversion.java: Likewise.
34507         * lib/lbrkprop.h: Likewise.
34508         * lib/lchmod.h: Likewise.
34509         * lib/lchown.c: Likewise.
34510         * lib/ldexpl.c: Likewise.
34511         * lib/linebreak.c: Likewise.
34512         * lib/linebreak.h: Likewise.
34513         * lib/linebuffer.c: Likewise.
34514         * lib/linebuffer.h: Likewise.
34515         * lib/locale.in.h: Likewise.
34516         * lib/logl.c: Likewise.
34517         * lib/long-options.c: Likewise.
34518         * lib/long-options.h: Likewise.
34519         * lib/lstat.c: Likewise.
34520         * lib/lstat.h: Likewise.
34521         * lib/math.in.h: Likewise.
34522         * lib/mbchar.c: Likewise.
34523         * lib/mbchar.h: Likewise.
34524         * lib/mbfile.h: Likewise.
34525         * lib/mbiter.h: Likewise.
34526         * lib/mbscasecmp.c: Likewise.
34527         * lib/mbscasestr.c: Likewise.
34528         * lib/mbschr.c: Likewise.
34529         * lib/mbscspn.c: Likewise.
34530         * lib/mbslen.c: Likewise.
34531         * lib/mbsncasecmp.c: Likewise.
34532         * lib/mbsnlen.c: Likewise.
34533         * lib/mbspbrk.c: Likewise.
34534         * lib/mbspcasecmp.c: Likewise.
34535         * lib/mbsrchr.c: Likewise.
34536         * lib/mbssep.c: Likewise.
34537         * lib/mbsspn.c: Likewise.
34538         * lib/mbsstr.c: Likewise.
34539         * lib/mbstok_r.c: Likewise.
34540         * lib/mbswidth.c: Likewise.
34541         * lib/mbswidth.h: Likewise.
34542         * lib/mbuiter.h: Likewise.
34543         * lib/memcasecmp.c: Likewise.
34544         * lib/memcasecmp.h: Likewise.
34545         * lib/memchr.c: Likewise.
34546         * lib/memcmp.c: Likewise.
34547         * lib/memcoll.c: Likewise.
34548         * lib/memcoll.h: Likewise.
34549         * lib/memcpy.c: Likewise.
34550         * lib/memrchr.c: Likewise.
34551         * lib/mkancesdirs.c: Likewise.
34552         * lib/mkdir-p.c: Likewise.
34553         * lib/mkdir-p.h: Likewise.
34554         * lib/mkdir.c: Likewise.
34555         * lib/mkdirat.c: Likewise.
34556         * lib/mkdtemp.c: Likewise.
34557         * lib/mkstemp-safer.c: Likewise.
34558         * lib/mkstemp.c: Likewise.
34559         * lib/modechange.c: Likewise.
34560         * lib/modechange.h: Likewise.
34561         * lib/mountlist.c: Likewise.
34562         * lib/mountlist.h: Likewise.
34563         * lib/mpsort.c: Likewise.
34564         * lib/nanosleep.c: Likewise.
34565         * lib/obstack.c: Likewise.
34566         * lib/obstack.h: Likewise.
34567         * lib/open-safer.c: Likewise.
34568         * lib/open.c: Likewise.
34569         * lib/openat-die.c: Likewise.
34570         * lib/openat-priv.h: Likewise.
34571         * lib/openat-proc.c: Likewise.
34572         * lib/openat.c: Likewise.
34573         * lib/openat.h: Likewise.
34574         * lib/pagealign_alloc.c: Likewise.
34575         * lib/pagealign_alloc.h: Likewise.
34576         * lib/physmem.c: Likewise.
34577         * lib/physmem.h: Likewise.
34578         * lib/pipe-safer.c: Likewise.
34579         * lib/pipe.c: Likewise.
34580         * lib/pipe.h: Likewise.
34581         * lib/posixtm.c: Likewise.
34582         * lib/posixtm.h: Likewise.
34583         * lib/posixver.c: Likewise.
34584         * lib/printf-frexp.c: Likewise.
34585         * lib/printf-frexp.h: Likewise.
34586         * lib/printf-frexpl.c: Likewise.
34587         * lib/printf-frexpl.h: Likewise.
34588         * lib/printf.c: Likewise.
34589         * lib/progname.c: Likewise.
34590         * lib/progname.h: Likewise.
34591         * lib/progreloc.c: Likewise.
34592         * lib/putenv.c: Likewise.
34593         * lib/quote.c: Likewise.
34594         * lib/quote.h: Likewise.
34595         * lib/quotearg.c: Likewise.
34596         * lib/quotearg.h: Likewise.
34597         * lib/raise.c: Likewise.
34598         * lib/readline.c: Likewise.
34599         * lib/readline.h: Likewise.
34600         * lib/readlink.c: Likewise.
34601         * lib/readtokens.c: Likewise.
34602         * lib/readtokens.h: Likewise.
34603         * lib/readtokens0.c: Likewise.
34604         * lib/readtokens0.h: Likewise.
34605         * lib/readutmp.c: Likewise.
34606         * lib/readutmp.h: Likewise.
34607         * lib/realloc.c: Likewise.
34608         * lib/relocwrapper.c: Likewise.
34609         * lib/rename-dest-slash.c: Likewise.
34610         * lib/rename.c: Likewise.
34611         * lib/rmdir.c: Likewise.
34612         * lib/rpmatch.c: Likewise.
34613         * lib/safe-read.c: Likewise.
34614         * lib/safe-read.h: Likewise.
34615         * lib/safe-write.c: Likewise.
34616         * lib/safe-write.h: Likewise.
34617         * lib/same-inode.h: Likewise.
34618         * lib/same.c: Likewise.
34619         * lib/same.h: Likewise.
34620         * lib/save-cwd.c: Likewise.
34621         * lib/save-cwd.h: Likewise.
34622         * lib/savedir.c: Likewise.
34623         * lib/savedir.h: Likewise.
34624         * lib/savewd.c: Likewise.
34625         * lib/savewd.h: Likewise.
34626         * lib/search.in.h: Likewise.
34627         * lib/setenv.c: Likewise.
34628         * lib/setenv.h: Likewise.
34629         * lib/settime.c: Likewise.
34630         * lib/sh-quote.c: Likewise.
34631         * lib/sh-quote.h: Likewise.
34632         * lib/sig2str.c: Likewise.
34633         * lib/sig2str.h: Likewise.
34634         * lib/signal.in.h: Likewise.
34635         * lib/signbitd.c: Likewise.
34636         * lib/signbitf.c: Likewise.
34637         * lib/signbitl.c: Likewise.
34638         * lib/sigprocmask.c: Likewise.
34639         * lib/sincosl.c: Likewise.
34640         * lib/sleep.c: Likewise.
34641         * lib/sprintf.c: Likewise.
34642         * lib/sqrtl.c: Likewise.
34643         * lib/stat-time.h: Likewise.
34644         * lib/stdio--.h: Likewise.
34645         * lib/stdio-safer.h: Likewise.
34646         * lib/stdlib--.h: Likewise.
34647         * lib/stdlib-safer.h: Likewise.
34648         * lib/stdlib.in.h: Likewise.
34649         * lib/stpcpy.c: Likewise.
34650         * lib/stpncpy.c: Likewise.
34651         * lib/strchrnul.c: Likewise.
34652         * lib/strcspn.c: Likewise.
34653         * lib/strerror.c: Likewise.
34654         * lib/strftime.c: Likewise.
34655         * lib/strftime.h: Likewise.
34656         * lib/striconveh.c: Likewise.
34657         * lib/striconveh.h: Likewise.
34658         * lib/striconveha.c: Likewise.
34659         * lib/striconveha.h: Likewise.
34660         * lib/stripslash.c: Likewise.
34661         * lib/strnlen1.c: Likewise.
34662         * lib/strnlen1.h: Likewise.
34663         * lib/strtod.c: Likewise.
34664         * lib/strtoimax.c: Likewise.
34665         * lib/strtok_r.c: Likewise.
34666         * lib/strtol.c: Likewise.
34667         * lib/strtoll.c: Likewise.
34668         * lib/strtoul.c: Likewise.
34669         * lib/strtoull.c: Likewise.
34670         * lib/sysexits.in.h: Likewise.
34671         * lib/tempname.c: Likewise.
34672         * lib/tempname.h: Likewise.
34673         * lib/timespec.h: Likewise.
34674         * lib/tls.c: Likewise.
34675         * lib/tls.h: Likewise.
34676         * lib/tmpdir.c: Likewise.
34677         * lib/tmpdir.h: Likewise.
34678         * lib/tmpfile-safer.c: Likewise.
34679         * lib/tmpfile.c: Likewise.
34680         * lib/trigl.c: Likewise.
34681         * lib/trigl.h: Likewise.
34682         * lib/trim.c: Likewise.
34683         * lib/trim.h: Likewise.
34684         * lib/trunc.c: Likewise.
34685         * lib/truncf.c: Likewise.
34686         * lib/truncl.c: Likewise.
34687         * lib/tsearch.c: Likewise.
34688         * lib/unicodeio.c: Likewise.
34689         * lib/unicodeio.h: Likewise.
34690         * lib/unistd--.h: Likewise.
34691         * lib/unistd-safer.h: Likewise.
34692         * lib/unistdio/ulc-fprintf.c: Likewise.
34693         * lib/unistdio/ulc-vfprintf.c: Likewise.
34694         * lib/unlinkdir.c: Likewise.
34695         * lib/unlinkdir.h: Likewise.
34696         * lib/unlocked-io.h: Likewise.
34697         * lib/unsetenv.c: Likewise.
34698         * lib/userspec.c: Likewise.
34699         * lib/utime.c: Likewise.
34700         * lib/utimecmp.c: Likewise.
34701         * lib/utimecmp.h: Likewise.
34702         * lib/utimens.c: Likewise.
34703         * lib/verify.h: Likewise.
34704         * lib/verror.c: Likewise.
34705         * lib/verror.h: Likewise.
34706         * lib/version-etc-fsf.c: Likewise.
34707         * lib/version-etc.c: Likewise.
34708         * lib/version-etc.h: Likewise.
34709         * lib/vfprintf.c: Likewise.
34710         * lib/vprintf.c: Likewise.
34711         * lib/vsprintf.c: Likewise.
34712         * lib/w32spawn.h: Likewise.
34713         * lib/wait-process.c: Likewise.
34714         * lib/wait-process.h: Likewise.
34715         * lib/wcwidth.c: Likewise.
34716         * lib/write-any-file.c: Likewise.
34717         * lib/xalloc-die.c: Likewise.
34718         * lib/xalloc.h: Likewise.
34719         * lib/xasprintf.c: Likewise.
34720         * lib/xgetcwd.c: Likewise.
34721         * lib/xgetcwd.h: Likewise.
34722         * lib/xgetdomainname.c: Likewise.
34723         * lib/xgetdomainname.h: Likewise.
34724         * lib/xgethostname.c: Likewise.
34725         * lib/xmalloc.c: Likewise.
34726         * lib/xmalloca.c: Likewise.
34727         * lib/xmalloca.h: Likewise.
34728         * lib/xmemcoll.c: Likewise.
34729         * lib/xnanosleep.c: Likewise.
34730         * lib/xreadlink.c: Likewise.
34731         * lib/xreadlink.h: Likewise.
34732         * lib/xsetenv.c: Likewise.
34733         * lib/xsetenv.h: Likewise.
34734         * lib/xstriconv.c: Likewise.
34735         * lib/xstriconv.h: Likewise.
34736         * lib/xstrndup.c: Likewise.
34737         * lib/xstrndup.h: Likewise.
34738         * lib/xstrtod.c: Likewise.
34739         * lib/xstrtod.h: Likewise.
34740         * lib/xstrtol-error.c: Likewise.
34741         * lib/xstrtol.c: Likewise.
34742         * lib/xstrtol.h: Likewise.
34743         * lib/xtime.h: Likewise.
34744         * lib/xvasprintf.c: Likewise.
34745         * lib/xvasprintf.h: Likewise.
34746         * lib/yesno.c: Likewise.
34747         * lib/yesno.h: Likewise.
34748         * posix-modules: Likewise.
34749         * tests/test-alloca-opt.c: Likewise.
34750         * tests/test-arcfour.c: Likewise.
34751         * tests/test-arctwo.c: Likewise.
34752         * tests/test-argmatch.c: Likewise.
34753         * tests/test-argp-2.sh: Likewise.
34754         * tests/test-argp.c: Likewise.
34755         * tests/test-arpa_inet.c: Likewise.
34756         * tests/test-array_list.c: Likewise.
34757         * tests/test-array_oset.c: Likewise.
34758         * tests/test-atexit.c: Likewise.
34759         * tests/test-avltree_list.c: Likewise.
34760         * tests/test-avltree_oset.c: Likewise.
34761         * tests/test-avltreehash_list.c: Likewise.
34762         * tests/test-base64.c: Likewise.
34763         * tests/test-binary-io.c: Likewise.
34764         * tests/test-byteswap.c: Likewise.
34765         * tests/test-c-ctype.c: Likewise.
34766         * tests/test-c-strcasecmp.c: Likewise.
34767         * tests/test-c-strcasestr.c: Likewise.
34768         * tests/test-c-strncasecmp.c: Likewise.
34769         * tests/test-c-strstr.c: Likewise.
34770         * tests/test-canonicalize-lgpl.c: Likewise.
34771         * tests/test-canonicalize.c: Likewise.
34772         * tests/test-carray_list.c: Likewise.
34773         * tests/test-ceilf.c: Likewise.
34774         * tests/test-ceill.c: Likewise.
34775         * tests/test-count-one-bits.c: Likewise.
34776         * tests/test-crc.c: Likewise.
34777         * tests/test-dirname.c: Likewise.
34778         * tests/test-fbufmode.c: Likewise.
34779         * tests/test-fcntl.c: Likewise.
34780         * tests/test-fflush.c: Likewise.
34781         * tests/test-floorf.c: Likewise.
34782         * tests/test-floorl.c: Likewise.
34783         * tests/test-fopen.c: Likewise.
34784         * tests/test-fprintf-posix.c: Likewise.
34785         * tests/test-fprintf-posix.h: Likewise.
34786         * tests/test-fpurge.c: Likewise.
34787         * tests/test-freadable.c: Likewise.
34788         * tests/test-freadahead.c: Likewise.
34789         * tests/test-freading.c: Likewise.
34790         * tests/test-freopen.c: Likewise.
34791         * tests/test-frexp.c: Likewise.
34792         * tests/test-frexpl.c: Likewise.
34793         * tests/test-fseek.c: Likewise.
34794         * tests/test-fseeko.c: Likewise.
34795         * tests/test-fseterr.c: Likewise.
34796         * tests/test-fstrcmp.c: Likewise.
34797         * tests/test-ftell.c: Likewise.
34798         * tests/test-ftello.c: Likewise.
34799         * tests/test-fwritable.c: Likewise.
34800         * tests/test-fwriting.c: Likewise.
34801         * tests/test-getaddrinfo.c: Likewise.
34802         * tests/test-getpass.c: Likewise.
34803         * tests/test-gettimeofday.c: Likewise.
34804         * tests/test-hmac-md5.c: Likewise.
34805         * tests/test-hmac-sha1.c: Likewise.
34806         * tests/test-iconv.c: Likewise.
34807         * tests/test-iconvme.c: Likewise.
34808         * tests/test-inttypes.c: Likewise.
34809         * tests/test-isnan.c: Likewise.
34810         * tests/test-isnanf.c: Likewise.
34811         * tests/test-isnanl-nolibm.c: Likewise.
34812         * tests/test-isnanl.c: Likewise.
34813         * tests/test-isnanl.h: Likewise.
34814         * tests/test-ldexpl.c: Likewise.
34815         * tests/test-linked_list.c: Likewise.
34816         * tests/test-linkedhash_list.c: Likewise.
34817         * tests/test-locale.c: Likewise.
34818         * tests/test-localename.c: Likewise.
34819         * tests/test-lock.c: Likewise.
34820         * tests/test-lseek.c: Likewise.
34821         * tests/test-malloca.c: Likewise.
34822         * tests/test-math.c: Likewise.
34823         * tests/test-mbscasecmp.c: Likewise.
34824         * tests/test-mbscasestr1.c: Likewise.
34825         * tests/test-mbscasestr2.c: Likewise.
34826         * tests/test-mbscasestr3.c: Likewise.
34827         * tests/test-mbscasestr4.c: Likewise.
34828         * tests/test-mbschr.c: Likewise.
34829         * tests/test-mbscspn.c: Likewise.
34830         * tests/test-mbsncasecmp.c: Likewise.
34831         * tests/test-mbspbrk.c: Likewise.
34832         * tests/test-mbspcasecmp.c: Likewise.
34833         * tests/test-mbsrchr.c: Likewise.
34834         * tests/test-mbsspn.c: Likewise.
34835         * tests/test-mbsstr1.c: Likewise.
34836         * tests/test-mbsstr2.c: Likewise.
34837         * tests/test-mbsstr3.c: Likewise.
34838         * tests/test-md5.c: Likewise.
34839         * tests/test-memmem.c: Likewise.
34840         * tests/test-netinet_in.c: Likewise.
34841         * tests/test-open.c: Likewise.
34842         * tests/test-printf-frexp.c: Likewise.
34843         * tests/test-printf-frexpl.c: Likewise.
34844         * tests/test-printf-posix.c: Likewise.
34845         * tests/test-printf-posix.h: Likewise.
34846         * tests/test-rbtree_list.c: Likewise.
34847         * tests/test-rbtree_oset.c: Likewise.
34848         * tests/test-rbtreehash_list.c: Likewise.
34849         * tests/test-read-file.c: Likewise.
34850         * tests/test-rijndael.c: Likewise.
34851         * tests/test-search.c: Likewise.
34852         * tests/test-signbit.c: Likewise.
34853         * tests/test-sleep.c: Likewise.
34854         * tests/test-snprintf-posix.c: Likewise.
34855         * tests/test-snprintf-posix.h: Likewise.
34856         * tests/test-snprintf.c: Likewise.
34857         * tests/test-sprintf-posix.c: Likewise.
34858         * tests/test-sprintf-posix.h: Likewise.
34859         * tests/test-stat-time.c: Likewise.
34860         * tests/test-stdbool.c: Likewise.
34861         * tests/test-stdint.c: Likewise.
34862         * tests/test-stdio.c: Likewise.
34863         * tests/test-stdlib.c: Likewise.
34864         * tests/test-stpncpy.c: Likewise.
34865         * tests/test-strcasestr.c: Likewise.
34866         * tests/test-striconv.c: Likewise.
34867         * tests/test-striconveh.c: Likewise.
34868         * tests/test-striconveha.c: Likewise.
34869         * tests/test-string.c: Likewise.
34870         * tests/test-sys_select.c: Likewise.
34871         * tests/test-sys_socket.c: Likewise.
34872         * tests/test-sys_stat.c: Likewise.
34873         * tests/test-sys_time.c: Likewise.
34874         * tests/test-sysexits.c: Likewise.
34875         * tests/test-time.c: Likewise.
34876         * tests/test-tls.c: Likewise.
34877         * tests/test-trunc.c: Likewise.
34878         * tests/test-truncf.c: Likewise.
34879         * tests/test-truncl.c: Likewise.
34880         * tests/test-unistd.c: Likewise.
34881         * tests/test-vasnprintf-posix.c: Likewise.
34882         * tests/test-vasnprintf-posix2.c: Likewise.
34883         * tests/test-vasnprintf.c: Likewise.
34884         * tests/test-vasprintf-posix.c: Likewise.
34885         * tests/test-vasprintf.c: Likewise.
34886         * tests/test-verify.c: Likewise.
34887         * tests/test-vfprintf-posix.c: Likewise.
34888         * tests/test-vprintf-posix.c: Likewise.
34889         * tests/test-vsnprintf-posix.c: Likewise.
34890         * tests/test-vsnprintf.c: Likewise.
34891         * tests/test-vsprintf-posix.c: Likewise.
34892         * tests/test-wchar.c: Likewise.
34893         * tests/test-wctype.c: Likewise.
34894         * tests/test-wcwidth.c: Likewise.
34895         * tests/test-xstrtol.c: Likewise.
34896         * tests/test-xvasprintf.c: Likewise.
34897         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34898         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34899         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34900         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34901         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34902         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34903         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34904         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34905         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34906         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34907         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34908         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34909         * tests/uniname/test-uninames.c: Likewise.
34910         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34911         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34912         * tests/unistdio/test-u16-printf1.h: Likewise.
34913         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34914         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34915         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34916         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34917         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34918         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34919         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34920         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34921         * tests/unistdio/test-u32-printf1.h: Likewise.
34922         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34923         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34924         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34925         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34926         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34927         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34928         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34929         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34930         * tests/unistdio/test-u8-printf1.h: Likewise.
34931         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34932         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34933         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34934         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34935         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34936         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34937         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34938         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34939         * tests/unistdio/test-ulc-printf1.h: Likewise.
34940         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34941         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34942         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34943         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34944         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34945         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34946         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34947         * tests/uniwidth/test-u16-width.c: Likewise.
34948         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34949         * tests/uniwidth/test-u32-width.c: Likewise.
34950         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34951         * tests/uniwidth/test-u8-width.c: Likewise.
34952         * tests/uniwidth/test-uc_width.c: Likewise.
34953         * config/srclist-update: Likewise.
34954         (fixlicense): Update to GPLv3+.
34955
34956         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34957         * tests/test-tsearch.c: Change copyright notice.
34958
34959         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34960         * lib/c-strcaseeq.h: Change copyright notice.
34961         * lib/streq.h: Likewise.
34962         * lib/uniconv.h: Likewise.
34963         * lib/uniconv/u-conv-from-enc.h: Likewise.
34964         * lib/uniconv/u-conv-to-enc.h: Likewise.
34965         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34966         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34967         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34968         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34969         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34970         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34971         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34972         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34973         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34974         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34975         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34976         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34977         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34978         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34979         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34980         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34981         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34982         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34983         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34984         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34985         * lib/uniname.h: Likewise.
34986         * lib/uniname/uniname.c: Likewise.
34987         * lib/unistdio.h: Likewise.
34988         * lib/unistdio/u-asnprintf.h: Likewise.
34989         * lib/unistdio/u-asprintf.h: Likewise.
34990         * lib/unistdio/u-printf-args.c: Likewise.
34991         * lib/unistdio/u-printf-args.h: Likewise.
34992         * lib/unistdio/u-printf-parse.h: Likewise.
34993         * lib/unistdio/u-snprintf.h: Likewise.
34994         * lib/unistdio/u-sprintf.h: Likewise.
34995         * lib/unistdio/u-vasprintf.h: Likewise.
34996         * lib/unistdio/u-vsnprintf.h: Likewise.
34997         * lib/unistdio/u-vsprintf.h: Likewise.
34998         * lib/unistdio/u16-asnprintf.c: Likewise.
34999         * lib/unistdio/u16-asprintf.c: Likewise.
35000         * lib/unistdio/u16-printf-parse.c: Likewise.
35001         * lib/unistdio/u16-snprintf.c: Likewise.
35002         * lib/unistdio/u16-sprintf.c: Likewise.
35003         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35004         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35005         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35006         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35007         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35008         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35009         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35010         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35011         * lib/unistdio/u16-vasnprintf.c: Likewise.
35012         * lib/unistdio/u16-vasprintf.c: Likewise.
35013         * lib/unistdio/u16-vsnprintf.c: Likewise.
35014         * lib/unistdio/u16-vsprintf.c: Likewise.
35015         * lib/unistdio/u32-asnprintf.c: Likewise.
35016         * lib/unistdio/u32-asprintf.c: Likewise.
35017         * lib/unistdio/u32-printf-parse.c: Likewise.
35018         * lib/unistdio/u32-snprintf.c: Likewise.
35019         * lib/unistdio/u32-sprintf.c: Likewise.
35020         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35021         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35022         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35023         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35024         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35025         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35026         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35027         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35028         * lib/unistdio/u32-vasnprintf.c: Likewise.
35029         * lib/unistdio/u32-vasprintf.c: Likewise.
35030         * lib/unistdio/u32-vsnprintf.c: Likewise.
35031         * lib/unistdio/u32-vsprintf.c: Likewise.
35032         * lib/unistdio/u8-asnprintf.c: Likewise.
35033         * lib/unistdio/u8-asprintf.c: Likewise.
35034         * lib/unistdio/u8-printf-parse.c: Likewise.
35035         * lib/unistdio/u8-snprintf.c: Likewise.
35036         * lib/unistdio/u8-sprintf.c: Likewise.
35037         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35038         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35039         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35040         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35041         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35042         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35043         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35044         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35045         * lib/unistdio/u8-vasnprintf.c: Likewise.
35046         * lib/unistdio/u8-vasprintf.c: Likewise.
35047         * lib/unistdio/u8-vsnprintf.c: Likewise.
35048         * lib/unistdio/u8-vsprintf.c: Likewise.
35049         * lib/unistdio/ulc-asnprintf.c: Likewise.
35050         * lib/unistdio/ulc-asprintf.c: Likewise.
35051         * lib/unistdio/ulc-printf-parse.c: Likewise.
35052         * lib/unistdio/ulc-snprintf.c: Likewise.
35053         * lib/unistdio/ulc-sprintf.c: Likewise.
35054         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35055         * lib/unistdio/ulc-vasprintf.c: Likewise.
35056         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35057         * lib/unistdio/ulc-vsprintf.c: Likewise.
35058         * lib/unistr.h: Likewise.
35059         * lib/unistr/u-cpy-alloc.h: Likewise.
35060         * lib/unistr/u-cpy.h: Likewise.
35061         * lib/unistr/u-endswith.h: Likewise.
35062         * lib/unistr/u-move.h: Likewise.
35063         * lib/unistr/u-set.h: Likewise.
35064         * lib/unistr/u-startswith.h: Likewise.
35065         * lib/unistr/u-stpcpy.h: Likewise.
35066         * lib/unistr/u-stpncpy.h: Likewise.
35067         * lib/unistr/u-strcat.h: Likewise.
35068         * lib/unistr/u-strcpy.h: Likewise.
35069         * lib/unistr/u-strcspn.h: Likewise.
35070         * lib/unistr/u-strdup.h: Likewise.
35071         * lib/unistr/u-strlen.h: Likewise.
35072         * lib/unistr/u-strncat.h: Likewise.
35073         * lib/unistr/u-strncpy.h: Likewise.
35074         * lib/unistr/u-strnlen.h: Likewise.
35075         * lib/unistr/u-strpbrk.h: Likewise.
35076         * lib/unistr/u-strspn.h: Likewise.
35077         * lib/unistr/u-strstr.h: Likewise.
35078         * lib/unistr/u-strtok.h: Likewise.
35079         * lib/unistr/u16-check.c: Likewise.
35080         * lib/unistr/u16-chr.c: Likewise.
35081         * lib/unistr/u16-cmp.c: Likewise.
35082         * lib/unistr/u16-cpy-alloc.c: Likewise.
35083         * lib/unistr/u16-cpy.c: Likewise.
35084         * lib/unistr/u16-endswith.c: Likewise.
35085         * lib/unistr/u16-mblen.c: Likewise.
35086         * lib/unistr/u16-mbsnlen.c: Likewise.
35087         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35088         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35089         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35090         * lib/unistr/u16-mbtouc.c: Likewise.
35091         * lib/unistr/u16-mbtoucr.c: Likewise.
35092         * lib/unistr/u16-move.c: Likewise.
35093         * lib/unistr/u16-next.c: Likewise.
35094         * lib/unistr/u16-prev.c: Likewise.
35095         * lib/unistr/u16-set.c: Likewise.
35096         * lib/unistr/u16-startswith.c: Likewise.
35097         * lib/unistr/u16-stpcpy.c: Likewise.
35098         * lib/unistr/u16-stpncpy.c: Likewise.
35099         * lib/unistr/u16-strcat.c: Likewise.
35100         * lib/unistr/u16-strchr.c: Likewise.
35101         * lib/unistr/u16-strcmp.c: Likewise.
35102         * lib/unistr/u16-strcpy.c: Likewise.
35103         * lib/unistr/u16-strcspn.c: Likewise.
35104         * lib/unistr/u16-strdup.c: Likewise.
35105         * lib/unistr/u16-strlen.c: Likewise.
35106         * lib/unistr/u16-strmblen.c: Likewise.
35107         * lib/unistr/u16-strmbtouc.c: Likewise.
35108         * lib/unistr/u16-strncat.c: Likewise.
35109         * lib/unistr/u16-strncmp.c: Likewise.
35110         * lib/unistr/u16-strncpy.c: Likewise.
35111         * lib/unistr/u16-strnlen.c: Likewise.
35112         * lib/unistr/u16-strpbrk.c: Likewise.
35113         * lib/unistr/u16-strrchr.c: Likewise.
35114         * lib/unistr/u16-strspn.c: Likewise.
35115         * lib/unistr/u16-strstr.c: Likewise.
35116         * lib/unistr/u16-strtok.c: Likewise.
35117         * lib/unistr/u16-to-u32.c: Likewise.
35118         * lib/unistr/u16-to-u8.c: Likewise.
35119         * lib/unistr/u16-uctomb-aux.c: Likewise.
35120         * lib/unistr/u16-uctomb.c: Likewise.
35121         * lib/unistr/u32-check.c: Likewise.
35122         * lib/unistr/u32-chr.c: Likewise.
35123         * lib/unistr/u32-cmp.c: Likewise.
35124         * lib/unistr/u32-cpy-alloc.c: Likewise.
35125         * lib/unistr/u32-cpy.c: Likewise.
35126         * lib/unistr/u32-endswith.c: Likewise.
35127         * lib/unistr/u32-mblen.c: Likewise.
35128         * lib/unistr/u32-mbsnlen.c: Likewise.
35129         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35130         * lib/unistr/u32-mbtouc.c: Likewise.
35131         * lib/unistr/u32-mbtoucr.c: Likewise.
35132         * lib/unistr/u32-move.c: Likewise.
35133         * lib/unistr/u32-next.c: Likewise.
35134         * lib/unistr/u32-prev.c: Likewise.
35135         * lib/unistr/u32-set.c: Likewise.
35136         * lib/unistr/u32-startswith.c: Likewise.
35137         * lib/unistr/u32-stpcpy.c: Likewise.
35138         * lib/unistr/u32-stpncpy.c: Likewise.
35139         * lib/unistr/u32-strcat.c: Likewise.
35140         * lib/unistr/u32-strchr.c: Likewise.
35141         * lib/unistr/u32-strcmp.c: Likewise.
35142         * lib/unistr/u32-strcpy.c: Likewise.
35143         * lib/unistr/u32-strcspn.c: Likewise.
35144         * lib/unistr/u32-strdup.c: Likewise.
35145         * lib/unistr/u32-strlen.c: Likewise.
35146         * lib/unistr/u32-strmblen.c: Likewise.
35147         * lib/unistr/u32-strmbtouc.c: Likewise.
35148         * lib/unistr/u32-strncat.c: Likewise.
35149         * lib/unistr/u32-strncmp.c: Likewise.
35150         * lib/unistr/u32-strncpy.c: Likewise.
35151         * lib/unistr/u32-strnlen.c: Likewise.
35152         * lib/unistr/u32-strpbrk.c: Likewise.
35153         * lib/unistr/u32-strrchr.c: Likewise.
35154         * lib/unistr/u32-strspn.c: Likewise.
35155         * lib/unistr/u32-strstr.c: Likewise.
35156         * lib/unistr/u32-strtok.c: Likewise.
35157         * lib/unistr/u32-to-u16.c: Likewise.
35158         * lib/unistr/u32-to-u8.c: Likewise.
35159         * lib/unistr/u32-uctomb.c: Likewise.
35160         * lib/unistr/u8-check.c: Likewise.
35161         * lib/unistr/u8-chr.c: Likewise.
35162         * lib/unistr/u8-cmp.c: Likewise.
35163         * lib/unistr/u8-cpy-alloc.c: Likewise.
35164         * lib/unistr/u8-cpy.c: Likewise.
35165         * lib/unistr/u8-endswith.c: Likewise.
35166         * lib/unistr/u8-mblen.c: Likewise.
35167         * lib/unistr/u8-mbsnlen.c: Likewise.
35168         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35169         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35170         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35171         * lib/unistr/u8-mbtouc.c: Likewise.
35172         * lib/unistr/u8-mbtoucr.c: Likewise.
35173         * lib/unistr/u8-move.c: Likewise.
35174         * lib/unistr/u8-next.c: Likewise.
35175         * lib/unistr/u8-prev.c: Likewise.
35176         * lib/unistr/u8-set.c: Likewise.
35177         * lib/unistr/u8-startswith.c: Likewise.
35178         * lib/unistr/u8-stpcpy.c: Likewise.
35179         * lib/unistr/u8-stpncpy.c: Likewise.
35180         * lib/unistr/u8-strcat.c: Likewise.
35181         * lib/unistr/u8-strchr.c: Likewise.
35182         * lib/unistr/u8-strcmp.c: Likewise.
35183         * lib/unistr/u8-strcpy.c: Likewise.
35184         * lib/unistr/u8-strcspn.c: Likewise.
35185         * lib/unistr/u8-strdup.c: Likewise.
35186         * lib/unistr/u8-strlen.c: Likewise.
35187         * lib/unistr/u8-strmblen.c: Likewise.
35188         * lib/unistr/u8-strmbtouc.c: Likewise.
35189         * lib/unistr/u8-strncat.c: Likewise.
35190         * lib/unistr/u8-strncmp.c: Likewise.
35191         * lib/unistr/u8-strncpy.c: Likewise.
35192         * lib/unistr/u8-strnlen.c: Likewise.
35193         * lib/unistr/u8-strpbrk.c: Likewise.
35194         * lib/unistr/u8-strrchr.c: Likewise.
35195         * lib/unistr/u8-strspn.c: Likewise.
35196         * lib/unistr/u8-strstr.c: Likewise.
35197         * lib/unistr/u8-strtok.c: Likewise.
35198         * lib/unistr/u8-to-u16.c: Likewise.
35199         * lib/unistr/u8-to-u32.c: Likewise.
35200         * lib/unistr/u8-uctomb-aux.c: Likewise.
35201         * lib/unistr/u8-uctomb.c: Likewise.
35202         * lib/unitypes.h: Likewise.
35203         * lib/uniwidth.h: Likewise.
35204         * lib/uniwidth/cjk.h: Likewise.
35205         * lib/uniwidth/u16-strwidth.c: Likewise.
35206         * lib/uniwidth/u16-width.c: Likewise.
35207         * lib/uniwidth/u32-strwidth.c: Likewise.
35208         * lib/uniwidth/u32-width.c: Likewise.
35209         * lib/uniwidth/u8-strwidth.c: Likewise.
35210         * lib/uniwidth/u8-width.c: Likewise.
35211         * lib/uniwidth/width.c: Likewise.
35212
35213 2007-10-07  Bruno Haible  <bruno@clisp.org>
35214
35215         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35216         The file is still under LGPL (see modules/inttypes).
35217
35218 2007-10-06  Bruno Haible  <bruno@clisp.org>
35219
35220         * modules/trunc (Dependencies): Add 'extensions'.
35221         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35222         Reported by Ben Pfaff <blp@gnu.org>.
35223
35224 2007-10-06  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/freopen-tests: New file.
35227         * tests/test-freopen.c: New file.
35228
35229         * modules/fopen-tests: New file.
35230         * tests/test-fopen.c: New file.
35231
35232         * modules/fopen: New file.
35233         * lib/fopen.c: New file.
35234         * m4/fopen.m4: New file.
35235         * modules/freopen: New file.
35236         * lib/freopen.c: New file.
35237         * m4/freopen.m4: New file.
35238         * lib/stdio.in.h (fopen, freopen): New declarations.
35239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35240         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35241         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35242         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35243         * doc/functions/fopen.texi: Mention the 'fopen' module.
35244         * doc/functions/freopen.texi: Mention the 'freopen' module.
35245
35246 2007-10-06  Bruno Haible  <bruno@clisp.org>
35247
35248         * modules/open-tests: New file.
35249         * tests/test-open.c: New file.
35250
35251         * modules/open: New file.
35252         * lib/open.c: New file.
35253         * m4/open.m4: New file.
35254         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35255         lib/open.c does.
35256         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35257         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35258         macros.
35259         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35260         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35261         REPLACE_OPEN.
35262         * doc/functions/open.texi: Mention the 'open' module.
35263
35264 2007-10-04  Bruno Haible  <bruno@clisp.org>
35265
35266         * modules/ceill-tests: New file.
35267         * tests/test-ceill.c: New file.
35268
35269         * modules/ceill: New file.
35270         * lib/ceill.c: Replace entire file.
35271         * m4/ceill.m4: New file.
35272         * lib/math.in.h (ceill): Replace declaration.
35273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35274         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35275         * doc/functions/ceill.texi: Mention the 'ceill' module.
35276         * modules/mathl (Files): Remove lib/ceill.c.
35277         (Depends-on): Add ceill.
35278
35279 2007-10-04  Bruno Haible  <bruno@clisp.org>
35280
35281         * modules/ceilf-tests: New file.
35282         * tests/test-ceilf.c: New file.
35283
35284         * modules/ceilf: New file.
35285         * lib/ceil.c: New file.
35286         * lib/ceilf.c: New file.
35287         * m4/ceilf.m4: New file.
35288         * lib/math.in.h (ceilf): New declaration.
35289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35290         HAVE_DECL_CEILF.
35291         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35292         HAVE_DECL_CEILF.
35293         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35294
35295 2007-10-04  Bruno Haible  <bruno@clisp.org>
35296
35297         * modules/floorl-tests: New file.
35298         * tests/test-floorl.c: New file.
35299
35300         * modules/floorl: New file.
35301         * lib/floorl.c: Replace entire file.
35302         * m4/floorl.m4: New file.
35303         * lib/math.in.h (floorl): Replace declaration.
35304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35305         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35306         * doc/functions/floorl.texi: Mention the 'floorl' module.
35307         * modules/mathl (Files): Remove lib/floorl.c.
35308         (Depends-on): Add floorl.
35309
35310 2007-10-04  Bruno Haible  <bruno@clisp.org>
35311
35312         * modules/floorf-tests: New file.
35313         * tests/test-floorf.c: New file.
35314
35315         * modules/floorf: New file.
35316         * lib/floor.c: New file.
35317         * lib/floorf.c: New file.
35318         * m4/floorf.m4: New file.
35319         * lib/math.in.h (floorf): New declaration.
35320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35321         HAVE_DECL_FLOORF.
35322         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35323         HAVE_DECL_FLOORF.
35324         * doc/functions/floorf.texi: Mention the 'floorf' module.
35325
35326 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35327             Bruno Haible  <bruno@clisp.org>
35328
35329         Advertise for the Git server instead of the CVS server.
35330         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35331         repository instead of the CVS one.
35332         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35333         about all VCS systems generically.
35334         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35335
35336 2007-10-04  Bruno Haible  <bruno@clisp.org>
35337
35338         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35339         means.
35340         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35341
35342 2007-10-04  Bruno Haible  <bruno@clisp.org>
35343
35344         * modules/truncl-tests: New file.
35345         * tests/test-truncl.c: New file.
35346
35347         * modules/truncl: New file.
35348         * lib/truncl.c: New file.
35349         * m4/truncl.m4: New file.
35350         * lib/math.in.h (truncl): New declaration.
35351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35352         HAVE_DECL_TRUNCL.
35353         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35354         HAVE_DECL_TRUNCL.
35355         * doc/functions/truncl.texi: Mention the 'truncl' module.
35356
35357 2007-10-04  Bruno Haible  <bruno@clisp.org>
35358
35359         * modules/truncf-tests: New file.
35360         * tests/test-truncf.c: New file.
35361
35362         * modules/truncf: New file.
35363         * lib/trunc.c: Make paramerizable through USE_* macros.
35364         * lib/truncf.c: New file.
35365         * m4/truncf.m4: New file.
35366         * lib/math.in.h (truncf): New declaration.
35367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35368         HAVE_DECL_TRUNCF.
35369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35370         HAVE_DECL_TRUNCF.
35371         * doc/functions/truncf.texi: Mention the 'truncf' module.
35372
35373 2007-10-03  Bruno Haible  <bruno@clisp.org>
35374
35375         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35376         augmentation also for tests modules.
35377         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35378         * modules/atexit-tests (Makefile.am): Likewise.
35379         * modules/binary-io-tests (Makefile.am): Likewise.
35380         * modules/c-strcase-tests (Makefile.am): Likewise.
35381         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35382         * modules/canonicalize-tests (Makefile.am): Likewise.
35383         * modules/closein-tests (Makefile.am): Likewise.
35384         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35385         * modules/freadahead-tests (Makefile.am): Likewise.
35386         * modules/fseek-tests (Makefile.am): Likewise.
35387         * modules/fseeko-tests (Makefile.am): Likewise.
35388         * modules/ftell-tests (Makefile.am): Likewise.
35389         * modules/ftello-tests (Makefile.am): Likewise.
35390         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35391         * modules/isnanl-tests (Makefile.am): Likewise.
35392         * modules/lseek-tests (Makefile.am): Likewise.
35393         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35394         * modules/mbscasestr-tests (Makefile.am): Likewise.
35395         * modules/mbschr-tests (Makefile.am): Likewise.
35396         * modules/mbscspn-tests (Makefile.am): Likewise.
35397         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35398         * modules/mbspbrk-tests (Makefile.am): Likewise.
35399         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35400         * modules/mbsrchr-tests (Makefile.am): Likewise.
35401         * modules/mbsspn-tests (Makefile.am): Likewise.
35402         * modules/mbsstr-tests (Makefile.am): Likewise.
35403         * modules/printf-posix-tests (Makefile.am): Likewise.
35404         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35405         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35406         * modules/tsearch-tests (Makefile.am): Likewise.
35407         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35408         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35409         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35410         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35411         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35412         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35413         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35414         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35415         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35416         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35417         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35418         * modules/xstrtol-tests (Makefile.am): Likewise.
35419         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35420         * modules/yesno-tests (Makefile.am): Likewise.
35421
35422 2007-10-03  Bruno Haible  <bruno@clisp.org>
35423
35424         * modules/trunc-tests: New file.
35425         * tests/test-trunc.c: New file.
35426
35427         * modules/trunc: New file.
35428         * lib/trunc.c: New file.
35429         * m4/trunc.m4: New file.
35430         * lib/math.in.h (trunc): New declaration.
35431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35432         HAVE_DECL_TRUNC.
35433         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35434         HAVE_DECL_TRUNC.
35435         * doc/functions/trunc.texi: Mention the 'trunc' module.
35436
35437 2007-10-03  Bruno Haible  <bruno@clisp.org>
35438
35439         * tests/test-fpending.c: New file, mostly copied
35440         from coreutils/lib/t-fpending.c.
35441         * modules/fpending-tests: New file.
35442
35443 2007-10-03  Bruno Haible  <bruno@clisp.org>
35444
35445         Port the stdio extensions to QNX (untested).
35446         * lib/fseterr.c (fseterr): Add support for QNX.
35447         * lib/fbufmode.c (fbufmode): Likewise.
35448         * lib/freadable.c (freadable): Likewise.
35449         * lib/fwritable.c (fwritable): Likewise.
35450         * lib/freading.c (freading): Likewise.
35451         * lib/fwriting.c (fwriting): Likewise.
35452         * lib/freadahead.c (freadahed): Likewise.
35453         * lib/fpurge.c (fpurge): Likewise.
35454         * lib/fseeko.c (rpl_fseeko): Likewise.
35455
35456 2007-10-03  Bruno Haible  <bruno@clisp.org>
35457             Jim Meyering  <jim@meyering.net>
35458             Eric Blake  <ebb9@byu.net>
35459
35460         * doc/relocatable.texi: Use @command instead of @program.
35461
35462 2007-10-02  Jim Meyering  <jim@meyering.net>
35463
35464         Perform one more "_.h" -> ".in.h" substitution.
35465         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35466         instead of unistd_.h here, too.
35467
35468 2007-10-01  Bruno Haible  <bruno@clisp.org>
35469
35470         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35471         Needed for the alloca-opt module.
35472
35473 2007-09-30  Bruno Haible  <bruno@clisp.org>
35474
35475         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35476         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35477         alloca_.h.
35478         * lib/argz.in.h: Renamed from lib/argz_.h.
35479         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35480         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35481         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35482         byteswap_.h.
35483         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35484         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35485         dirent_.h.
35486         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35487         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35488         fcntl_.h.
35489         * lib/float.in.h: Renamed from lib/float_.h.
35490         * modules/float (Files, Makefile.am): Use float.in.h instead of
35491         float_.h.
35492         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35493         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35494         fnmatch_.h.
35495         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35496         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35497         getopt_.h.
35498         * lib/glob.in.h: Renamed from lib/glob_.h.
35499         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35500         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35501         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35502         iconv_.h.
35503         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35504         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35505         inttypes_.h.
35506         * lib/locale.in.h: Renamed from lib/locale_.h.
35507         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35508         locale_.h.
35509         * lib/math.in.h: Renamed from lib/math_.h.
35510         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35511         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35512         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35513         of netinet_in_.h. Add dependency.
35514         * lib/poll.in.h: Renamed from lib/poll_.h.
35515         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35516         * lib/search.in.h: Renamed from lib/search_.h.
35517         * modules/search (Files, Makefile.am): Use search.in.h instead of
35518         search_.h.
35519         * lib/signal.in.h: Renamed from lib/signal_.h.
35520         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35521         _signal.h.
35522         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35523         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35524         stdbool_.h.
35525         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35526         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35527         stdint_.h.
35528         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35529         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35530         stdio_.h.
35531         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35532         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35533         stdlib_.h.
35534         * lib/string.in.h: Renamed from lib/string_.h.
35535         * modules/string (Files, Makefile.am): Use string.in.h instead of
35536         string_.h.
35537         * doc/gnulib-tool.texi (Initial import): Update.
35538         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35539         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35540         of sys_select_.h. Add dependency.
35541         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35542         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35543         of sys_socket_.h.
35544         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35545         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35546         sys_stat_.h.
35547         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35548         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35549         sys_time_.h.
35550         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35551         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35552         sysexits_.h.
35553         * lib/time.in.h: Renamed from lib/time_.h.
35554         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35555         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35556         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35557         unistd_.h.
35558         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35559         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35560         wchar_.h.
35561         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35562         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35563         wctype_.h.
35564         * build-aux/bootstrap (slurp): Update.
35565         * lib/.cppi-disable: Update.
35566
35567 2007-09-30  Bruno Haible  <bruno@clisp.org>
35568
35569         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35570         Needed on BeOS.
35571
35572 2007-09-30  Bruno Haible  <bruno@clisp.org>
35573
35574         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35575
35576 2007-09-29  Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35579
35580 2007-09-29  Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35583         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35584         * build-aux/install-reloc: Compile also areadlink.c.
35585         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35586
35587 2007-09-29  Bruno Haible  <bruno@clisp.org>
35588
35589         * gnulib-tool (func_emit_initmacro_done): Indentation.
35590
35591 2007-09-29  Bruno Haible  <bruno@clisp.org>
35592
35593         * README: Add CVS checkout update instructions.
35594         Info from Bob Proulx <bob@proulx.com>.
35595
35596 2007-09-28  Eric Blake  <ebb9@byu.net>
35597
35598         Provide move-if-change.
35599         * build-aux/move-if-change: New file, based on best practice
35600         rather than any canonical upstream location.
35601
35602 2007-09-28  Jim Meyering  <jim@meyering.net>
35603
35604         Fix canonicalize loop-detection corner case.
35605         Do not attempt to stat the symlink values stored via seen_triple.
35606         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35607         on linux-2.6.18, (but not 2.6.22).
35608         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35609         triple_compare.  The former compares dev,ino,filename, while the latter
35610         would actually stat dirname(filename) when dev and ino were equal.
35611         * lib/hash-triple.c: Install <string.h>.
35612         (STREQ): Define.
35613         (triple_compare_ino_str): New function.
35614         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35615
35616 2007-09-28  Eric Blake  <ebb9@byu.net>
35617
35618         Enforce that AC_REPLACE_FUNCS files exist.
35619         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35620         override check for typos.
35621
35622         Fix test-closein on Solaris 10.
35623         * tests/test-closein.c (main): Don't assume stdin can be inherited
35624         closed on all systems.
35625         * tests/test-closein.sh: Likewise.
35626         Reported by Piotr Tarnowski.
35627
35628 2007-09-28  Jim Meyering  <jim@meyering.net>
35629
35630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35631
35632 2007-09-27  Jim Meyering  <jim@meyering.net>
35633
35634         canonicalize: Avoid a false-positive cycle failure.
35635         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35636         Sort.  Remove cycle-check.
35637         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35638         not cycle-check.h.
35639         (seen_triple): New function.
35640         (canonicalize_filename_mode): Use it instead of cycle-check.
35641         * tests/test-canonicalize.c: Add a test for this bug.
35642         * tests/test-canonicalize.sh: Set up and run the test.
35643
35644         New module, file-set, from coreutils.
35645         * modules/file-set: Define it.
35646         * lib/file-set.c, lib/file-set.h: Implement.
35647
35648         New module, hash-triple, from coreutils.
35649         * modules/hash-triple: Define it.
35650         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35651
35652 2007-09-25  Eric Blake  <ebb9@byu.net>
35653
35654         Fix strerror on Interix.
35655         * lib/string_.h (strerror): Declare replacement.
35656         * doc/functions/strerror.texi (strerror): Document the Interix
35657         shortcoming.
35658         * modules/string (Makefile.am): Support new hooks.
35659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35660         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35661         gl_FUNC_STRERROR_SEPARATE.
35662         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35663         * lib/strerror.c (rpl_strerror): Provide replacement.
35664         * modules/strerror (Depends-on): Add string.
35665         (configure.ac): Detect use of module.
35666         * tests/test-strerror.c: New file.
35667         * modules/strerror-tests: New test module.
35668         * modules/argp (Depends-on): Add strerror.
35669         * modules/error (Depends-on): Likewise.
35670         Reported by Martin Koeppe.
35671
35672 2007-09-24  Bruno Haible  <bruno@clisp.org>
35673
35674         * README: Update git instructions.
35675
35676 2007-09-24  Eric Blake  <ebb9@byu.net>
35677
35678         Revert fpending breakage from 2007-09-08.
35679         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35680         __fpending.c.
35681
35682 2007-09-24  Jim Meyering  <jim@meyering.net>
35683
35684         filenamecat.c: Add a test.
35685         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35686         showing how the function works when DIR is the empty string.
35687
35688 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35689
35690         * tests/test-canonicalize.sh: Turn on executable bit.
35691
35692 2007-09-19  Eric Blake  <ebb9@byu.net>
35693
35694         * README: Update CVS instructions.
35695
35696 2007-09-18  Bruno Haible  <bruno@clisp.org>
35697
35698         * modules/areadlink: New file.
35699         * lib/areadlink.h (areadlink): New declaration.
35700         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35701
35702 2007-09-17  Jim Meyering  <jim@meyering.net>
35703
35704         * lib/savewd.c (ESTALE) [!defined]: Define.
35705         Reported to be required on Interix by Martin Koeppe.
35706
35707 2007-09-17  Bruno Haible  <bruno@clisp.org>
35708
35709         * gnulib-tool (func_version): Use $version.
35710
35711 2007-09-16  Bruno Haible  <bruno@clisp.org>
35712
35713         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35714         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35715         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35716         Reported by Greg Schafer <gschafer@zip.com.au>.
35717
35718 2007-09-15  Bruno Haible  <bruno@clisp.org>
35719
35720         * gnulib-tool (sed): Try a little harder to make bash understand the
35721         alias.
35722         Reported by Bruce Korb <bruce.korb@gmail.com>.
35723
35724 2007-09-13  Eric Blake  <ebb9@byu.net>
35725
35726         * ChangeLog: Remove conflict markers.
35727
35728 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35729
35730         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35731         Reported by Bruno Haible <bruno@clisp.org>.
35732
35733 2007-09-12  Bruno Haible  <bruno@clisp.org>
35734
35735         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35736         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35737         is not defined.
35738
35739 2007-09-12  Eric Blake  <ebb9@byu.net>
35740
35741         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35742         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35743         Autoconf definition.
35744         * modules/euidaccess (Depends-on): Add extensions, for
35745         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35746         * modules/fnmatch (Depends-on): Likewise.
35747         * modules/getaddrinfo (Depends-on): Likewise.
35748         * modules/getdelim (Depends-on): Likewise.
35749         * modules/getline (Depends-on): Likewise.
35750         * modules/getsubopt (Depends-on): Likewise.
35751         * modules/gettext (Depends-on): Likewise.
35752         * modules/group-member (Depends-on): Likewise.
35753         * modules/mbchar (Depends-on): Likewise.
35754         * modules/memmem (Depends-on): Likewise.
35755         * modules/mempcpy (Depends-on): Likewise.
35756         * modules/memrchr (Depends-on): Likewise.
35757         * modules/pagealign_alloc (Depends-on): Likewise.
35758         * modules/readutmp (Depends-on): Likewise.
35759         * modules/stpcpy (Depends-on): Likewise.
35760         * modules/stpncpy (Depends-on): Likewise.
35761         * modules/strchrnul (Depends-on): Likewise.
35762         * modules/strndup (Depends-on): Likewise.
35763         * modules/strsep (Depends-on): Likewise.
35764         * modules/strverscmp (Depends-on): Likewise.
35765         * modules/vasprintf (Depends-on): Likewise.
35766         * modules/wcwidth (Depends-on): Likewise.
35767         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35768         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35769         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35772         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35773         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35774         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35775         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35776         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35778         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35781         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35782         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35783         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35784         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35786         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35787         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35788         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35789         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35790         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35791         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35793         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35794         so that lock.m4 can be used in gettext without extensions module.
35795
35796 2007-09-11  Bruno Haible  <bruno@clisp.org>
35797
35798         * m4/isc-posix.m4: Remove file.
35799         Suggested by Eric Blake.
35800
35801 2007-09-11  Eric Blake  <ebb9@byu.net>
35802
35803         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35804
35805 2007-09-10  Bruno Haible  <bruno@clisp.org>
35806
35807         * posix-modules: Fix typo in error message.
35808         Reported by Matt <mkraai@beckman.com>.
35809
35810 2007-09-09  Bruno Haible  <bruno@clisp.org>
35811
35812         * doc/functions/getdelim.texi: Update list of platforms lacking the
35813         function.
35814         * doc/functions/getline.texi: Likewise.
35815
35816 2007-09-09  Jim Meyering  <jim@meyering.net>
35817
35818         * lib/hash.c (hash_initialize): Detect calloc failure.
35819         Reported by Bruno Haible.
35820
35821 2007-09-09  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35824         malloc or realloc fails.
35825
35826 2007-09-09  Bruno Haible  <bruno@clisp.org>
35827
35828         * modules/getcwd (Depends-on): Add malloc-posix.
35829         * modules/glob (Depends-on): Likewise.
35830         * modules/putenv (Depends-on): Likewise.
35831         * modules/strdup (Depends-on): Likewise.
35832         * modules/getdelim (Depends-on): Add realloc-posix.
35833         * modules/read-file (Depends-on): Likewise.
35834
35835 2007-09-09  Bruno Haible  <bruno@clisp.org>
35836
35837         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35838         (gl_FUNC_MALLOC_POSIX): Require it.
35839         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35840         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35841         * modules/realloc (Files): Add m4/malloc.m4.
35842         * modules/calloc (Files): Likewise.
35843
35844 2007-09-09  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/malloc-posix: New file.
35847         * modules/malloc (Depends-on): Add malloc-posix.
35848         * lib/malloc.c: Include errno.h.
35849         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35850         and a POSIX-compatible malloc into a single function. Set ENOMEM
35851         when returning NULL.
35852         * m4/malloc.m4: New file.
35853         * doc/functions/malloc.texi: Mention the malloc-posix module.
35854         * lib/stdlib_.h (malloc): New declaration.
35855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35856         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35857         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35858         and HAVE_MALLOC_POSIX.
35859
35860 2007-09-09  Bruno Haible  <bruno@clisp.org>
35861
35862         * modules/realloc-posix: New file.
35863         * modules/realloc (Depends-on): Add realloc-posix.
35864         * lib/realloc.c: Include errno.h.
35865         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35866         and a POSIX-compatible realloc into a single function. Set ENOMEM
35867         when returning NULL.
35868         * m4/realloc.m4: New file.
35869         * doc/functions/realloc.texi: Mention the realloc-posix module.
35870         * lib/stdlib_.h (realloc): New declaration.
35871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35872         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35873         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35874         and HAVE_REALLOC_POSIX.
35875
35876 2007-09-09  Bruno Haible  <bruno@clisp.org>
35877
35878         * modules/calloc-posix: New file.
35879         * modules/calloc (Depends-on): Add calloc-posix.
35880         * lib/calloc.c: Include errno.h.
35881         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35882         and a POSIX-compatible calloc into a single function. Set ENOMEM
35883         when returning NULL.
35884         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35885         * doc/functions/calloc.texi: Mention the calloc-posix module.
35886         * lib/stdlib_.h (calloc): New declaration.
35887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35888         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35889         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35890         and HAVE_CALLOC_POSIX.
35891
35892 2007-09-09  Bruno Haible  <bruno@clisp.org>
35893
35894         Allow for modules to show an arbitrary notice.
35895         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35896         * gnulib-tool: New option --extract-notice.
35897         (func_usage): Document it.
35898         (sed_extract_prog): Update.
35899         (func_get_notice): New function.
35900         (func_modules_notice): New function.
35901         (func_import, func_create_testdir): Invoke it.
35902         Suggested by Jim Meyering.
35903
35904 2007-09-09  Bruno Haible  <bruno@clisp.org>
35905
35906         * gnulib-tool: New options --verbose, --quiet.
35907         (func_usage): Document them.
35908         (verbose): New variable.
35909         (func_execute_command): New function.
35910         (func_import): Don't show the module list and the file list if
35911         $verbose < 0.
35912         (func_create_testdir): Likewise. Use func_execute_command.
35913         (func_create_megatestdir): Use func_execute_command.
35914
35915 2007-09-08  Bruno Haible  <bruno@clisp.org>
35916
35917         * gnulib-tool (func_import): Prefer rsync over wget when available,
35918         for fetching the PO files.
35919
35920 2007-09-08  Bruno Haible  <bruno@clisp.org>
35921
35922         * posix-modules: New file. Portions copied from gnulib-tool.
35923         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35924
35925 2007-09-08  Jim Meyering  <jim@meyering.net>
35926
35927         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35928         * lib/fpending.h: Rename from __fpending.h.
35929         * lib/fpending.c: Rename from __fpending.c.
35930         Include "fpending.h", not "__fpending.h".
35931         * lib/__fpending.h, lib/__fpending.c: Remove files.
35932         * modules/fpending (Files): Reflect new file names.
35933         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35934
35935 2007-09-08  Bruno Haible  <bruno@clisp.org>
35936
35937         * m4/inttypes-h.m4: Remove stub file.
35938
35939 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35940
35941         * doc/headers/stdint.texi: Discuss #include_next issue.
35942
35943 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35946
35947 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35948
35949         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35950         in variable name.
35951
35952 2007-09-03  Jim Meyering  <jim@meyering.net>
35953
35954         New module: git-version-gen.
35955         * modules/git-version-gen: New file.
35956
35957         Import changes from coreutils for bootstrap script.
35958
35959         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35960
35961         bootstrap: uses rsync to download the .po files
35962         * build-aux/bootstrap (po_download_command_format): New global.
35963         (download_po_files): Use rsync.
35964         (update_po_files): Don't remove .po files after download,
35965         so future rsync runs can take advantage of the copies.
35966
35967         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35968
35969         Solve the unnecessary-.po-file-regeneration problem once and for all.
35970         * build-aux/bootstrap (download_po_files): New function, renamed from
35971         get_translations.  Now, downloads, but doesn't update LINGUAS.
35972         (update_po_files): New function.
35973
35974         bootstrap: Ignore more.
35975         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35976         uniwidth to e.g., lib/.gitignore.
35977         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35978
35979         * build-aux/bootstrap: New setting: vc_ignore.
35980         (insert_sorted_if_absent): Create $file if absent.
35981         Adapt to new, possibly empty, list: $vc_ignore.
35982
35983         bootstrap: generate more ignorable names
35984         * build-aux/bootstrap (slurp): When generating ignorable names,
35985         also map .sin to .sed, .gperf to .c, and .y to .c.
35986
35987 2007-09-03  Jim Meyering  <jim@meyering.net>
35988
35989         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35990         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35991
35992 2007-09-02  Bruno Haible  <bruno@clisp.org>
35993
35994         Fix mis-recognition of 'mcs' on QNX 6.
35995         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35996         output contains the string "Mono".
35997         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35998         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35999
36000 2007-09-01  Bruno Haible  <bruno@clisp.org>
36001
36002         Fix collision between uniwidth/* and linebreak modules.
36003         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36004         u32_width): Remove declarations.
36005         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36006         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36007         streq3, streq2, streq1, streq0): Remove functions.
36008         (STREQ): Remove macro.
36009         (is_cjk_encoding): Remove function.
36010         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36011         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36012         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36013         * NEWS: Document the change.
36014
36015 2007-09-01  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/streq.h: Add double-inclusion guard.
36018
36019 2007-09-01  Karl Berry  <karl@gnu.org>
36020
36021         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36022
36023 2007-08-28  Jim Meyering  <jim@meyering.net>
36024
36025         Rename mreadlink_with_size to areadlink_with_size.
36026         * NEWS: Document the change.
36027         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36028         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36029         * lib/mreadlink.h: Rename this to...
36030         * lib/areadlink.h: ...this.
36031         * modules/mreadlink-with-size: Rename this to...
36032         * modules/areadlink-with-size: ...this.
36033         * lib/canonicalize.c: Reflect the renaming.
36034         * modules/canonicalize: Likewise.
36035
36036 2007-08-26  Bruno Haible  <bruno@clisp.org>
36037
36038         * gnulib-tool (func_import): When deciding which files to remove,
36039         consider also dangling symbolic links.
36040         Reported by Eric Blake.
36041
36042 2007-08-26  Bruno Haible  <bruno@clisp.org>
36043
36044         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36045
36046 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36047
36048         * lib/readline.c: Don't include getline.h, the prototype is now
36049         found in stdio.h.
36050
36051 2007-08-23  Jim Meyering  <jim@meyering.net>
36052
36053         Getdelim touchup.
36054         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36055         around the funlockfile call, since funlockfile never sets errno.
36056         Don't set errno upon failed realloc.
36057
36058 2007-08-22  Eric Blake  <ebb9@byu.net>
36059
36060         Getline touchups.
36061         * lib/getdelim.c (getdelim): Revert regression that required *n to
36062         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36063         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36064         getdelim, rather than whether implementation is missing.
36065         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36066         * lib/stdio_.h (getline): Also declare if replacement is
36067         required.
36068         * doc/functions/getdelim.texi: New file.
36069         * doc/functions/getline.texi: Likewise.
36070         * doc/gnulib.texi (Function Substitutes): Add new files.
36071         Reported by Bruno Haible.
36072
36073 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36074
36075         * users.txt: Add Guile.
36076
36077 2007-08-22  Eric Blake  <ebb9@byu.net>
36078
36079         * tests/test-getdelim.c (main): Use remove, not unlink.
36080         * tests/test-getline.c (main): Likewise.
36081
36082         Move getline and getdelim into stdio.h, per POSIX 200x.
36083         * modules/getline (Files): Remove getline.h.
36084         (Depends-on): Add stdio.
36085         (configure.ac): Add module indicator.
36086         * modules/getdelim (Files): Remove getdelim.h.
36087         (Depends-on): Add stdio.
36088         (configure.ac): Add module indicator.
36089         * modules/stdio (Makefile.am): Work with new indicators.
36090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36091         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36092         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36093         * lib/getdelim.h: Delete.
36094         * lib/getline.h: Delete.
36095         * lib/stdio_.h (getdelim, getline): Declare.
36096         * modules/getdelim-tests: New module.
36097         * modules/getline-tests: Likewise.
36098         * tests/test-getdelim.c: New file.
36099         * tests/test-getline.c: Likewise.
36100         * NEWS: Document the change.
36101         * lib/getline.c: Update choice of header.
36102         * lib/csharpcomp.c: Likewise.
36103         * lib/getpass.c: Likewise.
36104         * lib/javacomp.c: Likewise.
36105         * lib/javaversion.c: Likewise.
36106         * lib/yesno.c: Likewise.
36107         * lib/getdelim.c: Likewise.
36108         (getdelim): Set errno on failure, and avoid memory leak.
36109
36110 2007-08-19  Bruno Haible  <bruno@clisp.org>
36111
36112         * modules/closein (Depends-on): Add freadahead.
36113         * lib/closein.c: Include freadahead.h.
36114         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36115         is zero.
36116
36117 2007-08-19  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/freadahead-tests: New file.
36120         * tests/test-freadahead.sh: New file.
36121         * tests/test-freadahead.c: New file.
36122
36123         * modules/freadahead: New file.
36124         * lib/freadahead.h: New file.
36125         * lib/freadahead.c: New file.
36126         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36127         fbufmode, fpurge, freadable, fwritable.
36128
36129 2007-08-19  Eric Blake  <ebb9@byu.net>
36130
36131         Test yesno in combination with closein.
36132         * lib/yesno.c (yesno): Document use of stdin.
36133         * modules/yesno-tests (Files): New module.
36134         * tests/test-yesno.c (main): New file.
36135         * tests/test-yesno.sh: Likewise.
36136
36137 2007-08-19  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36140         * lib/fseeko.c (rpl_fseeko): Likewise.
36141         * lib/fseterr.c (fseterr): Likewise.
36142
36143 2007-08-19  Bruno Haible  <bruno@clisp.org>
36144
36145         * tests/test-lseek.c (main): Disable a test for BeOS.
36146         * doc/functions/lseek.texi: Document the BeOS bug.
36147
36148 2007-08-19  Bruno Haible  <bruno@clisp.org>
36149             Eric Blake  <ebb9@byu.net>
36150
36151         * lib/lseek.c: Include <sys/stat.h>.
36152         (rpl_lseek): Add workaround code also for Unix platforms.
36153         Needed for BeOS.
36154         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36155         * doc/functions/lseek.texi: Document BeOS definiency.
36156
36157 2007-08-18  Bruno Haible  <bruno@clisp.org>
36158
36159         * modules/fstrcmp-tests: New file.
36160         * tests/test-fstrcmp.c: New file.
36161
36162 2007-08-18  Bruno Haible  <bruno@clisp.org>
36163
36164         * modules/fstrcmp: New file, from GNU gettext with modifications.
36165         * lib/fstrcmp.h: New file, from GNU gettext.
36166         * lib/fstrcmp.c: New file, from GNU gettext.
36167         * MODULES.html.sh (String handling): Add fstrcmp.
36168
36169 2007-08-18  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36172         'bool'.
36173         (diag, compareseq): Remove const from the ctxt argument.
36174         (USE_HEURISTIC): Undefine at the end.
36175
36176 2007-08-18  Jim Meyering  <jim@meyering.net>
36177
36178         New file: lib/idcache.h
36179         * NEWS: Mention the addition.
36180         * modules/idcache (Files): Add lib/idcache.h
36181         * lib/idcache.c: Include "idcache.h".
36182         Don't include <sys/types.h>.
36183         Add a FIXME comment.
36184         Move file-scoped "static" declarations to the top.
36185         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36186
36187 2007-08-17  Bruno Haible  <bruno@clisp.org>
36188         and Paul Eggert  <eggert@cs.ucla.edu>
36189
36190         * MODULES.html.sh: Add diffseq.
36191         * modules/diffseq: New file.
36192         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36193         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36194
36195 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36196
36197         Import changes from coreutils for bootstrap script.
36198
36199         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36200
36201         * build-aux/bootstrap (slurp): Work even in environments where
36202         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36203         current code does not slurp files whose names start with ".", and
36204         this looks like it might be a troublesome area.
36205
36206         2007-07-11  Jim Meyering  <jim@meyering.net>
36207
36208         If there's a GPL vN copyright comment, require that N == 3.
36209
36210         2007-07-08  Jim Meyering  <jim@meyering.net>
36211
36212         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36213         * build-aux/bootstrap (mam_template): Move definition out of loop.
36214
36215         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36216
36217         * build-aux/bootstrap (symlink_to_dir): Rename function from
36218         symlink_to_gnulib.  Add a directory parameter.  Update all
36219         callers.
36220         (cp_mark_as_generated): Also check for -- and link to -- files in
36221         gl/.
36222
36223         2007-07-08  Jim Meyering  <jim@meyering.net>
36224
36225         Adapt to deeper hierarchy in gnulib.
36226         * build-aux/bootstrap (symlink_to_dir): If the destination
36227         directory doesn't exist, create it. This is required at least for
36228         "lib/uniwidth/cjk.h".
36229
36230         2007-05-15  Jim Meyering  <jim@meyering.net>
36231
36232         * build-aux/bootstrap: Now that generated Makefile.am files
36233         are no longer under version control, they must be created at
36234         bootstrap time.
36235
36236 2007-08-14  Ben Pfaff  <blp@gnu.org>
36237
36238         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36239
36240 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36241
36242         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36243         given the changes below.
36244         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36245         even on hosts that have padding bits beyond the supported 64.
36246
36247 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36248
36249         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36250         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36251         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36252         depends on it.
36253         (xstrtol_error): Remove.
36254         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36255         but with a different signature.
36256         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36257         * lib/xstrtol-error.c: Include exitfail.h.
36258         (xstrtol_fatal): New function, with a different signature from the
36259         old xstrtol_error, so that the caller need not worry about passing
36260         in an exit status, or about storage management of the option argument.
36261         (xstrtol_error): Now a static function.  Redo signature to
36262         implement xstrtol_fatal.  Output the correct number of hyphens in
36263         front of the option so that the caller need not worry about
36264         storage management.
36265         (N_): New macro.
36266         (_): Remove; not used now.
36267         * modules/xstrtol: Depend on getopt.
36268         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36269         of old STRTOL_FATAL_ERROR macro.
36270         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36271         of test program.
36272         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36273         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36274
36275 2007-08-08  Eric Blake  <ebb9@byu.net>
36276
36277         * lib/xstrtol-error.c: Add missing include.
36278
36279         Move xstrtol messages into gnulib domain, when --pobase is used.
36280         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36281         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36282         * modules/xstrtol (Files): Distribute new file.
36283         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36284         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36285         * tests/test-xstrtol.c: ...into new file.
36286         * tests/test-xstrtoul.c: Also test xstrtoul.
36287         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36288         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36289         * tests/test-xstrtol.sh: Drive the tests.
36290         * tests/test-xstrtoimax.sh: Likewise.
36291         * tests/test-xstrtoumax.sh: Likewise.
36292         * modules/xstrtol-tests: New module.
36293         * modules/xstrtoimax-tests: Likewise.
36294         * modules/xstrtoumax-tests: Likewise.
36295
36296 2007-08-08  Jim Meyering  <jim@meyering.net>
36297
36298         New function: mfile_name_concat.
36299         * lib/filenamecat.c (mfile_name_concat): New function, just like
36300         file_name_concat, but return NULL upon failure rather than exiting
36301         with a diagnostic.
36302         * lib/filenamecat.h: Declare it.
36303
36304 2007-08-07  Bruno Haible  <bruno@clisp.org>
36305
36306         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36307         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36308         warning from gcc.
36309         Reported by Eric Blake.
36310
36311 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36312
36313         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36314         * modules/crypto/arcfour (License): Likewise.
36315         * modules/crypto/des-tests (License): Likewise.
36316         * modules/crypto/gc-arctwo-tests (License): Likewise.
36317         * modules/crypto/gc-des-tests (License): Likewise.
36318         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36319         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36320         * modules/crypto/gc-md2-tests (License): Likewise.
36321         * modules/crypto/gc-md4-tests (License): Likewise.
36322         * modules/crypto/gc-md5-tests (License): Likewise.
36323         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36324         * modules/crypto/gc-rijndael-tests (License): Likewise.
36325         * modules/crypto/gc-sha1-tests (License): Likewise.
36326         * modules/crypto/gc-tests (License): Likewise.
36327         * modules/crypto/hmac-md5 (License): Likewise.
36328         * modules/crypto/hmac-sha1 (License): Likewise.
36329         * modules/crypto/md2-tests (License): Likewise.
36330         * modules/crypto/md4-tests (License): Likewise.
36331         * modules/crypto/md5 (License): Likewise.
36332         * modules/crypto/rijndael (License): Likewise.
36333         * modules/crypto/sha1 (License): Likewise.
36334         * modules/memxor (License): Likewise.
36335
36336 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36337         and Bruno Haible  <bruno@clisp.org>
36338
36339         * NEWS: Describe interface changes to human, xstrtol.
36340         * lib/human.h: Include <xstrtol.h>.
36341         (human_options): Return enum strtol_error, not int.  Remove
36342         bool arg; take int * instead.
36343         * lib/human.c: Don't include "gettext.h".
36344         (_): Remove; no longer used.
36345         Don't include <xstrtol.h>, since human.h does it.
36346         (human_options): Adjust to abovementioned interface changes.
36347         Do not report error to stderr; that's now the caller's
36348         responsibility.
36349         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36350         interface change.
36351         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36352         Str, Argument_type_string.  All uses changed.  Put " argument"
36353         in diagnostics to make them clearer.  Change wording of suffix
36354         message for clarity.
36355         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36356         Argument_type_string.
36357         (STRTOL_FATAL_WARN): Remove; no longer used.
36358         * modules/human (Depends-on): Remove gettext-h.
36359
36360 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36361
36362         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36363
36364 2007-07-31  Bruno Haible  <bruno@clisp.org>
36365
36366         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36367         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36368         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36369
36370 2007-07-31  Bruno Haible  <bruno@clisp.org>
36371
36372         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36373         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36374
36375 2007-07-30  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36378         * modules/c-ctype (License): Likewise.
36379         * modules/c-strcase (License): Likewise.
36380         * modules/check-version (License): Likewise.
36381         * modules/iconv (License): Likewise.
36382         * modules/iconv_open (License): Likewise.
36383         * modules/read-file (License): Likewise.
36384         * modules/striconv (License): Likewise.
36385         * modules/strverscmp (License): Likewise.
36386         * modules/vasprintf (License): Likewise.
36387         * modules/crypto/des (License): Likewise.
36388         * modules/crypto/gc (License): Likewise.
36389         * modules/crypto/gc-arcfour (License): Likewise.
36390         * modules/crypto/gc-arctwo (License): Likewise.
36391         * modules/crypto/gc-des (License): Likewise.
36392         * modules/crypto/gc-hmac-md5 (License): Likewise.
36393         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36394         * modules/crypto/gc-md2 (License): Likewise.
36395         * modules/crypto/gc-md4 (License): Likewise.
36396         * modules/crypto/gc-md5 (License): Likewise.
36397         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36398         * modules/crypto/gc-random (License): Likewise.
36399         * modules/crypto/gc-rijndael (License): Likewise.
36400         * modules/crypto/gc-sha1 (License): Likewise.
36401         * modules/crypto/md2 (License): Likewise.
36402         * modules/crypto/md4 (License): Likewise.
36403
36404 2007-07-30  Jim Meyering  <jim@meyering.net>
36405
36406         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36407         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36408         it has valid stat data.  This bug would cause du not to count the
36409         sizes of inaccessible directories.
36410         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36411         in <http://bugzilla.redhat.com/250077>.
36412
36413 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36414             Bruno Haible  <bruno@clisp.org>
36415
36416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36417         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36418         #include_next, gives a diagnostic about it, but reports no error in
36419         the exit code.
36420         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36421
36422 2007-07-24  Ben Pfaff  <blp@gnu.org>
36423
36424         Improve name: "count-one-bits" is better than "popcount".
36425         * MODULES.html.sh: Update name.
36426         * lib/popcount.h: Renamed lib/count-one-bits.h.
36427         (popcount): Renamed count_one_bits.
36428         (popcountl): Renamed count_one_bits_l.
36429         (popcountll): Renamed count_one_bits_ll.
36430         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36431         * modules/popcount: Renamed module/count-one-bits.
36432         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36433         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36434
36435 2007-07-23  Ben Pfaff  <blp@gnu.org>
36436
36437         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36438         better code generation, and add U to large constants to avoid
36439         warnings, in non-GCC case.
36440         Suggested by Bruno Haible.
36441
36442 2007-07-23  Ben Pfaff  <blp@gnu.org>
36443
36444         * lib/popcount.h: Use verify_true instead of if...abort.
36445         * modules/popcount: Depend on verify module.
36446         Suggested by Jim Meyering.
36447
36448 2007-07-23  Bruno Haible  <bruno@clisp.org>
36449
36450         * gnulib-tool (func_import): Create a .cvsignore file also when the
36451         directory is not yet in CVS but the toplevel directory is. When
36452         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36453         Reported by Karl Berry.
36454
36455 2007-07-22  Ben Pfaff  <blp@gnu.org>
36456
36457         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36458         case.
36459         Suggested by Eric Blake.
36460
36461 2007-07-22  Ben Pfaff  <blp@gnu.org>
36462
36463         New module: popcount.
36464         * MODULES.html.sh: Add popcount.
36465         * modules/popcount: New file.
36466         * modules/popcount-tests: New file.
36467         * tests/test-popcount.c: New file.
36468         * lib/popcount.h: New file.
36469         * m4/popcount.m4: New file.
36470
36471 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36472
36473         * build-aux/announce-gen: Update to GPLv3.
36474
36475         * build-aux/config.guess: Update from config.
36476
36477 2007-07-21  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36480         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36481
36482 2007-07-20  Jim Meyering  <jim@meyering.net>
36483
36484         * check-module: Diagnose a self-dependency.
36485
36486 2007-07-19  Bruno Haible  <bruno@clisp.org>
36487
36488         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36489         empty.
36490         Reported by Eric Blake.
36491
36492 2007-07-18  Bruno Haible  <bruno@clisp.org>
36493
36494         * gnulib-tool: New options --po-base, --po-domain.
36495         (func_usage): Document them.
36496         (pobase, po_domain): New variables.
36497         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36498         DEFAULT_TEXT_DOMAIN.
36499         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36500         (func_import): Consider pobase and po_domain. Create a po/ directory.
36501         (func_create_testdir): Set pobase and po_domain to empty.
36502         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36503         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36504
36505 2007-07-18  Bruno Haible  <bruno@clisp.org>
36506
36507         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36508         EXTRA_DIST augmentation for files in build-aux/.
36509
36510 2007-07-16  Bruno Haible  <bruno@clisp.org>
36511
36512         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36513         * modules/getdelim (License): Likewise.
36514
36515 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36516
36517         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36518         * modules/d-type (License): Likewise.
36519         * modules/extensions (License): Likewise.
36520         * modules/fnmatch (License): Likewise.
36521         * modules/fseeko (License): Likewise.
36522         * modules/getaddrinfo (License): Likewise.
36523         * modules/getline (License): Likewise.
36524         * modules/getlogin_r (License): Likewise.
36525         * modules/getpass (License): Likewise.
36526         * modules/gettimeofday (License): Likewise.
36527         * modules/glob (License): Likewise.
36528         * modules/inet_ntop (License): Likewise.
36529         * modules/malloc (License): Likewise.
36530         * modules/malloca (License): Likewise.
36531         * modules/memmem (License): Likewise.
36532         * modules/mempcpy (License): Likewise.
36533         * modules/memset (License): Likewise.
36534         * modules/minmax (License): Likewise.
36535         * modules/mktime (License): Likewise.
36536         * modules/netinet_in (License): Likewise.
36537         * modules/pathmax (License): Likewise.
36538         * modules/poll (License): Likewise.
36539         * modules/regex (License): Likewise.
36540         * modules/snprintf (License): Likewise.
36541         * modules/stdbool (License): Likewise.
36542         * modules/stdint (License): Likewise.
36543         * modules/stdio (License): Likewise.
36544         * modules/strcase (License): Likewise.
36545         * modules/strcasestr (License): Likewise.
36546         * modules/strdup (License): Likewise.
36547         * modules/string (License): Likewise.
36548         * modules/strndup (License): Likewise.
36549         * modules/strnlen (License): Likewise.
36550         * modules/strpbrk (License): Likewise.
36551         * modules/strptime (License): Likewise.
36552         * modules/strsep (License): Likewise.
36553         * modules/sys_select (License): Likewise.
36554         * modules/sys_socket (License): Likewise.
36555         * modules/sys_stat (License): Likewise.
36556         * modules/sys_time (License): Likewise.
36557         * modules/time (License): Likewise.
36558         * modules/time_r (License): Likewise.
36559         * modules/timegm (License): Likewise.
36560         * modules/unistd (License): Likewise.
36561         * modules/vsnprintf (License): Likewise.
36562         * modules/wctype (License): Likewise.
36563
36564 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36565
36566         * modules/argz (License): LGPLv2+.
36567
36568 2007-07-15  Karl Berry  <karl@gnu.org>
36569
36570         * doc/gnulib.texi: revise node structure per new fdl.texi.
36571
36572 2007-07-14  Bruno Haible  <bruno@clisp.org>
36573
36574         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36575         the output file.
36576         * lib/uniname/uninames.h: Regenerated.
36577
36578 2007-07-14  Karl Berry  <karl@gnu.org>
36579
36580         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36581         omitting sectioning and index commands.
36582
36583 2007-07-13  Bruno Haible  <bruno@clisp.org>
36584
36585         New gnulib-tool option --more-symlinks.
36586         * gnulib-tool (func_usage): Document --more-symlinks.
36587         (do_copyrights): New variable.
36588         Recognize option --more-symlinks.
36589         (func_import): Don't add a copyright notice transform to
36590         sed_transform_lib_file if do_copyrights is empty.
36591
36592 2007-07-13  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/vasnprintf.c (decimal_point_char): Define also if
36595         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36596         && !NEED_PRINTF_DIRECTIVE_A.
36597         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36598         Gary V. Vaughan <gary@gnu.org>.
36599
36600 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36601
36602         * lib/inttypes_.h: Undo previous change, since it was fixed
36603         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36604
36605 2007-07-13  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36608         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36609
36610 2007-07-13  Jim Meyering  <jim@meyering.net>
36611
36612         df: Don't fail for Tru64's "file-on-file mount".
36613         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36614         so we fall through and use statfs instead.  Details here:
36615         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36616         Reported by Albert Chin.
36617
36618 2007-07-13  Bruno Haible  <bruno@clisp.org>
36619
36620         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36621         * modules/configmake (License): Likewise.
36622         * modules/gettext (License): Likewise.
36623         * modules/gettext-h (License): Likewise.
36624         * modules/include_next (License): Likewise.
36625         * modules/link-warning (License): Likewise.
36626         * modules/localcharset (License): Likewise.
36627         * modules/localename (License): Likewise.
36628         * modules/lock (License): Likewise.
36629         * modules/relocatable-lib-lgpl (License): Likewise.
36630         * modules/size_max (License): Likewise.
36631         * modules/vasnprintf (License): Likewise.
36632         * modules/wchar (License): Likewise.
36633         * modules/xsize (License): Likewise.
36634
36635 2007-07-13  Bruno Haible  <bruno@clisp.org>
36636
36637         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36638         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36639
36640 2007-07-12  Bruno Haible  <bruno@clisp.org>
36641
36642         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36643         in the modules files.
36644
36645 2007-07-11  Karl Berry  <karl@gnu.org>
36646
36647         * MODULES.html.sh (func_module): use
36648          sed -e '\|^'"${includefile}"'$|d'
36649          instead of /.../d, to avoid errors on $includefile's containing /.
36650
36651 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36652
36653         * gnulib-tool (func_import): Avoid duplication of --avoid
36654         statements
36655         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36656         names to `_' in variable names.
36657
36658 2007-07-10  Eric Blake  <ebb9@byu.net>
36659
36660         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36661         * NEWS: Document this change.
36662
36663 2007-07-08  Bruno Haible  <bruno@clisp.org>
36664
36665         Update to Unicode 5.0.
36666         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36667         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36668         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36669         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36670         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36671         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36672         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36673         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36674         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36675         U+10A3F, U+1D242..U+1D244.
36676         (nonspacing_table_ind): Update.
36677         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36678         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36679
36680 2007-07-08  Bruno Haible  <bruno@clisp.org>
36681
36682         Update to Unicode 5.0.
36683         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36684         code transform. Extend the name index field of unicode_name_to_code and
36685         unicode_code_to_name from 16 to 24 bits.
36686         * lib/uniname/uniname.c (unicode_character_name,
36687         unicode_name_character): Add the range 0x12xxx to the code transform.
36688         * lib/uniname/uninames.h: Regenerated.
36689         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36690
36691 2007-07-07  Bruno Haible  <bruno@clisp.org>
36692
36693         * modules/wcwidth-tests: New file.
36694         * tests/test-wcwidth.c: New file.
36695
36696         Work around MacOS X wcwidth() bug.
36697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36698         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36699         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36700         original wcwidth in non-UTF-8 locales.
36701         * modules/wcwidth (Depends-on): Add localcharset, streq,
36702         uniwidth/width.
36703         * doc/functions/wcwidth.texi: Update.
36704
36705 2007-07-07  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36708         (wcwidth): New declaration.
36709         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36710         macros.
36711         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36712         here. Prepare for creating <wchar.h> unconditionally.
36713         * modules/wchar (Depends-on): Add link-warning.
36714         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36715         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36716         * lib/wcwidth.h: Remove file.
36717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36718         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36719         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36720         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36721         (Include): Replace wcwidth.h with <wchar.h>.
36722         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36723         * lib/mbchar.h: Don't include wcwidth.h.
36724         * lib/mbswidth.c: Likewise.
36725         * NEWS: Mention the change.
36726
36727 2007-07-07  Bruno Haible  <bruno@clisp.org>
36728
36729         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36730         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36731         definition with an external declaration.
36732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36733         defined as a function. Remove AC_C_INLINE requirement.
36734         * modules/wcwidth (Files): Add lib/wcwidth.c.
36735         (Makefile.am): Remove redundant statement.
36736
36737 2007-07-07  Bruno Haible  <bruno@clisp.org>
36738
36739         * MODULES.html.sh (Unicode string functions): Add the new modules.
36740
36741         * tests/uniwidth/test-u32-strwidth.c: New file.
36742         * modules/uniwidth/u32-strwidth-tests: New file.
36743
36744         * lib/uniwidth/u32-strwidth.c: New file.
36745         * modules/uniwidth/u32-strwidth: New file.
36746
36747         * tests/uniwidth/test-u16-strwidth.c: New file.
36748         * modules/uniwidth/u16-strwidth-tests: New file.
36749
36750         * lib/uniwidth/u16-strwidth.c: New file.
36751         * modules/uniwidth/u16-strwidth: New file.
36752
36753         * tests/uniwidth/test-u8-strwidth.c: New file.
36754         * modules/uniwidth/u8-strwidth-tests: New file.
36755
36756         * lib/uniwidth/u8-strwidth.c: New file.
36757         * modules/uniwidth/u8-strwidth: New file.
36758
36759         * tests/uniwidth/test-u32-width.c: New file.
36760         * modules/uniwidth/u32-width-tests: New file.
36761
36762         * lib/uniwidth/u32-width.c: New file.
36763         * modules/uniwidth/u32-width: New file.
36764
36765         * tests/uniwidth/test-u16-width.c: New file.
36766         * modules/uniwidth/u16-width-tests: New file.
36767
36768         * lib/uniwidth/u16-width.c: New file.
36769         * modules/uniwidth/u16-width: New file.
36770
36771         * tests/uniwidth/test-u8-width.c: New file.
36772         * modules/uniwidth/u8-width-tests: New file.
36773
36774         * lib/uniwidth/u8-width.c: New file.
36775         * modules/uniwidth/u8-width: New file.
36776
36777         * tests/uniwidth/test-uc_width.c: New file.
36778         * modules/uniwidth/width-tests: New file.
36779
36780         * lib/uniwidth/width.c: New file, from GNU libiconv.
36781         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36782         * modules/uniwidth/width: New file.
36783
36784         * lib/uniwidth.h: New file, from GNU libiconv.
36785         * modules/uniwidth/base: New file.
36786
36787 2007-07-07  Bruno Haible  <bruno@clisp.org>
36788
36789         * lib/uniname.h: New file, from GNU gettext.
36790         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36791         * lib/uniname/uninames.h: New file, from GNU gettext.
36792         * lib/uniname/uniname.c: New file, from GNU gettext.
36793         * tests/uniname/test-uninames.sh: New file.
36794         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36795         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36796         * modules/uniname/base: New file.
36797         * modules/uniname/uniname: New file.
36798         * modules/uniname/uniname-tests: New file.
36799         * MODULES.html.sh (Unicode string functions): Add the new modules.
36800
36801 2007-07-06  Bruno Haible  <bruno@clisp.org>
36802
36803         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36804
36805 2007-07-06  Bruno Haible  <bruno@clisp.org>
36806
36807         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36808         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36809         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36810         include <sys/time.h>.
36811         Reported by Eric Blake.
36812
36813 2007-07-06  Eric Blake  <ebb9@byu.net>
36814
36815         Fix testing canonicalize on cygwin.
36816         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36817         Revert patch from 2007-06-19.
36818         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36819         canonicalize module is also in use.
36820         * tests/test-canonicalize.c: New file.
36821         * tests/test-canonicalize.sh: Likewise.
36822         * modules/canonicalize-tests: Likewise.
36823
36824 2007-07-06  Jim Meyering  <jim@meyering.net>
36825
36826         * lib/getugroups.c (getugroups): Detect getgrent failure.
36827         Adjust comment to reflect reality: this function may return -1.
36828
36829 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36830
36831         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36832         the new TP address.
36833         (usage): Fix typo
36834         (gnulib_mk): New variable.
36835
36836 2007-07-05  Jim Meyering  <jim@meyering.net>
36837
36838         Don't let endgrent clobber errno, no matter how improbable.
36839         * lib/getugroups.c (getugroups): Save and restore errno around
36840         endgrent call.
36841
36842         Close the group DB even when failing with 2^31 or more members.
36843         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36844
36845 2007-07-04  Jim Meyering  <jim@meyering.net>
36846
36847         * lib/getugroups.h: New file.
36848         * lib/getugroups.c: Include "getugroups.h".
36849         Remove uses of "register" keyword.
36850         Move local variable, "cp", down into scope where used.
36851         Give "username" parameter the "const" attribute.
36852         * modules/getugroups (Files): Add lib/getugroups.h
36853
36854 2007-07-04  Karl Berry  <karl@gnu.org>
36855
36856         * MODULES.html.sh (func_all_modules): Complete rename of
36857         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36858
36859 2007-07-02  Bruno Haible  <bruno@clisp.org>
36860
36861         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36862         mode, when inttypes.h comes from gnulib.
36863         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36864
36865 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36866
36867         * NEWS: Mention lgpl module name change.
36868
36869         * modules/lgpl-2.1: Renamed from lgpl.
36870
36871         * NEWS: Mention gpl module name change.
36872
36873         * modules/gpl-3.0: New file, based on gpl-2.0.
36874
36875         * modules/gpl-2.0: Renamed from gpl.
36876
36877         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36878         doc/gpl-2.0.texi.
36879
36880 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36881
36882         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36883         #define __STDC_LIMIT_MACROS temporarily while including
36884         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36885         Problem reported by Joel E. Denny in
36886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36887
36888 2007-07-01  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/unistdio.h: New file.
36891         * lib/unistdio/u-asnprintf.h: New file.
36892         * lib/unistdio/u-asprintf.h: New file.
36893         * lib/unistdio/u-printf-args.c: New file.
36894         * lib/unistdio/u-printf-args.h: New file.
36895         * lib/unistdio/u-printf-parse.h: New file.
36896         * lib/unistdio/u-snprintf.h: New file.
36897         * lib/unistdio/u-sprintf.h: New file.
36898         * lib/unistdio/u-vasprintf.h: New file.
36899         * lib/unistdio/u-vsnprintf.h: New file.
36900         * lib/unistdio/u-vsprintf.h: New file.
36901         * lib/unistdio/ulc-asnprintf.c: New file.
36902         * lib/unistdio/ulc-asprintf.c: New file.
36903         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36904         * lib/unistdio/ulc-printf-parse.c: New file.
36905         * lib/unistdio/ulc-snprintf.c: New file.
36906         * lib/unistdio/ulc-sprintf.c: New file.
36907         * lib/unistdio/ulc-vasnprintf.c: New file.
36908         * lib/unistdio/ulc-vasprintf.c: New file.
36909         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36910         * lib/unistdio/ulc-vsnprintf.c: New file.
36911         * lib/unistdio/ulc-vsprintf.c: New file.
36912         * lib/unistdio/u8-asnprintf.c: New file.
36913         * lib/unistdio/u8-asprintf.c: New file.
36914         * lib/unistdio/u8-printf-parse.c: New file.
36915         * lib/unistdio/u8-snprintf.c: New file.
36916         * lib/unistdio/u8-sprintf.c: New file.
36917         * lib/unistdio/u8-vasnprintf.c: New file.
36918         * lib/unistdio/u8-vasprintf.c: New file.
36919         * lib/unistdio/u8-vsnprintf.c: New file.
36920         * lib/unistdio/u8-vsprintf.c: New file.
36921         * lib/unistdio/u8-u8-asnprintf.c: New file.
36922         * lib/unistdio/u8-u8-asprintf.c: New file.
36923         * lib/unistdio/u8-u8-snprintf.c: New file.
36924         * lib/unistdio/u8-u8-sprintf.c: New file.
36925         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36926         * lib/unistdio/u8-u8-vasprintf.c: New file.
36927         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36928         * lib/unistdio/u8-u8-vsprintf.c: New file.
36929         * lib/unistdio/u16-asnprintf.c: New file.
36930         * lib/unistdio/u16-asprintf.c: New file.
36931         * lib/unistdio/u16-printf-parse.c: New file.
36932         * lib/unistdio/u16-snprintf.c: New file.
36933         * lib/unistdio/u16-sprintf.c: New file.
36934         * lib/unistdio/u16-vasnprintf.c: New file.
36935         * lib/unistdio/u16-vasprintf.c: New file.
36936         * lib/unistdio/u16-vsnprintf.c: New file.
36937         * lib/unistdio/u16-vsprintf.c: New file.
36938         * lib/unistdio/u16-u16-asnprintf.c: New file.
36939         * lib/unistdio/u16-u16-asprintf.c: New file.
36940         * lib/unistdio/u16-u16-snprintf.c: New file.
36941         * lib/unistdio/u16-u16-sprintf.c: New file.
36942         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36943         * lib/unistdio/u16-u16-vasprintf.c: New file.
36944         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36945         * lib/unistdio/u16-u16-vsprintf.c: New file.
36946         * lib/unistdio/u32-asnprintf.c: New file.
36947         * lib/unistdio/u32-asprintf.c: New file.
36948         * lib/unistdio/u32-printf-parse.c: New file.
36949         * lib/unistdio/u32-snprintf.c: New file.
36950         * lib/unistdio/u32-sprintf.c: New file.
36951         * lib/unistdio/u32-vasnprintf.c: New file.
36952         * lib/unistdio/u32-vasprintf.c: New file.
36953         * lib/unistdio/u32-vsnprintf.c: New file.
36954         * lib/unistdio/u32-vsprintf.c: New file.
36955         * lib/unistdio/u32-u32-asnprintf.c: New file.
36956         * lib/unistdio/u32-u32-asprintf.c: New file.
36957         * lib/unistdio/u32-u32-snprintf.c: New file.
36958         * lib/unistdio/u32-u32-sprintf.c: New file.
36959         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36960         * lib/unistdio/u32-u32-vasprintf.c: New file.
36961         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36962         * lib/unistdio/u32-u32-vsprintf.c: New file.
36963         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36964         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36965         * tests/unistdio/test-ulc-printf1.h: New file.
36966         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36967         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36968         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36969         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36970         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36971         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36972         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36973         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36974         * tests/unistdio/test-u8-asnprintf1.c: New file.
36975         * tests/unistdio/test-u8-asnprintf1.h: New file.
36976         * tests/unistdio/test-u8-printf1.h: New file.
36977         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36978         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36979         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36980         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36981         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36982         * tests/unistdio/test-u8-vasprintf1.c: New file.
36983         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36984         * tests/unistdio/test-u8-vsprintf1.c: New file.
36985         * tests/unistdio/test-u16-asnprintf1.c: New file.
36986         * tests/unistdio/test-u16-asnprintf1.h: New file.
36987         * tests/unistdio/test-u16-printf1.h: New file.
36988         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36989         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36990         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36991         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36992         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36993         * tests/unistdio/test-u16-vasprintf1.c: New file.
36994         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36995         * tests/unistdio/test-u16-vsprintf1.c: New file.
36996         * tests/unistdio/test-u32-asnprintf1.c: New file.
36997         * tests/unistdio/test-u32-asnprintf1.h: New file.
36998         * tests/unistdio/test-u32-printf1.h: New file.
36999         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37000         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37001         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37002         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37003         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37004         * tests/unistdio/test-u32-vasprintf1.c: New file.
37005         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37006         * tests/unistdio/test-u32-vsprintf1.c: New file.
37007         * modules/unistdio/base: New file.
37008         * modules/unistdio/u-printf-args: New file.
37009         * modules/unistdio/ulc-asnprintf: New file.
37010         * modules/unistdio/ulc-asprintf: New file.
37011         * modules/unistdio/ulc-fprintf: New file.
37012         * modules/unistdio/ulc-printf-parse: New file.
37013         * modules/unistdio/ulc-snprintf: New file.
37014         * modules/unistdio/ulc-sprintf: New file.
37015         * modules/unistdio/ulc-vasnprintf: New file.
37016         * modules/unistdio/ulc-vasprintf: New file.
37017         * modules/unistdio/ulc-vfprintf: New file.
37018         * modules/unistdio/ulc-vsnprintf: New file.
37019         * modules/unistdio/ulc-vsprintf: New file.
37020         * modules/unistdio/u8-asnprintf: New file.
37021         * modules/unistdio/u8-asprintf: New file.
37022         * modules/unistdio/u8-printf-parse: New file.
37023         * modules/unistdio/u8-snprintf: New file.
37024         * modules/unistdio/u8-sprintf: New file.
37025         * modules/unistdio/u8-vasnprintf: New file.
37026         * modules/unistdio/u8-vasprintf: New file.
37027         * modules/unistdio/u8-vsnprintf: New file.
37028         * modules/unistdio/u8-vsprintf: New file.
37029         * modules/unistdio/u8-u8-asnprintf: New file.
37030         * modules/unistdio/u8-u8-asprintf: New file.
37031         * modules/unistdio/u8-u8-snprintf: New file.
37032         * modules/unistdio/u8-u8-sprintf: New file.
37033         * modules/unistdio/u8-u8-vasnprintf: New file.
37034         * modules/unistdio/u8-u8-vasprintf: New file.
37035         * modules/unistdio/u8-u8-vsnprintf: New file.
37036         * modules/unistdio/u8-u8-vsprintf: New file.
37037         * modules/unistdio/u16-asnprintf: New file.
37038         * modules/unistdio/u16-asprintf: New file.
37039         * modules/unistdio/u16-printf-parse: New file.
37040         * modules/unistdio/u16-snprintf: New file.
37041         * modules/unistdio/u16-sprintf: New file.
37042         * modules/unistdio/u16-vasnprintf: New file.
37043         * modules/unistdio/u16-vasprintf: New file.
37044         * modules/unistdio/u16-vsnprintf: New file.
37045         * modules/unistdio/u16-vsprintf: New file.
37046         * modules/unistdio/u16-u16-asnprintf: New file.
37047         * modules/unistdio/u16-u16-asprintf: New file.
37048         * modules/unistdio/u16-u16-snprintf: New file.
37049         * modules/unistdio/u16-u16-sprintf: New file.
37050         * modules/unistdio/u16-u16-vasnprintf: New file.
37051         * modules/unistdio/u16-u16-vasprintf: New file.
37052         * modules/unistdio/u16-u16-vsnprintf: New file.
37053         * modules/unistdio/u16-u16-vsprintf: New file.
37054         * modules/unistdio/u32-asnprintf: New file.
37055         * modules/unistdio/u32-asprintf: New file.
37056         * modules/unistdio/u32-printf-parse: New file.
37057         * modules/unistdio/u32-snprintf: New file.
37058         * modules/unistdio/u32-sprintf: New file.
37059         * modules/unistdio/u32-vasnprintf: New file.
37060         * modules/unistdio/u32-vasprintf: New file.
37061         * modules/unistdio/u32-vsnprintf: New file.
37062         * modules/unistdio/u32-vsprintf: New file.
37063         * modules/unistdio/u32-u32-asnprintf: New file.
37064         * modules/unistdio/u32-u32-asprintf: New file.
37065         * modules/unistdio/u32-u32-snprintf: New file.
37066         * modules/unistdio/u32-u32-sprintf: New file.
37067         * modules/unistdio/u32-u32-vasnprintf: New file.
37068         * modules/unistdio/u32-u32-vasprintf: New file.
37069         * modules/unistdio/u32-u32-vsnprintf: New file.
37070         * modules/unistdio/u32-u32-vsprintf: New file.
37071         * modules/unistdio/ulc-asnprintf-tests: New file.
37072         * modules/unistdio/ulc-vasnprintf-tests: New file.
37073         * modules/unistdio/ulc-vasprintf-tests: New file.
37074         * modules/unistdio/ulc-vsnprintf-tests: New file.
37075         * modules/unistdio/ulc-vsprintf-tests: New file.
37076         * modules/unistdio/u8-asnprintf-tests: New file.
37077         * modules/unistdio/u8-vasnprintf-tests: New file.
37078         * modules/unistdio/u8-vasprintf-tests: New file.
37079         * modules/unistdio/u8-vsnprintf-tests: New file.
37080         * modules/unistdio/u8-vsprintf-tests: New file.
37081         * modules/unistdio/u16-asnprintf-tests: New file.
37082         * modules/unistdio/u16-vasnprintf-tests: New file.
37083         * modules/unistdio/u16-vasprintf-tests: New file.
37084         * modules/unistdio/u16-vsnprintf-tests: New file.
37085         * modules/unistdio/u16-vsprintf-tests: New file.
37086         * modules/unistdio/u32-asnprintf-tests: New file.
37087         * modules/unistdio/u32-vasnprintf-tests: New file.
37088         * modules/unistdio/u32-vasprintf-tests: New file.
37089         * modules/unistdio/u32-vsnprintf-tests: New file.
37090         * modules/unistdio/u32-vsprintf-tests: New file.
37091         * MODULES.html.sh (Unicode string functions): Add the new modules.
37092
37093 2007-07-01  Bruno Haible  <bruno@clisp.org>
37094
37095         * lib/sprintf.c (sprintf): Limit the available length estimation,
37096         to avoid address wraparound.
37097         * lib/vsprintf.c (vsprintf): Likewise.
37098         * modules/sprintf-posix (Dependencies): Add stdint.
37099         * modules/vsprintf-posix (Dependencies): Likewise.
37100
37101 2007-07-01  Bruno Haible  <bruno@clisp.org>
37102
37103         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37104         Windows PATH as well. Conservative double-quoting. Comments.
37105
37106 2007-07-01  Bruno Haible  <bruno@clisp.org>
37107             Eric Blake  <ebb9@byu.net>
37108             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37109
37110         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37111         empty components in $PATH, denoting '.'.
37112
37113 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37114
37115         * gnulib-tool: Fix indentation.
37116         (func_create_megatestdir): Likewise.
37117         Report by Bruno Haible.
37118
37119 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37120
37121         Sync from Automake.
37122         * build-aux/gnupload: Fix shell portability issues with for loops.
37123         Report by Karl Berry.
37124
37125 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37126
37127         * build-aux/maint.mk (POURL): Use translationproject.org.
37128
37129 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37130             Bruno Haible  <bruno@clisp.org>
37131
37132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37133         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37134         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37135         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37136         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37137
37138 2007-06-27  Bruno Haible  <bruno@clisp.org>
37139
37140         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37141         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37142
37143 2007-06-26  Karl Berry  <karl@gnu.org>
37144
37145         * MODULES.html.sh: remove xreadlink-with-size.
37146
37147 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37148
37149         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37150         method that I hope also handles the double-include problem noted
37151         by Bruno Haible in
37152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37153
37154 2007-06-23  Bruno Haible  <bruno@clisp.org>
37155
37156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37157         Don't let the 'mostlyclean' target fail if the last subdirectory could
37158         not be removed.
37159         Reported by Karl Berry.
37160
37161 2007-06-23  Bruno Haible  <bruno@clisp.org>
37162
37163         * gnulib-tool (echo): Add a speedier workaround for ksh.
37164         * tests/test-echo.sh: Likewise.
37165
37166 2007-06-23  Bruno Haible  <bruno@clisp.org>
37167
37168         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37169         * tests/test-echo.sh: Likewise.
37170
37171 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37172
37173         * gnulib-tool (IFS): Initialize early, so we don't set it to
37174         empty later.
37175         (self_abspathname): Rewrite algorithm to set it, reindent.
37176         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37177         (func_create_megatestdir): Merge some sed scripts.
37178
37179 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37180
37181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37182         exposed by Sun Studio 11 cc on Solaris 8.
37183
37184 2007-06-22  Bruno Haible  <bruno@clisp.org>
37185
37186         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37187         backslashes.
37188         * tests/test-echo.sh: New file.
37189
37190 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37191
37192         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37193         simplify `sed_replace_build_aux' scripts, they are portable but
37194         echoing them with `echo' is not.
37195         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37196
37197 2007-06-21  Karl Berry  <karl@gnu.org>
37198
37199         * config/srclist.txt: guess we can't handle the licenses via
37200         srclist at the moment.
37201
37202 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37203
37204         * MODULES.html.sh: Add include_next.
37205         * modules/include_next: New file.
37206
37207 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37208
37209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37210         INCLUDE_NEXT.
37211         (gl_CHECK_NEXT_HEADERS): New macro.
37212         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37213         the obsolescent gl_ABSOLUTE_HEADER.
37214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37215         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37216         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37217         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37218         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37219         * m4/math_h.m4 (gl_MATH_H): Likewise.
37220         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37221         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37222         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37223         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37224         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37225         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37226         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37231         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37232         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37233         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37234         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37235         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37236         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37237         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37238         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37239         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37240         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37241         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37242         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37243         * lib/float_.h: Likewise.
37244         * lib/inttypes_.h: Likewise.
37245         * lib/math_.h: Likewise.
37246         * lib/search_.h: Likewise.
37247         * lib/signal_.h: Likewise.
37248         * lib/stdint_.h: Likewise.
37249         * lib/stdio_.h: Likewise.
37250         * lib/stdlib_.h: Likewise.
37251         * lib/string_.h: Likewise.
37252         * lib/sys_stat_.h: Likewise.
37253         * lib/sys_time_.h: Likewise.
37254         * lib/time_.h: Likewise.
37255         * lib/unistd_.h: Likewise.
37256         * lib/wchar_.h: Likewise.
37257         * lib/wctype_.h: Likewise.
37258         * lib/dirent_.h: Likewise.
37259         * lib/iconv_.h: Likewise.
37260         * lib/locale_.h: Likewise.
37261         * lib/netinet_in_.h: Likewise.
37262         * lib/sys_select_.h: Likewise.
37263         * lib/sys_socket_.h: Likewise.
37264         * lib/sysexits_.h: Likewise.
37265         * modules/fcntl (Depends-on): Depend on include_next, not
37266         absolute_header.
37267         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37268         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37269         * modules/fchdir: Likewise.
37270         * modules/float: Likewise.
37271         * modules/iconv_open: Likewise.
37272         * modules/inttypes: Likewise.
37273         * modules/locale: Likewise.
37274         * modules/math: Likewise.
37275         * modules/netinet_in: Likewise.
37276         * modules/search: Likewise.
37277         * modules/signal: Likewise.
37278         * modules/stdint: Likewise.
37279         * modules/stdio: Likewise.
37280         * modules/stdlib: Likewise.
37281         * modules/string: Likewise.
37282         * modules/sys_select: Likewise.
37283         * modules/sys_socket: Likewise.
37284         * modules/sys_stat: Likewise.
37285         * modules/sys_time: Likewise.
37286         * modules/sysexits: Likewise.
37287         * modules/time: Likewise.
37288         * modules/unistd: Likewise.
37289         * modules/wchar: Likewise.
37290         * modules/wctype: Likewise.
37291         * modules/sys_stat: Change maintainer to "all".
37292         * modules/unistd: Likewise.
37293
37294 2007-06-20  Karl Berry  <karl@gnu.org>
37295
37296         * config/srclist.txt: track www changes in license files.
37297
37298 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37299
37300         * build-aux/bootstrap: Remove stray dot.
37301         Make sure build_aux settings are honored when linking
37302         gnulib_extra_files.
37303
37304 2007-06-19  Eric Blake  <ebb9@byu.net>
37305
37306         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37307         Allow compilation on cygwin.
37308
37309 2007-06-19  Jim Meyering  <jim@meyering.net>
37310
37311         xreadlink-with-size: Remove module.  No longer used.
37312         Ex-callers now use xreadlink or mreadlink-with-size.
37313         * modules/xreadlink-with-size: Remove module.
37314         * lib/xreadlink-with-size.c: Remove file.
37315         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37316         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37317         just before the function definition *is* accurate.
37318
37319         Eliminate one way canonicalize_filename_mode could exit.
37320         * lib/canonicalize.c (canonicalize_filename_mode):
37321         Use mreadlink_with_size, not xreadlink_with_size.
37322
37323 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         Detect porting problems to FreeBSD/arm, which has time_t wider than
37326         long int.  Original problem reported for GNU diff by Xin Li in
37327         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37328         * modules/getdate (Depends-on): Add intprops, verify.
37329         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37330         is an integer type no wider than long int.
37331
37332 2007-06-18  Jim Meyering  <jim@meyering.net>
37333
37334         New module: mreadlink-with-size.
37335         * MODULES.html.sh: Add mreadlink-with-size.
37336         * modules/mreadlink-with-size: New module
37337         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37338         not xreadlink-with-size.
37339         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37340
37341 2007-06-16  Bruno Haible  <bruno@clisp.org>
37342
37343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37344         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37345         Reported by Gary V. Vaughan <gary@gnu.org>.
37346
37347 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37348
37349         Revamp lchown so that it lives in unistd.h where it belongs.
37350         * lib/lchown.h: Remove.
37351         * lib/dirchownmod.c: Don't include lib/lchown.h.
37352         * lib/fchownat.c: Likewise.
37353         * lib/openat.c: Likewise.
37354         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37355         does not follow symlinks.
37356         (EOPNOTSUPP): Define if not defined.
37357         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37358         is defined to 0.
37359         (lchown): New decl.
37360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37361         Do not check for lchown decl.
37362         Set REPLACE_LCHOWN.
37363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37364         REPLACE_LCHOWN.
37365         * modules/chown: Make it clear it follows symlinks.
37366         * modules/lchown: Make it clear it doesn't follow symlinks.
37367         (Files): Remove lib/lchown.h
37368         (Depends-on): Add unistd.
37369         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37370         (Include): Include <unistd.h>, not "lchown.h".
37371         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37372         REPLACE_LCHOWN.
37373
37374 2007-06-15  Jim Meyering  <jim@meyering.net>
37375
37376         Change license (GPL to LGPL) of fsusage and dependents.
37377         * modules/fsusage (License): Change to LGPL.
37378         * modules/full-read (License): Likewise.
37379         * modules/full-write (License): Likewise.
37380         * modules/safe-read (License): Likewise.
37381         * modules/safe-write (License): Likewise.
37382
37383 2007-06-14  Ben Pfaff  <blp@gnu.org>
37384
37385         Missing part of allocsa -> malloca transition.
37386         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37387         gl_MALLOCA.
37388
37389 2007-06-12  Bruno Haible  <bruno@clisp.org>
37390
37391         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37392         to ia64, x86_64, i386.
37393         Reported by Eric Blake.
37394
37395 2007-06-12  Bruno Haible  <bruno@clisp.org>
37396
37397         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37398         cross-compiling to x86_64.
37399
37400 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37401
37402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37403         glitch reported by Ralf Wildenhues in
37404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37405
37406         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37407         Vin Shelton.
37408
37409 2007-06-11  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37412         replacement string.
37413         Reported by Eric Blake.
37414
37415 2007-06-10  Bruno Haible  <bruno@clisp.org>
37416
37417         Prepare vasnprintf code for use with Unicode strings.
37418         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37419         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37420         TYPE_U32_STRING.
37421         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37422         a_u32_string variants.
37423         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37424         * lib/printf-args.c: Don't include config.h and the specification
37425         header if PRINTF_FETCHARGS is already defined.
37426         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37427         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37428         TYPE_U16_STRING, TYPE_U32_STRING.
37429         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37430         u16_directive, u16_directives, u32_directive, u32_directives): New
37431         types.
37432         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37433         New declarations.
37434         * lib/printf-parse.c: Don't include config.h and the specification
37435         header if PRINTF_PARSE is already defined. Eliminate the set of
37436         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37437         them now. Include c-ctype.h.
37438         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37439         directive and CHAR_T_ONLY_ASCII.
37440         * lib/vasnprintf.c: Don't include config.h and the specification header
37441         if VASNPRINTF is already defined.
37442         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37443         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37444         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37445         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37446         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37447         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37448         code accordingly.
37449         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37450         pad_ourselves also in this case, with the 'c' and 's' directives, and
37451         with a different notion of "width".
37452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37453
37454 2007-06-10  Bruno Haible  <bruno@clisp.org>
37455
37456         * modules/unistr/u32-mbsnlen: New file.
37457         * lib/unistr/u32-mbsnlen.c: New file.
37458
37459         * modules/unistr/u16-mbsnlen: New file.
37460         * lib/unistr/u16-mbsnlen.c: New file.
37461
37462         * modules/unistr/u8-mbsnlen: New file.
37463         * lib/unistr/u8-mbsnlen.c: New file.
37464
37465         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37466         declarations.
37467
37468 2007-06-10  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/string_.h (mbsnlen): New declaration.
37471         * lib/mbsnlen.c: New file.
37472         * m4/mbsnlen.m4: New file.
37473         * modules/mbsnlen: New file.
37474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37475         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37476         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37477
37478 2007-06-10  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37481
37482 2007-06-10  Bruno Haible  <bruno@clisp.org>
37483
37484         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37485         * lib/mbuiter.h: Likewise.
37486
37487 2007-06-10  Bruno Haible  <bruno@clisp.org>
37488
37489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37490         declaration.
37491
37492 2007-06-10  Karl Berry  <karl@gnu.org>
37493
37494         * config/srclist.txt: remove gettext entries, Bruno prefers
37495         to update individually.
37496
37497 2007-06-10  Bruno Haible  <bruno@clisp.org>
37498
37499         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37500         'maxlen'. Ensure only length + width bytes are allocated, not
37501         length + 1 + width.
37502
37503 2007-06-09  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37506         (CHAR_T): Remove macro.
37507         (VASNPRINTF): Update.
37508
37509 2007-06-09  Bruno Haible  <bruno@clisp.org>
37510
37511         * MODULES.html.sh (Unicode string functions): Add the new modules.
37512
37513         * modules/uniconv/u32-conv-to-enc: New file.
37514         * lib/uniconv/u32-conv-to-enc.c: New file.
37515         * modules/uniconv/u32-conv-to-enc-tests: New file.
37516         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37517
37518         * modules/uniconv/u16-conv-to-enc: New file.
37519         * lib/uniconv/u16-conv-to-enc.c: New file.
37520         * lib/uniconv/u-conv-to-enc.h: New file.
37521         * modules/uniconv/u16-conv-to-enc-tests: New file.
37522         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37523
37524         * modules/uniconv/u8-conv-to-enc: New file.
37525         * lib/uniconv/u8-conv-to-enc.c: New file.
37526         * modules/uniconv/u8-conv-to-enc-tests: New file.
37527         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37528
37529         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37530         u32_conv_to_encoding): New declarations.
37531
37532 2007-06-09  Bruno Haible  <bruno@clisp.org>
37533
37534         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37535
37536 2007-06-09  Bruno Haible  <bruno@clisp.org>
37537
37538         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37539         * modules/malloca: Renamed from modules/allocsa, updated.
37540         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37541         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37542         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37543         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37544         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37545         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37546         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37547         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37548         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37549         * modules/c-strcasestr (Depends-on): Update.
37550         * lib/c-strcasestr.c: Update.
37551         * modules/c-strstr (Depends-on): Update.
37552         * lib/c-strstr.c: Update.
37553         * modules/canonicalize-lgpl (Depends-on): Update.
37554         * lib/canonicalize-lgpl.c: Update.
37555         * modules/clean-temp (Depends-on): Update.
37556         * lib/clean-temp.c: Update.
37557         * modules/csharpcomp (Depends-on): Update.
37558         * lib/csharpcomp.c: Update.
37559         * modules/csharpexec (Depends-on): Update.
37560         * lib/csharpexec.c: Update.
37561         * modules/javacomp (Depends-on): Update.
37562         * lib/javacomp.c: Update.
37563         * modules/javaexec (Depends-on): Update.
37564         * lib/javaexec.c: Update.
37565         * modules/mbscasestr (Depends-on): Update.
37566         * lib/mbscasestr.c: Update.
37567         * modules/mbsstr (Depends-on): Update.
37568         * lib/mbsstr.c: Update.
37569         * modules/setenv (Depends-on): Update.
37570         * lib/setenv.c: Update.
37571         * modules/strcasestr (Depends-on): Update.
37572         * lib/strcasestr.c: Update.
37573         * modules/striconveha (Depends-on): Update.
37574         * lib/striconveha.c: Update.
37575         * modules/relocatable-prog-wrapper (Files): Update.
37576         * lib/relocwrapper.c: Update.
37577         * build-aux/install-reloc: Update.
37578         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37579
37580 2007-06-08  Bruno Haible  <bruno@clisp.org>
37581
37582         Port to uClibc.
37583         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37584         * lib/fpurge.c (fpurge): Likewise.
37585         * lib/freading.c (freading): Likewise.
37586         * lib/fseeko.c (rpl_fseeko): Likewise.
37587         * lib/fseterr.c (fseterr): Likewise.
37588         * lib/fwriting.c (fwriting): Likewise.
37589         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37590
37591 2007-06-08  Bruno Haible  <bruno@clisp.org>
37592
37593         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37594         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37595         * modules/gettext (Files): Add m4/intlmacosx.m4.
37596
37597 2007-06-07  Bruno Haible  <bruno@clisp.org>
37598
37599         * modules/localename-tests: New file.
37600         * tests/test-localename.c: New file.
37601
37602         New module 'localename'.
37603         * lib/localename.h: New file.
37604         * lib/localename.c: New file, from GNU gettext.
37605         * m4/localename.m4: New file.
37606         * modules/localename: New file.
37607
37608 2007-06-07  Bruno Haible  <bruno@clisp.org>
37609
37610         Work around the lack of <wchar.h> on some builds of uClibc.
37611         * doc/headers/wchar.texi: Update.
37612         * lib/wchar_.h: Include <wchar.h> only if it exists.
37613         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37614         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37615         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37616         doesn't exist.
37617         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37618         * modules/mbfile (Depends-on): Add wchar.
37619         * modules/mbiter (Depends-on): Likewise.
37620         * modules/mbuiter (Depends-on): Likewise.
37621         Reported by Simon Josefsson.
37622
37623 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37624
37625         Work around problem reported by Steven M. Schweda in
37626         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37627         Tru64 5.1B with the Compaq compiler environment installed declares
37628         an 'isblank' function but does not define it in the C library.
37629         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37630         * lib/regex_internal.h (isblank): Likewise.
37631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37632         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37633
37634 2007-06-05  Bruno Haible  <bruno@clisp.org>
37635
37636         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37637         ia64.
37638         * modules/printf-safe: New file.
37639         * modules/fprintf-posix (Depends-on): Add printf-safe.
37640         * modules/printf-posix (Depends-on): Likewise.
37641         * modules/snprintf-posix (Depends-on): Likewise.
37642         * modules/sprintf-posix (Depends-on): Likewise.
37643         * modules/vasnprintf-posix (Depends-on): Likewise.
37644         * modules/vasprintf-posix (Depends-on): Likewise.
37645         * modules/vfprintf-posix (Depends-on): Likewise.
37646         * modules/vprintf-posix (Depends-on): Likewise.
37647         * modules/vsnprintf-posix (Depends-on): Likewise.
37648         * modules/vsprintf-posix (Depends-on): Likewise.
37649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37650         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37651         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37652         "no" on i386, x86_64, ia64.
37653         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37654         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37655         on i386, x86_64, ia64.
37656         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37657         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37658         on i386, x86_64, ia64.
37659         * tests/test-vasnprintf-posix.c: Include float.h.
37660         (LDBL80_WORDS): New macro.
37661         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37662         on i386, x86_64, ia64.
37663         * tests/test-vasprintf-posix.c: Include float.h.
37664         (LDBL80_WORDS): New macro.
37665         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37666         on i386, x86_64, ia64.
37667         * tests/test-snprintf-posix.c: Include float.h.
37668         * tests/test-sprintf-posix.c: Likewise.
37669         * tests/test-vsnprintf-posix.c: Likewise.
37670         * tests/test-vsprintf-posix.c: Likewise.
37671
37672 2007-06-05  Bruno Haible  <bruno@clisp.org>
37673
37674         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37675         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37676         non-IEEE numbers on i386, x86_64, ia64.
37677         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37678         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37679         * tests/test-isnanl.h: Include float.h.
37680         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37681
37682 2007-06-05  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37685         also the %a / %A. Handle the %a / %A code before this extra handling.
37686
37687 2007-06-05  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37690         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37691
37692 2007-06-05  Bruno Haible  <bruno@clisp.org>
37693
37694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37695         typo in variable name.
37696
37697 2007-06-05  Eric Blake  <ebb9@byu.net>
37698
37699         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37700         Reported by Simon Josefsson.
37701
37702 2007-06-04  Bruno Haible  <bruno@clisp.org>
37703
37704         Avoid test failures on some PowerPC platforms.
37705         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37706         Define differently for PowerPC.
37707         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37708         Reported by Gary V. Vaughan <gary@gnu.org>.
37709
37710 2007-06-02  Bruno Haible  <bruno@clisp.org>
37711
37712         Fix test-stdint failure on FreeBSD/ia64.
37713         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37714         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37715         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37716         * doc/headers/stdint.texi: Update.
37717
37718 2007-06-01  Bruno Haible  <bruno@clisp.org>
37719
37720         * tests/test-binary-io.c (main): Pass a third argument to open().
37721         Reported by Gary V. Vaughan <gary@gnu.org>.
37722
37723 2007-06-01  Bruno Haible  <bruno@clisp.org>
37724
37725         * doc/functions/frexpl.texi: Update for mingw.
37726
37727 2007-06-01  Bruno Haible  <bruno@clisp.org>
37728
37729         * tests/test-lseek.c (main): Disable test of errno for invalid third
37730         argument.
37731         * doc/functions/lseek.texi: Update.
37732         Reported by Gary V. Vaughan <gary@gnu.org>.
37733
37734 2007-05-28  Bruno Haible  <bruno@clisp.org>
37735
37736         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37737
37738 2007-05-31  Eric Blake  <ebb9@byu.net>
37739
37740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37741         cross compiling.
37742
37743 2007-05-30  Eric Blake  <ebb9@byu.net>
37744         and Bruno Haible  <bruno@clisp.org>
37745
37746         Work around mingw test failures exposed by m4-1.4.9b.
37747         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37748         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37749         moment.
37750
37751 2007-05-30  Bruno Haible  <bruno@clisp.org>
37752
37753         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37754         assuming that they are closed. Needed on HP-UX 11.
37755
37756 2007-05-29  Bruno Haible  <bruno@clisp.org>
37757
37758         Fix a problem with #include_next.
37759         * lib/dirent_.h: Split the double-inclusion guard.
37760         * lib/fcntl_.h: Likewise.
37761         * lib/float_.h: Likewise.
37762         * lib/iconv_.h: Likewise.
37763         * lib/inttypes_.h: Likewise.
37764         * lib/locale_.h: Likewise.
37765         * lib/math_.h: Likewise.
37766         * lib/netinet_in_.h: Likewise.
37767         * lib/search_.h: Likewise.
37768         * lib/signal_.h: Likewise.
37769         * lib/stdint_.h: Likewise.
37770         * lib/stdio_.h: Likewise.
37771         * lib/stdlib_.h: Likewise.
37772         * lib/string_.h: Likewise.
37773         * lib/sys_select_.h: Likewise.
37774         * lib/sys_socket_.h: Likewise.
37775         * lib/sys_stat_.h: Likewise.
37776         * lib/sys_time_.h: Likewise.
37777         * lib/sysexits_.h: Likewise.
37778         * lib/time_.h: Likewise.
37779         * lib/unistd_.h: Likewise.
37780         * lib/wchar_.h: Likewise.
37781         * lib/wctype_.h: Likewise.
37782
37783 2007-05-29  Bruno Haible  <bruno@clisp.org>
37784
37785         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37786         for the moment.
37787
37788 2007-05-29  Bruno Haible  <bruno@clisp.org>
37789
37790         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37791         invocation.
37792         Reported by Eric Blake.
37793
37794 2007-05-29  Bruno Haible  <bruno@clisp.org>
37795
37796         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37797         compiling case.
37798
37799 2007-05-29  Eric Blake  <ebb9@byu.net>
37800             Bruno Haible  <bruno@clisp.org>
37801
37802         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37803         cross compiles.
37804
37805 2007-05-28  Eric Blake  <ebb9@byu.net>
37806
37807         * modules/closein-tests (test_closein_LDADD): Support test on
37808         cygwin with libtool.
37809
37810 2007-05-28  Bruno Haible  <bruno@clisp.org>
37811
37812         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37813         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37814         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37815         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37816         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37817         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37818         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37819         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37820         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37821
37822 2007-05-28  Eric Blake  <ebb9@byu.net>
37823
37824         Unconditionally include <config.h> in unit tests.
37825         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37826         * tests/test-allocsa.c, tests/test-arcfour.c,
37827         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37828         tests/test-array_list.c, tests/test-array_oset.c,
37829         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37830         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37831         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37832         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37833         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37834         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37835         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37836         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37837         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37838         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37839         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37840         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37841         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37842         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37843         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37844         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37845         test-md5.c, test-memmem.c, test-printf-posix.c,
37846         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37847         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37848         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37849         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37850         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37851         test-vasnprintf-posix2.c, test-vasnprintf.c,
37852         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37853         test-vfprintf-posix.c, test-vprintf-posix.c,
37854         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37855         test-xvasprintf.c: Likewise.
37856
37857 2007-05-28  Bruno Haible  <bruno@clisp.org>
37858
37859         * gnulib-tool (func_import): Remember the --with-tests command-line
37860         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37861         Reported by Eric Blake.
37862
37863 2007-05-28  Bruno Haible  <bruno@clisp.org>
37864
37865         * modules/ftell-tests: New file.
37866         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37867         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37868
37869         * lib/ftell.c: New file.
37870         * modules/ftell: New file.
37871         * m4/ftell.m4: New file.
37872         * doc/functions/ftell.texi: Update.
37873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37874         REPLACE_FTELL.
37875         * lib/stdio_.h (rpl_ftell): New declaration.
37876         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37877         REPLACE_FTELL.
37878
37879 2007-05-28  Eric Blake  <ebb9@byu.net>
37880
37881         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37882
37883 2007-05-28  Bruno Haible  <bruno@clisp.org>
37884
37885         * modules/fseek-tests: New file.
37886         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37887         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37888
37889         * lib/fseek.c: New file.
37890         * modules/fseek: New file.
37891         * m4/fseek.m4: New file.
37892         * doc/functions/fseek.texi: Update.
37893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37894         REPLACE_FSEEK.
37895         * lib/stdio_.h (rpl_fseek): New declaration.
37896         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37897         REPLACE_FSEEK.
37898
37899 2007-05-28  Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/stdio_.h (fflush): More comments.
37902
37903 2007-05-28  Bruno Haible  <bruno@clisp.org>
37904
37905         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37906         runtime test.
37907
37908 2007-05-28  Eric Blake  <ebb9@byu.net>
37909
37910         Improve lseek module.
37911         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37912         * lib/unistd_.h (lseek): Scale back link warning message.
37913         * tests/test-lseek.c: Beef up test.
37914         * tests/test-lseek.sh: Exercise more facets of lseek.
37915         Reported by Bruno Haible.
37916
37917 2007-05-28  Bruno Haible  <bruno@clisp.org>
37918
37919         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37920         to define.
37921
37922 2007-05-27  Bruno Haible  <bruno@clisp.org>
37923
37924         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37925
37926 2007-05-27  Bruno Haible  <bruno@clisp.org>
37927
37928         * modules/openmp: New file.
37929         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37930         Noah Misch.
37931
37932 2007-05-26  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/chdir-long (Depends-on): Add fchdir.
37935         * modules/chdir-safer (Depends-on): Likewise.
37936         * modules/fts (Depends-on): Likewise.
37937         * modules/fts-lgpl (Depends-on): Likewise.
37938         * modules/openat (Depends-on): Likewise.
37939         * modules/savewd (Depends-on): Likewise.
37940
37941 2007-05-24  Eric Blake  <ebb9@byu.net>
37942
37943         Fix lseek on mingw.
37944         * modules/lseek: New module.
37945         * m4/lseek.m4: New file.
37946         * lib/lseek.c: New file.
37947         * modules/lseek-tests: New file.
37948         * tests/test-lseek.c: New file.
37949         * tests/test-lseek.sh: New file.
37950         * MODULES.html.sh: Document lseek module.
37951         * modules/fflush (Depends-on): Add lseek, fseeko.
37952         * modules/fseeko (Depends-on): Likewise.
37953         * modules/ftello (Depends-on): Likewise.
37954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37955         broken.
37956         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37957         broken.
37958         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37959         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37960         * lib/ftello.c (rpl_ftello): Likewise.
37961         * tests/test-fseeko.c (main): Test this.
37962         * tests/test-fseeko.sh: Likewise.
37963         * tests/test-ftello.c (main): Likewise.
37964         * tests/test-ftello.sh: Likewise.
37965         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37966         implies replacing fseek.
37967         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37968         HAVE_FTELLO.
37969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37970         * modules/unistd (Makefile.am): Likewise.
37971         * lib/unistd_.h (lseek): Declare a replacement.
37972         * doc/functions/lseek.texi (lseek): Document this fix.
37973         * doc/functions/fseek.texi (fseek): Likewise.
37974         * doc/functions/ftell.texi (ftell): Likewise.
37975
37976 2007-05-24  Bruno Haible  <bruno@clisp.org>
37977
37978         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37979         in the printed representation of a NaN.
37980         * tests/test-vasprintf-posix.c (test_function): Likewise.
37981         * tests/test-snprintf-posix.h (test_function): Likewise.
37982         * tests/test-sprintf-posix.h (test_function): Likewise.
37983         Reported by Eric Blake.
37984
37985 2007-05-23  Eric Blake  <ebb9@byu.net>
37986
37987         Fix fseeko/ftello on cygwin 1.5.24.
37988         * doc/functions/fseeko.texi (fseeko): Document the fix.
37989         * doc/functions/ftello.texi (ftello): Document the fix.
37990         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37991         * doc/functions/stdout.text (stdout): New file.
37992         * doc/functions/stderr.text (stderr): New file.
37993         * doc/gnulib.texi (Function Substitutes): Use new files.
37994         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37995         prior to 1.7.0.
37996         * tests/test-ftello.c (main): Likewise for ftello.
37997         * tests/test-fseeko.sh: New file.
37998         * tests/test-ftello.sh: New file.
37999         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38000         with seekable stdin.
38001         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38003         (gl_REPLACE_FSEEKO): New macro.
38004         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38005         * modules/fseeko (Files): Distribute fseeko.c.
38006         * modules/ftello (Files): Distribute ftello.c.
38007         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38008         mode.
38009         * lib/ftello.c (rpl_ftello): New file.
38010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38011         fseeko, ftello.
38012         (gl_STDIN_LARGE_OFFSET): New macro.
38013         * modules/stdio (Makefile.am): Perform the replacement.
38014         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38015
38016 2007-05-23  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38019         GNULIB_POSIXCHECK is defined.
38020
38021 2007-05-21  Bruno Haible  <bruno@clisp.org>
38022
38023         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38024         Check also the output for NaN arguments. When cross-compiling, guess
38025         no on IRIX.
38026         * lib/vasnprintf.c: Update comments.
38027         * tests/test-vasnprintf-posix.c (strisnan): New function.
38028         (test_function): Use it.
38029         * tests/test-vasprintf-posix.c (strisnan): New function.
38030         (test_function): Use it.
38031         * tests/test-snprintf-posix.h (strisnan): New function.
38032         (test_function): Use it.
38033         * tests/test-sprintf-posix.h (strisnan): New function.
38034         (test_function): Use it.
38035         Reported by Eric Blake.
38036
38037 2007-05-20  Bruno Haible  <bruno@clisp.org>
38038
38039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38040         numbers that fails on BeOS.
38041         * doc/functions/frexpl.texi: Update.
38042
38043 2007-05-20  Jim Meyering  <jim@meyering.net>
38044
38045         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38046         forced upon us by glibc-2.6.
38047
38048 2007-05-20  Bruno Haible  <bruno@clisp.org>
38049
38050         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38051         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38052         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38053         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38054         NEED_PRINTF_INFINITE.
38055         (is_infinitel): New function.
38056         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38058         gl_PREREQ_VASNPRINTF_INFINITE.
38059         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38061         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38062         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38063         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38064         gl_PREREQ_VASNPRINTF_INFINITE.
38065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38072         * doc/functions/fprintf.texi: Update.
38073         * doc/functions/printf.texi: Update.
38074         * doc/functions/snprintf.texi: Update.
38075         * doc/functions/sprintf.texi: Update.
38076         * doc/functions/vfprintf.texi: Update.
38077         * doc/functions/vprintf.texi: Update.
38078         * doc/functions/vsnprintf.texi: Update.
38079         * doc/functions/vsprintf.texi: Update.
38080
38081 2007-05-20  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38084         was not found in libc.
38085         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38086
38087 2007-05-20  Bruno Haible  <bruno@clisp.org>
38088
38089         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38090         printed as "-nan" instead of "nan".
38091         * tests/test-vasprintf-posix.c (test_function): Likewise.
38092         * tests/test-snprintf-posix.h (test_function): Likewise.
38093         * tests/test-sprintf-posix.h (test_function): Likewise.
38094         Needed for HP-UX 11.
38095
38096 2007-05-20  Jim Meyering  <jim@meyering.net>
38097
38098         Fix buggy test for the fchownat-deref bug.
38099         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38100         symlink required for the run-test.  Without it, this test would
38101         always declare that fchownat doesn't work, and client code would
38102         unnecessarily use the replacement function with fixed libc.
38103         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38104         Reported by Greg Schafer.
38105
38106 2007-05-19  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38109         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38110         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38111         Needed for IRIX 6.5 and Solaris 2.5.1.
38112
38113 2007-05-19  Bruno Haible  <bruno@clisp.org>
38114
38115         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38116         (test_function): Skip tests involving -0.0 on platforms where
38117         -0.0 = 0.0.
38118         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38119         (test_function): Skip tests involving -0.0 on platforms where
38120         -0.0 = 0.0.
38121         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38122         (test_function): Skip tests involving -0.0 on platforms where
38123         -0.0 = 0.0.
38124         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38125         (test_function): Skip tests involving -0.0 on platforms where
38126         -0.0 = 0.0.
38127         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38128         tests.
38129         * tests/test-printf-posix.h (test_function): Likewise.
38130         * tests/test-printf-posix.output: Remove all -0.0 related results.
38131         Needed for IRIX 6.5.
38132
38133 2007-05-19  Bruno Haible  <bruno@clisp.org>
38134
38135         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38136         printed as "nan0x7fffffff" instead of "nan".
38137         * tests/test-vasprintf-posix.c (test_function): Likewise.
38138         * tests/test-snprintf-posix.h (test_function): Likewise.
38139         * tests/test-sprintf-posix.h (test_function): Likewise.
38140         * tests/test-fprintf-posix.h (NaN): Remove macro.
38141         (test_function): Remove all NaN related tests.
38142         * tests/test-printf-posix.h (NaN): Remove macro.
38143         (test_function): Remove all NaN related tests.
38144         * tests/test-printf-posix.output: Remove all NaN related results.
38145         Needed for IRIX 6.5.
38146
38147 2007-05-19  Bruno Haible  <bruno@clisp.org>
38148
38149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38150         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38151
38152 2007-05-19  Bruno Haible  <bruno@clisp.org>
38153
38154         * lib/float_.h: New file.
38155         * m4/float_h.m4: New file.
38156         * modules/float: New file.
38157         * modules/isnanl (Dependencies): Add float.
38158         * modules/isnanl-nolibm (Dependencies): Likewise.
38159         * modules/mathl (Dependencies): Likewise.
38160         * modules/printf-frexpl (Dependencies): Likewise.
38161         * modules/signbit (Dependencies): Likewise.
38162         * modules/vasnprintf (Dependencies): Likewise.
38163         * doc/headers/float.texi: Update.
38164
38165 2007-05-19  Jim Meyering  <jim@meyering.net>
38166
38167         * lib/utimens.c (gl_futimens): Rename from futimens,
38168         now that glibc-2.6 declares futimens.
38169         * lib/utimens.h: Likewise.
38170
38171 2007-05-19  Bruno Haible  <bruno@clisp.org>
38172
38173         Avoid test failures on mingw.
38174         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38175         * tests/test-printf-posix.sh: Likewise.
38176         * tests/test-vfprintf-posix.sh: Likewise.
38177         * tests/test-vprintf-posix.sh: Likewise.
38178
38179 2007-05-19  Bruno Haible  <bruno@clisp.org>
38180
38181         Fix *printf result for NaN, Inf, -0.0 on mingw.
38182         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38183         * lib/vasnprintf.c: Include math.h and isnan.h.
38184         (is_infinite_or_zero): New function.
38185         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38186         values in the %f, %F, %e, %E, %g, %G directives.
38187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38189         gl_PRINTF_INFINITE and test its result. Invoke
38190         gl_PREREQ_VASNPRINTF_INFINITE.
38191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38192         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38198         * doc/functions/fprintf.texi: Update.
38199         * doc/functions/printf.texi: Update.
38200         * doc/functions/snprintf.texi: Update.
38201         * doc/functions/sprintf.texi: Update.
38202         * doc/functions/vfprintf.texi: Update.
38203         * doc/functions/vprintf.texi: Update.
38204         * doc/functions/vsnprintf.texi: Update.
38205         * doc/functions/vsprintf.texi: Update.
38206
38207 2007-05-19  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38210         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38211         Instead of multiplying with 10^k, set extra_zeroes to k.
38212         (scale10_round_long_double): Remove function.
38213
38214 2007-05-18  Bruno Haible  <bruno@clisp.org>
38215
38216         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38217         introduced on 2007-05-06.
38218
38219 2007-05-18  Bruno Haible  <bruno@clisp.org>
38220
38221         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38222         %g directives.
38223         * tests/test-vasprintf-posix.c (test_function): Likewise.
38224         * tests/test-snprintf-posix.h (test_function): Likewise.
38225         * tests/test-sprintf-posix.h (test_function): Likewise.
38226
38227 2007-05-18  Bruno Haible  <bruno@clisp.org>
38228
38229         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38230         (strmatch): New function.
38231         (test_function): Test the %f directive on numbers of various exponents.
38232         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38233         (strmatch): New function.
38234         (test_function): Test the %f directive on numbers of various exponents.
38235         * tests/test-snprintf-posix.h (strmatch): New function.
38236         (test_function): Test the %f directive on numbers of various exponents.
38237         * tests/test-sprintf-posix.h (strmatch): New function.
38238         (test_function): Test the %f directive on numbers of various exponents.
38239         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38240         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38241         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38242         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38243
38244 2007-05-18  Bruno Haible  <bruno@clisp.org>
38245
38246         Add support for 'long double' number output.
38247         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38248         * lib/vasnprintf.c: Include math.h and float+.h.
38249         (mp_limb_t): New type.
38250         (GMP_LIMB_BITS): New macro.
38251         (mp_twolimb_t): New type.
38252         (GMP_TWOLIMB_BITS): New macro.
38253         (mpn_t): New type.
38254         (multiply, divide, convert_to_decimal, decode_long_double,
38255         scale10_round_long_double, scale10_round_decimal_long_double,
38256         floorlog10l): New functions.
38257         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38258         for the %f, %F, %e, %E, %g, %G directives.
38259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38261         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38262         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38270         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38271         * modules/snprintf-posix (Depends-on): Likewise.
38272         * modules/sprintf-posix (Depends-on): Likewise.
38273         * modules/vasnprintf-posix (Depends-on): Likewise.
38274         * modules/vasprintf-posix (Depends-on): Likewise.
38275         * modules/vfprintf-posix (Depends-on): Likewise.
38276         * modules/vsnprintf-posix (Depends-on): Likewise.
38277         * modules/vsprintf-posix (Depends-on): Likewise.
38278         * modules/vasnprintf (Files): Add lib/float+.h.
38279         * doc/functions/fprintf.texi: Update.
38280         * doc/functions/printf.texi: Update.
38281         * doc/functions/snprintf.texi: Update.
38282         * doc/functions/sprintf.texi: Update.
38283         * doc/functions/vfprintf.texi: Update.
38284         * doc/functions/vprintf.texi: Update.
38285         * doc/functions/vsnprintf.texi: Update.
38286         * doc/functions/vsprintf.texi: Update.
38287
38288 2007-05-18  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38291
38292 2007-05-18  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38295         for printing 64-bit integers. Needed for mingw.
38296
38297 2007-05-18  Bruno Haible  <bruno@clisp.org>
38298
38299         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38300         gl_FUNC_FREXPL_WORKS.
38301         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38302
38303 2007-05-18  Bruno Haible  <bruno@clisp.org>
38304
38305         * modules/frexpl-nolibm-tests: New file.
38306
38307         * modules/frexpl-nolibm: New file.
38308         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38309
38310 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38311
38312         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38313         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38314         GCC 4.2, which otherwise issues a lot of warnings.
38315         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38316         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38317         Likewise.
38318         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38319         * modules/iconv_open (iconv.h): Likewise.
38320         * modules/locale (locale.h): Likewise.
38321         * modules/netinet_in (netinet/in.h): Likewise.
38322         * modules/sys_select (sys_select.h): Likewise.
38323         * modules/sys_socket (sys/socket.h): Likewise.
38324         * modules/sys_stat (sys/stat.h): Likewise.
38325         * modules/sysexits (sysexits.h): Likewise.
38326         * modules/unistd (unistd.h): Likewise.
38327
38328 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38329
38330         * modules/closein-tests (Makefile.am): Distribute
38331         `test-closein.sh'.
38332
38333 2007-05-17  Bruno Haible  <bruno@clisp.org>
38334
38335         * tests/test-printf-posix.output: Renamed from
38336         tests/test-fprintf-posix.out.
38337         * modules/fprintf-posix-tests: Update.
38338         * modules/printf-posix-tests: Update.
38339         * modules/vfprintf-posix-tests: Update.
38340         * modules/vprintf-posix-tests: Update.
38341         * tests/test-fprintf-posix.sh: Update.
38342         * tests/test-printf-posix.sh: Update.
38343         * tests/test-vfprintf-posix.sh: Update.
38344         * tests/test-vprintf-posix.sh: Update.
38345         Reported by Ralf Wildenhues.
38346
38347 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38348
38349         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38350         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38351         GCC 4.2, which otherwise issues a lot of warnings.
38352         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38353         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38354         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38355         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38356         it should no longer be needed.
38357         * lib/string_.h: Likewise.
38358         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38359         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38360         * modules/inttypes (inttypes.h): Likewise.
38361         * modules/math (math.h): Likewise.
38362         * modules/search (search.h): Likewise.
38363         * modules/signal (signal.h): Likewise.
38364         * modules/stdint (stdint.h): Likewise.
38365         * modules/stdio (stdio.h): Likewise.
38366         * modules/stdlib (stdlib.h): Likewise.
38367         * modules/string (string.h): Likewise.
38368         * modules/sys_time (sys/time.h): Likewise.
38369         * modules/time (time.h): Likewise.
38370         * modules/wchar (wchar.h): Likewise.
38371         * modules/wctype (wtype.h): Likewise.
38372
38373 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38374
38375         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38376
38377 2007-05-13  Bruno Haible  <bruno@clisp.org>
38378
38379         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38380         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38381         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38382         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38383         (gl_PREREQ_STRTOK_R): Don't require it here.
38384
38385 2007-05-13  Bruno Haible  <bruno@clisp.org>
38386
38387         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38388         when used in C++ mode.
38389
38390 2007-05-12  Bruno Haible  <bruno@clisp.org>
38391
38392         * lib/linebuffer.h: Tweak doc.
38393         * lib/linebuffer.c: Likewise.
38394
38395 2007-05-12  James Youngman  <jay@gnu.org>
38396
38397         * lib/linebuffer.c (readlinebuffer_delim): New function,
38398         like readlinebuffer, but use a caller-specified delimiter.
38399         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38400         as the delimiter.
38401         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38402
38403 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38404
38405         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38406         * modules/openat (Files): Remove openat-die.c.
38407         (Depends-on): Add openat-die.
38408         * modules/openat-die: New module.
38409
38410 2007-05-06  Bruno Haible  <bruno@clisp.org>
38411
38412         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38413         Update with info about Cygwin.
38414         * doc/functions/fprintf.texi: Update.
38415         * doc/functions/printf.texi: Update.
38416         * doc/functions/snprintf.texi: Update.
38417         * doc/functions/sprintf.texi: Update.
38418         * doc/functions/vfprintf.texi: Update.
38419         * doc/functions/vprintf.texi: Update.
38420         * doc/functions/vsnprintf.texi: Update.
38421         * doc/functions/vsprintf.texi: Update.
38422         Reported by Eric Blake.
38423
38424 2007-05-06  Bruno Haible  <bruno@clisp.org>
38425
38426         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38427         padding ourselves for the floating-point directives.
38428         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38431         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38432         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38440         * tests/test-snprintf-posix.h (test_function): Also check the width
38441         and some flags in the %f directive.
38442         * tests/test-sprintf-posix.h (test_function): Likewise.
38443         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38444         * tests/test-vasprintf-posix.c (test_function): Likewise.
38445         * doc/functions/fprintf.texi: Update.
38446         * doc/functions/printf.texi: Update.
38447         * doc/functions/snprintf.texi: Update.
38448         * doc/functions/sprintf.texi: Update.
38449         * doc/functions/vfprintf.texi: Update.
38450         * doc/functions/vprintf.texi: Update.
38451         * doc/functions/vsnprintf.texi: Update.
38452         * doc/functions/vsprintf.texi: Update.
38453
38454 2007-05-06  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38457         pass the ' flag character to sprintf or snprintf.
38458         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38461         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38462         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38467         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38470         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38471         flag.
38472         * tests/test-sprintf-posix.h (test_function): Likewise.
38473         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38474         * tests/test-vasprintf-posix.c (test_function): Likewise.
38475         * doc/functions/fprintf.texi: Update.
38476         * doc/functions/printf.texi: Update.
38477         * doc/functions/snprintf.texi: Update.
38478         * doc/functions/sprintf.texi: Update.
38479         * doc/functions/vfprintf.texi: Update.
38480         * doc/functions/vprintf.texi: Update.
38481         * doc/functions/vsnprintf.texi: Update.
38482         * doc/functions/vsprintf.texi: Update.
38483
38484 2007-05-01  Bruno Haible  <bruno@clisp.org>
38485
38486         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38487
38488 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38489
38490         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38491         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38492
38493 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38494
38495         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38496         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38498
38499 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38500
38501         * lib/argp-help.c (struct hol_entry): New member `ord'.
38502         (HOL_ENTRY_PTRCMP): Use ord for comparison
38503         (hol_sort): Initialize ord.
38504
38505 2007-05-01  Bruno Haible  <bruno@clisp.org>
38506
38507         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38508         Reported by Eric Blake.
38509         * doc/gnulib.texi (Function Substitutes): Update.
38510
38511 2007-05-01  Bruno Haible  <bruno@clisp.org>
38512
38513         * doc/functions.texi: Remove file, now redundant through
38514         doc/functions/*.texi.
38515
38516 2007-05-01  Bruno Haible  <bruno@clisp.org>
38517
38518         * modules/argp (Depends-on): Add sleep.
38519
38520 2007-05-01  Bruno Haible  <bruno@clisp.org>
38521
38522         * modules/sleep-tests: New file.
38523         * tests/test-sleep.c: New file.
38524
38525         * modules/sleep: New file.
38526         * lib/sleep.c: New file.
38527         * m4/sleep.m4: New file.
38528         * lib/unistd_.h (sleep): New declaration.
38529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38530         HAVE_SLEEP.
38531         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38532         * doc/functions/sleep.texi: Document the sleep module.
38533
38534 2007-05-01  Bruno Haible  <bruno@clisp.org>
38535
38536         * lib/sigprocmask.h: Remove file.
38537         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38538         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38539         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38540         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38541         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38542         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38543         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38544         HAVE_SIGSET_T as a shell variable.
38545         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38546         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38547         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38548         (Depends-on): Add signal. Remove verify.
38549         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38550         (Include): Mention <signal.h> instead of sigprocmask.h.
38551         * NEWS: Mention the change.
38552         * lib/fatal-signal.c: Don't include sigprocmask.h.
38553
38554 2007-05-01  Bruno Haible  <bruno@clisp.org>
38555
38556         * modules/signal: New file.
38557         * lib/signal_.h: New file.
38558         * m4/signal_h.m4: New file.
38559
38560 2007-05-01  Bruno Haible  <bruno@clisp.org>
38561
38562         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38563         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38564         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38565         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38566
38567 2007-05-01  Bruno Haible  <bruno@clisp.org>
38568
38569         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38570         configure time.
38571         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38572         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38573         * modules/sys_stat (Makefile.am): Substitute their values into
38574         sys/stat.h.
38575
38576 2007-05-01  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38579         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38580         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38581
38582 2007-05-01  Bruno Haible  <bruno@clisp.org>
38583
38584         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38585         'assert' module here.
38586
38587 2007-05-01  Bruno Haible  <bruno@clisp.org>
38588
38589         * doc/functions/*.texi: New files.
38590         * doc/functions/google-ranking.txt: New file.
38591         * doc/gnulib.texi (Function Substitutes): New chapter.
38592         (ctime, inet_ntoa): Remove sections.
38593         * doc/ctime.texi: Remove file.
38594         * doc/inet_ntoa.texi: Remove file.
38595         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38596         dependencies.
38597         (%.info): New rule, specifying a --reference-limit.
38598
38599 2007-05-01  Bruno Haible  <bruno@clisp.org>
38600
38601         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38602
38603 2007-05-01  Bruno Haible  <bruno@clisp.org>
38604
38605         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38606         the portability of 'mkdir' to mingw systems.
38607
38608 2007-05-01  Bruno Haible  <bruno@clisp.org>
38609
38610         * doc/headers/google-ranking.txt: New file.
38611
38612 2007-04-30  Eric Blake  <ebb9@byu.net>
38613
38614         Prefer fseeko to fseek.
38615         * modules/getpass (Depends-on): Add fseeko.
38616         * lib/getpass.c (getpass): Use fseeko, not fseek.
38617
38618 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38619
38620         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38621         assumes the sorting is stable, while most qsort implementations
38622         are not.  Use argument addresses to ensure they never compare as
38623         equal.
38624
38625         * tests/test-argp-2.sh (usage-indent test): Fix output
38626         (func_compare): Restore diff options
38627         * tests/test-argp.c: Restore #include "progname.h"
38628
38629 2007-04-29  Bruno Haible  <bruno@clisp.org>
38630
38631         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38633         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38635         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38636         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38637         (TESTS, check_PROGRAMS): Add test-snprintf.
38638         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38639         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38640         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38641         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38642         assertions that fail on HP-UX, OSF/1, or IRIX.
38643         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38644
38645 2007-04-29  Bruno Haible  <bruno@clisp.org>
38646
38647         * MODULES.html.sh (posix_functions): Remove 'contents'.
38648
38649 2007-04-29  Karl Berry  <karl@gnu.org>
38650
38651         * config/srclist.txt (gendocs_template_min): new entry.
38652
38653 2007-04-29  Bruno Haible  <bruno@clisp.org>
38654
38655         Work around fpurge bug on BSD systems.
38656         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38657         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38658         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38659         fpurge to rpl_fpurge if the system already has this function.
38660         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38661         the case where the system already has this function. Correct invariants
38662         on BSD systems.
38663         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38664         BSD systems.
38665
38666 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38667
38668         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38669         proposed by Sven Verdoolaege.
38670
38671         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38672         options.
38673         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38674         (usage and help tests): Update
38675
38676 2007-04-29  Bruno Haible  <bruno@clisp.org>
38677
38678         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38679         Print more information in case of failure. Disable a test on BeOS.
38680
38681 2007-04-29  Bruno Haible  <bruno@clisp.org>
38682
38683         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38684         This helps debugging on systems on which no gdb is available.
38685
38686 2007-04-29  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/freading.h: Improve comments.
38689         * lib/fwriting.h: Likewise.
38690         * tests/test-freading.c (main): Don't check freading immediately after
38691         repositioning. Needed for glibc.
38692
38693 2007-04-29  Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/freading.c (freading): Trivial simplification.
38696
38697 2007-04-28  Bruno Haible  <bruno@clisp.org>
38698
38699         * tests/test-fwriting.c (main): Also test the interaction between
38700         fflush and fwriting.
38701         * modules/fwriting-tests (Depends-on): Add fflush.
38702
38703         * tests/test-freading.c (main): Also test the interaction between
38704         fflush and freading.
38705         * modules/freading-tests (Depends-on): Add fflush.
38706
38707 2007-04-28  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38710         fseeko and ftello.
38711         Suggested by Eric Blake.
38712
38713 2007-04-28  Jim Meyering  <jim@meyering.net>
38714
38715         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38716         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38717         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38718
38719 2007-04-27  Eric Blake  <ebb9@byu.net>
38720
38721         * doc/headers/assert.texi (assert.h): Document assert module use.
38722
38723 2007-04-27  Bruno Haible  <bruno@clisp.org>
38724
38725         * doc/headers/*.texi: New files.
38726         * doc/gnulib.texi (Header File Substitutes): New chapter.
38727         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38728         dependencies.
38729         (standards.info ,standards.html, standards.dvi): Update dependencies.
38730         (mostlyclean, clean): New targets.
38731
38732 2007-04-27  Bruno Haible  <bruno@clisp.org>
38733
38734         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38735         * modules/sysexits (Files, Makefile.am): Update.
38736
38737         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38738         * modules/sys_socket (Files, Makefile.am): Update.
38739
38740         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38741         * modules/sys_stat (Files, Makefile.am): Update.
38742
38743 2007-04-27  Eric Blake  <ebb9@byu.net>
38744
38745         * lib/freading.h: Improve comments.
38746         * lib/fwriting.h: Likewise.
38747         * lib/fflush.c: Likewise.
38748
38749         Fix closein for mingw.
38750         * modules/closein-tests: Add tests for closein.
38751         * tests/test-closein.c: New file.
38752         * tests/test-closein.sh: Likewise.
38753         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38754         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38755
38756 2007-04-27  Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38759         version is < 6.
38760         * lib/math_.h [__DECC]: Likewise.
38761         * lib/stdio_.h [__DECC]: Likewise.
38762         * lib/stdlib_.h [__DECC]: Likewise.
38763         * lib/string_.h [__DECC]: Likewise.
38764         * lib/time_.h [__DECC]: Likewise.
38765         * lib/wchar_.h [__DECC]: Likewise.
38766         * lib/wctype_.h [__DECC]: Likewise.
38767
38768 2007-04-27  Bruno Haible  <bruno@clisp.org>
38769
38770         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38771
38772 2007-04-27  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/fflush.c: Add comments.
38775         * modules/fpurge-tests (Depends-on): Add fflush.
38776         * modules/freadable-tests (Depends-on): Likewise.
38777         * modules/fwritable-tests (Depends-on): Likewise.
38778
38779 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38780
38781         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38782         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38783         Report by Bruno Haible <bruno@clisp.org>.
38784
38785 2007-04-26  Eric Blake  <ebb9@byu.net>
38786
38787         Fix fflush on mingw.
38788         * modules/fflush (Depends-on): Add freading.
38789         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38790         but unread data.
38791
38792 2007-04-26  Eric Blake  <ebb9@byu.net>
38793         and Bruno Haible  <bruno@clisp.org>
38794
38795         Implement freading and fwriting.
38796         * lib/freading.c: New file.
38797         * lib/freading.h: Likewise.
38798         * m4/freading.m4: Likewise.
38799         * modules/freading: Likewise.
38800         * modules/freading-tests: Likewise.
38801         * tests/test-freading.c: Likewise.
38802         * lib/fwriting.c: New file.
38803         * lib/fwriting.h: Likewise.
38804         * m4/fwriting.m4: Likewise.
38805         * modules/fwriting: Likewise.
38806         * modules/fwriting-tests: Likewise.
38807         * tests/test-fwriting.c: Likewise.
38808         * MODULES.html.sh (File stream based Input/Output): Mention them.
38809
38810 2007-04-26  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38813         'long' when we assume it.
38814         Suggested by Eric Blake.
38815
38816 2007-04-26  Bruno Haible  <bruno@clisp.org>
38817
38818         Ensure fseeko, ftello are declared on glibc systems.
38819         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38820         * modules/fseeko (configure.ac-early): Likewise.
38821         * modules/ftello (configure.ac-early): Likewise.
38822         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38823         AC_FUNC_FSEEKO for this.
38824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38825         (gl_CHECK_FSEEKO): Remove macro.
38826
38827 2007-04-26  Bruno Haible  <bruno@clisp.org>
38828
38829         * tests/test-fflush.c (main): Also check the ftell result after
38830         fflush and fseek/fseeko.
38831         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38832         file descriptor position cache in the stream.
38833         * lib/fseeko.c (rpl_fseeko): Likewise.
38834
38835 2007-04-26  Bruno Haible  <bruno@clisp.org>
38836
38837         * modules/fflush-tests (Depends-on): Add fseeko.
38838
38839 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38840             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38841
38842         * lib/argz_.h: ensure error_t definition is obtained in same
38843         mechanism system argz.h would have.
38844         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38845         argz facilities are known bad.  Err on the side of caution if
38846         cross-compiling.
38847
38848 2007-04-25  Eric Blake  <ebb9@byu.net>
38849
38850         * lib/fpurge.c (includes): Use stdlib.h for free.
38851         * tests/test-fflush.c (main): Also test fflush-fseeko.
38852
38853 2007-04-25  Bruno Haible  <bruno@clisp.org>
38854
38855         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38856         * lib/fseeko.c: New file.
38857         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38858         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38859         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38860         gl_FUNC_FSEEKO.
38861         (gl_FUNC_FSEEKO): Invoke it.
38862         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38863         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38864         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38865
38866 2007-04-25  Bruno Haible  <bruno@clisp.org>
38867
38868         * modules/fflush (Depends-on): Add ftello.
38869
38870 2007-04-25  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/ftello-tests: New file.
38873         * tests/test-ftello.c: New file.
38874
38875         * modules/ftello: New file.
38876         * m4/ftello.m4: New file.
38877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38878         HAVE_FTELLO.
38879         * lib/stdio_.h (ftello): New declaration.
38880         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38881         HAVE_FTELLO.
38882
38883 2007-04-25  Bruno Haible  <bruno@clisp.org>
38884
38885         * modules/fseeko-tests: New file.
38886         * tests/test-fseeko.c: New file.
38887
38888         * modules/fseeko: New file.
38889         * m4/fseeko.m4: New file.
38890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38891         HAVE_FSEEKO.
38892         * lib/stdio_.h (fseeko): New declaration.
38893         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38894         HAVE_FSEEKO.
38895
38896 2007-04-25  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38899
38900 2007-04-25  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38903         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38904         * tests/test-unistd.c: Likewise.
38905         * tests/test-fcntl.c: Likewise.
38906
38907 2007-04-23  Eric Blake  <ebb9@byu.net>
38908
38909         * lib/fflush.c: Fix missing include.
38910         Reported by Bruno Haible.
38911
38912 2007-04-23  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38915         Reported by Eric Blake.
38916
38917 2007-04-23  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38920
38921 2007-04-23  Bruno Haible  <bruno@clisp.org>
38922
38923         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38924
38925 2007-04-23  Bruno Haible  <bruno@clisp.org>
38926
38927         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38928         Needed on HP-UX 11.
38929
38930 2007-04-16  Eric Blake  <ebb9@byu.net>
38931
38932         Make fflush rely on fpurge.
38933         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38934         open coding all variants.
38935         * modules/fflush (Depends-on): Add fpurge and unistd.
38936         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38937         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38938
38939         Fix --with-tests compilation on cygwin.
38940         * modules/argmatch-tests (Makefile.am): List gnulib library first
38941         in LDADD.
38942         * modules/argp-tests (Makefile.am): Likewise.
38943         * modules/array-list-tests (Makefile.am): Likewise.
38944         * modules/array-oset-tests (Makefile.am): Likewise.
38945         * modules/avltree-list-tests (Makefile.am): Likewise.
38946         * modules/avltree-oset-tests (Makefile.am): Likewise.
38947         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38948         * modules/carray-list-tests (Makefile.am): Likewise.
38949         * modules/dirname-tests (Makefile.am): Likewise.
38950         * modules/frexp-tests (Makefile.am): Likewise.
38951         * modules/isnanl-tests (Makefile.am): Likewise.
38952         * modules/linked-list-tests (Makefile.am): Likewise.
38953         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38954         * modules/lock-tests (Makefile.am): Likewise.
38955         * modules/rbtree-list-tests (Makefile.am): Likewise.
38956         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38957         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38958         * modules/tls-tests (Makefile.am): Likewise.
38959         * modules/tsearch-tests (Makefile.am): Likewise.
38960         * modules/xvasprintf-tests (Makefile.am): Likewise.
38961
38962         Fix fpurge for cygwin.
38963         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38964         value.
38965         * modules/fpurge-tests (Depends-on): Clean up trash.
38966
38967 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38968
38969         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38970
38971         * m4/autobuild.m4: Re-indent.
38972
38973 2007-04-13  Bruno Haible  <bruno@clisp.org>
38974
38975         * modules/fpurge-tests: New file.
38976         * tests/test-fpurge.c: New file.
38977
38978         * modules/fpurge: New file.
38979         * lib/fpurge.h: New file.
38980         * lib/fpurge.c: New file.
38981         * m4/fpurge.m4: New file.
38982
38983 2007-04-13  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/fbufmode-tests: New file.
38986         * tests/test-fbufmode.c: New file.
38987
38988         * modules/fbufmode: New file.
38989         * lib/fbufmode.h: New file.
38990         * lib/fbufmode.c: New file.
38991         * m4/fbufmode.m4: New file.
38992
38993 2007-04-13  Bruno Haible  <bruno@clisp.org>
38994
38995         * modules/fwritable-tests: New file.
38996         * tests/test-fwritable.c: New file.
38997
38998         * modules/fwritable: New file.
38999         * lib/fwritable.h: New file.
39000         * lib/fwritable.c: New file.
39001         * m4/fwritable.m4: New file.
39002
39003 2007-04-13  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/freadable-tests: New file.
39006         * tests/test-freadable.c: New file.
39007
39008         * modules/freadable: New file.
39009         * lib/freadable.h: New file.
39010         * lib/freadable.c: New file.
39011         * m4/freadable.m4: New file.
39012
39013 2007-04-13  Bruno Haible  <bruno@clisp.org>
39014
39015         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39016         MOSTLYCLEANFILES.
39017
39018 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39019
39020         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39021         gzip bootstrap.conf to avoid dragging in i18n machinery.
39022         (gnulib_tool_option): Use it.
39023
39024 2007-04-13  Bruno Haible  <bruno@clisp.org>
39025
39026         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39027         %F directives.
39028         * tests/test-vasprintf-posix.c (test_function): Likewise.
39029         * tests/test-snprintf-posix.h (test_function): Likewise.
39030         * tests/test-sprintf-posix.h (test_function): Likewise.
39031         * tests/test-fprintf-posix.h (test_function): Likewise.
39032         * tests/test-printf-posix.h (test_function): Likewise.
39033         * tests/test-fprintf-posix.out: Likewise.
39034
39035 2007-04-13  Bruno Haible  <bruno@clisp.org>
39036
39037         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39038         * modules/tls-tests (configure.ac): Likewise.
39039         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39040
39041 2007-04-13  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/tls.c (glthread_tls_get): Fix return type.
39044         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39045
39046 2007-04-12  Eric Blake  <ebb9@byu.net>
39047
39048         * modules/gettime (Depends-on): Remove gettime.
39049         Reported by Dmitry V. Levin.
39050
39051 2007-04-12  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/fflush (Include): Mention <stdio.h>.
39054         * modules/strtoimax (Include): Mention <inttypes.h>.
39055         * modules/strtoumax (Include): Likewise.
39056
39057 2007-04-12  Eric Blake  <ebb9@byu.net>
39058
39059         * .cvsignore: New file.
39060         * .gitignore: Likewise.
39061
39062 2007-04-12  Bruno Haible  <bruno@clisp.org>
39063
39064         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39065         not before, since $(LDADD) often contains libgnu.a.
39066         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39067         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39068         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39069         Needed on Cygwin.
39070
39071 2007-04-12  Eric Blake  <ebb9@byu.net>
39072
39073         Work around glibc's failure to flush stdin on fclose.
39074         * lib/closein.c (close_stdin): Flush stdin before closing.
39075
39076         Work around glibc's failure to reset seekable stdin on exit.
39077         * modules/closein: New module.
39078         * lib/closein.c: New file.
39079         * lib/closein.h: Likewise.
39080         * m4/closein.m4: Likewise.
39081         * MODULES.html.sh (File stream based Input/Output): Document it.
39082
39083 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39084
39085         * gnulib-tool: Rename generated 'autobuild' script to
39086         'do-autobuild' in --create-megatestdir output.
39087
39088         * doc/gnulib.texi (Build robot for gnulib): Fix.
39089
39090 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39091
39092         * modules/sysexits (Depends-on): Add absolute-header.
39093
39094 2007-04-12  Eric Blake  <ebb9@byu.net>
39095
39096         No need to preserve errno on success.
39097         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39098         Reported by Bruno Haible.
39099
39100 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39101
39102         * MODULES.html.sh (Support for maintaining and releasing
39103         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39104
39105 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39106
39107         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39108
39109 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39110
39111         * modules/autobuild: New module.
39112
39113         * m4/autobuild.m4: New file.
39114
39115 2007-04-11  Bruno Haible  <bruno@clisp.org>
39116
39117         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39118         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39130         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39133         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39134         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39135         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39137         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39138         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39140         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39141         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39143         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39144         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39145         Reported by Eric Blake.
39146
39147 2007-04-11  Bruno Haible  <bruno@clisp.org>
39148
39149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39150
39151 2007-04-10  Bruno Haible  <bruno@clisp.org>
39152
39153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39154         for NaN and Infinity. Needed on FreeBSD 6.1.
39155         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39156         regarding results for "%010a" of Infinity and NaN.
39157         * tests/test-vasprintf-posix.c (test_function): Likewise.
39158         * tests/test-snprintf-posix.h (test_function): Likewise.
39159         * tests/test-sprintf-posix.h (test_function): Likewise.
39160         * tests/test-fprintf-posix.h (test_function): Likewise.
39161         * tests/test-printf-posix.h (test_function): Likewise.
39162         * tests/test-fprintf-posix.out: Likewise.
39163
39164 2007-04-10  Bruno Haible  <bruno@clisp.org>
39165
39166         * modules/locale-tests: New file.
39167         * tests/test-locale.c: New file.
39168
39169         * modules/locale: New file.
39170         * lib/locale_.h: New file.
39171         * m4/locale_h.m4: New file.
39172
39173 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39174             Bruno Haible  <bruno@clisp.org>
39175
39176         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39177         be determined, test for availability of the copysignf, copysign,
39178         copysignl functions.
39179         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39180         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39181         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39182
39183 2007-04-09  Eric Blake  <ebb9@byu.net>
39184
39185         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39186         * modules/stdio (Makefile.am): Support fflush.
39187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39188         * modules/fflush: New file.
39189         * lib/fflush.c: Likewise.
39190         * m4/fflush.m4: Likewise.
39191         * modules/fflush-tests: New test.
39192         * tests/test-fflush.c: Likewise.
39193         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39194
39195 2007-04-06  Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39198         (VASNPRINTF): Use signbit for faster determination whether to print a
39199         minus sign.
39200         * modules/vasnprintf (Files): Remove lib/float+.h.
39201         * modules/fprintf-posix (Depends-on): Add signbit.
39202         * modules/snprintf-posix (Depends-on): Likewise.
39203         * modules/sprintf-posix (Depends-on): Likewise.
39204         * modules/vasnprintf-posix (Depends-on): Likewise.
39205         * modules/vasprintf-posix (Depends-on): Likewise.
39206         * modules/vfprintf-posix (Depends-on): Likewise.
39207         * modules/vsnprintf-posix (Depends-on): Likewise.
39208         * modules/vsprintf-posix (Depends-on): Likewise.
39209
39210 2007-04-06  Bruno Haible  <bruno@clisp.org>
39211
39212         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39213         * tests/test-frexpl.c (main): Likewise.
39214         * tests/test-ldexpl.c (main): Likewise.
39215         * modules/frexp-tests (Depends-on): Add signbit.
39216         * modules/frexpl-tests (Depdends-on): Likewise.
39217         * modules/ldexpl-tests (Depdends-on): Likewise.
39218
39219 2007-04-06  Bruno Haible  <bruno@clisp.org>
39220
39221         * modules/signbit-tests: New file.
39222         * tests/test-signbit.c: New file.
39223
39224         * modules/signbit: New file.
39225         * lib/signbitf.c: New file.
39226         * lib/signbitd.c: New file.
39227         * lib/signbitl.c: New file.
39228         * m4/signbit.m4: New file.
39229         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39230         (signbit): New macro.
39231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39232         REPLACE_SIGNBIT.
39233         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39234         REPLACE_FREXPL into math.h.
39235
39236 2007-04-06  Bruno Haible  <bruno@clisp.org>
39237
39238         * modules/isnanf-nolibm-tests: New file.
39239         * tests/test-isnanf.c: New file.
39240
39241         * modules/isnanf-nolibm: New file.
39242         * lib/isnanf.h: New file.
39243         * lib/isnanf.c: New file.
39244         * lib/isnan.c: Consider the USE_FLOAT macro.
39245         * m4/isnanf.m4: New file.
39246
39247 2007-04-06  Bruno Haible  <bruno@clisp.org>
39248
39249         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39250         (Link): New section.
39251
39252         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39253
39254 2007-04-06  Bruno Haible  <bruno@clisp.org>
39255
39256         Assume the 'long double' type.
39257         * m4/longdouble.m4: Remove file.
39258         * config/srclist.txt: Don't mention longdouble.m4.
39259         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39260         * lib/float+.h: Likewise.
39261         * lib/frexp.c: Likewise.
39262         * lib/printf-args.h: Likewise.
39263         * lib/printf-args.c: Likewise.
39264         * lib/printf-frexp.c: Likewise.
39265         * lib/printf-parse.c: Likewise.
39266         * lib/vasnprintf.c: Likewise.
39267         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39268         * m4/intl.m4: Likewise.
39269         * m4/isnanl.m4: Likewise.
39270         * m4/printf.m4: Likewise.
39271         * m4/printf-frexpl.m4: Likewise.
39272         * m4/vasnprintf.m4: Likewise.
39273         * modules/allocsa (Files): Remove m4/longdouble.m4.
39274         * modules/gettext (Files): Likewise.
39275         * modules/relocatable-prog-wrapper (Files): Likewise.
39276         * modules/vasnprintf (Files): Likewise.
39277         * modules/isnanl (Files): Likewise.
39278         (Include): Simplify.
39279         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39280         (Include): Simplify.
39281         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39282         (Include): Simplify.
39283         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39284         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39285         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39286         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39287         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39288         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39289         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39290         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39291         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39292         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39293         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39294         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39295         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39296         * tests/test-isnanl.c: Likewise.
39297         * tests/test-snprintf-posix.h: Likewise.
39298         * tests/test-sprintf-posix.h: Likewise.
39299         * tests/test-vasnprintf-posix.c: Likewise.
39300         * tests/test-vasnprintf-posix2.c: Likewise.
39301         * tests/test-vasprintf-posix.c: Likewise.
39302
39303 2007-04-06  Bruno Haible  <bruno@clisp.org>
39304
39305         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39306         * lib/math_.h [__DECC]: Include the overridden include file through
39307         #include_next, outside the double-inclusion guard.
39308         * lib/stdio_.h [__DECC]: Likewise.
39309         * lib/stdlib_.h [__DECC]: Likewise.
39310         * lib/string_.h [__DECC]: Likewise.
39311         * lib/time_.h [__DECC]: Likewise.
39312         * lib/wchar_.h [__DECC]: Likewise.
39313         * lib/wctype_.h [__DECC]: Likewise.
39314         * lib/inttypes_.h [__DECC]: Likewise.
39315         Reported by Albert Chin <china@thewrittenword.com> in
39316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39317
39318 2007-04-04  Eric Blake  <ebb9@byu.net>
39319
39320         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39321         1.5.x.
39322
39323 2007-04-04  Bruno Haible  <bruno@clisp.org>
39324
39325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39326         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39327
39328 2007-04-04  Bruno Haible  <bruno@clisp.org>
39329
39330         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39331         results for "%010a" of Infinity and NaN.
39332         * tests/test-vasprintf-posix.c (test_function): Likewise.
39333         * tests/test-snprintf-posix.h (test_function): Likewise.
39334         * tests/test-sprintf-posix.h (test_function): Likewise.
39335         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39336         * tests/test-printf-posix.h (test_function): Likewise.
39337         * tests/test-fprintf-posix.out: Update.
39338         Needed for FreeBSD 6.1.
39339
39340 2007-04-04  Bruno Haible  <bruno@clisp.org>
39341
39342         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39343         directly used by the gnulib modules nor by gnulib-tool.
39344
39345 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39346
39347         * DEPENDENCIES: Give overall description of version dependency
39348         desirability.  Use more-typical names for apps.
39349         Add shell, coreutils, diffutils, grep, tar, gzip.
39350
39351 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39352
39353         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39354
39355 2007-04-04  Karl Berry  <karl@gnu.org>
39356
39357         * MODULES.html.sh (func_module): missing '.
39358
39359 2007-04-03  Bruno Haible  <bruno@clisp.org>
39360
39361         * modules/argmatch-tests (Makefile.am): New variable
39362         test_argmatch_LDADD.
39363         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39364         * modules/array-list-tests (Makefile.am): New variable
39365         test_array_list_LDADD.
39366         * modules/array-oset-tests (Makefile.am): New variable
39367         test_array_oset_LDADD.
39368         * modules/avltree-list-tests (Makefile.am): New variable
39369         test_avltree_list_LDADD.
39370         * modules/avltree-oset-tests (Makefile.am): New variable
39371         test_avltree_oset_LDADD.
39372         * modules/avltreehash-list-tests (Makefile.am): New variable
39373         test_avltreehash_list_LDADD.
39374         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39375         test_canonicalize_lgpl_LDADD.
39376         * modules/carray-list-tests (Makefile.am): New variable
39377         test_carray_list_LDADD.
39378         * modules/dirname-tests (Makefile.am): New variable
39379         test_dirname_LDADD.
39380         * modules/linked-list-tests (Makefile.am): New variable
39381         test_linked_list_LDADD.
39382         * modules/linkedhash-list-tests (Makefile.am): New variable
39383         test_linkedhash_list_LDADD.
39384         * modules/rbtree-list-tests (Makefile.am): New variable
39385         test_rbtree_list_LDADD.
39386         * modules/rbtree-oset-tests (Makefile.am): New variable
39387         test_rbtree_oset_LDADD.
39388         * modules/rbtreehash-list-tests (Makefile.am): New variable
39389         test_rbtreehash_list_LDADD.
39390         * modules/xvasprintf-tests (Makefile.am): New variable
39391         test_xvasprintf_LDADD.
39392         Reported by Eric Blake.
39393
39394 2007-04-03  Eric Blake  <ebb9@byu.net>
39395
39396         * DEPENDENCIES: Weaken m4 requirements.
39397
39398 2007-04-03  Bruno Haible  <bruno@clisp.org>
39399
39400         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39401         * modules/isnanl-tests (configure.ac): Likewise.
39402
39403 2007-04-03  Ben Pfaff  <blp@gnu.org>
39404
39405         * modules/iconv_open: Add $(srcdir)/ to source directory
39406         references in Makefile fragments that call gperf, to fix VPATH
39407         builds.
39408
39409 2007-04-03  Bruno Haible  <bruno@clisp.org>
39410
39411         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39412         * lib/ldexpl.c: Undo last change.
39413
39414 2007-04-03  Bruno Haible  <bruno@clisp.org>
39415
39416         * modules/printf-frexpl (Depends-on): Undo last change.
39417         (Files): Add m4/ldexpl.m4.
39418
39419 2007-04-03  Bruno Haible  <bruno@clisp.org>
39420
39421         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39422         * modules/isnanl (Link): New section.
39423
39424         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39425         * modules/frexp (Link): New section.
39426
39427         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39428         * modules/frexpl (Link): New section.
39429
39430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39431         * modules/ldexpl (Link): New section.
39432
39433 2007-04-03  Bruno Haible  <bruno@clisp.org>
39434
39435         * modules/TEMPLATE-EXTENDED: New file.
39436         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39437
39438 2007-04-03  Bruno Haible  <bruno@clisp.org>
39439
39440         * DEPENDENCIES: New file.
39441         Suggested by Simon Josefsson.
39442
39443 2007-04-03  Bruno Haible  <bruno@clisp.org>
39444
39445         * doc/gnulib.texi: Escape @.
39446
39447 2007-04-03  James Youngman  <jay@gnu.org>
39448         and Paul Eggert  <eggert@cs.ucla.edu>
39449
39450         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39451         birthtime on all systems that have birthtime, not just those which
39452         use st_birthtimensec rather than st_birthtim.  Putting zero in
39453         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39454         that the birth time is not available for files on an NFS mount.
39455
39456 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39457
39458         * modules/memxor: Move back from crypto/, suggested by Bruno.
39459         * modules/crypto/hmac-sha1: Fix memxor dependency.
39460
39461         * modules/crypto/gc: Moved from ../.
39462
39463 2007-04-02  Eric Blake  <ebb9@byu.net>
39464
39465         * lib/ldexpl.c (includes): Avoid libm.
39466
39467         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39468
39469 2007-04-02  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39472         on IRIX.
39473
39474 2007-04-02  Bruno Haible  <bruno@clisp.org>
39475
39476         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39477         x86 or x86_64 platforms running MacOS X.
39478         Reported by Ryan Schmidt <@ryandesign.com>.
39479
39480 2007-04-02  Bruno Haible  <bruno@clisp.org>
39481
39482         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39483         i386.
39484
39485 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39486
39487         * modules/crypto/arcfour: Moved from ../.
39488         * modules/crypto/arcfour-tests: Moved from ../.
39489         * modules/crypto/arctwo: Moved from ../.
39490         * modules/crypto/arctwo-tests: Moved from ../.
39491         * modules/crypto/des: Moved from ../.
39492         * modules/crypto/des-tests: Moved from ../.
39493         * modules/crypto/gc-arcfour: Moved from ../.
39494         * modules/crypto/gc-arcfour-tests: Moved from ../.
39495         * modules/crypto/gc-arctwo: Moved from ../.
39496         * modules/crypto/gc-arctwo-tests: Moved from ../.
39497         * modules/crypto/gc-des: Moved from ../.
39498         * modules/crypto/gc-des-tests: Moved from ../.
39499         * modules/crypto/gc-hmac-md5: Moved from ../.
39500         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39501         * modules/crypto/gc-hmac-sha1: Moved from ../.
39502         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39503         * modules/crypto/gc-md2: Moved from ../.
39504         * modules/crypto/gc-md2-tests: Moved from ../.
39505         * modules/crypto/gc-md4: Moved from ../.
39506         * modules/crypto/gc-md4-tests: Moved from ../.
39507         * modules/crypto/gc-md5: Moved from ../.
39508         * modules/crypto/gc-md5-tests: Moved from ../.
39509         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39510         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39511         * modules/crypto/gc-random: Moved from ../.
39512         * modules/crypto/gc-rijndael: Moved from ../.
39513         * modules/crypto/gc-rijndael-tests: Moved from ../.
39514         * modules/crypto/gc-sha1: Moved from ../.
39515         * modules/crypto/gc-sha1-tests: Moved from ../.
39516         * modules/crypto/gc-tests: Moved from ../.
39517         * modules/crypto/hmac-md5: Moved from ../.
39518         * modules/crypto/hmac-md5-tests: Moved from ../.
39519         * modules/crypto/hmac-sha1: Moved from ../.
39520         * modules/crypto/hmac-sha1-tests: Moved from ../.
39521         * modules/crypto/md2: Moved from ../.
39522         * modules/crypto/md2-tests: Moved from ../.
39523         * modules/crypto/md4: Moved from ../.
39524         * modules/crypto/md4-tests: Moved from ../.
39525         * modules/crypto/md5: Moved from ../.
39526         * modules/crypto/md5-tests: Moved from ../.
39527         * modules/crypto/memxor: Moved from ../.
39528         * modules/crypto/rijndael: Moved from ../.
39529         * modules/crypto/rijndael-tests: Moved from ../.
39530         * modules/crypto/sha1: Moved from ../.
39531
39532 2007-03-30  James Youngman  <jay@gnu.org>
39533
39534         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39535         rename() to change the ctime of a file (because ctime is unaffected
39536         by rename on jfs2 on AIX 5.1).
39537         (main): Start by doing cleanup, in case a previous run failed leaving
39538         test files behind.
39539
39540 2007-03-31  Bruno Haible  <bruno@clisp.org>
39541
39542         Support old proprietary implementations of iconv.
39543         * modules/iconv_open: New file.
39544         * lib/iconv_.h: New file.
39545         * m4/iconv_h.m4: New file.
39546         * lib/iconv_open.c: New file.
39547         * lib/iconv_open-aix.gperf: New file.
39548         * lib/iconv_open-hpux.gperf: New file.
39549         * lib/iconv_open-irix.gperf: New file.
39550         * lib/iconv_open-osf.gperf: New file.
39551         * m4/iconv_open.m4: New file.
39552         * modules/linebreak (Depends-on): Add iconv_open.
39553         * modules/striconv (Depends-on): Likewise.
39554         * modules/striconveh (Depends-on): Likewise.
39555         * modules/unicodeio (Depends-on): Likewise.
39556         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39557         (iconv_t)(-1).
39558         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39559         conversion if cd is (iconv_t)(-1).
39560         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39561         is not possible.
39562
39563 2007-03-31  Bruno Haible  <bruno@clisp.org>
39564
39565         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39566         work on Solaris either. Protect also second use of "autodetect_jp".
39567
39568 2007-03-31  Bruno Haible  <bruno@clisp.org>
39569
39570         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39571         the function is not present.
39572
39573 2007-03-31  Bruno Haible  <bruno@clisp.org>
39574
39575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39576         the function is not present.
39577
39578 2007-03-31  Bruno Haible  <bruno@clisp.org>
39579
39580         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39581         a bug in HP-UX iconv_open().
39582
39583 2007-03-31  Bruno Haible  <bruno@clisp.org>
39584
39585         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39586         (Mathematics <math.h>): New section, add fpieee.
39587         (Input/output <stdio.h>): Add fseterr.
39588         (Mathematics <math.h>): New section, add printf-frexp.
39589         (Container data structures): Add sublist.
39590         (Core language properties): Add fpucw, inline.
39591         (Functions for greatest-width integer types <inttypes.h>): Add
39592         imaxabs, imaxdiv, inttypes.
39593         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39594         isnanl-nolibm, ldexp.
39595         (Mathematics <math.h>): New section, add printf-frexpl.
39596         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39597         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39598         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39599         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39600         (Unicode string functions): Add unistr/u*-mbtoucr.
39601         (Java): Add javacomp-script, javaexec-script.
39602         (C#): Add csharpcomp-script, csharpexec-script.
39603         (Support for building libraries and executables): Add havelib,
39604         relocatable-*.
39605         (Support for maintaining and releasing projects): Renamed from
39606         'Support for maintaining and release projects'. Add announce-gen.
39607
39608 2007-03-31  Bruno Haible  <bruno@clisp.org>
39609
39610         * README: Talk primarily about git.
39611         (git and CVS): Renamed from CVS.
39612         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39613         gnulib is available through git.
39614         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39615
39616 2007-03-30  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39619         * lib/poll_.h: Likewise.
39620         * lib/stat_.h: Likewise.
39621         * lib/sys_time_.h: Likewise.
39622         * lib/sysexit_.h: Likewise.
39623         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39624         * lib/stdbool_.h: Likewise.
39625         * lib/byteswap_.h: Add double-inclusion guard.
39626
39627 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39628
39629         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39630
39631 2007-03-30  Karl Berry  <karl@gnu.org>
39632
39633         * config/srclist-update: double space after USA in the license
39634         substitution, since that's how it's usually (?) written.
39635
39636 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39637
39638         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39639         reported by Bruno Haible.
39640
39641 2007-03-29  Bruno Haible  <bruno@clisp.org>
39642
39643         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39644         a bug in AIX iconv().
39645
39646 2007-03-29  Bruno Haible  <bruno@clisp.org>
39647
39648         * modules/ldexpl-tests: New file.
39649         * tests/test-ldexpl.c: New file.
39650
39651 2007-03-29  Bruno Haible  <bruno@clisp.org>
39652
39653         * lib/ldexpl.c: Include fpucw.h.
39654         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39655         multiplication.
39656         * modules/ldexpl (Depends-on): Add fpucw.
39657
39658 2007-03-29  Bruno Haible  <bruno@clisp.org>
39659
39660         * modules/ldexpl: New file.
39661         * m4/ldexpl.m4: New file.
39662         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39663         set.
39664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39665         REPLACE_LDEXPL.
39666         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39667         REPLACE_LDEXPL.
39668         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39669         gl_FUNC_LDEXPL_WORKS.
39670         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39671         * modules/mathl (Files): Remove lib/ldexpl.c.
39672         (Depends-on): Add ldexpl.
39673
39674 2007-03-29  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39677
39678 2007-03-29  Bruno Haible  <bruno@clisp.org>
39679
39680         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39681         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39682         and possibly also HP-UX.
39683         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39684         work on AIX, IRIX, HP-UX, OSF/1.
39685         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39686         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39687         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39688         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39689         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39690         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39691
39692 2007-03-29  Bruno Haible  <bruno@clisp.org>
39693
39694         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39695
39696 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39697
39698         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39699         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39700
39701 2007-03-29  Eric Blake  <ebb9@byu.net>
39702
39703         * lib/acl-internal.h: Remove redundant include.
39704         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39705         Cygwin when a file is locked.
39706
39707 2007-03-29  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39710         file.
39711         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39712
39713 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39714
39715         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39716         try to remove a parent directory if the child couldn't be removed
39717         (except for the first rmdir, which could fail because the child
39718         doesn't exist).  Problem reported by Jeff Blaine in
39719         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39720
39721 2007-03-28  Bruno Haible  <bruno@clisp.org>
39722
39723         * lib/striconveh.c (utf8conv_carefully): New function.
39724         (mem_cd_iconveh_internal): Invoke it.
39725
39726 2007-03-28  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39729         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39730         input.
39731         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39732         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39733         unistr/u8-uctomb.
39734
39735 2007-03-28  Bruno Haible  <bruno@clisp.org>
39736
39737         * modules/unistr/u8-mbtoucr: New file.
39738         * lib/unistr/u8-mbtoucr.c: New file.
39739         * modules/unistr/u16-mbtoucr: New file.
39740         * lib/unistr/u16-mbtoucr.c: New file.
39741         * modules/unistr/u16-mbtoucr: New file.
39742         * lib/unistr/u16-mbtoucr.c: New file.
39743         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39744
39745 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39746             Bruno Haible  <bruno@clisp.org>
39747
39748         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39749         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39750         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39751
39752         * m4/stdio_h.m4: Add stubs for vasprintf too.
39753
39754         * modules/stdio: Support vasprintf in sed command.
39755
39756         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39757         vasprintf.h.  Add stdio module indicator.
39758
39759         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39760         vasprintf.h.
39761
39762         * lib/vasprintf.h: File removed.
39763
39764         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39765         * lib/vasprintf.c: Ditto.
39766         * lib/xvasprintf.c: Ditto.
39767         * tests/test-vasprintf-posix.c: Ditto.
39768         * tests/test-vasprintf.c: Ditto.
39769
39770 2007-03-27  Bruno Haible  <bruno@clisp.org>
39771
39772         Make vasnprintf multithread-safe.
39773         * lib/vasnprintf.c (decimal_point_char): New function.
39774         (VASNPRINTF): Use it.
39775         Suggested by Simon Josefsson.
39776
39777 2007-03-27  Eric Blake  <ebb9@byu.net>
39778
39779         Support sub-second birthtime on cygwin.
39780         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39781         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39782         (get_stat_birthtime): Also work with st_birthtim.
39783
39784 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39785
39786         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39787         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39788         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39789         (get_stat_birthtime_ns): Simplify compile-time tests.
39790         (get_stat_birthtime): Change the API to look like
39791         get_stat_mtime etc., except return a negative tv_nsec on error.
39792         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39793         Don't check for "spare" fields.
39794         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39795         or for struct stat.st_birthtime, as these tests aren't used.
39796         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39797
39798 2007-03-27  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/stat-time.h: Include <sys/stat.h>.
39801
39802 2007-03-27  James Youngman  <jay@gnu.org>
39803
39804         * lib/stat-time.h (get_stat_birthtime): New function for
39805           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39806         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39807           and its variants.
39808         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39809         * modules/stat-time-test: New file.
39810         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39811
39812 2007-03-26  Bruno Haible  <bruno@clisp.org>
39813
39814         Better support of signalling NaNs.
39815         * lib/atanl.c: Include isnanl.h.
39816         (atanl): Perform test for NaN at the beginning of the function and
39817         through a call to isnanl.
39818         * lib/cosl.c: Include isnanl.h.
39819         (cosl): Perform test for NaN at the beginning of the function and
39820         through a call to isnanl.
39821         * lib/ldexpl.c: Include isnanl.h.
39822         (ldexpl): Perform test for NaN through a call to isnanl.
39823         * lib/logl.c: Include isnanl.h.
39824         (logl): Perform test for NaN at the beginning of the function and
39825         through a call to isnanl.
39826         * lib/sinl.c: Include isnanl.h.
39827         (sinl): Perform test for NaN at the beginning of the function and
39828         through a call to isnanl.
39829         * lib/sqrtl.c: Include isnanl.h.
39830         (sqrtl): Perform test for NaN at the beginning of the function and
39831         through a call to isnanl.
39832         * lib/tanl.c: Include isnanl.h.
39833         (tanl): Perform test for NaN at the beginning of the function and
39834         through a call to isnanl.
39835         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39836         * modules/mathl (Depends-on): Add isnanl.
39837
39838 2007-03-26  Eric Blake  <ebb9@byu.net>
39839
39840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39841         regression in logic sense of previous patch.
39842
39843 2007-03-26  Bruno Haible  <bruno@clisp.org>
39844
39845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39846         unportable shell command "if ! ...".
39847         Reported by Ralf Wildenhues.
39848
39849 2007-03-25  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39852         <sysexits.h> file, and only add EX_CONFIG.
39853         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39854         absolute file name and whether it is sufficient. Substitute also
39855         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39856         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39857         ABSOLUTE_SYSEXITS_H into sysexits.h.
39858
39859 2007-03-25  Bruno Haible  <bruno@clisp.org>
39860
39861         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39862         hints is NULL.
39863
39864 2007-03-25  Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39867         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39868
39869 2007-03-25  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/vasnprintf.c: Include langinfo.h.
39872         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39873         multithread-safe.
39874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39875         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39881         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39883         Reported by Simon Josefsson.
39884
39885 2007-03-25  Bruno Haible  <bruno@clisp.org>
39886
39887         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39888         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39889         * modules/vasnprintf (Depends-on): Add stdint.
39890
39891 2007-03-25  Bruno Haible  <bruno@clisp.org>
39892
39893         * modules/fpieee: New file.
39894         * m4/fpieee.m4: New file.
39895         * modules/isnan-nolibm (Depends-on): Add fpieee.
39896         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39897         * modules/isnanl (Depends-on): Add fpieee.
39898
39899 2007-03-25  Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39902
39903 2007-03-25  Bruno Haible  <bruno@clisp.org>
39904
39905         Avoid test failures on IRIX 6.5.
39906         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39907         (main): Use it.
39908         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39909         macros.
39910         (main): Use them.
39911
39912 2007-03-25  Bruno Haible  <bruno@clisp.org>
39913
39914         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39915         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39916         exists but doesn't work.
39917         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39918         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39920         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39921
39922 2007-03-25  Bruno Haible  <bruno@clisp.org>
39923
39924         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39925         returns inf. Needed on IRIX 6.5.
39926
39927 2007-03-25  Bruno Haible  <bruno@clisp.org>
39928
39929         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39930         (main): Use isnanl instead of x != x idiom.
39931         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39932
39933         * tests/test-frexp.c: Include isnan.h.
39934         (main): Use isnan instead of x != x idiom.
39935         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39936
39937 2007-03-25  Bruno Haible  <bruno@clisp.org>
39938
39939         * tests/test-frexp.c (NaN): New function/macro.
39940         (main): Use it instead of 0.0 / 0.0.
39941         * tests/test-isnan.c (NaN): New function/macro.
39942         (main): Use it instead of 0.0 / 0.0.
39943         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39944         (test_function): Use it instead of 0.0 / 0.0.
39945         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39946         (test_function): Use it instead of 0.0 / 0.0.
39947         * tests/test-snprintf-posix.h (NaN): New function/macro.
39948         (test_function): Use it instead of 0.0 / 0.0.
39949         * tests/test-sprintf-posix.h (NaN): New function/macro.
39950         (test_function): Use it instead of 0.0 / 0.0.
39951         * tests/test-fprintf-posix.h (NaN): New function/macro.
39952         (test_function): Use it instead of 0.0 / 0.0.
39953         * tests/test-printf-posix.h (NaN): New function/macro.
39954         (test_function): Use it instead of 0.0 / 0.0.
39955
39956         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39957
39958 2007-03-25  Bruno Haible  <bruno@clisp.org>
39959
39960         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39961
39962 2007-03-25  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/regexec.c (merge_state_with_log): Make static.
39965
39966 2007-03-25  Bruno Haible  <bruno@clisp.org>
39967
39968         * lib/trigl.c (kernel_rem_pio2): Make static.
39969
39970 2007-03-25  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/sincosl.c (sincosl_table): Make static.
39973
39974 2007-03-25  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39977         if the compiler does not support C99.
39978
39979 2007-03-25  Bruno Haible  <bruno@clisp.org>
39980
39981         * modules/time (Makefile.am): Ensure all rule action lines start with a
39982         tab.
39983
39984 2007-03-24  Bruno Haible  <bruno@clisp.org>
39985
39986         * modules/tsearch-tests: New file.
39987         * tests/test-tsearch.sh: New file.
39988         * tests/test-tsearch.c: New file, mostly copied from glibc.
39989
39990         * modules/search-tests: New file.
39991         * tests/test-search.c: New file.
39992
39993         * modules/search: New file.
39994         * lib/search_.h: New file, incorporating lib/tsearch.h.
39995         * m4/search_h.m4: New file.
39996         * lib/tsearch.h: Remove file.
39997         * lib/tsearch.c: Include search.h instead of tsearch.h.
39998         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39999         HAVE_TSEARCH.
40000         * modules/tsearch (Files): Remove lib/tsearch.h.
40001         (Depends-on): Add search.
40002         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40003         (Include): Change tsearch.h into search.h.
40004
40005 2007-03-24  Bruno Haible  <bruno@clisp.org>
40006
40007         * modules/fpucw: New file.
40008         * lib/fpucw.h: New file.
40009         * lib/frexp.c: Include fpucw.h.
40010         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40011         (FUNC): Use them.
40012         * lib/printf-frexp.c: Include fpucw.h.
40013         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40014         (FUNC): Use them.
40015         * lib/vasnprintf.c: Include fpucw.h.
40016         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40017         'long double' calculations.
40018         * tests/test-frexpl.c: Include fpucw.h.
40019         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40020         * tests/test-printf-frexpl.c: Include fpucw.h.
40021         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40022         * modules/frexpl (Depends-on): Add fpucw.
40023         * modules/printf-frexpl (Depends-on): Likewise.
40024         * modules/fprintf-posix (Depends-on): Likewise.
40025         * modules/snprintf-posix (Depends-on): Likewise.
40026         * modules/sprintf-posix (Depends-on): Likewise.
40027         * modules/vasnprintf-posix (Depends-on): Likewise.
40028         * modules/vasprintf-posix (Depends-on): Likewise.
40029         * modules/vfprintf-posix (Depends-on): Likewise.
40030         * modules/vsnprintf-posix (Depends-on): Likewise.
40031         * modules/vsprintf-posix (Depends-on): Likewise.
40032         * modules/frexpl-tests (Depends-on): Likewise.
40033         * modules/printf-frexpl-tests (Depends-on): Likewise.
40034
40035 2007-03-24  Bruno Haible  <bruno@clisp.org>
40036
40037         * lib/float+.h: New file.
40038         * lib/isnan.c: Include float+.h.
40039         (SIZE): New macro.
40040         (FUNC): Compare only SIZE bytes of the value.
40041         * lib/vasnprintf.c: Include float+.h.
40042         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40043         SIZEOF_LDBL or SIZEOF_DBL bytes.
40044         * modules/isnan-nolibm (Files): Add lib/float+.h.
40045         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40046         * modules/isnanl (Files): Add lib/float+.h.
40047         * modules/vasnprintf (Files): Add lib/float+.h.
40048
40049 2007-03-24  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40052         include isnanl-nolibm.h.
40053
40054 2007-03-24  Bruno Haible  <bruno@clisp.org>
40055
40056         * tests/test-read-file.c (main): Don't produce spurious output for
40057         expected situations. Make the test fail if it encountered unexpected
40058         results.
40059
40060 2007-03-24  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40063         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40064
40065 2007-03-24  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40068
40069 2007-03-24  Bruno Haible  <bruno@clisp.org>
40070
40071         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40072         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40073
40074         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40075         * modules/utf8-ucs4: Turn into a symbolic link to module
40076         unistr/u8-mbtouc.
40077
40078         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40079         utf8-ucs4-unsafe.
40080         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40081         unistr/u8-mbtouc-unsafe.
40082
40083         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40084         * modules/utf16-ucs4: Turn into a symbolic link to module
40085         unistr/u16-mbtouc.
40086
40087         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40088         utf16-ucs4-unsafe.
40089         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40090         unistr/u16-mbtouc-unsafe.
40091
40092         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40093         * modules/ucs4-utf8: Turn into a symbolic link to module
40094         unistr/u8-ubtomb.
40095
40096         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40097         * modules/ucs4-utf16: Turn into a symbolic link to module
40098         unistr/u16-ubtomb.
40099
40100 2007-03-24  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40103         Enable the function only if HAVE_INLINE.
40104         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40105         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40106         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40107         Enable the function only if HAVE_INLINE.
40108         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40109         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40110         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40111         Enable the function only if HAVE_INLINE.
40112         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40113         Enable the function only if HAVE_INLINE.
40114         * modules/utf8-ucs4: Update.
40115         * modules/utf8-ucs4-unsafe: Update.
40116         * modules/utf16-ucs4: Update.
40117         * modules/utf16-ucs4-unsafe: Update.
40118         * modules/ucs4-utf8: Update.
40119         * modules/ucs4-utf16: Update.
40120
40121 2007-03-24  Bruno Haible  <bruno@clisp.org>
40122
40123         * lib/utf8-ucs4.h: Remove file.
40124         * lib/utf8-ucs4-unsafe.h: Remove file.
40125         * lib/utf16-ucs4.h: Remove file.
40126         * lib/utf16-ucs4-unsafe.h: Remove file.
40127         * lib/ucs4-utf8.h: Remove file.
40128         * lib/ucs4-utf16.h: Remove file.
40129         * lib/unistr.h: Include their previous contents.
40130         * m4/utf-ucs4.m4: Remove file.
40131         * m4/ucs4-utf.m4: Remove file.
40132         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40133         (Depends-on): Add unistr/base.
40134         (configure.ac): Remove gl_UTF_UCS4.
40135         (Makefile.am): Update.
40136         (Include): Change to unistr.h.
40137         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40138         (Depends-on): Add unistr/base.
40139         (configure.ac): Remove gl_UTF_UCS4.
40140         (Makefile.am): Update.
40141         (Include): Change to unistr.h.
40142         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40143         (Depends-on): Add unistr/base.
40144         (configure.ac): Remove gl_UTF_UCS4.
40145         (Makefile.am): Update.
40146         (Include): Change to unistr.h.
40147         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40148         (Depends-on): Add unistr/base.
40149         (configure.ac): Remove gl_UTF_UCS4.
40150         (Makefile.am): Update.
40151         (Include): Change to unistr.h.
40152         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40153         (Depends-on): Add unistr/base.
40154         (configure.ac): Remove gl_UCS4_UTF.
40155         (Makefile.am): Update.
40156         (Include): Change to unistr.h.
40157         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40158         (Depends-on): Add unistr/base.
40159         (configure.ac): Remove gl_UCS4_UTF.
40160         (Makefile.am): Update.
40161         (Include): Change to unistr.h.
40162         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40163         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40164         utf8-ucs4-unsafe.h.
40165         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40166         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40167         utf16-ucs4-unsafe.h.
40168         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40169         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40170         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40171         * lib/unistr/u8-strchr.c: Likewise.
40172         * lib/unistr/u8-strrchr.c: Likewise.
40173         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40174         * lib/unistr/u16-strchr.c: Likewise.
40175         * lib/unistr/u16-strrchr.c: Likewise.
40176         * lib/striconveh.c: Update.
40177         * lib/linebreak.c: Update.
40178
40179 2007-03-24  Bruno Haible  <bruno@clisp.org>
40180
40181         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40182         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40183
40184 2007-03-22  Bruno Haible  <bruno@clisp.org>
40185
40186         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40187
40188 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40189
40190         * MODULES.html.sh (File system functions): New module write-any-file.
40191         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40192         * m4/write-any-file.m4: New files.
40193
40194 2007-03-23  Eric Blake  <ebb9@byu.net>
40195
40196         * gnulib-tool: Rearrange space-tab sequences, since some editors
40197         like to eat them.
40198
40199 2007-03-23  Eric Blake  <ebb9@byu.net>
40200
40201         * lib/version-etc.c (version_etc_va): Update license wording to
40202         be more concise.  Recommended by Richard Stallman.
40203
40204 2007-03-22  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/poll.c (MSG_PEEK): New fallback definition.
40207
40208 2007-03-22  Bruno Haible  <bruno@clisp.org>
40209
40210         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40211         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40212         (main): Update.
40213         Fixes a compilation error on BeOS.
40214
40215 2007-03-22  Bruno Haible  <bruno@clisp.org>
40216
40217         * modules/frexpl-tests: New file.
40218         * tests/test-frexpl.c: New file.
40219
40220         * modules/frexpl: New file.
40221         * m4/frexpl.m4: New file.
40222         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40223         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40225         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40226         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40227         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40228
40229 2007-03-22  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/frexpl.c: Share code with lib/frexp.c.
40232         * modules/mathl (Files): Add lib/frexp.c.
40233         (Depends-on): Add isnanl-nolibm.
40234
40235 2007-03-22  Bruno Haible  <bruno@clisp.org>
40236
40237         * modules/printf-frexp (Files): Add m4/frexp.m4.
40238         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40239         only if the found frexp function actually works.
40240
40241 2007-03-22  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/frexp.c: Remove older implementation that uses divisions.
40244
40245 2007-03-21  Bruno Haible  <bruno@clisp.org>
40246
40247         * modules/frexp-tests: New file.
40248         * tests/test-frexp.c: New file.
40249
40250         * modules/frexp: New file.
40251         * lib/frexp.c: New file.
40252         * m4/frexp.m4: New file.
40253         * lib/math_.h (frexp): New declaration.
40254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40255         REPLACE_FREXP.
40256         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40257
40258 2007-03-21  Bruno Haible  <bruno@clisp.org>
40259
40260         * modules/isnanl-tests: New file.
40261         * tests/test-isnanl.c: New file.
40262
40263         * modules/isnanl: New file.
40264         * lib/isnanl.h: New file.
40265         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40266         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40267         gl_FUNC_ISNANL_WORKS.
40268         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40269         New macros.
40270
40271 2007-03-21  Bruno Haible  <bruno@clisp.org>
40272
40273         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40274         lib/isnanl.h.
40275         (Include): Update.
40276         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40277         * lib/vasnprintf.c: Update.
40278         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40279         tests/test-isnanl.h, remove tests/test-isnanl.c.
40280         (Makefile.am): Update.
40281         * tests/test-isnanl-nolibm.c: New file.
40282         * tests/test-isnanl.h: New file.
40283         * tests/test-isnanl.c: Remove file.
40284
40285 2007-03-21  Jim Meyering  <jim@meyering.net>
40286
40287         When trying to open ".", treat ESTALE like EACCES.
40288         * lib/savewd.c (savewd_save): Resort to forking not just upon
40289         failure with EACCES, but also when errno is ESTALE.
40290
40291 2007-03-20  Bruno Haible  <bruno@clisp.org>
40292
40293         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40294         Needed on AIX 5.1. Reported by Matthew Woehlke.
40295
40296 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40297
40298         Suggestions by Bruno Haible:
40299         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40300         our own.
40301         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40302         * modules/acl (Depends-on): Add gettext.
40303
40304 2007-03-19  Bruno Haible  <bruno@clisp.org>
40305
40306         * modules/iconvme: Remove file.
40307         * lib/iconvme.h: Remove file.
40308         * lib/iconvme.c: Remove file.
40309         * m4/iconvme.m4: Remove file.
40310
40311 2007-03-19  Bruno Haible  <bruno@clisp.org>
40312
40313         * doc/relocatable-maint.texi: Break long shell script line.
40314         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40315
40316 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40317
40318         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40319         handle file_has_acl.
40320         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40321         * lib/acl.c: Move header inclusions and related macro defns into
40322         lib/acl-internal.h.
40323         (S_ISLNK): Remove defn, since that's now done for us.
40324         (file_has_acl): Move to lib/file-has-acl.c.
40325         Call acl_trivial if available.  This is the crucial part of the fix.
40326         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40327         shared within the library.  Rewrite a bit, partly to make it compatible
40328         with the GNU coding style.
40329         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40330         Remove unnecessary double-quotes.
40331         Don't test for acl_to_text; the build will catch that.
40332         Replace acl_entries if it doesn't exist and it is needed.
40333         Check for -lsec and acl_trivial (as used on Solaris 10).
40334         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40335         lib/file-has-acl.c.
40336         (Depends-on): Add sys_stat, for S_ISLNK.
40337
40338 2007-03-19  Ben Pfaff  <blp@gnu.org>
40339
40340         * doc/gnulib.texi: Fix typos.
40341         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40342
40343 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40344
40345         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40346         If size is zero here, buf must be zero.
40347
40348 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40349
40350         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40351         <bruno@clisp.org>.
40352
40353 2007-03-18  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40356         Suggested by Eric Blake.
40357
40358 2007-03-18  Ben Pfaff  <blp@gnu.org>
40359
40360         * doc/relocatable.texi: Recommend using as prefix a directory
40361         that does not exist and will never be created.  Based on
40362         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40363         and others.
40364
40365 2007-03-17  Bruno Haible  <bruno@clisp.org>
40366
40367         * lib/fchownat.c: Include lchown.h.
40368
40369 2007-03-17  Bruno Haible  <bruno@clisp.org>
40370
40371         Fix endless loop when the given allocated size was > INT_MAX.
40372         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40373         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40374         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40375         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40376         * lib/sprintf.c (sprintf): Likewise.
40377
40378 2007-03-17  Bruno Haible  <bruno@clisp.org>
40379
40380         * tests/test-argp-2.sh (func_compare): Output a context diff.
40381
40382 2007-03-17  Bruno Haible  <bruno@clisp.org>
40383
40384         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40385         locale's decimal-point character.
40386
40387 2007-03-17  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40390         before comparing it. Needed because on some platforms (e.g. x86) a
40391         'long double' occupies less bytes than sizeof (long double).
40392
40393 2007-03-17  Bruno Haible  <bruno@clisp.org>
40394
40395         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40396         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40397         * tests/test-getaddrinfo.c (simple): Likewise.
40398         * tests/test-read-file.c (main): Likewise.
40399
40400 2007-03-17  Bruno Haible  <bruno@clisp.org>
40401
40402         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40403
40404 2007-03-17  Bruno Haible  <bruno@clisp.org>
40405
40406         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40407         unused variable.
40408
40409 2007-03-17  Bruno Haible  <bruno@clisp.org>
40410
40411         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40412         * tests/test-c-strncasecmp.c: Likewise.
40413
40414 2007-03-17  Bruno Haible  <bruno@clisp.org>
40415
40416         * modules/stdlib (Depends-on): Add unistd.
40417         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40418         Needed for MacOS X 10.3.
40419
40420 2007-03-17  Bruno Haible  <bruno@clisp.org>
40421
40422         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40423
40424 2007-03-17  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40427
40428 2007-03-17  Bruno Haible  <bruno@clisp.org>
40429
40430         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40431         to reflect files copied from gnulib (with or without modifications).
40432         Suggested by Jim Meyering.
40433
40434 2007-03-17  Eric Blake  <ebb9@byu.net>
40435
40436         * NEWS: Document stdlib change from 2007-02-18.
40437
40438 2007-03-17  Jim Meyering  <jim@meyering.net>
40439
40440         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40441         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40442         someone uses a name containing shell meta-characters.
40443         Reported by Alfred M. Szmidt.
40444
40445         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40446
40447 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40448
40449         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40450         and copy gettext configuration files only if configure.ac contains
40451         a use of AM_GNU_GETTEXT_VERSION.
40452
40453 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40454
40455         * build-aux/bootstrap (gnulib_name): New variable.
40456         (gnulib_tool_options): Use it.
40457
40458 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40459
40460         * tests/test-des.c: Use new namespace.
40461
40462 2007-03-15  Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40465         Reported by James Youngman <jay@gnu.org>.
40466
40467 2007-03-15  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40470         declared prototype. Needed with cc on OSF/1 5.1.
40471
40472 2007-03-15  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40475         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40476         (struct gl_list_implementation): Add dispose_fn argument to the
40477         'create_empty', 'create' methods.
40478         (struct gl_list_impl_base): Add field 'dispose_fn'.
40479         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40480         argument.
40481         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40482         dispose_fn argument.
40483         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40484         dispose_fn on the dropped values.
40485         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40486         dispose_fn argument.
40487         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40488         dropped values.
40489         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40490         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40491         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40492         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40493         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40494         argument.
40495         (gl_tree_list_free): Call dispose_fn on the dropped values.
40496         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40497         the dropped values.
40498         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40499         Add dispose_fn argument.
40500         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40501         Call dispose_fn on the dropped values.
40502         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40503         Add dispose_fn argument.
40504         (gl_sublist_create): Initialize the 'dispose_fn' field.
40505         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40506         * tests/test-array_list.c (main): Update.
40507         * tests/test-carray_list.c (main): Update.
40508         * tests/test-avltree_list.c (main): Update.
40509         * tests/test-rbtree_list.c (main): Update.
40510         * tests/test-avltreehash_list.c (main): Update.
40511         * tests/test-rbtreehash_list.c (main): Update.
40512         * tests/test-linked_list.c (main): Update.
40513         * tests/test-linkedhash_list.c (main): Update.
40514         * tests/test-array_oset.c (main): Update.
40515
40516 2007-03-15  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40519         (gl_oset_create_empty): Add dispose_fn argument.
40520         (struct gl_oset_implementation): Add dispose_fn argument to
40521         'create_empty' method.
40522         (struct gl_oset_impl_base): Add dispose_fn field.
40523         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40524         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40525         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40526         values.
40527         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40528         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40529         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40530         dropped value.
40531         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40532         dropped value.
40533         * tests/test-array_oset.c (main): Update.
40534         * tests/test-avltree_oset.c (main): Update.
40535         * tests/test-rbtree_oset.c (main): Update.
40536         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40537
40538 2007-03-13  Bruno Haible  <bruno@clisp.org>
40539
40540         * tests/test-stdbool.c (i): Update after last patch.
40541
40542 2007-03-12  Bruno Haible  <bruno@clisp.org>
40543
40544         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40545         the iswprint macro. Needed on Solaris 2.5.1.
40546
40547 2007-03-12  Bruno Haible  <bruno@clisp.org>
40548
40549         * tests/test-printf-frexp.c (main): Declare x as volatile.
40550
40551 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40552
40553         * doc/gnulib.texi (Build robot for gnulib): New section.
40554
40555 2007-03-12  Jim Meyering  <jim@meyering.net>
40556
40557         * build-aux/bootstrap: New file.
40558         * build-aux/bootstrap.conf: New file, from coreutils.
40559
40560 2007-03-11  Bruno Haible  <bruno@clisp.org>
40561
40562         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40563
40564 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40565
40566         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40567         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40568         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40569
40570 2007-03-11  Bruno Haible  <bruno@clisp.org>
40571
40572         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40573         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40574
40575 2007-03-11  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40578         formula. Needed for SunPRO C 5.0.
40579
40580 2007-03-11  Bruno Haible  <bruno@clisp.org>
40581
40582         * modules/long-options (Depends-on): Add getopt.
40583
40584 2007-03-11  Bruno Haible  <bruno@clisp.org>
40585
40586         * modules/modechange (Depends-on): Add stdbool.
40587
40588 2007-03-11  Bruno Haible  <bruno@clisp.org>
40589
40590         * modules/i-ring (Depends-on): Add stdbool.
40591
40592 2007-03-11  Bruno Haible  <bruno@clisp.org>
40593
40594         * modules/gc-des (Depends-on): Add stdbool.
40595
40596 2007-03-11  Bruno Haible  <bruno@clisp.org>
40597
40598         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40599
40600 2007-03-11  Bruno Haible  <bruno@clisp.org>
40601
40602         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40603
40604 2007-03-11  Bruno Haible  <bruno@clisp.org>
40605
40606         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40607
40608 2007-03-11  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/vasnprintf.c (sprintf): Undefine.
40611
40612 2007-03-11  Bruno Haible  <bruno@clisp.org>
40613
40614         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40615         initializers in SunPRO C and Compaq C compilers.
40616
40617 2007-03-11  Bruno Haible  <bruno@clisp.org>
40618
40619         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40620         decrementing code ANSI C compliant.
40621
40622 2007-03-11  Bruno Haible  <bruno@clisp.org>
40623
40624         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40625         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40626
40627 2007-03-11  Bruno Haible  <bruno@clisp.org>
40628
40629         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40630         <stdbool.h> substitute doesn't pass.
40631
40632 2007-03-11  Bruno Haible  <bruno@clisp.org>
40633
40634         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40635
40636 2007-03-11  Bruno Haible  <bruno@clisp.org>
40637
40638         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40639         script, for submission to autobuild.josefsson.org.
40640
40641 2007-03-10  Bruno Haible  <bruno@clisp.org>
40642
40643         * modules/canonicalize-lgpl-tests: New file.
40644         * tests/test-canonicalize-lgpl.sh: New file.
40645         * tests/test-canonicalize-lgpl.c: New file.
40646
40647         * modules/c-strcase-tests: New file.
40648         * tests/test-c-strcase.sh: New file.
40649         * tests/test-c-strcasecmp.c: New file.
40650         * tests/test-c-strncasecmp.c: New file.
40651
40652         * modules/atexit-tests: New file.
40653         * tests/test-atexit.sh: New file.
40654         * tests/test-atexit.c: New file.
40655
40656 2007-03-10  Bruno Haible  <bruno@clisp.org>
40657
40658         * tests/test-binary-io.sh: Use temporary filenames that are not so
40659         likely to clash with those of other tests (in a parallel make).
40660         * tests/test-binary-io.c: Likewise.
40661
40662 2007-03-10  Bruno Haible  <bruno@clisp.org>
40663
40664         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40665         fallback; use #error instead.
40666         Suggested by Simon Josefsson.
40667
40668 2007-03-10  Bruno Haible  <bruno@clisp.org>
40669
40670         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40671         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40672         first and the last.
40673
40674 2007-03-10  Bruno Haible  <bruno@clisp.org>
40675
40676         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40677
40678 2007-03-10  Bruno Haible  <bruno@clisp.org>
40679
40680         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40681         "make distcheck".
40682         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40683         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40684         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40685
40686 2007-03-10  Bruno Haible  <bruno@clisp.org>
40687
40688         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40689         variable.
40690         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40691         variable.
40692
40693 2007-03-09  Eric Blake  <ebb9@byu.net>
40694         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40695
40696         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40697         types are not being provided by gnulib.
40698         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40699         types are supported.
40700
40701 2007-03-10  Bruno Haible  <bruno@clisp.org>
40702
40703         * lib/stdio_.h (__attribute__): New macro.
40704         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40705         vsprintf): Specify __attribute__ __format__ for GCC.
40706         Suggested by Eric Blake.
40707
40708 2007-03-09  Bruno Haible  <bruno@clisp.org>
40709
40710         * modules/printf-posix-tests: New file.
40711         * tests/test-printf-posix.sh: New file.
40712         * tests/test-printf-posix.c: New file.
40713
40714         * modules/printf-posix: New file.
40715         * lib/printf.c: New file.
40716         * m4/printf-posix-rpl.m4: New file.
40717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40718         REPLACE_PRINTF.
40719         * lib/stdio_.h (printf): New declaration.
40720         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40721         ____strfmon____): New macros.
40722         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40723         REPLACE_PRINTF.
40724
40725 2007-03-09  Bruno Haible  <bruno@clisp.org>
40726
40727         * tests/test-vasnprintf-posix2.sh: New file.
40728         * tests/test-vasnprintf-posix2.c: New file.
40729         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40730         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40731         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40732
40733         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40734         a locale dependent decimal point, rather than always '.'.
40735
40736 2007-03-09  Eric Blake  <ebb9@byu.net>
40737
40738         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40739         spite of platforms like Tandem/NSK that define it to -1.
40740
40741 2007-03-08  Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/vprintf-posix-tests: New file.
40744         * tests/test-vprintf-posix.sh: New file.
40745         * tests/test-vprintf-posix.c: New file.
40746         * tests/test-printf-posix.h: New file.
40747
40748         * modules/vprintf-posix: New file.
40749         * lib/vprintf.c: New file.
40750         * m4/vprintf-posix.m4: New file.
40751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40752         REPLACE_VPRINTF.
40753         * lib/stdio_.h (vprintf): New declaration.
40754         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40755         REPLACE_VPRINTF.
40756
40757 2007-03-08  Bruno Haible  <bruno@clisp.org>
40758
40759         * modules/fprintf-posix-tests: New file.
40760         * tests/test-fprintf-posix.sh: New file.
40761         * tests/test-fprintf-posix.c: New file.
40762
40763         * modules/fprintf-posix: New file.
40764         * lib/fprintf.c: New file.
40765         * m4/fprintf-posix.m4: New file.
40766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40767         REPLACE_FPRINTF.
40768         * lib/stdio_.h (fprintf): New declaration.
40769         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40770         REPLACE_FPRINTF.
40771
40772 2007-03-08  Bruno Haible  <bruno@clisp.org>
40773
40774         * modules/vfprintf-posix-tests: New file.
40775         * tests/test-vfprintf-posix.sh: New file.
40776         * tests/test-vfprintf-posix.c: New file.
40777         * tests/test-fprintf-posix.h: New file.
40778         * tests/test-fprintf-posix.out: New file.
40779
40780         * modules/vfprintf-posix: New file.
40781         * lib/vfprintf.c: New file.
40782         * m4/vfprintf-posix.m4: New file.
40783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40784         REPLACE_VFPRINTF.
40785         * lib/stdio_.h (vfprintf): New declaration.
40786         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40787         REPLACE_VFPRINTF.
40788
40789 2007-03-08  Bruno Haible  <bruno@clisp.org>
40790
40791         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40792
40793 2007-03-08  Bruno Haible  <bruno@clisp.org>
40794
40795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40796         instead of 'expr' invocations.
40797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40802         Suggested by Paul Eggert.
40803
40804 2007-03-08  Bruno Haible  <bruno@clisp.org>
40805
40806         * modules/fseterr-tests: New file.
40807         * tests/test-fseterr.c: New file.
40808
40809         * modules/fseterr: New file.
40810         * lib/fseterr.h: New file.
40811         * lib/fseterr.c: New file.
40812
40813 2007-03-08  Bruno Haible  <bruno@clisp.org>
40814
40815         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40816         * lib/getopt_.h: Likewise.
40817         * lib/mbswidth.h: Likewise.
40818         * lib/setenv.h: Likewise.
40819         * lib/vasnprintf.h: Likewise.
40820         * lib/vasprintf.h: Likewise.
40821         * lib/verror.h: Likewise.
40822         * lib/xsetenv.h: Likewise.
40823         * lib/xvasprintf.h: Likewise.
40824
40825 2007-03-08  Jim Meyering  <jim@meyering.net>
40826
40827         * users.txt: Add parted.
40828
40829         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40830
40831 2007-03-07  Bruno Haible  <bruno@clisp.org>
40832
40833         * m4/printf.m4: Make the shell script snippets copy&pastable.
40834
40835 2007-03-02  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/netinet_in_.h: New file.
40838         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40839         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40840         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40841         (Depends-on): Add absolute-header.
40842         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40843         into netinet/in.h.
40844
40845 2007-03-03  Bruno Haible  <bruno@clisp.org>
40846
40847         * lib/sys_select_.h: New file.
40848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40849         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40850         * modules/sys_select (Files): Add lib/sys_select_.h.
40851         (Depends-on): Add absolute-header.
40852         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40853         into sys/select.h.
40854
40855 2007-03-02  Bruno Haible  <bruno@clisp.org>
40856
40857         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40858         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40859         values.
40860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40861         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40862         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40863         * modules/sys_socket (Depends-on): Add absolute-header.
40864         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40865         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40866         (Include): Remove requirement of inclusion of <sys/types.h>.
40867
40868 2007-03-02  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/byteswap_.h (bswap_32): Fix formula.
40871
40872 2007-03-06  Bruno Haible  <bruno@clisp.org>
40873
40874         * modules/sprintf-posix-tests: New file.
40875         * tests/test-sprintf-posix.c: New file.
40876
40877         * modules/sprintf-posix: New file.
40878         * lib/sprintf.c: New file.
40879         * m4/sprintf-posix.m4: New file.
40880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40881         REPLACE_SPRINTF.
40882         * lib/stdio_.h (sprintf): New declaration.
40883         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40884         REPLACE_SPRINTF.
40885
40886 2007-03-06  Bruno Haible  <bruno@clisp.org>
40887
40888         * modules/vsprintf-posix-tests: New file.
40889         * tests/test-vsprintf-posix.c: New file.
40890         * tests/test-sprintf-posix.h: New file.
40891
40892         * modules/vsprintf-posix: New file.
40893         * lib/vsprintf.c: New file.
40894         * m4/vsprintf-posix.m4: New file.
40895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40896         REPLACE_VSPRINTF.
40897         * lib/stdio_.h (vsprintf): New declaration.
40898         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40899         REPLACE_VSPRINTF.
40900
40901 2007-03-06  Bruno Haible  <bruno@clisp.org>
40902
40903         * modules/vsnprintf (Depend-on): Remove minmax.
40904
40905 2007-03-06  Bruno Haible  <bruno@clisp.org>
40906
40907         * modules/snprintf-posix-tests: New file.
40908         * tests/test-snprintf-posix.c: New file.
40909
40910         * modules/snprintf-posix: New file.
40911         * m4/snprintf-posix.m4: New file.
40912         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40913         gl_FUNC_SNPRINTF.
40914         (gl_FUNC_SNPRINTF): Invoke it.
40915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40916         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40917         is set.
40918         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40919
40920 2007-03-06  Bruno Haible  <bruno@clisp.org>
40921
40922         * modules/vsnprintf-posix-tests: New file.
40923         * tests/test-vsnprintf-posix.c: New file.
40924         * tests/test-snprintf-posix.h: New file.
40925
40926         * modules/vsnprintf-posix: New file.
40927         * m4/vsnprintf-posix.m4: New file.
40928         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40929         gl_FUNC_VSNPRINTF.
40930         (gl_FUNC_VSNPRINTF): Invoke it.
40931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40932         * lib/stdio_.h (vsnprintf): Define as a replacement if
40933         REPLACE_VSNPRINTF is set.
40934         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40935
40936 2007-03-06  Bruno Haible  <bruno@clisp.org>
40937
40938         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40939         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40940
40941 2007-03-06  Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40944         (asinl): Declare also if HAVE_DECL_ASINL is set.
40945         (atanl): Declare also if HAVE_DECL_ATANL is set.
40946         (ceill): Declare also if HAVE_DECL_CEILL is set.
40947         (cosl): Declare also if HAVE_DECL_COSL is set.
40948         (expl): Declare also if HAVE_DECL_EXPL is set.
40949         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40950         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40951         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40952         (logl): Declare also if HAVE_DECL_LOGL is set.
40953         (sinl): Declare also if HAVE_DECL_SINL is set.
40954         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40955         (tanl): Declare also if HAVE_DECL_TANL is set.
40956         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40958         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40959         declaration of frexpl, ldexpl.
40960         * modules/printf-frexpl (Depends-on): Add math.
40961         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40962
40963 2007-03-05  Bruno Haible  <bruno@clisp.org>
40964
40965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40966         frexpl and ldexpl are declared.
40967         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40968
40969 2007-03-05  Bruno Haible  <bruno@clisp.org>
40970
40971         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40972         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40973
40974 2007-03-05  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/stdio_.h: Include <stddef.h>.
40977
40978 2007-03-05  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40981
40982 2007-03-05  Bruno Haible  <bruno@clisp.org>
40983
40984         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40985         NetBSD 4, from Ralf Wildenhues.
40986
40987 2007-03-04  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/vasprintf.h: Update #if logic for the case when the functions
40990         exist but are overridden.
40991
40992 2007-03-04  Bruno Haible  <bruno@clisp.org>
40993
40994         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40995         implementations: glibc-2.4 and MacOS X 10.3.
40996         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40997         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40998         * tests/test-vasprintf-posix.c (test_function): Likewise.
40999
41000 2007-03-04  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/vasprintf-posix-tests: New file.
41003         * tests/test-vasprintf-posix.c: New file.
41004
41005         * modules/vasprintf-posix: New file.
41006         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41007         defined.
41008         * m4/vasprintf-posix.m4: New file.
41009         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41010         gl_FUNC_VASPRINTF.
41011         (gl_FUNC_VASPRINTF): Invoke it.
41012         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41013         here.
41014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41015
41016 2007-03-04  Bruno Haible  <bruno@clisp.org>
41017
41018         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41019         REPLACE_GETTIMEOFDAY.
41020         * modules/sys_time (Makefile.am): Likewise.
41021         * m4/sys_time_h.m4: Likewise.
41022         * m4/gettimeofday.m4: Likewise.
41023
41024 2007-03-04  Bruno Haible  <bruno@clisp.org>
41025
41026         * modules/vasnprintf-posix-tests: New file.
41027         * tests/test-vasnprintf-posix.c: New file.
41028
41029         * modules/vasnprintf-posix: New file.
41030         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41031         printf-frexpl.h.
41032         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41033         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41034         REPLACE_VASNPRINTF is defined.
41035         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41036         gl_FUNC_VASNPRINTF.
41037         (gl_FUNC_VASNPRINTF): Invoke it.
41038         * m4/vasnprintf-posix.m4: New file.
41039         * m4/printf.m4: New file.
41040
41041 2007-03-04  Bruno Haible  <bruno@clisp.org>
41042
41043         Compile progreloc.c only if --enable-relocatable is specified.
41044         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41045         if --enable-relocatable was specified.
41046         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41047         lib_SOURCES.
41048
41049 2007-03-04  Jim Meyering  <jim@meyering.net>
41050
41051         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41052         Use it consistently, rather than enumerating errno constants.
41053
41054 2007-03-04  Bruno Haible  <bruno@clisp.org>
41055
41056         * modules/xvasprintf-tests: New file.
41057         * tests/test-xvasprintf.c: New file.
41058
41059         * modules/vasprintf-tests: New file.
41060         * tests/test-vasprintf.c: New file.
41061
41062         * modules/vasnprintf-tests: New file.
41063         * tests/test-vasnprintf.c: New file.
41064
41065         * modules/vsnprintf-tests: New file.
41066         * tests/test-vsnprintf.c: New file.
41067
41068         * modules/snprintf-tests: New file.
41069         * tests/test-snprintf.c: New file.
41070
41071 2007-03-04  Bruno Haible  <bruno@clisp.org>
41072
41073         Compile relocatable.c only if --enable-relocatable is specified.
41074         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41075         gl_RELOCATABLE_LIBRARY.
41076         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41077         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41078         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41079         gl_RELOCATABLE_LIBRARY.
41080         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41081         (Makefile.am): Remove lib_SOURCES.
41082         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41083         gl_RELOCATABLE_LIBRARY.
41084         (Makefile.am): Remove lib_SOURCES.
41085         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41086         always.
41087         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41088         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41089
41090 2007-03-04  Bruno Haible  <bruno@clisp.org>
41091
41092         * modules/argmatch-tests: New file.
41093         * tests/test-argmatch.c: New file.
41094
41095         * tests/test-allocsa.c (main): Halve the number of loop runs.
41096
41097         * modules/alloca-opt-tests: New file.
41098         * tests/test-alloca-opt.c: New file.
41099
41100 2007-03-04  Jim Meyering  <jim@meyering.net>
41101
41102         Work around difference between Linux ACLs and Solaris 10 ZFS.
41103         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41104         for EINVAL.
41105
41106 2007-03-03  Bruno Haible  <bruno@clisp.org>
41107
41108         * modules/relocatable-prog (Depends-on): Add back progreloc's
41109         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41110
41111 2007-03-03  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41114         * modules/relocatable-lib: New file.
41115
41116 2007-03-03  Bruno Haible  <bruno@clisp.org>
41117
41118         * modules/relocatable-prog: Renamed from modules/relocatable.
41119         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41120
41121 2007-03-03  Bruno Haible  <bruno@clisp.org>
41122
41123         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41124         m4/relocatable-lib.m4.
41125         (Depends-on): Remove 'relocatable'.
41126         (configure.ac): Add gl_RELOCATABLE_NOP.
41127
41128 2007-03-03  Bruno Haible  <bruno@clisp.org>
41129
41130         * modules/relocatable-prog-wrapper: New file.
41131         * modules/relocatable (Depends-on): Add it. Remove all other
41132         dependencies except progname.
41133         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41134
41135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41136         (gl_FUNC_STRERROR): Nop.
41137         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41138
41139         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41140         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41141
41142         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41143         (gl_FUNC_READLINK): Update.
41144
41145         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41146
41147 2007-03-03  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41150         * modules/xreadlink (Depends-on): Add unistd.
41151         * modules/xreadlink-with-size (Depends-on): Likewise.
41152
41153 2007-03-03  Bruno Haible  <bruno@clisp.org>
41154
41155         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41156         extracted from gt_FUNC_SETENV.
41157         (gt_FUNC_SETENV): Remove macro.
41158         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41159         remove gt_FUNC_SETENV.
41160
41161 2007-03-03  Bruno Haible  <bruno@clisp.org>
41162
41163         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41164         ENABLE_RELOCATABLE here.
41165         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41166
41167 2007-03-03  Bruno Haible  <bruno@clisp.org>
41168
41169         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41170         * tests/test-rbtreehash_list.c: Include progname.h.
41171         (main): Call set_program_name.
41172
41173         * modules/rbtree-oset-tests (Depends-on): Add progname.
41174         * tests/test-rbtree_oset.c: Include progname.h.
41175         (main): Call set_program_name.
41176
41177         * modules/rbtree-list-tests (Depends-on): Add progname.
41178         * tests/test-rbtree_list.c: Include progname.h.
41179         (main): Call set_program_name.
41180
41181         * modules/linked-list-tests (Depends-on): Add progname.
41182         * tests/test-linked_list.c: Include progname.h.
41183         (main): Call set_program_name.
41184
41185 2007-03-03  Bruno Haible  <bruno@clisp.org>
41186
41187         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41188         All uses of __restrict changed to _Restrict_.
41189         * lib/glob_.h (__restrict): Remove macro.
41190
41191 2007-03-02  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/gettext (configure.ac): Require gettext infrastructure
41194         from version 0.16.1.
41195
41196 2007-03-02  Bruno Haible  <bruno@clisp.org>
41197
41198         * modules/linkedhash-list-tests (Depends-on): Add progname.
41199         * tests/test-linkedhash_list.c: Include progname.h.
41200         (main): Call set_program_name.
41201
41202         * modules/carray-list-tests (Depends-on): Add progname.
41203         * tests/test-carray_list.c: Include progname.h.
41204         (main): Call set_program_name.
41205
41206         * modules/avltreehash-list-tests (Depends-on): Add progname.
41207         * tests/test-avltreehash_list.c: Include progname.h.
41208         (main): Call set_program_name.
41209
41210         * modules/avltree-oset-tests (Depends-on): Add progname.
41211         * tests/test-avltree_oset.c: Include progname.h.
41212         (main): Call set_program_name.
41213
41214         * modules/avltree-list-tests (Depends-on): Add progname.
41215         * tests/test-avltree_list.c: Include progname.h.
41216         (main): Call set_program_name.
41217
41218         * modules/array-oset-tests (Depends-on): Add progname.
41219         * tests/test-array_oset.c: Include progname.h.
41220         (main): Call set_program_name.
41221
41222         * modules/array-list-tests (Depends-on): Add progname.
41223         * tests/test-array_list.c: Include progname.h.
41224         (main): Call set_program_name.
41225
41226         * modules/argp-tests (Depends-on): Add progname.
41227         * tests/test-argp.c: Include argp.h first. Include progname.h.
41228         (main): Call set_program_name.
41229
41230 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41231
41232         * doc/gnulib-tool.texi (Initial import): Reword description of
41233         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41234         limited effect even if defined after the first system include.
41235
41236 2007-03-01  Bruno Haible  <bruno@clisp.org>
41237
41238         * build-aux/config.libpath: Update to libtool-1.5.22.
41239         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41240
41241 2007-03-01  Bruno Haible  <bruno@clisp.org>
41242
41243         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41244         foo_CFLAGS.
41245         Reported by Ralf Wildenhues.
41246
41247 2007-03-01  Bruno Haible  <bruno@clisp.org>
41248
41249         * build-aux/install-reloc: Remove object files left over by some
41250         compilers.
41251         Reported by Ralf Wildenhues.
41252
41253 2007-03-01  Bruno Haible  <bruno@clisp.org>
41254
41255         * build-aux/install-reloc: Break long lines.
41256
41257 2007-03-01  Bruno Haible  <bruno@clisp.org>
41258
41259         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41260         Reported by Ralf Wildenhues.
41261
41262 2007-03-01  Bruno Haible  <bruno@clisp.org>
41263
41264         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41265         include ordering constraints.
41266
41267 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41268
41269         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41271         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41272         as another example.
41273         * lib/time_.h: Fix misspelling.
41274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41275         Require gl_HEADER_TIME_H_DEFAULTS.
41276         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41277         * m4/time_r.m4 (gl_TIME_R): Likewise.
41278         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41279
41280 2007-03-01  Bruno Haible  <bruno@clisp.org>
41281
41282         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41283         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41284
41285 2007-03-01  Jim Meyering  <jim@meyering.net>
41286
41287         * modules/xreadlink (Maintainer): Add my name.
41288         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41289
41290 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41291             Bruno Haible  <bruno@clisp.org>
41292
41293         * build-aux/install-reloc: Compile also c-ctype.c.
41294         * build-aux/relocatable.sh.in: New file.
41295         * doc/relocatable.texi: New file.
41296         * doc/relocatable-maint.texi: New file.
41297         * doc/gnulib.texi: Include relocatable-maint.texi.
41298         * lib/progreloc.c: Include unistd.h unconditionally.
41299         * lib/relocwrapper.c: Include unistd.h unconditionally.
41300         Include c-ctype.h.
41301         (add_dotbin): Use c_tolower.
41302         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41303         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41304         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41305         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41306         to m4/relocatable-lib.m4.
41307         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41308         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41309         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41310         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41311         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41312         * modules/relocatable: New file.
41313         * modules/relocatable-lib: New file.
41314         * modules/relocatable-script: New file.
41315
41316 2007-02-28  Bruno Haible  <bruno@clisp.org>
41317
41318         Import --enable-relocatable infrastructure.
41319         * build-aux/config.libpath: New file, from GNU gettext.
41320         * build-aux/install-reloc: New file, from GNU gettext.
41321         * build-aux/reloc-ldflags: New file, from GNU gettext.
41322         * lib/relocatable.h: New file, from GNU gettext.
41323         * lib/relocatable.c: New file, from GNU gettext.
41324         * lib/relocwrapper.c: New file, from GNU gettext.
41325         * m4/relocatable.m4: New file, from GNU gettext.
41326
41327 2007-02-28  Bruno Haible  <bruno@clisp.org>
41328
41329         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41330
41331         * modules/xreadlink: New file, from GNU gettext with modifications.
41332         * lib/xreadlink.c: New file, from GNU gettext.
41333         * lib/xreadlink.h: Add comments.
41334         (xreadlink): New declaration.
41335
41336         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41337         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41338         lib/xreadlink-with-size.c.
41339         (configure.ac): Remove gl_XREADLINK invocation.
41340         (Makefile.am): Augment lib_SOURCES.
41341         * m4/xreadlink.m4: Remove file.
41342         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41343         (xreadlink_with_size): Renamed from xreadink.
41344         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41345         * modules/canonicalize (Depends-on): Replace xreadlink with
41346         xreadlink-with-size.
41347         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41348
41349 2007-02-25  Jim Meyering  <jim@meyering.net>
41350
41351         * build-aux/announce-gen: When complaining about excess arguments,
41352         list them.
41353
41354 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41355
41356         * README: Document signed integer overflow situation more
41357         accurately.
41358
41359 2007-02-25  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41362         'a' or 'A' conversion.
41363
41364 2007-02-25  Bruno Haible  <bruno@clisp.org>
41365
41366         * modules/filename: Renamed from modules/pathname.
41367         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41368         lib/concatpath.c with lib/concat-filename.c.
41369         (Makefile.am): Update.
41370         (Include): Replace pathname.h with filename.h.
41371         * lib/filename.h: Renamed from lib/pathname.h.
41372         (concatenated_filename): Renamed from concatenated_pathname.
41373         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41374         (concatenated_filename): Renamed from concatenated_pathname.
41375         * lib/findprog.c: Include filename.h instead of pathname.h.
41376         (find_in_path): Update.
41377         * lib/javacomp.c: Include filename.h instead of pathname.h.
41378         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41379         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41380         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41381         is_oldgcj_14_13_usable, is_javac_usable): Update.
41382         * lib/javaexec.c: Include filename.h instead of pathname.h.
41383         (execute_java_class): Update.
41384         * modules/findprog: Update.
41385         * modules/javacomp: Update.
41386         * modules/javaexec: Update.
41387         * MODULES.html.sh (File system functions): Add 'filename', remove
41388         'pathname'.
41389
41390 2007-02-25  Bruno Haible  <bruno@clisp.org>
41391
41392         * modules/printf-frexpl-tests: New file.
41393         * tests/test-printf-frexpl.c: New file.
41394
41395         * modules/printf-frexpl: New file.
41396         * lib/printf-frexpl.h: New file.
41397         * lib/printf-frexpl.c: New file.
41398         * m4/printf-frexpl.m4: New file.
41399
41400 2007-02-25  Bruno Haible  <bruno@clisp.org>
41401
41402         * modules/printf-frexp-tests: New file.
41403         * tests/test-printf-frexp.c: New file.
41404
41405         * modules/printf-frexp: New file.
41406         * lib/printf-frexp.h: New file.
41407         * lib/printf-frexp.c: New file.
41408         * m4/printf-frexp.m4: New file.
41409
41410 2007-02-25  Bruno Haible  <bruno@clisp.org>
41411
41412         Assume automake >= 1.10 for the tests.
41413         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41414         * modules/arctwo-tests: Likewise.
41415         * modules/argp-tests: Likewise.
41416         * modules/avltree-list-tests: Likewise.
41417         * modules/avltree-oset-tests: Likewise.
41418         * modules/avltreehash-list-tests: Likewise.
41419         * modules/carray-list-tests: Likewise.
41420         * modules/crc-tests: Likewise.
41421         * modules/des-tests: Likewise.
41422         * modules/gc-arcfour-tests: Likewise.
41423         * modules/gc-arctwo-tests: Likewise.
41424         * modules/gc-des-tests: Likewise.
41425         * modules/gc-hmac-md5-tests: Likewise.
41426         * modules/gc-hmac-sha1-tests: Likewise.
41427         * modules/gc-md2-tests: Likewise.
41428         * modules/gc-md4-tests: Likewise.
41429         * modules/gc-md5-tests: Likewise.
41430         * modules/gc-pbkdf2-sha1-tests: Likewise.
41431         * modules/gc-rijndael-tests: Likewise.
41432         * modules/gc-sha1-tests: Likewise.
41433         * modules/gc-tests: Likewise.
41434         * modules/getaddrinfo-tests: Likewise.
41435         * modules/hmac-md5-tests: Likewise.
41436         * modules/hmac-sha1-tests: Likewise.
41437         * modules/linked-list-tests: Likewise.
41438         * modules/linkedhash-list-tests: Likewise.
41439         * modules/lock-tests: Likewise.
41440         * modules/md2-tests: Likewise.
41441         * modules/md4-tests: Likewise.
41442         * modules/md5-tests: Likewise.
41443         * modules/rbtree-list-tests: Likewise.
41444         * modules/rbtree-oset-tests: Likewise.
41445         * modules/rbtreehash-list-tests: Likewise.
41446         * modules/read-file-tests: Likewise.
41447         * modules/rijndael-tests: Likewise.
41448         * modules/stdint-tests: Likewise.
41449         * modules/tls-tests: Likewise.
41450
41451 2007-02-24  Bruno Haible  <bruno@clisp.org>
41452
41453         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41454         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41455         function; instead check whether isnan with a double argument links.
41456         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41457         function; instead check whether isnan with a 'long double' argument
41458         links.
41459         Reported by Eric Blake <ebb9@byu.net>.
41460
41461 2007-02-24  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41464         defined.
41465         * lib/isnanl.c: Remove all code. Just include isnan.c.
41466         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41467
41468 2007-02-25  Jim Meyering  <jim@meyering.net>
41469
41470         Avoid conflicting types for 'unsetenv' on FreeBSD.
41471         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41472         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41473         in stdlib.h.
41474
41475 2007-02-24  Bruno Haible  <bruno@clisp.org>
41476
41477         * modules/isnanl-nolibm-tests: New file.
41478         * tests/test-isnanl.c: New file.
41479
41480         * modules/isnanl-nolibm: New file.
41481         * lib/isnanl.h: New file.
41482         * lib/isnanl.c: New file.
41483         * m4/isnanl.m4: New file.
41484
41485 2007-02-24  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/isnan-nolibm-tests: New file.
41488         * tests/test-isnan.c: New file.
41489
41490         * modules/isnan-nolibm: New file.
41491         * lib/isnan.h: New file.
41492         * lib/isnan.c: New file.
41493         * m4/isnan.m4: New file.
41494
41495 2007-02-24  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41498         assume that an exponent fits in 20 bits.
41499
41500 2007-02-24  Jim Meyering  <jim@meyering.net>
41501
41502         * m4/regex.m4: Update the description of the configure-time option,
41503         --without-included-regex, to state accurately what the defaults are,
41504         and perhaps to give people an idea why using this option is risky.
41505
41506 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41507
41508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41509         loops on small arguments.  This attempts to avoid the problem
41510         Bruno Haible reported for AIX 4.3.2 in
41511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41512
41513 2007-02-23  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41516         Needed for help2man.
41517
41518 2007-02-23  Karl Berry  <karl@gnu.org>
41519
41520         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41521         exists, foo.h should be cvs-ignored, not committed.
41522
41523 2007-02-23  Eric Blake  <ebb9@byu.net>
41524
41525         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41526         * lib/stat-time.h (includes): Likewise.
41527         * lib/utimecmp.c (includes): Likewise.
41528         * lib/utimens.h (includes): Likewise.
41529         * lib/getdate.y (includes): Also include "timespec.h" for use
41530         internal to the module.
41531         * modules/utimens (Depends-on): Revert yesterday's patch.
41532         * modules/nanosleep (Depends-on): Add missing dependency.
41533
41534 2007-02-22  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/glob.c: Don't include getlogin_r.h.
41537
41538 2007-02-22  Jim Meyering  <jim@meyering.net>
41539
41540         * modules/utimens (Depends-on): Add timespec, required for
41541         utimens.h's inclusion of timespec.h.
41542
41543 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41544
41545         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41546         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41547         Schwab in
41548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41549         I'll try to think of a better way to fix the Solaris problem.
41550
41551         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41552         like glibc; on Solaris 10, it fails with errno == EINVAL.
41553         POSIX says the behavior is unspecified if the first argument is NULL,
41554         so play it safe and never pass NULL to the system getcwd.
41555
41556 2007-02-21  Jim Meyering  <jim@meyering.net>
41557
41558         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41559         of gettimeofday.  It would conflict with the one now always
41560         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41561         an IRIX 6.5 build failure.
41562
41563 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         Minor fixups to port to Solaris 10 with Sun C 5.8.
41566         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41567         * modules/getcwd (Depends-on): Add dirfd.
41568         * lib/putenv.c (putenv): #undef it.
41569         (rpl_putenv): New decl.
41570         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41571
41572 2007-02-20  Bruno Haible  <bruno@clisp.org>
41573
41574         * modules/stdio-tests: New file.
41575         * tests/test-stdio.c: New file.
41576
41577         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41578         (Depends-on): Add stdio.
41579         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41580         (Include): Use <stdio.h> instead of vsnprintf.h.
41581         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41582         HAVE_DECL_VSNPRINTF.
41583         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41584
41585         * modules/snprintf (Files): Remove lib/snprintf.h.
41586         (Depends-on): Add stdio.
41587         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41588         (Include): Use <stdio.h> instead of snprintf.h.
41589         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41590         HAVE_DECL_SNPRINTF.
41591         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41592         * lib/getaddrinfo.c: Likewise.
41593
41594         * modules/stdio: New file.
41595         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41596         * lib/snprintf.h: Remove file.
41597         * lib/vsnprintf.h: Remove file.
41598         * lib/.cppi-disable: Remove snprintf.h.
41599         * m4/stdio_h.m4: New file.
41600         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41601
41602 2007-02-20  Jim Meyering  <jim@meyering.net>
41603
41604         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41605         used by e.g., mingw.  From Bruno Haible.
41606
41607 2007-02-19  Bruno Haible  <bruno@clisp.org>
41608
41609         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41610         warnings.
41611         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41612
41613 2007-02-19  Bruno Haible  <bruno@clisp.org>
41614
41615         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41616         from mingw users.
41617
41618 2007-02-19  Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41621         warnings.
41622         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41623
41624 2007-02-19  Jim Meyering  <jim@meyering.net>
41625
41626         Don't use FD after a successful "fdopendir (fd)".
41627         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41628         Reset it by calling dirfd on the just-obtained DIR*.
41629
41630         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41631         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41632
41633 2007-02-18  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/readlink.c: Include <unistd.h>.
41636         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41637         HAVE_READLINK.
41638         * modules/readlink (Depends-on): Add unistd.
41639         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41640         (Include): Add <unistd.h>.
41641
41642         * lib/getlogin_r.h: Remove file.
41643         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41644         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41645         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41646         HAVE_DECL_GETLOGIN_R.
41647         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41649         (Include): Use <unistd.h> instead of getlogin_r.h.
41650
41651         * lib/getcwd.h: Remove file.
41652         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41653         * lib/xgetcwd.c: Likewise.
41654         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41655         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41656         * modules/getcwd (Files): Remove lib/getcwd.h.
41657         (Depends-on): Add unistd.
41658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41659         (Include): Use <unistd.h> instad of getcwd.h.
41660
41661         * lib/ftruncate.c: Include <unistd.h> first.
41662         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41663         Set HAVE_FTRUNCATE.
41664         * modules/ftruncate (Depends-on): Add unistd.
41665         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41666
41667         * lib/fchdir.c: Include <unistd.h> first.
41668         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41670         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41671         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41672         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41673
41674         * lib/dup2.c: Include <unistd.h> first.
41675         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41676         HAVE_DUP2.
41677         * modules/dup2 (Depends-on): Add unistd.
41678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41679
41680         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41681         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41682         REPLACE_CHOWN. Don't define chown as a macro here.
41683         * modules/chown (Depends-on): Add unistd.
41684         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41685
41686         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41687         Add definition for GL_LINK_WARNING.
41688         (chown, dup2): New declarations.
41689         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41690         link warning.
41691         (ftruncate): New declaration.
41692         (getcwd): New declaration, taken from old getcwd.h.
41693         (getlogin_r): New declaration, taken from old getlogin_r.h.
41694         (readlink): New declaration.
41695         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41696         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41697         (gl_PREREQ_UNISTD): Remove macro.
41698         (gl_UNISTD_MODULE_INDICATOR): New macro.
41699         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41700         many new variables. Don't set UNISTD_H.
41701         * modules/unistd (Description): Change.
41702         (Depends-on): Add link-warning.
41703         (configure.ac): Update.
41704         (Makefile.am): Create unistd.h always. Substitute many new variables
41705         into it.
41706
41707 2007-02-18  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41710         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41711         HAVE_GETSUBOPT.
41712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41713         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41714         * lib/getsubopt.h: Remove file.
41715         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41716         (Depends-on): Add stdlib.
41717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41718         (Includes): Use <stdlib.h> instead of getsubopt.h.
41719         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41720         Set HAVE_GETSUBOPT.
41721         * lib/getsubopt.c: Don't include getsubopt.h.
41722
41723 2007-02-18  Bruno Haible  <bruno@clisp.org>
41724
41725         * modules/fchdir (Depends-on): Add dup2.
41726
41727 2007-02-18  Bruno Haible  <bruno@clisp.org>
41728
41729         * lib/stdlib_.h: Handle glibc's special invocation convention
41730         specially.
41731
41732 2007-02-18  Bruno Haible  <bruno@clisp.org>
41733
41734         * modules/stdlib-tests: New file.
41735         * tests/test-stdlib.c: New file.
41736
41737         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41738         (Depends-on): Add stdlib.
41739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41740         (Includes): Use <stdlib.h> instead of mkstemp.h.
41741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41742         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41743         * lib/mkstemp.c: Don't include mkstemp.h.
41744         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41745         * lib/stdlib--.h: Don't include mkstemp.h.
41746
41747         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41748         (Depends-on): Add stdlib.
41749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41750         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41751         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41752         HAVE_MKDTEMP.
41753         * lib/mkdtemp.c: Don't include mkdtemp.h.
41754         * lib/clean-temp.c: Don't include mkdtemp.h.
41755
41756         * modules/exit (Files): Remove lib/exit.h.
41757         (Depends-on): Add stdlib.
41758         (Makefile.am): Remove lib_SOURCES.
41759         (Include): Use <stdlib.h> instead of exit.h.
41760         * lib/argmatch.c: Don't include exit.h.
41761         * lib/execute.c: Likewise.
41762         * lib/pagealign_alloc.c: Likewise.
41763         * lib/pipe.c: Likewise.
41764         * lib/wait-process.c: Likewise.
41765         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41766         * lib/exitfail.c: Likewise.
41767         * lib/savewd.c: Likewise.
41768         * lib/xsetenv.c: Likewise.
41769
41770         * modules/stdlib: New file.
41771         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41772         and extra comments about mkstemp().
41773         * lib/exit.h: Remove file.
41774         * lib/mkdtemp.h: Remove file.
41775         * lib/mkstemp.h: Remove file.
41776         * m4/stdlib_h.m4: New file.
41777         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41778
41779 2007-02-18  Bruno Haible  <bruno@clisp.org>
41780
41781         * modules/math-tests: New file.
41782         * tests/test-math.c: New file.
41783
41784         * modules/math: New file.
41785         * modules/mathl (Files): Remove lib/mathl.h.
41786         (Depends-on): Add math.
41787         (Makefile.am): Don't mention mathl.h.
41788         (Include): Use <math.h> instead of mathl.h.
41789         * lib/math_.h: New file.
41790         * lib/mathl.h: Remove file.
41791         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41792         mathl.h.
41793         * lib/asinl.c: Likewise.
41794         * lib/atanl.c: Likewise.
41795         * lib/ceill.c: Likewise.
41796         * lib/cosl.c: Likewise.
41797         * lib/expl.c: Likewise.
41798         * lib/floorl.c: Likewise.
41799         * lib/frexpl.c: Likewise.
41800         * lib/ldexpl.c: Likewise.
41801         * lib/logl.c: Likewise.
41802         * lib/sincosl.c: Likewise.
41803         * lib/sinl.c: Likewise.
41804         * lib/sqrtl.c: Likewise.
41805         * lib/tanl.c: Likewise.
41806         * lib/trigl.c: Likewise.
41807         * m4/math_h.m4: New file.
41808         * MODULES.html.sh (Mathematics): Add math.
41809
41810 2007-02-17  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/wctype-tests: New file.
41813         * tests/test-wctype.c: New file.
41814
41815         * modules/wchar-tests: New file.
41816         * tests/test-wchar.c: New file.
41817
41818         * modules/unistd-tests: New file.
41819         * tests/test-unistd.c: New file.
41820
41821         * modules/time-tests: New file.
41822         * tests/test-time.c: New file.
41823
41824         * modules/sysexits-tests: New file.
41825         * tests/test-sysexits.c: New file.
41826
41827         * modules/sys_time-tests: New file.
41828         * tests/test-sys_time.c: New file.
41829
41830         * modules/sys_stat-tests: New file.
41831         * tests/test-sys_stat.c: New file.
41832
41833         * modules/sys_socket-tests: New file.
41834         * tests/test-sys_socket.c: New file.
41835
41836         * modules/sys_select-tests: New file.
41837         * tests/test-sys_select.c: New file.
41838
41839         * modules/string-tests: New file.
41840         * tests/test-string.c: New file.
41841
41842         * modules/stdbool-tests: New file.
41843         * tests/test-stdbool.c: New file.
41844
41845         * modules/netinet_in-tests: New file.
41846         * tests/test-netinet_in.c: New file.
41847
41848         * modules/inttypes-tests: New file.
41849         * tests/test-inttypes.c: New file.
41850
41851         * modules/fcntl-tests: New file.
41852         * tests/test-fcntl.c: New file.
41853
41854         * modules/byteswap-tests: New file.
41855         * tests/test-byteswap.c: New file.
41856
41857         * modules/arpa_inet-tests: New file.
41858         * tests/test-arpa_inet.c: New file.
41859
41860 2007-02-17  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41863         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41864         if the corresponding module is not enabled. Emit link warnings if
41865         the function is used nevertheless.
41866         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41867         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41868         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41869         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41870         * modules/inttypes (Depends-on): Add link-warning.
41871         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41872         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41873         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41874         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41875         * modules/imaxdiv (configure.ac): Likewise.
41876         * modules/strtoimax (configure.ac): Likewise.
41877         * modules/strtoumax (configure.ac): Likewise.
41878
41879 2007-02-17  Bruno Haible  <bruno@clisp.org>
41880
41881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41882         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41883         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41884         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41885
41886 2007-02-17  Bruno Haible  <bruno@clisp.org>
41887
41888         * modules/link-warning: New file.
41889         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41890         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41891         * modules/string (Depends-on): Add link-warning.
41892         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41893         string.h.
41894         * MODULES.html.sh (Support for building libraries and executables): Add
41895         link-warning.
41896
41897 2007-02-17  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41900         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41901         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41902         long lines.
41903
41904 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41905             Bruno Haible  <bruno@clisp.org>
41906
41907         * modules/tmpfile: New file.
41908         * lib/tmpfile.c: New file.
41909         * m4/tmpfile.m4: New file.
41910         * MODULES.html.sh (func_all_modules): New section "Input/output".
41911
41912 2007-02-15  Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41915         (supports_delete_on_close): New function.
41916         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41917
41918 2007-02-14  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/mbspcasecmp-tests: New file.
41921         * tests/test-mbspcasecmp.sh: New file.
41922         * tests/test-mbspcasecmp.c: New file.
41923
41924         New module mbspcasecmp.
41925         * modules/mbspcasecmp: New file.
41926         * lib/mbspcasecmp.c: New file.
41927         * lib/string_.h (strncasecmp): Change warning message.
41928         (mbspcasecmp): New declaration.
41929         * m4/mbspcasecmp.m4: New file.
41930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41931         GNULIB_MBSPCASECMP.
41932         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41933         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41934
41935 2007-02-14  Bruno Haible  <bruno@clisp.org>
41936
41937         * modules/mbsncasecmp-tests: New file.
41938         * tests/test-mbsncasecmp.sh: New file.
41939         * tests/test-mbsncasecmp.c: New file.
41940
41941         New module mbsncasecmp.
41942         * modules/mbsncasecmp: New file.
41943         * lib/mbsncasecmp.c: New file.
41944         * lib/string_.h (mbsncasecmp): New declaration.
41945         * m4/mbsncasecmp.m4: New file.
41946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41947         GNULIB_MBSNCASECMP.
41948         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41949         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41950
41951 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41952
41953         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41954         Verify that it doesn't overlap with our flags.
41955         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41956         do not have the desired effect in multibyte locales; instead, use
41957         mbscasecmp.
41958         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41959         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41960         we don't require GNU fnmatch ourselves (if our users require it, they
41961         should do so explicitly).
41962
41963         Fix regex code so it doesn't rely on strcasecmp.
41964         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41965         Otherwise, include gnulib's langinfo.h.
41966         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41967         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41968         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41969         * modules/regex (FILES): Remove m4/codeset.m4.
41970         (Depends-on): Add localcharset.  Remove strcase.
41971
41972 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41973
41974         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41975         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41976
41977 2007-02-13  Bruno Haible  <bruno@clisp.org>
41978
41979         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41981
41982 2007-02-12  Bruno Haible  <bruno@clisp.org>
41983
41984         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41985         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41986         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41987         time warning rather than a link error.
41988
41989 2007-02-12  Bruno Haible  <bruno@clisp.org>
41990
41991         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41992         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41994
41995 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41998         args, not 2.
41999
42000 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42001
42002         New module 'time', so that apps can include <time.h> as per
42003         POSIX and GNU instead of separate include files like time_r.h
42004         and timegm.h.  This implementation tries out a simpler approach
42005         for replacing decls in standard include files (as compared to
42006         the string module), somewhat as an experiment.
42007
42008         * config/srclist.txt: Comment out mktime.c for now.
42009         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42010         since it doesn't apply any more.  Use generic wording instead.
42011         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42012         'time'.
42013         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42014         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42015         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42016         Don't include <sys/types.h>; no longer needed since we assume C89.
42017         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42018         * lib/strftime.c: Likewise.
42019         * lib/time_r.c: Likewise.
42020         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42021         * lib/nanosleep.c: Include <time.h> first, to check interface.
42022         * lib/strptime.c: Likewise.
42023         * lib/time_r.c: Likewise.
42024         * lib/timegm.c: Likewise.
42025         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42026         needed.
42027         * lib/timegm.c: Don't include timegm.h; no longer needed.
42028         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42029         time.h now handles any problems in that area.
42030         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42031         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42032         that time.h defines struct timespec.
42033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42034         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42035         handles that.
42036         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42037         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42038         needed.  Set REPLACE_LOCALTIME.
42039         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42040         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42041         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42042         nanosleep; time_h.m4 now does that.  Don't require
42043         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42044         module handles this now.
42045         * modules/getdate (Depends-on): Remove timespec.  Add time.
42046         * modules/nanosleep (Depends-on): Likewise.
42047         * modules/stat-time (Depends-on): Likewise.
42048         * modules/nanosleep (Include): Include time.h, not timespec.h.
42049         * modules/strptime (Files): Remove lib/strptime.h.
42050         (Depends-on): Add extensions, time.
42051         (Include): Include time.h, not strptime.h.
42052         * modules/time_r (Files): Remove lib/time_r.h.
42053         (Depends-on): Add time.
42054         (Include): Include time.h, not time_r.h.
42055         * modules/timegm: Likewise.
42056         * modules/timespec (Description): Now does timespec-related decls
42057         of our own, instead of struct timespec itself.
42058         (Depends-on): Add time; remove extensions.
42059         (Maintainer): Add self.
42060         * modules/utimecmp (Depends-on): Add time; remove timespec.
42061         * modules/utimens (Depends-on): Likewise.
42062         * modules/xnanosleep (Depends-on): Likewise.
42063
42064 2007-02-11  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/c-strstr.c: Include allocsa.h.
42067         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42068         * lib/c-strcasestr.c: Include allocsa.h.
42069         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42070         * lib/strcasestr.c: Include allocsa.h.
42071         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42072         * lib/mbsstr.c: Include allocsa.h.
42073         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42074         allocsa/freesa instead of malloc/free.
42075         * lib/mbscasestr.c: Include allocsa.h.
42076         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42077         allocsa/freesa instead of malloc/free.
42078         * modules/c-strstr (Depends-on): Add allocsa.
42079         * modules/c-strcasestr (Depends-on): Likewise.
42080         * modules/strcasestr (Depends-on): Likewise.
42081         * modules/mbsstr (Depends-on): Likewise.
42082         * modules/mbscasestr (Depends-on): Likewise.
42083
42084 2007-02-11  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42087
42088         * modules/mbsspn-tests: New file.
42089         * tests/test-mbsspn.sh: New file.
42090         * tests/test-mbsspn.c: New file.
42091
42092 2007-02-11  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42095
42096         * modules/mbspbrk-tests: New file.
42097         * tests/test-mbspbrk.sh: New file.
42098         * tests/test-mbspbrk.c: New file.
42099
42100 2007-02-11  Bruno Haible  <bruno@clisp.org>
42101
42102         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42103         unneeded cast.
42104
42105         * modules/mbscspn-tests: New file.
42106         * tests/test-mbscspn.sh: New file.
42107         * tests/test-mbscspn.c: New file.
42108
42109 2007-02-11  Bruno Haible  <bruno@clisp.org>
42110
42111         * modules/mbscasecmp-tests: New file.
42112         * tests/test-mbscasecmp.sh: New file.
42113         * tests/test-mbscasecmp.c: New file.
42114
42115 2007-02-11  Bruno Haible  <bruno@clisp.org>
42116
42117         Ensure O(n) worst-case complexity of mbscasestr.
42118         * lib/mbscasestr.c: Include stdbool.h.
42119         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42120         functions.
42121         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42122         the bookkeeping indicates that it's worth it.
42123         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42124
42125         * modules/mbscasestr-tests: New file.
42126         * tests/test-mbscasestr1.c: New file.
42127         * tests/test-mbscasestr2.sh: New file.
42128         * tests/test-mbscasestr2.c: New file.
42129         * tests/test-mbscasestr3.sh: New file.
42130         * tests/test-mbscasestr3.c: New file.
42131         * tests/test-mbscasestr4.sh: New file.
42132         * tests/test-mbscasestr4.c: New file.
42133         * m4/locale-tr.m4: New file.
42134
42135 2007-02-11  Bruno Haible  <bruno@clisp.org>
42136
42137         Ensure O(n) worst-case complexity of mbsstr.
42138         * lib/mbsstr.c: Include stdbool.h.
42139         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42140         functions.
42141         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42142         bookkeeping indicates that it's worth it.
42143         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42144
42145         * modules/mbsstr-tests: New file.
42146         * tests/test-mbsstr1.c: New file.
42147         * tests/test-mbsstr2.sh: New file.
42148         * tests/test-mbsstr2.c: New file.
42149         * tests/test-mbsstr3.sh: New file.
42150         * tests/test-mbsstr3.c: New file.
42151         * m4/locale-fr.m4: New file.
42152
42153 2007-02-11  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/mbsrchr.c (mbsrchr): Fix bug.
42156
42157         * modules/mbsrchr-tests: New file.
42158         * tests/test-mbsrchr.sh: New file.
42159         * tests/test-mbsrchr.c: New file.
42160
42161 2007-02-11  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/mbschr.c (mbschr): Fix bug.
42164
42165         * modules/mbschr-tests: New file.
42166         * tests/test-mbschr.sh: New file.
42167         * tests/test-mbschr.c: New file.
42168         * m4/locale-zh.m4: New file.
42169
42170 2007-02-11  Bruno Haible  <bruno@clisp.org>
42171
42172         Support for copying multibyte string iterators.
42173         * lib/mbiter.h: Include <string.h>.
42174         (mbiter_multi_copy): New function.
42175         (mbi_copy): New macro.
42176         * lib/mbuiter.h: Include <string.h>.
42177         (mbuiter_multi_copy): New function.
42178         (mbui_copy): New macro.
42179
42180 2007-02-11  Bruno Haible  <bruno@clisp.org>
42181
42182         New module mbslen.
42183         * modules/mbslen: New file.
42184         * lib/mbslen.c: New file.
42185         * lib/string_.h (mbslen): New declaration.
42186         * m4/mbslen.m4: New file.
42187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42188         GNULIB_MBSLEN.
42189         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42190         * MODULES.html.sh (Internationalization functions): Add mbslen.
42191
42192 2007-02-11  Bruno Haible  <bruno@clisp.org>
42193
42194         Ensure O(n) worst-case complexity of strcasestr substitute.
42195         * lib/strcasestr.c: Include stdbool.h.
42196         (knuth_morris_pratt): New function.
42197         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42198         bookkeeping indicates that it's worth it.
42199         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42200
42201         * modules/strcasestr-tests: New file.
42202         * tests/test-strcasestr.c: New file.
42203
42204 2007-02-11  Bruno Haible  <bruno@clisp.org>
42205
42206         Ensure O(n) worst-case complexity of c_strcasestr.
42207         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42208         (knuth_morris_pratt): New function.
42209         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42210         the bookkeeping indicates that it's worth it.
42211         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42212
42213         * modules/c-strcasestr-tests: New file.
42214         * tests/test-c-strcasestr.c: New file.
42215
42216 2007-02-11  Bruno Haible  <bruno@clisp.org>
42217
42218         Ensure O(n) worst-case complexity of c_strstr.
42219         * lib/c-strstr.c: Include stdbool.h, string.h.
42220         (knuth_morris_pratt): New function.
42221         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42222         bookkeeping indicates that it's worth it.
42223         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42224
42225         * lib/c-strstr.c: Complete rewrite for maintainability.
42226
42227         * modules/c-strstr-tests: New file.
42228         * tests/test-c-strstr.c: New file.
42229
42230 2007-02-11  Bruno Haible  <bruno@clisp.org>
42231
42232         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42233         5.2.1 and earlier, whereby \055 was treated just like the range
42234         delimiter '-'.
42235         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42236
42237 2007-02-08  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/regex (Depends-on): Add stdbool.
42240         Reported by Dalibor Topic <robilad@kaffe.org>.
42241
42242 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42243
42244         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42245         Prefer returning from main to exiting from it.
42246         Remove unnecessary parens after sizeof.
42247
42248 2007-02-05  Bruno Haible  <bruno@clisp.org>
42249
42250         New module mbssep.
42251         * modules/mbssep: New file.
42252         * lib/mbssep.c: New file.
42253         * lib/string_.h (strsep): Add a conditional link warning.
42254         (mbssep): New declaration.
42255         * m4/mbssep.m4: New file.
42256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42257         GNULIB_MBSSEP.
42258         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42259         * MODULES.html.sh (Internationalization functions): Add mbssep.
42260
42261 2007-02-05  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42264         Optimize search in case of 1 delimiter.
42265
42266 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42267
42268         * lib/acl.h: Include sys/types.h before sys/acl.h.
42269
42270 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42271
42272         Merge upstream fix for glibc bugzilla #3957:
42273
42274         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42275
42276         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42277         bit for RE_HAT_LISTS_NOT_NEWLINE.
42278         (build_charclass_op): Remove bogus comment.
42279
42280 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42281
42282         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42283
42284 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42285
42286         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42287         * lib/memmem.c [!defined _LIBC]: Include config.h.
42288
42289 2007-02-04  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42292         warning message.
42293
42294 2007-02-04  Bruno Haible  <bruno@clisp.org>
42295
42296         New module mbstok_r.
42297         * modules/mbstok_r: New file.
42298         * lib/mbstok_r.c: New file.
42299         * lib/string_.h (strtok_r): Change argument names to match the
42300         comments. Add a conditional link warning.
42301         (mbstok_r): New declaration.
42302         * m4/mbstok_r.m4: New file.
42303         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42304         GNULIB_MBSTOK_R.
42305         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42306         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42307
42308 2007-02-04  Bruno Haible  <bruno@clisp.org>
42309
42310         New module mbsspn.
42311         * modules/mbsspn: New file.
42312         * lib/mbsspn.c: New file.
42313         * lib/string_.h (strspn): Add a conditional link warning.
42314         (mbsspn): New declaration.
42315         * m4/mbsspn.m4: New file.
42316         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42317         GNULIB_MBSSPN.
42318         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42319         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42320
42321 2007-02-04  Bruno Haible  <bruno@clisp.org>
42322
42323         New module mbspbrk.
42324         * modules/mbspbrk: New file.
42325         * lib/mbspbrk.c: New file.
42326         * lib/string_.h (strpbrk): Add a conditional link warning.
42327         (mbspbrk): New declaration.
42328         * m4/mbspbrk.m4: New file.
42329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42330         GNULIB_MBSPBRK.
42331         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42332         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42333
42334 2007-02-04  Bruno Haible  <bruno@clisp.org>
42335
42336         New module mbscspn.
42337         * modules/mbscspn: New file.
42338         * lib/mbscspn.c: New file.
42339         * lib/string_.h (strcspn): Add a conditional link warning.
42340         (mbscspn): New declaration.
42341         * m4/mbscspn.m4: New file.
42342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42343         GNULIB_MBSCSPN.
42344         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42345         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42346
42347 2007-02-04  Bruno Haible  <bruno@clisp.org>
42348
42349         New module mbscasestr, reduced goal of strcasestr.
42350         * modules/mbscasestr: New file.
42351         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42352         (mbscasestr): Renamed from strcasestr.
42353         * lib/strcasestr.c: Don't include mbuiter.h.
42354         (strcasestr): Remove support for multibyte locales.
42355         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42356         Change the conditional link warning.
42357         (mbscasestr): New declaration.
42358         * m4/mbscasestr.m4: New file.
42359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42360         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42361         REPLACE_STRCASESTR.
42362         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42364         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42365         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42366         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42367         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42368         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42369         (Depends-on): Remove mbuiter.
42370         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42371
42372 2007-02-04  Bruno Haible  <bruno@clisp.org>
42373
42374         Simplify handling of strncasecmp.
42375         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42376         the conditional link warning.
42377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42378         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42379         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42380         * modules/strcase (configure.ac): Don't invoke
42381         gl_STRING_MODULE_INDICATOR.
42382         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42383
42384 2007-02-04  Bruno Haible  <bruno@clisp.org>
42385
42386         New module mbscasecmp, reduced goal of strcasecmp.
42387         * modules/mbscasecmp: New file.
42388         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42389         (mbscasecmp): Renamed from strcasecmp.
42390         * lib/strcasecmp.c: Don't include mbuiter.h.
42391         (strcasecmp): Remove support for multibyte locales.
42392         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42393         Change the conditional link warning.
42394         (mbscasecmp): New declaration.
42395         * m4/mbscasecmp.m4: New file.
42396         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42397         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42398         REPLACE_STRCASECMP.
42399         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42401         GNULIB_MBSCASECMP.
42402         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42403         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42404         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42405         (Depends-on): Remove mbuiter.
42406         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42407
42408 2007-02-04  Bruno Haible  <bruno@clisp.org>
42409
42410         New module mbsstr. Remove module strstr.
42411         * modules/mbsstr: New file.
42412         * modules/strstr: Remove file.
42413         * lib/mbsstr.c: Renamed from lib/strstr.c.
42414         (mbsstr): Renamed from strstr.
42415         * lib/string_.h (strstr): Remove declaration. Change the conditional
42416         link warning.
42417         (mbsstr): New declaration.
42418         * m4/mbsstr.m4: New file.
42419         * m4/strstr.m4: Remove file.
42420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42421         REPLACE_STRSTR.
42422         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42423         Don't initialize GNULIB_STRSTR.
42424         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42425         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42426         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42427         (Support for systems lacking ANSI C 89): Remove strstr.
42428
42429 2007-02-04  Bruno Haible  <bruno@clisp.org>
42430
42431         New module mbsrchr.
42432         * modules/mbsrchr: New file.
42433         * lib/mbsrchr.c: New file.
42434         * lib/string_.h (strrchr): Add a conditional link warning.
42435         (mbsrchr): New declaration.
42436         * m4/mbsrchr.m4: New file.
42437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42438         GNULIB_MBSRCHR.
42439         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42440         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42441
42442 2007-02-04  Bruno Haible  <bruno@clisp.org>
42443
42444         New module mbschr.
42445         * modules/mbschr: New file.
42446         * lib/mbschr.c: New file.
42447         * lib/string_.h (strchr): Add a conditional link warning.
42448         (mbschr): New declaration.
42449         * m4/mbschr.m4: New file.
42450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42451         GNULIB_MBSCHR.
42452         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42453         * MODULES.html.sh (Internationalization functions): Add mbschr.
42454
42455 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42456
42457         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42458
42459         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42460
42461 2007-02-04  Bruno Haible  <bruno@clisp.org>
42462
42463         New module description section 'configure.ac-early'.
42464         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42465         (func_get_autoconf_early_snippet): New function.
42466         (func_import, func_create_testdir): Use it. Remove special cases for
42467         modules 'extensions' and 'lock'.
42468         * modules/extensions (configure.ac-early): Require
42469         gl_USE_SYSTEM_EXTENSIONS.
42470         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42471
42472 2007-02-04  Bruno Haible  <bruno@clisp.org>
42473
42474         Make use of gcj-4.3's -fsource and -ftarget option.
42475         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42476         and if so try the options -fsource and -ftarget.
42477         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42478         source_version, ftarget_option, target_version arguments.
42479         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42480         (is_envjavac_oldgcj_14_14_usable): Renamed from
42481         is_envjavac_gcj_14_14_usable.
42482         (is_envjavac_oldgcj_14_13_usable): Renamed from
42483         is_envjavac_gcj_14_13_usable.
42484         (is_gcj_present): Update.
42485         (is_gcj_43, is_gcj43_usable): New functions.
42486         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42487         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42488         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42489         try the options -fsource and -ftarget.
42490
42491 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42492
42493         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42494         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42495         larger value.
42496
42497 2007-02-03  Jim Meyering  <jim@meyering.net>
42498
42499         Give tools a better chance to allocate space for very large buffers.
42500         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42501
42502         Make pwd and readlink work also when run with an unreadable parent dir
42503         on systems with openat support.
42504         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42505         provided getcwd function, even when we have openat support.
42506         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42507
42508 2007-02-02  Bruno Haible  <bruno@clisp.org>
42509
42510         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42511         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42512         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42513         portability problems if one of these functions is only used on specific
42514         platforms.
42515         Reported by Paul Eggert.
42516
42517 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42518
42519         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42520         is causing more trouble than it's curing.
42521         * lib/regex_internal.h (__mempcpy): Remove.
42522         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42523         (and make the code a tad smaller to boot).
42524         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42525
42526 2007-02-02  Jim Meyering  <jim@meyering.net>
42527
42528         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42529         section, not in the Makefile.am: one.
42530
42531 2007-02-02  Eric Blake  <ebb9@byu.net>
42532
42533         * lib/strchrnul.c: Always include config.h first.
42534
42535         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42536         gnulib strstr is not necessary here.
42537
42538 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42539
42540         * m4/socklen.m4: Fix typo.
42541
42542 2007-02-02  Eric Blake  <ebb9@byu.net>
42543
42544         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42545         * modules/netinet_in (Makefile.am): Likewise.
42546
42547 2007-02-01  Bruno Haible  <bruno@clisp.org>
42548
42549         * lib/string_.h (GL_LINK_WARNING): New macro.
42550         (strcasecmp, strstr, strcasestr): If provided by the system,
42551         conditionally define as a macro that leads to a warning instead of to
42552         an error.
42553         (strncasecmp): Conditionally define as a macro that leads to a warning.
42554
42555 2007-02-01  Karl Berry  <karl@gnu.org>
42556
42557         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42558
42559 2007-02-01  Bruno Haible  <bruno@clisp.org>
42560
42561         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42562         renamings.
42563
42564 2007-02-01  Eric Blake  <ebb9@byu.net>
42565
42566         * modules/regex (Depends-on): Revert dependence on mempcpy.
42567         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42568         module's definition of mempcpy.
42569         Reported by Paul Eggert.
42570
42571 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42572
42573         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42574         the symbol XYZ before redefining it.  This fixes a problem with
42575         programs that don't use XYZ, when compiled on systems that define
42576         XYZ to something else.
42577
42578 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42579
42580         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42581         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42582         writeable to group or other and (2) is intended to have a special
42583         mode bit that is set or cleared.  In such a case, the directory
42584         should be neither group- nor other-writeable until the special
42585         mode bits are right.
42586
42587 2007-01-31  Eric Blake  <ebb9@byu.net>
42588
42589         * modules/mountlist (Depends-on): Add strstr.
42590
42591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42592         bug.
42593         * modules/string (Makefile.am): Remove redundant replacement.
42594         * modules/regex (Depends-on): Add mempcpy.
42595
42596 2007-01-31  Bruno Haible  <bruno@clisp.org>
42597
42598         New module description field 'Link'.
42599         * gnulib-tool (func_usage): Document --extract-link-directive.
42600         (sed_extract_prog): Recognize 'Link' directive.
42601         (func_get_link_directive): New function.
42602         (func_import): Show summary of link directives.
42603         Handle --extract-link-directive option.
42604         * modules/acl (Link): New section.
42605         * modules/clock-time (Link): New section.
42606         * modules/euidaccess (Link): New section.
42607         * modules/gettext (Link): New section.
42608         * modules/iconv (Link): New section.
42609         * modules/lock (Link): New section.
42610         * modules/nanosleep (Link): New section.
42611         * modules/readline (Link): New section.
42612
42613 2007-01-27  Bruno Haible  <bruno@clisp.org>
42614
42615         Enforce the use of gnulib modules for unportable <string.h> functions.
42616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42618         (gl_HEADER_STRING_H_BODY): Require it.
42619         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42620         the symbol XYZ to one that gives a link error.
42621         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42622         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42623         * modules/mempcpy (configure.ac): Likewise.
42624         * modules/memrchr (configure.ac): Likewise.
42625         * modules/stpcpy (configure.ac): Likewise.
42626         * modules/stpncpy (configure.ac): Likewise.
42627         * modules/strcase (configure.ac): Likewise.
42628         * modules/strcasestr (configure.ac): Likewise.
42629         * modules/strchrnul (configure.ac): Likewise.
42630         * modules/strdup (configure.ac): Likewise.
42631         * modules/strndup (configure.ac): Likewise.
42632         * modules/strnlen (configure.ac): Likewise.
42633         * modules/strpbrk (configure.ac): Likewise.
42634         * modules/strsep (configure.ac): Likewise.
42635         * modules/strstr (configure.ac): Likewise.
42636         * modules/strtok_r (configure.ac): Likewise.
42637
42638 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42639
42640         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42641
42642 2007-01-30  Jim Meyering  <jim@meyering.net>
42643
42644         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42645
42646 2007-01-29  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42649         * lib/execute.c: Likewise.
42650         * lib/pipe.c: Likewise.
42651         * lib/printf-args.h: Likewise.
42652         * lib/printf-args.c: Likewise.
42653         * lib/printf-parse.c: Likewise.
42654         * lib/vasnprintf.c: Likewise.
42655
42656 2007-01-29  Eric Blake  <ebb9@byu.net>
42657
42658         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42659         declaration.
42660
42661 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42662
42663         * lib/strptime.h (strptime): Use 'restrict' for args where
42664         POSIX requires this.
42665         * lib/strptime.c (strptime): Likewise.
42666         Change license notice from LGPL to GPL, since gnulib-tool will
42667         change this as needed.
42668         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42669         defined.
42670         Include "strptime.h" first, to check interface.
42671         Do not #undef _LIBC and _NL_CURRENT.
42672         Do not include <stdlib.h>; no longer needed.
42673         Include "time_r.h" and declare ptime_locale_status
42674         only if _LIBC is not defined.
42675         (__P): Remove unused macro.
42676         (match_string): Bring back glibc version, but use it only if _LIBC
42677         is defined.
42678         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42679         Remove unnecessary assertion and abort() call.
42680         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42681         * m4/strptime.m4: Fix serial number comment.
42682         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42683         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42684         (Depends-on): Add time_r.
42685
42686 2007-01-29  Bruno Haible  <bruno@clisp.org>
42687
42688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42689         strptime.
42690         * modules/strptime (Depends-on): Add stdbool.
42691         * lib/strptime.h: Include <time.h> always. Add comments.
42692
42693 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42694
42695         * modules/strptime: New file.
42696         * lib/strptime.h: New file.
42697         * lib/strptime.c: New file.
42698         * m4/strptime.m4: New file.
42699
42700 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42701
42702         * MODULES.html.sh: New module mpsort.
42703         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42704
42705         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42706         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42708         All uses changed.
42709         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42710         All uses changed.
42711         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42712         to _Restrict_.
42713         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42714         the parameter matches the prototype.
42715
42716 2007-01-28  Jim Meyering  <jim@meyering.net>
42717
42718         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42719         sys/time.h here, reverting that part of the previous patch:
42720         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42721
42722 2007-01-28  Bruno Haible  <bruno@clisp.org>
42723
42724         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42725         value of $(SYS_TIME_H).
42726         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42727         remove it conditionally, too. [added by Jim Meyering]
42728         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42729         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42730         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42731         GETTIMEOFDAY_REPLACEMENT to 1.
42732
42733 2007-01-28  Bruno Haible  <bruno@clisp.org>
42734
42735         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42736         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42738         Set UNISTD_H instead of UNISTD_H2.
42739         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42740
42741 2007-01-28  Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42744         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42745
42746 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42747
42748         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42749         (func_create_testdir): Ensure C locale for `grep' and `tr'
42750         character ranges.
42751         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42752         ACLOCAL_AMFLAGS parsing state machine.
42753
42754 2007-01-27  Bruno Haible  <bruno@clisp.org>
42755
42756         * modules/unistr/base: Update.
42757
42758 2007-01-27  Bruno Haible  <bruno@clisp.org>
42759
42760         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42761         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42762         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42763         modules/unistr/u32-mbtouc.
42764         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42765         * lib/unistr.h: Update.
42766         * lib/linebreak.c: Update.
42767         * modules/unistr/u32-mbtouc: Renamed from
42768         modules/unistr/u32-mbtouc-safe.
42769         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42770         * lib/unistr.h: Update.
42771         * lib/unistr/u32-to-u8.c: Update.
42772         * lib/unistr/u32-to-u16.c: Update.
42773
42774 2007-01-27  Bruno Haible  <bruno@clisp.org>
42775
42776         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42777         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42778         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42779         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42780         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42781         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42782         modules/unistr/u16-mbtouc.
42783         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42784         * lib/unistr.h: Update.
42785         * lib/linebreak.c: Update.
42786         * modules/linebreak: Update.
42787         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42788         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42789         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42790         * modules/unistr/u16-mbtouc: Renamed from
42791         modules/unistr/u16-mbtouc-safe.
42792         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42793         * lib/unistr.h: Update.
42794         * lib/unistr/u16-to-u8.c: Update.
42795         * modules/unistr/u16-to-u8: Update.
42796         * lib/unistr/u16-to-u32.c: Update.
42797         * modules/unistr/u16-to-u32: Update.
42798
42799 2007-01-27  Bruno Haible  <bruno@clisp.org>
42800
42801         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42802         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42803         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42804         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42805         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42806         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42807         modules/unistr/u8-mbtouc.
42808         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42809         * lib/unistr.h: Update.
42810         * lib/striconveh.c: Update.
42811         * modules/striconveh: Update.
42812         * lib/linebreak.c: Update.
42813         * modules/linebreak: Update.
42814         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42815         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42816         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42817         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42818         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42819         * lib/unistr.h: Update.
42820         * lib/striconveh.c: Update.
42821         * modules/striconveh: Update.
42822         * lib/unistr/u8-to-u16.c: Update.
42823         * modules/unistr/u8-to-u16: Update.
42824         * lib/unistr/u8-to-u32.c: Update.
42825         * modules/unistr/u8-to-u32: Update.
42826
42827 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42828
42829         Sync from Libtool.
42830         * lib/argz.c: Do not include strings.h nor memory.h, include
42831         string.h unconditionally.  Patch by Simon Josefsson.
42832
42833 2007-01-27  Bruno Haible  <bruno@clisp.org>
42834
42835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42836         from gl_HEADER_STRING_H_BODY.
42837         (gl_HEADER_STRING_H_BODY): Require it.
42838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42839         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42840         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42841         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42843         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42844         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42845         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42846         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42848         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42849         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42850         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42851         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42852         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42853
42854 2007-01-27  Bruno Haible  <bruno@clisp.org>
42855
42856         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42857         check_PROGRAMS into noinst_PROGRAMS.
42858         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42859         check_PROGRAMS in this case.
42860         (func_import): Set for_test to false.
42861         (func_create_testdir): Set for_test to true.
42862
42863 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42864             Bruno Haible  <bruno@clisp.org>
42865
42866         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42867         (Depends-on): Add string.
42868         (Includes): Use <string.h> instead of strcasestr.h.
42869         * modules/string (Makefile.am): Also substitute the value of
42870         REPLACE_STRCASESTR.
42871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42872         assume strcasestr is declared in <string.h> not <strings.h>. Also
42873         set REPLACE_STRCASESTR.
42874         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42875         REPLACE_STRCASESTR.
42876         * lib/strcasestr.h: Remove file.
42877         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42878         * lib/string_.h (strcasestr): New declaration.
42879
42880 2007-01-27  Bruno Haible  <bruno@clisp.org>
42881
42882         * lib/string_.h: Use 'extern'.
42883
42884 2007-01-27  Jim Meyering  <jim@meyering.net>
42885
42886         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42887         of set-but-not-used local, "q".
42888
42889         * lib/mempcpy.c: Include <config.h> before <string.h>.
42890         This fixes a compilation error on HP-UX, due to the system's
42891         "restrict"-using mempcpy prototype.
42892
42893 2007-01-26  Bruno Haible  <bruno@clisp.org>
42894
42895         Small optimization.
42896         * lib/javacomp.c: Include c-strstr.h.
42897          (is_envjavac_gcj): Use c_strstr instead of strstr.
42898         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42899
42900 2007-01-26  Bruno Haible  <bruno@clisp.org>
42901
42902         * MODULES.html.sh (Unicode string functions): Add the new modules.
42903
42904         * modules/uniconv/u32-strconv-to-locale: New file.
42905         * lib/uniconv/u32-strconv-to-locale.c: New file.
42906
42907         * modules/uniconv/u16-strconv-to-locale: New file.
42908         * lib/uniconv/u16-strconv-to-locale.c: New file.
42909
42910         * modules/uniconv/u8-strconv-to-locale: New file.
42911         * lib/uniconv/u8-strconv-to-locale.c: New file.
42912
42913         * modules/uniconv/u32-strconv-from-locale: New file.
42914         * lib/uniconv/u32-strconv-from-locale.c: New file.
42915
42916         * modules/uniconv/u16-strconv-from-locale: New file.
42917         * lib/uniconv/u16-strconv-from-locale.c: New file.
42918
42919         * modules/uniconv/u8-strconv-from-locale: New file.
42920         * lib/uniconv/u8-strconv-from-locale.c: New file.
42921
42922         * modules/uniconv/u32-strconv-to-enc: New file.
42923         * lib/uniconv/u32-strconv-to-enc.c: New file.
42924         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42925         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42926
42927         * modules/uniconv/u16-strconv-to-enc: New file.
42928         * lib/uniconv/u16-strconv-to-enc.c: New file.
42929         * lib/uniconv/u-strconv-to-enc.h: New file.
42930         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42931         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42932
42933         * modules/uniconv/u8-strconv-to-enc: New file.
42934         * lib/uniconv/u8-strconv-to-enc.c: New file.
42935         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42936         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42937
42938         * modules/uniconv/u32-strconv-from-enc: New file.
42939         * lib/uniconv/u32-strconv-from-enc.c: New file.
42940         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42941         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42942
42943         * modules/uniconv/u16-strconv-from-enc: New file.
42944         * lib/uniconv/u16-strconv-from-enc.c: New file.
42945         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42946         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42947
42948         * modules/uniconv/u8-strconv-from-enc: New file.
42949         * lib/uniconv/u8-strconv-from-enc.c: New file.
42950         * lib/uniconv/u-strconv-from-enc.h: New file.
42951         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42952         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42953
42954         * modules/uniconv/u32-conv-from-enc: New file.
42955         * lib/uniconv/u32-conv-from-enc.c: New file.
42956         * modules/uniconv/u32-conv-from-enc-tests: New file.
42957         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42958
42959         * modules/uniconv/u16-conv-from-enc: New file.
42960         * lib/uniconv/u16-conv-from-enc.c: New file.
42961         * lib/uniconv/u-conv-from-enc.h: New file.
42962         * modules/uniconv/u16-conv-from-enc-tests: New file.
42963         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42964
42965         * modules/uniconv/u8-conv-from-enc: New file.
42966         * lib/uniconv/u8-conv-from-enc.c: New file.
42967         * modules/uniconv/u8-conv-from-enc-tests: New file.
42968         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42969
42970         * modules/uniconv/base: New file.
42971         * lib/uniconv.h: New file.
42972
42973 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42974
42975         * doc/gnulib-tool.texi (Initial import): Update to match current
42976         behavior with strdup module.
42977         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42978         * lib/memmem.h: Remove; all uses removed.  This is now done
42979         by <string.h>.
42980         * lib/mempcpy.h: Likewise.
42981         * lib/memrchr.h: Likewise.
42982         * lib/stpcpy.h: Likewise.
42983         * lib/stpncpy.h: Likewise.
42984         * lib/strcase.h: Likewise.
42985         * lib/strchrnul.h: Likewise.
42986         * lib/strdup.h: Likewise.
42987         * lib/strndup.h: Likewise.
42988         * lib/strnlen.h: Likewise.
42989         * lib/strpbrk.h: Likewise.
42990         * lib/strsep.h: Likewise.
42991         * lib/strstr.h: Likewise.
42992         * lib/strtok_r.h: Likewise.
42993         * lib/string_.h: New file.
42994         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42995         Rely on <string.h> instead.
42996         * lib/canon-host.c: Likewise.
42997         * lib/chdir-long.c: Likewise.
42998         * lib/concatpath.c: Likewise.
42999         * lib/exclude.c: Likewise.
43000         * lib/fchdir.c: Likewise.
43001         * lib/getaddrinfo.c: Likewise.
43002         * lib/getcwd.c: Likewise.
43003         * lib/getsubopt.c: Likewise.
43004         * lib/glob.c: Likewise.
43005         * lib/hard-locale.c: Likewise.
43006         * lib/iconvme.c: Likewise.
43007         * lib/javacomp.c: Likewise.
43008         * lib/mempcpy.c: Likewise.
43009         * lib/memrchr.c: Likewise.
43010         * lib/regex_internal.h: Likewise.
43011         * lib/stpncpy.c: Likewise.
43012         * lib/strcasecmp.c: Likewise.
43013         * lib/strchrnul.c: Likewise.
43014         * lib/strdup.c: Likewise.
43015         * lib/striconv.c: Likewise.
43016         * lib/striconveh.c: Likewise.
43017         * lib/striconveha.c: Likewise.
43018         * lib/strncasecmp.c: Likewise.
43019         * lib/strndup.c: Likewise.
43020         * lib/strnlen.c: Likewise.
43021         * lib/strsep.c: Likewise.
43022         * lib/strstr.c: Likewise.
43023         * lib/strtok_r.c: Likewise.
43024         * lib/userspec.c: Likewise.
43025         * lib/w32spawn.h: Likewise.
43026         * lib/xstrndup.c: Likewise.
43027         * lib/mountlist.c (strstr): Remove decl.
43028         * m4/string_h.m4: New file.
43029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43030         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43031         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43032         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43033         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43034         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43035         Set REPLACE_STRCASECMP if necessary.
43036         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43037         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43038         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43039         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43040         HAVE_DECL_STRDUP if necessary.
43041         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43042         since gl_FUNC_STRNDUP does that now.
43043         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43044         Check for decl here...
43045         (gl_PREREQ_STRNLEN): ... not here.
43046         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43047         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43048         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43049         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43050         necessary.
43051         * modules/string: New file.
43052         * modules/memmem (Files): Remove special-purpose include file.
43053         (Depends-on): Add string.
43054         (Include): Include <string.h>, not the removed file.
43055         * modules/mempcpy: Likewise.
43056         * modules/memrchr: Likewise.
43057         * modules/stpcpy: Likewise.
43058         * modules/stpncpy: Likewise.
43059         * modules/strcase: Likewise.
43060         * modules/strchrnul: Likewise.
43061         * modules/strdup: Likewise.
43062         * modules/strndup: Likewise.
43063         * modules/strnlen: Likewise.
43064         * modules/strpbrk: Likewise.
43065         * modules/strsep: Likewise.
43066         * modules/strstr: Likewise.
43067         * modules/strtok_r: Likewise.
43068         * tests/test-dirname.c: Don't include "strdup.h", since
43069         <string.h> now suffices.
43070         * tests/test-memmem.c: Don't include "memmem.h", since
43071         <string.h> now suffices.
43072
43073 2007-01-25  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43076         *resultp is 0.
43077
43078         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43079         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43080         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43081         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43082
43083         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43084         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43085         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43086         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43087         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43088         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43089
43090 2007-01-24  Bruno Haible  <bruno@clisp.org>
43091
43092         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43094         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43095         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43096         gl_FUNC_FTS_CORE.
43097         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43098         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43099         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43100         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43101         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43102         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43103         gl_FUNC_FCHOWNAT.
43104         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43105         gl_FUNC_STRFTIME.
43106         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43107         Reported by Ralf Wildenhues.
43108
43109 2007-01-24  Bruno Haible  <bruno@clisp.org>
43110
43111         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43112         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43113         gl_GETADDRINFO.
43114         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43115         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43116         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43117
43118 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43121         Don't use 'exit'; just return from 'main'.
43122         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43123
43124         * lib/fnmatch_.h: Readjust white space and comments to match
43125         glibc, to avoid spurious diffs.
43126
43127 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43128
43129         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43130         2004-12-01 change by Jakub Jelinek, since this code won't compile
43131         if !LIBC.  Problem reported by Bob Proulx.
43132
43133 2007-01-23  Bruno Haible  <bruno@clisp.org>
43134
43135         * lib/striconveh.c: Include c-strcaseeq.h.
43136         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43137         * modules/striconveh (Depends-on): Add c-strcaseeq.
43138
43139 2007-01-23  Bruno Haible  <bruno@clisp.org>
43140
43141         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43142
43143         * modules/c-strcaseeq: New file.
43144         * lib/c-strcaseeq.h: New file.
43145
43146         * modules/streq: New file.
43147         * lib/streq.h: New file.
43148
43149 2007-01-23  Bruno Haible  <bruno@clisp.org>
43150
43151         * modules/striconveha-tests: New file.
43152         * tests/test-striconveha.c: New file.
43153
43154         * lib/striconveha.h: Include <stdbool.h>.
43155         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43156         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43157         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43158         (mem_iconveha): New function.
43159         (str_iconveha_notranslit): Renamed from str_iconveha.
43160         (str_iconveha): New function.
43161         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43162         c-strcase.
43163
43164 2007-01-23  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43167         encodings without forgiving before trying any encoding with handler.
43168         (str_iconveha): Try all encodings without forgiving before trying any
43169         encoding with handler.
43170
43171 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43172
43173         Import the following changes from libc.
43174
43175         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43176
43177         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43178
43179         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43180
43181         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43182         normal_bracket label.
43183
43184         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43185
43186         [BZ #361]
43187         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43188         to normal_bracket after fetching the next character.
43189
43190 2007-01-22  Bruno Haible  <bruno@clisp.org>
43191
43192         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43193         argument.
43194         * lib/striconveh.c (iconv_carefully_1): New function.
43195         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43196         argument.
43197         (str_cd_iconveh): Update.
43198         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43199         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43200         * tests/test-striconveh.c (MAGIC): New macro.
43201         (new_offsets): New function.
43202         (main): Test call with and without offsets.
43203
43204 2007-01-22  Bruno Haible  <bruno@clisp.org>
43205
43206         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43207         * modules/sys_select (Makefile.am): Likewise.
43208         * modules/sys_socket (Makefile.am): Likewise.
43209         * modules/sys_time (Makefile.am): Likewise.
43210
43211 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43212
43213         * modules/gettimeofday (License): Change from GPL to LGPL, since
43214         gettimeofday is a library function.
43215
43216 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43217
43218         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43219
43220 2007-01-21  Bruno Haible  <bruno@clisp.org>
43221
43222         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43223
43224 2007-01-21  Bruno Haible  <bruno@clisp.org>
43225
43226         * modules/striconveha: New file.
43227         * lib/striconveha.h: New file.
43228         * lib/striconveha.c: New file.
43229         * MODULES.html.sh (Internationalization functions): Add striconveha.
43230         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43231         string.
43232         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43233
43234 2007-01-21  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43237         * lib/striconveh.c (str_iconveh): Likewise.
43238
43239 2007-01-21  Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/striconveh.h (mem_iconveh): New declaration.
43242         * lib/striconveh.c (mem_iconveh): New function.
43243         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43244
43245 2007-01-21  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43248
43249         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43250         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43251         original result buffer.
43252         (str_cd_iconveh): Update.
43253         * tests/test-striconveh.c (main): Update.
43254
43255         * lib/striconv.h (mem_cd_iconv): Change specification.
43256         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43257         result buffer.
43258         (str_cd_iconv): Update.
43259         * tests/test-striconv.c (main): Update.
43260
43261 2007-01-21  Bruno Haible  <bruno@clisp.org>
43262
43263         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43264
43265 2007-01-20  Jim Meyering  <jim@meyering.net>
43266
43267         * lib/userspec.c (parse_with_separator): If a user or group string
43268         starts with "+", skip the corresponding name-to-ID look-up, since
43269         such a look-up must fail: user and group names may not include "+".
43270
43271 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43272
43273         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43274         since we now assume the sys_time module.
43275         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43276         check for sys/time.h; no longer needed.
43277         * modules/poll (Depends-on): Depend on sys_time.
43278
43279 2007-01-18  Bruno Haible  <bruno@clisp.org>
43280
43281         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43282         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43283
43284         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43285         gettimeofday.
43286
43287         * tests/test-gettimeofday.c: Include <time.h>.
43288         (dummy): Remove variable.
43289
43290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43291         gl_HEADER_SYS_TIME_H.
43292         (gl_HEADER_SYS_TIME_H): New macro.
43293
43294         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43295         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43297         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43298         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43299         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43300         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43301         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43302         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43303         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43304         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43305
43306         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43307         last change; it caused a compilation error when cross-compiling to
43308         Cygwin.
43309
43310 2007-01-18  Jim Meyering  <jim@meyering.net>
43311
43312         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43313         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43314         than the race-prone "test -d sys || mkdir sys".
43315         (configure.ac): Use AC_PROG_MKDIR_P.
43316         * modules/sys_select: Likewise.
43317         * modules/sys_socket: Likewise.
43318         * modules/sys_time: Likewise.
43319
43320 2007-01-18  Eric Blake  <ebb9@byu.net>
43321
43322         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43323         replace gettimeofday.
43324         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43325         name, to avoid infinite recursion.
43326
43327 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43328
43329         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43330         module sys_time.
43331         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43332         assume timespec.h defines struct timeval.
43333         * lib/settime.c: Likewise.
43334         * lib/utimens.c: Likewise.
43335         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43336         since we now assume the gettimeofday module.
43337         * lib/tempname.c (__gen_tempname): Likewise.
43338         * lib/gettimeofday.h: Remove.
43339         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43340         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43341         Include <time.h>, for 'time()'.
43342         (localtime_buffer_addr): Also use this workaround if
43343         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43344         to simplify the uses.  All uses changed.
43345         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43346         that #undef is inside {}, and 'const' follows type name consistently.
43347         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43348         (gettimeofday): Do not use the maximum possible value for
43349         tv->tv_usec, since that might break usages other than ls.c.
43350         Instead, we'll leave ls.c alone.  This undoes today's patch
43351         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43352         we've never observed the problem but might as well keep the
43353         canary.
43354         * lib/nanosleep.c: Include timespec.h first, for interface check.
43355         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43356         now assume the sys_time module.
43357         * lib/tempname.c: Likewise.
43358         * lib/timespec.h: Likewise.
43359         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43360         needed.
43361         * lib/strftime.c: Likewise.
43362         * lib/timespec.h: Likewise.
43363         * lib/posixtm.c: Include posixtm.h first, for interface check.
43364         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43365         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43366         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43367         * lib/sys_time_.h: New file.
43368         * lib/timespec.h (struct timespec): Use long int, not long.
43369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43370         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43371         Remove obsolescent call to AC_HEADER_TIME.
43372         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43374         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43375         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43376         Likewise.
43377         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43378         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43380         into the sys_time module.  Check for gettimeofday just once.
43381         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43382         for gettimeofday signature to just check the signature.  Merely
43383         compile it, since linking doesn't test signature.  Improve test for
43384         whether gettimeofday.o is actually needed.
43385         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43386         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43387         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43388         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43389         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43390         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43391         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43392         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43393         than worrying about sys/time.h.
43394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43395         Don't bother worrying about TIME_WITH_SYS_TIME.
43396         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43397         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43398         * m4/sys_time_h.m4: New file.
43399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43400         Don't include sys/time.h.  Return from main rather than exiting.
43401         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43402         all uses changed.
43403         * modules/gethrxtime (Depends-on): Add sys_time.
43404         * modules/gettime (Depends-on): Likewise.
43405         * modules/gettimeofday (Depends-on): Likewise.
43406         * modules/nanosleep (Depends-on): Likewise.
43407         * modules/settime (Depends-on): Likewise.
43408         * modules/tempname (Depends-on): Likewise.
43409         * modules/utimens (Depends-on): Likewise.
43410         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43411         (Include:) Change back to <sys/time.h>.
43412         (Maintainer:) Add self.
43413         * modules/sys_time: New file.
43414         * modules/tempname (Depends-on): Add gettimeofday.
43415         * tests/test-gettimeofday.c: Include <sys/time.h>
43416         rather than gettimeofday.h.
43417
43418 2007-01-17  Bruno Haible  <bruno@clisp.org>
43419
43420         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43421         the license default to GPL.
43422         (func_create_testdir): Don't complain if a module is LGPL and its
43423         tests module depends on GPLed modules.
43424
43425 2007-01-17  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/gettimeofday.c (gettimeofday): Add code for the case
43428         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43429         maximum possible value for tv->tv_usec, rather than the minimum one.
43430
43431 2005-10-08  Martin Lambers  <marlam@marlam.de>
43432 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43433 2007-01-16  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43436         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43437         gl_FUNC_GETTIMEOFDAY.
43438         (Include): Add gettimeofday.h.
43439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43440         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43441         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43442         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43443         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43444         * lib/gettimeofday.h: New file.
43445         * lib/gettimeofday.c: Include <sys/timeb.h>.
43446         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43447         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43448         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43449         fall back on time().
43450
43451         * tests/test-gettimeofday.c: New file.
43452         * modules/gettimeofday-tests: New file.
43453
43454 2007-01-16  Eric Blake  <ebb9@byu.net>
43455
43456         * modules/fnmatch (Depends-on): Depend on wchar.
43457         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43458         * m4/fnmatch.m4: Likewise.
43459         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43460         * m4/mbchar.m4: Likewise.
43461         * modules/mbswidth (Depends-on): Depend on wchar.
43462         * lib/mbswidth.c: Assume <wchar.h>.
43463         * m4/mbswidth.m4: Likewise.
43464         * modules/quotearg (Depends-on): Depend on wchar.
43465         * lib/quotearg.c: Assume <wchar.h>.
43466         * m4/quotearg.m4: Likewise.
43467         * modules/regex (Depends-on): Depend on wchar.
43468         * lib/regex_internal.h: Assume <wchar.h>.
43469         * m4/regex.m4: Likewise.
43470         * modules/stdint (Depends-on): Depend on wchar.
43471         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43472         * m4/stdint.m4: Likewise.
43473         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43474         * modules/strftime (Depends-on): Depend on wchar.
43475         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43476         * modules/strtol (Depends-on): Depend on wchar.
43477         * lib/strtol.c: Assume <wchar.h>.
43478         * modules/wcwidth (Depends-on): Depend on wchar.
43479         * lib/wcwidth.h: Assume <wchar.h>.
43480         * m4/wcwidth.m4: Likewise.
43481
43482 2007-01-16  Bruno Haible  <bruno@clisp.org>
43483
43484         * modules/csharpexec-script: New, created from...
43485         * modules/csharpexec: ... this.
43486
43487 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43488
43489         * modules/javaexec-script: New, created from...
43490         * modules/javaexec: ... this.
43491
43492 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43493
43494         * modules/poll (Dependencies): Add sys_select.
43495
43496 2007-01-15  Jim Meyering  <jim@meyering.net>
43497
43498         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43499         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43500         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43501         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43502
43503 2007-01-15  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/striconveh: New file.
43506         * lib/striconveh.h: New file.
43507         * lib/striconveh.c: New file.
43508         * MODULES.html.sh (Internationalization functions): Add striconveh.
43509
43510         * modules/striconveh-tests: New file.
43511         * tests/test-striconveh.c: New file.
43512
43513 2007-01-15  Bruno Haible  <bruno@clisp.org>
43514
43515         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43516         not from GNU libiconv or GNU libc.
43517
43518 2007-01-15  Bruno Haible  <bruno@clisp.org>
43519
43520         * doc/gnulib-intro.texi (Copyright): Explain the different license
43521         terms for module descriptions, autoconf macros, tests, documentation.
43522
43523 2007-01-14  Bruno Haible  <bruno@clisp.org>
43524
43525         * modules/striconv-tests: New file.
43526         * tests/test-striconv.c: New file.
43527
43528 2007-01-14  Bruno Haible  <bruno@clisp.org>
43529
43530         * modules/iconv-tests: New file.
43531         * tests/test-iconv.c: New file.
43532
43533 2007-01-14  Bruno Haible  <bruno@clisp.org>
43534
43535         * gnulib-tool (func_get_license): For test modules, use the license of
43536         the main module.
43537
43538 2007-01-14  Bruno Haible  <bruno@clisp.org>
43539
43540         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43541         if iconv is found to exist.
43542
43543 2007-01-14  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/c-ctype-tests: New file.
43546         * tests/test-c-ctype.c: New file.
43547
43548 2007-01-14  Bruno Haible  <bruno@clisp.org>
43549
43550         * modules/binary-io-tests: New file.
43551         * tests/test-binary-io.sh: New file.
43552         * tests/test-binary-io.c: New file.
43553
43554 2007-01-14  Bruno Haible  <bruno@clisp.org>
43555
43556         * modules/array-oset-tests: New file.
43557         * tests/test-array_oset.c: New file.
43558
43559 2007-01-14  Bruno Haible  <bruno@clisp.org>
43560
43561         * modules/array-list-tests: New file.
43562         * tests/test-array_list.c: New file.
43563
43564 2007-01-14  Bruno Haible  <bruno@clisp.org>
43565
43566         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43567         and make.
43568         Reported by Simon Josefsson in
43569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43570
43571 2007-01-14  Bruno Haible  <bruno@clisp.org>
43572
43573         * modules/allocsa-tests: New file.
43574         * tests/test-allocsa.c: New file.
43575
43576 2007-01-14  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/fchdir (Depends-on): Add absolute-header.
43579         * modules/unistd (Depends-on): Likewise.
43580
43581 2006-12-30  Bruno Haible  <bruno@clisp.org>
43582
43583         * modules/fchdir: New file.
43584         * modules/unistd (Files): Add lib/unistd_.h.
43585         (Makefile.am): Generate unistd.h from unistd_.h.
43586         * lib/fchdir.c: New file.
43587         * lib/dirent_.h: New file.
43588         * lib/unistd_.h: New file.
43589         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43590         * m4/fchdir.m4: New file.
43591         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43592         (gl_HEADER_UNISTD): Invoke it.
43593         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43594         function.
43595         * lib/backupfile.c (opendir, closedir): Undefine.
43596         * lib/chown.c (open, close): Undefine.
43597         * lib/clean-temp.c (open, close): Undefine.
43598         * lib/copy-file.c (open, close): Undefine.
43599         * lib/execute.c (open, close): Undefine.
43600         * lib/fsusage.c (open, close): Undefine.
43601         * lib/gc-gnulib.c (open, close): Undefine.
43602         * lib/getcwd.c (opendir, closedir): Undefine.
43603         * lib/glob.c (opendir, closedir): Undefine.
43604         * lib/javacomp.c (open, close): Undefine.
43605         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43606         * lib/openat-proc.c (open, close): Undefine.
43607         * lib/pagealign_alloc.c (open, close): Undefine.
43608         * lib/pipe.c (open, close): Undefine.
43609         * lib/progreloc.c (open, close): Undefine.
43610         * lib/savedir.c (opendir, closedir): Undefine.
43611         * lib/utime.c (open, close): Undefine.
43612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43613
43614 2007-01-10  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43617
43618 2007-01-12  Eric Blake  <ebb9@byu.net>
43619
43620         Provide a robust <wchar.h>.  Further simplifications are now
43621         possible in other modules, but not included here.
43622         * modules/wchar: New module.
43623         * m4/wchar.m4: New file.
43624         * lib/wchar_.h: Likewise.
43625         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43626         of the new module.
43627         * MODULES.html.sh (Extended multibyte and wide character utilities):
43628         New section.
43629
43630 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43631
43632         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43633         to a reasonable default for memory allocation.
43634         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43635         file system that reports garbage st_size values for symlinks.
43636         Problem reported by Liyang Hu.
43637
43638 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43639
43640         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43641         Emacs .#* auto-save files).
43642
43643 2007-01-11  Bruno Haible  <bruno@clisp.org>
43644
43645         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43646         directory.
43647
43648 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43649
43650         Use @...@ consistently in lib/wctype_.h.
43651         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43652         on it being set to 1 or 0.
43653         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43654         go back to AC_SUBSTing it.
43655         * modules/wctype (Makefile.am): Undo previous change.
43656
43657 2007-01-10  Eric Blake  <ebb9@byu.net>
43658
43659         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43660         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43661         * modules/wctype (Makefile.am): Likewise.
43662         Reported by Chris McGuire.
43663
43664 2007-01-10  Jim Meyering  <jim@meyering.net>
43665
43666         fts.c: a small readability/maintainability improvement
43667         * lib/fts.c (fts_read): Make this code slightly more readable and
43668         maintainable by hoisting the "sp->fts_cur = p" assignments to
43669         immediately follow the statements that set P.  Derived from
43670         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43671
43672 2007-01-10  Eric Blake  <ebb9@byu.net>
43673
43674         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43675         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43677         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43678         Reported by Chris McGuire.
43679
43680 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43681
43682         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43683         in sed script.
43684
43685 2007-01-09  Bruno Haible  <bruno@clisp.org>
43686
43687         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43688         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43689         variables.
43690         (func_module): Use them.
43691
43692 2007-01-09  Bruno Haible  <bruno@clisp.org>
43693
43694         * modules/unistr/base: New file.
43695         * lib/unistr.h: New file.
43696
43697         * modules/unistr/u8-to-u16: New file.
43698         * lib/unistr/u8-to-u16.c: New file.
43699
43700         * modules/unistr/u8-to-u32: New file.
43701         * lib/unistr/u8-to-u32.c: New file.
43702
43703         * modules/unistr/u16-to-u8: New file.
43704         * lib/unistr/u16-to-u8.c: New file.
43705
43706         * modules/unistr/u16-to-u32: New file.
43707         * lib/unistr/u16-to-u32.c: New file.
43708
43709         * modules/unistr/u32-to-u8: New file.
43710         * lib/unistr/u32-to-u8.c: New file.
43711
43712         * modules/unistr/u32-to-u16: New file.
43713         * lib/unistr/u32-to-u16.c: New file.
43714
43715         * modules/unistr/u8-check: New file.
43716         * modules/unistr/u16-check: New file.
43717         * modules/unistr/u32-check: New file.
43718         * lib/unistr/u8-check.c: New file.
43719         * lib/unistr/u16-check.c: New file.
43720         * lib/unistr/u32-check.c: New file.
43721
43722         * modules/unistr/u8-chr: New file.
43723         * modules/unistr/u16-chr: New file.
43724         * modules/unistr/u32-chr: New file.
43725         * lib/unistr/u8-chr.c: New file.
43726         * lib/unistr/u16-chr.c: New file.
43727         * lib/unistr/u32-chr.c: New file.
43728
43729         * modules/unistr/u8-cmp: New file.
43730         * modules/unistr/u16-cmp: New file.
43731         * modules/unistr/u32-cmp: New file.
43732         * lib/unistr/u8-cmp.c: New file.
43733         * lib/unistr/u16-cmp.c: New file.
43734         * lib/unistr/u32-cmp.c: New file.
43735
43736         * modules/unistr/u8-cpy: New file.
43737         * modules/unistr/u16-cpy: New file.
43738         * modules/unistr/u32-cpy: New file.
43739         * lib/unistr/u8-cpy.c: New file.
43740         * lib/unistr/u16-cpy.c: New file.
43741         * lib/unistr/u32-cpy.c: New file.
43742         * lib/unistr/u-cpy.h: New file.
43743
43744         * modules/unistr/u8-cpy-alloc: New file.
43745         * modules/unistr/u16-cpy-alloc: New file.
43746         * modules/unistr/u32-cpy-alloc: New file.
43747         * lib/unistr/u8-cpy-alloc.c: New file.
43748         * lib/unistr/u16-cpy-alloc.c: New file.
43749         * lib/unistr/u32-cpy-alloc.c: New file.
43750         * lib/unistr/u-cpy-alloc.h: New file.
43751
43752         * modules/unistr/u8-endswith: New file.
43753         * modules/unistr/u16-endswith: New file.
43754         * modules/unistr/u32-endswith: New file.
43755         * lib/unistr/u8-endswith.c: New file.
43756         * lib/unistr/u16-endswith.c: New file.
43757         * lib/unistr/u32-endswith.c: New file.
43758         * lib/unistr/u-endswith.h: New file.
43759
43760         * modules/unistr/u8-mblen: New file.
43761         * modules/unistr/u16-mblen: New file.
43762         * modules/unistr/u32-mblen: New file.
43763         * lib/unistr/u8-mblen.c: New file.
43764         * lib/unistr/u16-mblen.c: New file.
43765         * lib/unistr/u32-mblen.c: New file.
43766
43767         * modules/unistr/u8-mbtouc: New file.
43768         * modules/unistr/u16-mbtouc: New file.
43769         * modules/unistr/u32-mbtouc: New file.
43770         * lib/unistr/u8-mbtouc.c: New file.
43771         * lib/unistr/u16-mbtouc.c: New file.
43772         * lib/unistr/u32-mbtouc.c: New file.
43773
43774         * modules/unistr/u8-mbtouc-safe: New file.
43775         * modules/unistr/u16-mbtouc-safe: New file.
43776         * modules/unistr/u32-mbtouc-safe: New file.
43777         * lib/unistr/u8-mbtouc-safe.c: New file.
43778         * lib/unistr/u16-mbtouc-safe.c: New file.
43779         * lib/unistr/u32-mbtouc-safe.c: New file.
43780
43781         * modules/unistr/u8-move: New file.
43782         * modules/unistr/u16-move: New file.
43783         * modules/unistr/u32-move: New file.
43784         * lib/unistr/u8-move.c: New file.
43785         * lib/unistr/u16-move.c: New file.
43786         * lib/unistr/u32-move.c: New file.
43787         * lib/unistr/u-move.h: New file.
43788
43789         * modules/unistr/u8-next: New file.
43790         * modules/unistr/u16-next: New file.
43791         * modules/unistr/u32-next: New file.
43792         * lib/unistr/u8-next.c: New file.
43793         * lib/unistr/u16-next.c: New file.
43794         * lib/unistr/u32-next.c: New file.
43795
43796         * modules/unistr/u8-prev: New file.
43797         * modules/unistr/u16-prev: New file.
43798         * modules/unistr/u32-prev: New file.
43799         * lib/unistr/u8-prev.c: New file.
43800         * lib/unistr/u16-prev.c: New file.
43801         * lib/unistr/u32-prev.c: New file.
43802
43803         * modules/unistr/u8-set: New file.
43804         * modules/unistr/u16-set: New file.
43805         * modules/unistr/u32-set: New file.
43806         * lib/unistr/u8-set.c: New file.
43807         * lib/unistr/u16-set.c: New file.
43808         * lib/unistr/u32-set.c: New file.
43809         * lib/unistr/u-set.h: New file.
43810
43811         * modules/unistr/u8-startswith: New file.
43812         * modules/unistr/u16-startswith: New file.
43813         * modules/unistr/u32-startswith: New file.
43814         * lib/unistr/u8-startswith.c: New file.
43815         * lib/unistr/u16-startswith.c: New file.
43816         * lib/unistr/u32-startswith.c: New file.
43817         * lib/unistr/u-startswith.h: New file.
43818
43819         * modules/unistr/u8-stpcpy: New file.
43820         * modules/unistr/u16-stpcpy: New file.
43821         * modules/unistr/u32-stpcpy: New file.
43822         * lib/unistr/u8-stpcpy.c: New file.
43823         * lib/unistr/u16-stpcpy.c: New file.
43824         * lib/unistr/u32-stpcpy.c: New file.
43825         * lib/unistr/u-stpcpy.h: New file.
43826
43827         * modules/unistr/u8-stpncpy: New file.
43828         * modules/unistr/u16-stpncpy: New file.
43829         * modules/unistr/u32-stpncpy: New file.
43830         * lib/unistr/u8-stpncpy.c: New file.
43831         * lib/unistr/u16-stpncpy.c: New file.
43832         * lib/unistr/u32-stpncpy.c: New file.
43833         * lib/unistr/u-stpncpy.h: New file.
43834
43835         * modules/unistr/u8-strcat: New file.
43836         * modules/unistr/u16-strcat: New file.
43837         * modules/unistr/u32-strcat: New file.
43838         * lib/unistr/u8-strcat.c: New file.
43839         * lib/unistr/u16-strcat.c: New file.
43840         * lib/unistr/u32-strcat.c: New file.
43841         * lib/unistr/u-strcat.h: New file.
43842
43843         * modules/unistr/u8-strchr: New file.
43844         * modules/unistr/u16-strchr: New file.
43845         * modules/unistr/u32-strchr: New file.
43846         * lib/unistr/u8-strchr.c: New file.
43847         * lib/unistr/u16-strchr.c: New file.
43848         * lib/unistr/u32-strchr.c: New file.
43849
43850         * modules/unistr/u8-strcmp: New file.
43851         * modules/unistr/u16-strcmp: New file.
43852         * modules/unistr/u32-strcmp: New file.
43853         * lib/unistr/u8-strcmp.c: New file.
43854         * lib/unistr/u16-strcmp.c: New file.
43855         * lib/unistr/u32-strcmp.c: New file.
43856
43857         * modules/unistr/u8-strcpy: New file.
43858         * modules/unistr/u16-strcpy: New file.
43859         * modules/unistr/u32-strcpy: New file.
43860         * lib/unistr/u8-strcpy.c: New file.
43861         * lib/unistr/u16-strcpy.c: New file.
43862         * lib/unistr/u32-strcpy.c: New file.
43863         * lib/unistr/u-strcpy.h: New file.
43864
43865         * modules/unistr/u8-strcspn: New file.
43866         * modules/unistr/u16-strcspn: New file.
43867         * modules/unistr/u32-strcspn: New file.
43868         * lib/unistr/u8-strcspn.c: New file.
43869         * lib/unistr/u16-strcspn.c: New file.
43870         * lib/unistr/u32-strcspn.c: New file.
43871         * lib/unistr/u-strcspn.h: New file.
43872
43873         * modules/unistr/u8-strdup: New file.
43874         * modules/unistr/u16-strdup: New file.
43875         * modules/unistr/u32-strdup: New file.
43876         * lib/unistr/u8-strdup.c: New file.
43877         * lib/unistr/u16-strdup.c: New file.
43878         * lib/unistr/u32-strdup.c: New file.
43879         * lib/unistr/u-strdup.h: New file.
43880
43881         * modules/unistr/u8-strlen: New file.
43882         * modules/unistr/u16-strlen: New file.
43883         * modules/unistr/u32-strlen: New file.
43884         * lib/unistr/u8-strlen.c: New file.
43885         * lib/unistr/u16-strlen.c: New file.
43886         * lib/unistr/u32-strlen.c: New file.
43887         * lib/unistr/u-strlen.h: New file.
43888
43889         * modules/unistr/u8-strmblen: New file.
43890         * modules/unistr/u16-strmblen: New file.
43891         * modules/unistr/u32-strmblen: New file.
43892         * lib/unistr/u8-strmblen.c: New file.
43893         * lib/unistr/u16-strmblen.c: New file.
43894         * lib/unistr/u32-strmblen.c: New file.
43895
43896         * modules/unistr/u8-strmbtouc: New file.
43897         * modules/unistr/u16-strmbtouc: New file.
43898         * modules/unistr/u32-strmbtouc: New file.
43899         * lib/unistr/u8-strmbtouc.c: New file.
43900         * lib/unistr/u16-strmbtouc.c: New file.
43901         * lib/unistr/u32-strmbtouc.c: New file.
43902
43903         * modules/unistr/u8-strncat: New file.
43904         * modules/unistr/u16-strncat: New file.
43905         * modules/unistr/u32-strncat: New file.
43906         * lib/unistr/u8-strncat.c: New file.
43907         * lib/unistr/u16-strncat.c: New file.
43908         * lib/unistr/u32-strncat.c: New file.
43909         * lib/unistr/u-strncat.h: New file.
43910
43911         * modules/unistr/u8-strncmp: New file.
43912         * modules/unistr/u16-strncmp: New file.
43913         * modules/unistr/u32-strncmp: New file.
43914         * lib/unistr/u8-strncmp.c: New file.
43915         * lib/unistr/u16-strncmp.c: New file.
43916         * lib/unistr/u32-strncmp.c: New file.
43917
43918         * modules/unistr/u8-strncpy: New file.
43919         * modules/unistr/u16-strncpy: New file.
43920         * modules/unistr/u32-strncpy: New file.
43921         * lib/unistr/u8-strncpy.c: New file.
43922         * lib/unistr/u16-strncpy.c: New file.
43923         * lib/unistr/u32-strncpy.c: New file.
43924         * lib/unistr/u-strncpy.h: New file.
43925
43926         * modules/unistr/u8-strnlen: New file.
43927         * modules/unistr/u16-strnlen: New file.
43928         * modules/unistr/u32-strnlen: New file.
43929         * lib/unistr/u8-strnlen.c: New file.
43930         * lib/unistr/u16-strnlen.c: New file.
43931         * lib/unistr/u32-strnlen.c: New file.
43932         * lib/unistr/u-strnlen.h: New file.
43933
43934         * modules/unistr/u8-strpbrk: New file.
43935         * modules/unistr/u16-strpbrk: New file.
43936         * modules/unistr/u32-strpbrk: New file.
43937         * lib/unistr/u8-strpbrk.c: New file.
43938         * lib/unistr/u16-strpbrk.c: New file.
43939         * lib/unistr/u32-strpbrk.c: New file.
43940         * lib/unistr/u-strpbrk.h: New file.
43941
43942         * modules/unistr/u8-strrchr: New file.
43943         * modules/unistr/u16-strrchr: New file.
43944         * modules/unistr/u32-strrchr: New file.
43945         * lib/unistr/u8-strrchr.c: New file.
43946         * lib/unistr/u16-strrchr.c: New file.
43947         * lib/unistr/u32-strrchr.c: New file.
43948
43949         * modules/unistr/u8-strspn: New file.
43950         * modules/unistr/u16-strspn: New file.
43951         * modules/unistr/u32-strspn: New file.
43952         * lib/unistr/u8-strspn.c: New file.
43953         * lib/unistr/u16-strspn.c: New file.
43954         * lib/unistr/u32-strspn.c: New file.
43955         * lib/unistr/u-strspn.h: New file.
43956
43957         * modules/unistr/u8-strstr: New file.
43958         * modules/unistr/u16-strstr: New file.
43959         * modules/unistr/u32-strstr: New file.
43960         * lib/unistr/u8-strstr.c: New file.
43961         * lib/unistr/u16-strstr.c: New file.
43962         * lib/unistr/u32-strstr.c: New file.
43963         * lib/unistr/u-strstr.h: New file.
43964
43965         * modules/unistr/u8-strtok: New file.
43966         * modules/unistr/u16-strtok: New file.
43967         * modules/unistr/u32-strtok: New file.
43968         * lib/unistr/u8-strtok.c: New file.
43969         * lib/unistr/u16-strtok.c: New file.
43970         * lib/unistr/u32-strtok.c: New file.
43971         * lib/unistr/u-strtok.h: New file.
43972
43973         * modules/unistr/u8-uctomb: New file.
43974         * modules/unistr/u16-uctomb: New file.
43975         * modules/unistr/u32-uctomb: New file.
43976         * lib/unistr/u8-uctomb.c: New file.
43977         * lib/unistr/u16-uctomb.c: New file.
43978         * lib/unistr/u32-uctomb.c: New file.
43979
43980         * MODULES.html.sh (Unicode string functions): Add the new modules.
43981
43982 2007-01-08  Bruno Haible  <bruno@clisp.org>
43983
43984         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43985         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43986         subdirectories.
43987
43988 2007-01-08  Karl Berry  <karl@gnu.org>
43989
43990         * doc/error.texi: mention that main() fns must set program_name
43991         when progname is used.
43992
43993 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43994
43995         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43996         WCTYPE_H is empty, for the benefit of builds from non-distclean
43997         directories.  Problem reported by Eric Blake in
43998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43999
44000 2007-01-08  Bruno Haible  <bruno@clisp.org>
44001
44002         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44003         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44004         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44005         PROVIDE_CANONICALIZE_FILENAME_MODE.
44006         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44007
44008 2007-01-08  Bruno Haible  <bruno@clisp.org>
44009
44010         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44011         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44012         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44013         * lib/fts.c: Likewise.
44014         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44015
44016 2006-12-25  Bruno Haible  <bruno@clisp.org>
44017
44018         * modules/utf8-ucs4-safe: New file.
44019         * lib/utf8-ucs4-safe.h: New file.
44020         * lib/unistr/utf8-ucs4-safe.c: New file.
44021
44022         * modules/utf16-ucs4-safe: New file.
44023         * lib/utf16-ucs4-safe.h: New file.
44024         * lib/unistr/utf16-ucs4-safe.c: New file.
44025
44026         * MODULES.html.sh (Unicode string functions): Add the new modules.
44027
44028 2007-01-08  Bruno Haible  <bruno@clisp.org>
44029
44030         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44031         (Depends-on): Add unitypes.
44032         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44033         (u8_mbtouc_aux): Move out to separate file.
44034         (u8_mbtouc): Use ucs4_t, uint8_t types.
44035         * lib/unistr/utf8-ucs4.c: New file.
44036
44037         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44038         (Depends-on): Add unitypes.
44039         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44040         (u16_mbtouc_aux): Move out to separate file.
44041         (u16_mbtouc): Use ucs4_t, uint16_t types.
44042         * lib/unistr/utf16-ucs4.c: New file.
44043
44044         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44045         (Depends-on): Add unitypes.
44046         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44047         (u8_uctomb_aux): Move out to separate file.
44048         (u8_uctomb): Use ucs4_t, uint8_t types.
44049         * lib/unistr/ucs4-utf8.c: New file.
44050
44051         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44052         (Depends-on): Add unitypes.
44053         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44054         (u16_uctomb_aux): Move out to separate file.
44055         (u16_uctomb): Use ucs4_t, uint16_t types.
44056         * lib/unistr/ucs4-utf16.c: New file.
44057
44058 2006-12-25  Bruno Haible  <bruno@clisp.org>
44059
44060         * modules/unitypes: New file.
44061         * lib/unitypes.h: New file.
44062         * MODULES.html.sh (func_all_modules): New section "Unicode string
44063         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44064         this section. Add unitypes.
44065
44066 2007-01-08  Bruno Haible  <bruno@clisp.org>
44067
44068         Avoid variable names that conflict with those from libtool.
44069         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44070         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44071         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44072         library_names_spec to acl_library_names_spec, hardcode_* to
44073         acl_hardcode_*.
44074         Reported by Ralf Wildenhues.
44075
44076 2007-01-08  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44079         definition.
44080         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44081         definition.
44082         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44083         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44084         definition.
44085         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44086         definition.
44087         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44088         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44089         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44090         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44091         definition.
44092         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44093         definition.
44094         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44095         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44096         GC_USE_<algorithm>.
44097         * lib/gc-libgcrypt.c: Likewise.
44098         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44099         * modules/gc-arctwo (configure.ac): Likewise.
44100         * modules/gc-des (configure.ac): Likewise.
44101         * modules/gc-hmac-md5 (configure.ac): Likewise.
44102         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44103         * modules/gc-md2 (configure.ac): Likewise.
44104         * modules/gc-md4 (configure.ac): Likewise.
44105         * modules/gc-md5 (configure.ac): Likewise.
44106         * modules/gc-random (configure.ac): Likewise.
44107         * modules/gc-rijndael (configure.ac): Likewise.
44108         * modules/gc-sha1 (configure.ac): Likewise.
44109
44110 2007-01-08  Bruno Haible  <bruno@clisp.org>
44111
44112         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44113         macro definition.
44114         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44115         definition.
44116         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44117         definition.
44118         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44119         * modules/fcntl-safer (configure.ac): Likewise.
44120         * modules/fopen-safer (configure.ac): Likewise.
44121         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44122         GNULIB_FWRITEERROR macro definition.
44123
44124 2007-01-08  Bruno Haible  <bruno@clisp.org>
44125
44126         * m4/gnulib-common.m4: New file.
44127         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44128         (func_get_filelist): Add m4/gnulib-common.m4.
44129
44130 2007-01-08  Bruno Haible  <bruno@clisp.org>
44131
44132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44133         command.
44134
44135 2007-01-08  Jim Meyering  <jim@meyering.net>
44136
44137         Use a more robust test for a "can't happen" condition.
44138         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44139         narrowed the st_size value.  Presuming the "can't happen" condition
44140         is true, that narrowing could conceivably convert an invalid st_size
44141         value into a valid one.  Instead, use a change based on Matthew
44142         Woehlke's original patch.
44143
44144         Slight readability improvement: use an assert-like macro
44145         in place of literal "abort ()" uses.
44146         * lib/fts.c (fts_assert): Define.
44147         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44148         Use this macro instead of a bare 'abort'.
44149
44150 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44151
44152         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44153         simply work around them.
44154         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44155         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44156         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44157         declaring.
44158         Don't bother to define as macros, since the standard doesn't require it.
44159         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44160         longer worry about IRIX 5.3.
44161         (HAVE_WCTYPE_CTMP_BUG): Remove.
44162
44163 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44164
44165         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44166         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44167         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44168         Problems reported by Georg Schwarz for IRIX 5.3.
44169
44170         * gnulib-tool (autoconf_minversion): Take the maximum version number
44171         found, not the minimum.  Problem reported by James Youngman.
44172
44173 2007-01-03  Karl Berry  <karl@gnu.org>
44174
44175         * doc/error.texi: new file, explaining interaction with progname.
44176         * doc/gnulib.texi: include it.  Update copyright.
44177
44178 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44179
44180         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44181         AC_CANONICAL_HOST, to improve autobuild outputs.
44182
44183 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44184             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44185
44186         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44187         sockets, server sockets, and other file descriptors.  Count errors
44188         to compute the return value.  Reorder the code a bit to be easier
44189         to follow.  Don't set event bits that were not requested (except
44190         POLLERR and POLLHUP).
44191
44192 2007-01-01  Bruno Haible  <bruno@clisp.org>
44193
44194         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44195
44196 2007-01-03  Jim Meyering  <jim@meyering.net>
44197
44198         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44199
44200 2007-01-02  Bruno Haible  <bruno@clisp.org>
44201
44202         * modules/settime (Include): Require timespec.h.
44203         * modules/nanosleep (Include): Likewise.
44204
44205 2007-01-01  Bruno Haible  <bruno@clisp.org>
44206
44207         * gnulib-tool (func_emit_copyright_notice): Bump year.
44208         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44209
44210 2007-01-01  Bruno Haible  <bruno@clisp.org>
44211
44212         Improve support for OpenBSD.
44213         * build-aux/config.rpath (libname_spec): Export.
44214         (library_names_spec): New variable. Export.
44215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44216         library_names_spec from the config.rpath output. Locate shared library
44217         through the name pattern in library_names_spec.
44218
44219 2007-01-01  Eric Blake  <ebb9@byu.net>
44220
44221         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44222
44223 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44224
44225         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44226         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44227         assume the C locale, and avoid an "eval" that could cause trouble.
44228         Problem with SORT reported by Bob Proulx.
44229
44230         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44231         Define.  Trivial patch from Henning Nielsen Lund, originally
44232         sent to bug-grep@gnu.org today.
44233
44234 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44237         struct stat.  Problem reported by Henning Nielsen Lund.
44238         * lib/acl.c: Include acl.h first, to check interface.  Don't
44239         bother to include sys/types.h and sys/stat.h again.
44240
44241 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44242
44243         Import the following change from libc; problem reported by
44244         Sven Verdoolaege.
44245
44246         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44247
44248         [BZ #1373]
44249         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44250
44251 2006-12-28  Jim Meyering  <jim@meyering.net>
44252
44253         * build-aux/announce-gen: Do not assume that the package
44254         builds any of tar.gz, tar.bz2, and .xdelta files.
44255         Suggestion from Simon Josefsson.
44256
44257 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44258
44259         * modules/announce-gen: New file.
44260
44261 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44264         handles its gotchas now.
44265         * lib/mbswidth.c: Likewise.
44266         * lib/wcwidth.h: Likewise.
44267         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44268         and iswcntrl; the wctype module does this stuff now.
44269         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44271         * modules/mbchar (Depends-on): Add wctype.
44272         * modules/mbswidth (Depends-on): Likewise.
44273         * modules/wcwidth (Depends-on): Likewise.
44274
44275 2006-12-27  Eric Blake  <ebb9@byu.net>
44276
44277         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44278         module uses more than what <wctype.h> is required to provide.
44279
44280 2006-12-26  Eric Blake  <ebb9@byu.net>
44281
44282         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44283
44284 2006-12-26  Eric Blake  <ebb9@byu.net>
44285
44286         * modules/absolute-header: New module.
44287         * modules/fcntl (Depends-on): Depend on it.
44288         * modules/inttypes (Depends-on): Likewise.
44289         * modules/stdint (Depends-on): Likewise.
44290         * modules/sys_stat (Depends-on): Likewise.
44291         * modules/wctype (Depends-on): Likewise.
44292         * MODULES.html.sh (Support for building libraries and
44293         executables): Document it.
44294
44295 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * gnulib-tool (SED): Remove, undoing previous change.
44298         The problem was that it broke coreutils on Solaris, because
44299         "sed --posix" leaked into a makefile.
44300         (sed): New alias, if 'alias' and GNU sed.
44301
44302 2006-12-24  Jim Meyering  <jim@meyering.net>
44303
44304         Work around an fchownat bug in glibc-2.4:
44305         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44306         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44307         in spite of the -P option.
44308         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44309         New macros.
44310         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44311         * modules/openat (Files): Add lib/fchownat.c.
44312         * lib/openat.c (fchownat): Don't define here.  Move to...
44313         * lib/fchownat.c: ...this new file.
44314
44315 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44316
44317         Fix bug reported by Bruno Haible in
44318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44319         where quotearg.c didn't compile on Mac OS X 10.2 because it
44320         lacks <wchar.h> and wint_t.
44321         * lib/wctype_.h (__wctype_wint_t): New type.
44322         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44323         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44324         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44325         Arg is now of type __wctype_wint_t, not wint_t.
44326         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44327         substitute HAVE_WINT_T.
44328         * modules/wctype (Files): Add m4/wint_t.m4.
44329         (wctype.h): Substitute HAVE_WINT_T.
44330
44331 2006-12-23  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44334
44335 2006-12-23  Bruno Haible  <bruno@clisp.org>
44336
44337         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44338         S_ISLNK.
44339         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44340         mingw.
44341
44342 2006-12-22  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/copy-file.c: Include acl.h.
44345         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44346         Close the file descriptors only after being done with copy_acl.
44347         * modules/copy-file (Depends-on): Add acl.
44348
44349 2006-12-22  Bruno Haible  <bruno@clisp.org>
44350
44351         * gnulib-tool (SED): New variable.
44352         Use $SED instead of sed everywhere.
44353
44354 2006-12-22  Bruno Haible  <bruno@clisp.org>
44355
44356         * modules/no-c++: New file.
44357         * m4/no-c++.m4: New file.
44358         * MODULES.html.sh (Support for building libraries and executables):
44359         Add no-c++.
44360
44361 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44362
44363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44364         Include <limits.h>, and use its INT_MAX to rewrite the
44365         j loop so that it does not overflow 'int'.  Problem reported by
44366         Ralf Wildenhues in
44367         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44368         Play it safe by shifting left by 1 rather than multiplying by 2,
44369         as GCC is less likely to optimize this away when the value
44370         is signed (when it assumes overflow leads to undefined behavior).
44371         Also, don't assume time_t uses two's complement.
44372
44373 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44374
44375         * MODULES.html.sh: New module wctype.
44376         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44377         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44378         <wctype.h>, since the new wctype module should fix this.
44379         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44380         the wctype module should arrange for it.
44381         * lib/regex_internal.h: Likewise.
44382         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44383         since the wctype module should handle this now.
44384         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44385         * modules/fnmatch (Depends-on): Add wctype.
44386         * modules/quotearg (Depends-on): Likewise.
44387         * modules/regex (Depends-on): Likewise.
44388
44389 2006-12-19  Bruno Haible  <bruno@clisp.org>
44390
44391         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44392         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44393
44394 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44395
44396         * modules/savewd (Depends-on): Fix dependency on fcntl.
44397
44398 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44399
44400         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44401         conforms to C99, rather than relying on the user's environment
44402         setting of STDINT_H.
44403
44404 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44405         and Eric Blake  <ebb9@byu.net>
44406
44407         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44408         This is more consistent with the other defines here.
44409         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44410         Port to z/OS.  Problem reported by Paul Gilmartin.
44411         Change local vars to use gl_ prefix rather than ac_.
44412         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44413         with other defines.
44414         * modules/double-slash-root: New module.
44415         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44416         (Depends-on): Add double-slash-root.
44417         * MODULES.html.sh (File system functions): Mention new module.
44418
44419 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44420
44421         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44422         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44423         This is for the benefit of gzip, which doesn't do i18n.
44424
44425 2006-12-12  Jim Meyering  <jim@meyering.net>
44426
44427         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44428         Reported by Andreas Schwab <schwab@suse.de>.
44429
44430 2006-12-12  Bruno Haible  <bruno@clisp.org>
44431
44432         Merge these changes.
44433         2006-09-05  Bruno Haible  <bruno@clisp.org>
44434         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44435         iconv_alloc succeeded.
44436         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44437         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44438         test for " && dest " at the end - dest is always != NULL there. Call
44439         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44440         with 2xNULL arguments, also to flush the state storage. Handle the
44441         IRIX iconv behaviour. Realloc the final result, to throw away unused
44442         memory.
44443
44444 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44447         and fchmodat unconditionally, since glibc 2.4 has them.
44448         Problem reported by Arkadiusz Miskiewicz.
44449
44450 2006-12-10  Bruno Haible  <bruno@clisp.org>
44451
44452         * gnulib-tool (func_import): Show the include files only for those
44453         modules that are copied and specified.
44454         Reported by Karl Berry.
44455
44456 2006-12-08  Jim Meyering  <jim@meyering.net>
44457
44458         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44459         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44460
44461         * build-aux/announce-gen: Add two new options, both optional:
44462         --bootstrap-tools=TOOL_LIST
44463               a comma-separated list of tools, e.g.,
44464               autoconf,automake,bison,gnulib
44465         --gnulib-snapshot-date=DATE
44466               if gnulib is in the bootstrap tool list,
44467               then report this as the snapshot date.
44468               If not specified, use the current date/time.
44469               If you specify a date here, be sure it's UTC.
44470
44471 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44472
44473         * tests/test-argp-2.sh: Fix test to match actual output.
44474         (func_compare): Fix sed script to be portable.
44475
44476 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44479         workaround for this case.  It is not autoconfigured now; offhand
44480         it's hard to see how to autoconfigure it.
44481
44482 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44483
44484         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44485         a directory that is about to be chowned.  Such a directory's
44486         initial file permissions should permit the owner only and this
44487         should not be changed until after the chown, since the group and
44488         other bits would be incorrect if they granted permission before
44489         the chown.
44490
44491         Fix porting problem for iswctype reported by Georg Schwarz in:
44492         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44493         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44494         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44495         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44496         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44497
44498 2006-12-03  Jim Meyering  <jim@meyering.net>
44499
44500         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44501         p->fts_statp may not yet be defined.
44502         (fts_read): Instead, set it in the caller, once p->fts_statp is
44503         sure to be defined, and corresponds to a top-level directory.
44504         This bug made du -x fail.  Here's the coreutils test case:
44505         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44506         Reported by Mike Frysinger.
44507
44508 2006-12-01  Jim Meyering  <jim@meyering.net>
44509
44510         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44511         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44512         Reported by Simon Josefsson.
44513
44514 2006-11-30  Jim Meyering  <jim@meyering.net>
44515
44516         * m4/warning.m4: Use the all-permissive copyright notice
44517         recommended by RMS (rather than LGPL).
44518         * m4/vararrays.m4: Likewise.
44519         * m4/flexmember.m4: Likewise.
44520
44521 2006-11-29  Bruno Haible  <bruno@clisp.org>
44522
44523         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44524         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44525         using +=.
44526         Reported by Simon Josefsson <simon@josefsson.org>.
44527
44528 2006-11-28  James Youngman <jay@gnu.org>
44529
44530         * README: Advise users that they might find the bug-gnulib@gnu.org
44531         and autotools-announce@gnu.org mailing lists useful.
44532
44533 2006-11-28  Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/ptrdiff_max.m4: Remove file.
44536
44537 2006-11-21  Bruno Haible  <bruno@clisp.org>
44538
44539         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44540         _AC_COMPUTE_INT.
44541         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44542         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44543         _AC_COMPUTE_INT.
44544         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44545         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44546         _AC_COMPUTE_INT.
44547         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44548
44549 2006-11-28  Jim Meyering  <jim@meyering.net>
44550
44551         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44552         warning from "gcc -Wshadow" about shadowing the builtin.
44553
44554 2006-11-27  Bruno Haible  <bruno@clisp.org>
44555
44556         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44557         _AC_COMPUTE_INT.
44558         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44559
44560 2006-11-27  Bruno Haible  <bruno@clisp.org>
44561             Paul Eggert  <eggert@cs.ucla.edu>
44562
44563         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44564
44565 2006-11-26  Bruno Haible  <bruno@clisp.org>
44566
44567         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44568         noinst_LTLIBRARIES.
44569
44570 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44571             Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44574         if compiling with "gcc -ansi".
44575
44576 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44577
44578         Fix some incompatibilities with gcc -ansi -pedantic.
44579         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44580         if compiling pedantically with GCC, unless it's C99 or later.
44581         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44582         it mishandles gcc -ansi -pedantic as well.
44583         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44584         if gcc -pedantic.
44585         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44586         initializers for struct if -pedantic, unless it's C99 or later.
44587
44588 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44589
44590         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44591         Don't close an fd more than once. Identical atimes indicate
44592         success, not failure.
44593
44594 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44595
44596         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44597
44598 2006-11-23  Jim Meyering  <jim@meyering.net>
44599
44600         * build-aux/announce-gen: New file.  From coreutils.
44601
44602 2006-11-22  Jim Meyering  <jim@meyering.net>
44603
44604         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44605         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44606         (fts_read): Use a temporary to narrow the overused st_size member
44607         before using it in a switch statement.  Reported by Matthew Woehlke.
44608
44609         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44610         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44611
44612 2006-11-20  Bruno Haible  <bruno@clisp.org>
44613
44614         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44615         changequote instead of pairs of brackets.
44616         Reported by Andreas Schwab <schwab@suse.de>.
44617
44618 2006-11-21  Jim Meyering  <jim@meyering.net>
44619
44620         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44621         so as to remain compatible with older compilers.
44622         Patch from Michael Deutschmann.
44623
44624 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44625
44626         * MODULES.html.sh (File system functions): Add openat.
44627
44628         * lib/openat.h (rpl_fstatat): New macro, if
44629         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44630         (fstatat): Define to rpl_fstatat under the same conditions,
44631         unless COMPILING_FSTATAT.
44632         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44633         seems to have the bug.
44634         * lib/fstatat.c: New file.
44635         * modules/openat (Files): Add it.
44636
44637 2006-11-20  Bruno Haible  <bruno@clisp.org>
44638
44639         * Makefile: New file.
44640
44641 2006-11-20  Jim Meyering  <jim@meyering.net>
44642
44643         The beginnings of syntax-related checks for gnulib.
44644         * lib/Makefile: New file.
44645         * lib/t-idcache: New script.  Ensure that the two halves of
44646         idcache.c stay in sync.
44647
44648         * lib/idcache.c: Adjust comments in user- and group- portions to
44649         be more accurate, and to be consistent with one another.
44650
44651 2006-11-20  Jim Meyering  <jim@meyering.net>
44652
44653         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44654         continue using the flexible array member (thus, this module performs
44655         half as many malloc calls), with the addition that...
44656         (getgroup, getuser): Consistently record a non-match via an empty
44657         "name" string, and map an empty string match to a NULL return value.
44658         * modules/idcache (Depends-on): Re-add flexmember.
44659
44660         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44661         (getuidbyname, getgroup, getgidbyname): Likewise.
44662
44663         Use cleaner syntax: NULL rather than 0.
44664         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44665
44666 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44667
44668         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44669         It mishandled the case where the group was missing.
44670         Problem reported by Greg Schafer.
44671         * modules/idcache: Likewise.
44672
44673 2006-11-18  Jim Meyering  <jim@meyering.net>
44674
44675         * check-module (%exempt_header): Add exception for some
44676         conditionally-included headers.
44677
44678         * modules/i-ring (Depends-on): Add verify.
44679         (License): Change to LGPL.
44680
44681 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44682
44683         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44684         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44685         and inttostr.h.  Use snprintf rather than uinttostr, so that
44686         LGPLed code doesn't depend on GPLed.
44687
44688 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44689
44690         * modules/inline (License): Change from GPL to LGPL.
44691
44692 2006-11-17  Jim Meyering  <jim@meyering.net>
44693
44694         * modules/d-type (License): Switch to LGPL.
44695
44696 2006-11-15  Bruno Haible  <bruno@clisp.org>
44697
44698         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44699
44700 2006-11-15  Eric Blake  <ebb9@byu.net>
44701
44702         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44703         the module dependency.
44704
44705 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44706             Bruno Haible  <bruno@clisp.org>
44707
44708         * gnulib-tool (func_create_testdir): Add license consistency check.
44709
44710 2006-11-15  Eric Blake  <ebb9@byu.net>
44711
44712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44713         random "(cached)" in configure output.
44714
44715 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44716
44717         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44718         test for conforming inttypes.h is both announced and cached.
44719
44720         * MODULES.html.sh (seen_modules, seen_files): New variables.
44721         (func_module): Rewrite to use a few less gnulib-tool and sed
44722         invocations.  Avoid a couple of quadratic algorithms for ...
44723         (missed_modules, missed_files): ... these, with ...
44724         (func_append, func_tmpdir): ... these new functions, from
44725         gnulib-tool.  Analogously, install traps for cleanup.
44726
44727         * tests/test-gc.c (main): Remove unused variables.
44728         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44729
44730 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44731
44732         * modules/inttostr (License): Change to LGPL.
44733
44734 2006-11-14  Eric Blake  <ebb9@byu.net>
44735
44736         * modules/tempname (License): Change to LGPL.
44737
44738 2006-11-14  Eric Blake  <ebb9@byu.net>
44739
44740         * doc/functions.texi (Function Portability): *printf functions on
44741         Cygwin now understand all POSIX size specifiers.
44742
44743 2006-11-14  Bruno Haible  <bruno@clisp.org>
44744
44745         * modules/c-ctype (License): Change to LGPL.
44746
44747 2006-11-12  Bruno Haible  <bruno@clisp.org>
44748
44749         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44750         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44751         for GNOME libraries, for which the include files are installed in
44752         subdirectories of $prefix/include.
44753
44754 2006-11-12  Bruno Haible  <bruno@clisp.org>
44755
44756         * m4/lib-link.m4: Require at least autoconf-2.54.
44757         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44758         name to underscores for the --with option.
44759
44760 2006-11-13  Bruno Haible  <bruno@clisp.org>
44761
44762         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44763         the tests directory.
44764         Reported by Ralf Wildenhues.
44765
44766 2006-11-13  Bruno Haible  <bruno@clisp.org>
44767
44768         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44769         (func_emit_initmacro_end): Undo the override here.
44770         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44771         Works around the famous automake error in coreutils.
44772
44773 2006-11-13  Eric Blake  <ebb9@byu.net>
44774
44775         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44776         element, not its node.
44777
44778 2006-11-12  Bruno Haible  <bruno@clisp.org>
44779
44780         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44781         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44782
44783 2006-11-12  Bruno Haible  <bruno@clisp.org>
44784
44785         * gnulib-tool: New option --local-symlink.
44786         (func_usage): Document it.
44787         (lsymbolic): New variable.
44788         (func_import, func_create_testdir): If --symlink was not specified,
44789         test whether --local-symlink was specified and the file comes from
44790         the local_gnulib_dir.
44791
44792 2006-11-12  Bruno Haible  <bruno@clisp.org>
44793
44794         * gnulib-tool (func_ln): New function.
44795         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44796
44797 2006-11-12  Bruno Haible  <bruno@clisp.org>
44798
44799         Finish support for source files in subdirectories.
44800         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44801         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44802         AUTOMAKE_OPTIONS.
44803         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44804
44805 2006-11-12  Bruno Haible  <bruno@clisp.org>
44806
44807         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44808         EXTRA_lib_SOURCES augmentation.
44809         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44810
44811 2006-11-12  Jim Meyering  <jim@meyering.net>
44812
44813         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44814         file descriptors.  This also averts a failure on systems with
44815         native openat support when a traversed directory lacks "x" access.
44816         * lib/fts_.h: Include "i-ring.h"
44817         (struct FTS) [fts_fd_ring]: New member.
44818         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44819         (FCHDIR): Add parentheses.
44820         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44821         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44822         When descending, rather than simply closing the previous
44823         fts_cwd_fd value, push that file descriptor onto the ring.
44824         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44825         (fts_open): Initialize the new fd_ring member.
44826         (fts_close): Clear the ring.
44827         (fts_safe_changedir): When possible, use our new fd_ring to skip
44828         the diropen and fstat and dev/ino comparison that would normally
44829         accompany a virtual `chdir ("..")'.
44830
44831         * modules/fts (Depends-on): Add i-ring.
44832         * modules/i-ring: New module.
44833         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44834         * m4/i-ring.m4: New file.
44835
44836 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44837
44838         * gnulib-tool (func_create_testdir): Fix replacement of
44839         `build-aux' in configure.ac.  Run autotools in gltests
44840         subdirectory.
44841         (func_create_testdir, func_create_megatestdir, test): There is
44842         no need for '--force' in most autotool invocations in a new
44843         tree.  Actually fail the whole test if any of the tools, or the
44844         configure or make stages fail.
44845
44846         Sync from Automake.
44847         * build-aux/gnupload: Revert last change.  Add pointer to upload
44848         instructions of the GNU Maintenance Instructions.
44849         Suggestion by Karl Berry.
44850
44851 2006-11-10  Jim Meyering  <jim@meyering.net>
44852
44853         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44854
44855 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44856
44857         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44858         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44859         (bind_textdomain_codeset) [! ENABLE_NLS]:
44860         Evaluate all the arguments.  That way, callers get compatible behavior
44861         if the arguments have side effects.  Also, it avoids some GCC
44862         diagnostics in some cases; Joel E. Denny reported problems when Bison
44863         was configured with --enable-gcc-warnigs.
44864
44865 2006-11-10  Jim Meyering  <jim@meyering.net>
44866
44867         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44868         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44869         account.
44870
44871 2006-11-10  Jim Meyering  <jim@meyering.net>
44872
44873         * modules/inline: New file/module.
44874         * modules/xalloc (Files): Remove m4/inline.m4.
44875         (Depends-on): Add inline, instead.
44876         * modules/oset: Likewise.
44877         * modules/list: Likewise.
44878
44879 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44880
44881         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44882         Problem reported by Matthew Woehlke.
44883
44884 2006-11-09  Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/tempname.c (gen_tempname): Remove variant that invokes
44887         __gen_tempname.
44888         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44889         __gen_tempname.
44890
44891 2006-11-08  Bruno Haible  <bruno@clisp.org>
44892
44893         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44894         to 'yes' instead of 'cross-compiling'.
44895
44896 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44897
44898         * lib/quotearg.h (quotearg_free): New decl.
44899         * lib/quotearg.c (quotearg_free): New function.
44900         (slot0, nslots, slotvec0, slotvec):
44901         Now file-scope so that quotearg_free can get at them.
44902
44903 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44904
44905         Sync from Automake.
44906         * build-aux/gnupload: Add missing 'gnu' to example URL.
44907         Report by Karl Berry.
44908
44909 2006-11-08  Bruno Haible  <bruno@clisp.org>
44910
44911         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44912         Suggested by Paul Eggert.
44913
44914 2006-11-08  Jim Meyering  <jim@meyering.net>
44915
44916         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44917         It's already included if !_LIBC.
44918         (fts_safe_changedir): Add a comment.
44919
44920 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44921
44922         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44923         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44924         Matthew Woehlke.
44925
44926         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44927         definitions up, to avoid colliding with change below.
44928         (static_inline) [HAVE_INLINE]: New macro.
44929         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44930         Provide extern decls when !HAVE_INLINE.  Do not define unless
44931         static_inline is defined, either by us or by xmalloc.c.  Use
44932         static_inline rather than static inline.
44933         (XCALLOC): Optimize sizeof(T) = 1 case.
44934         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44935
44936 2006-11-07  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44939         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44940         AC_C_INLINE.
44941         * modules/xalloc (Files): Add m4/inline.m4.
44942
44943 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44944
44945         * README: Fix typo.
44946         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44947         (Miscellanous Notes): ...from this.
44948
44949 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44950
44951         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44952         Mention that offsetof should be used instead of sizeof.
44953         From Bruno Haible.
44954
44955 2006-11-07  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44958
44959 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44960
44961         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44962         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44963         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44964         (gl_tree_add_before, gl_tree_add_after):
44965         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44966         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44967         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44968         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44969         (gl_linked_add_after, gl_linked_add_at): Likewise.
44970         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44971         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44972         (gl_tree_add_before, gl_tree_add_after): Likewise.
44973         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44974         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44975         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44976
44977 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44978
44979         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44980
44981 2006-11-06  Bruno Haible  <bruno@clisp.org>
44982
44983         * m4/inline.m4: New file.
44984         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44985         * modules/list (Files): Add m4/inline.m4.
44986         * modules/oset (Files): Likewise.
44987
44988 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44989
44990         * lib/idcache.c: Include <stddef.h>, for offsetof.
44991         (struct userid.name): Change from char * to a flexible array member.
44992         All uses changed.
44993         * modules/idcache (Depends-on): Add flexmember.
44994
44995         * MODULES.html.sh (Core language properties): New module flexmember.
44996         * modules/flexmember, m4/flexmember.m4: New files.
44997
44998         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44999         inline functions that are identical with the old xnmalloc_inline,
45000         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45001         that we can avoid some unnecessary integer multiplications and
45002         divisions in the common case where the element size is known at
45003         compile time.
45004         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45005         needed.
45006         (xnboundedmalloc): Remove.
45007         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45008         arguments, for consistency with rest of this header.
45009         (xcharalloc): Rewrite using XNMALLOC.
45010         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45011         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45012         versions have been moved to lib/xalloc.h and renamed to be the
45013         non-*_inline versions.
45014         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45015         and xnrealloc functions, since those functions are now inline and
45016         now call us.
45017         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45018         renaming described above.
45019         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45020         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45021         captures the dependency in AC_C_INLINE.
45022
45023         New module canonicalize-lgpl, proposed by Charles Wilson in
45024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45025         with a few small changes afterwards.
45026         * MODULES.html.sh (File system functions): New module
45027         canonicalize-lgpl.
45028         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45029         and canonicalize_file_name.
45030         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45031         * modules/canonicalize-lgpl: New files.
45032
45033 2006-11-05  Bruno Haible  <bruno@clisp.org>
45034
45035         * gnulib-tool (func_import, func_create_testdir): Create directories
45036         also for files in subdirectories of lib/.
45037
45038 2006-11-05  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45041         ANSI C compliant.
45042
45043 2006-11-03  Bruno Haible  <bruno@clisp.org>
45044
45045         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45046         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45047         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45048         (xnboundedmalloc): New inline function.
45049         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45050         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45051         xmalloc.
45052         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45053         xmalloc.
45054         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45055         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45056         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45057         xmalloc.
45058         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45059         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45060         xmalloc.
45061         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45062         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45063         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45064         xmalloc.
45065         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45066         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45067         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45068         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45069         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45070         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45071         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45072
45073 2006-11-03  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/c-ctype.h [C++]: Define functions without name mangling.
45076         * lib/fwriteerror.h [C++]: Likewise.
45077         * lib/gcd.h [C++]: Likewise.
45078         * lib/linebreak.h [C++]: Likewise.
45079
45080 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45081
45082         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45083         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45084         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45085         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45086         Check for functions and headers just once.
45087         Check for declaration of canonicalize_file_name.
45088         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45089
45090 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45091
45092         * gnulib-tool (func_import): Fix typo in actioncmd.
45093
45094 2006-11-02  Bruno Haible  <bruno@clisp.org>
45095
45096         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45097         newline sequence in the Makefile.am snippet as a space, like "make"
45098         does.
45099         Reported by Roger Persson <perrog@gmail.com>.
45100
45101 2006-11-01  Bruno Haible  <bruno@clisp.org>
45102
45103         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45104         already declared in <string.h>.
45105         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45106
45107 2006-11-01  Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45110         * lib/strcase.h: Include <string.h>.
45111         (strcasecmp): Define to rpl_strcasecmp here.
45112
45113 2006-11-01  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45116
45117 2006-11-01  Eric Blake  <ebb9@byu.net>
45118
45119         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45120
45121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45122
45123 2006-10-29  Bruno Haible  <bruno@clisp.org>
45124
45125         Make it compile in C++ mode.
45126         * lib/full-write.c (full_rw): Add a cast.
45127
45128 2006-11-01  Bruno Haible  <bruno@clisp.org>
45129
45130         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45131         be POSIX compliant.
45132         Reported by Roger Persson <perrog@gmail.com>.
45133
45134 2006-11-01  Eric Blake  <ebb9@byu.net>
45135
45136         * lib/getopt_.h: Fix comments.
45137
45138 2006-10-31  Eric Blake  <ebb9@byu.net>
45139
45140         * modules/tmpdir (Depends-on): Add sys_stat.
45141         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45142         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45143         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45144         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45145         tempname.
45146
45147 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         Avoid some C++ diagnostics reported by Bruno Haible.
45150         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45151         xmalloc.
45152         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45153         (struct slotvec): Move to top level.
45154         (quotearg_n_options): Rewrite to avoid xmalloc.
45155         * lib/xalloc.h (xcharalloc): New function.
45156         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45157         [defined __cplusplus]: Add function template that provides result
45158         type propagation.  This part of the change is from Bruno Haible.
45159
45160 2006-10-29  Bruno Haible  <bruno@clisp.org>
45161
45162         Make it compile in C++ mode.
45163         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45164         * lib/strnlen1.c (strnlen1): Cast memchr result.
45165         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45166         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45167         (create_temp_dir): Rename local variable 'template'.
45168         (compile_csharp_using_sscli): Add cast.
45169         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45170         * lib/findprog.c (find_in_path): Likewise.
45171         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45172         * lib/wait-process.c (register_slave_subprocess): Likewise.
45173
45174 2006-10-22  Bruno Haible  <bruno@clisp.org>
45175
45176         * modules/tsearch: New file.
45177         * lib/tsearch.h: New file.
45178         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45179         * m4/tsearch.m4: New file.
45180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45181
45182 2006-10-29  Eric Blake  <ebb9@byu.net>
45183
45184         * lib/arcfour.c: Assume config.h.
45185         * lib/arctwo.c: Likewise.
45186         * lib/base64.c: Likewise.
45187         * lib/check-version.c: Likewise.
45188         * lib/crc.c: Likewise.
45189         * lib/des.c: Likewise.
45190         * lib/gc-gnulib.c: Likewise.
45191         * lib/gc-libgcrypt.c: Likewise.
45192         * lib/gc-pbkdf2-sha1.c: Likewise.
45193         * lib/getaddrinfo.c: Likewise.
45194         * lib/getdelim.c: Likewise.
45195         * lib/getline.c: Likewise.
45196         * lib/hmac-md5.c: Likewise.
45197         * lib/hmac-sha1.c: Likewise.
45198         * lib/iconvme.c: Likewise.
45199         * lib/md2.c: Likewise.
45200         * lib/md4.c: Likewise.
45201         * lib/memxor.c: Likewise.
45202         * lib/read-file.c: Likewise.
45203         * lib/readline.c: Likewise.
45204         * lib/rijndael-alg-fst.c: Likewise.
45205         * lib/rijndael-api-fst.c: Likewise.
45206         * lib/xgetdomainname.c: Likewise.
45207
45208 2006-10-28  Eric Blake  <ebb9@byu.net>
45209
45210         * lib/xstrndup.c: Assume config.h.
45211
45212 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45213
45214         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45215         stat-macros.h is now for our own macros, whereas stat_h is for
45216         macros in the <sys/stat.h> name space.
45217         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45218         (STAT_MACROS_H): Remove.
45219         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45220         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45221         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45222         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45223         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45224         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45225         Move these macros to ...
45226         * lib/stat_.h: here.  Don't include stat-macros.h.
45227         * lib/canonicalize.c: Don't include stat-macros.h.
45228         * lib/chown.c: Likewise.
45229         * lib/euidaccess.c: Likewise.
45230         * lib/file-type.c: Likewise.
45231         * lib/filemode.c: Likewise.
45232         * lib/glob.c: Likewise.
45233         * lib/isapipe.c: Likewise.
45234         * lib/lchown.c: Likewise.
45235         * lib/lstat.c: Likewise.
45236         * lib/mkdir-p.c: Likewise.
45237         * lib/rmdir.c: Likewise.
45238         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45240         unless mkdir isn't declared, to speed up 'configure'.
45241         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45242         would define all the S_* symbols.
45243         * modules/canonicalize (Depends-on):
45244         Depend on sys_stat, not stat-macros.
45245         * modules/chown: Likewise.
45246         * modules/euidaccess: Likewise.
45247         * modules/filemode: Likewise.
45248         * modules/file-type: Likewise.
45249         * modules/glob: Likewise.
45250         * modules/isapipe: Likewise.
45251         * modules/lchown: Likewise.
45252         * modules/lstat: Likewise.
45253         * modules/mkancesdirs: Likewise.
45254         * modules/rmdir: Likewise.
45255         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45256         * modules/modechange: Likewise.
45257         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45258         (configure.ac): Remove gl_STAT_MACROS.
45259         * modules/sys_stat (Depends-on): Remove stat-macros.
45260
45261 2006-10-27  Bruno Haible  <bruno@clisp.org>
45262
45263         * m4/signed.m4: Remove file.
45264         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45265         invocation.
45266         * modules/vasnprintf (Files): Remove m4/signed.m4.
45267
45268 2006-10-27  Bruno Haible  <bruno@clisp.org>
45269
45270         Update to GNU gettext 0.16.
45271         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45272         m4/inttypes-h.m4, m4/signed.m4.
45273         * m4/gettext.m4: Update to GNU gettext 0.16.
45274         * m4/intl.m4: New file, from GNU gettext.
45275         * m4/intldir.m4: New file, from GNU gettext.
45276         * config/srclist.txt: Update
45277
45278 2006-10-27  Eric Blake  <ebb9@byu.net>
45279
45280         * MODULES.html.sh: Document tempname.
45281         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45282         dependencies.
45283         (Files): Move lib/tempname.c...
45284         * modules/tempname: ...to this new module.
45285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45286         (gl_PREREQ_TEMPNAME): Move...
45287         * m4/tempname.m4: ...to this new file.
45288         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45289         * modules/sys_stat (Depends-on): Add stat-macros.
45290         * lib/stat_.h (includes): Pick up stat macros.
45291         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45292         if stat macros are broken.
45293         * lib/tempname.c (includes): No need to include "stat-macros.h".
45294         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45295         (direxists, __path_search) [!_LIBC]: Don't compile these in
45296         gnulib; the tmpdir module covers that.
45297         * lib/tempname.h: New file.
45298
45299 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45300
45301         * COPYING: Explain how gnulib-tool converts licence headers.
45302         Almost all wording by Eric Blake.
45303
45304 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45305
45306         * lib/mbchar.h (is_basic_table): Make read-only.
45307         * lib/mbchar.c (is_basic_table): Likewise.
45308         Reported by John Darrington.
45309
45310 2006-10-25  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/progname.h (set_program_name): Undefine before defining.
45313
45314 2006-10-25  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45317         false for non-gcc C++ compilers.
45318         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45319
45320 2006-10-24  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45323         iconv implementations like Irix iconv.
45324
45325 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45326
45327         * modules/vararrays: New file.
45328         * m4/vararrays.m4: New file, taken from diffutils.
45329         * MODULES.html.sh: New module vararrays.
45330
45331 2006-10-24  Karl Berry  <karl@gnu.org>
45332
45333         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45334         Don't call GNU Unix.
45335
45336 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45337
45338         * users.txt: Add Libtool.
45339
45340         Sync from Libtool:
45341
45342         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45343
45344         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45345         to gnulib's policy of including config.h unconditionally.
45346
45347 2006-10-24  Bruno Haible  <bruno@clisp.org>
45348
45349         * modules/wcwidth (Files): Add m4/wint_t.m4.
45350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45351         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45352
45353 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45356         to pacify GCC with some -W flags enabled.  Problem reported by
45357         Bruno Haible.
45358
45359 2006-10-24  Jim Meyering  <jim@meyering.net>
45360
45361         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45362         Reported by Karl Berry.
45363
45364 2006-10-23  Bruno Haible  <bruno@clisp.org>
45365
45366         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45367
45368 2006-10-24  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/gl_list.h: Use C comment style, not C++ comment style.
45371
45372 2006-10-23  Eric Blake  <ebb9@byu.net>
45373
45374         * lib/getaddrinfo.c (includes): Add missing include.
45375
45376 2006-10-23  Bruno Haible  <bruno@clisp.org>
45377             Paul Eggert  <eggert@cs.ucla.edu>
45378
45379         Ability to rename obstack_free.
45380         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45381         obstack_free.
45382         (obstack_free): Invoke the __obstack_free macro.
45383         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45384
45385 2006-10-23  Bruno Haible  <bruno@clisp.org>
45386             Paul Eggert  <eggert@cs.ucla.edu>
45387
45388         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45389         __argc, __argv from the declaration. (They are defined as macros on
45390         mingw.)
45391
45392 2006-10-22  Bruno Haible  <bruno@clisp.org>
45393
45394         * doc/gnulib-intro.texi: New file.
45395         * doc/gnulib.texi: Include it.
45396
45397 2006-10-21  Bruno Haible  <bruno@clisp.org>
45398
45399         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45400         "Introduction", "Miscellanous Notes", "Particular Modules".
45401
45402 2006-10-21  Bruno Haible  <bruno@clisp.org>
45403
45404         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45405         Change mostlyclean-local rule to avoid sh syntax error from bash
45406         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45407
45408 2006-10-23  Jim Meyering  <jim@meyering.net>
45409
45410         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45411         in place of snprintf.
45412
45413         * modules/inttostr (Files): Add lib/uinttostr.c.
45414         * lib/uinttostr.c (inttostr): New file/function.
45415         * lib/inttostr.h (uinttostr): Declare.
45416         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45417         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45418         Add uinttostr.
45419         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45420
45421 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45422
45423         * lib/canonicalize.c (ELOOP): Define if not already defined.
45424         Problem reported by Bruno Haible in
45425         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45426
45427 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45428
45429         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45430         Problem reported by Perry Smith and Ville Laurikari.
45431
45432         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45433         uses.
45434
45435 2006-10-19  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45438         for mingw.
45439
45440 2006-10-19  Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45443         Needed for mingw.
45444
45445 2006-10-19  Bruno Haible  <bruno@clisp.org>
45446
45447         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45448
45449 2006-10-19  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45452         it.
45453
45454 2006-10-19  Bruno Haible  <bruno@clisp.org>
45455
45456         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45457         invocation.
45458
45459 2006-10-19  Bruno Haible  <bruno@clisp.org>
45460
45461         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45462         mountlist by default.
45463
45464 2006-10-16  Bruno Haible  <bruno@clisp.org>
45465
45466         * lib/c-strstr.c: Include c-strstr.h.
45467
45468 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45469
45470         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45471         in a slash.
45472
45473 2006-10-18  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/lock.h [C++]: Wrap definitions in extern "C".
45476
45477 2006-10-18  Bruno Haible  <bruno@clisp.org>
45478
45479         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45480         gl_LIBOBJS list.
45481
45482 2006-10-18  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45485
45486 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45487
45488         * lib/xstrtol.h: Include gettext.h.
45489         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45490         Problem reported by Eric Blake.
45491         * modules/xstrtol (Depends-on): Add gettext-h.
45492
45493 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45494
45495         * lib/strftime.c (advance): New macro.
45496         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45497         incomplete type, so you can't add 0 to it.  Problem and patch
45498         reported by Eelco Dolstra for dietlibc.
45499
45500 2006-10-18  Jim Meyering  <jim@meyering.net>
45501
45502         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45503         type for a local, and rename it: s/up/user_proc/.
45504
45505 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45506
45507         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45508         READ_UTMP_USER_PROCESS.
45509         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45510
45511 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45512
45513         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45514         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45515
45516 2006-10-17  Eric Blake  <ebb9@byu.net>
45517
45518         * lib/sigprocmask.c (sigprocmask): Fix typo.
45519
45520         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45521
45522         * modules/clean-temp (Makefile.am): Don't add to make output...
45523         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45524         config.h.
45525
45526 2006-10-17  Bruno Haible  <bruno@clisp.org>
45527
45528         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45529         differently if DEFAULT_TEXT_DOMAIN is set.
45530
45531 2006-10-16  Bruno Haible  <bruno@clisp.org>
45532
45533         * lib/clean-temp.c: Include fwriteerror.h.
45534
45535 2006-10-16  Bruno Haible  <bruno@clisp.org>
45536
45537         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45538
45539 2006-10-16  Bruno Haible  <bruno@clisp.org>
45540
45541         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45542         * lib/sigprocmask.h: Include <sys/types.h>.
45543         (sigset_t): Use the system's definition if present.
45544
45545 2006-10-17  Eric Blake  <ebb9@byu.net>
45546
45547         * lib/xvasprintf.c (includes): Assume config.h.
45548         * lib/xasprintf.c (includes): Likewise.
45549
45550 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45551
45552         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45553         at least as wide as intmax_t.
45554
45555 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45556
45557         (Imported from Automake.)
45558         * build-aux/gnupload: Update to version 1.1 of directive file.
45559
45560 2006-10-16  Eric Blake  <ebb9@byu.net>
45561
45562         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45563         match Automake 1.10a.
45564
45565 2006-10-14  Bruno Haible  <bruno@clisp.org>
45566
45567         * modules/sigprocmask: New file.
45568         * lib/sigprocmask.h: New file.
45569         * lib/sigprocmask.c: New file.
45570         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45571         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45572         request sigprocmask.o.
45573         (gl_PREREQ_SIGPROCMASK): New macro.
45574         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45575         (Depends-on): Add sigprocmask.
45576         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45577         gt_SIGNALBLOCKING. Test for 'raise' only once.
45578         * lib/fatal-signal.c: Include sigprocmask.h.
45579         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45580         unblock_fatal_signals): Define always.
45581         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45582         sigprocmask.
45583
45584 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45585
45586         Sync from Automake.
45587         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45588         which incorrectly sets the mode of an existing destination
45589         directory.  In some cases the unpatched install-sh could do the
45590         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45591         system.  We hope this is rare in practice, but it's clearly worth
45592         fixing.  Problem reported by Alex Unleashed in
45593         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45594         Also, don't bother to check for -m bugs unless we're using -m;
45595         suggested by Stepan Kasal.
45596
45597 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45598
45599         Sync from Automake.
45600         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45601         `-c' flag, so they appear at the same position as in %FASTDEP%
45602         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45603         which ignores unknown options only after the first non-option.
45604         Bug report against M4 by Nelson H. F. Beebe.
45605
45606 2006-10-13  Jim Meyering  <jim@meyering.net>
45607
45608         Fix a bug in yesterday's change.
45609         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45610         p->fts_statp->st_dev would be used uninitialized.
45611         Ensures that we always call fts_stat on the very first entry.
45612         Miklos Szeredi reported that find -xdev stopped working.
45613
45614 2006-10-12  Bruno Haible  <bruno@clisp.org>
45615
45616         * gnulib-tool (func_get_automake_snippet): Append an automatically
45617         computed EXTRA_DIST augmentation.
45618         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45619         * modules/alloca-opt (Makefile.am): Likewise.
45620         * modules/allocsa (Makefile.am): Likewise.
45621         * modules/arcfour (Makefile.am): Likewise.
45622         * modules/arctwo (Makefile.am): Likewise.
45623         * modules/argmatch (Makefile.am): Likewise.
45624         * modules/argz (Makefile.am): Likewise.
45625         * modules/atexit (Makefile.am): Likewise.
45626         * modules/backupfile (Makefile.am): Likewise.
45627         * modules/byteswap (Makefile.am): Likewise.
45628         * modules/c-strtod (Makefile.am): Likewise.
45629         * modules/c-strtold (Makefile.am): Likewise.
45630         * modules/calloc (Makefile.am): Likewise.
45631         * modules/canon-host (Makefile.am): Likewise.
45632         * modules/canonicalize (Makefile.am): Likewise.
45633         * modules/chdir-long (Makefile.am): Likewise.
45634         * modules/chdir-safer (Makefile.am): Likewise.
45635         * modules/check-version (Makefile.am): Likewise.
45636         * modules/chown (Makefile.am): Likewise.
45637         * modules/cloexec (Makefile.am): Likewise.
45638         * modules/close-stream (Makefile.am): Likewise.
45639         * modules/closeout (Makefile.am): Likewise.
45640         * modules/crc (Makefile.am): Likewise.
45641         * modules/csharpexec (Makefile.am): Likewise.
45642         * modules/cycle-check (Makefile.am): Likewise.
45643         * modules/des (Makefile.am): Likewise.
45644         * modules/dev-ino (Makefile.am): Likewise.
45645         * modules/dirfd (Makefile.am): Likewise.
45646         * modules/dirname (Makefile.am): Likewise.
45647         * modules/dup2 (Makefile.am): Likewise.
45648         * modules/eealloc (Makefile.am): Likewise.
45649         * modules/error (Makefile.am): Likewise.
45650         * modules/euidaccess (Makefile.am): Likewise.
45651         * modules/exclude (Makefile.am): Likewise.
45652         * modules/exitfail (Makefile.am): Likewise.
45653         * modules/fcntl-safer (Makefile.am): Likewise.
45654         * modules/fcntl (Makefile.am): Likewise.
45655         * modules/file-type (Makefile.am): Likewise.
45656         * modules/fileblocks (Makefile.am): Likewise.
45657         * modules/filemode (Makefile.am): Likewise.
45658         * modules/filenamecat (Makefile.am): Likewise.
45659         * modules/fnmatch (Makefile.am): Likewise.
45660         * modules/fopen-safer (Makefile.am): Likewise.
45661         * modules/fpending (Makefile.am): Likewise.
45662         * modules/fprintftime (Makefile.am): Likewise.
45663         * modules/free (Makefile.am): Likewise.
45664         * modules/fsusage (Makefile.am): Likewise.
45665         * modules/ftruncate (Makefile.am): Likewise.
45666         * modules/fts (Makefile.am): Likewise.
45667         * modules/gc-arcfour (Makefile.am): Likewise.
45668         * modules/gc-des (Makefile.am): Likewise.
45669         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45670         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45671         * modules/gc-md4 (Makefile.am): Likewise.
45672         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45673         * modules/gc-sha1 (Makefile.am): Likewise.
45674         * modules/gc (Makefile.am): Likewise.
45675         * modules/getaddrinfo (Makefile.am): Likewise.
45676         * modules/getcwd (Makefile.am): Likewise.
45677         * modules/getdelim (Makefile.am): Likewise.
45678         * modules/getdomainname (Makefile.am): Likewise.
45679         * modules/getgroups (Makefile.am): Likewise.
45680         * modules/gethostname (Makefile.am): Likewise.
45681         * modules/gethrxtime (Makefile.am): Likewise.
45682         * modules/getline (Makefile.am): Likewise.
45683         * modules/getloadavg (Makefile.am): Likewise.
45684         * modules/getlogin_r (Makefile.am): Likewise.
45685         * modules/getndelim2 (Makefile.am): Likewise.
45686         * modules/getopt (Makefile.am): Likewise.
45687         * modules/getpagesize (Makefile.am): Likewise.
45688         * modules/getpass-gnu (Makefile.am): Likewise.
45689         * modules/getpass (Makefile.am): Likewise.
45690         * modules/getsubopt (Makefile.am): Likewise.
45691         * modules/gettime (Makefile.am): Likewise.
45692         * modules/gettimeofday (Makefile.am): Likewise.
45693         * modules/getugroups (Makefile.am): Likewise.
45694         * modules/getusershell (Makefile.am): Likewise.
45695         * modules/glob (Makefile.am): Likewise.
45696         * modules/group-member (Makefile.am): Likewise.
45697         * modules/hard-locale (Makefile.am): Likewise.
45698         * modules/hash (Makefile.am): Likewise.
45699         * modules/hmac-md5 (Makefile.am): Likewise.
45700         * modules/hmac-sha1 (Makefile.am): Likewise.
45701         * modules/human (Makefile.am): Likewise.
45702         * modules/idcache (Makefile.am): Likewise.
45703         * modules/imaxabs (Makefile.am): Likewise.
45704         * modules/imaxdiv (Makefile.am): Likewise.
45705         * modules/inet_ntop (Makefile.am): Likewise.
45706         * modules/inet_pton (Makefile.am): Likewise.
45707         * modules/intprops (Makefile.am): Likewise.
45708         * modules/inttostr (Makefile.am): Likewise.
45709         * modules/inttypes (Makefile.am): Likewise.
45710         * modules/isapipe (Makefile.am): Likewise.
45711         * modules/javaversion (Makefile.am): Likewise.
45712         * modules/lchmod (Makefile.am): Likewise.
45713         * modules/lchown (Makefile.am): Likewise.
45714         * modules/localcharset (Makefile.am): Likewise.
45715         * modules/long-options (Makefile.am): Likewise.
45716         * modules/lstat (Makefile.am): Likewise.
45717         * modules/malloc (Makefile.am): Likewise.
45718         * modules/mathl (Makefile.am): Likewise.
45719         * modules/mbchar (Makefile.am): Likewise.
45720         * modules/md2 (Makefile.am): Likewise.
45721         * modules/md4 (Makefile.am): Likewise.
45722         * modules/md5 (Makefile.am): Likewise.
45723         * modules/memcasecmp (Makefile.am): Likewise.
45724         * modules/memchr (Makefile.am): Likewise.
45725         * modules/memcmp (Makefile.am): Likewise.
45726         * modules/memcoll (Makefile.am): Likewise.
45727         * modules/memcpy (Makefile.am): Likewise.
45728         * modules/memmem (Makefile.am): Likewise.
45729         * modules/memmove (Makefile.am): Likewise.
45730         * modules/mempcpy (Makefile.am): Likewise.
45731         * modules/memrchr (Makefile.am): Likewise.
45732         * modules/memset (Makefile.am): Likewise.
45733         * modules/memxor (Makefile.am): Likewise.
45734         * modules/mkancesdirs (Makefile.am): Likewise.
45735         * modules/mkdir-p (Makefile.am): Likewise.
45736         * modules/mkdir (Makefile.am): Likewise.
45737         * modules/mkdtemp (Makefile.am): Likewise.
45738         * modules/mkstemp (Makefile.am): Likewise.
45739         * modules/mktime (Makefile.am): Likewise.
45740         * modules/modechange (Makefile.am): Likewise.
45741         * modules/mountlist (Makefile.am): Likewise.
45742         * modules/nanosleep (Makefile.am): Likewise.
45743         * modules/obstack (Makefile.am): Likewise.
45744         * modules/openat (Makefile.am): Likewise.
45745         * modules/pagealign_alloc (Makefile.am): Likewise.
45746         * modules/pathmax (Makefile.am): Likewise.
45747         * modules/physmem (Makefile.am): Likewise.
45748         * modules/poll (Makefile.am): Likewise.
45749         * modules/posixtm (Makefile.am): Likewise.
45750         * modules/posixver (Makefile.am): Likewise.
45751         * modules/putenv (Makefile.am): Likewise.
45752         * modules/quote (Makefile.am): Likewise.
45753         * modules/quotearg (Makefile.am): Likewise.
45754         * modules/raise (Makefile.am): Likewise.
45755         * modules/read-file (Makefile.am): Likewise.
45756         * modules/readline (Makefile.am): Likewise.
45757         * modules/readlink (Makefile.am): Likewise.
45758         * modules/readtokens (Makefile.am): Likewise.
45759         * modules/readutmp (Makefile.am): Likewise.
45760         * modules/realloc (Makefile.am): Likewise.
45761         * modules/regex (Makefile.am): Likewise.
45762         * modules/rename-dest-slash (Makefile.am): Likewise.
45763         * modules/rename (Makefile.am): Likewise.
45764         * modules/rijndael (Makefile.am): Likewise.
45765         * modules/rmdir (Makefile.am): Likewise.
45766         * modules/rpmatch (Makefile.am): Likewise.
45767         * modules/safe-read (Makefile.am): Likewise.
45768         * modules/safe-write (Makefile.am): Likewise.
45769         * modules/same-inode (Makefile.am): Likewise.
45770         * modules/same (Makefile.am): Likewise.
45771         * modules/save-cwd (Makefile.am): Likewise.
45772         * modules/savedir (Makefile.am): Likewise.
45773         * modules/setenv (Makefile.am): Likewise.
45774         * modules/settime (Makefile.am): Likewise.
45775         * modules/sha1 (Makefile.am): Likewise.
45776         * modules/sig2str (Makefile.am): Likewise.
45777         * modules/snprintf (Makefile.am): Likewise.
45778         * modules/stat-macros (Makefile.am): Likewise.
45779         * modules/stat-time (Makefile.am): Likewise.
45780         * modules/stdbool (Makefile.am): Likewise.
45781         * modules/stdint (Makefile.am): Likewise.
45782         * modules/stdlib-safer (Makefile.am): Likewise.
45783         * modules/stpcpy (Makefile.am): Likewise.
45784         * modules/stpncpy (Makefile.am): Likewise.
45785         * modules/strcase (Makefile.am): Likewise.
45786         * modules/strcasestr (Makefile.am): Likewise.
45787         * modules/strchrnul (Makefile.am): Likewise.
45788         * modules/strcspn (Makefile.am): Likewise.
45789         * modules/strdup (Makefile.am): Likewise.
45790         * modules/strerror (Makefile.am): Likewise.
45791         * modules/strftime (Makefile.am): Likewise.
45792         * modules/strndup (Makefile.am): Likewise.
45793         * modules/strnlen (Makefile.am): Likewise.
45794         * modules/strpbrk (Makefile.am): Likewise.
45795         * modules/strsep (Makefile.am): Likewise.
45796         * modules/strstr (Makefile.am): Likewise.
45797         * modules/strtod (Makefile.am): Likewise.
45798         * modules/strtoimax (Makefile.am): Likewise.
45799         * modules/strtok_r (Makefile.am): Likewise.
45800         * modules/strtol (Makefile.am): Likewise.
45801         * modules/strtoll (Makefile.am): Likewise.
45802         * modules/strtoul (Makefile.am): Likewise.
45803         * modules/strtoull (Makefile.am): Likewise.
45804         * modules/strtoumax (Makefile.am): Likewise.
45805         * modules/strverscmp (Makefile.am): Likewise.
45806         * modules/sys_socket (Makefile.am): Likewise.
45807         * modules/sys_stat (Makefile.am): Likewise.
45808         * modules/sysexits (Makefile.am): Likewise.
45809         * modules/time_r (Makefile.am): Likewise.
45810         * modules/timegm (Makefile.am): Likewise.
45811         * modules/timespec (Makefile.am): Likewise.
45812         * modules/tmpfile-safer (Makefile.am): Likewise.
45813         * modules/trim (Makefile.am): Likewise.
45814         * modules/unistd-safer (Makefile.am): Likewise.
45815         * modules/unlinkdir (Makefile.am): Likewise.
45816         * modules/unlocked-io (Makefile.am): Likewise.
45817         * modules/userspec (Makefile.am): Likewise.
45818         * modules/utime (Makefile.am): Likewise.
45819         * modules/utimecmp (Makefile.am): Likewise.
45820         * modules/utimens (Makefile.am): Likewise.
45821         * modules/vasnprintf (Makefile.am): Likewise.
45822         * modules/vasprintf (Makefile.am): Likewise.
45823         * modules/vsnprintf (Makefile.am): Likewise.
45824         * modules/xalloc (Makefile.am): Likewise.
45825         * modules/xgetcwd (Makefile.am): Likewise.
45826         * modules/xnanosleep (Makefile.am): Likewise.
45827         * modules/xreadlink (Makefile.am): Likewise.
45828         * modules/xstrtod (Makefile.am): Likewise.
45829         * modules/xstrtol (Makefile.am): Likewise.
45830         * modules/xstrtold (Makefile.am): Likewise.
45831         * modules/yesno (Makefile.am): Likewise.
45832         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45833
45834 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         * modules/error (Makefile.am): Distribute files through
45837         EXTRA_DIST, not lib_SOURCES.
45838
45839 2006-10-12  Eric Blake  <ebb9@byu.net>
45840
45841         * modules/error (Makefile.am): Distribute files in /lib.
45842         * modules/obstack (Makefile.am): Likewise.
45843
45844 2006-10-12  Bruno Haible  <bruno@clisp.org>
45845
45846         * modules/acl (Makefile.am): Distribute all files in lib/ through
45847         EXTRA_DIST.
45848         * modules/arcfour (Makefile.am): Likewise.
45849         * modules/arctwo (Makefile.am): Likewise.
45850         * modules/argmatch (Makefile.am): Likewise.
45851         * modules/argz (Makefile.am): Likewise.
45852         * modules/atexit (Makefile.am): Likewise.
45853         * modules/backupfile (Makefile.am): Likewise.
45854         * modules/c-strtod (Makefile.am): Likewise.
45855         * modules/c-strtold (Makefile.am): Likewise.
45856         * modules/calloc (Makefile.am): Likewise.
45857         * modules/canon-host (Makefile.am): Likewise.
45858         * modules/canonicalize (Makefile.am): Likewise.
45859         * modules/chdir-long (Makefile.am): Likewise.
45860         * modules/chdir-safer (Makefile.am): Likewise.
45861         * modules/check-version (Makefile.am): Likewise.
45862         * modules/chown (Makefile.am): Likewise.
45863         * modules/cloexec (Makefile.am): Likewise.
45864         * modules/close-stream (Makefile.am): Likewise.
45865         * modules/closeout (Makefile.am): Likewise.
45866         * modules/crc (Makefile.am): Likewise.
45867         * modules/cycle-check (Makefile.am): Likewise.
45868         * modules/des (Makefile.am): Likewise.
45869         * modules/dirfd (Makefile.am): Likewise.
45870         * modules/dirname (Makefile.am): Likewise.
45871         * modules/dup2 (Makefile.am): Likewise.
45872         * modules/euidaccess (Makefile.am): Likewise.
45873         * modules/exclude (Makefile.am): Likewise.
45874         * modules/exitfail (Makefile.am): Likewise.
45875         * modules/fcntl-safer (Makefile.am): Likewise.
45876         * modules/file-type (Makefile.am): Likewise.
45877         * modules/fileblocks (Makefile.am): Likewise.
45878         * modules/filemode (Makefile.am): Likewise.
45879         * modules/filenamecat (Makefile.am): Likewise.
45880         * modules/fnmatch (Makefile.am): Likewise.
45881         * modules/fopen-safer (Makefile.am): Likewise.
45882         * modules/fpending (Makefile.am): Likewise.
45883         * modules/fprintftime (Makefile.am): Likewise.
45884         * modules/free (Makefile.am): Likewise.
45885         * modules/fsusage (Makefile.am): Likewise.
45886         * modules/ftruncate (Makefile.am): Likewise.
45887         * modules/fts (Makefile.am): Likewise.
45888         * modules/gc (Makefile.am): Likewise.
45889         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45890         * modules/getaddrinfo (Makefile.am): Likewise.
45891         * modules/getcwd (Makefile.am): Likewise.
45892         * modules/getdelim (Makefile.am): Likewise.
45893         * modules/getdomainname (Makefile.am): Likewise.
45894         * modules/getgroups (Makefile.am): Likewise.
45895         * modules/gethostname (Makefile.am): Likewise.
45896         * modules/gethrxtime (Makefile.am): Likewise.
45897         * modules/getline (Makefile.am): Likewise.
45898         * modules/getloadavg (Makefile.am): Likewise.
45899         * modules/getlogin_r (Makefile.am): Likewise.
45900         * modules/getopt (Makefile.am): Likewise.
45901         * modules/getpass (Makefile.am): Likewise.
45902         * modules/getpass-gnu (Makefile.am): Likewise.
45903         * modules/getsubopt (Makefile.am): Likewise.
45904         * modules/gettime (Makefile.am): Likewise.
45905         * modules/gettimeofday (Makefile.am): Likewise.
45906         * modules/getugroups (Makefile.am): Likewise.
45907         * modules/getusershell (Makefile.am): Likewise.
45908         * modules/glob (Makefile.am): Likewise.
45909         * modules/group-member (Makefile.am): Likewise.
45910         * modules/hard-locale (Makefile.am): Likewise.
45911         * modules/hash (Makefile.am): Likewise.
45912         * modules/hmac-md5 (Makefile.am): Likewise.
45913         * modules/hmac-sha1 (Makefile.am): Likewise.
45914         * modules/human (Makefile.am): Likewise.
45915         * modules/idcache (Makefile.am): Likewise.
45916         * modules/imaxabs (Makefile.am): Likewise.
45917         * modules/imaxdiv (Makefile.am): Likewise.
45918         * modules/inet_ntop (Makefile.am): Likewise.
45919         * modules/inet_pton (Makefile.am): Likewise.
45920         * modules/inttostr (Makefile.am): Likewise.
45921         * modules/isapipe (Makefile.am): Likewise.
45922         * modules/lchown (Makefile.am): Likewise.
45923         * modules/long-options (Makefile.am): Likewise.
45924         * modules/lstat (Makefile.am): Likewise.
45925         * modules/malloc (Makefile.am): Likewise.
45926         * modules/mathl (Makefile.am): Likewise.
45927         * modules/mbchar (Makefile.am): Likewise.
45928         * modules/md2 (Makefile.am): Likewise.
45929         * modules/md4 (Makefile.am): Likewise.
45930         * modules/md5 (Makefile.am): Likewise.
45931         * modules/memcasecmp (Makefile.am): Likewise.
45932         * modules/memchr (Makefile.am): Likewise.
45933         * modules/memcmp (Makefile.am): Likewise.
45934         * modules/memcoll (Makefile.am): Likewise.
45935         * modules/memcpy (Makefile.am): Likewise.
45936         * modules/memmem (Makefile.am): Likewise.
45937         * modules/memmove (Makefile.am): Likewise.
45938         * modules/mempcpy (Makefile.am): Likewise.
45939         * modules/memrchr (Makefile.am): Likewise.
45940         * modules/memset (Makefile.am): Likewise.
45941         * modules/memxor (Makefile.am): Likewise.
45942         * modules/mkancesdirs (Makefile.am): Likewise.
45943         * modules/mkdir (Makefile.am): Likewise.
45944         * modules/mkdir-p (Makefile.am): Likewise.
45945         * modules/mkdtemp (Makefile.am): Likewise.
45946         * modules/mkstemp (Makefile.am): Likewise.
45947         * modules/mktime (Makefile.am): Likewise.
45948         * modules/modechange (Makefile.am): Likewise.
45949         * modules/mountlist (Makefile.am): Likewise.
45950         * modules/nanosleep (Makefile.am): Likewise.
45951         * modules/openat (Makefile.am): Likewise.
45952         * modules/pagealign_alloc (Makefile.am): Likewise.
45953         * modules/physmem (Makefile.am): Likewise.
45954         * modules/poll (Makefile.am): Likewise.
45955         * modules/posixtm (Makefile.am): Likewise.
45956         * modules/posixver (Makefile.am): Likewise.
45957         * modules/putenv (Makefile.am): Likewise.
45958         * modules/quote (Makefile.am): Likewise.
45959         * modules/quotearg (Makefile.am): Likewise.
45960         * modules/raise (Makefile.am): Likewise.
45961         * modules/read-file (Makefile.am): Likewise.
45962         * modules/readline (Makefile.am): Likewise.
45963         * modules/readlink (Makefile.am): Likewise.
45964         * modules/readtokens (Makefile.am): Likewise.
45965         * modules/readutmp (Makefile.am): Likewise.
45966         * modules/realloc (Makefile.am): Likewise.
45967         * modules/regex (Makefile.am): Likewise.
45968         * modules/rename (Makefile.am): Likewise.
45969         * modules/rename-dest-slash (Makefile.am): Likewise.
45970         * modules/rijndael (Makefile.am): Likewise.
45971         * modules/rmdir (Makefile.am): Likewise.
45972         * modules/rpmatch (Makefile.am): Likewise.
45973         * modules/safe-read (Makefile.am): Likewise.
45974         * modules/safe-write (Makefile.am): Likewise.
45975         * modules/same (Makefile.am): Likewise.
45976         * modules/save-cwd (Makefile.am): Likewise.
45977         * modules/savedir (Makefile.am): Likewise.
45978         * modules/setenv (Makefile.am): Likewise.
45979         * modules/settime (Makefile.am): Likewise.
45980         * modules/sha1 (Makefile.am): Likewise.
45981         * modules/sig2str (Makefile.am): Likewise.
45982         * modules/snprintf (Makefile.am): Likewise.
45983         * modules/stdlib-safer (Makefile.am): Likewise.
45984         * modules/stpcpy (Makefile.am): Likewise.
45985         * modules/stpncpy (Makefile.am): Likewise.
45986         * modules/strcase (Makefile.am): Likewise.
45987         * modules/strcasestr (Makefile.am): Likewise.
45988         * modules/strchrnul (Makefile.am): Likewise.
45989         * modules/strcspn (Makefile.am): Likewise.
45990         * modules/strdup (Makefile.am): Likewise.
45991         * modules/strerror (Makefile.am): Likewise.
45992         * modules/strftime (Makefile.am): Likewise.
45993         * modules/strndup (Makefile.am): Likewise.
45994         * modules/strnlen (Makefile.am): Likewise.
45995         * modules/strpbrk (Makefile.am): Likewise.
45996         * modules/strsep (Makefile.am): Likewise.
45997         * modules/strstr (Makefile.am): Likewise.
45998         * modules/strtod (Makefile.am): Likewise.
45999         * modules/strtoimax (Makefile.am): Likewise.
46000         * modules/strtok_r (Makefile.am): Likewise.
46001         * modules/strtol (Makefile.am): Likewise.
46002         * modules/strtoll (Makefile.am): Likewise.
46003         * modules/strtoul (Makefile.am): Likewise.
46004         * modules/strtoull (Makefile.am): Likewise.
46005         * modules/strtoumax (Makefile.am): Likewise.
46006         * modules/strverscmp (Makefile.am): Likewise.
46007         * modules/time_r (Makefile.am): Likewise.
46008         * modules/timegm (Makefile.am): Likewise.
46009         * modules/tmpfile-safer (Makefile.am): Likewise.
46010         * modules/unistd-safer (Makefile.am): Likewise.
46011         * modules/unlinkdir (Makefile.am): Likewise.
46012         * modules/userspec (Makefile.am): Likewise.
46013         * modules/utime (Makefile.am): Likewise.
46014         * modules/utimecmp (Makefile.am): Likewise.
46015         * modules/utimens (Makefile.am): Likewise.
46016         * modules/vasnprintf (Makefile.am): Likewise.
46017         * modules/vasprintf (Makefile.am): Likewise.
46018         * modules/vsnprintf (Makefile.am): Likewise.
46019         * modules/xalloc (Makefile.am): Likewise.
46020         * modules/xgetcwd (Makefile.am): Likewise.
46021         * modules/xnanosleep (Makefile.am): Likewise.
46022         * modules/xreadlink (Makefile.am): Likewise.
46023         * modules/xstrtod (Makefile.am): Likewise.
46024         * modules/xstrtol (Makefile.am): Likewise.
46025         * modules/xstrtold (Makefile.am): Likewise.
46026         * modules/yesno (Makefile.am): Likewise.
46027
46028 2006-10-12  Jim Meyering  <jim@meyering.net>
46029
46030         * m4/getloadavg.m4: Revert the change below.
46031
46032         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46033         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46034         fail with a symlink, which is what coreutils' ./bootstrap now
46035         creates by default.
46036
46037 2006-10-12  Bruno Haible  <bruno@clisp.org>
46038
46039         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46040         mingw.
46041         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46042         MSVC and mingw explicitly.
46043
46044 2006-10-11  Simon Josefsson  <jas@extundo.com>
46045             Bruno Haible  <bruno@clisp.org>
46046
46047         Add support for multiple gnulib-tool invocations in the scope of a
46048         single configure.ac file.
46049         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46050         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46051         with the same contents as the _LIBADD variable.
46052         (func_emit_initmacro_start, func_emit_initmacro_end,
46053         func_emit_initmacro_done): New functions.
46054         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46055         gl_LIBOBJS and gl_LTLIBOBJS.
46056
46057 2006-10-11  Bruno Haible  <bruno@clisp.org>
46058
46059         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46060         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46061         autoreconf. Instead, invoke autopoint explicitly but move back the
46062         *.m4 files from gnulib.
46063
46064 2006-10-11  Bruno Haible  <bruno@clisp.org>
46065
46066         * gnulib-tool (func_usage): Make module names after --create-testdir
46067         optional.
46068         (func_create_testdir): If no module was specified, use nearly all
46069         modules.
46070
46071 2006-10-12  Jim Meyering  <jim@meyering.net>
46072
46073         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46074         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46075         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46076         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46077         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46078         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46079         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46080         (fts_set_stat_required): New function.
46081         (fts_open): Defer the calls to fts_stat, if possible or requested.
46082         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46083         into fts_stat itself.
46084         (fts_read): Perform any required (deferred) fts_stat call.
46085         (fts_build): Likewise, for the directory we're about to open and read.
46086         In the readdir loop, carefully decide whether each entry will require
46087         an eventual call to fts_stat, using dirent.d_type info if available.
46088         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46089         a command line argument into this function.  Update all callers.
46090         Map a return value of FTS_DOT to FTS_D for a command line argument.
46091         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46092         Thanks to Miklos Szeredi for his tenacity and for the initial
46093         bug report about "find" failing on a FUSE-based file system.
46094
46095         * lib/fts.c (fts_open): Use consistent indentation.
46096
46097 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46098
46099         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46100         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46101         reported by Jim Meyering.  All uses of cache variables renamed
46102         to match Autoconf's.
46103         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46104         the other one.
46105
46106         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46107         Fix misspelling in diagnostic.
46108
46109 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46110
46111         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46112         defined.  Problem reported by Matthew Woehlke.
46113
46114         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46115         Add support for Tandem NonStop R series.
46116         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46117         Use new macro.
46118
46119         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46120         (has_trailing_slash): Omit size arg; all callers changed.
46121         Omit 'inline', since it doesn't help performance and we'd
46122         need to configure it.
46123         Don't count //, ///, etc. as having a trailing slash.
46124         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46125         (rpl_rename_dest_slash): On failure, use rename's errno rather
46126         than (in some cases) an incorrect or junk errno.
46127         Simplify code by removing need to compute length; this does
46128         cause it to make two passes instead of one over the file name,
46129         but it's worth it.
46130
46131         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46132         change, since Autoconf's version may no longer be appropriate now
46133         that we are using CVS Autoconf's version.  Add support for Tandem.
46134
46135 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46136             Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46139         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46140         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46141         gl_AC_TYPE_LONG_LONG.
46142
46143         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46144         instead of HAVE_LONG_LONG.
46145         * lib/printf-args.c (printf_fetchargs): Likewise.
46146         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46147         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46148         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46149         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46150         gl_AC_TYPE_LONG_LONG.
46151
46152 2006-10-11  Bruno Haible  <bruno@clisp.org>
46153
46154         * m4/longlong.m4: Add comments.
46155         * m4/ulonglong.m4: Likewise.
46156
46157 2006-10-10  Bruno Haible  <bruno@clisp.org>
46158
46159         Make it possible to #define stpcpy, strdup to aliases.
46160         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46161         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46162
46163 2006-10-10  Bruno Haible  <bruno@clisp.org>
46164
46165         Make it possible to #define gcd to an alias.
46166         * lib/gcd.c: Include config.h.
46167
46168 2006-10-10  Bruno Haible  <bruno@clisp.org>
46169
46170         Make it possible to #define c_isascii to an alias.
46171         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46172         defined. Undefine the macros before defining them, to avoid gcc
46173         warnings.
46174         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46175         define NO_C_CTYPE_MACROS early.
46176
46177 2006-10-10  Bruno Haible  <bruno@clisp.org>
46178
46179         Make it possible to #define set_program_name to an alias.
46180         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46181         ENABLE_RELOCATABLE early.
46182
46183 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46184
46185         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46186         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46187         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46188         More generally, don't assume that 64-bit signed int is available
46189         if unsigned int is, and vice versa.
46190         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46191         unsigned symbols, not on their signed counterparts.
46192         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46193         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46194         (UINT64_C, UINTMAX_C):
46195         Likewise.
46196         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46197         unsigned counterparts.
46198         (Have_long_long, Unsigned): New macros.
46199         (Int): Renamed from INT.
46200         (strtoimax): Use the new macros.
46201         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46202         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46203         * modules/inttypes (inttypes.h): Substitute
46204         HAVE_UNSIGNED_LONG_LONG_INT.
46205         * modules/stdint (stdint.h): Likewise.
46206         (Files): Add m4/ulonglong.m4.
46207
46208 2006-10-10  Bruno Haible  <bruno@clisp.org>
46209
46210         Fix a gcc -Wshadow warning.
46211         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46212         to 'bucket'.
46213         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46214         gl_linked_indexof_from_to): Likewise.
46215         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46216         Likewise.
46217         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46218         Likewise.
46219         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46220         Reported by Eric Blake.
46221
46222 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46223
46224         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46225         for NetBSD.  Problem reported by Bruno Haible.
46226
46227 2006-10-09  Jim Meyering  <jim@meyering.net>
46228
46229         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46230         Patch from Bruno Haible.
46231
46232 2006-10-09  Jim Meyering  <jim@meyering.net>
46233
46234         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46235         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46236         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46237
46238 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46239
46240         Don't include <config.h> twice; this doesn't work in some cases,
46241         e.g., when config.h has "#define intmax_t long long int" and
46242         we include <config.h>, <inttypes.h>, <config.h> in that order.
46243         Problem reported by Matthew Woehlke in:
46244         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46245         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46246         * lib/fts-cycle.c: Don't include config.h.
46247         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46248         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46249         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46250         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46251         inttypes.h.
46252         * lib/xstrtoumax.c: Likewise.
46253         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46254         __strtol and the like, so that this module is more like its siblings.
46255         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46256         Remove; no longer needed now that we assume gnulib inttypes.h.
46257
46258 2006-10-08  Bruno Haible  <bruno@clisp.org>
46259
46260         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46261         option.
46262
46263 2006-10-07  Jim Meyering  <jim@meyering.net>
46264
46265         * modules/inttypes (inttypes.h): Revert what seems to have been
46266         an inadvertent part of today's change: use "|", not "/" in the
46267         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46268
46269 2006-10-07  Bruno Haible  <bruno@clisp.org>
46270
46271         * modules/sublist: New file.
46272
46273 2006-10-07  Bruno Haible  <bruno@clisp.org>
46274
46275         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46276         * modules/argz (argz.h): Likewise.
46277         * modules/arpa_inet (arpa/inet.h): Likewise.
46278         * modules/byteswap (byteswap.h): Likewise.
46279         * modules/configmake (configmake.h): Likewise.
46280         * modules/fcntl (fcntl.h): Likewise.
46281         * modules/fnmatch (fnmatch.h): Likewise.
46282         * modules/getopt (getopt.h): Likewise.
46283         * modules/glob (glob.h): Likewise.
46284         * modules/inttypes (inttypes.h): Likewise.
46285         * modules/netinet_in (netinet/in.h): Likewise.
46286         * modules/poll (poll.h): Likewise.
46287         * modules/stdbool (stdbool.h): Likewise.
46288         * modules/stdint (stdint.h): Likewise.
46289         * modules/sys_select (sys/select.h): Likewise.
46290         * modules/sys_socket (sys/socket.h): Likewise.
46291         * modules/sys_stat (sys/stat.h): Likewise.
46292         * modules/sysexits (sysexits.h): Likewise.
46293         * modules/unistd (unistd.h): Likewise.
46294         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46295         Add a "DO NOT EDIT" comment to the generated file.
46296         (func_import): Likewise for gnulib-comp.m4.
46297
46298 2006-10-07  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/gl_sublist.h: New file.
46301         * lib/gl_sublist.c: New file.
46302
46303 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46304
46305         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46306         name (relative to the original working directory) and the file
46307         name component (relative to the temporary working directory).  All
46308         callers changed.
46309         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46310         * lib/mkdir-p.c (make_dir_parents): Likewise.
46311         * lib/mkdir-p.h (make_dir_parents): Likewise.
46312
46313 2006-10-06  Eric Blake  <ebb9@byu.net>
46314
46315         Define several macros for use by the clean-temp module.
46316         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46317         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46319
46320         * lib/clean-temp.h (close_stream_temp): New declaration.
46321         * lib/clean-temp.c (includes): Pull in headers according to what
46322         other modules are in use.
46323         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46324
46325 2006-10-06  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46328         instead of fopen, fwriteerror.
46329
46330 2006-10-06  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46333         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46334         int.
46335         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46336         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46337         Return an error indicator.
46338         Suggested by Eric Blake.
46339
46340 2006-10-06  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46343         Reported by Eric Blake.
46344
46345 2006-10-06  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/closeout (Description): Mention stderr too.
46348
46349 2006-10-06  Bruno Haible  <bruno@clisp.org>
46350         and Paul Eggert  <eggert@cs.ucla.edu>
46351
46352         * lib/closeout.c (close_stdout): Also close stderr.
46353         * lib/closeout.h: Update comment.
46354
46355 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46356
46357         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46359         * lib/dirchownmod.c: Include lchown.h.
46360         * lib/lchown.c: Don't include files that lchown.h now includes.
46361         Don't declare chown, since lchown.h now does that.
46362         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46363         (lchown): Define to rpl_chown if lchown is declared but
46364         does not exist.  Declare using a prototype if lchown is not
46365         declared.  Add a copyright notice.
46366         * lib/mkstemp.h: Include <unistd.h>.
46367         * lib/openat.c: Include lchown.h.
46368
46369         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46370         we now test for that separately.
46371         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46372         rather than O_NOFOLLOW, when testing whether it's possible to
46373         avoid a race condition reliably.
46374         * lib/savewd.c (savewd_chdir): Likewise.
46375
46376         Remove macros that are no longer needed now that stdint.h is
46377         reliable.
46378         * lib/fsusage.c (UINTMAX_MAX): Remove.
46379         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46380         * lib/utimecmp.c (SIZE_MAX): Remove.
46381
46382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46383
46384         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46385         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46386         O_NOATIME works.
46387
46388 2006-10-05  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/gl_list.h (gl_sortedlist_search_from_to,
46391         gl_sortedlist_indexof_from_to): New declarations.
46392         (gl_list_implementation): New fields sortedlist_search_from_to,
46393         sortedlist_indexof_from_to.
46394         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46395         inline functions.
46396         * lib/gl_list.c (gl_sortedlist_search_from_to,
46397         gl_sortedlist_indexof_from_to): New functions.
46398         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46399         function.
46400         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46401         (gl_array_sortedlist_search_from_to): New function.
46402         (gl_array_list_implementation): Update.
46403         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46404         function.
46405         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46406         (gl_carray_sortedlist_search_from_to): New function.
46407         (gl_carray_list_implementation): Update.
46408         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46409         gl_linked_sortedlist_indexof_from_to): New functions.
46410         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46411         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46412         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46413         gl_tree_sortedlist_indexof_from_to): New functions.
46414         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46415         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46416         Update.
46417         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46418         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46419         Update.
46420
46421 2006-10-05  Bruno Haible  <bruno@clisp.org>
46422
46423         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46424         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46425         (struct gl_list_implementation): Add fields search_from_to,
46426         indexof_from_to. Remove fields search, indexof.
46427         (gl_list_search): Use the search_from_to method.
46428         (gl_list_search_from, gl_list_search_from_to): New functions.
46429         (gl_list_indexof): Use the indexof_from_to method.
46430         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46431         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46432         (gl_list_search_from, gl_list_search_from_to): New functions.
46433         (gl_list_indexof): Use the indexof_from_to method.
46434         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46435         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46436         gl_array_indexof. Add start_index, end_index arguments.
46437         (gl_array_search_from_to): Renamed from gl_array_search. Add
46438         start_index, end_index arguments.
46439         (gl_array_remove, gl_array_list_implementation): Update.
46440         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46441         gl_carray_indexof. Add start_index, end_index arguments.
46442         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46443         start_index, end_index arguments.
46444         (gl_carray_remove, gl_carray_list_implementation): Update.
46445         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46446         gl_linked_search. Add start_index, end_index arguments.
46447         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46448         start_index, end_index arguments.
46449         (gl_linked_remove): Update.
46450         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46451         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46452         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46453         field to 'size_t'.
46454         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46455         gl_tree_search. Add start_index, end_index arguments.
46456         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46457         start_index, end_index arguments.
46458         (gl_tree_remove): Update.
46459         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46460         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46461         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46462         function.
46463         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46464         gl_tree_search. Add start_index, end_index arguments.
46465         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46466         start_index, end_index arguments.
46467         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46468         Update.
46469         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46470
46471 2006-10-05  Bruno Haible  <bruno@clisp.org>
46472
46473         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46474
46475         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46476         fwriteerror_temp): New declarations.
46477         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46478         (descriptors): New variable.
46479         (cleanup): First, close the descriptors.
46480         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46481         fclose_temp, fwriteerror_temp): New functions.
46482
46483 2006-10-04  Jim Meyering  <jim@meyering.net>
46484
46485         * lib/fts.c (fts_open): Tiny comment change.
46486
46487 2006-10-04  Bruno Haible  <bruno@clisp.org>
46488
46489         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46490         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46491         gl_LOCK_BODY.
46492         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46493         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46494         gl_LOCK_EARLY_BODY.
46495         (gl_LOCK): Require gl_LOCK_BODY.
46496
46497 2006-10-04  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46500         (gl_oset_search_atleast): New declaration.
46501         (struct gl_oset_implementation): Add field 'search_atleast'.
46502         (gl_oset_search_atleast): New inline function.
46503         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46504         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46505         (gl_array_oset_implementation): Update.
46506         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46507         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46508         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46509
46510 2006-10-04  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46513
46514 2006-10-03  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46517         from gl_avltreehash_list_implementation.
46518
46519 2006-10-03  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/gl_oset.c (gl_oset_add): Fix return type.
46522
46523 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46524
46525         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46526
46527 2006-10-02  Eric Blake  <ebb9@byu.net>
46528
46529         * modules/strnlen (Depends-on): Add extensions.
46530
46531 2006-10-02  Eric Blake  <ebb9@byu.net>
46532
46533         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46534         definition in 2.60+.
46535
46536 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46537
46538         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46539         checks.
46540
46541 2006-10-02  Bruno Haible  <bruno@clisp.org>
46542
46543         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46544         to the AUTOMAKE_OPTIONS.
46545         Reported by Jim Meyering.
46546
46547 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46548
46549         Work around bug in Solaris 10 /proc file system:
46550         /proc/self/fd/NNN/.. isn't the parent directory of
46551         the directory whose file descriptor is NNN.  This needs to
46552         be worked around at run time, not compile time, since a
46553         program might be built on Solaris 8, where things work, and
46554         run on Solaris 10.
46555         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46556         to use the following interface instead:
46557         (OPENAT_BUFFER_SIZE): New macro.
46558         (openat_proc_name): New function.
46559         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46560         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46561         Likewise.
46562         * lib/openat-proc.c: New file.
46563         * modules/openat (Files): Add lib/openat-proc.c.
46564         (Depends-on): Add same-inode, stdbool.
46565         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46566
46567 2006-09-29  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46570         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46571         argument. Set stdout_closed before testing for ferror, not after.
46572         (fwriteerror, fwriteerror_no_ebadf): New functions.
46573
46574 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46575
46576         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46577
46578 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46579
46580         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46581         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46582
46583 2006-09-28  Jim Meyering  <jim@meyering.net>
46584
46585         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46586         Include <unistd.h>.
46587
46588 2006-09-28  Bruno Haible  <bruno@clisp.org>
46589
46590         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46591         * modules/linkedhash-list (Depends-on): Likewise.
46592         * modules/rbtreehash-list (Depends-on): Likewise.
46593
46594 2006-09-28  Bruno Haible  <bruno@clisp.org>
46595
46596         * lib/strndup.h: Simplify the redefinition of strndup.
46597         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46599
46600 2006-09-28  Bruno Haible  <bruno@clisp.org>
46601
46602         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46603         * lib/gl_linkedhash_list.c: Likewise.
46604         * lib/gl_rbtreehash_list.c: Likewise.
46605
46606 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46607
46608         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46609         getaddrinfo.
46610
46611         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46612         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46613         it causes <stdio_ext.h> to cause a compile-time error.
46614         Problem reported by Nelson H. F. Beebe.
46615         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46616         of HAVE_DECL___PENDING.
46617
46618         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46619         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46620         declaration.
46621
46622 2006-09-27  Jim Meyering  <jim@meyering.net>
46623
46624         This file could end up with a definition for a function
46625         named __strndup, rather than rpl_strndup on a system with
46626         incomplete weak_alias support.
46627         * lib/strndup.c (strndup): Rename from __strndup.
46628         Remove #defines that used to map __strndup to strndup.
46629         Don't use K&R prototypes.
46630         Remove LIBC-related code, since this file is not sync'd with glibc.
46631         * lib/strndup.h: Revamp, accordingly.
46632         * m4/strndup.m4: Modernize.
46633
46634 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46635
46636         * modules/savewd (Depends-on): Add 'raise'.
46637         * lib/savewd.c: Include <signal.h>, for 'raise'.
46638
46639 2006-09-26  Jim Meyering  <jim@meyering.net>
46640
46641         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46642         when we detect Darwin 8.7.0's acl_get_file bug.
46643         Rearrange to perform the new (below) run-test while $LIBS
46644         contains any acl-related library.  Set USE_ACL at the end.
46645         (gl_ACL_GET_FILE): New function.
46646
46647 2006-09-26  Eric Blake  <ebb9@byu.net>
46648
46649         * lib/verror.c: Include <config.h> unconditionally.
46650
46651 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         * modules/clock-time (Maintainer): Add self.
46654         * modules/getlogin_r (Depends-on): Add extensions.
46655
46656 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46657
46658         * modules/clock-time: New module.
46659         * modules/nanosleep (Depends-on): Add clock-time.
46660         * modules/gethrxtime (Depends-on): Likewise.
46661         * modules/gettime (Depends-on): Likewise.
46662         * modules/settime (Depends-on): Likewise.
46663
46664         * modules/fts-lgpl: Depend on openat.
46665         * modules/mkancesdirs: Depend on savewd.
46666         * modules/mkdir-p: Likewise.
46667
46668 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46669
46670         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46671
46672         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46673         `gl_have_arbitrary_file_name_length_limit' to
46674         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46675         actually works between configure runs.
46676
46677 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46678             Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46681
46682 2006-09-25  Jim Meyering  <jim@meyering.net>
46683
46684         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46685         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46686
46687 2006-09-25  Eric Blake  <ebb9@byu.net>
46688
46689         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46690         exec's in 2006-09-18 patch when shuffling fds.
46691
46692 2006-09-25  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46695         Reported by Jim Meyering.
46696
46697 2006-09-24  Jim Meyering  <jim@meyering.net>
46698
46699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46700         compare a pointer against a literal "0".  That caused failures with
46701         at least HP-UX's hpcc.
46702
46703 2006-09-22  Simon Josefsson  <jas@extundo.com>
46704
46705         * modules/gc-sha1:
46706         * modules/gc-md4:
46707         * modules/gc-hmac-sha1:
46708         * modules/gc-hmac-md5:
46709         * modules/gc-des:
46710         * modules/gc-arcfour: Distribute more files.
46711
46712 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46713
46714         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46715         (gl_linked_iterator_from_to): Initialize struct completely.
46716         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46717         (gl_tree_iterator_from_to): Likewise
46718         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46719         * lib/gl_array_list.c [lint] (gl_array_iterator)
46720         (gl_array_iterator_from_to): Likewise.
46721         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46722         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46723         (gl_carray_iterator_from_to): Likewise.
46724
46725         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46726         * lib/md4.c (md4_process_block): Remove unused variable.
46727         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46728         parentheses for clarity.
46729
46730 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46731
46732         * modules/bison-i18n (Depends-on): Add gettext.
46733
46734 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46735
46736         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46737         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46738         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46739         also add missing comma that caused broken test.
46740         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46741         stdlib.h, for `abort'.
46742         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46743         variables.
46744         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46745         include unistd.h if present, for `rmdir'.
46746         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46747         variables.
46748         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46749         in the process include standard headers for prototypes.
46750         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46751         gets declared on GNU/Linux.
46752         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46753         unistd.h, for `rmdir'.
46754         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46755
46756         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46757         always true.
46758         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46759
46760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46761
46762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46763
46764         * gnulib-tool (func_version): Create output all at once.  This
46765         may help avoid triggering unnecessary SIGPIPEs, and at any
46766         rate it doesn't hurt.
46767
46768 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46769             Bruno Haible  <bruno@clisp.org>
46770
46771         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46772         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46773         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46774
46775         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46776         (gl_FUNC_VASPRINTF): Invoke it.
46777
46778 2006-09-22  Bruno Haible  <bruno@clisp.org>
46779
46780         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46781         getloadavg.c as first argument.
46782
46783 2006-09-22  Bruno Haible  <bruno@clisp.org>
46784
46785         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46786         at the beginning of the gl_INIT macro.
46787         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46788         gl_GETLOADAVG.
46789
46790 2006-09-22  Bruno Haible  <bruno@clisp.org>
46791
46792         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46793         module.
46794         Suggested by Ralf Wildenhues.
46795
46796 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46797
46798         Import this patch from libc:
46799
46800         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46801
46802         * lib/regex_internal.c (re_string_reconstruct): Handle
46803         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46804         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46805         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46806         re_string_context_at.
46807
46808         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46809         now requires it.
46810         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46811         gl_REGEX now does it for us.
46812         (gl_REGEX): Add test taken from
46813         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46814
46815         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46816         Check that large offsets work.  Modernize Autoconf usages.
46817         Prefer "yes" to mean a good thing rather than a bad.
46818         Don't put "#define mkstemp" in config.h, as this might interfere
46819         with standard system headers that "#define mkstemp mkstemp64".
46820
46821         * modules/mkstemp (Depends-on): Add extensions, so that
46822         mkstemp is visible on some platforms.
46823         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46824         (Include): Change to "mkstemp.h" from <stdlib.h>.
46825         (Files): Add mkstemp.h.
46826
46827         * lib/mkstemp.h: New file, since some standard headers
46828         #define mkstemp.
46829         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46830         Include "mkstemp.h".
46831         Make the _LIBC code resemble glibc original more,
46832         e.g., use K&R style.
46833         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46834         (mkstemp): Remove, since mkstemp.h does this for us.
46835         * lib/stdlib--.h: Include mkstemp.h.
46836
46837         Import this patch from libc:
46838
46839         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46840
46841         * lib/tempname.c (__gen_tempname): Change attempts_min
46842         into a macro.  Use preprocessor to decide how to initialize
46843         attempts [Coverity CID 67].
46844
46845 2006-09-20  Bruno Haible  <bruno@clisp.org>
46846
46847         * lib/mkdtemp.c: Import from libc.
46848         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46849                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46850                 attempts_min into a macro.  Use preprocessor to decide how to
46851                 initialize attempts [Coverity CID 67].
46852         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46853                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46854                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46855
46856 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46857
46858         * gnulib-tool (func_exit): New function, to allow to pass the
46859         exit status portably through the trap.  Use everywhere.
46860         (--help, --version): Signal a write error.
46861         (trap): catch SIGPIPE, for write errors.
46862         Exit at the end of the trap, with the correct exit status.
46863
46864 2006-09-19  Karl Berry  <karl@gnu.org>
46865
46866         * doc/gnulib.texi: note about the license texinfo files.
46867
46868 2006-09-19  Eric Blake  <ebb9@byu.net>
46869
46870         * gnulib-tool: Avoid space-tab.
46871
46872 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46875         that prevented coreutils 6.1 from building.  Problem reported
46876         by Petter Reinholdtsen.
46877
46878 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46879
46880         * gnulib-tool (avoidlist): Fix typo that broke options like
46881         --avoid=lock that are used by coreutils bootstrap.
46882
46883 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46884
46885         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46886         more systematically.
46887
46888 2006-09-18  Jim Meyering  <jim@meyering.net>
46889
46890         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46891
46892 2006-09-18  Bruno Haible  <bruno@clisp.org>
46893
46894         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46895
46896 2006-09-18  Bruno Haible  <bruno@clisp.org>
46897
46898         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46899         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46900         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46901         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46902         * m4/gettext.m4: Require autoconf >= 2.52.
46903         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46904         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46905         of gl_cv_header_inttypes_h.
46906
46907 2006-09-18  Bruno Haible  <bruno@clisp.org>
46908
46909         * lib/javaversion.c: Include configmake.h.
46910
46911 2006-09-18  Bruno Haible  <bruno@clisp.org>
46912
46913         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46914         avoid that the while loops be executed in a subshell.
46915
46916 2006-09-18  Bruno Haible  <bruno@clisp.org>
46917
46918         * MODULES.html.sh (func_module): Break long lines.
46919         Suggested by Bruce Korb <bkorb@gnu.org>.
46920
46921 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46922
46923         Speed up by a factor of 1.12.
46924         * gnulib-tool (nl): New variable.
46925         (func_import): Rewrite include directive extraction to only read each
46926         directive once.
46927
46928 2006-09-17  Bruno Haible  <bruno@clisp.org>
46929
46930         * modules/javaversion (Makefile.am): Remove DEFS setting.
46931         (Depends-on): Add configmake, for PKGDATADIR definition.
46932
46933 2006-09-17  Bruno Haible  <bruno@clisp.org>
46934
46935         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46936
46937 2006-09-17  Bruno Haible  <bruno@clisp.org>
46938
46939         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46940         (func_modules_transitive_closure, func_modules_add_dummy,
46941         func_modules_to_filelist, func_import, func_create_testdir,
46942         func_create_megatestdir, ...): Use it wherever possible.
46943         Suggested by Ralf Wildenhues.
46944
46945 2006-09-16  Karl Berry  <karl@gnu.org>
46946
46947         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46948         to avoid sectioning errors.
46949         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46950         [ifinfo]: blank line after @center-ed titles.
46951         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46952         Spell FSF address consistently with others.
46953         (These changes approved by rms.)
46954
46955 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46956
46957         Speed up by a factor of 1.61.
46958         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46959         already checked module names again.
46960
46961 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46962
46963         Speed up by a factor of 1.13.
46964         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46965         for new_files, and the input to func_add_or_update.
46966
46967 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46968
46969         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46970         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46971
46972 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46973
46974         * modules/mkancesdirs (Depends-on): Add fcntl.
46975         * modules/savewd: New file.
46976         * MODULES.html.sh (File system functions): Add savewd.
46977
46978         * modules/configmake (Makefile.am): Add support for the
46979         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46980
46981 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46982
46983         * m4/savewd.m4: New file.
46984
46985 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46986
46987         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46988         (dirchownmod): New arg FD.  All callers changed.
46989         Use FD rather than opening the directory ourself, as opening is
46990         now the caller's responsibility.
46991         * lib/dirchownmod.h: Likewise.
46992         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46993         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46994         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46995         (test_dir): Remove.
46996         (mkancesdirs): Return length of prefix of FILE that has already
46997         been made, or -2 if there is a child doing the work.  Redo
46998         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46999         ".", and treat ".." specially since it might stray back into
47000         already-created areas.  Use a subprocess if necessary.  New arg
47001         WD; all users changed.  MAKE_DIR function should now return 1
47002         if it creates a directory that is not readable.  Return -2 if
47003         a child process is spun off.
47004         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47005         Adjust signature to match code.
47006         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47007         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47008         all users changed.
47009         * lib/savewd.c, lib/savewd.h: New files.
47010
47011 2006-09-15  Jim Meyering  <jim@meyering.net>
47012
47013         * modules/rename-dest-slash: New module.
47014         * MODULES.html.sh (posix_compat): Add it here.
47015
47016         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47017
47018 2006-09-15  Jim Meyering  <jim@meyering.net>
47019
47020         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47021         file.
47022
47023         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47024
47025 2006-09-15  Jim Meyering  <jim@meyering.net>
47026
47027         * lib/rename-dest-slash.c (has_trailing_slash): Use
47028         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47029         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47030         test before testing whether SRC is a directory.
47031         Suggestions from Bruno Haible.
47032
47033         Avoid a warning about an unused variable.
47034         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47035         into the #ifdef block where it's used.
47036
47037         * lib/rename-dest-slash.c: New file.
47038
47039 2006-09-14  Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/allocsa.c: Include <config.h> unconditionally.
47042         * lib/asnprintf.c: Likewise.
47043         * lib/asprintf.c: Likewise.
47044         * lib/c-strcasecmp.c: Likewise.
47045         * lib/c-strcasestr.c: Likewise.
47046         * lib/c-strncasecmp.c: Likewise.
47047         * lib/c-strstr.c: Likewise.
47048         * lib/classpath.c: Likewise.
47049         * lib/clean-temp.c: Likewise.
47050         * lib/concatpath.c: Likewise.
47051         * lib/copy-file.c: Likewise.
47052         * lib/csharpcomp.c: Likewise.
47053         * lib/csharpexec.c: Likewise.
47054         * lib/execute.c: Likewise.
47055         * lib/fatal-signal.c: Likewise.
47056         * lib/findprog.c: Likewise.
47057         * lib/fwriteerror.c: Likewise.
47058         * lib/gl_array_list.c: Likewise.
47059         * lib/gl_array_oset.c: Likewise.
47060         * lib/gl_avltree_list.c: Likewise.
47061         * lib/gl_avltree_oset.c: Likewise.
47062         * lib/gl_avltreehash_list.c: Likewise.
47063         * lib/gl_carray_list.c: Likewise.
47064         * lib/gl_linked_list.c: Likewise.
47065         * lib/gl_linkedhash_list.c: Likewise.
47066         * lib/gl_list.c: Likewise.
47067         * lib/gl_oset.c: Likewise.
47068         * lib/gl_rbtree_list.c: Likewise.
47069         * lib/gl_rbtree_oset.c: Likewise.
47070         * lib/gl_rbtreehash_list.c: Likewise.
47071         * lib/imaxabs.c: Likewise.
47072         * lib/imaxdiv.c: Likewise.
47073         * lib/javacomp.c: Likewise.
47074         * lib/javaexec.c: Likewise.
47075         * lib/javaversion.c: Likewise.
47076         * lib/linebreak.c: Likewise.
47077         * lib/localcharset.c: Likewise.
47078         * lib/lock.c: Likewise.
47079         * lib/mbchar.c: Likewise.
47080         * lib/mbswidth.c: Likewise.
47081         * lib/mkdtemp.c: Likewise.
47082         * lib/pipe.c: Likewise.
47083         * lib/printf-args.c: Likewise.
47084         * lib/printf-parse.c: Likewise.
47085         * lib/progname.c: Likewise.
47086         * lib/progreloc.c: Likewise.
47087         * lib/readlink.c: Likewise.
47088         * lib/sh-quote.c: Likewise.
47089         * lib/stpcpy.c: Likewise.
47090         * lib/stpncpy.c: Likewise.
47091         * lib/strcasecmp.c: Likewise.
47092         * lib/strcasestr.c: Likewise.
47093         * lib/strcspn.c: Likewise.
47094         * lib/striconv.c: Likewise.
47095         * lib/strncasecmp.c: Likewise.
47096         * lib/strnlen1.c: Likewise.
47097         * lib/strstr.c: Likewise.
47098         * lib/strtok_r.c: Likewise.
47099         * lib/tls.c: Likewise.
47100         * lib/tmpdir.c: Likewise.
47101         * lib/unicodeio.c: Likewise.
47102         * lib/unsetenv.c: Likewise.
47103         * lib/vasnprintf.c: Likewise.
47104         * lib/vasprintf.c: Likewise.
47105         * lib/wait-process.c: Likewise.
47106         * lib/xallocsa.c: Likewise.
47107         * lib/xsetenv.c: Likewise.
47108         * lib/xstriconv.c: Likewise.
47109
47110 2006-09-13  Simon Josefsson  <jas@extundo.com>
47111
47112         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47113         that internally, suggested by Ralf Wildenhues
47114         <Ralf.Wildenhues@gmx.de>.
47115
47116 2006-09-13  Simon Josefsson  <jas@extundo.com>
47117
47118         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47119         @LIBOBJS@.
47120         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47121
47122 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47123
47124         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47125         longer worry about uses that don't define HAVE_CONFIG_H.
47126         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47127         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47128         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47129         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47130         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47131         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47132         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47133         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47134         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47135         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47136         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47137         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47138         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47139         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47140         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47141         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47142         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47143         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47144         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47145         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47146         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47147         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47148         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47149         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47150         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47151         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47152         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47153         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47154         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47155         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47156         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47157         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47158         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47159         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47160         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47161         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47162         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47163         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47164         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47165         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47166         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47167         Likewise.
47168
47169 2006-09-13  Eric Blake  <ebb9@byu.net>
47170
47171         * lib/getopt.c: Fix typo in last commit.
47172
47173 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47174
47175         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47176         dgettext.
47177
47178 2006-09-12  Jim Meyering  <jim@meyering.net>
47179
47180         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47181         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47182         Reported by Nelson H. F. Beebe.
47183
47184 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47185
47186         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47187         program_invocation_name and program_invocation_short_name are
47188         initialized.
47189         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47190         and program_invocation_short_name to argp.h, so they are visible
47191         to user programs.
47192         * lib/argp.h: Likewise
47193
47194 2006-09-10  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47197         m4/inttypes_h.m4, m4/uintmax_t.m4.
47198
47199 2006-09-10  Bruno Haible  <bruno@clisp.org>
47200
47201         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47202         gl_AC_TYPE_UINTMAX_T.
47203
47204 2006-09-10  Bruno Haible  <bruno@clisp.org>
47205
47206         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47207
47208 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47209
47210         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47211         convention.  Text proposed by Bruno Haible.
47212         (struct argp_option): Document the use of N_() wrappers.
47213
47214         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47215         '\v', and translate the two parts separately, instead of feeding
47216         the whole string to gettext.  This allows to exclude
47217         '\v' from the strings visible to the translator by writing doc
47218         strings as N_("..") "\v" N_("..").
47219
47220 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47221
47222         * config/srclist.txt: Undo latest change; the bug was fixed.
47223
47224 2006-09-09  Bruno Haible  <bruno@clisp.org>
47225
47226         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47227         assignments if building a library without libtool.
47228         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47229         in func_emit_lib_Makefile_am.
47230         (func_import): When building a static library libfoo.a, arrange to
47231         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47232         (func_create_testdir): Likewise.
47233         * modules/gc (configure.ac, Makefile.am): If building statically,
47234         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47235         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47236         * modules/striconv (configure.ac, Makefile.am): Likewise.
47237         Based on a suggestion by Ralf Wildenhues.
47238
47239 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47242         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47243         Also:
47244
47245         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47246         Add year_2050_test to catch glibc bug 2821
47247         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47248
47249         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47250         Prefer #ifdef to #if.
47251
47252         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47253         Return from 'main' instead of calling 'exit'.
47254
47255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47258         returned the maximum time_t value rather than (time_t) -1.
47259         Problem originally reported by William Bardwell
47260         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47261
47262         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47263         Moved to here ...
47264         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47265         ... from here.
47266
47267 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47268
47269         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47270         2821 is fixed.
47271
47272 2006-09-08  Jim Meyering  <jim@meyering.net>
47273
47274         Don't make generated files read-only.  That would bother too many
47275         people.  However, do retain the ability to work when targets are
47276         read-only: remove the destination and temporary files before writing
47277         them (when generated via sed or echo), or by using the -f option for
47278         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47279         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47280         * modules/byteswap, modules/configmake, modules/fcntl:
47281         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47282         * modules/localcharset, modules/netinet_in, modules/poll:
47283         * modules/stdbool, modules/stdint, modules/sys_select:
47284         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47285
47286 2006-09-08  Jim Meyering  <jim@meyering.net>
47287
47288         Avoid new build failure on FreeBSD 6.0.
47289         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47290         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47291         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47292
47293 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47294
47295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47296
47297 2006-09-07  Jim Meyering  <jim@meyering.net>
47298
47299         Fix global typo in last change: use chmod u-w, not chmod u-x.
47300         Spotted by Paul Eggert and Bruce Korb.
47301         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47302         * modules/byteswap, modules/configmake, modules/fcntl:
47303         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47304         * modules/localcharset, modules/netinet_in, modules/poll:
47305         * modules/stdbool, modules/stdint, modules/sys_select:
47306         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47307
47308 2006-09-06  Jim Meyering  <jim@meyering.net>
47309
47310         Make generated files be read-only.
47311         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47312         Ensure that each generated file is now read-only.
47313         * modules/argz: Likewise.
47314         * modules/arpa_inet: Likewise.
47315         * modules/byteswap: Likewise.
47316         * modules/configmake: Likewise.
47317         * modules/fcntl: Likewise.
47318         * modules/fnmatch: Likewise.
47319         * modules/getopt: Likewise.
47320         * modules/glob: Likewise.
47321         * modules/inttypes: Likewise.
47322         * modules/netinet_in: Likewise.
47323         * modules/poll: Likewise.
47324         * modules/stdbool: Likewise.
47325         * modules/stdint: Likewise.
47326         * modules/sys_select: Likewise.
47327         * modules/sys_socket: Likewise.
47328         * modules/sys_stat: Likewise.
47329         * modules/sysexits: Likewise.
47330         * modules/localcharset: Same as above, but continue using temporary
47331         file named "t-$@" (why different?) rather than the "$@-t" used
47332         everywhere else.
47333
47334         * modules/sysexits (Makefile.am): Replace literal occurrences
47335         of "sysexit.h" more readable, and more consistent, "$@".
47336
47337 2006-09-06  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/striconv: New file.
47340         * modules/xstriconv: New file.
47341         * MODULES.html.sh (Internationalization functions): Add striconv,
47342         xstriconv.
47343
47344 2006-09-06  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47347         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47348         not using libtool correctly.
47349
47350 2006-09-06  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/striconv.h: New file.
47353         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47354         iconvstring.c.
47355         * lib/xstriconv.h: New file.
47356         * lib/xstriconv.c: New file.
47357
47358 2006-09-06  Bruno Haible  <bruno@clisp.org>
47359
47360         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47361         lib_..._LDFLAGS.
47362
47363 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47364
47365         * lib/argz_.h: Sync from Libtool.
47366
47367         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47368                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47369
47370         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47371
47372 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47373
47374         * modules/trim: New file.
47375
47376 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47377
47378         * lib/trim.h: New file.
47379         * lib/trim.c: New file.
47380
47381 2006-09-05  Bruno Haible  <bruno@clisp.org>
47382
47383         * MODULES.html.sh (String handling): Add trim.
47384
47385 2006-09-04  Karl Berry  <karl@gnu.org>
47386
47387         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47388         until next release.
47389
47390 2006-09-03  Bruno Haible  <bruno@clisp.org>
47391
47392         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47393         correctly.
47394
47395 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47396
47397         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47398         not gl_GETLOADAVG.  Omit unneeded semicolons.
47399         Problems reported by Ralf Wildenhues in
47400         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47401         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47402         at the end, which is the usual gnulib style.
47403
47404         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47405         of doing all the work ourselves.
47406         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47407         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47408
47409 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47410
47411         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47412         Problem reported by Ralf Wildenhues in
47413         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47414
47415         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47416         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47417
47418 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47421         yesterday's patch by changing test -n to test -z.
47422
47423 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47426         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47427         the former is now obsolescent.
47428
47429         * modules/chdir-long (Depends-on): Add fcntl.
47430
47431 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47432
47433         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47434         obsolescent, and programs should use gnulib instead.
47435         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47436         but with prefixes changed.
47437
47438 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47439
47440         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47441         or stdbool.h, because they might not exist while configuring.
47442
47443         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47444         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47445         does that for us.
47446         (O_DIRECTORY): Remove.
47447
47448 2006-08-31  Eric Blake  <ebb9@byu.net>
47449
47450         * gnulib-tool: Don't let emacs change spaces to TAB.
47451
47452 2006-08-31  Bruno Haible  <bruno@clisp.org>
47453
47454         * gnulib-tool: When calling func_import more than once, do it in a
47455         subshell.
47456         Reported by Eric Blake <ebb9@byu.net>.
47457
47458 2006-08-31  Bruno Haible  <bruno@clisp.org>
47459
47460         * gnulib-tool (nl): Remove variable.
47461         (sed_transform_lib_file): Use more robust test for config-h module.
47462         (func_import): Fix typo in 2006-08-25 patch.
47463
47464 2006-08-31  Bruno Haible  <bruno@clisp.org>
47465
47466         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47467         specified, augment Makefile.am variables instead of assigning them.
47468
47469 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         Work around a bug in both the Linux and SunOS 64-bit kernels:
47472         nanosleep mishandles sleeps for longer than 2**31 seconds.
47473         Problem reported by Frank v Waveren in
47474         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47476         Check for nanosleep bug.
47477         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47478
47479 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47480
47481         Work around a bug in both the Linux and SunOS 64-bit kernels:
47482         nanosleep mishandles sleeps for longer than 2**31 seconds.
47483         Problem reported by Frank v Waveren in
47484         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47485         * lib/nanosleep.c (BILLION): New constant.
47486         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47487         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47488         implementation.
47489
47490 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47491
47492         * modules/nanosleep (Depends-on): Add gettime.
47493
47494 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47495         and Simon Josefsson  <jas@extundo.com>
47496         and Oskar Liljeblad  <oskar@osk.mine.nu>
47497
47498         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47499         * gnulib-tool (func_import): New license type 'unmodifiable license
47500         text'.
47501         * modules/fdl: Use it.  Longer description.
47502         * module/gpl, module/lgpl: New files.
47503
47504 2006-08-30  Jim Meyering  <jim@meyering.net>
47505
47506         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47507         shadowing the parameter.
47508
47509 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47510
47511         Sync from Libtool:
47512
47513         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47514
47515         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47516         sharing with gnulib.  Report by Eric Blake.
47517
47518 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47519
47520         * modules/isapipe: New file.
47521         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47522
47523 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * modules/configmake (Makefile.am): Add a comment, and omit
47526         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47527         by Bruno Haible.
47528
47529 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47530
47531         * m4/isapipe.m4: New file.
47532
47533 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47534
47535         * lib/isapipe.c, lib/isapipe.h: New files.
47536
47537 2006-08-29  Jim Meyering  <jim@meyering.net>
47538
47539         * modules/configmake (Makefile.am): Make configmake.h depend on
47540         Makefile.  Otherwise, a stale configmake.h could hang around.
47541
47542 2006-08-29  Eric Blake  <ebb9@byu.net>
47543
47544         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47545         resolution of upstream bug 3044.
47546
47547 2006-08-29  Bruno Haible  <bruno@clisp.org>
47548
47549         * modules/localcharset (Depends-on): Add configmake.
47550         (Makefile.am): Remove setting of LIBDIR through DEFS.
47551
47552 2006-08-29  Bruno Haible  <bruno@clisp.org>
47553
47554         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47555         defined.
47556
47557 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47558
47559         * modules/fcntl: New file.
47560         * modules/chdir-safer (Depends-on): Add fcntl.
47561         * modules/fts: Likewise.
47562         * modules/mkdir-p: Likewise.
47563
47564         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47565         This undoes the most recent change, since we're now addressing the
47566         problem in a different way.
47567
47568         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47569         into output, since the output might be called Makefile.am even
47570         if $makefile_name is something different.
47571         (func_import): Use $makefile_am rather than
47572         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47573         empty.
47574
47575         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47576
47577 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47580         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47581         recent change to stdint.m4, since we're now addressing the problem in a
47582         different way.
47583
47584 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47585
47586         * m4/fcntl_h.m4: New file.
47587
47588 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * lib/fcntl_.h: New file.
47591         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47592         the fcntl module.
47593         * lib/dirchownmod.c: Likewise.
47594         * lib/fts.c: Likewise.
47595
47596         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47597         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47598         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47599         just before including <inttypes.h>, to avoid circular inclusion.
47600
47601 2006-08-28  Jim Meyering  <jim@meyering.net>
47602
47603         * doc/visibility.texi: Actually read and correct the grammar of the
47604         sentence affected by yesterday's change.
47605
47606 2006-08-28  Eric Blake  <ebb9@byu.net>
47607
47608         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47609         needs wrapper.
47610
47611 2006-08-28  Eric Blake  <ebb9@byu.net>
47612
47613         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47614
47615 2006-08-28  Eric Blake  <ebb9@byu.net>
47616
47617         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47618
47619 2006-08-28  Bruno Haible  <bruno@clisp.org>
47620
47621         * modules/c-strstr: New file, from GNU gettext.
47622         * MODULES.html.sh (String handling): Add c-strstr.
47623
47624 2006-08-28  Bruno Haible  <bruno@clisp.org>
47625
47626         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47627         macros.
47628         Reported by Eric Blake.
47629
47630 2006-08-28  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47633         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47634         * lib/vasprintf.c: Include errno.h, limits.h.
47635         (EOVERFLOW): New fallback definition.
47636         (vasprintf): Test here whether the string length is > INT_MAX.
47637         * lib/vsnprintf.c: Include errno.h, limits.h.
47638         (EOVERFLOW): New fallback definition.
47639         (vsnprintf): Fix bug when generated string was too long for the buffer.
47640         Test here whether the string length is > INT_MAX.
47641
47642 2006-08-28  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/inttypes_.h (SCNX*): Remove definitions.
47645         Reported by Eric Blake.
47646
47647 2006-08-28  Bruno Haible  <bruno@clisp.org>
47648
47649         * lib/c-strstr.h: New file, from GNU gettext.
47650         * lib/c-strstr.c: New file, from GNU gettext.
47651
47652 2006-08-28  Bruno Haible  <bruno@clisp.org>
47653
47654         * gnulib-tool: Reorder some statements.
47655
47656 2006-08-28  Bruno Haible  <bruno@clisp.org>
47657
47658         * gnulib-tool: New option --makefile-name.
47659         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47660         $makefile_name.
47661         (func_import): Write $makefile_name to the cache file, and read it from
47662         there unless explicitly specified. Use $makefile_name as file name
47663         instead of Makefile.am. Adjust the recommendations accordingly.
47664
47665 2006-08-28  Bruno Haible  <bruno@clisp.org>
47666
47667         * gnulib-tool (func_verify_module): Check against misapplying patch.
47668
47669 2006-08-28  Bruno Haible  <bruno@clisp.org>
47670
47671         * gnulib-tool (func_relativize, func_relconcat): New functions.
47672         Give an error if --local-dir is given with --update.
47673         Remove trailing slashes from $local_gnulib_dir.
47674         (func_import): Store the relativized $local_gnulib_dir in
47675         gnulib-cache.m4, and read it from there if not specified explicitly.
47676
47677 2006-08-28  Bruno Haible  <bruno@clisp.org>
47678
47679         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47680         is the current directory. Respect also $local_gnulib_dir.
47681
47682 2006-08-28  Bruno Haible  <bruno@clisp.org>
47683             Simon Josefsson  <jas@extundo.com>
47684
47685         BeOS portability.
47686         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47687
47688 2006-08-27  Jim Meyering  <jim@meyering.net>
47689
47690         * doc/visibility.texi: Remove duplicate word: "pointer".
47691
47692 2006-08-26  Bruno Haible  <bruno@clisp.org>
47693
47694         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47695         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47696         (Makefile.am): Create inttypes.h from inttypes_.h.
47697         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47698
47699         * modules/imaxabs: New file.
47700
47701         * modules/imaxdiv: New file.
47702
47703 2006-08-26  Bruno Haible  <bruno@clisp.org>
47704
47705         * m4/inttypes.m4: New file.
47706         * m4/_inttypes_h.m4: Remove file.
47707         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47708         PRI_MACROS_BROKEN.
47709         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47710
47711         * m4/imaxabs.m4: New file.
47712
47713         * m4/imaxdiv.m4: New file.
47714
47715 2006-08-26  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/inttypes_.h: New file.
47718         * lib/inttypes.h: Remove file.
47719         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47720
47721         * lib/imaxabs.c: New file.
47722
47723         * lib/imaxdiv.c: New file.
47724
47725 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         New config-h module, so that "make" output needn't be cluttered
47728         by -DHAVE_CONFIG_H.
47729         * MODULES.html.sh (Support for building libraries and executables):
47730         Add config-h.
47731         * modules/config-h: New file.
47732         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47733         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47734         the config-h module is used.
47735
47736         New configmake module, so that "make" output needn't be cluttered
47737         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47738         * MODULES.html.sh (Support for building libraries and executables):
47739         Add configmake.
47740         * modules/configmake: New file.
47741
47742 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47743
47744         * m4/config-h.m4: New file.
47745
47746 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47747
47748         * config/srclist.txt: Add elisp-comp.
47749
47750 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47751
47752         * MODULES.html.sh (Support for building libraries and executables):
47753         Add elisp-comp.
47754         * build-aux/elisp-comp: New file.
47755         * modules/elisp-comp: New file.
47756
47757 2006-08-24  Bruno Haible  <bruno@clisp.org>
47758
47759         * gnulib-tool (func_create_testdir): Use non-default values of
47760         sourcebase and m4base.
47761
47762 2006-08-24  Bruno Haible  <bruno@clisp.org>
47763
47764         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47765         HTML structure.
47766
47767 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47768
47769         * modules/openat (Depends-on): Add lchown.
47770
47771 2006-08-23  Bruno Haible  <bruno@clisp.org>
47772
47773         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47774         of gl_LOCK_EARLY instead of gl_LOCK.
47775
47776 2006-08-23  Bruno Haible  <bruno@clisp.org>
47777
47778         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47779         on OSF/1 to no.
47780         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47781
47782 2006-08-23  Bruno Haible  <bruno@clisp.org>
47783
47784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47785         as unusable.
47786
47787         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47788         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47789         (gl_LOCK): New macro.
47790
47791 2006-08-22  Simon Josefsson  <jas@extundo.com>
47792
47793         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47794         to md5 module.
47795
47796 2006-08-22  Simon Josefsson  <jas@extundo.com>
47797
47798         * MODULES.html.sh: Add "Support for maintaining and release
47799         projects".
47800
47801         * build-aux/gnupload: New file, from coreutils.
47802
47803 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         Avoid the need for AC_LIBSOURCES in m4 macros.
47806         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47807         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47808         * modules/check-version (EXTRA_DIST): Add check-version.h.
47809         * modules/crc (EXTRA_DIST): Add crc.h.
47810         * modules/des (EXTRA_DIST): Add des.h.
47811         * modules/gc (EXTRA_DIST): Add gc.h.
47812         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47813         * modules/getline (EXTRA_DIST): Add getline.h.
47814         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47815         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47816         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47817         * modules/md2 (EXTRA_DIST): Add md2.h.
47818         * modules/md4 (EXTRA_DIST): Add md4.h.
47819         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47820         * modules/read-file (EXTRA_DIST): Add read-file.h.
47821         * modules/readline (EXTRA_DIST): Add readline.h.
47822         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47823         rijndael-api-fst.h.
47824
47825 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47826
47827         * m4/rijndael.m4 (gl_ARCFOUR):
47828         * m4/arctwo.m4 (gl_ARCTWO):
47829         * m4/check-version.m4 (gl_CHECK_VERSION):
47830         * m4/crc.m4 (gl_CRC):
47831         * m4/des.m4 (gl_DES):
47832         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47833         * m4/gc.m4 (gl_GC):
47834         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47835         * m4/getline.m4 (gl_FUNC_GETLINE):
47836         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47837         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47838         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47839         * m4/md2.m4 (gl_MD2):
47840         * m4/md4.m4 (gl_MD4):
47841         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47842         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47843         * m4/readline.m4 (gl_FUNC_READLINE):
47844         * m4/rijndael.m4 (gl_RIJNDAEL):
47845         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47846         to get the necessary .h files and whatnot.
47847
47848 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47849
47850         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47851         gnulib rather than the other way around.
47852         * config/srclistvars.sh (COREUTILS): Remove.
47853
47854 2006-08-22  Jim Meyering  <jim@meyering.net>
47855
47856         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47857
47858         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47859
47860 2006-08-22  Eric Blake  <ebb9@byu.net>
47861
47862         * modules/regexprops-generic: New file.
47863         * MODULES.html.sh (Support for building documentation): List it.
47864
47865 2006-08-22  Eric Blake  <ebb9@byu.net>
47866
47867         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47868         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47870         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47871
47872 2006-08-22  Bruno Haible  <bruno@clisp.org>
47873
47874         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47875         and lib_LTLIBRARIES like the other lib_* variables.
47876
47877 2006-08-22  Bruno Haible  <bruno@clisp.org>
47878
47879         * build-aux/x-to-1.in: New file, from GNU gettext.
47880
47881 2006-08-22  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47884         <utmpx.h> exists.
47885
47886 2006-08-22  Bruno Haible  <bruno@clisp.org>
47887
47888         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47889         <utmpx.h> exists.
47890
47891 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47892
47893         BeOS portability.
47894         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47895         exist.
47896         Problem reported by Bruno Haible.
47897
47898 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         Avoid the need for AC_LIBSOURCES in m4 macros.
47901         * modules/acl (EXTRA_DIST): Add acl.h.
47902         * modules/argmatch (Files): Add m4/argmatch.m4.
47903         (configure.ac): Add gl_ARGMATCH.
47904         (EXTRA_DIST): Renamed from lib_SOURCES, for
47905         consistency with the other modules.  Remove argmatch.c.
47906         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47907         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47908         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47909         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47910         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47911         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47912         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47913         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47914         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47915         * modules/closeout (EXTRA_DIST): Add closeout.h.
47916         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47917         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47918         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47919         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47920         dirname.h; remove basename.c and stripslash.c.
47921         * modules/exclude (EXTRA_DIST): Add exclude.h.
47922         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47923         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47924         * modules/file-type (EXTRA_DIST): Add file-type.h.
47925         * modules/filemode (EXTRA_DIST): Add filemode.h.
47926         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47927         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47928         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47929         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47930         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47931         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47932         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47933         * modules/getdate (EXTRA_DIST): Add getdate.c.
47934         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47935         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47936         * modules/getpass (EXTRA_DIST): Add getpass.h.
47937         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47938         * modules/group-member (EXTRA_DIST): Add group-member.h.
47939         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47940         * modules/hash (EXTRA_DIST): Add hash.h.
47941         * modules/human (EXTRA_DIST): Add human.h.
47942         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47943         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47944         * modules/lchown (EXTRA_DIST): Add lchown.h.
47945         * modules/long-options (EXTRA_DIST): Add long-options.h.
47946         * modules/lstat (EXTRA_DIST): Add lstat.h.
47947         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47948         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47949         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47950         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47951         * modules/memxor (EXTRA_DIST): Add memxor.h.
47952         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47953         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47954         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47955         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47956         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47957         * modules/physmem (EXTRA_DIST): Add physmem.h.
47958         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47959         * modules/posixver (EXTRA_DIST): Add posixver.h.
47960         * modules/quote (EXTRA_DIST): Add quote.h.
47961         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47962         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47963         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47964         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47965         regex_internal.h regexec.c.
47966         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47967         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47968         * modules/same (EXTRA_DIST): Add same.h.
47969         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47970         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47971         * modules/savedir (EXTRA_DIST): Add savedir.h.
47972         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47973         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47974         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47975         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47976         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47977         * modules/strdup (EXTRA_DIST): Add strdup.h.
47978         * modules/strftime (EXTRA_DIST): Add strftime.h.
47979         * modules/strndup (EXTRA_DIST): Add strndup.h.
47980         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47981         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47982         * modules/time_r (EXTRA_DIST): Add time_r.h.
47983         * modules/timespec (EXTRA_DIST): Add timespec.h.
47984         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47985         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47986         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47987         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47988         * modules/userspec (EXTRA_DIST): Add userspec.h.
47989         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47990         * modules/utimens (EXTRA_DIST): Add utimens.h.
47991         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47992         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47993         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47994         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47995         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47996         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47997         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47998         * modules/yesno (EXTRA_DIST): Add yesno.h.
47999
48000 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48001
48002         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48003
48004         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48005         * m4/dev-ino.m4, same-inode.m4: Remove.
48006
48007         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48008         * m4/acl.m4 (AC_FUNC_ACL):
48009         * m4/backupfile.m4 (gl_BACKUPFILE):
48010         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48011         * m4/canon-host.m4 (gl_CANON_HOST):
48012         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48013         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48014         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48015         * m4/cloexec.m4 (gl_CLOEXEC):
48016         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48017         * m4/closeout.m4 (gl_CLOSEOUT):
48018         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48019         * m4/dirname.m4 (gl_DIRNAME):
48020         * m4/exclude.m4 (gl_EXCLUDE):
48021         * m4/exitfail.m4 (gl_EXITFAIL):
48022         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48023         * m4/file-type.m4 (gl_FILE_TYPE):
48024         * m4/filemode.m4 (gl_FILEMODE):
48025         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48026         * m4/fpending.m4 (gl_FUNC_FPENDING):
48027         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48028         * m4/fts.m4 (gl_FUNC_FTS):
48029         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48030         * m4/getdate.m4 (gl_GETDATE):
48031         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48032         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48033         * m4/getpass.m4 (gl_FUNC_GETPASS):
48034         * m4/gettime.m4 (gl_GETTIME):
48035         * m4/getugroups.m4 (gl_GETUGROUPS):
48036         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48037         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48038         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48039         * m4/hash.m4 (gl_HASH):
48040         * m4/idcache.m4 (gl_IDCACHE):
48041         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48042         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48043         * m4/long-options.m4 (gl_LONG_OPTIONS):
48044         * m4/lstat.m4 (gl_FUNC_LSTAT):
48045         * m4/md5.m4 (gl_MD5):
48046         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48047         * m4/memcoll.m4 (gl_MEMCOLL):
48048         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48049         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48050         * m4/memxor.m4 (gl_MEMXOR):
48051         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48053         * m4/modechange.m4 (gl_MODECHANGE):
48054         * m4/mountlist.m4 (gl_MOUNTLIST):
48055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48056         * m4/openat.m4 (gl_FUNC_OPENAT):
48057         * m4/pathmax.m4 (gl_PATHMAX):
48058         * m4/physmem.m4 (gl_PHYSMEM):
48059         * m4/posixtm.m4 (gl_POSIXTM):
48060         * m4/posixver.m4 (gl_POSIXVER):
48061         * m4/quote.m4 (gl_QUOTE):
48062         * m4/quotearg.m4 (gl_QUOTEARG):
48063         * m4/readtokens.m4 (gl_READTOKENS):
48064         * m4/readutmp.m4 (gl_READUTMP):
48065         * m4/regex.m4 (gl_REGEX):
48066         * m4/safe-read.m4 (gl_SAFE_READ):
48067         * m4/safe-write.m4 (gl_SAFE_WRITE):
48068         * m4/same.m4 (gl_SAME):
48069         * m4/save-cwd.m4 (gl_SAVE_CWD):
48070         * m4/savedir.m4 (gl_SAVEDIR):
48071         * m4/settime.m4 (gl_SETTIME):
48072         * m4/sha1.m4 (gl_SHA1):
48073         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48074         * m4/stat-macros.m4 (gl_STAT_MACROS):
48075         * m4/stat-time.m4 (gl_STAT_TIME):
48076         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48077         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48078         * m4/strdup.m4 (gl_FUNC_STRDUP):
48079         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48080         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48081         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48082         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48083         * m4/time_r.m4 (gl_TIME_R):
48084         * m4/timespec.m4 (gl_TIMESPEC):
48085         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48086         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48087         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48088         * m4/userspec.m4 (gl_USERSPEC):
48089         * m4/utimecmp.m4 (gl_UTIMECMP):
48090         * m4/utimens.m4 (gl_UTIMENS):
48091         * m4/xalloc.m4 (gl_XALLOC):
48092         * m4/xgetcwd.m4 (gl_XGETCWD):
48093         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48094         * m4/xreadlink.m4 (gl_XREADLINK):
48095         * m4/xstrtod.m4 (gl_XSTRTOD):
48096         * m4/yesno.m4 (gl_YESNO):
48097         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48098         to get the necessary .h files and whatnot.
48099
48100 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48101             Bruno Haible  <bruno@clisp.org>
48102
48103         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48104         /bin/sh understanding of '!' conditional negation.
48105
48106 2006-08-21  Jim Meyering  <jim@meyering.net>
48107
48108         * modules/openat (Depends-on): Really alphabetize.
48109
48110         * modules/acl (Depends-on): Add error and quote.
48111
48112         * check-module (find_included_lib_files): Add at-func.c to the
48113         ok-to-include-more-than-once white list.
48114
48115         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48116
48117 2006-08-21  Bruno Haible  <bruno@clisp.org>
48118
48119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48120         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48121         Reported by Martin Lambers <marlam@marlam.de>.
48122
48123 2006-08-21  Bruno Haible  <bruno@clisp.org>
48124
48125         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48126         specify an installation location, don't emit a noinst_LIBRARIES or
48127         noinst_LTLIBRARIES assignment.
48128
48129 2006-08-21  Bruno Haible  <bruno@clisp.org>
48130
48131         BeOS portability.
48132         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48133         BeOS has mbrtowc() but no <wctype.h>.
48134
48135 2006-08-21  Bruno Haible  <bruno@clisp.org>
48136
48137         BeOS portability.
48138         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48139         exist.
48140
48141 2006-08-21  Bruno Haible  <bruno@clisp.org>
48142
48143         BeOS portability.
48144         * lib/mbchar.h: Include <wctype.h> only if it exists.
48145
48146 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48147
48148         Remove files that are no longer needed by their respective modules.
48149         * m4/obstack.m4: Remove.
48150         * m4/strerror_r.m4: Remove.
48151         * m4/uint32_t.m4: Remove.
48152         * m4/uintptr_t.m4: Remove.
48153         * m4/ullong_max.m4: Remove.
48154         * m4/xstrtoimax.m4: Remove.
48155         * m4/xstrtoumax.m4: Remove.
48156
48157         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48158         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48159         dependencies now capture this.
48160
48161         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48162         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48163         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48164         * m4/human.m4 (gl_HUMAN): Likewise.
48165         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48166         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48167
48168         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48169
48170         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48171         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48172         stdint.
48173         * m4/human.m4 (gl_HUMAN): Likewise.
48174         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48175         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48176         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48177         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48178         * m4/xstrtol (gl_XSTRTOL): Likewise.
48179
48180         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48181         AC_TYPE_LONG_LONG_INT.
48182         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48183         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48184         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48185         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48186
48187         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48188         on stdbool.
48189
48190         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48191         (gl_PREREQ_XSTRTOUL): Remove.
48192
48193         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48194
48195         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48196         mode.
48197
48198 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48199
48200         Add and change modules to make it easier for coreutils to use
48201         gnulib-tool.
48202         * modules/backupfile (Files): Remove m4/d-ino.m4.
48203         (Depends-on): Add d-ino.
48204         * modules/cycle-check (Depends-on): Add stdint.
48205         (lib_SOURCES): Add cycle-check.h.
48206         * modules/d-ino: New module.
48207         * modules/d-type: New module.
48208         * modules/error (Files): Remove m4/strerror_r.m4.
48209         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48210         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48211         m4/inttypes_h.m4, m4/uintmax_t.m4.
48212         (Depends-on): Add stdint.
48213         (lib_SOURCES): Add fsusage.h.
48214         * modules/getcwd (Files): Remove d-ino.m4.
48215         (Depends-on): Add d-ino.
48216         * modules/getndelim2 (Depends-on): Add stdint.
48217         * modules/glob (Files): Remove m4/d-type.m4.
48218         (Depends-on): Add d-type.
48219         * modules/host-os: New module.
48220         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48221         m4/inttypes_h.m4, m4/uintmax_t.m4.
48222         * Depends-on: Add stdint.
48223         (lib_SOURCES): Add human.h.
48224         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48225         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48226         m4/uintmax_t.m4, m4/ulonglong.m4.
48227         (Depends-on): Add stdint.
48228         (EXTRA_DIST): Add inttostr.h.
48229         * modules/lchmod: New module.
48230         * modules/link-follow: New module.
48231         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48232         (Depends-on): Add lchmod.
48233         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48234         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48235         (Depends-on): Add stdint.
48236         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48237         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48238         (Depends-on): Add stdint.
48239         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48240         * modules/perl: New module.
48241         * modules/regex (Depends-on): Add stdint.
48242         * modules/rmdir-errno: New module.
48243         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48244         m4/intmax_t.m4.
48245         (Depends-on): Add stdint.
48246         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48247         m4/uintmax_t.m4.
48248         (Depends-on): Add stdint.
48249         * modules/unlink-busy: New module.
48250         * modules/utimecmp (Depends-on): Add stdint.
48251         * modules/uptime: New module.
48252         * modules/winsz-ioctl: New module.
48253         * modules/winsz-termios: New module.
48254         * modules/xnanosleep (Depends-on): Add nanosleep.
48255         * modules/ullong_max: Remove.
48256         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48257         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48258         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48259         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48260         (Depends-on): Add inttypes.
48261         (lib_SOURCES): Add xstrtol.h.
48262         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48263         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48264         * MODULES.html.sh: Move 'assert' into the assert section.
48265         Move 'dummy' into the linking section.
48266         Remove ullong_max.
48267         Add section for compatibility checks for POSIX:2001 functions,
48268         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48269         winsz-ioctl, and winsz-termios into it.
48270         Add lchmod.
48271         Add top-level Misc section and put host-os, perl, and uptime
48272         into it.
48273
48274 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48275
48276         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48277         now assume the stdint module.  Do not include inttypes.h.
48278         * lib/fsusage.h: Likewise.
48279         * lib/getndelim2.c: Likewise.
48280         * lib/human.h: Likewise.
48281         * lib/inttostr.h: Likewise.
48282         * lib/obstack.c: Likewise.
48283         * lib/regex_internal.h: Likewise.
48284         * lib/tempname.c: Likewise.
48285         * lib/utimecmp.c: Likewise.
48286         * lib/xstrtol.h: Likewise.
48287
48288         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48289
48290         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48291         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48292         * lib/xtime.h: Likewise.
48293
48294 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         * modules/openat (Files): Add lib/fchmodat.c.
48297         Fixes problem reported by Jay Youngman.
48298
48299 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48302         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48303
48304 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48305             Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48308         and is a script that invokes bison. Tighten the code. Add comments.
48309
48310 2006-08-18  Jim Meyering  <jim@meyering.net>
48311
48312         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48313         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48314         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48315         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48316
48317 2006-08-18  Bruno Haible  <bruno@clisp.org>
48318
48319         * modules/bison-i18n: New file.
48320         * MODULES.html.sh (Internationalization functions): Add it.
48321
48322 2006-08-18  Bruno Haible  <bruno@clisp.org>
48323
48324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48325         sys/statvfs.h. When getmntinfo was found, check its declaration and
48326         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48327
48328 2006-08-18  Bruno Haible  <bruno@clisp.org>
48329
48330         * m4/bison-i18n.m4: New file, from bison.
48331
48332 2006-08-18  Bruno Haible  <bruno@clisp.org>
48333
48334         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48335         (ME_DUMMY): Treat "kernfs" as a dummy.
48336         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48337
48338 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48339
48340         Update from coreutils.
48341
48342         2006-08-15  Jim Meyering  <jim@meyering.net>
48343
48344         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48345
48346         2006-01-17  Jim Meyering  <jim@meyering.net>
48347
48348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48349
48350         2006-01-11  Jim Meyering  <jim@meyering.net>
48351
48352         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48353         Check for the lchmod function.
48354
48355 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48356
48357         Update from coreutils.
48358
48359         * lib/__fpending.h: Add copyright notice.
48360         * lib/fprintftime.h: Likewise.
48361         * lib/savedir.c: Use (C) in copyright notice.
48362         * lib/savedir.h: Likewise.
48363
48364         2006-08-15  Jim Meyering  <jim@meyering.net>
48365
48366         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48367         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48368         in support of the EXPECTED_ERRNO macro.
48369         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48370         definitions.  Instead, define the appropriate symbols and include
48371         "at-func.c".
48372         * lib/mkdirat.c (mkdirat): Likewise.
48373         * lib/fchmodat.c (fchmodat): Likewise.
48374         (ENOSYS): Remove definition.
48375         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48376         it.  Don't include "unistd--.h" -- it wasn't ever used.
48377
48378         2006-01-17  Jim Meyering  <jim@meyering.net>
48379
48380         Rewrite fts.c not to change the current working directory,
48381         by using openat, fstatat, fdopendir, etc..
48382
48383         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48384         (HAVE_OPENAT_SUPPORT): Define.
48385         [_LIBC] (fchdir): Don't undef or define; no longer used.
48386         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48387         Now, this `function' always succeeds, and consumes its file descriptor
48388         parameter -- so callers must not close such FDs.  Update callers.
48389         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48390         (diropen): Add parameter, SP.  Adjust all callers.
48391         Implement using diropen_fd, rather than open.
48392         (fts_open): Initialize new member, fts_cwd_fd.
48393         Remove fts_rft-setting code.
48394         (fts_close): Close fts_cwd_fd, if necessary.
48395         (__opendir2): Define in terms of opendir or opendirat,
48396         depending on whether the FST_NOCHDIR flag is set.
48397         (fts_build): Since fts_safe_changedir consumes its FD, and since
48398         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48399         and close the dup'd file descriptor upon failure.
48400         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48401         (fts_safe_changedir): Tweak semantics to reflect that this function
48402         now calls cwd_advance_fd and hence consumes its FD argument.
48403         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48404         [struct FTS] (fts_rft): Remove now-unused member.
48405         [struct FTS] (fts_cycle.state): Improve comment.
48406
48407         * lib/openat.c (openat_needs_fchdir): New function.
48408         * lib/openat.h (openat_needs_fchdir): Declare it.
48409
48410 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48413         Problem and fix reported by Pádraig Brady in
48414         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48415
48416 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48417
48418         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48419
48420 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48421
48422         * lib/memcoll.c (memcoll): Optimize for the common case where the
48423         arguments are bytewise equal.
48424
48425 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * doc/regexprops-generic.texi: Add a copyright notice.
48428
48429 2006-08-15  Bruno Haible  <bruno@clisp.org>
48430
48431         * modules/tmpdir (License): Change to LGPL.
48432
48433 2006-08-15  Bruno Haible  <bruno@clisp.org>
48434
48435         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48436         module.
48437
48438 2006-08-14  Simon Josefsson  <jas@extundo.com>
48439
48440         * config/srclist.txt: Add gnupload.
48441
48442 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         Change copyright notice from LGPL 2 to GPL 2, since that's the
48445         standard form used in the gnulib repository.
48446         * tests/test-lock.c: Likewise.
48447         * tests/test-stdint.c: Likewise.
48448         * tests/test-tls.c: Likewise.
48449
48450         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48451         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48452         Add copyright notice.
48453
48454         * check-module: Add copyright notice.  Output a copyright
48455         notice if "--version" is specified.
48456         * modules/COPYING: New file.
48457         * tests/test-getaddrinfo.c: Add copyright notice.
48458         * tests/test-verify.c: Likewise.
48459
48460 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48461
48462         Change copyright notice from LGPL 2 to GPL 2, since that's the
48463         standard form used in the gnulib repository.
48464         * lib/lock.c: LGPL -> GPL.
48465         * lib/lock.h: Likewise.
48466         * lib/strnlen1.c: Likewise.
48467         * lib/strnlen1.h: Likewise.
48468         * lib/tls.c: Likewise.
48469         * lib/tls.h: Likewise.
48470         * lib/tmpdir.c: Likewise.
48471
48472         * lib/TODO: Remove; this belongs only in coreutils.
48473
48474 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         Add copyright notices to long-enough files that lack them, since
48477         otherwise the files aren't clearly free.  Use the same notice that
48478         getdate.texi already uses.
48479         * doc/alloca-opt.texi: Add copyright notice.
48480         * doc/alloca.texi: Likewise.
48481         * doc/ctime.texi: Likewise.
48482         * doc/functions.texi: Likewise.
48483         * doc/gcd.texi: Likewise.
48484         * doc/gnulib-tool.texi: Likewise.
48485         * doc/inet_ntoa.texi: Likewise.
48486         * doc/visibility.texi: Likewise.
48487
48488         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48489         * doc/quote.texi: Add copyright notice.
48490
48491         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48492         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48493         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48494         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48495         is now obsolete, and give a pointer to the Sun list.
48496         Add copyright notice.
48497
48498 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48499
48500         * config/srclistvars.sh: Add copyright notice.
48501
48502 2006-08-14  Eric Blake  <ebb9@byu.net>
48503
48504         Import the following change from libc:
48505
48506         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48507
48508         Upstream bug 2997.
48509         * lib/misc/error.c: Add space between program name and message if file
48510         name is missing.
48511
48512 2006-08-12  Karl Berry  <karl@gnu.org>
48513
48514         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48515         remove, these originate in gnulib now.
48516
48517 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48518
48519         * doc/Makefile (standards.info standards.html standards.dvi):
48520         Also depend on make-stds.texi.
48521
48522 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48523
48524         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48525         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48526
48527         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48528         in wchar_t.  Problem reported by Eric Blake.
48529
48530         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48531         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48532         Also, help the compiler to keep LEN in a register.
48533
48534 2006-08-11  Eric Blake  <ebb9@byu.net>
48535
48536         * users.txt: Sort.  Add tar.
48537
48538 2006-08-11  Bruno Haible  <bruno@clisp.org>
48539
48540         * users.txt: New file.
48541
48542 2006-08-11  Bruno Haible  <bruno@clisp.org>
48543
48544         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48545         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48546
48547 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48548
48549         * modules/snprintf (Depends-on): Remove minmax.
48550         (Maintainer): Add self and Bruno.
48551
48552 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48553
48554         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48555         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48556         (EOVERFLOW): Define if the system does not.
48557         Do not include "minmax.h"; it wasn't used.
48558         (snprintf): Don't assume size_t promotes to an unsigned type.
48559         Fix bug when generated string was too long for the buffer: the
48560         buffer's contents are supposed to be the initial prefix of the
48561         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48562         exceeds INT_MAX; do the check ourselves.
48563
48564         Import the following changes from libc:
48565
48566         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48567
48568         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48569         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48570         set wc to the byte which couldn't be converted.
48571         (re_string_reconstruct): Don't clear valid_raw_len before calling
48572         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48573         tip_context using re_string_context_at.
48574
48575         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48576
48577         * lib/posix/regex.h: g++ still cannot handled [restrict].
48578
48579         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48580
48581         * lib/posix/regex.h: Remove special handling for VMS.
48582
48583 2006-08-10  Jim Meyering  <jim@meyering.net>
48584
48585         * modules/same-inode: New module.
48586         * modules/dev-ino: New module.
48587         * modules/cycle-check: Depend on these modules, rather than simply
48588         including their .h files.
48589         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48590         required via m4/cycle-check.m4.
48591         * modules/same: Depend on new same-inode module, rather than
48592         including same-inode.h.
48593         * modules/chdir-safer: New file.
48594
48595         * modules/chown (Depends-on): Add stat-macros.
48596
48597 2006-08-10  Jim Meyering  <jim@meyering.net>
48598
48599         * m4/cycle-check.m4: New file.
48600         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48601         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48602
48603 2006-08-10  Eric Blake  <ebb9@byu.net>
48604
48605         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48606         in from original proposal.
48607
48608 2006-08-10  Eric Blake  <ebb9@byu.net>
48609         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48610
48611         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48612         namespace.
48613
48614 2006-08-10  Bruno Haible  <bruno@clisp.org>
48615
48616         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48617         as well.
48618
48619 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48620
48621         Sync from coreutils.
48622
48623         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48624
48625         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48626         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48627
48628 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * modules/restrict: Remove; no longer needed now that we assume
48631         Autoconf 2.59 or later.
48632         * MODULES.html.sh: Remove 'restrict'.
48633         * modules/argp (Depends-on): Remove 'restrict'.
48634         * modules/base64 (Depends-on): Likewise.
48635         * modules/gc (Depends-on): Likewise.
48636         * modules/getaddrinfo (Depends-on): Likewise.
48637         * modules/glob (Depends-on): Likewise.
48638         * modules/inet_ntop (Depends-on): Likewise.
48639         * modules/inet_pton (Depends-on): Likewise.
48640         * modules/memxor (Depends-on): Likewise.
48641         * modules/regex (Depends-on): Likewise.
48642         * modules/strtok_r (Depends-on): Likewise.
48643         * modules/time_r (Depends-on): Likewise.
48644
48645 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48646
48647         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48648         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48649         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48650         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48651         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48652         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48653         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48654         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48655
48656         Merge from coreutils.
48657         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48658         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48659         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48660         * m4/time_r.m4 (gl_TIME_R): Likewise.
48661
48662 2006-08-09  Karl Berry  <karl@gnu.org>
48663
48664         * config/srclist.txt: no more gettext-tools, per Bruno.
48665
48666 2006-08-08  Eric Blake  <ebb9@byu.net>
48667
48668         * modules/verror: New module.
48669         * MODULES.html.sh: Document it.
48670
48671 2006-08-08  Eric Blake  <ebb9@byu.net>
48672
48673         * lib/verror.h, lib/verror.c: New files.
48674
48675 2006-08-08  Eric Blake  <ebb9@byu.net>
48676
48677         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48678         verror_at_line output complies with GNU Coding Standards even when
48679         file is NULL.
48680
48681 2006-08-07  Bruno Haible  <bruno@clisp.org>
48682
48683         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48684         versions of AIX.
48685         Reported by Ralf Wildenhues.
48686
48687 2006-08-07  Bruno Haible  <bruno@clisp.org>
48688
48689         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48690         in an AC_DEFUN. Needed so that the autoconf snippets can use
48691         AC_REQUIRE.
48692
48693 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48694
48695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48696         Initialize pkgdata_DATA.
48697         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48698         overriding it.
48699
48700 2006-08-06  Eric Blake  <ebb9@byu.net>
48701
48702         * lib/error.h: Fold in some upstream changes from glibc.
48703         * lib/error.c: Likewise.
48704
48705 2006-08-04  Bruno Haible  <bruno@clisp.org>
48706
48707         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48708         Make the mostlyclean-local rule depend on mostlyclean-generic.
48709         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48710
48711 2006-07-31  Bruno Haible  <bruno@clisp.org>
48712
48713         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48714         <stdlib.h>, <string.h>.
48715
48716 2006-07-30  Bruno Haible  <bruno@clisp.org>
48717
48718         * modules/readlink (License): Change to LGPL.
48719
48720 2006-07-30  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48723         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48724         set PKGDATADIR to point to it.
48725
48726 2006-07-30  Bruno Haible  <bruno@clisp.org>
48727
48728         * modules/csharpexec (configure.ac): Comment out macro invocation.
48729         * modules/javaexec (configure.ac): Likewise.
48730         * modules/javacomp-script (configure.ac): Likewise.
48731
48732         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48733
48734 2006-07-30  Bruno Haible  <bruno@clisp.org>
48735
48736         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48737         linked-list.
48738
48739 2006-07-30  Bruno Haible  <bruno@clisp.org>
48740
48741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48742
48743 2006-07-30  Bruno Haible  <bruno@clisp.org>
48744
48745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48746         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48747         get removed.
48748
48749 2006-07-29  Bruno Haible  <bruno@clisp.org>
48750
48751         Make it possible for gnulib-tool to work with locally modified or
48752         augmented gnulib repositories.
48753         * gnulib-tool (func_usage): Document --local-dir option.
48754         (local_gnulib_dir): New variable.
48755         Handle --local-dir option.
48756         (func_lookup_file): New function.
48757         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48758         (func_get_description, func_get_filelist, func_get_description,
48759         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48760         func_get_automake_snippet, func_get_include_directive,
48761         func_get_license, func_get_maintainer): Use func_lookup_file.
48762         (func_import, func_create_testdir): Use func_lookup_file.
48763
48764 2006-07-29  Bruno Haible  <bruno@clisp.org>
48765
48766         * modules/setenv (Depends-on): Add unistd.
48767
48768 2006-07-29  Bruno Haible  <bruno@clisp.org>
48769
48770         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48771
48772 2006-07-29  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48775
48776 2006-07-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (import, update): If there is no Makefile.am, look at
48779         aclocal.m4, instead of bailing out.
48780
48781 2006-07-29  Bruno Haible  <bruno@clisp.org>
48782
48783         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48784         Categorize the options by when they are useful.
48785
48786 2006-07-29  Bruno Haible  <bruno@clisp.org>
48787
48788         * gnulib-tool (func_usage): Document option --no-libtool.
48789         Handle option --no-libtool.
48790         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48791         for changed semantics of $libtool variable.
48792         (func_import): Likewise. If libtool is not used, show this through
48793         an option --no-libtool.
48794         (func_create_testdir): Update.
48795
48796 2006-07-29  Bruno Haible  <bruno@clisp.org>
48797
48798         * gnulib-tool (func_import): Extend error message about missing
48799         --doc-base.
48800
48801 2006-07-29  Bruno Haible  <bruno@clisp.org>
48802
48803         * gnulib-tool (func_import): Don't create the $docbase directory if
48804         there is no file to store there.
48805
48806 2006-07-29  Bruno Haible  <bruno@clisp.org>
48807
48808         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48809         relevant, look for configure.ac there, not in the current directory.
48810         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48811
48812 2006-07-29  Bruno Haible  <bruno@clisp.org>
48813
48814         * gnulib-tool (SORT): New variable.
48815         (func_usage): Undocument --assume-autoconf option.
48816         Remove --assume-autoconf option handling.
48817         (autoconf_minversion): Determine from the contents of configure.ac.
48818         (func_import): Remove autoconf_minversion handling.
48819         Suggested by Eric Blake.
48820
48821 2006-07-29  Bruno Haible  <bruno@clisp.org>
48822
48823         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48824
48825 2006-07-29  Bruno Haible  <bruno@clisp.org>
48826
48827         * config/srclist.txt (*setenv.[ch]): Remove rules.
48828
48829 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48830
48831         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48832
48833 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48834
48835         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48836         arpa/inet.h.
48837
48838 2006-07-28  Simon Josefsson  <jas@extundo.com>
48839
48840         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48841         * modules/inet_pton (Depends-on): Likewise.
48842
48843 2006-07-28  Simon Josefsson  <jas@extundo.com>
48844
48845         * m4/netinet_in_h.m4: New file.
48846
48847 2006-07-28  Simon Josefsson  <jas@extundo.com>
48848
48849         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48850         #include's.
48851
48852 2006-07-28  Simon Josefsson  <jas@extundo.com>
48853
48854         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48855         #include's.
48856
48857 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48860         setgid on directories only if they set these bits.
48861         * lib/modechange.h: Remove obsolete comment about masks.
48862
48863 2006-07-28  Eric Blake  <ebb9@byu.net>
48864
48865         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48866         macro expansion.
48867
48868 2006-07-28  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48871
48872 2006-07-28  Bruno Haible  <bruno@clisp.org>
48873
48874         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48875
48876 2006-07-28  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48879         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48880         Define fallbacks.
48881         Avoids link error on FreeBSD 4.x.
48882         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48883
48884         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48885         encoding.
48886         * lib/mbswidth.c (iswcntrl): Likewise.
48887
48888 2006-07-27  Bruno Haible  <bruno@clisp.org>
48889
48890         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48891         test.
48892
48893 2006-07-27  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48896         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48897         defined.
48898
48899 2006-07-26  Eric Blake  <ebb9@byu.net>
48900
48901         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48902
48903 2006-07-26  Eric Blake  <ebb9@byu.net>
48904
48905         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48906         like mingw that lack mkstemp.
48907         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48908         avoid compilation warning on mingw.
48909
48910 2006-07-26  Bruno Haible  <bruno@clisp.org>
48911
48912         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48913         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48914         INT_FAST*_MIN, INTPTR_MIN.
48915
48916 2006-07-25  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/version-etc (Depends-on): Add stdarg.
48919
48920 2006-07-25  Bruno Haible  <bruno@clisp.org>
48921
48922         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48923         complex commands.
48924
48925 2006-07-25  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48928         defined in <stdarg.h> or config.h.
48929
48930 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48931
48932         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48933         (gl_STDIO_SAFER): Remove.
48934
48935 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48936
48937         * MODULES.html.sh (File stream based Input/Output):
48938         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48939         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48940         * modules/fopen-safer, modules/tmpfile-safer: New files.
48941         * modules/stdio-safer: Remove.
48942
48943 2006-07-24  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/tmpdir: New file.
48946         * MODULES.html.sh (File system functions): Add it.
48947
48948 2006-07-24  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48951         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48952
48953 2006-07-24  Bruno Haible  <bruno@clisp.org>
48954
48955         * modules/clean-temp: New file.
48956
48957 2006-07-24  Bruno Haible  <bruno@clisp.org>
48958
48959         * m4/tmpdir.m4: New file, from GNU gettext.
48960
48961 2006-07-24  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/tmpdir.h: New file, from GNU gettext.
48964         * lib/tmpdir.c: New file, from GNU gettext.
48965
48966 2006-07-24  Bruno Haible  <bruno@clisp.org>
48967
48968         * lib/clean-temp.h: New file, from GNU gettext.
48969         * lib/clean-temp.c: New file, from GNU gettext.
48970
48971 2006-07-23  Eric Blake  <ebb9@byu.net>
48972
48973         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48974         (Depends-on): Add binary-io.
48975
48976 2006-07-23  Eric Blake  <ebb9@byu.net>
48977
48978         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48979
48980 2006-07-23  Eric Blake  <ebb9@byu.net>
48981
48982         * lib/tmpfile-safer.c: New file.
48983         * lib/stdio-safer.h (fopen_safer): Add prototype.
48984         * lib/stdio--.h (tmpfile): Make safer.
48985
48986 2006-07-23  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48989         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48990         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48991         gl_linked_remove_at): Use it.
48992
48993 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48994         and Simon Josefsson <jas@extundo.com>
48995
48996         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48997
48998         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48999
49000 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49001
49002         * modules/close-stream: New file.
49003         * modules/closeout (Description): Make it clear that it exits
49004         with a diagnostic on error.
49005         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49006         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49007
49008 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49009
49010         * m4/close-stream.m4: New file.
49011
49012 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49013
49014         * lib/close-stream.c, lib/close-stream.h: New files.
49015
49016 2006-07-22  Bruno Haible  <bruno@clisp.org>
49017
49018         Merge from GNU gettext 0.15.
49019
49020         2006-05-01  Bruno Haible  <bruno@clisp.org>
49021
49022                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49023
49024         2006-07-22  Bruno Haible  <bruno@clisp.org>
49025
49026                 * modules/javaversion: New file.
49027                 * MODULES.html.sh (Java): Add javaversion.
49028
49029         2006-03-12  Bruno Haible  <bruno@clisp.org>
49030
49031                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49032
49033         2005-12-04  Bruno Haible  <bruno@clisp.org>
49034
49035                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49036                 (untested).
49037
49038         2006-06-21  Bruno Haible  <bruno@clisp.org>
49039
49040                 Avoid warnings from recent versions of mcs.
49041                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49042                 -o, -L, -r any more. Use options documented since mcs-1.0
49043                 instead. Similarly for -g.
49044
49045         2005-12-04  Bruno Haible  <bruno@clisp.org>
49046
49047                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49048                 .resources, not .resource.
49049
49050         2005-07-09  Bruno Haible  <bruno@clisp.org>
49051
49052                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49053                 add a .dll suffix.
49054                 Reported by Mark Junker <mjscod@gmx.de>.
49055
49056         2006-07-22  Bruno Haible  <bruno@clisp.org>
49057
49058                 * modules/gettext: Upgrade to gettext-0.15.
49059                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49060                 m4/visibility.m4.
49061                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49062
49063 2006-07-22  Bruno Haible  <bruno@clisp.org>
49064
49065         Merge from GNU gettext 0.15.
49066
49067         2006-03-25  Bruno Haible  <bruno@clisp.org>
49068
49069                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49070
49071         2006-07-21  Bruno Haible  <bruno@clisp.org>
49072
49073                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49074                 "1.1".
49075
49076         2006-05-09  Bruno Haible  <bruno@clisp.org>
49077
49078                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49079                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49080                 for the conftestver execution.
49081
49082         2006-05-01  Bruno Haible  <bruno@clisp.org>
49083
49084                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49085                 optional target-version argument. Verify that the compiler
49086                 groks source of the specified source-version, or add -source
49087                 option as necessary. Verify that the compiler produces
49088                 bytecode in the specified target-version, or add -target and
49089                 -source options as necessary. Make the result of the test
49090                 available as variable CONF_JAVAC. Also log error output in
49091                 config.log.
49092
49093         2006-03-11  Bruno Haible  <bruno@clisp.org>
49094
49095                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49096
49097         2006-05-09  Bruno Haible  <bruno@clisp.org>
49098
49099                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49100                 CLASSPATH_SEPARATOR to a semicolon.
49101
49102         2006-03-12  Bruno Haible  <bruno@clisp.org>
49103
49104                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49105                 available as variable CONF_JAVA, for subsequent autoconf
49106                 tests. Also log error output in config.log.
49107
49108         2006-07-19  Bruno Haible  <bruno@clisp.org>
49109
49110                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49111                 that getline works on glibc2 systems. Needed to avoid trouble
49112                 in relocatable.c.
49113                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49114
49115         2005-12-04  Bruno Haible  <bruno@clisp.org>
49116
49117                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49118                 launcher (untested).
49119
49120         2005-12-04  Bruno Haible  <bruno@clisp.org>
49121
49122                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49123
49124         2006-07-22  Bruno Haible  <bruno@clisp.org>
49125
49126                 * gettext.m4: Update from GNU gettext-0.15.
49127                 * nls.m4: Likewise.
49128                 * po.m4: Likewise.
49129                 * inttypes-pri.m4: Likewise.
49130                 * inttypes-h.m4: Renamed from inttypes.m4.
49131                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49132
49133 2006-07-22  Bruno Haible  <bruno@clisp.org>
49134
49135         Merge from GNU gettext 0.15.
49136
49137         2005-07-05  Bruno Haible  <bruno@clisp.org>
49138
49139                 * printf-args.c (printf_fetchargs): Work around broken
49140                 definition of wint_t on mingw.
49141
49142         2005-02-12  Bruno Haible  <bruno@clisp.org>
49143
49144                 * xallocsa.h: Add extern "C" for C++.
49145
49146         2006-05-17  Bruno Haible  <bruno@clisp.org>
49147
49148                 Cygwin portability.
49149                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49150
49151         2006-04-30  Bruno Haible  <bruno@clisp.org>
49152
49153                 * progreloc.c: Include <mach-o/dyld.h> if available.
49154                 (find_executable): Use _NSGetExecutablePath when possible.
49155
49156         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49157
49158                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49159                 function.
49160
49161         2005-12-29  Bruno Haible  <bruno@clisp.org>
49162
49163                 * progreloc.c (set_program_name_and_installdir): Fix
49164                 compilation error.
49165
49166         2005-12-04  Bruno Haible  <bruno@clisp.org>
49167
49168                 Cygwin portability.
49169                 * progreloc.c: Include <windows.h> also on Cygwin.
49170                 (find_executable): Add support for Cygwin.
49171                 (set_program_name_and_installdir): Handle also platforms with
49172                 nonempty EXEEXT.
49173
49174         2006-07-11  Bruno Haible  <bruno@clisp.org>
49175
49176                 * javacomp.c: Fix a comment.
49177                 Reported by Jim Meyering.
49178
49179         2006-04-30  Bruno Haible  <bruno@clisp.org>
49180
49181                 * javacomp.h (compile_java_class): Add source_version,
49182                 target_version arguments.
49183                 * javacomp.c: Rewritten to choose only a compiler that
49184                 respects the specified source_version and target_version.
49185
49186         2006-06-27  Bruno Haible  <bruno@clisp.org>
49187
49188                 Assume correct S_ISDIR macro.
49189                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49190
49191         2006-07-22  Bruno Haible  <bruno@clisp.org>
49192
49193                 * javaversion.h: New file, from GNU gettext.
49194                 * javaversion.c: New file, from GNU gettext.
49195                 * javaversion.java: New file, from GNU gettext.
49196                 * javaversion.class: New file, from GNU gettext.
49197
49198         2006-05-17  Bruno Haible  <bruno@clisp.org>
49199
49200                 Cygwin portability.
49201                 * javaexec.c (execute_java_class): Test for jview program
49202                 also on Cygwin.
49203
49204         2006-04-09  Bruno Haible  <bruno@clisp.org>
49205
49206                 * fatal-signal.c: Don't include string.h.
49207                 (at_fatal_signal): Use a copying loop instead of memcpy.
49208
49209         2005-12-04  Bruno Haible  <bruno@clisp.org>
49210
49211                 * csharpexec.c: Add support for 'clix' launcher (untested).
49212                 (execute_csharp_using_sscli): New function.
49213                 (execute_csharp_program): Call it.
49214
49215         2006-06-21  Bruno Haible  <bruno@clisp.org>
49216
49217                 Avoid warnings from recent versions of mcs.
49218                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49219                 -o, -L, -r any more. Use options documented since mcs-1.0
49220                 instead. Similarly for -g.
49221
49222         2005-07-09  Bruno Haible  <bruno@clisp.org>
49223
49224                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49225                 add a .dll suffix.
49226                 Reported by Mark Junker <mjscod@gmx.de>.
49227
49228         2006-06-17  Bruno Haible  <bruno@clisp.org>
49229
49230                 * config.charset: Update for NetBSD 3.0.
49231
49232         2006-05-17  Bruno Haible  <bruno@clisp.org>
49233
49234                 Cygwin portability.
49235                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49236
49237         2006-05-16  Bruno Haible  <bruno@clisp.org>
49238
49239                 * localcharset.c [CYGWIN]: Include <windows.h>.
49240                 (get_charset_aliases): For Cygwin, return the same CPxxx
49241                 aliases list as under WIN32.
49242                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49243                 the environment variables. Fall back to GetACP().
49244
49245         2006-04-05  Bruno Haible  <bruno@clisp.org>
49246
49247                 * config.charset: Update Juan Manuel Guerrero's address.
49248
49249         2005-02-12  Bruno Haible  <bruno@clisp.org>
49250
49251                 * allocsa.h: Add extern "C" for C++.
49252
49253         2005-02-10  Bruno Haible  <bruno@clisp.org>
49254
49255                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49256                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49257
49258         2006-07-22  Bruno Haible  <bruno@clisp.org>
49259
49260                 * gettext.h: Update to GNU gettext-0.15.
49261
49262 2006-07-22  Bruno Haible  <bruno@clisp.org>
49263
49264         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49265         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49266         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49267
49268 2006-07-21  Eric Blake  <ebb9@byu.net>
49269
49270         * modules/stdlib-safer: New file.
49271         * MODULES.html.sh (File stream based Input/Output): Add
49272         stdlib-safer.
49273
49274 2006-07-21  Eric Blake  <ebb9@byu.net>
49275
49276         * lib/stdlib-safer.h: New file from coreutils, required by
49277         stdlib--.h.
49278
49279 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49280
49281         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49282
49283 2006-07-20  Bruno Haible  <bruno@clisp.org>
49284
49285         * gnulib-tool: Recognize new option --assume-autoconf.
49286         (autoconf_minversion): New variable.
49287         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49288
49289 2006-07-20  Bruno Haible  <bruno@clisp.org>
49290
49291         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49292
49293 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49294
49295         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49296         Reindent and repaginate.
49297
49298 2006-07-19  Derek Price  <derek@ximbiot.com>
49299
49300         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49301         Correct grammar.
49302
49303 2006-07-17  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/list: New file.
49306         * modules/array-list: New file.
49307         * modules/carray-list, modules/carray-list-tests: New files.
49308         * modules/linked-list, modules/linked-list-tests: New files.
49309         * modules/avltree-list, modules/avltree-list-tests: New files.
49310         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49311         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49312         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49313         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49314         * modules/oset: New file.
49315         * modules/array-oset: New file.
49316         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49317         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49318         * tests/test-carray_list.c: New file.
49319         * tests/test-linked_list.c: New file.
49320         * tests/test-avltree_list.c: New file.
49321         * tests/test-rbtree_list.c: New file.
49322         * tests/test-linkedhash_list.c: New file.
49323         * tests/test-avltreehash_list.c: New file.
49324         * tests/test-rbtreehash_list.c: New file.
49325         * tests/test-avltree_oset.c: New file.
49326         * tests/test-rbtree_oset.c: New file.
49327         * MODULES.html.sh (Container data structures): New section.
49328
49329 2006-07-17  Bruno Haible  <bruno@clisp.org>
49330
49331         * m4/gl_list.m4: New file.
49332
49333 2006-07-17  Bruno Haible  <bruno@clisp.org>
49334
49335         * lib/gl_list.h: New file.
49336         * lib/gl_list.c: New file.
49337         * lib/gl_array_list.h: New file.
49338         * lib/gl_array_list.c: New file.
49339         * lib/gl_carray_list.h: New file.
49340         * lib/gl_carray_list.c: New file.
49341         * lib/gl_linked_list.h: New file.
49342         * lib/gl_linked_list.c: New file.
49343         * lib/gl_anylinked_list1.h: New file.
49344         * lib/gl_anylinked_list2.h: New file.
49345         * lib/gl_avltree_list.h: New file.
49346         * lib/gl_avltree_list.c: New file.
49347         * lib/gl_anyavltree_list1.h: New file.
49348         * lib/gl_anyavltree_list2.h: New file.
49349         * lib/gl_rbtree_list.h: New file.
49350         * lib/gl_rbtree_list.c: New file.
49351         * lib/gl_anyrbtree_list1.h: New file.
49352         * lib/gl_anyrbtree_list2.h: New file.
49353         * lib/gl_anytree_list1.h: New file.
49354         * lib/gl_anytree_list2.h: New file.
49355         * lib/gl_linkedhash_list.h: New file.
49356         * lib/gl_linkedhash_list.c: New file.
49357         * lib/gl_anyhash_list1.h: New file.
49358         * lib/gl_anyhash_list2.h: New file.
49359         * lib/gl_avltreehash_list.h: New file.
49360         * lib/gl_avltreehash_list.c: New file.
49361         * lib/gl_rbtreehash_list.h: New file.
49362         * lib/gl_rbtreehash_list.c: New file.
49363         * lib/gl_anytreehash_list1.h: New file.
49364         * lib/gl_anytreehash_list2.h: New file.
49365
49366         * lib/gl_oset.h: New file.
49367         * lib/gl_oset.c: New file.
49368         * lib/gl_array_oset.h: New file.
49369         * lib/gl_array_oset.c: New file.
49370         * lib/gl_avltree_oset.h: New file.
49371         * lib/gl_avltree_oset.c: New file.
49372         * lib/gl_rbtree_oset.h: New file.
49373         * lib/gl_rbtree_oset.c: New file.
49374         * lib/gl_anytree_oset.h: New file.
49375
49376 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49377
49378         * m4/mkancesdirs.m4: New file.
49379         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49380         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49381         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49382         it.
49383
49384 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49385
49386         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49387         * lib/mkancesdirs.h: New files.
49388         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49389         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49390         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49391         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49392         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49393         callers changed.  Revamp internals significantly, by not
49394         attempting to create directories that are temporarily more
49395         permissive than the final results.  Do not attempt to use
49396         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49397         This removes some race conditions, fixes some bugs, and simplifies
49398         things.  Use new dirchownmod function to do owner and mode changes.
49399         * lib/mkdir-p.h: Likewise.
49400         * lib/modechange.c (octal_to_mode): New function.
49401         (struct mode_change): New member mentioned.
49402         (make_node_op_equals): New arg mentioned.  All callers changed.
49403         (mode_compile): Keep track of which mode bits the user has explicitly
49404         mentioned.
49405         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49406         New arg PMODE_BITS, to keep track of which mode bits the user
49407         mentioned; it treats S_ISUID and S_ISGID speciall.
49408         All callers changed.
49409         * lib/modechange.h: Likewise.
49410
49411 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49412
49413         * MODULES.html.sh: Add mkancestors.
49414         * modules/mkancesdirs: New module.
49415         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49416         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49417         The chdir-safer and afs files are now orphans; I'll remove them
49418         unless someone speaks up.
49419         Add lib/dirchownmod.c, lib/dirchownmod.h.
49420         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49421         Add lchown, mkancesdirs.
49422         (Maintainer): Add self.
49423
49424 2006-07-15  Karl Berry  <karl@gnu.org>
49425
49426         * gnulib-tool: help message wording/arrangement.
49427
49428 2006-07-14  Simon Josefsson  <jas@extundo.com>
49429
49430         * doc/gnulib.texi (Libtool and Windows): New section.
49431
49432 2006-07-12  Simon Josefsson  <jas@extundo.com>
49433
49434         * modules/gendocs (License): Fix license, approved by Karl.
49435
49436 2006-07-12  Eric Blake  <ebb9@byu.net>
49437
49438         * MODULES.html.sh: Add gendocs.
49439
49440 2006-07-11  Eric Blake  <ebb9@byu.net>
49441
49442         * modules/fdl: New module, to install doc/fdl.texi.
49443         * MODULES.html.sh: Add new section for documentation modules.
49444         * gnulib-tool: Avoid space-tab.
49445         (--doc-base): New option, to manage files from doc.
49446
49447 2006-07-11  Eric Blake  <ebb9@byu.net>
49448
49449         * m4/absolute-header.m4: Fix comments to match recent change.
49450
49451 2006-07-11  Eric Blake  <ebb9@byu.net>
49452
49453         * gnulib-tool: List --doc-base before --tests-base.
49454
49455 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49456
49457         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49458
49459 2006-07-11  Bruno Haible  <bruno@clisp.org>
49460
49461         * README: Mention where to put documentation.
49462
49463 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49464
49465         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49466
49467 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49468
49469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49470         to stdint.m4.
49471
49472 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49475         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49476         "no/such/file/stdint.h" when there is no such file, so that
49477         the resulting C code can be parsed by dodgy compilers.
49478         Problems reported by Bob Proulx.
49479
49480 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49481
49482         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49483         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49484         macros into the GNU _D_EXACT_NAMLEN.
49485         * lib/savedir.c:  Likewise.
49486         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49487
49488 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49489         and Paul Eggert  <eggert@cs.ucla.edu>
49490
49491         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49492         * m4/savedir.m4:
49493         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49494         macros into the GNU _D_EXACT_NAMLEN.
49495
49496 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49497
49498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49499         around the absolute name, to work around a problem with the HP-UX
49500         11.23 native C compiler, reported by Bob Proulx.
49501
49502 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49503
49504         * doc/maintain.texi, make-stds.texi: Sync from
49505         <http://savannah.gnu.org/projects/gnustandards>.
49506
49507 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49510
49511 2006-07-09  Jim Meyering  <jim@meyering.net>
49512
49513         * m4/glob.m4: Remove a doubled word in a comment.
49514
49515 2006-07-09  Jim Meyering  <jim@meyering.net>
49516
49517         * lib/argp-pv.c: Remove a doubled word in a comment.
49518         * lib/check-version.c (check_version): Likewise.
49519         * lib/javacomp.c (compile_java_class): Likewise.
49520
49521 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49522
49523         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49524         for the benefit of people using Autoconf 2.60.  If you want to
49525         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49526         (or m4/onceonly.m4, if pre-2.57) manually.
49527
49528 2006-07-08  Jim Meyering  <jim@meyering.net>
49529
49530         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49531         comment.
49532         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49533         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49534         comment.
49535
49536 2006-07-08  Jim Meyering  <jim@meyering.net>
49537
49538         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49539
49540 2006-07-07  Simon Josefsson  <jas@extundo.com>
49541
49542         * tests/test-crc.c: Change expected crc value, the test vector
49543         were probably computed using the old broken crc.c?
49544
49545 2006-07-06  Simon Josefsson  <jas@extundo.com>
49546
49547         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49548         now the canonical place for the M4 file).
49549
49550         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49551         from the sys_socket dependency now.
49552
49553         * modules/inet_pton (Files): Ditto.
49554
49555         * modules/inet_ntop (Files): Ditto.
49556
49557 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49558
49559         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49560         not gl_PREREQ_GETUSERSHELL.
49561
49562 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49563
49564         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49565         with only one argument, for Autoconf 2.60.
49566         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49567         expand to nothing, so add a shell command to avoid syntax error.
49568         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49569
49570 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49571
49572         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49573
49574 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49577         no longer needed.  Check for isblank decl.
49578         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49579         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49580         of existence.
49581
49582 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * lib/getloadavg.c: Use __VMS, not VMS.
49585         * lib/getopt.c: Likewise.
49586         * lib/getpagesize.h: Likewise.
49587         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49588         and probably does not work.
49589
49590 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49591
49592         * lib/.cppi-disable: Add wcwidth.
49593         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49594         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49595         (ISGRAPH): Remove.  All uses changed to isgraph.
49596         (FOLD) [!defined _LIBC]: Remove special case.
49597         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49598         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49599         HAVE_ISBLANK.
49600         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49601         case.
49602
49603 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49604
49605         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49606         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49607         brackets.  Other minor changes to suppress some compiler
49608         warnings.
49609
49610 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49611         and Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49614         of invoking obsolescent AC_HEADER_DIRENT macro.
49615         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49616         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49617         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49619         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49620         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49621         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49622         * m4/readdir.m4: Remove; no longer needed.
49623
49624 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49625         and Paul Eggert  <eggert@cs.ucla.edu>
49626
49627         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49628         Don't worry about this obsolete case any more.
49629         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49630         directories.
49631         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49632         worry about this obsolete case any more.
49633         * lib/fts.c: Likewise.
49634         * lib/getcwd.c: Likewise.
49635         * lib/glob.h: Likewise.
49636         * lib/savedir.c: Likewise.
49637
49638 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49641         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49642         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49643         needed.
49644         All uses removed.
49645         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49646         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49647         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49648         needed.
49649         * m4/getdate.m4 (gl_GETDATE): Likewise.
49650         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49651         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49652         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49653         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49654         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49655         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49656         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49657         needed.
49658
49659 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         * lib/memcasecmp.c: Include <limits.h>.
49662         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49663         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49664         Don't assume isdigit succeeds only on '0' through '9'.
49665
49666 2006-07-05  Eric Blake  <ebb9@byu.net>
49667
49668         * modules/getaddrinfo (Depends-on): Add snprintf.
49669
49670 2006-07-05  Eric Blake  <ebb9@byu.net>
49671
49672         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49673         to avoid 'header present but could not be compiled' on cygwin.
49674
49675 2006-07-05  Eric Blake  <ebb9@byu.net>
49676
49677         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49678         missing from netdb.h.
49679         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49680
49681 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49682
49683         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49684         no longer needed.
49685         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49686         * m4/getdate.m4 (gl_GETDATE): Likewise.
49687         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49688         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49689         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49690         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49692
49693 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49694
49695         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49696         All uses of is_space replaced by isspace.
49697         * lib/exit.h: Don't talk about STDC_HEADERS.
49698         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49699         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49700         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49701         replaced by isprint etc.
49702         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49703         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49704         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49705         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49706         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49707         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49708
49709 2006-07-05  Bruno Haible  <bruno@clisp.org>
49710
49711         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49712         the function exists, before testing against AIX.
49713         Reported by Martin Lambers <marlam@marlam.de>.
49714
49715 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49718         From Mark D. Baushke.
49719
49720 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49721
49722         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49723         to the absolute name, not just one, to bypass Sun C 5.8's
49724         "warning: #include of /usr/include/... may be non-portable".
49725
49726 2006-07-04  Eric Blake  <ebb9@byu.net>
49727
49728         * modules/dirname-tests: New test module.
49729         * tests/test-dirname.c: New file, replacing dirname.c
49730         TEST_DIRNAME section that was recently deleted.
49731
49732 2006-07-04  Bruno Haible  <bruno@clisp.org>
49733
49734         Assume ANSI C header files and <ctype.h> functions.
49735         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49736         (mbsnwidth): Use isprint, iscntrl instead.
49737
49738 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49739
49740         Merge from coreutils.
49741         * MODULES.html.sh: Add xstrtold.
49742         * modules/xstrtold: New file.
49743         * modules/cycle-check (Files): Add lib/same-inode.h.
49744         * modules/dirname (Files): Add m4/double-slash-root.m4.
49745         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49746         * modules/mkdir-p (Files): Add lib/same-inode.h.
49747         * modules/same (Files): Add lib/same-inode.h.
49748
49749 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49752         This is to keep the terminology clean; POSIX talks about
49753         "absolute pathnames", not "full pathnames", but the GNU
49754         Coding Standards say to use "path" for something else;
49755         so use "absolute" to keep both sides happy.
49756         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49757         Set gl_absolute_header, not gl_full_header_path.
49758         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49759         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49760         All uses changed.
49761
49762         Merge from coreutils.
49763
49764         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49765
49766         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49767         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49768         want to require the building of c-strtod.o.
49769         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49770         needs -lm directly.
49771         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49772
49773         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49774
49775         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49776         --as-needed option if available.  Problem reported by Albert Chin in
49777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49778         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49779         cc merely issues a bunch of annoying warnings for --as-needed
49780         (this problem was reported by Bob Proulx).  Also, try linking with
49781         -lm to detect a bug in binutils 2.16 (this problem was reported
49782         by Ralf Wildenhues).
49783
49784         2006-06-18  Jim Meyering  <jim@meyering.net>
49785
49786         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49787         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49788         macro.
49789         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49790         also check for glibc-2.4's abort-inducing bug.
49791
49792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49793         Low-probability clean-up should be to use rmdir to get rid of
49794         the just-created directory, not unlink.
49795
49796         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49797         configure fail, and request a bug report to inform us about it.
49798         Add a comment that, barring reports to the contrary, in 2007 we'll
49799         assume ftruncate is universally available.
49800
49801         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49802
49803         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49804
49805         2006-03-12  Jim Meyering  <jim@meyering.net>
49806
49807         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49808         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49809         * m4/same.m4 (gl_SAME): Likewise.
49810         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49811
49812         2006-03-11  Eric Blake  <ebb9@byu.net>
49813
49814         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49815         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49816         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49817         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49818
49819 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49820
49821         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49822         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49823         reported by Mark D. Baushke, one in
49824         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49825
49826         Merge from coreutils.
49827
49828         * lib/.cppi-disable: Add stdint_.h.
49829         * lib/.cvsignore: Add stdint.h.
49830
49831         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49832
49833         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49834         both double and long double versions.
49835         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49836         * lib/xstrtold.c: New file.
49837         * lib/xstrtod.h (xstrtold): New decl.
49838
49839         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         * lib/filemode.c (setst): Remove.
49842         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49843         (arguably) clearer, and the generated code is a bit smaller on my
49844         Debian GNU/Linux stable x86 host.
49845
49846         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49847
49848         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49849         Assume that filemode.h includes sys/types.h and sys/stat.h.
49850         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49851         (ftypelet): Reorder to put common cases first, for efficiency.
49852         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49853         to do 'M'.
49854         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49855         of 10, for compatibility with FreeBSD.  All callers changed.
49856         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49857         types that can't be deduced solely from st_mode.  First arg is now a
49858         const pointer.
49859         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49860         (strmode): Renamed from mode_string.
49861         (filemodestring): New decl.
49862         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49863         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49864         needed.
49865         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49866
49867         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49868
49869         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49870         fsusage.h now does that.  Include fsusage.h first, to test interface.
49871         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49872         at most one method (the old code could have generated decls that
49873         didn't conform to C89, not that this was ever exercised).
49874         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49875
49876         2006-03-19  Jim Meyering  <jim@meyering.net>
49877
49878         Work even in a chroot where d_ino values for entries in "/"
49879         don't match the stat.st_ino values for the same names.
49880         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49881         number, iterate through all entries again, using lstat instead.
49882         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49883         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49884
49885         * lib/getcwd.c (__getcwd): Clarify a comment.
49886         Use memcpy in place of a call to strcpy.
49887
49888         2006-03-12  Jim Meyering  <jim@meyering.net>
49889
49890         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49891         matches that of the current directory (which we're about to chdir ".."
49892         out of), then save the dev-ino of the parent, instead.
49893
49894         * lib/same-inode.h (SAME_INODE): New file/macro.
49895         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49896         Include "same-inode.h", instead.
49897         * lib/same.c: Likewise.
49898         * lib/cycle-check.h: Include "same-inode.h".
49899         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49900         * lib/cycle-check.c (SAME_INODE): Remove definition.
49901         * lib/root-dev-ino.h: Include "same-inode.h".
49902
49903         2006-03-11  Eric Blake  <ebb9@byu.net>
49904
49905         * lib/same.c (same_name): s/base_name/last_component/
49906         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49907         * lib/filenamecat.c (file_name_concat): Likewise.
49908
49909         2006-03-11  Eric Blake  <ebb9@byu.net>,
49910                     Paul Eggert  <eggert@cs.ucla.edu>
49911
49912         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49913         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49914         drive prefix.
49915         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49916         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49917         (last_component): New method.
49918         * lib/dirname.c (dir_len): Determine when drive letters need a
49919         subsequent slash.  Preserve // when it is special.
49920         (dir_name): Don't append dot when drive letter is absolute.
49921         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49922         * lib/basename.c (base_name): New semantics - malloc the result.
49923         Preserve // when it is special.  Preserve relative files that look
49924         like drive letters.
49925         (base_len): Preserve // when it is special.
49926         (last_component): New method, similar to old base_name semantics.
49927         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49928         base_name.  Strip redundant slashes from ///.
49929
49930 2006-07-03  Jim Meyering  <jim@meyering.net>
49931
49932         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49933         macro is used before the first cycle_check call.
49934
49935 2006-07-03  Eric Blake  <ebb9@byu.net>
49936
49937         * modules/dirname (Depends-on): Add xstrndup.
49938
49939 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49942         test cases, so that config.log is a bit easier to follow.
49943
49944 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49947         both are 64 bits, since this seems to be the tradition, and this
49948         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49949         we ever run into a host that prefers long long to long in this
49950         case, we'll need another configure-time test.  Problem reported by
49951         Jim Meyering.
49952
49953 2006-07-02  Eric Blake  <ebb9@byu.net>
49954
49955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49956
49957 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * modules/inttypes (Depends-on): No longer depends on stdint.
49960         * modules/stdint (Description): Say more about assumptions.
49961         Say that the fast types might differ.  Say macros are used.
49962         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49963         (Makefile.am): Revise list of substituted symbols to match
49964         new stdint.m4.
49965         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49966         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49967         * tests/test-stdint.c (verify_same_types)
49968         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49969         the code conforms to C99/C89.
49970         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49971         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49972
49973 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49974
49975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49976         but fix a bug, by requiring at least 64 bits.
49977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49978         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49979         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49980         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49981
49982         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49983         changes.  Make 2.59 a prerequisite.  Check and substitute for
49984         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49985         inttypes.h.  Do not use special include files; just use the
49986         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49987         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49988         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49989         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49990         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49991         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49992         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49993         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49994         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49995         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49996         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49997         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49998         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49999         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50000         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50001         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50002         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50003         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50004         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50005         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50006         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50007         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50008         not check for things that C99 does not require, e.g., int8_t.  If
50009         a test isn't needed unless <stdint.h> isn't working, and is
50010         unlikely to be needed for any other reason, then don't do it
50011         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50012         size_t, since we assume C89 freestanding at least.  Do not check
50013         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50014         the right thing even if the types are not defined.  Instead use:
50015         (gl_STDINT_TYPE_PROPERTIES): New macro.
50016         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50017         testing whether <sys/types.h> clashes, as Autoconf does this for
50018         us now.  All uses removed.
50019         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50020         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50021         (gl_CHECK_TYPE_SAME):
50022         Remove; no longer needed.
50023         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50024         exists, since we'll return 0 anyway in that case.
50025         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50026
50027 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50028
50029         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50030         possible collision with system files.
50031         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50032         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50033         WCHAR_MIN and WCHAR_MAX in this case.
50034         (<stddef.h>): Do not include; no longer needed.
50035         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50036         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50037         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50038         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50039         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50040         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50041         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50042         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50043         !defined(__c99))]: Include in this case too, since it's harmless
50044         now.
50045         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50046         dangerous to do so.
50047         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50048         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50049         (_STDINT_MIN, _STDINT_MAX): New macros.
50050         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50051         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50052         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50053         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50054         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50055         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50056         macros, not typedefs; this simplifies things quite a bit.
50057         Use long int for all types narrower than int64_t.
50058         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50059         Define in terms of long long int or int64_t or long int,
50060         not int64_t or int32_t.  This saves some compile-time testing.
50061         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50062         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50063         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50064         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50065         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50066         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50067         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50068         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50069         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50070         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50071         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50072         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50073         undef any previous version and define our own version, for
50074         simplicity and consistency with the new macros for types.
50075         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50076         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50077         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50078         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50079         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50080         @WINT_T_SUFFIX@ to keep things simple here.
50081         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50082         Simplify by assuming typical 8/16/32/64 host, since we're
50083         already doing that elsewhere anyway.
50084         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50085         and assume long long int is 64 bits if available.  This
50086         speeds up 'configure'.
50087
50088 2006-07-01  Eric Blake  <ebb9@byu.net>
50089
50090         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50091         Reported by Andreas Buening.
50092
50093 2006-07-01  Eric Blake  <ebb9@byu.net>
50094
50095         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50096
50097 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50098
50099         * lib/getaddrinfo.c: fixed typo
50100
50101 2006-06-29  Jim Meyering  <jim@meyering.net>
50102
50103         * modules/strftime (Maintainer): Add my name, since with the
50104         FPRINTFTIME changes strftime.c has forked from glibc.
50105
50106 2006-06-29  Eric Blake  <ebb9@byu.net>
50107
50108         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50109
50110 2006-06-29  Eric Blake  <ebb9@byu.net>
50111
50112         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50113
50114 2006-06-29  Eric Blake  <ebb9@byu.net>
50115
50116         * lib/stat_.h: New file.
50117
50118 2006-06-29  Eric Blake  <ebb9@byu.net>
50119
50120         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50121         unused static function.
50122
50123 2006-06-29  Eric Blake  <ebb9@byu.net>
50124
50125         * doc/functions.texi (Function Portability): Document missing lstat
50126         on mingw.
50127
50128 2006-06-29  Eric Blake  <ebb9@byu.net>
50129
50130         * MODULES.html.sh: Add sys_stat.
50131         * modules/sys_stat: New module.
50132         * modules/mkstemp (Depends-on): Add sys_stat.
50133
50134 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50135
50136         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50137
50138 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50139
50140         * m4/c-bs-a.m4: Removed.
50141
50142 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50143
50144         * lib/strftime.c: Assume strftime() exists.
50145
50146 2006-06-29  Derek Price  <derek@ximbiot.com>
50147
50148         * modules/c-bs-a: Removed - \a is C89.
50149         * MODULES.html.sh: Remove c-bs-a.
50150
50151 2006-06-29  Bruno Haible  <bruno@clisp.org>
50152
50153         * modules/wcwidth (License): Change to LGPL.
50154
50155 2006-06-28  Simon Josefsson  <jas@extundo.com>
50156
50157         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50158         on _WIN32.
50159
50160         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50161         getnameinfo.
50162
50163 2006-06-28  Simon Josefsson  <jas@extundo.com>
50164
50165         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50166
50167 2006-06-28  Simon Josefsson  <jas@extundo.com>
50168
50169         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50170         functions there.  It will succeed on Windows XP, but on Windows
50171         2000 and (presumably) earlier, it will fail, and use the internal
50172         re-implementation.
50173         (use_win32_p): New function.
50174         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50175         Support AI_NUMERICSERV to disable getservbyname.
50176         (getnameinfo): New function, only supports
50177         NI_NUMERICHOST|NI_NUMERICSERV for now.
50178
50179         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50180         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50181         getnameinfo.
50182
50183 2006-06-28  Eric Blake  <ebb9@byu.net>
50184
50185         * modules/wcwidth: New file.
50186         * modules/mbchar (Depends-on): Add wcwidth.
50187         * modules/mbswidth (Depends-on): Add wcwidth.
50188         * MODULES.html.sh: Add wcwidth.
50189
50190 2006-06-28  Eric Blake  <ebb9@byu.net>
50191
50192         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50194
50195 2006-06-28  Eric Blake  <ebb9@byu.net>
50196
50197         * lib/xvasprintf.h: Fix comments.
50198
50199 2006-06-28  Eric Blake  <ebb9@byu.net>
50200
50201         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50202         * lib/mbswidth.c (wcwidth): Move from here...
50203         * lib/wcwidth.h: ...to this new file.
50204
50205 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50206
50207         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50208
50209         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50210         it's obsolete.
50211         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50212
50213 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50214
50215         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50216         Autoconf 2.60 says this stuff was obsolete.
50217
50218 2006-06-28  Bruno Haible  <bruno@clisp.org>
50219
50220         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50221
50222 2006-06-28  Bruno Haible  <bruno@clisp.org>
50223
50224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50225         gt_TYPE_WCHAR_T.
50226
50227 2006-06-28  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50230         declaration for wcwidth.
50231         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50232
50233 2006-06-28  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50236         (mkdir): Define using _mkdir.
50237
50238 2006-06-28  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/getaddrinfo.h: Fix POSIX URL.
50241         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50242         _WIN32.
50243         (use_win32_p): Make static.
50244         (getaddrinfo): Reject service name if it is empty or does not consist
50245         solely of decimal digits, or if its value is > 65535.
50246         (getnameinfo): Remove useless casts.
50247
50248 2006-06-27  Simon Josefsson  <jas@extundo.com>
50249
50250         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50251         Eggert and Martin Lambers.
50252
50253 2006-06-27  Simon Josefsson  <jas@extundo.com>
50254
50255         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50256         Eggert and Martin Lambers.
50257
50258 2006-06-27  Bruno Haible  <bruno@clisp.org>
50259
50260         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50261         result to 0, not to empty.
50262         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50263
50264 2006-06-27  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50267
50268 2006-06-26  Simon Josefsson  <jas@extundo.com>
50269
50270         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50271         present.
50272
50273 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50274
50275         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50276         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50277         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50278
50279 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50280
50281         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50282
50283 2006-06-26  Bruno Haible  <bruno@clisp.org>
50284
50285         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50286
50287 2006-06-26  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50290
50291 2006-06-26  Bruno Haible  <bruno@clisp.org>
50292
50293         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50294         SGI C compiler in pre-C99 mode.
50295         Suggested by Mark D. Baushke and Larry Jones.
50296
50297 2006-06-26  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50300         WCHAR_MAX.
50301         Reported by Mark D. Baushke and Larry Jones.
50302
50303 2006-06-26  Bruno Haible  <bruno@clisp.org>
50304
50305         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50306         in pre-C99 mode.
50307         Suggested by Mark D. Baushke and Larry Jones.
50308
50309 2006-06-23  Simon Josefsson  <jas@extundo.com>
50310             Bruno Haible  <bruno@clisp.org>
50311
50312         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50313         Emit mostlyclean-local rule.
50314         (func_emit_tests_Makefile_am): Likewise.
50315         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50316
50317 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50318
50319         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50320
50321 2006-06-23  Bruno Haible  <bruno@clisp.org>
50322
50323         * tests/test-stdint.c: Update to match ISO C 99 Technical
50324         Corrigendum 1.
50325
50326 2006-06-23  Bruno Haible  <bruno@clisp.org>
50327
50328         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50329
50330 2006-06-23  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/stdint_.h: Treat IRIX like OpenBSD.
50333
50334 2006-06-23  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50337         ISO C 99 Technical Corrigendum 1.
50338
50339 2006-06-22  Simon Josefsson  <jas@extundo.com>
50340
50341         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50342         MinGW.
50343
50344 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50347         needed.  Some compiler complained about some of them.  Problem reported
50348         by Larry Jones in
50349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50350
50351 2006-06-21  Simon Josefsson  <jas@extundo.com>
50352
50353         * tests/test-getaddrinfo.c: New file.
50354
50355         * modules/getaddrinfo-tests: New file.
50356
50357         * MODULES.html.sh: Add inet_pton.
50358
50359         * modules/inet_pton: New file.
50360
50361 2006-06-21  Simon Josefsson  <jas@extundo.com>
50362
50363         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50364         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50365         of using the (limited) gnulib implementation on Windows XP.
50366
50367         * m4/inet_pton.m4: New file.
50368
50369 2006-06-21  Simon Josefsson  <jas@extundo.com>
50370
50371         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50372         variable.
50373
50374         * lib/socket_.h: Don't define WINVER.
50375
50376         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50377         slightly modified to work in gnulib.
50378
50379 2006-06-21  Simon Josefsson  <jas@extundo.com>
50380
50381         * doc/gnulib.texi (Windows sockets): Add.
50382
50383 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * lib/read-file.c (fread_file): Start with buffer allocation of
50386         0 bytes rather than 1 byte; this simplifies the code.
50387         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50388         code to free buffer and save/restore errno.
50389         (internal_read_file): Remove unused local.
50390
50391 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50394         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50395         Problem reported by Denis Excoffier in
50396         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50397
50398 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50399
50400         * modules/sys_socket, modules/socklen: Include sys/types since
50401         FreeBSD 4.x's sys/socket.h needs it.
50402
50403 2006-06-19  Simon Josefsson  <jas@extundo.com>
50404
50405         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50406
50407 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50408
50409         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50410
50411 2006-06-19  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50414         and FULL_PATH_INTTYPES_H in angle brackets.
50415         Reported by Mark D. Baushke <mdb@gnu.org>.
50416
50417 2006-06-17  Eric Blake  <ebb9@byu.net>
50418
50419         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50420         errno.
50421
50422 2006-06-17  Bruno Haible  <bruno@clisp.org>
50423
50424         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50425         <sys/inttypes.h>.
50426
50427 2006-06-17  Bruno Haible  <bruno@clisp.org>
50428
50429         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50430         whether errno is declared. Assume <errno.h> declares errno.
50431
50432 2006-06-17  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50435
50436 2006-06-17  Bruno Haible  <bruno@clisp.org>
50437
50438         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50439         problem on Solaris 2.5.1.
50440
50441 2006-06-16  Eric Blake  <ebb9@byu.net>
50442
50443         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50444         * lib/unicodeio.c [!defined errno]: Likewise.
50445         * lib/strtol.c [!defined errno]: Likewise.
50446         * lib/strtod.c [!defined errno]: Likewise.
50447
50448 2006-06-15  Eric Blake  <ebb9@byu.net>
50449
50450         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50451
50452 2006-06-15  Eric Blake  <ebb9@byu.net>
50453
50454         * config/srclist.txt (ssize_t.m4): Lose sync.
50455
50456 2006-06-15  Bruno Haible  <bruno@clisp.org>
50457
50458         * modules/stdint (Files): Include m4/full-header-path.m4,
50459         m4/size_max.m4, m4/wchar_t.m4.
50460         (Makefile.am): Many more substitutions.
50461         * modules/stdint-tests: New file.
50462         * tests/test-stdint.c: New file.
50463
50464 2006-06-15  Bruno Haible  <bruno@clisp.org>
50465
50466         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50467         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50468         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50469         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50470         gl_CHECK_TYPE_SAME): New macros.
50471
50472 2006-06-15  Bruno Haible  <bruno@clisp.org>
50473
50474         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50475
50476 2006-06-15  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/stdint_.h: Rewritten to be fully auto-configured.
50479         Fixes bug on HP-UX/IA64.
50480
50481 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * lib/getdate.y (__attribute__): Don't define if already defined.
50484         Problem reported by Larry Jones.
50485         * lib/utimens.c (__attribute__): Likewise.
50486
50487 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50488
50489         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50490         reported by Andreas Schwab.
50491
50492 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50493             Bruno Haible  <bruno@clisp.org>
50494
50495         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50496         check for the declaration of strnlen and a run test that exposes the
50497         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50498         rpl_strndup.
50499
50500 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50501             Bruno Haible  <bruno@clisp.org>
50502
50503         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50504
50505 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50506
50507         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50508         compile test, for Tru64 4.0D.
50509
50510 2006-05-28  Karl Berry  <karl@gnu.org>
50511
50512         * config/srclist.txt (printf-args.c): lose sync.
50513
50514 2006-05-26  Martin Lambers  <marlam@marlam.de>
50515
50516         * lib/getpass.c: Updates the test for the native W32 API, and adds
50517         missing includes, thus fixing compilation warnings.
50518
50519 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50520
50521         * lib/exclude.c (exclude_fnmatch): New function.
50522         (excluded_file_name): Call exclude_fnmatch.
50523         * lib/exclude.h (excluded_file_name): New prototype
50524
50525 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50526
50527         * lib/tempname.c (small_open, large_open): New macros.
50528         (__open, __open64) [!_LIBC]: Remove.
50529         (__gen_tempname): Use small_open and large_open instead of __open
50530         and __open64.  This fixes a portability bug on HP-UX 11.11i
50531         reported by Simon Wing-Tang in
50532         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50533
50534 2006-05-24  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50537         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50538         Reported by Thorsten Maerz <torte@netztorte.de> via
50539         Aaron Stone <aaron@serendipity.cx>.
50540
50541 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50542
50543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50544         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50545         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50546         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50547         not really conditional on the cache.
50548         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50549
50550 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50551
50552         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50553         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50554         (my_usleep): Don't mishandle maximum value.
50555
50556 2006-05-19  Jim Meyering  <jim@meyering.net>
50557
50558         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50559
50560 2006-05-17  Bruno Haible  <bruno@clisp.org>
50561
50562         Cygwin portability.
50563         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50564
50565 2006-05-17  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/stdint_.h: Fix recognition of Cygwin.
50568
50569 2006-05-15  Bruno Haible  <bruno@clisp.org>
50570
50571         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50572         on libtool patch by Ralf Wildenhues.
50573
50574 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50577         test for C99 conformance; (bool) 0.5 is an integer constant
50578         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50579         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50580
50581 2006-05-11  Simon Josefsson  <jas@extundo.com>
50582
50583         * m4/xvasprintf.m4: Fix obvious typo.
50584
50585 2006-05-11  Jim Meyering  <jim@meyering.net>
50586
50587         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50588         James Lemley.
50589
50590 2006-05-10  Simon Josefsson  <jas@extundo.com>
50591
50592         * lib/md4.c: Typo fix, update copyright years.
50593         (K1, K2): Don't use L because it turn computations into 64-bit on
50594         64-bit platforms.
50595
50596 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50599         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50600         unwanted sign propagation, e.g., on hosts with 64-bit int.
50601         There still are some problems with reeelly weird theoretical hosts
50602         (e.g., 33-bit int) but it's not worth worrying about now.
50603         * lib/sha1.c (rol): Likewise.
50604         (K1, K2, K3, K4): Remove unnecessary L suffix.
50605
50606 2006-05-10  Bruno Haible  <bruno@clisp.org>
50607
50608         * lib/des.c: Cast to avoid warnings.
50609
50610 2006-05-09  Bruno Haible  <bruno@clisp.org>
50611
50612         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50613         (Depends-on): Depend also on xsize, stdarg.
50614         (configure.ac): Add gl_XVASPRINTF.
50615
50616 2006-05-09  Bruno Haible  <bruno@clisp.org>
50617
50618         * m4/xvasprintf.m4: New file.
50619
50620 2006-05-09  Bruno Haible  <bruno@clisp.org>
50621
50622         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50623         (EOVERFLOW): Define fallback value.
50624         (xstrcat): New function.
50625         (xvasprintf): Recognize the special case of a string concatenation.
50626
50627 2006-05-08  Eric Blake  <ebb9@byu.net>
50628
50629         * gnulib-tool (func_version): Base copyright year on CVS date.
50630         (func_emit_copyright_notice): New function.
50631         (func_emit_lib_Makefile_am): Use it.
50632         (func_emit_tests_Makefile_am): Likewise.
50633         (func_import): Likewise.
50634
50635 2006-05-08  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/stdarg: New file.
50638         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50639
50640 2006-05-08  Bruno Haible  <bruno@clisp.org>
50641
50642         * m4/stdarg.m4: New file, from GNU gettext.
50643
50644 2006-05-08  Bruno Haible  <bruno@clisp.org>
50645
50646         * config/srclist.txt (build-aux/config.rpath): different from latest
50647         release.
50648
50649 2006-05-08  Bruno Haible  <bruno@clisp.org>
50650
50651         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50652
50653 2006-05-05  Jim Meyering  <jim@meyering.net>
50654
50655         * m4/warning.m4: New file, derived from bison's file by the same name.
50656
50657 2006-05-03  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/stdint_.h: Shorter URL.
50660         * lib/inttypes.h: Likewise.
50661
50662 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50665
50666 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * lib/verify.h: Document the internals better.  Most of this change
50669         was written by Bruno Haible.
50670
50671 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * doc/verify.texi: New file, partly based on a proposal by
50674         Bruno Haible.
50675
50676 2006-05-02  Bruno Haible  <bruno@clisp.org>
50677
50678         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50679         test from here...
50680         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50681
50682 2006-04-29  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50685         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50686
50687 2006-04-29  Bruno Haible  <bruno@clisp.org>
50688
50689         * gnulib-tool: Make --update option actually work.
50690
50691 2006-04-29  Bruno Haible  <bruno@clisp.org>
50692
50693         * doc/gcd.texi: New file.
50694         * doc/gnulib.texi: Include it.
50695
50696 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50697
50698         * lib/getdate.y (get_date): When adding relative date, start with the
50699         initial time, not with the result of the first mktime call.
50700
50701 2006-04-25  Bruno Haible  <bruno@clisp.org>
50702
50703         * gnulib-tool (func_import): Output the include directives in three
50704         blocks, sorted separately.
50705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50706
50707 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50710         to define main with arguments, for C++.  Reported by Eric Blake.
50711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50712         Prefer 'int main ()' to 'int main (void)', for C++.
50713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50714         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50715         for 'main', for C99 and C++.
50716
50717 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50720         Don't assume that exit status -1 is valid.
50721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50722         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50723         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50724         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50725         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50726         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50727         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50728         functions can be used without declaring them, or that you can
50729         exit with status -1.
50730         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50731
50732 2006-04-24  Karl Berry  <karl@gnu.org>
50733
50734         * config/srclist.txt (longdouble.m4): sync lost.
50735
50736 2006-04-24  Eric Blake  <ebb9@byu.net>
50737
50738         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50739
50740 2006-04-24  Bruno Haible  <bruno@clisp.org>
50741
50742         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50743         poll() implementation in AIX.
50744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50745
50746 2006-04-24  Bruno Haible  <bruno@clisp.org>
50747
50748         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50749         assigned exactly once.
50750
50751 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50752             Bruno Haible  <bruno@clisp.org>
50753
50754         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50755         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50756         for AM_CPPFLAGS.
50757
50758 2006-04-23  Bruno Haible  <bruno@clisp.org>
50759
50760         * modules/copy-file: Depend on unistd.
50761         * modules/execute: Likewise.
50762         * modules/fatal-signal: Likewise.
50763         * modules/findprog: Likewise.
50764         * modules/mkdtemp : Likewise.
50765         * modules/pipe: Likewise.
50766         * modules/wait-process: Likewise.
50767
50768 2006-04-23  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50771         condition was already detected.
50772         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50773
50774 2006-04-23  Bruno Haible  <bruno@clisp.org>
50775
50776         * lib/copy-file.c: Include <unistd.h> unconditionally.
50777         * lib/execute.c: Likewise.
50778         * lib/fatal-signal.c: Likewise.
50779         * lib/findprog.c: Likewise.
50780         * lib/mkdtemp.c: Likewise.
50781         * lib/pipe.h: Likewise.
50782         * lib/pipe.c: Likewise.
50783         * lib/wait-process.h: Likewise.
50784
50785 2006-04-23  Bruno Haible  <bruno@clisp.org>
50786
50787         * gnulib-tool (func_usage): Fix --import description. Document
50788         --update.
50789         (func_import): Create temporary file in a temporary directory, if
50790         --dry-run is specified. Silence errors from 'grep' when there are no
50791         m4 files in $m4dir.
50792         (func_create_testdir): Silence errors from 'grep' when there are no
50793         m4 files in $m4dir.
50794         Reported by Karl Berry <karl@freefriends.org>.
50795
50796 2006-04-20  Bruno Haible  <bruno@clisp.org>
50797
50798         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50799         one argument, so that the code will be portable to Autoconf 2.60.
50800         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50802         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50803
50804 2006-04-19  Derek Price  <derek@ximbiot.com>
50805             Eric Blake  <ebb9@byu.net>
50806
50807         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50808         rather than "/full/path.h".  Update comment to match.  Shorten &
50809         generalize m4_translit call via AS_TR_CPP.
50810
50811 2006-04-19  Derek Price  <derek@ximbiot.com>
50812             Eric Blake  <ebb9@byu.net>
50813
50814         * lib/inttypes.h: Correct grammar in comment.
50815
50816 2006-04-18  Derek Price  <derek@ximbiot.com>
50817             Paul Eggert  <eggert@cs.ucla.edu>
50818
50819         * modules/inttypes: New file.
50820         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50821
50822 2006-04-18  Derek Price  <derek@ximbiot.com>
50823             Paul Eggert  <eggert@cs.ucla.edu>
50824
50825         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50826         New files.
50827
50828 2006-04-18  Derek Price  <derek@ximbiot.com>
50829             Paul Eggert  <eggert@cs.ucla.edu>
50830
50831         * lib/inttypes.h: New file.
50832         * lib/strtoimax.c: Assume <inttypes.h>.
50833
50834 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50835
50836         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50837         isn't mounted.  Problem reported by Kir Kolyshkin.
50838
50839 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50840
50841         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50842         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50843         Derek R. Price.
50844         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50845         implementation.
50846
50847 2006-04-12  Eric Blake  <ebb9@byu.net>
50848
50849         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50850         is now done automatically by the corresponding Autoconf macro.
50851
50852 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50855         time_r.h.
50856
50857 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50858
50859         Merge regex changes from libc, removing some of our
50860         POSIX-conformance changes that were rejected and redoing them in a
50861         less-intrusive way.
50862
50863         * lib/regcomp.c (re_compile_internal, init_dfa):
50864         Length arg is now size_t, not Idx.  All uses changed.
50865         (peek_token): Forward decl now says internal_function.
50866         (__re_error_msgid, __re_error_msgid_idx):
50867         Now static rather than extern with attribute_hidden.
50868         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50869         For some reason libc prefers K&R style defns for external functions.
50870         (regerror) [!defined _LIBC]: Likewise.
50871         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50872         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50873         (build_range_exp, build_collating_symbol):
50874         Use K&R-style defn.
50875         (re_compile_fastmap): Use '\0' to memset, not 0.
50876         (utf8_sb_map): Make the calculations more obvious.
50877         (init_dfa, parse_bracket_exp, build_charclass_op):
50878         Call calloc and cast result, as glibc does.
50879         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50880         (build_range_exp, build_collating_symbol):
50881         Now internal functions.
50882
50883         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50884
50885         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50886         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50887         Don't depend on VMS; depend on __VMS instead, for POSIX
50888         namespace cleanness.
50889         (regoff_t): Define to ssize_t, not long int.
50890
50891         Remove the REG_ macros named below.  Instead, make the old names
50892         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50893         __USE_GNU_REGEX.
50894         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50895         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50896         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50897         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50898         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50899         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50900         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50901         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50902         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50903         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50904         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50905         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50906         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50907         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50908         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50909         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50910         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50911         (REG_NREGS):
50912         Remove.  All uses replaced by the old RE_* names.
50913         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50914         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50915         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50916         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50917         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50918         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50919         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50920         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50921         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50922         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50923         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50924         Don't bother having these macros be independent of each others'
50925         values, since they no longer exist in the POSIX name space.
50926
50927         Rename the following member names back to their old names,
50928         unless !__USE_GNU_REGEX.  All uses changed back.
50929         (buffer): Renamed from re_buffer.
50930         (allocated): Renamed from re_allocated.
50931         (used): Renamed from re_used.
50932         (syntax): Renamed from re_syntax.
50933         (fastmap): Renamed from re_fastmap.
50934         (translate): Renamed from re_translate.
50935         (can_be_null): Renamed from re_can_be_null.
50936         (regs_allocated): Renamed from re_regs_allocated.
50937         (fastmap_accurate): Renamed from re_fastmap_accurate.
50938         (no_sub): Renamed from re_no_sub.
50939         (not_bol): Renamed from re_not_bol.
50940         (not_eol): Renamed from re_not_eol.
50941         (newline_anchor): Renamed from re_newline_anchor.
50942         (num_regs): Renamed from rm_num_regs.
50943         (start): Renamed from rm_start.
50944         (end): Renamed from rm_end.
50945
50946         (free_state): Move up a bit.
50947
50948         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50949         #define to be empty.
50950         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50951         when that is what is intended.
50952         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50953         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50954         (MAX): New macro.
50955         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50956         All uses changed back to re_malloc, etc.  It's now the caller's
50957         responsibility to check for overflow; all callers changed.
50958         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50959         (re_x2nrealloc): Remove.
50960         (free_state): Remove decl.
50961
50962         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50963         (re_set_registers, re_exec):
50964         Use K&R-style defn.
50965
50966         2006-01-31  Roland McGrath  <roland@redhat.com>
50967
50968         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50969         Reported by Mike Frysinger <vapier@gentoo.org>.
50970
50971         2006-01-15  Andreas Jaeger  <aj@suse.de>
50972
50973         [BZ #1950]
50974         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50975         build_wcs_upper_buffer change.
50976         (build_wcs_upper_buffer): Change return type.
50977
50978         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50979
50980         * lib/regex_internal.h: Include <stdint.h> if available.
50981
50982         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50983
50984         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50985
50986         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50987
50988         * lib/regcomp.c: Adjust for changed secondary hash function.
50989
50990         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50991
50992         * lib/regex.h: Pretty printing.
50993         Clean up namespace a bit.
50994
50995         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50996
50997         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50998         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50999
51000         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51001                     Ulrich Drepper  <drepper@redhat.com>
51002
51003         [BZ #1302]
51004         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51005         changed.
51006         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51007
51008         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51009
51010         [BZ #281]
51011         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51012         * lib/regcomp.c: Remove unnecessary uses of
51013         unsigned RE_TRANSLATE_TYPE.
51014         * lib/regex_internal.h: Likewise.
51015         * lib/regex_internal.c: Likewise.
51016         * lib/regexec.c: Likewise.
51017         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51018
51019         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51020
51021         * lib/regexec.c (find_recover_state): Remove unnecessary
51022         initialization.
51023         (transit_state_bkref): Make DFA a const pointer.
51024         (get_subexp): Likewise.
51025         (check_arrival): Likewise.
51026         (update_cur_sifted_state): Likewise.
51027         (re_search_internal): Likewise.
51028         (prune_impossible_nodes): Likewise.
51029         (acquire_init_state_context): Likewise.
51030         (proceed_next_node): Likewise.
51031         (set_regs): Likewise.
51032         (free_fail_stack_return): Likewise.
51033         (check_arrival_expand_ecl): Mark DFA parameter as const.
51034         (check_arrival_expand_ecl_sub): Likewise.
51035         (check_subexp_limits): Likewise.
51036         (sub_epsilon_src_nodes):  Likewise.
51037         (add_epsilon_src_nodes):  Likewise.
51038         (merge_state_array): Likewise.
51039         (update_regs): Likewise.
51040         (build_trtable): Likewise.
51041         (sift_states_backward): Mark MCTX parameter as const.
51042         (build_sifted_states): Likewise.
51043         (update_cur_sifted_state): Likewise.
51044         (sift_states_mkref): Likewise.
51045         (check_arrival_expand_ecl): Mark eclosure as const.
51046         (check_dst_limits_calc_pos_1): Likewise.
51047         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51048         pointer.
51049
51050         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51051
51052         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51053         (transit_state_sb): Likewise.
51054         (transit_state_mb): Likewise.
51055         (sift_states_iter_mb): Likewise.
51056         (check_arrival_add_next_nodes): Likewise.
51057         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51058         [_LIBC] (re_search_2_stub): Use mempcpy.
51059
51060         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51061         mbrtowc for very simple UTF-8 case.
51062
51063         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51064         a pointer-to-const.
51065         (re_acquire_state_context): Likewise.
51066         * lib/regex_internal.h: Adjust prototypes.
51067
51068         * lib/regex.c: Prevent using C++ compilers.
51069
51070         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51071         (re_acquire_state_context): Likewise.
51072
51073 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * modules/regex (Depends-on): Add ssize_t.
51076
51077 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51078
51079         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51080         translation table.
51081
51082 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51085
51086 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51087             Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51090         <sys/types.h> and <inttypes.h>.
51091
51092 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51093
51094         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51095         `__error_t_defined', so argp.h will not typedef the former.
51096
51097 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51098
51099         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51100         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51101         glibc names.  Even if glibc is changed to conform to POSIX, the
51102         traditional names will be available anyway, since regex depends on
51103         the extensions module.  Also, fix a longstanding typo in the
51104         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51105         reported by Emanuele Giaquinta.  Also, change sense of cached
51106         variable, so that the message makes sense.
51107
51108 2006-03-24  Simon Josefsson  <jas@extundo.com>
51109
51110         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51111         including some doc fixes.
51112         (base64_encode_alloc): Fix +1 bug on allocation failures.
51113
51114 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51115
51116         * lib/base64.c (base64_encode): Do not read past end of array with
51117         unsanitized input on systems with CHAR_BIT > 8.
51118
51119 2006-03-24  Eric Blake  <ebb9@byu.net>
51120
51121         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51122
51123 2006-03-22  Karl Berry  <karl@gnu.org>
51124
51125         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51126         * config/srclistvars.sh (COREUTILS): new var.
51127
51128 2006-03-17  Jim Meyering  <jim@meyering.net>
51129
51130         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51131         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51132
51133 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51134
51135         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51136         no longer needs it.  Instead, check that regoff_t is as least
51137         as wide as ptrdiff_t.
51138
51139         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51140         so that our regex.h stays compatible with the installed regex.
51141         This is helpful for installers who configure --without-included-regex.
51142         Problem reported by Emanuele Giaquinta.
51143
51144 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51147         Typedef to long int, not to off_, as POSIX will likely change
51148         in that direction.
51149
51150 2006-03-15  Eric Blake  <ebb9@byu.net>
51151
51152         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51153
51154 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51155
51156         * lib/argp-help.c (validate_uparams): Fix typo
51157         * lib/argp-parse.c (argp_default_options): Consistently begin help
51158         messages with a lowercase letter.
51159
51160 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51163         overrun buffers and shouldn't be used (much as gets shouldn't be
51164         used).
51165         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51166
51167 2006-03-08  Simon Josefsson  <jas@extundo.com>
51168
51169         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51170         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51171
51172 2006-03-08  Simon Josefsson  <jas@extundo.com>
51173
51174         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51175         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51176
51177 2006-03-08  Simon Josefsson  <jas@extundo.com>
51178
51179         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51180         signal that configure disabled the device.
51181
51182 2006-03-08  Simon Josefsson  <jas@extundo.com>
51183
51184         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51185         languages.
51186
51187 2006-03-07  Simon Josefsson  <jas@extundo.com>
51188
51189         * modules/getopt (Depends-on): Add unistd.
51190
51191         * modules/unistd: New file.
51192
51193 2006-03-07  Simon Josefsson  <jas@extundo.com>
51194
51195         * modules/gc-random: New file.
51196
51197 2006-03-07  Simon Josefsson  <jas@extundo.com>
51198
51199         * m4/unistd_h.m4: New file.
51200
51201 2006-03-07  Simon Josefsson  <jas@extundo.com>
51202
51203         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51204         test to be side-effect free by storing the result in the cache
51205         variable gl_cv_lib_readline, and moving the assignment of
51206         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51207         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51208
51209 2006-03-07  Simon Josefsson  <jas@extundo.com>
51210
51211         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51212         error on missing devices (the functions will return an error).
51213
51214         * m4/gc.m4: Move random stuff to gc-random.m4
51215
51216 2006-03-07  Simon Josefsson  <jas@extundo.com>
51217
51218         * lib/unistd_.h: New file.
51219
51220 2006-03-07  Simon Josefsson  <jas@extundo.com>
51221
51222         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51223
51224 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51227         Problem reported by Juan Manuel Guerrero.
51228
51229 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51232         the unistd module.
51233         * lib/getlogin_r.c: Likewise.
51234         * lib/getlogin_r.h: Likewise.
51235         * lib/glob.c: Likewise.
51236         * lib/pagealign_alloc.c: Likewise.
51237         * lib/unistd_.h: Remove; no longer needed.
51238
51239 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51242         Add unistd.
51243         * modules/c-stack (Depends-on): Add unistd.
51244         * modules/getlogin_r: Likewise.
51245         * modules/glob: Likewise.
51246         * modules/pagealign_alloc: Likewise.
51247         * modules/unistd (Files): Remove lib/unistd_.h.
51248         (EXTRA_DIST): Remove.
51249         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51250         need unistd_.h.
51251         (MOSTLYCLEANFILES): Remove unistd.h-t.
51252
51253 2006-03-03  Simon Josefsson  <jas@extundo.com>
51254
51255         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51256
51257 2006-03-03  Simon Josefsson  <jas@extundo.com>
51258
51259         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51260         libidn and bison.
51261
51262 2006-03-03  Simon Josefsson  <jas@extundo.com>
51263
51264         * build-aux/maint.mk: Add indent target.
51265
51266 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51267
51268         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51269         our replacement poll.h in any case, to avoid a differing
51270         declaration from a system header.  Seen on AIX.
51271
51272 2006-03-01  Simon Josefsson  <jas@extundo.com>
51273
51274         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51275         <kasal@ucw.cz>.
51276
51277 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51278
51279         * modules/gettime (Depends-on): Add extensions module.
51280         * modules/nanosleep (Depends-on): Likewise.
51281         * modules/settime (Depends-on): Likewise.
51282
51283 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51284
51285         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51286         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51287         pedantically.
51288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51289         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51290
51291         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51292         not "==".  Reported by Ralf Wildenhues.
51293
51294 2006-03-01  Karl Berry  <karl@gnu.org>
51295
51296         * doc/Copyright/request-*: new files, synced from gnuorg.
51297
51298 2006-03-01  Karl Berry  <karl@gnu.org>
51299
51300         * config/srclist.txt (Copyright/*): new entries.
51301
51302 2006-02-28  Simon Josefsson  <jas@extundo.com>
51303
51304         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51305
51306 2006-02-27  Simon Josefsson  <jas@extundo.com>
51307
51308         * lib/base64.h: Indent #define's.  From Jim Meyering
51309         <jim@meyering.net>.
51310
51311 2006-02-27  Jim Meyering  <jim@meyering.net>
51312
51313         Revert the change of 2006-02-24, so these files can continue
51314         to be sync'd from gettext.
51315         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51316         of `config.h'.
51317
51318 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * modules/intprops: New file.
51321         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51322         Add intprops.
51323         * modules/getloadavg (Files): Remove lib/intprops.h.
51324         (Depends-on): Add intprops.
51325         * modules/human: Likewise.
51326         * modules/inttostr: Likewise.
51327         * modules/openat: Likewise.
51328         * modules/sig2str: Likewise.
51329         * modules/userspec: Likewise.
51330         * modules/utimecmp: Likewise.
51331         * modules/xnanosleep: Likewise.
51332         * modules/xstrtol: Likewise.
51333
51334 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51335
51336         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51337         * modules/lock-tests (TESTS): Use $(EXEEXT).
51338         * modules/tls-tests: Likewise.
51339         * modules/argp-tests: Likewise.
51340         (check_PROGRAMS): New var, replacing...
51341         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51342
51343 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51344
51345         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51346         `config.h'.
51347
51348 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51349
51350         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51351
51352 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51353
51354         Sync from coreutils.
51355         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51356         gl_CHDIR_SAFER.
51357
51358 2006-02-22  Jim Meyering  <jim@meyering.net>
51359
51360         Sync from coreutils.
51361         * m4/chdir-safer.m4: New file.
51362
51363 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51366         AT_FDCWD exceeds INT_MAX.
51367         * lib/openat.h (AT_FDCWD): Likewise.
51368
51369 2006-02-17  Eric Blake  <address@hidden>
51370
51371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51372
51373 2006-02-16  Simon Josefsson  <jas@extundo.com>
51374
51375         * modules/getaddrinfo (Depends-on): Add sys_socket.
51376
51377 2006-02-15  Simon Josefsson  <jas@extundo.com>
51378
51379         * build-aux/maint.mk: Add dsyntax-check rule.
51380
51381 2006-02-15  Eric Blake  <ebb9@byu.net>
51382
51383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51384         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51385         'present but cannot compile' warnings on cygwin.
51386         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51387         use ws2tcpip.h if sys/socket.h works.
51388         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51389         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51390
51391 2006-02-14  Simon Josefsson  <jas@extundo.com>
51392
51393         * modules/maintainer-makefile (Files): Rename.
51394
51395         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51396         and (the local) Makefile.cfg to maint-cfg.mk.
51397
51398         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51399         to the latter.
51400
51401         * modules/maintainer-makefile: New module.
51402
51403         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51404         severaly stripped to make it possible to build it up from scratch
51405         with reliable tests.
51406
51407         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51408         fixes to permit overriding the default actions when configure and
51409         makefile are not available.
51410
51411 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51412
51413         Sync from coreutils.
51414         * modules/lstat (Depends-on): Don't depend on xalloc.
51415         (License): Change from GPL to LGPL, since this is now simply a
51416         replacement for a libc function.
51417
51418 2006-02-14  Jim Meyering  <jim@meyering.net>
51419
51420         Sync from coreutils.
51421
51422         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51423         failure on deficient systems, and simplify gnulib lgpl dependencies.
51424         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51425         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51426
51427         * lib/xalloc-die.c: Remove unused definition of N_.
51428
51429 2006-02-14  Jim Meyering  <jim@meyering.net>
51430
51431         Sync from coreutils.
51432         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51433         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51434         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51435         double-quote uses of that variable, to accommodate the rare case in
51436         which getmntent is available in none of the libraries checked.  This
51437         happens at least on FreeBSD 5.0.
51438
51439 2006-02-13  Simon Josefsson  <jas@extundo.com>
51440
51441         * gnulib-tool (Usage): Fix --import, from
51442         karl@freefriends.org (Karl Berry).
51443
51444 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51445
51446         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51447
51448 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51449
51450         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51451         "autoupdate" on 2005-12-12.
51452
51453 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * modules/closeout (Depends-on): Remove atexit.
51456
51457 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51458
51459         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51460         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51461
51462 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51463
51464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51465         __EXTENSIONS__ if this causes compilation to fail.  Problem
51466         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51467         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51468
51469 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51470
51471         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51472         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51474         All uses changed.
51475
51476 2006-01-26  Simon Josefsson  <jas@extundo.com>
51477
51478         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51479         prototype is visible on mingw32.
51480
51481         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51482         for mingw32.
51483
51484         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51485         mingw32).
51486
51487 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51488
51489         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51490         attempt to open for write; this always fails, at least on POSIX
51491         hosts.  This reinstates the 2006-01-09 change, which was
51492         inadvertently removed.
51493
51494 2006-01-26  Bruno Haible  <bruno@clisp.org>
51495
51496         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51497         Reported by Paul Eggert.
51498
51499 2006-01-26  Bruno Haible  <bruno@clisp.org>
51500             Paul Eggert  <eggert@cs.ucla.edu>
51501
51502         * lib/stdbool_.h (_Bool)
51503         [(! (defined __cplusplus || defined __BEOS__)
51504           && !defined __GNUC__
51505           && !(defined __HP_cc || defined __xlc__
51506                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51507                || defined __sgi))]:
51508         #define to signed char in these cases too; this simplifies
51509         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51510         etc., separately) and makes it more conservative.
51511
51512 2006-01-25  Simon Josefsson  <jas@extundo.com>
51513
51514         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51515         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51516         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51517
51518 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51519
51520         * lib/argp-namefrob.h: Bugfix. Remove stray #
51521
51522 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51523
51524         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51525         so that we test the test.
51526         Check for yet another HP-UX cc bug involving *bool |= bool.
51527
51528 2006-01-25  Karl Berry  <karl@gnu.org>
51529
51530         * config/srclist.txt (vasnprintf.c): sync lost.
51531
51532 2006-01-25  Jim Meyering  <jim@meyering.net>
51533
51534         Sync from the stable (b5) branch of coreutils:
51535
51536         * lib/fts.c (fts_children): Don't let close() clobber errno from
51537         failed fchdir().
51538
51539         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51540         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51541         a dangling symlink.  That can also happen at least for ELOOP.
51542         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51543         FYI, this bug predates the inclusion of fts.c in coreutils.
51544
51545         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51546         in their own block, so pre-c99 compilers don't object.
51547
51548         Avoid the double-free (first in fts_read, second in fts_close) that
51549         would occur when an `active' directory is made inaccessible (e.g.,
51550         via chmod a-x) during a traversal.
51551         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51552         before returning.  Reproduce this failure by
51553         mkdir -p a/b; cd a; chmod a-x . b
51554         Reported by Stavros Passas.
51555
51556 2006-01-25  Jim Meyering  <jim@meyering.net>
51557
51558         * lib/fileblocks.c: Remove more useless parentheses.
51559         * lib/readutmp.h: Likewise.
51560
51561 2006-01-25  Bruno Haible  <bruno@clisp.org>
51562
51563         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51564         warnings.
51565         Reported by Paul Eggert.
51566
51567 2006-01-25  Bruno Haible  <bruno@clisp.org>
51568
51569         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51570         rid of a trap command. For Solaris sh.
51571         Reported by Mark D. Baushke <mdb@gnu.org>.
51572
51573 2006-01-24  Simon Josefsson  <jas@extundo.com>
51574
51575         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51576         Bruno.
51577
51578 2006-01-24  Karl Berry  <karl@gnu.org>
51579
51580         * config/srclist.txt (argp-namefrob.h): sync lost.
51581
51582 2006-01-24  Jim Meyering  <jim@meyering.net>
51583
51584         * modules/openat (Files): Add lib/intprops.h.
51585         From Mark D. Baushke.
51586
51587 2006-01-24  Jim Meyering  <jim@meyering.net>
51588
51589         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51590         Reported by Mark D. Baushke.
51591
51592 2006-01-24  Jim Meyering  <jim@meyering.net>
51593
51594         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51595
51596 2006-01-24  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/strnlen (Maintainer): Change from glibc to all.
51599
51600 2006-01-24  Bruno Haible  <bruno@clisp.org>
51601
51602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51603         Patch by Paul Eggert.
51604
51605 2006-01-24  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51608         already has it.
51609         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51610         2005-11-26.
51611
51612         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51613         'signed char' to avoid problems with the built-in _Bool type.
51614         Reported by Paul Eggert on 2005-11-26.
51615
51616 2006-01-24  Bruno Haible  <bruno@clisp.org>
51617
51618         * gnulib-tool (func_import): Avoid constructing complicated sed
51619         expressions inside backquote.
51620         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51621
51622 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51623
51624         These changes imported from libc.
51625         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51626         test and two separate function calls.
51627         * lib/strndup.c (__strndup): Add libc_hidden_def.
51628
51629 2006-01-23  Simon Josefsson  <jas@extundo.com>
51630
51631         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51632         Remove the test_*_SOURCES variable: automake infers it by default.
51633         * modules/tls-tests: Likewise.
51634
51635 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51636
51637         Work around porting bugs reported by Dieter in
51638         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51639         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51640         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51641         Include "getopt.h" first, to check interface.
51642         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51643         !HAVE_DECL_GETENV.
51644         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51645         (__strndup): Revert to K&R-style function dfns, the glibc style.
51646         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51647         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51648         Include strnlen.h first, to get prototype properly.
51649         (strnlen): Renamed from __strnlen.
51650         Remove weak alias.
51651
51652 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51653
51654         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51655
51656 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * config/srclist.txt: Adjust to reflect glibc reorganization.
51659         This affects only comments.
51660
51661 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51662
51663          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51664          Reported by Bruce Korb <bkorb@gnu.org>.
51665
51666 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51667
51668         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51669         to pacify gcc -Wswitch-default.
51670
51671 2006-01-22  Bruno Haible  <bruno@clisp.org>
51672
51673         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51674         temporary buffer for sprintf, take into account the precision also
51675         for 'd', 'i', 'u', 'o', 'x', 'X'.
51676
51677 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51678
51679         * modules/argp-tests: New module
51680         * tests/test-argp.c: New file
51681         * tests/test-argp-2.sh: New file
51682
51683 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51684
51685         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51686         (__argp_base_name): Removed
51687         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51688         typo.
51689         (__argp_base_name): Provide macro definition or extern declaration
51690         depending on the configuration
51691
51692 2006-01-20  Simon Josefsson  <jas@extundo.com>
51693
51694         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51695
51696 2006-01-20  Simon Josefsson  <jas@extundo.com>
51697
51698         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51699
51700 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51703         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51704         Suggested by Bruno Haible.
51705
51706 2006-01-20  Karl Berry  <karl@gnu.org>
51707
51708         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51709         until changes propagate, I guess.
51710
51711 2006-01-19  Simon Josefsson  <jas@extundo.com>
51712
51713         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51714
51715 2006-01-19  Simon Josefsson  <jas@extundo.com>
51716
51717         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51718
51719 2006-01-19  Simon Josefsson  <jas@extundo.com>
51720
51721         * gnulib-tool: Set check_PROGRAMS.
51722
51723         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51724         modules/des-tests, modules/gc-arcfour-tests,
51725         modules/gc-arctwo-tests, modules/gc-des-tests,
51726         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51727         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51728         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51729         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51730         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51731         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51732         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51733         test_*_SOURCES.
51734
51735 2006-01-18  Simon Josefsson  <jas@extundo.com>
51736
51737         * modules/socklen (Depends-on): Depend on sys_socket.
51738
51739 2006-01-18  Simon Josefsson  <jas@extundo.com>
51740
51741         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51742         modules/des-tests, modules/gc-arcfour-tests,
51743         modules/gc-arctwo-tests, modules/gc-des-tests,
51744         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51745         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51746         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51747         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51748         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51749         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51750         $(EXEEXT) to automake TESTS variable, for mingw32.
51751
51752 2006-01-17  Simon Josefsson  <jas@extundo.com>
51753
51754         * modules/socklen (Include): Need sys/socket.h.
51755
51756 2006-01-17  Bruno Haible  <bruno@clisp.org>
51757
51758         * modules/ssize_t (Include): Add <sys/types.h>.
51759
51760 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51761
51762         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51763         it's not portable and it doesn't work with cross-compiles.
51764         Problem reported by Bruno Haible.  Fix missing-$ typo in
51765         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51766         -zignore from being used with Sun's C compiler.
51767
51768 2006-01-12  Simon Josefsson  <jas@extundo.com>
51769
51770         * lib/base64.c: Fix warning, reported by Bruno Haible
51771         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51772
51773 2006-01-12  Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/ldd: New file.
51776         * build-aux/ldd.sh.in: New file.
51777         * MODULES.html.sh (Support for building libraries and executables): Add
51778         ldd.
51779
51780 2006-01-12  Bruno Haible  <bruno@clisp.org>
51781
51782         * m4/ldd.m4: New file.
51783
51784 2006-01-12  Bruno Haible  <bruno@clisp.org>
51785
51786         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51787         endless loop while replacing $auxdir with build-aux.
51788
51789 2006-01-11  Simon Josefsson  <jas@extundo.com>
51790
51791         * lib/stdint_.h (SIZE_MAX): Add missing (.
51792
51793 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         Sync from coreutils.
51796         * lib/md5.c: Fix commentary typos.
51797         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51798         * lib/md5.h (__attribute__): Remove; unused.
51799         * lib/sha1.c: Fix commentary to match md5 better.
51800         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51801         so that we don't need to worry about alignment.  All uses changed.
51802         This merges the 2005-10-28 md5 change into sha1.
51803
51804 2006-01-11  Jim Meyering  <jim@meyering.net>
51805
51806         Sync from coreutils.
51807         * lib/md5.c (OP): Fix spacing.
51808
51809 2006-01-11  Bruno Haible  <bruno@clisp.org>
51810
51811         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51812         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51813         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51814
51815 2006-01-11  Bruno Haible  <bruno@clisp.org>
51816
51817         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51818         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51819         the "early" section as well.
51820
51821 2006-01-11  Bruno Haible  <bruno@clisp.org>
51822
51823         Avoid "ar: no archive members specified" error on MacOS X.
51824         * gnulib-tool (func_modules_add_dummy): New function.
51825         (func_import, func_create_testdir): Invoke it.
51826
51827 2006-01-11  Bruno Haible  <bruno@clisp.org>
51828
51829         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51830         with $auxdir in AC_CONFIG_FILES statements.
51831
51832 2006-01-11  Bruno Haible  <bruno@clisp.org>
51833
51834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51835         Initialize also noinst_HEADERS to empty.
51836
51837 2006-01-11  Bruno Haible  <bruno@clisp.org>
51838
51839         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51840         variables.
51841         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51842         autoreconf.
51843
51844 2006-01-11  Bruno Haible  <bruno@clisp.org>
51845
51846         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51847         overridable by the user.
51848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51849
51850 2006-01-10  Simon Josefsson  <jas@extundo.com>
51851
51852         * modules/sys_socket: New file.
51853
51854 2006-01-10  Simon Josefsson  <jas@extundo.com>
51855
51856         * m4/sys_socket_h.m4: New file.
51857
51858 2006-01-10  Simon Josefsson  <jas@extundo.com>
51859
51860         * lib/socket_.h: New file.
51861
51862 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51863
51864         * modules/readutmp (Maintainer): Add myself.
51865
51866 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51869         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51870         People who are still concerned with buggy memcmp implementations
51871         can invoke gl_FUNC_MEMCMP themselves.
51872
51873 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51874
51875         * lib/regex_internal.h (BITSET_WORD_BITS):
51876         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51877         preprocessor mishandles large unsigned values as if they were signed.
51878         Problem reported by Claudio Fontana in
51879         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51880
51881 2006-01-10  Jim Meyering  <jim@meyering.net>
51882
51883         Avoid the double-free (first in fts_read, second in fts_close) that
51884         would occur when an `active' directory is made inaccessible (e.g.,
51885         via chmod a-x) during a traversal.
51886         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51887         before returning.  Reproduce this failure by
51888         mkdir -p a/b; cd a; chmod a-x . b
51889         Reported by Stavros Passas.
51890
51891         Sync from coreutils.
51892         * lib/sha1.c: Tweak grammar in a comment.
51893
51894 2006-01-10  Jim Meyering  <jim@meyering.net>
51895
51896         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51897         Patch by Joerg Sonnenberger.
51898
51899 2006-01-10  Bruno Haible  <bruno@clisp.org>
51900
51901         * modules/readutmp: Depend on module free.
51902         * modules/strtok_r: Depend on module restrict.
51903
51904 2006-01-10  Bruno Haible  <bruno@clisp.org>
51905
51906         * modules/gettext (configure.ac): Add an invocation of
51907         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51908
51909 2006-01-10  Bruno Haible  <bruno@clisp.org>
51910
51911         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51912         Reported by Werner Lemberg <wl@gnu.org>.
51913
51914 2006-01-10  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/localcharset.c: Update from GNU gettext.
51917
51918 2006-01-10  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/argp.h (__const): Remove macro. Use const instead.
51921         * lib/argp-fmtstream.h (__const): Likewise.
51922         * lib/glob_.h (__const): Remove macro.
51923         * lib/glob-libc.h: Use const instead of __const.
51924
51925 2006-01-10  Bruno Haible  <bruno@clisp.org>
51926
51927         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51928         variable.
51929         Needed to avoid an automake error regarding the 'gettext' module.
51930
51931 2006-01-09  Simon Josefsson  <jas@extundo.com>
51932
51933         * modules/inet_ntop (Depends-on): Add restrict.
51934
51935 2006-01-09  Simon Josefsson  <jas@extundo.com>
51936
51937         * modules/gc-rijndael-tests (License): Put under LGPL.
51938
51939         * modules/gc-des-tests (License): Likewise.
51940
51941         * modules/gc-arcfour-tests (License): Likewise.
51942
51943         * modules/gc-arctwo-tests (License): Likewise.
51944
51945         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51946
51947         * modules/gc-hmac-sha1-tests (Files): Likewise.
51948
51949         * modules/gc-hmac-md5-tests (License): Likewise.
51950
51951         * modules/gc-sha1-tests (License): Likewise.
51952
51953         * modules/gc-md5-tests (License): Likewise.
51954
51955         * modules/gc-md4-tests (License): Likewise.
51956
51957         * modules/gc-md2-tests (License): Likewise.
51958
51959         * modules/gc-tests (License): Likewise.
51960
51961         * modules/des-tests (License): Likewise.
51962
51963         * modules/md4-tests (License): Likewise.
51964
51965         * modules/md2-tests (License): Likewise.
51966
51967 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         Sync from coreutils:
51970
51971         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51972         * modules/lib-ignore: New file.
51973         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51974         chdir-safer.m4, lchmod.m4.
51975         * modules/openat: Add mkdirat.c, openat-priv.h.
51976
51977 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         Sync from coreutils.
51980         * m4/lib-ignore.m4: New file.
51981         * m4/lchmod.m4: New file.
51982
51983 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         Sync from coreutils.
51986         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51987         for write access: POSIX says that must fail.
51988         * lib/fts.c (diropen): Likewise.
51989         * lib/save-cwd.c (save_cwd): Likewise.
51990         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51991         well, for minor improvements on hosts that lack O_DIRECTORY.
51992         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51993         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51994         Fall back on chown if open failed with EACCES.
51995
51996         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51997         Report an error at compile-time if only a 1-second nominal clock
51998         resolution is found.
51999
52000         * lib/lchmod.h: New file.
52001         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52002         (make_dir_parents): Use lchown rather than chown, and
52003         lchmod rather than chmod.
52004
52005         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52006         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52007         "proc" reported by n0dalus.
52008
52009         * lib/mountlist.c: Include <limits.h>.
52010         (dev_from_mount_options)
52011         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52012         New function.  It no longer assumes "dev=" has the System V meaning
52013         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52014         (read_file_system_list)
52015         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52016         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52017         dev= in that case.
52018
52019         * lib/posixtm.h (PDS_PRE_2000): New macro.
52020         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52021         allow_century.  All usages changed.  Reject dates outside the range
52022         1969-1999 if PDS_PRE_2000 is used.
52023
52024 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52025
52026         Sync from coreutils.
52027         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52028         (Time of day items): Mention the possibility of leap seconds.
52029         Problem reported by Dr. David Alan Gilbert.
52030
52031 2006-01-09  Jim Meyering  <jim@meyering.net>
52032
52033         Sync from coreutils.
52034
52035         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52036
52037         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52038
52039         * lib/modechange.c (mode_compile): Reject an invalid mode string
52040         that starts with an octal digit.  From Andreas Gruenbacher.
52041
52042         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52043         and dup to open_safer and dup_safer, respectively.
52044         (openat_permissive): Fix typo in comment.
52045
52046         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52047         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52048         (_): Remove; no longer needed.
52049         (openat): Renamed from rpl_openat; no need for rpl_openat
52050         since openat.h renames openat for us.
52051         Replace most of the body with a call to openat_permissive,
52052         to avoid duplicate code.
52053         Port to (probably hypothetical) environments were mode_t is
52054         wider than int.
52055         (openat_permissive): Require mode arg, so that we can check
52056         types better.  Put it just after flags.  Change cwd failure
52057         indicator from pointer-to-bool to pointer-to-errno-value.
52058         All callers changed.
52059         Invoke openat_save_fail and/or openat_restore_fail if
52060         cwd_errno is null, so that openat can call us.
52061         (openat_permissive, fdopendir, fstatat, unlinkat):
52062         Simplify errno handling to avoid some duplicate code,
52063         as it's OK to set errno on success.
52064         * lib/openat.h: Revamp code so that function macros depend on
52065         __OPENAT_PREFIX only, not also on AT_FDCWD.
52066         (openat_ro): Remove.  Caller changed to use openat_permissive.
52067         (openat_permissive): Now a macro, if not a function.
52068         (openat_restore_fail, openat_save_fail): Now always functions,
52069         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52070
52071         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52072         and openat.c.
52073         * lib/mkdirat.c: Include openat-priv.h.
52074         Remove definitions of macros defined therein.
52075         * lib/openat.c: Likewise.
52076
52077         * lib/mkdirat.c (mkdirat): New file and function.
52078         * lib/openat.h (mkdirat): Declare.
52079
52080         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52081
52082         * lib/openat.h (openat_permissive): Declare.
52083         (openat_ro): Define.
52084
52085         * lib/openat.c (EXPECTED_ERRNO): New macro.
52086         (openat_permissive): New function -- used in remove.c rewrite.
52087         (all functions): Set errno just before returning, only if there
52088         was an actual failure.
52089         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52090
52091         Emulate openat-family functions using Linux's procfs, if possible.
52092         Idea and some code based on Ulrich Drepper's glibc changes.
52093
52094         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52095         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52096         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52097         before falling back on save_cwd and restore_cwd.
52098         (fdopendir, fstatat, unlinkat): Likewise.
52099
52100         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52101         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52102
52103         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52104         as second argument to va_arg.  Otherwise, some versions of gcc
52105         warn that `if this code is reached, the program will abort'.
52106
52107 2006-01-09  Jim Meyering  <jim@meyering.net>
52108
52109         Sync from coreutils.
52110         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52111         Require openat-priv.h.
52112
52113 2006-01-09  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/strnlen (Include): Use strnlen.h.
52116
52117 2006-01-09  Bruno Haible  <bruno@clisp.org>
52118
52119         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52120
52121 2006-01-09  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/sysexit_.h (EX_OK): New macro.
52124         Suggested by Martin Lambers <marlam@marlam.de>.
52125
52126 2006-01-09  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52129         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52130
52131 2006-01-09  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52134         numbers.
52135
52136 2006-01-09  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52139         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52140         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52141         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52142
52143 2006-01-09  Bruno Haible  <bruno@clisp.org>
52144
52145         * build-aux/javacomp.sh.in: New file, moved from lib/.
52146         * modules/javacomp-script (Files): Update.
52147         (configure.ac): Add AC_CONFIG_FILES invocation.
52148         (EXTRA_DIST): Remove variable.
52149
52150         * build-aux/javaexec.sh.in: New file, moved from lib/.
52151         * modules/javaexec (Files): Update.
52152         (configure.ac): Add AC_CONFIG_FILES invocation.
52153         (EXTRA_DIST): Remove javaexec.sh.in.
52154
52155         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52156         * modules/csharpcomp-script (Files): Update.
52157         (configure.ac): Add AC_CONFIG_FILES invocation.
52158         (EXTRA_DIST): Remove variable.
52159
52160         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52161         * modules/csharpexec (Files): Update.
52162         (configure.ac): Add AC_CONFIG_FILES invocation.
52163         (EXTRA_DIST): Remove csharpexec.sh.in.
52164
52165 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52166
52167         Sync from coreutils.
52168
52169         Add POSIX ACL support
52170         * lib/acl.h (copy_acl, set_acl): Add declarations.
52171         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52172         systems other than Linux.
52173         (chmod_or_fchmod): New function: use fchmod when possible,
52174         and chmod otherwise.
52175         (file_has_acl): Add a POSIX ACL implementation, with a
52176         Linux-specific subcase.
52177         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52178         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52179         acls are unsupported.
52180         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52181         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52182         are unsupported.
52183
52184 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52185
52186         Sync from coreutils.
52187         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52188
52189 2006-01-07  Bruno Haible  <bruno@clisp.org>
52190
52191         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52192         gl_EARLY.
52193
52194 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52195
52196         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52197         Problem reported for Mingw by Mark Junker.
52198
52199 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52200
52201         * README: Gnulib normally doesn't generate a tarball.
52202
52203 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52204
52205         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52206         long int, not int, for nanosecond counts, so that people who are
52207         used to POSIX struct timespec won't be surprised.  Reported by Jim
52208         Meyering.
52209
52210 2005-12-28  Bruno Haible  <bruno@clisp.org>
52211
52212         * build-aux/config.rpath: Update from GNU gettext.
52213
52214 2005-12-16  Jim Meyering  <jim@meyering.net>
52215
52216         * modules/fprintftime: New module.
52217         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52218
52219 2005-12-16  Jim Meyering  <jim@meyering.net>
52220
52221         * m4/fprintftime.m4: New file.
52222
52223 2005-12-16  Jim Meyering  <jim@meyering.net>
52224
52225         * lib/fprintftime.c, lib/fprintftime.h: New files.
52226
52227 2005-12-15  Simon Josefsson  <jas@extundo.com>
52228
52229         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52230         new m4/socklen.m4.
52231
52232 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52233
52234         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52235         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52236
52237 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52238
52239         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52240         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52241         struct uparams is valid. Fall back to the default values if it is
52242         not.
52243
52244 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52245
52246         * modules/argp (Files): Add argp-pin.c
52247         (Depends-on): dirname
52248         (lib_SOURCES): Add argp-pin.c
52249
52250 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52251
52252         * m4/argp.m4:  Check if program_invocation_name and
52253         program_invocation_short_name are declared and define appropriate
52254         macros if they are not.
52255
52256 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52257
52258         * lib/argp-help.c (__argp_base_name): New function
52259         (__argp_short_program_name): Rewrite using __argp_base_name
52260         * lib/argp-namefrob.h: Define program_invocation_name and
52261         program_invocation_short_name if requested
52262         (__argp_base_name): Add prototype
52263         * lib/argp-parse.c (argp_def): Use gettext wrappers
52264         (argp_default_parser): Use __argp_base_name
52265         * lib/argp-pin.c: New file. Defines program_invocation_name and
52266         program_invocation_short_name on systems that lack them.
52267
52268 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52271         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52272         porting problem reported by Georg Schwarz in
52273         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52274
52275 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52276
52277         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52278         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52279         porting problem reported by Georg Schwarz in
52280         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52281
52282 2005-12-05  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52285         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52286         Reported by Mark Junker <mjscod@gmx.de>.
52287
52288 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52291         Use implementation from Albert Chin, with some
52292         comments/corrections by Stepan Kasal and myself.
52293
52294 2005-12-02  Bruno Haible  <bruno@clisp.org>
52295
52296         * gnulib-tool (func_import): Accept GPLed build tool modules when
52297         --lgpl is given.
52298         * modules/csharpcomp-script: New file.
52299         * modules/csharpcomp: Depend on it.
52300         * modules/javacomp-script: New file.
52301         * modules/javacomp: Depend on it.
52302         Suggested by Simon Josefsson.
52303
52304 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52305
52306         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52307         statement, to work around an HP-UX 10.20 compiler bug reported by
52308         Peter O'Gorman.
52309
52310 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52311
52312         * modules/savedir (Depends-on): Add openat.
52313
52314 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52315
52316         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52317         (uintmax_t) [defined uintmax_t]: Do not declare.
52318         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52319         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52320         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52321         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52322         sake of portability to weird hosts that C allows (though we don't
52323         know of any practical examples).
52324
52325         * lib/savedir.h (fdsavedir): New decl.
52326         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52327         contains most of the former guts of savedir.
52328         (savedir): Use savedirstream.
52329         Include "openat.h".
52330
52331 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52332
52333         * modules/obstack (Files): Add m4/ulonglong.m4.
52334         Problem reported by Davide Angelocola.
52335
52336 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52339         coreutils no longer futzes with rounding modes.
52340
52341 2005-11-14  Jim Meyering  <jim@meyering.net>
52342
52343         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52344         replacement of mkstemp.
52345
52346 2005-11-10  Simon Josefsson  <jas@extundo.com>
52347
52348         * lib/readline.c: Remove EOL.
52349
52350 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52351
52352         * modules/gethrxtime (Depends-on): Add gettime.
52353
52354 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52355
52356         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52357         or gettimeofday; no longer needed.
52358
52359 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52362         time business.
52363         (gethrxtime) [! (HAVE_NANOUPTIME
52364         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52365         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52366         our own approximation.
52367
52368 2005-11-08  Eric Blake  <ebb9@byu.net>
52369
52370         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52371
52372 2005-11-08  Eric Blake  <ebb9@byu.net>
52373
52374         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52375
52376 2005-11-04  Bruno Haible  <bruno@clisp.org>
52377
52378         * gnulib-tool: Implement --update mode.
52379
52380 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52381
52382         Fix porting problem reported by Theodoros V. Kalamatianos.
52383         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52384         Don't assume that futimes failing means we must fail.
52385
52386 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52387
52388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52389         variables to suggest the intended function of the PATH_MAX check.
52390
52391 2005-10-30  Kean Johnston  <jkj@sco.com>
52392
52393         Trivial changes to support SCO systems.
52394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52395         as PATH_MAX.
52396         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52397         where __ptr is null when no I/O is pending.
52398
52399 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52402         leave errno alone.  Problem reported by Dmitry V. Levin.
52403
52404 2005-10-28  Simon Josefsson  <jas@extundo.com>
52405
52406         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52407         Test more.
52408
52409         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52410
52411         * modules/md2, modules/md2-tests: New files.
52412
52413 2005-10-28  Simon Josefsson  <jas@extundo.com>
52414
52415         * m4/inet_ntop.m4: More tests.
52416
52417         * m4/gc-md2.m4, md2.m4: New file.
52418
52419 2005-10-28  Simon Josefsson  <jas@extundo.com>
52420
52421         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52422         "restrict" keywords, as per POSIX.  Protect the function
52423         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52424         Don't use K&R prototypes.  Check the sprintf return values.
52425         Re-define EAFNOSUPPORT if not present.  Indent.
52426
52427         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52428         suggested by Bruno Haible <bruno@clisp.org>.
52429
52430         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52431
52432         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52433
52434         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52435         libgcrypt).
52436
52437         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52438
52439         * lib/md2.h, lib/md2.c: New files.
52440
52441 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52444         errno alone.  Problem reported by Frederic Jolliton.
52445
52446 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * modules/verify (License): Change from GPL to LGPL.  This is a
52449         tiny module and there are apparently near-equivalents that are
52450         under the BSD license.
52451
52452 2005-10-24  Simon Josefsson  <jas@extundo.com>
52453
52454         * modules/sha1: Relicense to LGPL.
52455
52456 2005-10-24  Simon Josefsson  <jas@extundo.com>
52457
52458         * lib/md4.h: Shrink buffer size, now that we changed the type.
52459
52460 2005-10-23  Simon Josefsson  <jas@extundo.com>
52461
52462         * gnulib-tool (func_import): Fix --tests-base.
52463
52464 2005-10-22  Simon Josefsson  <jas@extundo.com>
52465
52466         * modules/arcfour (Depends-on): Need stdint.
52467
52468 2005-10-22  Simon Josefsson  <jas@extundo.com>
52469
52470         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52471         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52472
52473 2005-10-22  Simon Josefsson  <jas@extundo.com>
52474
52475         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52476         suggested by Bruno Haible <bruno@clisp.org>.
52477
52478 2005-10-22  Simon Josefsson  <jas@extundo.com>
52479
52480         * lib/crc.h: Include stddef.h, for size_t.
52481
52482 2005-10-22  Simon Josefsson  <jas@extundo.com>
52483
52484         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52485         arcfour_context struct (simplify test vector testing in GNU
52486         Shishi).
52487
52488 2005-10-21  Simon Josefsson  <jas@extundo.com>
52489
52490         * modules/des, modules/des-tests: New files.
52491
52492         * modules/gc-des, modules/gc-des-tests: New files.
52493
52494         * tests/test-des.c, tests/test-gc-des.c: New file.
52495
52496 2005-10-21  Simon Josefsson  <jas@extundo.com>
52497
52498         * modules/arctwo, modules/arctwo-tests: New files.
52499
52500         * tests/test-arctwo.c: New file.
52501
52502         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52503
52504         * tests/test-gc-arctwo.c: New file.
52505
52506 2005-10-21  Simon Josefsson  <jas@extundo.com>
52507
52508         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52509         Bruno Haible <bruno@clisp.org>.
52510
52511         * m4/gc-des.m4: New file.
52512
52513 2005-10-21  Simon Josefsson  <jas@extundo.com>
52514
52515         * m4/arctwo.m4: New file.
52516
52517         * m4/gc-arctwo.m4: New file.
52518
52519 2005-10-21  Simon Josefsson  <jas@extundo.com>
52520
52521         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52522         block.
52523
52524 2005-10-21  Simon Josefsson  <jas@extundo.com>
52525
52526         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52527         <bruno@clisp.org>.
52528
52529         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52530
52531         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52532         Bruno Haible <bruno@clisp.org>.
52533
52534         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52535         <bruno@clisp.org>.
52536
52537 2005-10-21  Simon Josefsson  <jas@extundo.com>
52538
52539         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52540
52541 2005-10-21  Simon Josefsson  <jas@extundo.com>
52542
52543         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52544
52545 2005-10-21  Simon Josefsson  <jas@extundo.com>
52546
52547         * lib/des.h, lib/des.c: New files.
52548
52549         * lib/gc-gnulib.c: Support DES.c
52550
52551 2005-10-21  Simon Josefsson  <jas@extundo.com>
52552
52553         * lib/arctwo.h, lib/arctwo.c: New files.
52554
52555         * lib/gc-gnulib.c: Support ARCTWO.
52556
52557 2005-10-21  Simon Josefsson  <jas@extundo.com>
52558
52559         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52560         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52561
52562 2005-10-21  Simon Josefsson  <jas@extundo.com>
52563
52564         * gnulib-tool (func_import, func_create_testdir): Define automake
52565         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52566         Makefile.am snippet),
52567         suggested by Bruno Haible <bruno@clisp.org>.
52568
52569         * modules/gc (Makefile.am): Use it.
52570
52571 2005-10-21  Bruno Haible  <bruno@clisp.org>
52572
52573         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52574         patch.
52575
52576 2005-10-19  Simon Josefsson  <jas@extundo.com>
52577
52578         * tests/test-gc-rijndael.c: New file.
52579
52580         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52581
52582 2005-10-19  Simon Josefsson  <jas@extundo.com>
52583
52584         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52585         interface too.
52586
52587 2005-10-19  Simon Josefsson  <jas@extundo.com>
52588
52589         * tests/test-gc-arcfour.c: New file.
52590
52591         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52592
52593 2005-10-19  Simon Josefsson  <jas@extundo.com>
52594
52595         * modules/gc-md4, modules/gc-md4-tests: New file.
52596
52597         * tests/test-gc-md4.c: New file.
52598
52599 2005-10-19  Simon Josefsson  <jas@extundo.com>
52600
52601         * m4/gc-md4.m4: New file.
52602
52603 2005-10-19  Simon Josefsson  <jas@extundo.com>
52604
52605         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52606         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52607         <kasal@ucw.cz>.
52608
52609 2005-10-19  Simon Josefsson  <jas@extundo.com>
52610
52611         * m4/gc-arcfour.m4: New file.
52612
52613         * m4/gc-rijndael.m4: New file.
52614
52615 2005-10-19  Simon Josefsson  <jas@extundo.com>
52616
52617         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52618
52619 2005-10-19  Simon Josefsson  <jas@extundo.com>
52620
52621         * lib/gc-gnulib.c: Support ARCFOUR.
52622
52623 2005-10-19  Simon Josefsson  <jas@extundo.com>
52624
52625         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52626         support.
52627
52628         * lib/gc.h: Add ECB enum type.
52629
52630         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52631
52632 2005-10-18  Simon Josefsson  <jas@extundo.com>
52633
52634         * tests/test-md5.c: New file.
52635
52636         * modules/md5-tests: New file.
52637
52638 2005-10-18  Simon Josefsson  <jas@extundo.com>
52639
52640         * tests/test-md4.c: New file.
52641
52642         * modules/md4, modules/md4-tests: New files.
52643
52644 2005-10-18  Simon Josefsson  <jas@extundo.com>
52645
52646         * m4/md4.m4: New file.
52647
52648 2005-10-18  Simon Josefsson  <jas@extundo.com>
52649
52650         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52651
52652 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52653
52654         * gnulib-tool (func_create_testdir): Omit the second check whether
52655         BUILT_SOURCES in nonempty.
52656
52657 2005-10-17  Simon Josefsson  <jas@extundo.com>
52658
52659         * tests/test-rijndael.c: New file.
52660
52661 2005-10-17  Simon Josefsson  <jas@extundo.com>
52662
52663         * modules/sha1: Depend on stdint instead of md5.
52664
52665         * modules/md5: Depend on stdint, remove uint32_t.
52666
52667 2005-10-17  Simon Josefsson  <jas@extundo.com>
52668
52669         * modules/gc-sha1-tests: New file.
52670
52671         * tests/test-gc-sha1.c: New file.
52672
52673 2005-10-17  Simon Josefsson  <jas@extundo.com>
52674
52675         * m4/md5.m4: Remove call to uint32_t.m4.
52676
52677 2005-10-17  Simon Josefsson  <jas@extundo.com>
52678
52679         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52680
52681         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52682         md5.h.
52683
52684         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52685
52686         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52687
52688 2005-10-17  Simon Josefsson  <jas@extundo.com>
52689
52690         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52691
52692 2005-10-17  Simon Josefsson  <jas@extundo.com>
52693
52694         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52695
52696 2005-10-17  Simon Josefsson  <jas@extundo.com>
52697
52698         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52699
52700         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52701
52702 2005-10-17  Bruno Haible  <bruno@clisp.org>
52703
52704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52705         that it can also be used in a test.
52706
52707 2005-10-16  Bruno Haible  <bruno@clisp.org>
52708
52709         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52710         TESTS_ENVIRONMENT, so that individual tests can augment it.
52711
52712         * gnulib-tool (func_create_testdir): Use an intermediate target for
52713         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52714         macros, like $(ALLOCA_H), which cannot be passed through the command
52715         line.
52716
52717 2005-10-15  Simon Josefsson  <jas@extundo.com>
52718
52719         * modules/rijndael-tests: New file.
52720
52721         * modules/rijndael: New file.
52722
52723 2005-10-15  Simon Josefsson  <jas@extundo.com>
52724
52725         * m4/rijndael.m4: New file.
52726
52727 2005-10-15  Simon Josefsson  <jas@extundo.com>
52728
52729         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52730
52731         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52732
52733 2005-10-14  Simon Josefsson  <jas@extundo.com>
52734
52735         * tests/test-arcfour.c: New file.
52736
52737         * modules/arcfour, modules/arcfour-tests: New files.
52738
52739 2005-10-14  Simon Josefsson  <jas@extundo.com>
52740
52741         * m4/arcfour.m4: New file.
52742
52743 2005-10-14  Simon Josefsson  <jas@extundo.com>
52744
52745         * lib/arcfour.h, lib/arcfour.c: New files.
52746
52747 2005-10-14  Roland McGrath  <roland@redhat.com>
52748
52749         Import from libc.  [BZ #1331]
52750         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52751         macro argument.
52752         Reported by Matej Vela <vela@debian.org>.
52753
52754 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52757         include <wchar.h>; no longer needed.
52758
52759 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52762
52763 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52764         and  Ulrich Drepper  <drepper@redhat.com>
52765
52766         Import from libc.
52767         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52768         instead of inline stream orientation test and two separate
52769         function calls.  Pay no attention to USE_IN_LIBIO.
52770
52771 2005-10-13  Simon Josefsson  <jas@extundo.com>
52772
52773         * modules/gc-hmac-md5-tests: New file.
52774
52775         * tests/test-gc-hmac-sha1.c: New file.
52776
52777         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52778
52779         * modules/gc-hmac-md5-tests: New file.
52780
52781         * tests/test-gc-md5.c: New file.
52782
52783         * modules/gc-md5-tests: New file.
52784
52785 2005-10-13  Simon Josefsson  <jas@extundo.com>
52786
52787         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52788         Move memory allocation outside of loop.
52789
52790 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52793         intermediate directory is in a read-only file system.  Problem
52794         reported by Eric Blake.
52795
52796 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52797
52798         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52799
52800 2005-10-12  Simon Josefsson  <jas@extundo.com>
52801
52802         * tests/test-hmac-sha1.c: New file.
52803
52804         * modules/hmac-sha1-tests: New file.
52805
52806         * modules/hmac-sha1: New file.
52807
52808 2005-10-12  Simon Josefsson  <jas@extundo.com>
52809
52810         * modules/gc-sha1: New file.
52811
52812 2005-10-12  Simon Josefsson  <jas@extundo.com>
52813
52814         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52815
52816         * tests/test-gc-pbkdf2-sha1.c: New file.
52817
52818 2005-10-12  Simon Josefsson  <jas@extundo.com>
52819
52820         * modules/gc-md5, modules/gc-hmac-md5: New files.
52821
52822         * modules/gc (Files): Remove md5, memxor and hmac files.
52823
52824 2005-10-12  Simon Josefsson  <jas@extundo.com>
52825
52826         * m4/gc-pbkdf2-sha1.m4: New file.
52827
52828         * m4/gc-hmac-sha1.m4: New file.
52829
52830         * m4/gc-sha1: New file.
52831
52832         * m4/hmac-sha1.m4: New file.
52833
52834 2005-10-12  Simon Josefsson  <jas@extundo.com>
52835
52836         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52837
52838         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52839
52840 2005-10-12  Simon Josefsson  <jas@extundo.com>
52841
52842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52843         suggested by Bruno Haible <bruno@clisp.org>.
52844
52845 2005-10-12  Simon Josefsson  <jas@extundo.com>
52846
52847         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52848
52849 2005-10-12  Simon Josefsson  <jas@extundo.com>
52850
52851         * lib/gc-pbkdf2-sha1.c: New file.
52852
52853         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52854
52855 2005-10-12  Simon Josefsson  <jas@extundo.com>
52856
52857         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52858
52859         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52860
52861 2005-10-12  Simon Josefsson  <jas@extundo.com>
52862
52863         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52864         GC_USE_HMAC_MD5, respectively.
52865
52866         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52867         (gc_md5): Fix typo.
52868
52869         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52870
52871         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52872
52873         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52874
52875 2005-10-12  Bruno Haible  <bruno@clisp.org>
52876
52877         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52878         Reported by Stepan Kasal <kasal@ucw.cz>.
52879
52880 2005-10-11  Simon Josefsson  <jas@extundo.com>
52881
52882         * tests/test-crc.c: New file.
52883
52884         * modules/crc, modules/crc-tests: New files.
52885
52886 2005-10-11  Simon Josefsson  <jas@extundo.com>
52887
52888         * m4/crc.m4: New file.
52889
52890 2005-10-11  Simon Josefsson  <jas@extundo.com>
52891
52892         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52893
52894         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52895
52896         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52897
52898 2005-10-11  Simon Josefsson  <jas@extundo.com>
52899
52900         * lib/crc.h, lib/crc.c: New files.
52901
52902         * lib/gc.h (gc_hash_buffer): Add doc.
52903
52904 2005-10-11  Bruno Haible  <bruno@clisp.org>
52905
52906         * modules/c-strcasestr: New file.
52907         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52908
52909 2005-10-11  Bruno Haible  <bruno@clisp.org>
52910
52911         * modules/c-strcase: New file.
52912         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52913
52914 2005-10-11  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/strcasecmp.c: Include limits.h.
52917         (strcasecmp): Avoid integer overflow on exotic platforms.
52918         * lib/strncasecmp.c: Include limits.h.
52919         (strncasecmp): Avoid integer overflow on exotic platforms.
52920         Reported by Paul Eggert.
52921
52922 2005-10-11  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/c-strcasestr.h: New file, from GNU gettext.
52925         * lib/c-strcasestr.c: New file, from GNU gettext.
52926
52927 2005-10-11  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/c-strcase.h: New file, from GNU gettext.
52930         * lib/c-strcasecmp.c: New file, from GNU gettext.
52931         * lib/c-strncasecmp.c: New file, from GNU gettext.
52932
52933 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * modules/mempcpy (License): GPL -> LGPL.
52936         * modules/strchrnul (License): Likewise.
52937         * modules/sysexits (License): Likewise.
52938
52939 2005-10-08  Simon Josefsson  <jas@extundo.com>
52940
52941         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52942
52943 2005-10-07  Simon Josefsson  <jas@extundo.com>
52944
52945         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52946
52947 2005-10-06  Simon Josefsson  <jas@extundo.com>
52948
52949         * tests/test-hmac-md5.c: New file.
52950
52951         * modules/hmac-md5-tests: New file.
52952
52953         * modules/hmac-md5: New file.
52954
52955 2005-10-06  Simon Josefsson  <jas@extundo.com>
52956
52957         * m4/hmac-md5.m4: New file.
52958
52959         * m4/memxor.m4: Require gl_C_RESTRICT.
52960
52961 2005-10-06  Simon Josefsson  <jas@extundo.com>
52962
52963         * lib/memxor.c (memxor): Avoid casts and warnings.
52964
52965 2005-10-06  Simon Josefsson  <jas@extundo.com>
52966
52967         * lib/hmac-md5.c: New file.
52968
52969         * lib/hmac.h: New file.
52970
52971 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52974         promotes to int, not unsigned int, to catch the AIX 5.3
52975         compiler bug.
52976
52977 2005-10-05  Simon Josefsson  <jas@extundo.com>
52978
52979         * modules/memxor: New file.
52980
52981         * modules/iconv (Files): Move config.rpath to havelib, it is used
52982         there.
52983
52984         * modules/havelib (Files): Add config.rpath.
52985
52986 2005-10-05  Simon Josefsson  <jas@extundo.com>
52987
52988         * m4/memxor.m4: New file.
52989
52990 2005-10-05  Simon Josefsson  <jas@extundo.com>
52991
52992         * lib/memxor.c (memxor): Fix compiler error.
52993
52994         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52995         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52996
52997         * lib/memxor.h, lib/memxor.c: New files.
52998
52999         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53000         we assume all systems have it, suggested by Jim Meyering
53001         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53002         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53003         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53004         same reasons.
53005
53006 2005-10-05  Simon Josefsson  <jas@extundo.com>
53007
53008         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53009
53010 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53013         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53014         needed, since the source code now assumes these .h files.
53015
53016 2005-10-05  Derek Price  <derek@ximbiot.com>
53017
53018         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53019
53020 2005-10-05  Bruno Haible  <bruno@clisp.org>
53021
53022         * modules/stdint (License): Change to LGPL.
53023
53024 2005-10-04  Simon Josefsson  <jas@extundo.com>
53025
53026         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53027         D. Baushke" <mdb@gnu.org>.
53028
53029 2005-10-04  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/verify.h (verify_true): Provide alternative definition for C++.
53032
53033 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53034
53035         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53036         (SSIZE_MAX): New macro, if not already defined.
53037         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53038         than 2 GiB.
53039
53040 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         Sync from coreutils.
53043         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53044         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53045         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53046         ULLONG_MAX doesn't work with 2.7.2.1.
53047
53048 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53051         From Ben Pfaff.
53052
53053         * modules/exclude (Depends-on): Depend on verify.
53054         * modules/strtoimax (Depends-on): Likewise.
53055         * modules/utimecmp (Depends-on): Likewise.
53056
53057 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53058
53059         * lib/exclude.c: Include verify.h.
53060         (verify): Remove.  All callers changed to use verify.h's version.
53061         * lib/strtoimax.c: Likewise.
53062         * lib/utimecmp.c: Likewis.e
53063
53064         Sync from coreutils.
53065         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53066         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53067         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53068         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53069         bother returning ENOSYS if settimeofday or stime fails; just let
53070         them return whatever errno they want to return.
53071         * lib/utimens.c: Include unistd.h, for dup2.
53072         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53073         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53074
53075 2005-10-02  Jim Meyering  <jim@meyering.net>
53076
53077         Sync from coreutils.
53078         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53079         from glibc-2.2.5 that fails for read-only files.
53080
53081 2005-10-02  Jim Meyering  <jim@meyering.net>
53082
53083         Sync from coreutils.
53084         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53085         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53086         `#if HAVE_CONFIG_H'.
53087         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53088         Remove AT_FDCWD test.
53089         Do not consume the fd unless successful.
53090         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53091         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53092         block, so that we don't even try to compile it if settimeofday is
53093         available.  This works around a compilation failure on OSF1 V5.1,
53094         due to stime requiring a `long int*' while tv_sec is `int'.
53095
53096 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53097
53098         Sync from coreutils.
53099         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53100         against `yes', rather than just testing for nonempty.
53101
53102 2005-10-01  Simon Josefsson  <jas@extundo.com>
53103
53104         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53105         and Darwin.
53106
53107         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53108         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53109         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53110         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53111         Check if struct addrinfo is declared.
53112
53113 2005-10-01  Simon Josefsson  <jas@extundo.com>
53114
53115         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53116         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53117         AI_* and EAI_* definitions.  Protect function declarations.
53118
53119 2005-10-01  Jim Meyering  <jim@meyering.net>
53120
53121         Sync from coreutils.
53122
53123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53124         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53125         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53127         in the inet and nsl libraries.  Required on Solaris 5.7.
53128
53129 2005-10-01  Jim Meyering  <jim@meyering.net>
53130
53131         Sync from coreutils.
53132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53133         in the inet and nsl libraries.  Required on Solaris 5.7.
53134
53135 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53136
53137         * lib/getdelim.c (getdelim): Remove unused variables.
53138
53139 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53142         so that the code works even with ancient cpp.  Portability problem
53143         with GCC 2.7.2.1 reported by Thomas M.Ott.
53144
53145 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53146
53147         * modules/regex (Depends-on): Add strcase.
53148
53149         * modules/gethostname (Licence): Change from GPL to LGPL, since
53150         gethostname.c is a trivial implementation of a standard library
53151         function.
53152         * modules/poll (License): Change from GPL to LGPL, since it's
53153         derived from LGPL code.
53154
53155 2005-09-27  Jim Meyering  <jim@meyering.net>
53156
53157         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53158         HAVE_CONFIG_H.
53159
53160         * lib/intprops.h (signed_type_or_expr__): Define.
53161         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53162         for unsigned types.
53163
53164 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * lib/verify.h (verify_expr): Remove, replacing with:
53167         (verify_true): New macro that returns true instead of void.
53168         (verify_type__): Remove.
53169         (verify): Use verify_true rather than verify_type__.
53170
53171 2005-09-26  Bruno Haible  <bruno@clisp.org>
53172
53173         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53174         is necessary.
53175         (lib_SOURCES): Remove mbchar.c.
53176         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53177         (Files): Add m4/mbrtowc.m4.
53178         * modules/mbiter: Likewise.
53179         * modules/mbuiter: Likewise.
53180
53181 2005-09-26  Bruno Haible  <bruno@clisp.org>
53182
53183         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53184         compile mbchar.c if they are not both present.
53185         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53186         * m4/mbiter.m4 (gl_MBITER): Likewise.
53187         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53188         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53189         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53190
53191 2005-09-25  Jim Meyering  <jim@meyering.net>
53192
53193         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53194         also uses socklen_t.
53195
53196 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         * lib/utimens.c (ENOSYS): Define if not already defined.
53199         (futimens): Support having a null PATH if the file descriptor
53200         is nonnegative.
53201
53202         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53203         Remove.
53204         (__attribute): Define to empty unless GCC 3.1 or later.
53205         This works around a core dump on OpenBSD 3.4, which has GCC
53206         2.95.3, which dumps core when given __attribute__(()).  It also
53207         simplifies other tests, since we really don't want to bother with
53208         worrying about which ancient version of GCC supported what.
53209         Original problem reported by Yoann Vandoorselaere, with part of
53210         the fix suggested by Derek Price.
53211
53212 2005-09-24  Jim Meyering  <jim@meyering.net>
53213
53214         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53215         so we can once again use a positive bitfield width of 1 -- now we
53216         don't have to explain why we were using a bitfield width of 2.
53217
53218 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53219
53220         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53221         and similarly for the other external symbols.  Problem reported
53222         by James Gallager.
53223
53224         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53225         bug reported by Jim Meyering.
53226
53227         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53228         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53229         not needed, since socklen is a prerequisite module.
53230
53231 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53234         Problem reported by Eric Blake.
53235         (getaddrinfo): Initialize se so that it's not garbage.
53236         Redo internal storage allocation so that it doesn't make unportable
53237         assumptions about alignment.
53238         Fix a memory leak.
53239
53240         * lib/utimens.c (futimens): Use futimesat if available.
53241         Prefer it to futimes since it doesn't have the futimes bug.
53242
53243         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53244         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53245         Instead, declare a function that returns a pointer to an array,
53246         and use verify_type__ to declare the size of the array.
53247         Problem and germ of a solution reported by Bruno Haible.
53248         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53249         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53250
53251 2005-09-23  Jim Meyering  <jim@meyering.net>
53252
53253         Sync from coreutils.
53254         Correct build failure (socklen_t not defined) on at least
53255         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53257
53258 2005-09-23  Jim Meyering  <jim@meyering.net>
53259
53260         * modules/getaddrinfo (Depends-on): Add socklen.
53261
53262 2005-09-23  Bruno Haible  <bruno@clisp.org>
53263
53264         * tests/test-verify.c: New file.
53265
53266 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         Sync from coreutils.
53269
53270         * modules/argmatch (Depends-on): Add verify.
53271         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53272         unistd-safer.
53273         * modules/save-cwd (Depends-on): Likewise.
53274
53275         * modules/openat (Files): Add lib/openat-die.c.
53276         (Depends-on): Remove error, exitfail.
53277         Add dirname.
53278
53279         * modules/verify: New file.
53280         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53281         with "verify" module.
53282
53283 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         Sync from coreutils.
53286
53287         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53288         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53289         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53290         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53291         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53292         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53293         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53294         Don't bother checking for string.h, stdlib.h, unistd.h.
53295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53296         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53297         module's job.
53298         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53299         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53300
53301         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53302         (gl_GETDATE): Use it.
53303
53304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53305
53306 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         Sync from coreutils.
53309
53310         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53311         stat-time.h.
53312         * lib/argmatch.h: Include verify.h
53313         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53314         (ARGMATCH_ASSERT): Remove; unused.
53315         * lib/canonicalize.c: Assume STDC_HEADERS.
53316         * lib/exclude.c: Include "strcase.h".
53317         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53318         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53319         and stdio-safer.h.
53320         (getusershell): Call fopen, not fopen_safer.
53321         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53322         Do not include unistd-safer.h.
53323         (save_cwd): Don't call fd_safer; no longer needed
53324         now that we include fcntl--.h.
53325
53326         * lib/getdate.y (relative_time): New type.
53327         (RELATIVE_TIME_0): New constant.
53328         (parser_control): Use relative_time instead of doing it ourselves.
53329         (%union): Add new relative_time rel member.
53330         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53331         Now typeless.
53332         (relunit, relunit_snumber): Now of type rel.
53333         (zone, rel, relunit, get_date): Adjust to above changes.
53334
53335         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53336         Do not include unistd-safer.h.
53337         (getloadavg): Don't call fd_safer; no longer needed
53338         now that we include fcntl--.h.
53339
53340         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53341         (make_dir_parents): Treat ENOSYS like EEXIST.
53342
53343         Improve quality of diagnostics on restore_cwd failure.
53344         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53345         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53346         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53347         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53348         each time through the loop.  Do not diagnose restore_cwd failure;
53349         that is the caller's job (and perhaps the caller does not care).
53350
53351         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53352         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53353         If the file already exists but is not a directory, don't bother
53354         to try to make its parents.
53355         Close potential file descriptor leak if we can't chdir("/") (!).
53356         Don't always return true if chdir($PWD) fails; return true only
53357         if the requested action was done successfully (except for the
53358         chdir($PWD)).
53359         Don't log final directory unless we actually made it.
53360         Refactor to avoid duplicate code to fix up permissions.
53361         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53362
53363         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53364         to make it a bit faster and (I hope) clearer.
53365         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53366         Fix bug in formats like %2N.
53367
53368         * lib/verify.h: New file.
53369
53370 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53371
53372         Sync from coreutils.
53373         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53374
53375 2005-09-22  Jim Meyering  <jim@meyering.net>
53376
53377         Sync from coreutils.
53378
53379         * m4/lstat.m4 (gl_FUNC_LSTAT):
53380         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53381         Remove obsolete comment.
53382         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53383         * m4/xstrtod.m4: Likewise.
53384
53385         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53386
53387 2005-09-22  Jim Meyering  <jim@meyering.net>
53388
53389         Sync from coreutils.
53390
53391         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53392
53393         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53394         the .tm_year member, since otherwise gcc-4.0 would now warn about
53395         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53396
53397         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53398         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53399
53400         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53401         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53402         when run in a time zone for which daylight savings time is in effect
53403         for the starting date.
53404
53405         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53406         stop us from restricting permissions of just-created absolute-named
53407         directories.
53408         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53409         to restore initial working directory.
53410         * lib/mkdir-p.c (make_dir_parents): New parameter:
53411         different_working_dir, to tell caller if/when we change the working
53412         directory and are unable to return to the initial one.
53413         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53414         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53415         `return false'.  This fixes a bug introduced on 2004-07-30.
53416
53417         * lib/openat.c (fdopendir): Be sure to close the supplied
53418         file descriptor before returning.  This makes our replacement
53419         implementation a little closer to Solaris's, where fdopendir
53420         ties the file descriptor to the returned DIR* pointer.
53421         * lib/openat.c (unlinkat): New function.
53422         * lib/openat.h (unlinkat): Add prototype.
53423         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53424         (openat_restore_fail): Rename from openat_restore_die.
53425         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53426
53427         Provide an alternative to exiting immediately upon save_cwd or
53428         restore_cwd failure.  Now, an application can arrange e.g.,
53429         to perform a longjump in that case.
53430         * lib/openat.c: Include dirname.h.
53431         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53432         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53433         and openat_restore_die rather than calling error directly.
53434         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53435
53436         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53437         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53438         define.
53439
53440         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53441         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53442                             int utc, int nanoseconds);
53443         Background:
53444         date should not have to allocate a megabyte of virtual memory to
53445         handle a format argument like +%1048575T.  When implemented with
53446         strftime, it must allocate such a buffer, use strftime to fill it
53447         in, print it, then free it.
53448         With fprintftime, it simply prints everything and exits.
53449         With no need for memory allocation, that's one fewer way to fail.
53450         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53451         optional field width, not before, so we accept %9:z, not %:9z.
53452         (my_strftime): Be sure to use L_('x') for literals.
53453
53454         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53455         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53456         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53457         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53458         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53459         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53460         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53461         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53462         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53463         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53464         * lib/xgethostname.c, lib/xreadlink.c:
53465         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53466
53467         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53468         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53469         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53470         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53471         and don't include <sys/file.h>).
53472
53473 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53474
53475         Sync from coreutils.
53476
53477         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53478         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53479         [!LDAV_DONE]: Avoid unused variable warning.
53480
53481 2005-09-21  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/unicodeio.h (unicode_to_mb): New declaration.
53484
53485 2005-09-20  Derek Price  <derek@ximbiot.com>
53486
53487         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53488         getaddrinfo.h.
53489
53490 2005-09-20  Bruno Haible  <bruno@clisp.org>
53491
53492         * gnulib-tool: Remove trailing slashes from the values specified for
53493         --source-base, --m4-base, --tests-base, --aux-dir.
53494         Suggested by Simon Josefsson <jas@extundo.com>.
53495
53496 2005-09-20  Bruno Haible  <bruno@clisp.org>
53497
53498         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53499         func_modules_to_filelist, func_import, func_create_testdir): Make all
53500         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53501         change when gnulib-tool is invoked in a different locale.
53502
53503 2005-09-19  Simon Josefsson  <jas@extundo.com>
53504
53505         * m4/socklen.m4: Fix typo.
53506
53507 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53508
53509         Use a consistent style for including <config.h>.
53510         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53511         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53512         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53513         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53514         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53515         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53516         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53517         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53518         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53519         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53520         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53521         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53522         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53523         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53524         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53525         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53526         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53527         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53528         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53529         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53530         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53531         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53532         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53533         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53534         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53535         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53536         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53537         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53538         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53539         lib/xstrtoumax.c, lib/yesno.c:
53540         Standardize inclusion of config.h.
53541         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53542         lib/inttostr.h:  Removed inclusion of config.h from header files.
53543         * lib/inttostr.c:  Adjusted in-tree users.
53544         * lib/timespec.h: Remove superfluous warning to include config.h.
53545         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53546         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53547         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53548         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53549         config.h with HAVE_CONFIG_H.
53550
53551 2005-09-19  Jim Meyering  <jim@meyering.net>
53552
53553         * modules/pathmax (License): Change to LGPL.
53554
53555 2005-09-19  Derek Price  <derek@ximbiot.com>
53556
53557         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53558
53559 2005-09-19  Bruno Haible  <bruno@clisp.org>
53560
53561         * gnulib-tool (import): Provide default for --tests-base.
53562
53563 2005-09-19  Bruno Haible  <bruno@clisp.org>
53564
53565         * doc/quote.texi: New file, extracted from gnulib.texi.
53566         * doc/ctime.texi: New file, extracted from gnulib.texi.
53567         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53568         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53569         * doc/gnulib.texi: Include them.
53570
53571 2005-09-18  Bruno Haible  <bruno@clisp.org>
53572
53573         Portability fix.
53574         * gnulib-tool (func_readlink): New function.
53575         (func_ln_if_changed): Use it.
53576
53577 2005-09-18  Bruno Haible  <bruno@clisp.org>
53578
53579         * gnulib-tool: Support --with-tests also with --import.
53580         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53581         (func_import): Use variables $testsbase and $inctests. Emit a
53582         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53583         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53584         SUBDIRS += $testsdir.
53585         (func_create_testdir): Update.
53586
53587 2005-09-18  Bruno Haible  <bruno@clisp.org>
53588
53589         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53590         instead of $dry_run.
53591         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53592         (func_ln_if_changed): Don't handle dry-run here.
53593         (func_import): In dry-run mode, detect more precisely which actions
53594         would be performed, and don't use "...ing" verbs.
53595
53596 2005-09-18  Bruno Haible  <bruno@clisp.org>
53597
53598         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53599         (func_import): Use join on two temporary files instead of three nested
53600         loops, in order to determine which files are new or old.
53601
53602 2005-09-18  Bruno Haible  <bruno@clisp.org>
53603
53604         * gnulib-tool (func_import): Comment out code that spits out the
53605         new files with --dry-run.
53606
53607 2005-09-18  Bruno Haible  <bruno@clisp.org>
53608
53609         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53610
53611 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * lib/stat-time.h: New file.
53614         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53615         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53616         in a different way.
53617         (timespec_cmp): New function.
53618         * lib/utimecmp.c: Include stat-time.h.
53619         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53620         members exist, not on the obsolescent ST_MTIM_NSEC.
53621         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53622
53623 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53624
53625         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53626
53627 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * MODULES.html.sh (File system functions): Add stat-time.
53630         * modules/stat-time: New file.
53631         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53632         is now done in a different way, by the stat-time module.
53633         * modules/utimecmp (Depends-on): Add stat-time.
53634
53635 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * m4/st_mtim.m4: Remove.  Superseded by...
53638         * m4/stat-time.m4: New file.
53639         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53640         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53641
53642 2005-09-15  Derek Price  <derek@ximbiot.com>
53643
53644         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53645
53646 2005-09-15  Derek Price  <derek@ximbiot.com>
53647
53648         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53649         * lib/regex_internal.c: Ditto, using this...
53650         (__GNUC_PREREQ): ...new macro.
53651         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53652         using...
53653         (__GNUC_PREREQ): ...this new macro.
53654
53655         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53656
53657 2005-09-15  Derek Price  <derek@ximbiot.com>
53658             Paul Eggert  <eggert@cs.ucla.edu>
53659
53660         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53661         changes, consolidating in...
53662         * lib/regex_internal.h: ...this file.
53663
53664 2005-09-13  Jim Meyering  <jim@meyering.net>
53665
53666         * lib/canon-host.c: Filter through gnu indent and reword comments
53667         slightly.
53668         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53669
53670 2005-09-13  Derek Price  <derek@ximbiot.com>
53671
53672         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53673         failure.
53674         Reported by Jim Meyering  <jim@meyering.net>.
53675
53676 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53677
53678         * lib/base64.c: Typo.
53679         (base64_encode): Put b64str in initialized data section.
53680
53681 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         Merge glibc and coreutils changes into gnulib, plus a few
53684         extra fixes.
53685         * lib/md5.c: Use #error rather than a string.
53686         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53687         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53688         (__attribute__): Define to empty for non recent-GCC.
53689         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53690         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53691         Renamed from their non-__ counterparts, with new macros replacing
53692         them if not _LIBC.  Add __THROW attribute.
53693         (rol): Remove.
53694         (struct md5_ctx): Align buffer if using GCC.
53695         * lib/sha1.h (struct sha1_ctx): Likewise.
53696         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53697         The old name was backwards.
53698         (NOTSWAP): Remove; not used.
53699         (rol): New macro, moved here from md5.h.
53700         (sha1_process_block): Remove a FIXME that doesn't make sense.
53701
53702 2005-09-12  Derek Price  <derek@ximbiot.com>
53703
53704         Return usable errors from canon-host.
53705         * lib/canon-host.h: New file.
53706         * lib/canon-host.c (canon_host): Wrap...
53707         (canon_host_r): ...this new function, which now relies exclusively on
53708         getaddrinfo.
53709         (ch_strerror): New function.
53710         (last_cherror): New global.
53711         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53712         interface.
53713         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53714         void *.
53715         (freeaddrinfo): Free ai->ai_canonname when set.
53716
53717 2005-09-12  Derek Price  <derek@ximbiot.com>
53718
53719         Make canon-host require getaddrinfo.
53720         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53721         AC_LIBSOURCE canon-host.h.  Call...
53722         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53723         gl_GETADDRINFO.
53724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53725
53726 2005-09-12  Derek Price  <derek@ximbiot.com>
53727
53728         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53729         LGPL.
53730         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53731
53732 2005-09-12  Derek Price  <derek@ximbiot.com>
53733
53734         * lib/gai_strerror.c: Include config.h when available.  Include
53735         getaddrinfo.h before other headers to test interface.
53736         Reported by Larry Jones <lawrence.jones@ugs.com>.
53737
53738 2005-09-12  Derek Price  <derek@ximbiot.com>
53739             Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * modules/glob (Files): Add glob-libc.h.
53742
53743 2005-09-12  Derek Price  <derek@ximbiot.com>
53744             Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53747         glob_.h, glob-libc.h.
53748         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53749
53750 2005-09-12  Derek Price  <derek@ximbiot.com>
53751             Paul Eggert  <eggert@cs.ucla.edu>
53752
53753         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53754         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53755         protecting things that should be done only in gnulib contexts.
53756         * lib/glob_.h: New file, containing only the glob things needed for
53757         gnulib.
53758         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53759         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53760         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53761         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53762         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53763         and to respect the namespace rules better.
53764
53765 2005-09-08  Simon Josefsson  <jas@extundo.com>
53766
53767         * modules/socklen: New file.
53768
53769 2005-09-08  Simon Josefsson  <jas@extundo.com>
53770
53771         * m4/socklen.m4: New file.
53772
53773 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * modules/utimens (Files): Add m4/utimbuf.m4, since
53776         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53777         Reported by Sergey Poznyakoff.
53778
53779 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53782         definitions, since that's the preferred style in glibc.
53783         Fix a minor spacing issue, and update copyright notice to match
53784         glibc's.
53785
53786 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53787
53788         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53789
53790 2005-09-06  Simon Josefsson  <jas@extundo.com>
53791
53792         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53793         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53794
53795 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53796
53797         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53798         warning.
53799
53800 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53801
53802         * config/srclist.txt: Add glibc bug 1302.
53803
53804 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53805
53806         Change bitset word type from unsigned int to unsigned long int,
53807         as this has better performance on typical 64-bit hosts.
53808         Port bitset code to hosts with unusual word sizes.
53809         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53810         (build_collating_symbol):
53811         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53812         argument is a bitset.  This is merely a style issue, but it makes
53813         it clearer that an entire array is expected.
53814         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53815         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53816         Port to the case where bitset_word is not the same as unsigned int.
53817         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53818         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53819         Likewise.
53820         * lib/regexec.c (check_dst_limits_calc_pos_1,
53821         check_subexp_matching_top):
53822         (build_trtable, group_nodes_into_DFAstates):
53823         Likewise.
53824         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53825         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53826         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53827         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53828         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53829         * lib/regcomp.c (optimize_subexps, lower_subexp):
53830         Work even if bitset_word has holes in its bitwise representation.
53831         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53832         * lib/regexec.c (check_dst_limits_calc_pos_1,
53833         check_subexp_matching_top):
53834         Likewise.
53835         * lib/regex_internal.c (re_string_reconstruct):
53836         Don't assume UCHAR_MAX == 255.
53837         * lib/regex_internal.h (bitset_set_all): Likewise.
53838         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53839         All uses changed.
53840         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53841         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53842         All uses changed.
53843         (BITSET_WORD_MAX): New macro.
53844         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53845         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53846         (bitset_empty, bitset_copy):
53847         Prefer sizeof (bitset) to multiplying it out ourselves.
53848         (bitset_not_merge): Remove; unused.
53849         (bitset_contain): Return bool, not unsigned int with one bit on.
53850         All callers changed.
53851         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53852         alignment than re_node_set; do this by defining a new internal
53853         type struct dests_alloc and using it to allocate memory.
53854
53855 2005-09-05  Bruno Haible  <bruno@clisp.org>
53856
53857         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53858         links.
53859
53860 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53861
53862         * modules/size_max (Makefile.am): Add size_max.h
53863
53864 2005-09-04  Derek Price  <derek@ximbiot.com>
53865
53866         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53867
53868 2005-09-03  Simon Josefsson  <jas@extundo.com>
53869
53870         * gnulib-tool: Fix typo.
53871
53872 2005-09-03  Simon Josefsson  <jas@extundo.com>
53873
53874         * config/srclist.txt: Add glibc bug 1293.
53875
53876 2005-09-03  Derek Price  <derek@ximbiot.com>
53877
53878         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53879         From Larry Jones <lawrence.jones@ugs.com>.
53880
53881 2005-09-02  Simon Josefsson  <jas@extundo.com>
53882
53883         * modules/socklen: New file.
53884
53885 2005-09-02  Simon Josefsson  <jas@extundo.com>
53886
53887         * modules/havelib: New module.
53888
53889         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53890         Use havelib.
53891
53892 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         Check for arithmetic overflow when calculating sizes, to prevent
53895         some buffer-overflow issues.  These patches are conservative, in the
53896         sense that when I couldn't determine whether an overflow was possible,
53897         I inserted a run-time check.
53898         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53899         macros.
53900         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53901         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53902         (re_xnrealloc, re_x2nrealloc): New inline functions.
53903         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53904         parse_bracket_exp):
53905         (build_equiv_class, build_charclass): Check for arithmetic overflow
53906         in size expression calculations.
53907         * lib/regex_internal.c (re_string_realloc_buffers):
53908         (build_wcs_upper_buffer, re_node_set_add_intersect):
53909         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53910         (re_dfa_add_node, register_state): Likewise.
53911         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53912         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53913         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53914         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53915
53916 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53919         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53920
53921 2005-09-02  Bruno Haible  <bruno@clisp.org>
53922
53923         Support for lib vs. lib64 distinction on biarch platforms.
53924         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53925         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53926         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53927
53928 2005-09-02  Bruno Haible  <bruno@clisp.org>
53929
53930         * gnulib-tool (import): In the other first-use case, provide defaults
53931         as well.
53932
53933 2005-09-02  Bruno Haible  <bruno@clisp.org>
53934
53935         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53936         patches not yet found in the latest gettext release.
53937
53938 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53941         to avoid a collision with bits/local_lim.h in glibc.
53942         All uses changed.  Problem reported by Dmitry V. Levin in
53943         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53944
53945         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53946         bugs in int versus size_t comparisons.
53947         (re_string_context_at): Fix bug where the code assumed that
53948         Idx is signed.
53949
53950         Use bool where appropriate.
53951         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53952         All callers changed.
53953         (calc_eclosure_iter): Likewise, for ROOT arg.
53954         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53955         (build_charclass_op): Likewise, for NON_MATCH arg.
53956         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53957         (re_string_construct_common): Likewise, for ICASE arg.
53958         * lib/regexec.c (re_search_2_stub, re_search_stub):
53959         Likewise, for RET_LEN arg.
53960         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53961         (set_regs): Likewise, for FL_BACKTRACK arg.
53962         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53963         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53964         (calc_eclosure_iter, parse_bracket_exp):
53965         Use bool for internal variables that are booleans.
53966         * lib/regexec.c (re_search_internal, check_matching,
53967         proceed_next_node):
53968         (set_regs, build_sifted_states, sift_states_bkref):
53969         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53970         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53971         (find_collation_sequence_value):
53972         Likewise.
53973         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53974         (re_node_set_compare):
53975         Return bool, not int. All callers changed.
53976         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53977         (build_trtable, check_node_accept): Likewise.
53978         * lib/regex_internal.h: Include stdbool.h.
53979
53980         Fix bugs uncovered when converting to bool.
53981         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53982         failure instead of charging ahead blindly.
53983         * lib/regex_internal.c (register_state): Likewise.
53984         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53985         for freeing internal storage.
53986         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53987         bitset pieces used as boolean, to avoid undefined behavior
53988         on hosts that do int overflow checking.
53989
53990 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * config/srclist.txt: Add glibc bugs 1285-1287.
53993
53994 2005-09-01  Jim Meyering  <jim@meyering.net>
53995
53996         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53997         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53998         Require gl_STAT_MACROS, too.
53999
54000 2005-09-01  Bruno Haible  <bruno@clisp.org>
54001
54002         * gnulib-tool (import): In the first-use case, provide defaults.
54003
54004 2005-09-01  Bruno Haible  <bruno@clisp.org>
54005
54006         * gnulib-tool (func_import): Remove the .tmp files.
54007
54008 2005-09-01  Bruno Haible  <bruno@clisp.org>
54009
54010         * gnulib-tool (func_import): Fix handling of symbolic links.
54011
54012 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54015         old glibc regex code mishandles strings longer than 2**31 bytes.
54016         This patch fixes this when the regex code is used in gnulib
54017         (i.e., outside glibc).
54018
54019         This patch should not affect the use of the regex code inside
54020         glibc.  No doubt this problem also needs to be handled for glibc
54021         as well, but the result will be an incompatible change to the
54022         glibc ABI, and the old ABI will have to be supported too.  That
54023         can be the the subject for another patch.
54024
54025         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54026         governing whether the rest of this patch is active.  By default,
54027         the macro is disabled and the patch has no effect.
54028         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54029         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54030         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54031         (re_match_2, re_set_registers): Use the new types.
54032         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54033         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54034         New macros.
54035         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54036         (re_string_context_at, bin_tree_t, re_dfastate_t):
54037         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54038         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54039         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54040         (re_string_char_size_at, re_string_wchar_at):
54041         (re_string_elem_size_at):
54042         Use the new types and macros to port to 64-bit hosts.
54043         Use unsigned types for internal values, so that the code
54044         mostly works even for arrays larger than SSIZE_MAX.
54045         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54046         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54047         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54048         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54049         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54050         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54051         (calc_inveclosure, parse_dup_op, build_range_exp):
54052         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54053         (fetch_number, create_token_tree, mark_opt_subexp):
54054         Likewise.
54055         * lib/regex_internal.c (re_string_construct_common,
54056         create_ci_newstate):
54057         (create_cd_newstate, re_string_allocate, re_string_construct):
54058         (re_string_realloc_buffers, build_wcs_upper_buffer):
54059         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54060         (re_string_reconstruct, re_string_peek_byte_case):
54061         (re_string_fetch_byte_case, re_string_context_at):
54062         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54063         (re_node_set_init_copy, re_node_set_add_intersect):
54064         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54065         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54066         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54067         (re_acquire_state, re_acquire_state_context, register_state):
54068         Likewise.
54069         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54070         search_cur_bkref_entry):
54071         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54072         (re_search_internal, re_search_2_stub, re_search_stub)
54073         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54074         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54075         (update_cur_sifted_state, check_dst_limits):
54076         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54077         (check_subexp_limits, sift_states_bkref, merge_state_array):
54078         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54079         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54080         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54081         (expand_bkref_cache, check_node_accept_bytes):
54082         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54083         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54084         (acquire_init_state_context, check_halt_node_context):
54085         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54086         (sift_states_backward, clean_state_log_if_needed):
54087         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54088         (find_recover_state, transit_state_sb, transit_state_mb):
54089         (transit_state_bkref, build_trtable, match_ctx_clean):
54090         Likewise.
54091         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54092         to work around an assumption that REG_MISSING is negative.
54093
54094         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54095         (seek_collating_symbol_entry) [defined _LIBC]:
54096         (lookup_collation_sequence_value) [defined _LIBC]:
54097         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54098         Use prototypes rather than old-style function definitions.
54099         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54100         (transit_state_sb) [0]:
54101         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54102
54103         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54104         rm_eo.
54105
54106         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54107         (optimize_subexps, lower_subexp):
54108         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54109         since the signed shift might overflow.  Use 1u<<31 instead.
54110         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54111         Likewise.
54112         * lib/regexec.c (check_dst_limits_calc_pos_1,
54113         check_subexp_matching_top): Likewise.
54114
54115         * lib/regcomp.c (optimize_subexps, lower_subexp):
54116         Use CHAR_BIT rather than 8, for clarity.
54117         * lib/regexec.c (check_dst_limits_calc_pos_1):
54118         (check_subexp_matching_top): Likewise.
54119         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54120         have to worry about portability issues when shifting it left.
54121         Remove no-longer-needed test for table_size > 0.
54122         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54123         in a word, as the resulting behavior is undefined.
54124         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54125         in one case, a <= should have been an <, and in another case the
54126         whole test was missing.
54127         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54128         the standard name CHAR_BIT.
54129         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54130         this is not true on one's complement and signed-magnitude hosts.
54131
54132         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54133         next_last_offset.
54134         (struct re_dfa_t): Remove unused member states_alloc.
54135         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54136
54137 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54140         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54141         and large-file glibc and in 32-bit large-file Solaris.
54142
54143 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54144
54145         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54146         lengths fit in regoff_t; this isn't true if regoff_t is the same
54147         width as size_t.
54148         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54149         (= START + RANGE) instead of RANGE.  This avoids overflow
54150         problems when regoff_t is the same width as size_t.
54151         All callers changed.
54152         (re_search_2_stub): Check for overflow when adding the
54153         sizes of the two strings.
54154         (re_search_stub): Check for overflow when adding START
54155         to RANGE; if it occurs, substitute the extreme value.
54156
54157 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54160
54161 2005-08-31  Jim Meyering  <jim@meyering.net>
54162
54163         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54164         a pointer-to-const.
54165         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54166         (register_state): Likewise.
54167         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54168         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54169         (group_nodes_into_DFAstates): Likewise.
54170
54171 2005-08-31  Jim Meyering  <jim@meyering.net>
54172
54173         * check-module: Add a FIXME comment.
54174
54175 2005-08-31  Eric Blake  <ebb9@byu.net>
54176
54177         * modules/unistd-safer (Files): Add unistd--.h.
54178         * modules/stdio-safer (Files): Add stdio--.h.
54179
54180 2005-08-31  Derek Price  <derek@ximbiot.com>
54181
54182         * lib/getdelim.c (getdelim): Return EOF on EOF.
54183         Reported by Larry Jones <lawrence.jones@ugs.com>.
54184
54185 2005-08-31  Bruno Haible  <bruno@clisp.org>
54186
54187         Avoid unnecessary diffs in the generated lib/Makefile.am.
54188         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54189         the generated files.
54190         (func_import): Don't set cmd.
54191
54192 2005-08-31  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/strstr.c: Include <stddef.h>, for NULL.
54195         * lib/strcasestr.c: Likewise.
54196         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54197
54198 2005-08-31  Bruno Haible  <bruno@clisp.org>
54199
54200         * gnulib-tool: New option --macro-prefix.
54201         (func_import): Use macro_prefix.
54202         (import): Handle option --macro-prefix.
54203
54204 2005-08-31  Bruno Haible  <bruno@clisp.org>
54205
54206         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54207         Also use new variables cached_lgpl, cached_libtool.
54208
54209 2005-08-31  Bruno Haible  <bruno@clisp.org>
54210
54211         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54212         always instantiating them.
54213
54214 2005-08-31  Bruno Haible  <bruno@clisp.org>
54215
54216         * gnulib-tool (func_import): Read the previous cached settings
54217         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54218         earlier added by gnulib but are now dropped. Warn when a gnulib file
54219         overwrites a non-gnulib file.
54220
54221 2005-08-31  Bruno Haible  <bruno@clisp.org>
54222
54223         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54224         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54225         projects that don't keep autogenerated files in CVS. Put into
54226         actioncmd only the specified modules, not the transitive closure.
54227
54228 2005-08-31  Bruno Haible  <bruno@clisp.org>
54229
54230         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54231         Create directories that shall be filled.
54232         (import): Don't look for gl_* macros in configure.ac. Recurse across
54233         all directories containing a gnulib-cache.m4 files, if meaningful.
54234
54235 2005-08-31  Bruno Haible  <bruno@clisp.org>
54236
54237         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54238         (import): Set seen_libtool when we see gl_LIBTOOL.
54239
54240 2005-08-31  Bruno Haible  <bruno@clisp.org>
54241
54242         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54243         declaration macro definitions from generated gnulib.m4.
54244
54245 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54246
54247         * lib/iconvme.h: Add prototype for iconv_alloc.
54248
54249 2005-08-29  Simon Josefsson  <jas@extundo.com>
54250
54251         * lib/iconvme.c: Fix errno.
54252
54253 2005-08-29  Bruno Haible  <bruno@clisp.org>
54254
54255         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54256         that it works when the directory contains spaces.
54257
54258 2005-08-29  Bruno Haible  <bruno@clisp.org>
54259
54260         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54261
54262 2005-08-29  Bruno Haible  <bruno@clisp.org>
54263
54264         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54265         Emit more advice.
54266
54267 2005-08-29  Bruno Haible  <bruno@clisp.org>
54268         and Stepan Kasal  <kasal@ucw.cz>
54269
54270         * check-module: If more parameters are given, check each of them
54271         separately; add more exceptions, as noted by Jim Meyering.
54272         (check_module): New procedure.
54273         (%exempt_header): Now contains all exceptions.
54274
54275 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54276
54277         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54278
54279 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54280
54281         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54282
54283 2005-08-28  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/gnulib-tool.m4: New file.
54286
54287 2005-08-27  Jim Meyering  <jim@meyering.net>
54288
54289         * modules/unistd-safer (Files): Add pipe-safer.c.
54290         * modules/fcntl-safer (Files): Add creat-safer.c.
54291
54292 2005-08-27  Jim Meyering  <jim@meyering.net>
54293
54294         * m4/stdlib-safer.m4: New file.  From coreutils.
54295         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54296         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54297         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54298         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54299         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54300
54301 2005-08-27  Jim Meyering  <jim@meyering.net>
54302
54303         * lib/fopen-safer.c: Merge minor changes from coreutils.
54304         * lib/dup-safer.c: Likewise.
54305         * lib/fd-safer.c: Likewise.
54306
54307         Merge from coreutils.
54308         * lib/stdio--.h: New file.
54309         * lib/stdlib--.h: New file.
54310         * lib/mkstemp-safer.c: New file.
54311
54312         GNU tar needs these.
54313         * lib/pipe-safer.c: New file.
54314         * lib/creat-safer.c: New file.
54315         * lib/fcntl--.h (creat): Define to creat_safer.
54316         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54317         * lib/unistd--.h (pipe): Define to pipe_safer.
54318         * lib/unistd-safer.h: Declare pipe_safer.
54319
54320 2005-08-26  Simon Josefsson  <jas@extundo.com>
54321
54322         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54323         Haible <bruno@clisp.org>.
54324
54325 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         * lib/regex_internal.h: Remove all references to
54328         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54329         or better.
54330         (bitset_not, bitset_merge, bitset_not_merge):
54331         (bitset_mask, re_string_allocate, re_string_construct):
54332         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54333         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54334         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54335         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54336         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54337         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54338         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54339         (re_acquire_state_context):
54340         Remove unnecessary forward decls.
54341         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54342         Put __attribute at function definition,
54343         now that the function decl has been removed.
54344         * lib/regex_internal.c (re_string_peek_byte_case):
54345         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54346         Likewise.
54347
54348 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54349
54350         * m4/regex.m4: Add AC_PREREQ(2.50).
54351         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54352
54353 2005-08-25  Simon Josefsson  <jas@extundo.com>
54354
54355         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54356         __fsetlocking.
54357
54358 2005-08-25  Simon Josefsson  <jas@extundo.com>
54359
54360         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54361         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54362         GLIBC specific code.
54363
54364 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54365
54366         Make regex safe for g++.  This fixes one real bug (an "err"
54367         that should have been "*err").  g++ problem reported by
54368         Sam Steingold.
54369         * lib/regex_internal.h (re_calloc): New macro, consistent with
54370         re_malloc etc.  All callers of calloc changed to use re_calloc.
54371         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54372         not int.  All callers changed.
54373         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54374         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54375         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54376         (find_recover_state): Change "err" to "*err"; this fixes what
54377         appears to be a real bug.
54378         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54379         versus int.
54380
54381 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * modules/regex (Depends-on): Add malloc, since the code
54384         assumes that !malloc(0) means failure.
54385
54386 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54389
54390         alloca modernization/simplification for regex.
54391         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54392         needs to be at the start of the file, and can be moved into
54393         regex_internal.h and simplified.
54394         * lib/regex_internal.h: Include <alloca.h>.
54395         (__libc_use_alloca) [!defined _LIBC]: New macro.
54396         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54397         now works outside glibc.
54398
54399 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * config/srclist.txt: Add glibc bugs 1241, 1245.
54402
54403 2005-08-25  Jim Meyering  <jim@meyering.net>
54404
54405         * lib/open-safer.c: Include <config.h>.
54406         Otherwise, we'd lose LARGEFILE support in any file using
54407         e.g. "fcntl--.h"
54408
54409 2005-08-25  Bruno Haible  <bruno@clisp.org>
54410
54411         * m4/minmax.m4: Require autoconf 2.52.
54412         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54413         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54414         alternatives of translit over the alphabet.
54415         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54416
54417 2005-08-24  Simon Josefsson  <jas@extundo.com>
54418
54419         * tests/test-getpass.c: New file.
54420
54421 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54422
54423         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54424         for GNU regex features.
54425
54426 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54429         * lib/regex.h (regerror): Likewise.
54430
54431         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54432         requires this.  (The code never needed it.)
54433
54434         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54435         All uses of recently-renamed identifiers changed to use the new,
54436         POSIX-compliant names.  The code will build and run just fine
54437         without these changes, but it's better to eat our own dog food
54438         and use the standard-conforming names.
54439
54440         * lib/regex.h: Fix a multitude of POSIX name space violations.
54441         These changes have an effect only for programs that define
54442         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54443         do not change anything for programs compiled in the normal way.
54444         Also, there is no effect on the ABI.
54445
54446         (_REGEX_SOURCE): New macro.
54447         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54448         defined and _GNU_SOURCE is not; this fixes a name space violation.
54449
54450         Rename the following macros to obey POSIX requirements.
54451         The old names are still visible as macros if _REGEX_SOURCE is defined.
54452         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54453         RE_BACKSLASH_ESCAPE_IN_LISTS.
54454         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54455         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54456         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54457         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54458         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54459         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54460         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54461         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54462         (REG_INTERVALS): renamed from RE_INTERVALS.
54463         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54464         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54465         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54466         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54467         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54468         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54469         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54470         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54471         RE_UNMATCHED_RIGHT_PAREN_ORD.
54472         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54473         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54474         (REG_DEBUG): renamed from RE_DEBUG.
54475         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54476         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54477         unusual, since we can't clash with the POSIX REG_ICASE.
54478         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54479         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54480         (REG_NO_SUB): renamed from RE_NO_SUB.
54481         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54482         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54483         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54484         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54485         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54486         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54487         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54488         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54489         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54490         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54491         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54492         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54493         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54494         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54495         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54496         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54497         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54498         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54499         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54500         (REG_FIXED): Renamed from REGS_FIXED.
54501         (REG_NREGS): Renamed from RE_NREGS.
54502
54503         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54504         of other REG_* macros, since POSIX says the user is allowed to
54505         #undef these macros selectively.
54506
54507         (reg_errcode_t): Update comment stating what other tables need
54508         to be consistent.
54509
54510         Rename the following enum values to obey POSIX requirements.
54511         The old names are still visible as macros.
54512         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54513         is not defined, since GNU is supposed to be a superset of POSIX as
54514         much as possible, and since we want reg_errcode_t to be a signed
54515         type for implementation consistency.
54516         (_REG_NOERROR): Renamed from REG_NOERROR.
54517         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54518         (_REG_BADPAT): Renamed from REG_BADPAT.
54519         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54520         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54521         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54522         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54523         (_REG_EBRACK): Renamed from REG_EBRACK.
54524         (_REG_EPAREN): Renamed from REG_EPAREN.
54525         (_REG_EBRACE): Renamed from REG_EBRACE.
54526         (_REG_BADBR): Renamed from REG_BADBR.
54527         (_REG_ERANGE): Renamed from REG_ERANGE.
54528         (_REG_ESPACE): Renamed from REG_ESPACE.
54529         (_REG_BADRPT): Renamed from REG_BADRPT.
54530         (_REG_EEND): Renamed from REG_EEND.
54531         (_REG_ESIZE): Renamed from REG_ESIZE.
54532         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54533         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54534         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54535         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54536         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54537
54538         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54539         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54540         changed.  But support the old name if the new one is not defined
54541         and if _REGEX_SOURCE.
54542
54543         Change the following member names in struct re_pattern_buffer.
54544         The old names are still supported if !_REGEX_SOURCE.
54545         The new names are always supported, regardless of _REGEX_SOURCE.
54546         (re_buffer): Renamed from buffer.
54547         (re_allocated): Renamed from allocated.
54548         (re_used): Renamed from used.
54549         (re_syntax): Renamed from syntax.
54550         (re_fastmap): Renamed from fastmap.
54551         (re_translate): Renamed from translate.
54552         (re_can_be_null): Renamed from can_be_null.
54553         (re_regs_allocated): Renamed from regs_allocated.
54554         (re_fastmap_accurate): Renamed from fastmap_accurate.
54555         (re_no_sub): Renamed from no_sub.
54556         (re_not_bol): Renamed from not_bol.
54557         (re_not_eol): Renamed from not_eol.
54558         (re_newline_anchor): Renamed from newline_anchor.
54559
54560         Change the following member names in struct re_registers.
54561         The old names are still supported if !_REGEX_SOURCE.
54562         The new names are always supported, regardless of _REGEX_SOURCE.
54563         (rm_num_regs): Renamed from num_regs.
54564         (rm_start): Renamed from start.
54565         (rm_end): Renamed from end.
54566
54567         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54568         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54569         Prepend __ to parameter names.
54570
54571         Undo yesterday's changes.
54572
54573 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54576         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54577         lib/regex.c.
54578
54579 2005-08-24  Jim Meyering  <jim@meyering.net>
54580
54581         Sync from coreutils.
54582         * m4/fcntl-safer.m4: New file.
54583
54584         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54585         and object files for this module.
54586
54587 2005-08-24  Jim Meyering  <jim@meyering.net>
54588
54589         Sync from coreutils.
54590         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54591
54592 2005-08-24  Jim Meyering  <jim@meyering.net>
54593
54594         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54595         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54596
54597 2005-08-24  Jim Meyering  <jim@meyering.net>
54598
54599         * modules/fcntl-safer: New module.
54600         * modules/fts (Depends-on): Add fcntl-safer.
54601         * MODULES.html.sh (File descriptor based Input/Output):
54602         Add fcntl-safer.
54603
54604 2005-08-24  Bruno Haible  <bruno@clisp.org>
54605
54606         Support for unit test modules.
54607         * modules/README: Mention tests modules.
54608         * modules/TEMPLATE-TESTS: New file.
54609         * gnulib-tool: New options --extract-tests-module, --with-tests and
54610         --tests-base (unused for the moment).
54611         (testsbase, inctests): New variables.
54612         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54613         (func_verify_module): Exclude TEMPLATE-TESTS.
54614         (func_verify_nontests_module, func_verify_tests_module): New functions.
54615         (func_get_dependencies): Add implicit dependency for tests modules.
54616         (func_get_tests_module): New function.
54617         (func_modules_transitive_closure): When --with-tests was specified,
54618         include the unit tests as well, unless explicitly avoided.
54619         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54620         (func_emit_tests_Makefile_am): New function.
54621         (func_create_testdir): When --with-tests was specified, emit a
54622         tests/ directory.
54623         * MODULES.html.sh (Future developments): Update.
54624
54625 2005-08-24  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/tls-tests: New file.
54628         * tests/test-tls.c: New file, from GNU gettext.
54629
54630 2005-08-24  Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/lock-tests: New file.
54633         * tests/test-lock.c: New file, from GNU gettext.
54634
54635 2005-08-24  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/lock.h: Add multiple inclusion guard.
54638         * lib/tls.h: Add multiple inclusion guard.
54639
54640 2005-08-24  Bruno Haible  <bruno@clisp.org>
54641
54642         * gnulib-tool: Add support for the --aux-dir option to
54643         --create-testdir, --create-megatestdir, --test, --megatest.
54644         (func_create_testdir, func_create_megatestdir): Optionally emit a
54645         AC_CONFIG_AUX_DIR directive.
54646         (create-testdir, create-megatestdir, test, megatest): Provide a
54647         default value for $auxdir.
54648
54649 2005-08-24  Bruno Haible  <bruno@clisp.org>
54650
54651         * gnulib-tool (import): Use compound statement instead of subshell
54652         where possible.
54653
54654 2005-08-24  Bruno Haible  <bruno@clisp.org>
54655
54656         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54657
54658 2005-08-24  Bruno Haible  <bruno@clisp.org>
54659
54660         * gnulib-tool (func_version): Update.
54661
54662 2005-08-24  Bruno Haible  <bruno@clisp.org>
54663
54664         * gnulib-tool (func_import, func_create_testdir,
54665         func_create_megatestdir): Quote all autoconf macro arguments.
54666
54667 2005-08-24  Bruno Haible  <bruno@clisp.org>
54668
54669         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54670         option --force, because --force causes the aclocal.m4 of each
54671         subdirectory to be newer than the corresponding config.h.in.
54672
54673 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54674
54675         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54676         All contents moved to gl_REGEX.
54677         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54678         assume that it does.
54679
54680 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54681
54682         * lib/regex.h (REG_NOSYS)
54683         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54684         Define, since POSIX requires it as of 2001.
54685         (_REG_ENOSYS)
54686         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54687         New private symbol, used to keep the enum signed in all cases.
54688         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54689         Youngman in
54690         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54691
54692         * lib/regex_internal.c (re_string_skip_chars, register_state):
54693         (calc_state_hash):
54694         Remove forward decls; no longer needed now that we use prototypes.
54695         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54696         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54697         (clean_state_log_if_needed): Likewise.
54698
54699 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * config/srclist.txt: Add glibc bugs 1231-1233.
54702
54703 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         Fix problems reported by Sam Steingold in
54706         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54707         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54708         assumed that reg_errcode_t is a signed type, which is not
54709         necessarily true if _XOPEN_SOURCE is not defined.
54710         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54711         since some compilers warn about it otherwise.
54712
54713 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54714
54715         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54716         (init_word_char, create_initial_state, duplicate_node_closure):
54717         (fetch_token, peek_token_bracket, build_range_exp):
54718         (build_collating_symbol): Remove forward decls; no longer needed
54719         now that we use prototypes.
54720
54721         * lib/regcomp.c:
54722         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54723         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54724         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54725         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54726         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54727         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54728         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54729         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54730         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54731         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54732         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54733         (build_charclass, build_charclass_op, fetch_number, create_tree):
54734         (create_token_tree, mark_opt_subexp, duplicate_tree):
54735         Use prototypes rather than old-style definitions.
54736
54737         * lib/regex_internal.c:
54738         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54739         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54740         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54741         (re_string_reconstruct, re_string_peek_byte_case):
54742         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54743         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54744         (re_node_set_init_copy, re_node_set_add_intersect):
54745         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54746         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54747         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54748         (re_acquire_state, re_acquire_state_context, register_state):
54749         (create_ci_newstate, create_cd_newstate, free_state):
54750         Likewise.
54751         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54752         re_search_2):
54753         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54754         (re_search_internal, prune_impossible_nodes):
54755         (acquire_init_state_context, check_matching, static):
54756         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54757         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54758         (update_regs, sift_states_backward, build_sifted_states):
54759         (clean_state_log_if_needed, merge_state_array):
54760         (update_cur_sifted_state, add_epsilon_src_nodes):
54761         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54762         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54763         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54764         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54765         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54766         (check_arrival, check_arrival_add_next_nodes):
54767         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54768         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54769         (check_node_accept_bytes, check_node_accept, extend_buffers):
54770         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54771         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54772         (sift_ctx_init):
54773         Likewise.
54774
54775         * lib/regex_internal.h:
54776         (re_string_allocate, re_string_construct, re_string_reconstruct):
54777         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54778         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54779         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54780         (re_string_context_at, re_string_peek_byte_case):
54781         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54782         is defined, since we now use prototypes always.
54783
54784         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54785         C89 or better.  All uses removed.
54786
54787 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54788
54789         * config/srclist.txt: Add glibc bugs 1220-1227.
54790
54791 2005-08-20  Jim Meyering  <jim@meyering.net>
54792
54793         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54794         of unused local, dfa.
54795
54796 2005-08-20  Bruno Haible  <bruno@clisp.org>
54797
54798         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54799
54800 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54801
54802         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54803         (re_node_set_insert_last, re_dfa_add_node):
54804         Rename local variables to avoid GCC shadowing warnings.
54805
54806 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54809         [defined lint]: Suppress bogus uninitialized-variable warnings.
54810
54811         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54812         and let the caller return REG_ESPACE if out of space.  This
54813         removes an uninitialied-variable warning with GCC 4.0.1, and also
54814         avoids taking the address of a local variable.  All callers
54815         changed.
54816
54817 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54820         $LIBCSRC/posix/regexec.c.
54821         Add glibc bug 1217 for regcomp.c.
54822
54823 2005-08-19  Jim Meyering  <jim@meyering.net>
54824
54825         * lib/regexec.c (proceed_next_node): Redo local variables to
54826         avoid GCC shadowing warnings.
54827
54828 2005-08-18  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/strstr.c (strstr): Fix return value in multibyte case.
54831         * lib/strcasestr.c (strcasestr): Likewise.
54832
54833 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54834
54835         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54836
54837 2005-08-17  Jim Meyering  <jim@meyering.net>
54838
54839         Make the %s format (seconds since the epoch) work for a negative
54840         number and when used with a zero-padded field width, e.g. %015s.
54841
54842         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54843         label so that it precedes the code to set `digits'.  Otherwise,
54844         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54845         print `00-22'.  Now, it prints `-0022', as it should.
54846
54847 2005-08-17  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/strstr (Files): Add m4/mbrtowc.m4.
54850         (Depends-on): Add mbuiter.
54851
54852 2005-08-17  Bruno Haible  <bruno@clisp.org>
54853
54854         * modules/strcasestr: New file.
54855         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54856         strcasestr.
54857
54858 2005-08-17  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54861
54862 2005-08-17  Bruno Haible  <bruno@clisp.org>
54863
54864         * modules/mbuiter: New file.
54865         * MODULES.html.sh (Extended multibyte and wide character utilities):
54866         Add mbuiter.
54867
54868 2005-08-17  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54871         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54872
54873 2005-08-17  Bruno Haible  <bruno@clisp.org>
54874
54875         * m4/strcasestr.m4: New file.
54876
54877 2005-08-17  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54880         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54881
54882 2005-08-17  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/strcasestr.h: New file.
54885         * lib/strcasestr.c: New file.
54886
54887 2005-08-17  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/strcasecmp.c: Use mbuiter.h.
54890
54891 2005-08-17  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/mbuiter.h: New file.
54894
54895 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54896
54897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54898         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54899         and gl_GETOPT are both invoked via different paths (as happens
54900         with GNU tar CVS because it uses both argp and getopt), the former
54901         wins.
54902
54903 2005-08-16  Bruno Haible  <bruno@clisp.org>
54904
54905         * modules/tls: New file.
54906         * MODULES.html.sh (Multithreading): Add tls.
54907
54908 2005-08-16  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/strnlen1: New file.
54911         * MODULES.html.sh (String handling): Add strnlen1.
54912
54913 2005-08-16  Bruno Haible  <bruno@clisp.org>
54914
54915         * modules/strcase (Files): Add m4/mbrtowc.m4.
54916         (Depends-on): Add strnlen1, mbchar.
54917
54918 2005-08-16  Bruno Haible  <bruno@clisp.org>
54919
54920         * modules/mbiter: New file.
54921         * MODULES.html.sh (Extended multibyte and wide character utilities):
54922         Add mbiter.
54923
54924 2005-08-16  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/mbfile: New file.
54927         * MODULES.html.sh (Extended multibyte and wide character utilities):
54928         Add mbfile.
54929
54930 2005-08-16  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/mbchar: New file.
54933         * MODULES.html.sh (Extended multibyte and wide character utilities):
54934         New section.
54935
54936 2005-08-16  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/tls.m4: New file, from GNU gettext.
54939
54940 2005-08-16  Bruno Haible  <bruno@clisp.org>
54941
54942         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54943         always.
54944         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54945
54946 2005-08-16  Bruno Haible  <bruno@clisp.org>
54947
54948         * m4/mbiter.m4: New file.
54949
54950 2005-08-16  Bruno Haible  <bruno@clisp.org>
54951
54952         * m4/mbfile.m4: New file.
54953
54954 2005-08-16  Bruno Haible  <bruno@clisp.org>
54955
54956         * m4/mbchar.m4: New file.
54957
54958 2005-08-16  Bruno Haible  <bruno@clisp.org>
54959
54960         * lib/tls.h: New file, from GNU gettext.
54961         * lib/tls.c: New file, from GNU gettext.
54962
54963 2005-08-16  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/strnlen1.h: New file.
54966         * lib/strnlen1.c: New file.
54967
54968 2005-08-16  Bruno Haible  <bruno@clisp.org>
54969
54970         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54971         (mbi_init): Update.
54972         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54973         NUL byte, not after it.
54974
54975 2005-08-16  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/strcase.h (strcasecmp): Add note in comments.
54978         * lib/strncasecmp.c: Use code from strcasecmp.c.
54979         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54980         (strcasecmp): Work correctly in multibyte locales.
54981
54982 2005-08-16  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/mbiter.h: New file.
54985
54986 2005-08-16  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/mbfile.h: New file.
54989
54990 2005-08-16  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/mbchar.h: New file.
54993         * lib/mbchar.c: New file.
54994
54995 2005-08-16  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54998         the valid ones. Makes the comparison operations transitive:
54999         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55000         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55001
55002 2005-08-15  Simon Josefsson  <jas@extundo.com>
55003
55004         * modules/ssize_t (License): Change to 'unlimited'.
55005
55006         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55007
55008 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55009
55010         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55011         Add comments for each pending glibc patch.
55012
55013 2005-08-15  Bruno Haible  <bruno@clisp.org>
55014
55015         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55016         __cplusplus is defined.
55017
55018 2005-08-14  Jim Meyering  <jim@meyering.net>
55019
55020         Sync from coreutils.
55021
55022         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55023         Use the hash-table-based cycle-detection code not just when
55024         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55025         Reported by James Youngman in
55026         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55027         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55028         FTS_TIGHT_CYCLE_CHECK.
55029         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55030         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55031         once again.
55032         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55033         * lib/fts.c (fd_safer): Remove decl.
55034         Include fcntl--.h rather than unistd-safer.h
55035         (fts_safe_changedir): Don't call fd_safer; no longer needed
55036         now that we include fcntl--.h.
55037
55038 2005-08-12  Simon Josefsson  <jas@extundo.com>
55039
55040         * modules/getndelim2: Use ssize_t module.
55041         * modules/getnline: Likewise.
55042         * modules/safe-read: Likewise.
55043         * modules/xreadlink: Likewise.
55044
55045         * modules/ssize_t: New file.
55046
55047 2005-08-12  Simon Josefsson  <jas@extundo.com>
55048
55049         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55050
55051 2005-08-12  Simon Josefsson  <jas@extundo.com>
55052
55053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55054         ssize_t.
55055
55056 2005-08-12  Simon Josefsson  <jas@extundo.com>
55057
55058         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55059         readline, getdelim and check_version.
55060         (Support for systems lacking ISO C 99: Sizes of integer types):
55061         Add size_max.
55062
55063 2005-08-12  Bruno Haible  <bruno@clisp.org>
55064
55065         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55066
55067 2005-08-11  Simon Josefsson  <jas@extundo.com>
55068
55069         * modules/readline: New file.
55070
55071         * modules/strnlen (Files): Add strnlen.h.
55072
55073 2005-08-11  Simon Josefsson  <jas@extundo.com>
55074
55075         * m4/readline.m4: New file.
55076
55077 2005-08-11  Simon Josefsson  <jas@extundo.com>
55078
55079         * lib/readline.h, readline.c: New file.
55080
55081 2005-08-11  Simon Josefsson  <jas@extundo.com>
55082
55083         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55084         gl_AVOID.
55085
55086 2005-08-11  Bruno Haible  <bruno@clisp.org>
55087
55088         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55089
55090 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55091
55092         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55093
55094 2005-08-10  Simon Josefsson  <jas@extundo.com>
55095
55096         * tests/test-iconvme.c: New file.
55097
55098 2005-08-10  Simon Josefsson  <jas@extundo.com>
55099
55100         * m4/strnlen.m4: New file.
55101
55102         * m4/strndup.m4: Don't check for strnlen declaration, done in
55103         strnlen.m4.
55104
55105 2005-08-10  Simon Josefsson  <jas@extundo.com>
55106
55107         * lib/strndup.c: Use strnlen.h.
55108
55109         * lib/strnlen.h: New file.
55110
55111 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55112
55113         * README: Typos.
55114
55115 2005-08-02  Simon Josefsson  <jas@extundo.com>
55116
55117         * modules/readline: New file.
55118
55119 2005-08-02  Simon Josefsson  <jas@extundo.com>
55120
55121         * modules/getdelim: New file.
55122
55123         * modules/getline: Rewrite, don't use getndelim2.
55124
55125 2005-08-02  Simon Josefsson  <jas@extundo.com>
55126
55127         * m4/getline.m4: Separate out getdelim stuff into separate module.
55128
55129         * m4/getdelim.m4: New file.
55130
55131 2005-08-02  Simon Josefsson  <jas@extundo.com>
55132
55133         * lib/getline.h, getline.c: Rewrite.
55134
55135         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55136
55137 2005-07-31  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/lock.h (gl_lock_initializer): New macro.
55140         (gl_lock_define_initialized): Use it.
55141         (gl_rwlock_initializer): New macro.
55142         (gl_rwlock_define_initialized): Use it.
55143         (gl_recursive_lock_initializer): New macro.
55144         (gl_recursive_lock_define_initialized): Use it.
55145
55146 2005-07-30  Karl Berry  <karl@gnu.org>
55147
55148         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55149         Report from Ben Pfaff, regarding getopt.
55150
55151 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55154         normal way.
55155         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55156         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55157         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55158         (gl_GETOPT): Use the new macros.  Most of the implementation
55159         is moved to the new macros.  This is for programs like Emacs
55160         that don't want all the functionality of gl_GETOPT.
55161
55162 2005-07-26  Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/lock.m4: Update from GNU gettext.
55165
55166 2005-07-26  Bruno Haible  <bruno@clisp.org>
55167
55168         * lib/lock.h: Update from GNU gettext.
55169         * lib/lock.c: Update from GNU gettext.
55170
55171 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55174         obsolescent AC_TRY_RUN.  Include the default includes files, for
55175         'exit'.
55176
55177 2005-07-24  Bruno Haible  <bruno@clisp.org>
55178
55179         * modules/visibility: New file.
55180         * MODULES.html.sh (Misc): Add visibility.
55181
55182 2005-07-24  Bruno Haible  <bruno@clisp.org>
55183
55184         * m4/visibility.m4: New file.
55185
55186 2005-07-24  Bruno Haible  <bruno@clisp.org>
55187
55188         * doc/visibility.texi: New file.
55189
55190 2005-07-22  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55193         $(ALLOCA_H), redundant through BUILT_SOURCES.
55194         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55195         redundant through BUILT_SOURCES.
55196         * modules/byteswap (Makefile.am): Remove explicit dependency on
55197         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55198         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55199         $(FNMATCH_H), redundant through BUILT_SOURCES.
55200         * modules/getopt (Makefile.am): Remove explicit dependency on
55201         $(GETOPT_H), redundant through BUILT_SOURCES.
55202         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55203         redundant through BUILT_SOURCES.
55204         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55205         redundant through BUILT_SOURCES.
55206         * modules/stdbool (Makefile.am): Remove explicit dependency on
55207         $(STDBOOL_H), redundant through BUILT_SOURCES.
55208         * modules/stdint (Makefile.am): Remove explicit dependency on
55209         $(STDINT_H), redundant through BUILT_SOURCES.
55210         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55211         Remove explicit dependency on $(SYSEXITS_H).
55212         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55213
55214 2005-07-18  Simon Josefsson  <jas@extundo.com>
55215
55216         * lib/check-version.c (check_version): Accept identical versions too.
55217
55218 2005-07-18  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/lock: New file.
55221         * MODULES.html.sh (Multithreading): New section.
55222
55223 2005-07-18  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/lock.m4: New file, from GNU gettext.
55226
55227 2005-07-18  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/lock.h: New file, from GNU gettext.
55230         * lib/lock.c: New file, from GNU gettext.
55231
55232 2005-07-18  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/lock.h (gl_once_t): New type.
55235         (gl_once_define, gl_once): New macros.
55236         * lib/lock.c (fresh_once): New variable.
55237         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55238         functions.
55239
55240 2005-07-16  Simon Josefsson  <jas@extundo.com>
55241
55242         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55243         workaround, suggested by Bruno.
55244
55245 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55246
55247         * modules/xalloc (Depends-on): Add xalloc-die.
55248         * modules/xvasprintf (Depends-on): Add xalloc-die.
55249
55250 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55251
55252         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55253         with a minor change.
55254
55255 2005-07-15  Bruno Haible  <bruno@clisp.org>
55256
55257         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55258         When using lib/poll.c, define poll as rpl_poll.
55259
55260 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * modules/argp (Depends-on): Remove unlocked-io.
55263
55264 2005-07-14  Derek Price  <derek@ximbiot.com>
55265
55266         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55267         for glob symlink bug.
55268
55269 2005-07-14  Bruno Haible  <bruno@clisp.org>
55270
55271         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55272         Instead, test for *_unlocked function declarations directly.
55273
55274 2005-07-11  Simon Josefsson  <jas@extundo.com>
55275
55276         * modules/size_max: New file.
55277
55278         * modules/xsize: Depend on size_max module for size_max.m4.
55279
55280 2005-07-11  Simon Josefsson  <jas@extundo.com>
55281
55282         * lib/size_max.h: New file.
55283
55284 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55285
55286         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55287         copyright symbol and the year.
55288         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55289         (version_etc_va): Use parameterized copyright notice.
55290         Reword to conform to the current GNU coding standards.
55291
55292 2005-07-11  Karl Berry  <karl@gnu.org>
55293
55294         * doc/gnulib.texi (Quoting): new node.
55295         (Initial import): more info, from Patrice.
55296
55297 2005-07-11  Bruno Haible  <bruno@clisp.org>
55298
55299         * gnulib-tool (func_usage): Document option --avoid.
55300         (Command line options): Handle --avoid.
55301         (func_acceptable): New function.
55302         (func_modules_transitive_closure): Use it.
55303
55304 2005-07-11  Bruno Haible  <bruno@clisp.org>
55305
55306         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55307         Reported by Jim Meyering.
55308
55309 2005-07-10  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55312         Needed when size_t is smaller than 'unsigned int'.
55313         Reported by Paul Eggert.
55314
55315 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55316
55317         * modules/argp (Depends-on): Add unlocked-io
55318
55319 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55320
55321         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55322         block of defines.
55323
55324 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55327         fix now.
55328
55329 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55330         and Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55333         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55334
55335 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * modules/regex (Files): Add lib/regex_internal.c,
55338         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55339         (Depends-on): Add extensions.
55340         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55341
55342 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55345         pathconf.
55346         * m4/same.m4 (gl_SAME): Likewise.
55347         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55348
55349         * m4/regex.m4: Adjust to new libc regex implementation.
55350         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55351         all the .c and .h parts of (the new) regex.
55352         Quote the m4 stuff better.
55353         Check for RE_ICASE bug of old gnulib.
55354         Check for REG_STARTEND of recent libc.
55355         Rename local variables from jm_* to gl_*.
55356         Quote operand of "test -f".
55357         Say "recent enough" version of libc, not "version 2".
55358         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55359         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55360         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55361         Remove check for btowc, isascii.
55362         Require AM_LANGINFO_CODESET.
55363
55364 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55365
55366         * lib/regex.c, regex.h: Sync from libc.
55367         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55368         * lib/regexec.c:
55369         New files, synced from libc, except that regex_internal.h
55370         currently has a small porting fix.
55371
55372 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55375         regex_internal.c, regexec.c.
55376         Add regex_internal.h too, but as a comment, since the libc version
55377         is currently broken in gnulib mode.
55378
55379 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         Support programs like Emacs that use gnulib but not gettext.
55382         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55383         * modules/gettext-h: New file.
55384         * modules/gettext (Files): Remove lib/gettext.h.
55385         (Depends-on): Add gettext-h.
55386         (Makefile.am): Remove lib_SOURCES.
55387         * modules/argmatch, modules/c-stack, modules/closeout:
55388         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55389         * modules/execute, modules/file-type, modules/getaddrinfo:
55390         * modules/getopt, modules/human, modules/javacomp:
55391         * modules/javaexec, modules/mkdir-p, modules/obstack:
55392         * modules/openat, modules/pagealign_alloc, modules/pipe:
55393         * modules/quotearg, modules/regex, modules/rpmatch:
55394         * modules/unicodeio, modules/userspec, modules/version-etc:
55395         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55396         * modules/xsetenv:
55397         Depend on gettext-h, not gettext.
55398
55399 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * gnulib-tool (func_import): Add support for 'public domain' license.
55402         * modules/alloca, modules/atexit, modules/memmove:
55403         Now public domain, not GPL.
55404         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55405         * modules/realloc, modules/strerror, modules/strtod:
55406         Now LGPL, not GPL.
55407
55408 2005-07-05  Bruno Haible  <bruno@clisp.org>
55409
55410         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55411         autoconf CVS. Needed for mingw.
55412
55413 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         Remove the dependency of the strftime module on the tzset module.
55416         * modules/strftime (Depends-on): Remove dependency on tzset.
55417
55418 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         Remove the dependency of the strftime module on the tzset module.
55421         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55422         gl_FUNC_TZSET_CLOBBER.
55423
55424 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55425
55426         Remove the dependency of the strftime module on the tzset module.
55427         * lib/strftime.c (my_strftime)
55428         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55429         Copy the input structure, to work around some of the bug with
55430         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55431         Solaris releases, you should also use the tzset module, but we won't
55432         require it as a dependency any more since we don't want LGPLed code
55433         to depend on GPLed code.
55434
55435 2005-07-02  Jim Meyering  <jim@meyering.net>
55436
55437         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55438         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55439         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55440         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55441
55442 2005-07-02  Jim Meyering  <jim@meyering.net>
55443
55444         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55445
55446 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55449         declares only 'struct timespec;' (!).
55450
55451 2005-07-01  Jim Meyering  <jim@meyering.net>
55452
55453         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55454         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55455         * lib/save-cwd.c, tempname.c:
55456         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55457         and don't include <sys/file.h>).
55458
55459 2005-06-29  Jim Meyering  <jim@meyering.net>
55460
55461         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55462         type name.  Use the variable name instead.
55463         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55464         Likewise.
55465
55466 2005-06-28  Simon Josefsson  <jas@extundo.com>
55467
55468         * modules/check-version (Files): Add check-version.m4.
55469
55470 2005-06-28  Simon Josefsson  <jas@extundo.com>
55471
55472         * m4/check-version.m4: New file, suggested by Jim Meyering
55473         <jim@meyering.net>.
55474
55475 2005-06-28  Simon Josefsson  <jas@extundo.com>
55476
55477         * lib/check-version.h, lib/check-version.c: New files.
55478
55479 2005-06-28  Simon Josefsson  <jas@extundo.com>
55480
55481         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55482         collision with global variable.  Better indentation.  Don't
55483         increment buffer pointer beyond buffer end.  Based on comments
55484         from Paul Eggert <eggert@cs.ucla.edu>.
55485
55486         * lib/base64.h: Indent.
55487
55488 2005-06-28  Simon Josefsson  <jas@extundo.com>
55489
55490         * doc/gnulib.texi (Library version handling): New section.
55491
55492 2005-06-28  Jim Meyering  <jim@meyering.net>
55493
55494         * check-module (find_included_lib_files): Hard-code another
55495         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55496         but modules/fts-lgpl (correctly) does not list those files.
55497
55498         * modules/canonicalize (Files): Add lib/pathmax.h.
55499
55500 2005-06-25  Simon Josefsson  <jas@extundo.com>
55501
55502         * modules/check-version: New file.
55503
55504 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55505
55506         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55507         initializer of struct addrinfo, as an indication that we don't
55508         care how many members the structure has.
55509
55510 2005-06-24  Derek Price  <derek@ximbiot.com>
55511         and Bruno Haible  <bruno@clisp.org>
55512
55513         Remove stat module & update lstat.
55514         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55515         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55516         * m4/stat.m4: Remove this file.
55517
55518 2005-06-24  Derek Price  <derek@ximbiot.com>
55519         and Bruno Haible  <bruno@clisp.org>
55520
55521         Remove stat module & update lstat.
55522         * lib/stat.c: Remove this file...
55523         (slash_aware_lstat): ...moving this content and its support...
55524         * lib/lstat.c (rpl_lstat): ...into here.
55525         * lib/lstat.h: New file.
55526
55527 2005-06-24  Derek Price  <derek@ximbiot.com>
55528         and Bruno Haible  <bruno@clisp.org>
55529
55530         Remove stat module & update lstat.
55531         * config/srclist.txt (libc sources): Remove stat.
55532
55533 2005-06-24  Derek Price  <derek@ximbiot.com>
55534         and Bruno Haible  <bruno@clisp.org>
55535
55536         Remove stat module & update lstat.
55537         * MODULES.html.sh (stat): Remove.
55538         * MODULES.html: Regenerated.
55539         * modules/lstat (Description): Correct function name.
55540         (Files): Add "lstat.h".
55541         (Depends-on): Remove stat, add xalloc, stat-macros.
55542         * modules/stat: Remove this file.
55543         (Include): Add "lstat.h", remove <sys/stat.h>.
55544
55545 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55548         (ranged_convert): Don't save conversion in a temporary struct.
55549         This causes a warning with GCC 4.0.0, and anyway in the typical
55550         case it's not worth the extra 100 bytes or so of code.
55551         (ranged_convert, __mktime_internal): When calling a function via a
55552         pointer P, use P () rather than (*P) (), as we now assume C89 or
55553         better.
55554
55555 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55556
55557         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55558         "who -r" failed to give output.  Problem reported by Tim Waugh.
55559
55560         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55561         (xcalloc): Use it to avoid needless tests.
55562         Problem reported by Jim Meyering.
55563
55564 2005-06-20  Derek Price  <derek@ximbiot.com>
55565
55566         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55567         unnecessary for Autoconfs > 2.59c.
55568
55569 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55570
55571         * lib/argp.h (__option_is_short): Check upper limit of
55572         __key. Isprint() requires its argument to have the value
55573         of an unsigned char or EOF.
55574
55575 2005-06-16  Jim Meyering  <jim@meyering.net>
55576
55577         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55578         when either N or S is zero.
55579
55580 2005-06-16  Derek Price  <derek@ximbiot.com>
55581
55582         * m4/bison.m4: Declare YACC & YFLAGS precious.
55583
55584 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55585
55586         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55587         multibyte string or pattern, fall back on unibyte matching.
55588         Problem reported by James Youngman.
55589
55590 2005-06-08  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/csharpcomp: New file.
55593         * MODULES.html.sh (C#): Add csharpcomp.
55594
55595 2005-06-08  Bruno Haible  <bruno@clisp.org>
55596
55597         * m4/csharpcomp.m4: New file, from GNU gettext.
55598
55599 2005-06-08  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/csharpcomp.h: New file, from GNU gettext.
55602         * lib/csharpcomp.c: New file, from GNU gettext.
55603         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55604
55605 2005-06-08  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55608         warning on mingw.
55609
55610 2005-06-07  Derek Price  <derek@ximbiot.com>
55611
55612         Sync from CVS.
55613         * lib/glob_.h: Indent nested #ifdef.
55614
55615 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         Sync from coreutils.
55618         Use "file name" when talking about file names, instead of "filename"
55619         or "path", as per the GNU coding standards.
55620         * lib/mkdir-p.c: Renamed from makepath.c.
55621         (make_dir_parents): Renamed from make_path.  All callers changed.
55622         * lib/mkdir-p.h: Likewise.  All includers changed.
55623         * lib/filenamecat.c: Renamed from path-concat.c.
55624         (file_name_concat): Renamed from path_concat.  All callers changed.
55625         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55626         * lib/filenamecat.h: Likewise.  All includers changed.
55627         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55628         in comments or local variable names.
55629         * lib/basename.c: Likewise.
55630         * lib/canonicalize.c, canonicalize.h: Likewise.
55631         * lib/dirname.c, dirname.h: Likewise.
55632         * lib/euidaccess.c: Likewise.
55633         * lib/exclude.c: Likewise
55634         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55635         * lib/fsusage.c, fsuage.h: Likewise.
55636         * lib/fts.c, fts_.h: Likewise.
55637         * lib/getcwd.c: Likewise.
55638         * lib/getloadavg.c: Likewise.
55639         * lib/mkstemp.c: Likewise.
55640         * lib/mountlist.c, mountlist.h: Likewise.
55641         * lib/openat.c, openat.h: Likewise.
55642         * lib/readlink-stub.c: Likewise.
55643         * lib/readutmp.c, readutmp.h: Likewise.
55644         * lib/rename.c: Likewise.
55645         * lib/rmdir.c: Likewise.
55646         * lib/same.c: Likewise.
55647         * lib/savedir.c: Likewise.
55648         * lib/stripslash.c: Likewise.
55649         * lib/tempname.c: Likewise.
55650         * lib/xreadlink.c: Likewise.
55651         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55652         All uses changed.
55653         * lib/exclude.h: Likewise.
55654
55655         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55656         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55657         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55658         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55659         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55660         files have been getting away with it for years (MORE/BSD 4.3
55661         is extinct now).
55662         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55663         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55664
55665         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55666         Define to 256, not 255, as per modern POSIX.
55667
55668 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55669
55670         Sync from coreutils.
55671         Use "file name" when talking about file names, instead of "filename"
55672         or "path", as per the GNU coding standards.
55673         * MODULES.html.sh: mkdir-p renamed from makepath.
55674         filenamecat renamed from path-concat.
55675         * modules/filenamecat: Renamed from modules/path-concat.
55676         (Files): filenamecat.h and filenamecat.c renamed from
55677         path-concat.h and path-concat.c.
55678         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55679         (Include): filenamecat.h, not path-concat.h.
55680         * modules/mkdir-p: Renamed from modules/makepath.
55681         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55682         makepath.c.
55683         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55684         (Include): mkdir-p.h, not makepath.h.
55685
55686 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55687
55688         Sync from coreutils.
55689         * m4/mkdir-p.m4: Renamed from makepath.m4.
55690         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55691         Rename files from makepath.c to mkdir-p.c, and from
55692         makepath.h to mkdir-p.h.
55693         * m4/filenamecat.m4: Renamed from path-concat.m4.
55694         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55695         Rename files from path-concat.c to filenamecat.c,
55696         and from path-concat.h to filenamecat.h.
55697         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55698         "file name" in local variables or comments.
55699         * m4/rename.m4: Likewise.
55700
55701 2005-06-01  Bruno Haible  <bruno@clisp.org>
55702
55703         * modules/csharpexec: New file.
55704         * MODULES.html.sh (C#): New section.
55705
55706 2005-06-01  Bruno Haible  <bruno@clisp.org>
55707
55708         * m4/csharp.m4: New file, from GNU gettext.
55709         * m4/csharpexec.m4: New file, from GNU gettext.
55710
55711 2005-06-01  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/csharpexec.h: New file, from GNU gettext.
55714         * lib/csharpexec.c: New file, from GNU gettext.
55715         * lib/csharpexec.sh.in: New file, from GNU gettext.
55716
55717 2005-05-31  Derek Price  <derek@ximbiot.com>
55718             Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         Sync from cvs.
55721         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55722
55723 2005-05-31  Derek Price  <derek@ximbiot.com>
55724             Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         Sync from cvs.
55727         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55728
55729 2005-05-29  Derek Price  <derek@ximbiot.com>
55730
55731         * config/srclist.txt (glob_.h, glob.c): Add these files.
55732
55733 2005-05-29  Derek Price  <derek@ximbiot.com>
55734
55735         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55736         * modules/glob: New file.
55737         * modules/getlogin_r: Add link to POSIX spec in description.
55738
55739 2005-05-29  Derek Price  <derek@ximbiot.com>
55740             Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * m4/glob.m4: New file.
55743
55744 2005-05-29  Derek Price  <derek@ximbiot.com>
55745             Paul Eggert  <eggert@cs.ucla.edu>
55746
55747         * lib/glob_.h, lib/glob.c: New files.
55748
55749 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55750
55751         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55752         * modules/fts-lgpl (Depends-on): Remove gettext.
55753
55754 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55757         and don't require gt_INTTYPES_PRI.
55758
55759 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55762
55763         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55764         the configuration hassle isn't worth it.
55765         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55766         (LONGEST_MODIFIER, PRIuMAX): Remove.
55767
55768 2005-05-27  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55771
55772 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55775         _POSIX_PTHREAD_SEMANTICS for Solaris.
55776
55777 2005-05-25  Derek Price  <derek@ximbiot.com>
55778
55779         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55780
55781 2005-05-25  Derek Price  <derek@ximbiot.com>
55782             Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55785         * lib/getlogin_r.c, getlogin_r.h: New files.
55786
55787 2005-05-25  Bruno Haible  <bruno@clisp.org>
55788             Derek Price  <derek@ximbiot.com>
55789
55790         * lib/getlogin_r.h: Simplify API documentation.
55791
55792 2005-05-23  Derek Price  <derek@ximbiot.com>
55793
55794         * modules/minmax (Files): Add m4/minmax.m4.
55795         (configure.ac): Add gl_MINMAX.
55796
55797 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55798
55799         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55800         so that unistd-safer.h (GPL'ed code) need not be included.
55801
55802 2005-05-22  Bruno Haible  <bruno@clisp.org>
55803
55804         * m4/minmax.m4: New file.
55805         Based on a patch by Derek Price <derek@ximbiot.com>.
55806
55807 2005-05-22  Bruno Haible  <bruno@clisp.org>
55808
55809         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55810         (INT64_MIN): Fix definition.
55811         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55812
55813         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55814         NEED_SIGNED_INT_TYPES.
55815
55816         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55817         HAVE_SYSTEM_INTTYPES.
55818
55819 2005-05-22  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55822         Also include <sys/param.h> if it defines MIN, MAX.
55823         Based on a patch by Derek Price <derek@ximbiot.com>.
55824
55825 2005-05-21  Jim Meyering  <jim@meyering.net>
55826
55827         * modules/fts (Files): Add m4/inttypes-pri.m4.
55828         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55829
55830 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         New fts module.
55833         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55834         (setup_dir, free_dir): New functions.
55835         (enter_dir, leave_dir): Define trivial
55836         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55837         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55838         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55839         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55840         Move to fts-cycle.c.
55841         (fts_open): Use setup_dir.
55842         (fts_close): Use free_dir.
55843         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55844         This adds a label and some gotos, but the alternatives were messier.
55845         Check for memory allocation failure when entering a dir.
55846         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55847         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55848         (FTS): New member fts_cycle, that is a union that contains the
55849         old active_dir_ht and cycle_state.  All uses changed to mention
55850         fts_cycle.ht and fts_cycle.state.
55851         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55852         fts.c, with the following changes:
55853         (setup_dir, free_dir): New functions.
55854         (enter_dir): Now returns bool.  Return true if successful, false
55855         if memory exhausted.  All callers changed.
55856         Do not bother partly cleaning up on
55857         memory allocation failure; that is free_dir's job.
55858         However, free ad if hash_insert fails, to avoid memory leak.
55859         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55860         fts->fts_options to see which union member to use.
55861
55862 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55863
55864         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55865         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55866
55867 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55870
55871 2005-05-20  Jim Meyering  <jim@meyering.net>
55872
55873         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55874         Now a macro, to pacify GCC.
55875
55876 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55877
55878         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55879         of -1.
55880
55881 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55882
55883         * lib/chown.c (rpl_chown): Return -1 on failure.
55884
55885 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55886
55887         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55888         Don't check for stddef.h.
55889         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55890         don't use its results.
55891         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55892         since we include them unconditionally.  Don't require
55893         AM_STDBOOL_H, since stdbool is a prerequisite.
55894         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55895         since we assume C89 or better.
55896         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55897         as we don't use their results.
55898         Don't check for fchdir, memmove, memset, strrchr, as we use
55899         them unconditionally.
55900         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55901         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55902
55903 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55906         Include <stddef.h> unconditionally, since we assume C89 now.
55907         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55908         * lib/fts.c: Include fts_.h first, to check interface.
55909         Do not include intprops.h; no longer needed.
55910         Include cycle-check.h and hash.h, since fts_.h no longer does.
55911         Remove unnecessary casts of closedir to void.
55912         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55913         decide whether to decrement nlinks.
55914         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55915         (FTS): Use struct hash_table * instead of Hash_table, so that
55916         we no longer need to include hash.h here.
55917
55918 2005-05-18  Jim Meyering  <jim@meyering.net>
55919
55920         * modules/dirfd (License): Change to LGPL.  Most of the code
55921         is already in the public domain.
55922
55923 2005-05-18  Jim Meyering  <jim@meyering.net>
55924
55925         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55926         Reported by Yoann Vandoorselaere.
55927
55928 2005-05-17  Jim Meyering  <jim@meyering.net>
55929
55930         * m4/fts.m4: New file, from coreutils.
55931
55932 2005-05-17  Jim Meyering  <jim@meyering.net>
55933
55934         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55935
55936 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55937
55938         Sync from coreutils.
55939         * m4/unlinkdir.m4: New file.
55940
55941 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55942
55943         Sync from coreutils.
55944         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55945         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55946         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55947         White space changes only.
55948         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55949         special.
55950         * lib/yesno.c: Include getline.h, not ctype.h.
55951         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55952         Use getline to remove arbitrary restriction on response length.
55953
55954 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55955
55956         * config/srclist-update: Spell out "Street" in FSF postal
55957         mail address; this is the style the FSF seems to prefer.
55958
55959         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55960         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55961         this updates FSF postal mail address.
55962
55963         Sync from coreutils.
55964         * modules/unlinkdir: New file.
55965         * modules/yesno (Depends-on): Add getline.
55966         * MODULES.html.sh (File system functions): Add unlinkdir.
55967
55968 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55969
55970         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55971         lib/strsep.h:
55972         Change the initial comment to refer to GPL, not LGPL.
55973         gnulib-tool will change it to LGPL as needed.
55974
55975         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55976         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55977         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55978         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55979         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55980         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55981         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55982         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55983         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55984         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55985         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55986         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55987         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55988         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55989         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55990         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55991         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55992         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55993         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55994         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55995         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55996         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55997         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55998         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55999         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56000         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56001         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56002         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56003         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56004         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56005         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56006         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56007         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56008         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56009         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56010         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56011         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56012         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56013         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56014         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56015         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56016         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56017         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56018         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56019         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56020         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56021         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56022         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56023         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56024         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56025         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56026         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56027         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56028         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56029         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56030         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56031         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56032         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56033         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56034         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56035         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56036         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56037         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56038         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56039         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56040         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56041         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56042         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56043         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56044         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56045         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56046         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56047         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56048         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56049         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56050         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56051         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56052         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56053         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56054         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56055         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56056         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56057         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56058         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56059         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56060         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56061         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56062         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56063         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56064         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56065         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56066         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56067         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56068         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56069         lib/yesno.c, lib/yesno.h:
56070         Update FSF postal mail address.
56071
56072 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56073
56074         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56075         tests/test-memmem.c, tests/test-stpncpy.c:
56076         Update FSF postal mail address.
56077
56078 2005-05-13  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56081         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56082         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56083         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56084         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56085         Add support for 64-bit integers in the MSVC compiler.
56086
56087 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56088
56089         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56090
56091 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56092
56093         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56094
56095 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56096
56097         * doc/getdate.texi (General date syntax): Don't say that date
56098         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56099         Problem reported by Nic Ferrier.
56100
56101 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56102
56103         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56104         specified in ai_socktype. Fix invalid ai_protocol
56105         check. ai_protocol is usually set to 0 or depending on
56106         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56107         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56108         ai_socktype / ai_protocol in the returned addrinfo structure.
56109
56110 2005-05-10  Simon Josefsson  <jas@extundo.com>
56111
56112         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56113         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56114
56115 2005-05-10  Karl Berry  <karl@gnu.org>
56116
56117         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56118         (from http://www.gnu.org/licenses).
56119         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56120         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56121         fdl.texi suffices.
56122
56123 2005-05-10  Karl Berry  <karl@gnu.org>
56124
56125         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56126         (COPYING.DOC): remove.
56127
56128         * config/srclist-update: new FSF address.
56129
56130 2005-05-10  Derek Price  <derek@ximbiot.com>
56131
56132         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56133         possible.
56134
56135 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56136             Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/inet_ntop: New file.
56139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56140         inet_ntop.
56141
56142 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56143             Bruno Haible  <bruno@clisp.org>
56144
56145         * m4/inet_ntop.m4: New file.
56146
56147 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56148             Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/inet_ntop.h: New file.
56151         * lib/inet_ntop.c: New file, from glibc with modifications.
56152
56153 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * modules/time_r (License): Change to LGPL.
56156         * modules/extensions (License): Change to LGPL.  Actually,
56157         the license is more permissive than that, but currently gnulib-tool
56158         doesn't know how to handle more-permissive licenses.
56159
56160         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56161         Problem reported by Dave Love.
56162
56163 2005-05-08  Jim Meyering  <jim@meyering.net>
56164
56165         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56166         blank.
56167
56168 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56169
56170         * modules/argmatch (Depends-on): Add stdbool.
56171         * modules/backupfile (Depends-on): Likewise.
56172         * modules/chdir-long (Depends-on): Likewise.
56173         * modules/closeout (Depends-on): Likewise.
56174         * modules/cycle-check (Depends-on): Likewise.
56175         * modules/dirname (Depends-on): Likewise.
56176         * modules/fnmatch (Depends-on): Likewise.
56177         * modules/fsusage (Depends-on): Likewise.
56178         * modules/fwriteerror (Depends-on): Likewise.
56179         * modules/getcwd (Depends-on): Likewise.
56180         * modules/getloadavg (Depends-on): Likewise.
56181         * modules/hard-locale (Depends-on): Likewise.
56182         * modules/makepath (Depends-on): Likewise.
56183         * modules/mountlist (Depends-on): Likewise.
56184         * modules/nanosleep (Depends-on): Likewise.
56185         * modules/posixtm (Depends-on): Likewise.
56186         * modules/quotearg (Depends-on): Likewise.
56187         * modules/readtokens (Depends-on): Likewise.
56188         * modules/readtokens0 (Depends-on): Likewise.
56189         * modules/readutmp (Depends-on): Likewise.
56190         * modules/save-cwd (Depends-on): Likewise.
56191         * modules/strftime (Depends-on): Likewise.
56192         * modules/userspec (Depends-on): Likewise.
56193         * modules/utimecmp (Depends-on): Likewise.
56194         * modules/xgetcwd (Depends-on): Likewise.
56195         * modules/xnanosleep (Depends-on): Likewise.
56196         * modules/xstrtod (Depends-on): Likewise.
56197         * modules/yesno (Depends-on): Likewise.
56198
56199 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56200
56201         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56202         needless checks.
56203
56204 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56205
56206         Merge from coreutils.  Among other things,
56207         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56208         * lib/fd-safer.c: New file.
56209         * lib/fcntl-safer.h, open-safer.c: Remove.
56210         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56211         * lib/dup-safer.c: Include unistd-safer.h first.
56212         Don't include errno.h.
56213         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56214         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56215         * lib/file-type.c: Rely on file-type.h change.
56216         * lib/getloadavg.c: Include unistd-safer.h.
56217         (getloadavg): Use safer open.
56218         * lib/getusershell.c: Include "stdio-safer.h".
56219         (getusershell): Use safer fopen.
56220         * lib/long-options.c (long_options): Use NULL rather than 0.
56221         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56222         'free'.
56223         * lib/modechange.c: Likewise.
56224         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56225         (MODE_DONE): New constant.
56226         (struct mode_change): Remove 'next' member.
56227         (make_node_op_equals): New function; like the old one of the
56228         same name, except it allocates an array.
56229         (mode_compile, mode_create_from_ref): Use it.
56230         (mode_compile): Allocate result as an array, not a linked list.
56231         Parse octal string ourself, so that we catch mistakes like "+0".
56232         (mode_adjust): Arg is an array, not a linked list.
56233         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56234         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56235         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56236         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56237         Remove.  This is now stat-macros.h's job.
56238         (talloc): Remove.  All callers replaced by xalloc, so that
56239         our invokers don't have to worry about reporting memory failures.
56240         (make_node_op_equals): Remove.
56241         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56242         New constants.
56243         (struct mode_change): Moved here from modechange.h.
56244         (mode_append_entry): Remove.
56245         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56246         apps to have incorrect behavior.  Use simpler algorithm for head
56247         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56248         Detect more invalid usages rather than having somewhat-random behavior.
56249         Don't insert an "a=" action, as that leads to incorrect behavior.
56250         (mode_compile, mode_create_from_ref): Return NULL on error instead
56251         of an enum, since now there's only one way to have an error.  All
56252         callers changed.
56253         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56254         at the correct time.  Simplify calculation of "+u" and its ilk.
56255         Don't mishandle "+X".
56256         (mode_free): Remove "register" and localize decls.
56257         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56258         (struct mode_change): Move to modechange.c; callers don't
56259         need to see this stuff.
56260         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56261         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56262         (mode_change, mode_adjust): Reflect the new signatures noted above.
56263         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56264         that might redefine system include files.
56265         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56266         (my_usleep): Use NULL rather than (void *) 0.
56267         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56268         Use siginterrupt to specify that system calls should be interrupted.
56269         (rpl_nanosleep): Move initialization of suspended closer to call of
56270         my_usleep.
56271         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56272         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56273         (desirable_utmp_entry): New function.
56274         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56275         using x2nrealloc, to simplify logic.
56276         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56277         size calculation.  Do not assume utmp file is a regular file.
56278         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56279         (READ_UTMP_CHECK_PIDS): New constant.
56280         * lib/save-cwd.c: Include unistd-safer.h.
56281         (save_cwd): Use fd_safer.
56282         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56283         [!_LIBC] Include "stat-macros.h" instead.
56284         * lib/unistd-safer.h (fd_safer): New decl.
56285
56286 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56287
56288         * modules/getloadavg (Depends-on): Add unistd-safer.
56289         * modules/getusershell (Depends-on): Add stdio-safer.
56290         * modules/lstat (Depends-on): Remove xalloc.
56291         * modules/mkstemp (Depends-on): Add stat-macros.
56292         * modules/modechange (Depends-on): Remove xstrtol.
56293         Add stat-macros, xalloc.
56294         * modules/save-cwd (Depends-on): Add unistd-safer.
56295         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56296         * modules/unistd-safer (Files): Add lib/fd-safer.c
56297         (Makefile.am): Remove lib_SOURCES.
56298
56299         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56300         Remove fcntl-safer; unistd-safer supersedes it.
56301
56302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56305         AC_HEADER_STAT.
56306         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56307         (gl_PREREQ_CHOWN): Remove.
56308         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56309         it.  Don't require AC_HEADER_STAT.
56310         (gl_PREREQ_LSTAT): Remove.
56311         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56312         Don't require AC_HEADER_STAT.
56313         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56314         (gl_PREREQ_RMDIR): Remove.
56315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56316         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56317         the stat-macros module a prerequisite.
56318         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56319         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56320         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56321         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56322         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56323         variable names.
56324         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56325         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56326         variable prefixes.
56327         * m4/fcntl-safer.m4: Remove.
56328         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56329         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56330         Invoke gl_PREREQ_FD_SAFER.
56331         (gl_PREREQ_FD_SAFER): New macro.
56332         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56333         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56334         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56335         Remove duplicate call to AC_LIBOBJ(readutmp).
56336         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56337
56338         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56339         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56340
56341 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         * MODULES.html.sh (Misc): Add byteswap.
56344
56345 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56346
56347         * modules/getcwd (Depends-on): Add extensions.
56348         * modules/openat (Depends-on): Likewise.
56349
56350 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56351
56352         * modules/byteswap: New file.
56353
56354 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56355
56356         * m4/byteswap.m4: New file.
56357
56358 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56359
56360         * lib/byteswap_.h: New file.
56361
56362 2005-04-25  Karl Berry  <karl@gnu.org>
56363
56364         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56365
56366 2005-04-25  Albert Chin  <china@thewrittenword.com>
56367
56368         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56369         Toolkit C bug.
56370
56371 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56372
56373         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56374         (func_ln_if_changed) Remove forcibly for no error message
56375         in case file does not exist.
56376
56377 2005-04-19  Simon Josefsson  <jas@extundo.com>
56378
56379         * gnulib-tool (Options): Make --symlink mean --symbolic.
56380
56381 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56382
56383         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56384
56385 2005-04-16  Simon Josefsson  <jas@extundo.com>
56386
56387         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56388
56389 2005-04-15  Simon Josefsson  <jas@extundo.com>
56390
56391         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56392
56393 2005-04-15  Simon Josefsson  <jas@extundo.com>
56394
56395         * gnulib-tool: Rename --symlink to --symbolic.
56396
56397 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56398
56399         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56400         symbolic links to files instead of copying/moving.  Add --aux-dir,
56401         specifying directory relative --dir where auxiliary build tools
56402         are placed.
56403
56404 2005-04-14  Bruno Haible  <bruno@clisp.org>
56405
56406         * modules/allocsa (License): Change to LGPL.
56407         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56408
56409 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56412         that "UTC +1 second" continues to work.  Problem reported
56413         by Dmitry V. Levin.
56414         (relunit_snumber): New rule.
56415         (relunit): Use it.
56416
56417 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         * lib/getdate.y (universal_time_zone_table): New constant.
56420         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56421         universal_time_zone_table.
56422         (lookup_zone): Prefer universal_time_zone_table to
56423         local_time_zone_table, so that "GMT" time stamps are allowed in
56424         London during the summer.  Problem reported by Ian Abbott.
56425
56426 2005-04-12  Jim Meyering  <jim@meyering.net>
56427
56428         * lib/human.c (humblock): Set *options even when returning due to
56429         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56430         warning from gcc-4.
56431
56432 2005-04-09  Jim Meyering  <jim@meyering.net>
56433
56434         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56435         -Wuninitialized: initialize tm0.tm_year.
56436
56437 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56438
56439         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56440         count, since there's no maximum.  All uses changed.
56441         Add member dsts_seen.
56442         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56443         not being INT_MAX.
56444         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56445         Use pc_rels_seen to decide whther a date is absolute.
56446
56447         * lib/getdate.y (number): Don't overwrite year.
56448         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56449         check.
56450
56451 2005-04-02  Simon Josefsson  <jas@extundo.com>
56452
56453         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56454         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56455
56456 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56457
56458         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56459         where no absolute path name can be longer than PATH_MAX.
56460
56461 2005-03-27  Jim Meyering  <jim@meyering.net>
56462
56463         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56464
56465 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56468         "one's complement" -> "ones' complement" in comment, as per Knuth.
56469         "value of type" -> "type or expression" in comment.
56470         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56471
56472 2005-03-26  Jim Meyering  <jim@meyering.net>
56473
56474         Comment nits.
56475         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56476         Correct typos: s/or/of/.
56477
56478 2005-03-26  Jim Meyering  <jim@meyering.net>
56479
56480         * modules/check-include-files: Move to ../ and rename to...
56481         * check-module: ...this.
56482
56483 2005-03-25  Jim Meyering  <jim@meyering.net>
56484
56485         * modules/xvasprintf (Files): Add xalloc.h.
56486
56487 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         * modules/gettext (Files): config/config.rpath ->
56490         build-aux/config.rpath
56491         * modules/iconv (Files): Likewise.
56492         Problem reported by Oskar Liljeblad.
56493
56494 2005-03-23  Jim Meyering  <jim@meyering.net>
56495
56496         * modules/check-include-files: New script to check for
56497         missing dependencies, multiple includes, etc.
56498
56499         * modules/c-strtold (Depends-on): Add xalloc.
56500         * modules/c-strtod (Depends-on): Add xalloc.
56501         * modules/hash (Depends-on): Add xalloc.
56502         (Files): Remove lib/xalloc.h.
56503
56504         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56505         * modules/userspec (Files): Add lib/inttostr.h.
56506
56507 2005-03-23  Jim Meyering  <jim@meyering.net>
56508
56509         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56510
56511 2005-03-22  Jim Meyering  <jim@meyering.net>
56512
56513         * modules/stat-macros: New module.
56514         * modules/canonicalize, modules/euidaccess, modules/file-type,
56515         * modules/filemode, modules/lchown, modules/makepath,
56516         * modules/rmdir, modules/stat: Depend on new stat-macros module
56517         rather than listing lib/stat-macros.h manually.
56518         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56519
56520 2005-03-22  Jim Meyering  <jim@meyering.net>
56521
56522         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56523
56524 2005-03-22  Bruno Haible  <bruno@clisp.org>
56525
56526         * config/srclist.txt: Replace target directory 'config' with
56527         'build-aux'.
56528         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56529         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56530         ../build-aux/.
56531
56532 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56533
56534         * modules/chdir-long (Depends-on): Add mempcpy.
56535
56536         * modules/acl, modules/backupfile, modules/c-strtod,
56537         modules/c-strtold, modules/canon-host, modules/canonicalize,
56538         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56539         modules/exclude, modules/exitfail, modules/file-type,
56540         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56541         modules/getdate, modules/getline, modules/getpagesize,
56542         modules/getpass, modules/getugroups, modules/group-member,
56543         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56544         modules/inttostr, modules/long-options, modules/makepath,
56545         modules/md5, modules/memcasecmp, modules/memcoll,
56546         modules/modechange, modules/mountlist, modules/path-concat,
56547         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56548         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56549         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56550         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56551         modules/strftime, modules/strndup, modules/strverscmp,
56552         modules/timespec, modules/unlocked-io, modules/userspec,
56553         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56554         modules/yesno:
56555         Remove lib_SOURCES line from Makefile.am section, as this is now
56556         done automatically by the corresponding Autoconf macro.
56557
56558 2005-03-21  Jim Meyering  <jim@meyering.net>
56559
56560         Changes imported from coreutils.
56561
56562         * lib/cycle-check.c: Don't include xalloc.h.
56563
56564         * lib/path-concat.c: Don't include assert.h.
56565         (path_concat): Remove assertion that would have triggered
56566         for ABASE starting with more than one slash.
56567         Reported by Andreas Schwab.
56568
56569         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56570         properly when ABASE is an absolute file name.
56571         Correct the description of this function.
56572         Include <assert.h>.
56573         Add an assertion and a test driver.
56574         This fixes a bug introduced on 2004-07-02.
56575         Andreas Schwab reported the resulting failure of cp --parents:
56576         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56577
56578 2005-03-21  Jim Meyering  <jim@meyering.net>
56579
56580         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56581         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56582
56583 2005-03-21  Jim Meyering  <jim@meyering.net>
56584         and  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56587         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56588         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56589         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56590         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56591         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56592         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56593         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56594         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56595         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56596         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56597         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56598         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56599         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56600         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56601         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56602         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56603         for these modules.
56604
56605 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56606
56607         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56608         (which shouldn't happen), generate nothing instead of returning 0
56609         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56610
56611 2005-03-16  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56614         HAVE_LONGLONG_64BIT.
56615
56616 2005-03-16  Bruno Haible  <bruno@clisp.org>
56617
56618         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56619         HAVE_LONGLONG_64BIT.
56620
56621 2005-03-16  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56624         HAVE_LONGLONG_64BIT.
56625
56626 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56627
56628         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56629         reliably distinguish strftime failure from empty output on POSIX
56630         hosts.
56631
56632 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56633
56634         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56635         (iconv_string): Don't guess a size-zero buffer, as that might cause
56636         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56637         result would be 'too large', where 'too large' is (heuristically)
56638         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56639         overflow concerns.  This will prevent some unwanted malloc failures
56640         when the inputs are very large.
56641
56642 2005-03-15  Karl Berry  <karl@gnu.org>
56643
56644         * config/srclist.txt (config.rpath): from gettext.
56645         * config/config.rpath: update.
56646
56647 2005-03-15  Bruno Haible  <bruno@clisp.org>
56648
56649         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56650         to 'negate'.
56651
56652         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56653         variable.
56654
56655         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56656         results.
56657
56658 2005-03-14  Simon Josefsson  <jas@extundo.com>
56659
56660         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56661         <fx@gnu.org>.
56662
56663 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56666         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56667         intprops.h.
56668         * lib/strtol.c: Likewise.
56669
56670 2005-03-14  Jim Meyering  <jim@meyering.net>
56671
56672         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56673         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56674         to be nonzero so that we (and caller) can detect the difference
56675         between a valid zero-length expansion and an error return, even
56676         when the underlying strftime fails before writing anything into
56677         that location.
56678
56679 2005-03-14  Bruno Haible  <bruno@clisp.org>
56680
56681         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56682         Update from GNU gettext 0.14.3.
56683
56684 2005-03-10  Jim Meyering  <jim@meyering.net>
56685
56686         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56687
56688 2005-03-10  Jim Meyering  <jim@meyering.net>
56689
56690         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56691         so that this module works on systems without fchdir.
56692
56693 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56694
56695         Factor int-properties macros into a single file, except for
56696         glibc-related files.
56697         * lib/intprops.h: New file.
56698         * lib/getloadavg.c: Include it instead of limits.h.
56699         (INT_STRLEN_BOUND): Remove.
56700         * lib/human.c: Include intprops.h.
56701         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56702         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56703         302/1000.
56704         * lib/inttostr.h: Include intprops.h instead of limits.h.
56705         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56706         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56707         for consistency with intprops.h.
56708         (time_t_is_integer, twos_complement_arithmetic): Use them.
56709         * lib/sig2str.h: Include <signal.h>, intprops.h.
56710         (INT_STRLEN_BOUND): Remove.
56711         * lib/strftime.c (TYPE_SIGNED): Remove.
56712         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56713         * lib/strtol.c: Adjust comments to match intprops.h.
56714         * lib/userspec.c: Include intprops.h.
56715         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56716         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56717         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56718         instead of rolling our own expressions.
56719         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56720
56721         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56722         instead of int.
56723         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56724         the right thing even if adding 1900 would overflow.  Similarly
56725         for tm_mon + 1 and tm_yday + 1.
56726         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56727         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56728         (DO_SIGNED_NUMBER): New macro.
56729         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56730
56731 2005-03-07  Bruno Haible  <bruno@clisp.org>
56732
56733         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56734
56735 2005-03-07  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56738
56739 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56740
56741         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56742         (func_import): Only replace files via --import when they have actually
56743         changed.
56744
56745 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56746
56747         * m4/mmap-anon.m4: New file.
56748         * m4/pagealign_alloc.m4: New file.
56749
56750 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56751             Bruno Haible  <bruno@clisp.org>
56752
56753         * modules/pagealign_alloc: New file.
56754         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56755
56756 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56757             Bruno Haible  <bruno@clisp.org>
56758
56759         * lib/pagealign_alloc.h: New file.
56760         * lib/pagealign_alloc.c: New file.
56761
56762 2005-03-03  Bruno Haible  <bruno@clisp.org>
56763
56764         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56765         Use an all-permissive copyright notice, recommended by RMS.
56766
56767 2005-03-02  Bruno Haible  <bruno@clisp.org>
56768
56769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56770         of AIX, the replacement has to be done only after <string.h> is
56771         included, therefore not in config.h. stpncpy.h does the replacement,
56772         and stpncpy.c uses it.
56773
56774 2005-03-02  Bruno Haible  <bruno@clisp.org>
56775
56776         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56777         stpncpy.c uses it.
56778
56779 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56782         The workaround isn't strictly needed for POSIX conformance, and
56783         it's too much of a pain to configure and maintain.  We'll ask
56784         people to fix their kernels instead.
56785         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56786         (NANOSLEEP_BUG_WORKAROUND): Remove.
56787         (xnanosleep): Remove the workaround.
56788
56789 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56792         Reported by Derek Price.
56793         (Include): Add "timespec.h".
56794
56795         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56796
56797 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56800         to detect nanosleep bug.
56801
56802 2005-03-01  Bruno Haible  <bruno@clisp.org>
56803
56804         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56805
56806 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * modules/gethrxtime: New file.
56809         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56810         (Depends-on): Add gethrxtime.
56811         (configure.ac): Add gl_XNANOSLEEP.
56812         (Makefile.am): Remove lib_SOURCES line.
56813
56814 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56817         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56818
56819 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56822         * lib/timespec.h (gettime): Return void, since it always
56823         succeeds now.  All uses changed.
56824         * lib/gettime.c (gettime) Likewise.
56825         [HAVE_NANOTIME]: Prefer nanotime.
56826         Assume gettimeofday succeeds, as POSIX requires.
56827         Assime time () succeeds, since other code already does.
56828         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56829         (timespec_subtract): Remove.
56830         (NANOSLEEP_BUG_WORKAROUND): New constant.
56831         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56832         things considerably.  Use it only on GNU/Linux hosts, since the
56833         workaround shouldn't be needed elsewhere.
56834
56835 2005-02-24  Bruno Haible  <bruno@clisp.org>
56836
56837         * modules/gettext (Files): Add m4/glibc2.m4.
56838
56839 2005-02-24  Bruno Haible  <bruno@clisp.org>
56840
56841         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56842         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56843         * m4/progtest.m4:
56844         Update from GNU gettext 0.14.2.
56845         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56846
56847 2005-02-24  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56850         * lib/config.charset: Update from GNU gettext 0.14.2.
56851
56852 2005-02-24  Bruno Haible  <bruno@clisp.org>
56853
56854         * lib/gettext.h: Update from GNU gettext 0.14.2.
56855
56856 2005-02-23  Simon Josefsson  <jas@extundo.com>
56857
56858         * m4/iconvme.m4: New file.
56859
56860 2005-02-23  Jim Meyering  <jim@meyering.net>
56861
56862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56863         change.
56864         Thanks to Bruno Haible for catching it.
56865
56866 2005-02-22  Simon Josefsson  <jas@extundo.com>
56867
56868         * modules/iconvme: New file.
56869
56870         * MODULES.html.sh: Add iconvme.
56871
56872 2005-02-22  Simon Josefsson  <jas@extundo.com>
56873
56874         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56875
56876 2005-02-22  Simon Josefsson  <jas@extundo.com>
56877
56878         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56879
56880 2005-02-22  Jim Meyering  <jim@meyering.net>
56881
56882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56883         s/ifndef/ifdef/.
56884
56885 2005-02-20  Neil Conway  <neilc@samurai.com>
56886
56887         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56888         returned by OSX/Darwin if the specified buffer is not large
56889         enough for the hostname.
56890
56891 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56892
56893         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56894         pass it to _help, otherwise the latter coredumps trying to
56895         dereference state.root_argp.
56896
56897 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * modules/chdir-long (Depends-on): Add memrchr.
56900         * modules/memrchr (Files): Add lib/memrchr.h.
56901         (Include): "memrchr.h".
56902
56903 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56906
56907 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * lib/memrchr.h: New file.
56910         * lib/chdir-long.c: Include it.
56911         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56912         Don't bother including stddef.h.
56913
56914 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56915
56916         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56917         inclusion.
56918         Include <sys/types.h>, for dev_t.
56919         (ME_DUMMY, ME_REMOTE): Move from here....
56920         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56921         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56922         Dmitry V. Levin.
56923         Include mountlist.h first, to test the interface.
56924
56925 2005-01-29  Bruno Haible  <bruno@clisp.org>
56926
56927         * lib/progname.c (program_name): Initialize.
56928         Needed when linking statically on MacOS X.
56929
56930 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         Sync from coreutils.
56933         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56934         (Depends-on): Add c-strtod.
56935         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56936
56937 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         Sync from coreutils.
56940         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56941
56942         Remove files that are specific to coreutils.
56943         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56944
56945 2005-01-28  Bruno Haible  <bruno@clisp.org>
56946
56947         * modules/javacomp: New file.
56948         * MODULES.html.sh (Java): Add javacomp.
56949
56950 2005-01-28  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/javacomp.m4: New file, from GNU gettext.
56953
56954 2005-01-28  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/javacomp.sh.in: New file, from GNU gettext.
56957         * lib/javacomp.h: New file, from GNU gettext.
56958         * lib/javacomp.c: New file, from GNU gettext.
56959
56960 2005-01-26  Simon Josefsson  <jas@extundo.com>
56961
56962         * lib/gai_strerror.c: Use GPL in header.
56963
56964 2005-01-26  Bruno Haible  <bruno@clisp.org>
56965
56966         * modules/javaexec: New file.
56967         * MODULES.html.sh (Java): Add javaexec.
56968
56969 2005-01-26  Bruno Haible  <bruno@clisp.org>
56970
56971         * m4/javaexec.m4: New file, from GNU gettext.
56972
56973 2005-01-26  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/javaexec.sh.in: New file, from GNU gettext.
56976         * lib/javaexec.h: New file, from GNU gettext.
56977         * lib/javaexec.c: New file, from GNU gettext.
56978
56979 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56980
56981         * modules/lchown (Depends-on): Remove lchown.h
56982
56983 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56984
56985         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56986         must be defined if the header file was not found, in order
56987         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56988
56989 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56990
56991         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56992         initializers for struct pentry_state.
56993         (__argp_error): Check return value of __asprintf
56994         (__argp_failure): Translate error message
56995
56996         * lib/argp-parse.c: Removed braces around the expansion of N_()
56997
56998 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57001         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57002         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57003         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57004         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57005         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57006         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57007         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57008         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57009         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57010         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57011         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57012         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57013         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57014         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57015         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57016         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57017         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57018         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57019         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57020         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57021         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57022         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57023         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57024         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57025         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57026         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57027         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57028         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57029         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57030         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57031         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57032         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57033         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57034         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57035         Use an all-permissive copyright notice, recommended by RMS.
57036
57037 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * modules/chdir-long (Depends-on): Remove mempcpy.
57040
57041 2005-01-21  Jim Meyering  <jim@meyering.net>
57042
57043         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57044         same value as for Solaris 9.
57045
57046         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57047         component length.  This included changing the parameter to be
57048         of type `char *' rather than `char const *'.
57049         * lib/chdir-long.h (chdir_long): Update prototype.
57050
57051         * lib/openat.c (fdopendir, fstatat): New functions.
57052         * lib/openat.h: Include headers required for use of DIR and struct
57053         stat.
57054         [AT_SYMLINK_NOFOLLOW]: Define.
57055         (fdopendir, fstatat): Add prototypes.
57056
57057 2005-01-21  Bruno Haible  <bruno@clisp.org>
57058
57059         * modules/classpath: New file.
57060         * MODULES.html.sh (Java): Add classpath.
57061
57062 2005-01-21  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/classpath.h: New file, from GNU gettext.
57065         * lib/classpath.c: New file, from GNU gettext.
57066
57067 2005-01-20  Simon Josefsson  <jas@extundo.com>
57068
57069         * modules/version-etc-fsf: New file.
57070
57071 2005-01-20  Simon Josefsson  <jas@extundo.com>
57072
57073         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57074         * lib/version-etc.c: Remove version_etc_copyright.
57075         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57076         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57077
57078 2005-01-20  Simon Josefsson  <jas@extundo.com>
57079
57080         * lib/base64.h (isbase64): Add.
57081
57082         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57083         using a unsigned prototype, don't inline.
57084         (base64_decode): Use it.
57085
57086 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57089         it.
57090
57091 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         * lib/save-cwd.c (save_cwd): Remove code to support the case
57094         where fchdir is missing or flaky.
57095
57096 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57099
57100 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57103         AC_LIBSOURCES now does this.
57104         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57105         with new ullong_max module.
57106
57107 2005-01-19  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/sh-quote: New file.
57110         * MODULES.html.sh (Executing programs): Add sh-quote.
57111
57112 2005-01-19  Bruno Haible  <bruno@clisp.org>
57113
57114         * lib/sh-quote.h: New file, from GNU gettext.
57115         * lib/sh-quote.c: New file, from GNU gettext.
57116
57117 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57118
57119         Merge from coreutils.
57120         * m4/ullong_max.m4: New file.
57121         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57122         (gl_MACROS): Assume localeconv exists.
57123
57124 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57125
57126         Merge changes from coreutils, as described below in several
57127         changelogs dated today.
57128
57129         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57130         (O_DIRECTORY): Remove; not needed here, since "." must be
57131         a directory.  All uses removed.
57132         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57133         universal on Suns, and we also need to test for IRIX.
57134         Revamp code to use 'if' rather than '#if'.
57135         Avoid unnecessary comparison of cwd->desc to 0.
57136
57137         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57138         for known valid error numbers rather than observed invalid ones.
57139
57140 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * modules/ullong_max: New file.
57143
57144         * modules/chdir-long, modules/openat: New files.
57145         * modules/save-cwd (Depends-on): Depend on chdir-long.
57146         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57147
57148 2005-01-18  Jim Meyering  <jim@meyering.net>
57149
57150         Merge from coreutils.
57151         * m4/chdir-long.m4, m4/openat.m4: New files.
57152         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57153         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57154         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57155         is sane and DOES follow symlinks.  Besides, testing 20 different
57156         systems found no broken chown implementations.
57157         Prompted by a change in rsync's copy of this macro.
57158         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57159
57160         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57161
57162         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57163         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57164         NULL-means-set-to-current-time semantics.
57165         Remove temporary file immediately, rather than waiting
57166         for configure's at-exit trap code to do it.
57167
57168 2005-01-18  Jim Meyering  <jim@meyering.net>
57169
57170         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57171
57172         * lib/utimens.c (futimens): Account for the fact that futimes
57173         can also fail with errno == ENOSYS or errno == ENOENT.
57174         Patch from Dmitry V. Levin.
57175
57176         Change the name of the robust chdir function from chdir to chdir_long.
57177         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57178         (restore_cwd): Use chdir_long, not chdir.
57179         * lib/chdir-long.c: Renamed from chdir.c.
57180         * lib/chdir-long.h: Renamed from chdir.h.
57181         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57182         Hurd.
57183
57184 2005-01-18  Bruno Haible  <bruno@clisp.org>
57185
57186         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57187         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57188         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57189         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57190         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57191         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57192         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57193         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57194         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57195         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57196         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57197         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57198         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57199         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57200         Use an all-permissive copyright notice, recommended by RMS.
57201
57202 2005-01-18  Bob Proulx  <bob@proulx.com>
57203
57204         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57205         simplify offsetof() macro construct to avoid compile failure with
57206         native HP-UX 11.0 ANSI C compiler.
57207
57208 2005-01-17  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57211         redundant because stpncpy.m4 takes care of it.
57212
57213 2005-01-17  Bruno Haible  <bruno@clisp.org>
57214
57215         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57216
57217 2005-01-17  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57220         used.
57221
57222 2005-01-17  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/fwriteerror.h (fwriteerror): Change specification to include
57225         fclose.
57226         * lib/fwriteerror.c: Include <stdbool.h>.
57227         (fwriteerror): At the end, close the file stream. Record whether
57228         stdout was already closed.
57229
57230 2005-01-17  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/execute.c (environ): Declare if needed.
57233         * lib/pipe.c (environ): Likewise.
57234         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57235
57236 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57237
57238         * modules/argp: Depend on vsnprintf
57239
57240 2005-01-10  Jim Meyering  <jim@meyering.net>
57241
57242         * modules/closeout (Depends-on): Add atexit.
57243
57244 2005-01-06  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57247
57248 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57251         definitions to be after all include files, to avoid collisions.
57252         Problem reported by Bob Proulx.
57253
57254 2005-01-04  Jim Meyering  <jim@meyering.net>
57255
57256         Changes imported from coreutils.
57257         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57258         as the mkstemp template, use a temporary directory and an
57259         8.3-friendly template to avoid trouble on systems like DJGPP.
57260         Reported by Juan M. Guerrero via Stepan Kasal.
57261         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57262         close. Remove the temporary directory right away, rather than waiting
57263         for configure's at-exit trap code to do it.
57264         Suggestion from Stepan Kasal.
57265
57266 2005-01-01  Simon Josefsson  <jas@extundo.com>
57267
57268         * gnulib-tool: Print #include directives when --import'ing.
57269
57270 2004-12-28  Simon Josefsson  <jas@extundo.com>
57271
57272         * tests/test-base64.c: Include required header files.  Remove
57273         unused variables.
57274
57275 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         * modules/error (Depends-on): Remove gettext.
57278
57279 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57282         not needed.  This removes a dependency on the gettext module.
57283         [defined _LIBC]: Do not include <libintl.h>; not needed.
57284
57285 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57288         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57289
57290 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57293         HAVE_DECL_STRTOLD.
57294
57295 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         * modules/getdate (Depends-on): Remove alloca-opt.
57298
57299 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57300
57301         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57302
57303 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57304
57305         * lib/argp-parse.c: Include <stddef.h>.
57306         (alignof, alignto): New macros.
57307         (parser_init): Don't assume that void * is aligned sufficiently
57308         for struct option.
57309
57310         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57311         need to extend the stack.
57312         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57313         large.
57314
57315 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57316
57317         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57318
57319 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57322         (2004-10-24) change.  Apparently this was a false alarm.
57323
57324         * modules/getdate: Depend on alloca-opt, not alloca.
57325
57326 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57327
57328         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57329         Remove now-obsolete comment about AIX.
57330         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57331         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57332         (YYMAXDEPTH): New macro.
57333
57334 2004-12-18  Simon Josefsson  <jas@extundo.com>
57335
57336         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57337
57338 2004-12-18  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57341
57342 2004-12-18  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/fatal-signal.c (fatal_signals): Make non-const.
57345         (init_fatal_signals): New function.
57346         (uninstall_handlers, install_handlers): Ignore signals that were set to
57347         SIG_IGN.
57348         (at_fatal_signal): Call init_fatal_signals.
57349         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57350         SIG_IGN.
57351         Reported by Paul Eggert.
57352
57353 2004-12-18  Bruno Haible  <bruno@clisp.org>
57354
57355         * doc/alloca.texi: New file.
57356         * doc/alloca-opt.texi: New file.
57357
57358 2004-12-17  Jim Meyering  <jim@meyering.net>
57359
57360         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57361         Otherwise, install-sh could exit with improper exit status when
57362         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57363
57364 2004-12-16  Simon Josefsson  <jas@extundo.com>
57365
57366         * tests/test-base64.c: Add license.
57367
57368 2004-12-15  Stepan Kasal  <address@hidden>
57369
57370         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57371
57372 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57373
57374         * modules/getcwd (Files): Add m4/d-ino.m4.
57375         Suggested by Mark D. Baushke.
57376
57377 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57378
57379         * lib/getdate.y (textint): New member "negative".
57380         (time_zone_hhmm): New function.
57381         Expect 14 shift-reduce conflicts, not 13.
57382         (o_colon_minutes): New rule.
57383         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57384         (yylex): Set the "negative" member of signed numbers.
57385
57386 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * doc/getdate.texi (Time of day items, Time zone items):
57389         Describe new formats +00:00, UTC+00:00.
57390
57391 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57394         spurious "-l"s.  Problem reported by Stepan Kasal.
57395
57396 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57399         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57400
57401 2004-12-04  Simon Josefsson  <jas@extundo.com>
57402
57403         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57404         Vandoorselaere <yoann@prelude-ids.org>.
57405
57406 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57407
57408         Changes imported from coreutils.
57409         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57410         exist.
57411         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57412
57413 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         Changes imported from coreutils.
57416         * lib/hard-locale.c: Assume <locale.h> exists.
57417         Include "strdup.h".
57418         (GLIBC_VERSION): New macro.
57419         (hard_locale): Assume setlocale exists.
57420         Rewrite to avoid #ifdef.
57421         Use strdup rather than malloc + strcpy.
57422         * lib/human.c: Assume <locale.h> exists.
57423         (human_readable): Assume localeconv exists.
57424
57425 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57426
57427         * modules/hard-locale (Depends-on): Add strdup.
57428
57429 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57430
57431         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57432         convert T2, not T.  (Imported from libc.)
57433
57434 2004-11-30  Simon Josefsson  <jas@extundo.com>
57435
57436         * modules/restrict (License): Change to LGPL.
57437
57438 2004-11-30  Simon Josefsson  <jas@extundo.com>
57439
57440         * m4/restrict.m4: Add copyright and copying conditions.
57441
57442 2004-11-30  Simon Josefsson  <jas@extundo.com>
57443
57444         * m4/base64.m4: New file.
57445
57446 2004-11-30  Simon Josefsson  <jas@extundo.com>
57447
57448         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57449         base64.
57450
57451         * tests/test-base64.c: New file.
57452
57453         * modules/base64: New file.
57454
57455 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57458         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57459
57460         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57461
57462 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57463
57464         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57465         (__getcwd.c): Don't restore errno; glibc doesn't.
57466         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57467         first, falling back to our code only if its results look suspicious.
57468         Ensure that the resulting buffer is only as large as necessary.
57469
57470         * lib/readutmp.c: Include readutmp.h first.
57471         Include <errno.h>, since readutmp.h no longer does that.
57472         * lib/readutmp.h: Don't include <errno.h>,
57473         <sys/param.h>, <time.h>; not needed to establish interface.
57474         (errno): Remove decl.
57475         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57476         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57477         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57478
57479 2004-11-28  Simon Josefsson  <jas@extundo.com>
57480
57481         * lib/base64.h, base64.c: New file.
57482
57483 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57484
57485         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57486
57487 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57488
57489         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57490         (Depends-on): Remove pathmax, same.  Add mempcpy.
57491         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57492         (Makefile.am): Append getcwd.h to lib_SOURCES.
57493         (Include): Add getcwd.h.
57494         (Maintainer): Change from Jim Meyering to "all, glibc",
57495         since getdate now uses intended-for-glibc code.
57496         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57497         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57498
57499 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57500
57501         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57502         HP's ANSI C compiler.
57503         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57504         Declaring int functions causes warnings on some modern systems and
57505         shouldn't be needed to compile on ancient ones.
57506         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57507         defined.
57508
57509         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57510         with the following changes.
57511         (__set_errno): Parenthesize properly.
57512         Include <stdbool.h>.
57513         (MIN, MAX, MATCHING_INO): New macros.
57514         (__getcwd): Define with prototype, not K&R form.
57515         Use heuristics to allocate default buffer on stack if possible.
57516         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57517         behavior, and to avoid the PATH_MAX limit when computing
57518         ../../../../...
57519         Use MATCHING_INO to compare inode number to file.
57520         Check for arithmetic overflow in size calculations.
57521         Fix bug in reallocation of dot array that caused getcwd to fail
57522         on directories nested deeper than 75.
57523         Be more careful about saving errno on error.
57524         Do not use realloc; use only free+malloc, as this is a bit
57525         more flexible and avoids a needless copy operation.
57526         Do not inspect st_dev and st_ino for symbolic links; POSIX
57527         doesn't specify the latter.
57528         Check for closedir errors.
57529         Avoid needless casts.
57530         Use "#ifdef weak_alias" around weak_alias, to be like other
57531         glibc code.
57532         The following changes to getcwd.c have effect only when used in
57533         gnulib; they have no effect inside glibc proper.
57534         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57535         as alloca isn't used.
57536         (alloca, __alloca): Likewise.
57537         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57538         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57539         unconditionally, as gnulib assumes C89 or better.
57540         Do not include <sys/param.h>.
57541         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57542         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57543         better.
57544         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57545         Include <dirent.h> in a way that is compatible with modern Autoconf.
57546         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57547         New macros, if not already defined.
57548         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57549         Use "_LIBC", not "defined _LIBC", for consistency.
57550         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57551         a mempcpy module.
57552         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57553         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57554         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57555         credit only to Jim Meyering and adjust the copyright dates.
57556         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57557         <stdlib.h>, <unistd.h>, "pathmax.h".
57558         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57559         (INITIAL_BUFFER_SIZE): Remove.
57560         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57561
57562 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57563
57564         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57565         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57566         Use the _ONCE methods, for efficiency.
57567         Check for fcntl.h.  In test program, include <errno.h>
57568         and <fcntl.h> if available.  Remove old K&R cruft from
57569         test program.  Check for common errors in GNU/Linux,
57570         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57571         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57572         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57573         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57574         name accordingly.
57575         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57576         accommodate new getcwd.c.
57577         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57578         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57579         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57580         that's all we need now.
57581
57582 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57583
57584         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57585         argp-parse.c depends on getopt internals, that means we should
57586         always use our getopt, to be on the safe side.
57587         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57588         order not to spoil the result of an eventual previous invocation
57589         of gl_GETOPT_SUBSTITUTE.
57590
57591 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57592
57593         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57594         redefinition warnings. To avoid them, include the defines
57595         in `#if !defined __need_getopt ... #endif'. The only place
57596         where __getopt_argv_const is used is in definitions
57597         of getopt_long and getopt_long_only below, which are as well
57598         protected by `#ifndef __need_getopt'.
57599         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57600         __need_getopt after including <stdio.h> and <unistd.h> These
57601         headers might have defined it.
57602
57603 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57606
57607 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57608
57609         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57610         (futimens): New function, which uses futimes if available.
57611         (futimens, utimens): Support timespec==NULL, with same semantics
57612         as utime and utimens.
57613         * lib/utimens.h (futimens): New decl.
57614
57615 2004-11-23  Jim Meyering  <jim@meyering.net>
57616
57617         * lib/getopt_.h: Remove trailing blanks.
57618
57619 2004-11-23  Jim Meyering  <jim@meyering.net>
57620
57621         * lib/__fpending.c: Add comment.
57622
57623 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * modules/canonicalize (Depends-on): Add xreadlink.
57626         Problem reported by James Youngman.
57627
57628 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57631         New macros.
57632         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57633         optopt): Use them instead of invoking ## directly; otherwise, the
57634         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57635
57636 2004-11-19  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/strtok_r.c: Move comments from here...
57639         * lib/strtok_r.h: ... to here.
57640
57641 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57644         implementations that mishandle size_t overflow.
57645
57646 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57647
57648         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57649         might fail.  Problem reported by Yoann Vandoorselaere.
57650         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57651         implementations that mishandle size_t overflow.
57652
57653 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         * modules/canon-host (Depends-on): Add strdup.
57656
57657 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57660
57661 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57662
57663         * lib/canon-host.c: Include "strdup.h".
57664         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57665         Use strdup instead of malloc/strcpy to duplicate strings.
57666
57667         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57668         (human_space_before_unit): New constant.
57669         * lib/human.c (human_readable): Support it.
57670
57671         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57672         (xgetcwd): Set errno correctly when failing.
57673         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57674         the failure is actually due to a PATH_MAX problem.
57675
57676         Further getopt changes to make it more likely that glibc will
57677         buy the changes back.
57678         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57679         (getopt): Use it, so to preserve glibc semantic
57680         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57681         when compiling for libc.
57682         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57683         (getopt_long, getopt_long_only): Use it.
57684
57685         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57686         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57687         (getopt): Argv is now char * const *, as per standard.
57688         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57689         not char *__getopt_argv_const *.
57690         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57691         _getopt_long_only_r): Likewise.
57692         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57693         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57694         _getopt_long_r, _getopt_long_only_r): Likewise.
57695         * lib/getopt_.h (__getopt_argv_const): Remove.
57696         (getopt): Argv is now char * const *, as per standard.
57697
57698         * lib/getdate.y (tORDINAL): New token.
57699         (day, relunit): Allow it for relative times.
57700         (relative_time_table): Use tORDINAL for ordinals.
57701
57702 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57703
57704         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57705         Document that "second" isn't allowed as an ordinal number.
57706
57707 2004-11-16  Jim Meyering  <jim@meyering.net>
57708
57709         * modules/closeout (Depends-on): Add fpending.
57710
57711 2004-11-15  Jim Meyering  <jim@meyering.net>
57712
57713         * lib/closeout.c: Include "__fpending.h" once again.
57714         Include <stdbool.h>.
57715         (close_stdout): Don't fail just because stdout was closed initially,
57716         since some programs don't write to stdout in the normal course of
57717         operation (other than --version and --help), and we don't want this
57718         function to make e.g. `touch file >&-' fail.
57719         But do fail if it was closed and someone has tried to write to it.
57720         E.g., `printf foo >&-' must fail.
57721
57722 2004-11-13  Jim Meyering  <jim@meyering.net>
57723
57724         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57725
57726 2004-11-12  Simon Josefsson  <jas@extundo.com>
57727
57728         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57729         small doc fix is still pending.
57730
57731 2004-11-11  Simon Josefsson  <jas@extundo.com>
57732
57733         * modules/strtok_r: New file.
57734
57735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57736         strtok_r.
57737
57738 2004-11-11  Simon Josefsson  <jas@extundo.com>
57739
57740         * m4/strtok_r.m4: New file.
57741
57742         * m4/getopt.m4: Replace opterr.
57743
57744 2004-11-11  Simon Josefsson  <jas@extundo.com>
57745
57746         * lib/strtok_r.h, strtok_r.c: New file.
57747
57748 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57749
57750         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57751         of replacing opterr, getopt, etc.  This should handle the
57752         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57753
57754 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57757         we can stop lying to compilers about the constness of argv when we
57758         are compiled outside glibc.
57759         (getopt, getopt_long, getopt_long_only): Use it.
57760         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57761         _getopt_internal, getopt): Likewise.
57762         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57763         _getopt_long_only_r): Likewise.
57764         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57765         _getopt_long_r, _getopt_long_only_r): Likewise.
57766
57767         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57768         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57769         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57770         the other external symbols.
57771         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57772         declaration, since the above renaming now works around collisions.
57773
57774 2004-11-11  Jim Meyering  <jim@meyering.net>
57775
57776         * lib/linebreak.c: Remove trailing blanks.
57777         * lib/alloca_.h: Likewise.
57778         * lib/acosl.c: Likewise.
57779         * lib/euidaccess.c: Likewise.
57780         * lib/allocsa.h: Likewise.
57781
57782 2004-11-10  Simon Josefsson  <jas@extundo.com>
57783
57784         * m4/getaddrinfo.m4: New file.
57785
57786 2004-11-10  Simon Josefsson  <jas@extundo.com>
57787
57788         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57789
57790 2004-11-10  Simon Josefsson  <jas@extundo.com>
57791
57792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57793         getaddrinfo.
57794
57795         * modules/getaddrinfo: New file.
57796
57797 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57800
57801 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57802
57803         * lib/mktime.c (SHR): New macro, which is a portable
57804         substitute for >> that should work even on Crays.
57805         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57806         Problem reported by Mark D. Baushke in
57807         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57808         * lib/getdate.y (SHR): Likewise.
57809         (tm_diff): Use it.
57810         * lib/strftime.c (SHR): Likewise.
57811         (tm_diff): Use it.
57812         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57813         quote_these_too, so that right shifts are well defined.  All uses
57814         changed.
57815
57816 2004-11-10  Jim Meyering  <jim@meyering.net>
57817
57818         Ensure that no close failure goes unreported.
57819         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57820         return early when it seems there's nothing to flush.
57821         Don't include __fpending.h.
57822
57823 2004-11-10  Jim Meyering  <jim@meyering.net>
57824
57825         * modules/closeout (Depends-on): Remove fpending.
57826
57827 2004-11-10  Jim Meyering  <jim@meyering.net>
57828
57829         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57830
57831 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57834         gl_FUNC_STRFTIME.
57835         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57836         and AC_REQUIRE when possible, to avoid duplicate checks.
57837         Check for <wchar.h>.
57838
57839 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57842
57843 2004-11-09  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/sockpfaf.m4: New file.
57846
57847 2004-11-05  Bruno Haible  <bruno@clisp.org>
57848
57849         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57850         Reported by Mark D. Baushke <mdb@cvshome.org>.
57851
57852 2004-11-04  Bruno Haible  <bruno@clisp.org>
57853
57854         2004-09-11  Bruno Haible  <bruno@clisp.org>
57855                 * allocsa.valgrind: New file.
57856         2004-02-06  Bruno Haible  <bruno@clisp.org>
57857                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57858                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57859                 Reported by Christopher Seip <chris.seip@hp.com>.
57860
57861 2004-11-04  Bruno Haible  <bruno@clisp.org>
57862
57863         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57864         (Makefile.am): Distribute it.
57865
57866 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57869         with errno == ERANGE if the buffer is too small.
57870         Problem reported by Mark D. Baushke.
57871
57872 2004-11-03  Albert Chin  <china@thewrittenword.com>
57873             Paul Eggert  <eggert@cs.ucla.edu>
57874
57875         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57876         equivalent, substitute $ac_type for equivalent type rather than
57877         blindly using uint32_t *always* which won't work if uint32_t is not
57878         available.  Define _UINT32_T to work around typedef of uint32_t if
57879         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57880         2.5.1.
57881
57882 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * m4/jm-macros.m4: Sync from coreutils.
57885         (gl_MACROS): Check for mbrlen, for pathchk.
57886         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57887
57888 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         * lib/xreadlink.c (MAXSIZE): New macro.
57891         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57892         size does not exceed MAXSIZE.  Avoid cast.
57893         As suggested by Mark D. Baushke in
57894         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57895         if readlink fails with buffer size just under MAXSIZE, try again
57896         with MAXSIZE.
57897
57898 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57901
57902 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57903         and  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57906         (get_date): Overparenthesize to avoid GCC warning.
57907
57908 2004-11-02  Bruno Haible  <bruno@clisp.org>
57909
57910         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57911         returns void.
57912
57913 2004-11-02  Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57916         function returns void.
57917
57918 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57921         fflush_unlocked, flockfile, funlockfile, funlockfile,
57922         fputs_unlocked, putc_unlocked.
57923
57924 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57927         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57928         already declared.
57929
57930 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * modules/getdate (Files): Add doc/getdate.texi.
57933         (Depends-on): Add setenv, xalloc.
57934
57935 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/getdate.y: Add support for TZ="foo" within a date string.
57938         Fix some bugs near time_t boundaries.  Reject dates with
57939         out-of-range components, e.g., "Sept 31".
57940         Include <stdlib.h>, "setenv.h", "xalloc.h".
57941         (ISDIGIT_LOCALE): Remove; unused.
57942         Note that the TZ and time functions used here are not reentrant.
57943         (mktime_ok, get_tz): New functions.
57944         (TZBUFSIZE): New constant.
57945         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57946         This requires that we sometimes generate our own TZ="XXX..." setting.
57947
57948 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         * doc/getdate.texi: New file, from coreutils with modifications for
57951         the new TZ parsing.
57952
57953 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57954
57955         * lib/mktime.c (not_equal_tm): Remove redundant check.
57956
57957 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * modules/regex (lib_SOURCES): Add regex.c.
57960         Reported by James Youngman in
57961         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57962
57963 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57964
57965         * lib/getdate.y: Use Bison 1.875 features, and some minor
57966         code cleanups.  This change does not affect semantics.
57967         Don't include <stdlib.h>; no longer needed.
57968         Don't include unlocked-io.h; only the "#if TEST" code uses
57969         stdio, and performance isn't crucial there.
57970         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57971         Bison 1.875 features as described below.
57972         All uses of "PC." replaced by "pc->".
57973         (YYSTYPE): Add a forward declaration.
57974         (yylex, yyerror): Use full prototypes in forward decls.
57975         Use "%pure-parser" rather than obsolescent "%pure_parser".
57976         Use %parse-param and %lex-param instead of obsolescent
57977         YYPARSE_PARAM and YYLEX_PARAM.
57978         (meridian_table, month_and_day_table, time_units_table,
57979         relative_time_table, time_zone_table, military_table,
57980         lookup_zone, lookup_word, get_date):
57981         Use NULL instead of 0 where appropriate.
57982         (to_hour): Avoid abort (), to avoid a dependency on
57983         stdlib.h.
57984         (yyerror, yylex): Now accepts parser_control * arg.
57985         (main) [TEST]: Use '\0' rather than 0 for char.
57986
57987 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57990
57991 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57994         It's now the caller's responsibility to handle the case where
57995         !HAVE_GETPAGESIZE && !defined getpagesize.
57996
57997         * lib/mktime.c (leapyear): Arg is long int, not int.
57998
57999 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58002
58003 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58006         missing.  Problem reported by James Youngman.
58007
58008 2004-10-16  Simon Josefsson  <jas@extundo.com>
58009
58010         * gnulib-tool: Fix comments.  Fix parse problem.
58011         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58012
58013 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58014
58015         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58016         implementation of getopt_long.  Problem reported by Alexander Taler in:
58017         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58018
58019 2004-10-15  Bruno Haible  <bruno@clisp.org>
58020
58021         * gnulib-tool: Untabify. Initialize supplied_libname.
58022         (func_usage): More homogenous output.
58023         (func_modules_transitive_closure, func_modules_to_filelist,
58024         func_emit_lib_Makefile_am): New functions.
58025         (func_import): New function, extracted from big case statement. Use
58026         func_get_license, func_modules_transitive_closure,
58027         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58028         opt_lgpl. Don't use test -a, as it's not portable.
58029         (func_create_testdir): Use func_modules_transitive_closure,
58030         func_modules_to_filelist, func_emit_lib_Makefile_am.
58031
58032 2004-10-15  Bruno Haible  <bruno@clisp.org>
58033
58034         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58035
58036 2004-10-15  Bruno Haible  <bruno@clisp.org>
58037
58038         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58039         the portions belonging to each module.
58040         Suggested by Derek Robert Price <derek@ximbiot.com>.
58041
58042 2004-10-12  Simon Josefsson  <jas@extundo.com>
58043
58044         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58045         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58046         to real functions.
58047
58048 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58049
58050         * modules/vsnprintf: New file.
58051
58052 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58053
58054         * m4/vsnprintf.m4: New file.
58055
58056 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58057
58058         * lib/vsnprintf.h: New file.
58059         * lib/vsnprintf.c: New file.
58060
58061 2004-10-11  Bruno Haible  <bruno@clisp.org>
58062
58063         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58064         vsnprintf.
58065
58066 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58067
58068         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58069
58070 2004-10-07  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58073         fits into the provided buffer.
58074
58075 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         * lib/diacrit.c, diacrit.h: Add GPL notice.
58078
58079         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58080         notice.
58081         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58082         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58083         This avoids a potential constant-folding bug.
58084
58085 2004-10-05  Bruno Haible  <bruno@clisp.org>
58086
58087         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58088         for the declaration of strsep.
58089
58090 2004-10-05  Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58093
58094 2004-10-04  Simon Josefsson  <jas@extundo.com>
58095
58096         * modules/memmem: New file.
58097         * tests/test-memmem.c: New file.
58098         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58099
58100 2004-10-04  Simon Josefsson  <jas@extundo.com>
58101
58102         * m4/memmem.m4: New file.
58103
58104 2004-10-04  Simon Josefsson  <jas@extundo.com>
58105
58106         * lib/memmem.h: New file.
58107         * lib/memmem.c: New file, taken from glibc.
58108
58109 2004-10-04  Simon Josefsson  <jas@extundo.com>
58110
58111         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58112         '#ifdef USE_UNLOCKED_IO'.
58113
58114 2004-10-04  Simon Josefsson  <jas@extundo.com>
58115
58116         * config/srclist.txt: Add memmem from glibc.
58117
58118 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58121
58122         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58123         modules/exclude, modules/getdate, modules/getline,
58124         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58125         modules/getusershell, modules/linebuffer, modules/md5,
58126         modules/mountlist, modules/posixtm, modules/readtokens,
58127         modules/readutmp, modules/regex, modules/sha1,
58128         modules/version-etc, modules/yesno:
58129         Remove dependency on unlocked-io.
58130
58131 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58132
58133         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58134
58135         * m4/unlocked-io.m4: Add copyright notice.
58136         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58137
58138 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58141         * lib/xmalloc.c (xmemdup): Likewise.
58142         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58143         XFREE): Remove these long-obsolescent macros.
58144         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58145         * lib/xstrdup.c: Remove.
58146
58147         * lib/regex.c (re_comp): Cast gettext return value to char *,
58148         Problem reported by Martin Neitzel via Mark D. Baushke.
58149
58150 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58151
58152         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58153         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58154         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58155         regex.c, sha1.c, version-etc.c, yesno.c:
58156         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58157         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58158         the includer's responsibility.
58159
58160         Sync from coreutils.
58161
58162         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58163         points to the start of a string, as the C Standard says the
58164         resulting behavior is undefined.
58165
58166         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58167         simple -> simple_backups, numbered_existing ->
58168         numbered_existing_backups, numbered -> numbered_backups
58169         to avoid shadowing problems.  All uses changed.
58170         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58171         * lib/backupfile.c (check_extension, numbered_backup):
58172         Rename locals to avoid shadowing 'basename'.
58173         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58174         once.
58175
58176         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58177         * lib/.cvsignore: Add getopt.h.
58178
58179 2004-10-04  Bruno Haible  <bruno@clisp.org>
58180
58181         * modules/README: New file.
58182         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58183         not a module.
58184
58185 2004-10-02  Jim Meyering  <jim@meyering.net>
58186
58187         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58188
58189 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58190
58191         * modules/strsep: New file.
58192
58193 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58194
58195         * m4/strsep.m4: New file.
58196
58197 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58198
58199         * lib/strsep.h: New file.
58200         * lib/strsep.c: New file.
58201
58202 2004-10-01  Simon Josefsson  <jas@extundo.com>
58203
58204         * lib/snprintf.c (snprintf): Handle size==0.
58205
58206 2004-10-01  Simon Josefsson  <jas@extundo.com>
58207             Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58210         (snprintf): Declare 'args'.
58211
58212 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * lib/snprintf.c: Remove comments as to why each header is needed.
58215
58216 2004-10-01  Bruno Haible  <bruno@clisp.org>
58217
58218         * MODULES.html.sh: Add strsep.
58219
58220 2004-09-30  Simon Josefsson  <jas@extundo.com>
58221
58222         * modules/snprintf: New file.
58223
58224 2004-09-30  Simon Josefsson  <jas@extundo.com>
58225
58226         * m4/snprintf.m4: New file.
58227
58228 2004-09-30  Simon Josefsson  <jas@extundo.com>
58229
58230         * lib/snprintf.h, lib/snprintf.c: New files.
58231
58232 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58233
58234         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58235         (hol_entry_help): Never translate an empty string.
58236         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58237         * lib/argp.h (OPTION_NO_TRANS): New option.
58238
58239 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * modules/argp (Maintainer): Replace Simon Josefsson
58242         by Sergey Poznyakoff.
58243
58244 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58245
58246         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58247         changes merged back into glibc.
58248
58249 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58250
58251         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58252
58253 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58254
58255         * lib/xvasprintf.c: Include xalloc.h.
58256         (xvasprintf): Use xalloc_die, not xmalloc_die.
58257
58258 2004-09-29  Bruno Haible  <bruno@clisp.org>
58259
58260         * modules/alloca-opt: New file, derived from modules/alloca.
58261         * modules/allocsa: Depend on alloca-opt instead of alloca.
58262         * modules/setenv: Likewise.
58263         * modules/vasnprintf: Likewise.
58264         * MODULES.html.sh: Add alloca-opt.
58265
58266 2004-09-28  Simon Josefsson  <jas@extundo.com>
58267
58268         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58269         LGPL, and to replace license template from GPL to LGPL.
58270
58271 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * modules/dummy: Change license to LGPL.
58274
58275 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58276
58277         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58278
58279 2004-09-24  Simon Josefsson  <jas@extundo.com>
58280
58281         * modules/minmax (License): Change from GPL to LGPL.
58282
58283 2004-09-23  Simon Josefsson  <jas@extundo.com>
58284
58285         * gnulib-tool (--import): Typo.
58286
58287 2004-09-23  Simon Josefsson  <jas@extundo.com>
58288
58289         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58290
58291 2004-09-22  Bruno Haible  <bruno@clisp.org>
58292
58293         * modules/*: Add 'License' field.
58294         * gnulib-tool: Accept --extract-license option.
58295         (func_get_license): New function.
58296
58297 2004-09-21  Bruno Haible  <bruno@clisp.org>
58298
58299         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58300         Reported by Simon Josefsson.
58301
58302 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58305         gl_AC_TYPE_LONG_LONG.
58306
58307 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58308
58309         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58310
58311 2004-09-18  Simon Josefsson  <jas@extundo.com>
58312         and  Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58315         calls with autoreconf.  Define GL_LIB.
58316
58317 2004-09-14  Karl Berry  <karl@gnu.org>
58318
58319         * config/srclist.txt: unsync setenv.c, sigh.
58320
58321 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58324         Problem reported by Bruno Haible in:
58325         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58326
58327 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58328
58329         * config/srclist.txt: Comment out argp-pvh.c.
58330
58331 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58332
58333         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58334         in case some system header has #define'd it.  Problem reported by
58335         Soeren D. Schulze in
58336         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58337
58338 2004-09-09  Karl Berry  <karl@gnu.org>
58339
58340         * regex.[ch]: delete from the root.  These were supposed to be
58341                 synced with emacs cvs, but this has not happened for about
58342                 a year, and anyway nothing else uses emacs regex.[ch].
58343                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58344                 lib/regex[.ch] is untouched.
58345
58346 2004-09-09  Bruno Haible  <bruno@clisp.org>
58347
58348         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58349
58350 2004-09-09  Bruno Haible  <bruno@clisp.org>
58351
58352         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58353         modifications.
58354         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58355
58356 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58357
58358         * modules/xvasprintf: New file.
58359         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58360
58361 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58362
58363         * lib/xvasprintf.h: New file.
58364         * lib/xvasprintf.c: New file.
58365         * lib/xasprintf.c: New file.
58366
58367 2004-09-08  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58370
58371 2004-09-08  Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58374         length is > INT_MAX.
58375         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58376         more.
58377
58378 2004-09-08  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/stdint_.h: New file, taken from GNU clisp.
58381
58382 2004-09-08  Bruno Haible  <bruno@clisp.org>
58383             Oskar Liljeblad  <oskar@osk.mine.nu>
58384
58385         * modules/stdint: New file.
58386         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58387
58388 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58389
58390         Import from coreutils.
58391         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58392         strings on unbounded length.  alloca's performance benefits aren't
58393         that important here.
58394         (V_STRDUP): Remove.
58395         (parse_with_separator): New function, with most of the internals
58396         of the old parse_user_spec.  Allow user to omit both user and group,
58397         for compatibility with FreeBSD.
58398         Clone only the user name, not the entire spec.
58399         Do not set *uid, *gid unless entirely successful.
58400         Avoid memory leak in some failing cases.
58401         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58402         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58403         (parse_user_spec): Rewrite to use parse_with_separator.
58404
58405 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * modules/userspec: Don't depend on alloca.
58408
58409 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58412
58413 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58416         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58417         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58418
58419 2004-08-16  Simon Josefsson  <jas@extundo.com>
58420
58421         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58422         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58423         Add --dry-run for --import.
58424         Let user provided command line parameters override configure.ac
58425         settings.
58426
58427 2004-08-12  Simon Josefsson  <jas@extundo.com>
58428
58429         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58430         as discussed with Paul Eggert in threads rooted at
58431         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58432         and
58433         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58434         Before, the test was empty, and relied on ELIDE_CODE in source
58435         code.)
58436         (gl_PREREQ_GETOPT): New macro.
58437         (gl_GETOPT): Use them.
58438
58439 2004-08-12  Simon Josefsson  <jas@extundo.com>
58440
58441         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58442         * lib/getopt_.h: Renamed from getopt.h.
58443
58444 2004-08-12  Simon Josefsson  <jas@extundo.com>
58445
58446         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58447         Change default library name from libfoo to libgnu.
58448         Now, if you have a configure.ac that says:
58449                 gl_SOURCE_BASE(gl)
58450                 gl_M4_BASE(gl/m4)
58451                 gl_MODULES(error getopt etcetera)
58452                 gl_INIT
58453         you can import all you need by running:
58454                 ../gnulib/gnulib-tool --import
58455
58456         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58457         (Makefile.am): Rewrite, use logic from argz.
58458         (Include): Use <getopt.h> instead of "getopt.h".
58459
58460 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         * modules/argp (Files): Add m4/unlocked-io.m4.
58463         (Depends-on): Add extensions.
58464
58465 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58468         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58469         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58470         Check for program_invocation_name, program_invocation_short_name,
58471         flockfile, funlockfile, features.h, _getopt_long_only_r.
58472
58473 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58476         its complicated substitute.
58477         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58478         and program_invocation_name.
58479         (__argp_basename) [!_LIBC]: Remove; the only use was
58480         replaced by its body.
58481         (__argp_short_program_name): Change condition from
58482         !defined __argp_short_program_name to
58483         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58484         to match argp-namefrob.h.
58485         (__argp_failure): Don't assume strerror_r returns char *.
58486         * lib/argp-parse.c (N_): Define unconditionally.
58487         (argp_default_options): Fill out initializers with 0 to avoid
58488         gcc warnings.
58489
58490 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58491
58492         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58493         getopt1.c.
58494
58495 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58496
58497         Merge from coreutils.
58498
58499         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58500
58501         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58502         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58503
58504 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         Merge from coreutils.
58507
58508         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58509         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58510         for Reliant Unix 5.43.
58511
58512         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58513         (union fooround): Use uintmax_t, not long int.
58514         The rest is a merge from libc:
58515         [defined _LIBC]: Include <shlib-compat.h>.
58516         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58517
58518         * lib/settime.c (settime): Recode to avoid warning with
58519         Sun Forte C 6U2.
58520
58521         * lib/strverscmp.c: Convert to UTF-8.
58522
58523 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58526         m4/uintmax_t.m4.
58527
58528 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58529
58530         * modules/xalloc-die: New file.
58531         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58532
58533         * modules/md5 (Files): Add m4/uint32_t.m4.
58534         * modules/sha1: Renamed from modules/sha.
58535         (Files):
58536         Rename lib/sha.h to lib/sha1.h.
58537         Rename lib/sha.c to lib/sha1.c.
58538         Rename m4/sha.m4 to m4/sha1.m4.
58539         (lib_SOURCES): Likewise.
58540         (configure.ac): Rename gl_SHA to gl_SHA1.
58541         (Include): sha.h -> sha1.h.
58542
58543 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58546         * m4/sha1.m4: Renamed from sha.m4.
58547         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58548
58549 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * lib/obstack.h (obstack_empty_p):
58552         Don't assume that chunk->contents is suitably aligned.
58553         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58554         Likewise. Problem reported by Benno in
58555         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58556
58557         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58558         readable.  This could be improved further but it'd take some work.
58559
58560 2004-08-08  Simon Josefsson  <jas@extundo.com>
58561
58562         * modules/xgethostname (Depends-on): Remove exit and error (not
58563         used).
58564
58565         * modules/getpass-gnu: Add getpass.h.
58566         (Depends-on): Add stdbool.
58567         * modules/getpass: Add getpass.h.
58568
58569 2004-08-08  Simon Josefsson  <jas@extundo.com>
58570
58571         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58572         Check getpass declaration.
58573
58574 2004-08-08  Simon Josefsson  <jas@extundo.com>
58575
58576         * lib/xgethostname.c: Don't include error.h (not used).
58577
58578         * lib/getpass.h: Add.
58579         * lib/getpass.c: Include getpass.h first.
58580
58581 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         * lib/xalloc-die.c: New file.
58584         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58585         All uses removed.
58586         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58587         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58588         xalloc-die.c.
58589         (_, N_, xalloc_die): Move to xalloc-die.c.
58590         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58591         so that we needn't mess with xalloc_msg_memory_exhausted.
58592
58593         * lib/sha1.h: Renamed from sha.h.
58594         (SHA1_H): Renamed from _SHA_H.
58595         (sha1_ctx): Renamed from sha_ctx.
58596         (sha1_init_ctx): Renamed from sha_init_ctx.
58597         (sha1_process_block): Renamed from sha_process_block.
58598         (sha1_process_bytes): Renamed from sha_process_bytes.
58599         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58600         (sha1_read_ctx): Renamed from sha_read_ctx.
58601         (sha1_stream): Renamed from sha_stream.
58602         (sha1_buffer): Renamed from sha_buffer.
58603         * lib/sha1.c: Likewise; renamed from sha.c.
58604         Do not include <sys/types.h>.
58605         Include <stddef.h> rather than <stdlib.h>.
58606
58607 2004-08-08  Bruno Haible  <bruno@clisp.org>
58608
58609         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58610         FILESYSTEM_PREFIX_LEN.
58611         * lib/progreloc.c: Likewise.
58612         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58613
58614 2004-08-06  Simon Josefsson  <jas@extundo.com>
58615
58616         * modules/progname (Depends-on): Don't depend on stdbool.
58617
58618 2004-08-06  Simon Josefsson  <jas@extundo.com>
58619
58620         * modules/getsubopt: New file.
58621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58622         getsubopt.
58623
58624 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         More merge from coreutils.
58627
58628         * m4/utimens.m4, m4/utimecmp.m4: New files.
58629         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58630         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58631         prereq.m4, sha.m4: Import changes from coreutils.
58632
58633 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58634
58635         More merge from coreutils.
58636         * modules/raise, modules/readtokens0, modules/utimens:
58637         * modules/utimecmp, module/xnanosleep: New files.
58638         * modules/strftime: Add lib/strftime.h.
58639         Change include from <time.h> to "strftime.h".
58640         * modules/yesno: Add lib/yesno.h.
58641         * modules/backupfile: Remove lib/addext.c.
58642         * modules/euidaccess: Add stat-macros.h.
58643         * modules/canonicalize, modules/euidaccess,
58644         modules/filemode, modules/lchown, modules/makepath,
58645         modules/rmdir, modules/stat: Likewise.
58646
58647 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58648
58649         Merge from tar.
58650         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58651         SIZE_MAX is a valid preprocessor constant.
58652         (__argp_basename): Change from "#ifndef _LIBC"
58653         to "#ifndef __argp_short_program_name", so that
58654         we don't compile these functions for tar.
58655
58656         More merges from coreutils.
58657         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58658         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58659         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58660         * lib/addext.c: Remove; no longer needed.
58661         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58662         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58663         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58664         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58665         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58666         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58667         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58668         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58669         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58670         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58671         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58672         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58673         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58674         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58675         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58676         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58677         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58678         Import changes from coreutils.
58679
58680 2004-08-05  Simon Josefsson  <jas@extundo.com>
58681
58682         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58683
58684 2004-08-05  Simon Josefsson  <jas@extundo.com>
58685
58686         * m4/getsubopt.m4: New file.
58687
58688 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         Merge from coreutils.
58691
58692         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58693         * m4/getcwd-path-max.m4: New files.
58694
58695         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58696         FILESYSTEM_PREFIX_LEN ->
58697         FILE_SYSTEM_PREFIX_LEN.
58698         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58699         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58700         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58701         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58702
58703         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58704         prerequisite modules now handle the DOS stuff.
58705         Don't check for unistd.h.
58706
58707 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         Merge from coreutils.
58710
58711         * lib/.gdb-history: Remove; this doesn't belong here.
58712
58713         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58714         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58715         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58716         * lib/getcwd.c: New files.
58717
58718         * lib/dirname.h: Include <stdbool.h>.
58719         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58720         for consistency with POSIX terminology.  All uses changed.
58721         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58722         (strip_trailing_slashes): Use bool for booleans.
58723         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58724
58725         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58726         sometimes returns a positive errno value even when it succeeds.
58727         (print_errno_message) [!LIBC]: Fall back on strerror if
58728         __strerror_r fails.
58729
58730         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58731         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58732         (longest_relative_suffix): New function.
58733         (path_concat): Use it.  Assume first argument is not NULL.
58734         Port to DOS.  Omit redundant separators.
58735         Report an error instead of returning NULL.
58736         Use mempcpy instead of memcpy.
58737         (xpath_concat): Remove: not declared or used.
58738
58739         * lib/same.h: Include <stdbool.h>
58740         (same_name): Return bool, not int.
58741         * lib/same.c (same_name): Likewise.
58742         (errno): Don't declare; we assume C89 or better now.
58743
58744         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58745         if not already defined.
58746
58747         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58748         * lib/dup-safer.c (errno): Likewise.
58749
58750 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         Merge from coreutils.
58753         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58754         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58755         * modules/path-concat: Don't depend on strdup.
58756
58757 2004-08-03  Simon Josefsson  <jas@extundo.com>
58758
58759         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58760         * lib/progname.h: Don't include stdbool.h.
58761
58762 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58763
58764         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58765         * MODULES.html.sh (func_all_modules): Remove fatal.
58766
58767 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58770
58771 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58772
58773         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58774         working.
58775
58776 2004-08-02  Simon Josefsson  <jas@extundo.com>
58777
58778         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58779         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58780         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58781
58782 2004-08-01  Simon Josefsson  <jas@extundo.com>
58783
58784         * lib/xgetdomainname.c: Include stdlib.h, for free().
58785
58786 2004-07-19  Bruno Haible  <bruno@clisp.org>
58787
58788         * MODULES.html.sh (func_all_modules): Add dummy.
58789
58790 2004-07-16  Simon Josefsson  <jas@extundo.com>
58791
58792         * modules/dummy: New file.
58793
58794 2004-07-16  Simon Josefsson  <jas@extundo.com>
58795
58796         * lib/dummy.c: New file.
58797
58798 2004-07-16  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/backupfile.h: Add extern "C" for C++.
58801         * lib/closeout.h: Likewise.
58802         * lib/copy-file.h: Likewise.
58803         * lib/findprog.h: Likewise.
58804         * lib/full-write.h: Likewise.
58805         * lib/pathname.h: Likewise.
58806         * lib/progname.h: Likewise.
58807         * lib/stpcpy.h: Likewise.
58808         * lib/stpncpy.h: Likewise.
58809         * lib/strcase.h: Likewise.
58810         * lib/strstr.h: Likewise.
58811         * lib/xalloc.h: Likewise.
58812
58813         * lib/mbswidth.h: Add extern "C" for C++.
58814         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58815
58816 2004-07-13  Robert Millan  <robertmh@gnu.org>
58817
58818         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58819
58820 2004-07-09  Simon Josefsson  <jas@extundo.com>
58821
58822         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58823         failed without this.)
58824
58825 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         * modules/chown (Files): Add lib/fchown-stub.c, since
58828         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58829
58830 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * lib/fchown-stub.c: New file.
58833
58834 2004-06-24  Jim Meyering  <jim@meyering.net>
58835
58836         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58837
58838 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         * modules/argz: Omit "#include".
58841
58842         * MODULES.html.sh (func_all_modules): Add calloc, to match
58843         2004-06-01 addition of calloc module.
58844
58845 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * m4/argz.m4: New file, which is autoupdated from libtool.
58848
58849 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58850
58851         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58852         libtool.
58853
58854 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58855
58856         * config/srclist-update: Don't insist on "USA." before the
58857         close-comment, as libtool omits the period and puts the */ on a
58858         separate line.
58859         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58860         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58861
58862 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58863
58864         * modules/argz: New file.
58865         * MODULES.html.sh (func_all_modules): Add argz.
58866
58867 2004-06-12  Jim Meyering  <jim@meyering.net>
58868         and  Paul Eggert  <eggert@cs.ucla.edu>
58869
58870         * modules/hash (Files): Add lib/xalloc.h.
58871         * modules/pipe (Depends-on): Add wait-process.
58872         * modules/stat (Depends-on): Add xalloc.
58873         * modules/userspec (Files): Add lib/userspec.h.
58874         * modules/xstrto
58875
58876         Upgrade from gettext-0.13.
58877         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58878         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58879         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58880
58881 2004-06-10  Jim Meyering  <jim@meyering.net>
58882
58883         * lib/calloc.c: New file.
58884
58885 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         * lib/getdate.y (yylex): Allow space between sign and number.
58888         Problem reported by Dan Jacobson.
58889
58890 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         Merge from coreutils CVS.
58893
58894         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58895         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58896         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58897         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58898         xstrtol.m4: Fix copyright date and/or serial number.
58899
58900         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58901         See if we need an fchown replacement.
58902         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58903         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58904         and use the replacement function if we detect either defect.
58905
58906         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58907         gl_UTIMECMP.
58908
58909 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58910         and  Jim Meyering  <jim@meyering.net>
58911
58912         Merge from coreutils CVS.
58913
58914         * lib/stat-macros.h: New file, with contents from file-type.h
58915         and coreutils' system.h.
58916         * lib/file-type.c: Include "stat-macros.h".
58917         * lib/file-type.h (file_type): Move all macro definitions to new file,
58918         stat-macros.h.
58919
58920         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58921         Wrap old code with this conditional.
58922         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58923         function that does not dereference symlinks.
58924         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58925
58926         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58927         dependency problems.
58928         (xreadlink): Accept new arg SIZE, for efficiency.
58929         All decls and uses changed.
58930         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58931
58932         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58933         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58934
58935         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58936         sysexits.h.
58937
58938 2004-06-01  Jim Meyering  <jim@meyering.net>
58939
58940         * m4/calloc.m4: New file.
58941
58942 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58945         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58946         Also, fix a typo in a diagnostic.
58947
58948 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58951         or AC_FUNC_REALLOC.
58952
58953 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58956         macros to be defined.
58957         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58958         the allocator returns NULL because the requested size is zero.
58959
58960 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58961
58962         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58963         var.  Add comment explaining why libc still defines it.  This
58964         merges the following patch from glibc:
58965         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58966
58967 2004-05-20  Andreas Schwab  <schwab@suse.de>
58968
58969         * m4/free.m4: Replace free if it not known to work, not the other
58970         way round.
58971
58972 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58975         present in glibc since revision 1.1 of this file.
58976         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58977         obstack_alignment_mask, obstack_alloc, obstack_base,
58978         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58979         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58980         obstack_grow0, obstack_init, obstack_int_grow,
58981         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58982         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58983         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58984         nonexistent functions.
58985
58986 2004-05-18  Karl Berry  <karl@gnu.org>
58987
58988         * config/srclist.txt: break link for vasnprintf.c.
58989
58990 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         Port obstack to the AS/400, where pointers are 16 bytes wide and
58993         you cannot cast an integer to a valid pointer.  This patch is
58994         currently waiting to be integrated into glibc; see
58995         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58996
58997         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58998         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58999         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59000         (struct obstack): temp member is now a union of a pointer and
59001         an integer, instead of an integer.  All integer uses changed.
59002         This does not affect the physical layout of struct obstack,
59003         except on hosts (like the AS/400) where the size or alignment of
59004         void * is greater than that of ptrdiff_t.
59005         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59006         __STDC__)]: Store temporary in pointer member of union, not
59007         integer member.
59008         * lib/obstack.c: Include <stddef.h>, for offsetof.
59009         (struct fooalign): Remove; it doesn't need a name.
59010         (union fooround): Change double to long double, and add void *.
59011         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59012         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59013         not a macro.  Hence the values are always int; so remove all
59014         casts-to-int in uses.
59015
59016 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59019         we can get this patch merged into glibc.
59020
59021 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59022             Paul Eggert  <eggert@cs.ucla.edu>
59023
59024         * m4/argp: Depend on alloca.
59025
59026 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59027             Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59030         freecoding.
59031
59032 2004-05-17  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59035         precision that consists of a '.' followed by an empty digit string.
59036         Patch by Tor Lillqvist <tml@iki.fi>.
59037
59038 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59041         for backward compatibility with older code.  We need our own
59042         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59043         it under some other name, and our alloca.h will define it.
59044
59045 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59046             Derek Price  <derek@ximbiot.com>
59047
59048         * lib/alloca.c: Include <alloca.h>, to get our interface.
59049         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59050         include <alloca.h> first.  Use C89 prototype for alloca; this
59051         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59052         Use #elif for simplicity, since we can assume C89 now.
59053         Don't try to source the system alloca.h since it will not be found
59054         and to prevent recursively including its replacement.
59055         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59056         * lib/regex.c: Likewise.
59057
59058 2004-05-16  Derek Price  <derek@ximbiot.com>
59059             Paul Eggert  <eggert@cs.ucla.edu>
59060
59061         getline cleanup.  This changes the getndelim2 API: both order of
59062         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59063         no delimiter).
59064
59065         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59066         interface does that.
59067         (getline): Always use getdelim, so that we don't have two
59068         copies of this code.
59069         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59070         if available.
59071         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59072         (GETNDELIM2_MAXIMUM): New macro.
59073         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59074         instead of the old practice of delim2==0.  All callers changed.
59075         Return -1 on overflow, instead of returning junk.
59076         Do not set *linesize unless allocation succeeds.
59077         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59078         that we include sys/types.h.
59079         * lib/getnline.h: Likewise.
59080         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59081         (getndelim2): Reorder arguments.
59082         * lib/getnline.c (getnline, getndelim):
59083         Don't discard the NMAX argument.
59084         (getnline): Invoke getndelim, to avoid code duplication.
59085         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59086         of (size_t) -1 by callers of the getnline family.
59087
59088 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59091         Check for gettimeofday.
59092         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59093         Check for settimeofday, stime.
59094
59095 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * lib/nanosleep.c (suspended): Change its type from int to
59098         sig_atomic_t volatile.
59099         (first_call): Make it private to rpl_nanosleep, and have it
59100         be zero initially as that's a bit faster.
59101         (my_usleep): Round up fractional times instead of truncating them,
59102         as this is the usual meaning for 'sleep'.
59103
59104         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59105         doesn't work.
59106         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59107         (ENOSYS): Define if not defined.
59108         (settime): Fall back on stime if it exists and settimeofday fails.
59109         But don't bother with fallbacks if a method fails with errno == EPERM.
59110
59111 2004-05-11  Jim Meyering  <jim@meyering.net>
59112
59113         Prior to this change, the save_cwd caller required read access to the
59114         current directory on most systems (ones with the fchdir function).
59115
59116         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59117         fails, try write-only, and finally, resort to using xgetcwd.
59118
59119 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59120
59121         * lib/obstack.c, obstack.h: Import changes from libc.
59122
59123 2004-04-28  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59126         also implicitly appends .exe to executables.
59127         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59128         accepts Windows pathnames.
59129         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59130         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59131         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59132         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59133         Reported by Derek Robert Price <derek@ximbiot.com>.
59134
59135 2004-04-21  Karl Berry  <karl@gnu.org>
59136
59137         * config/srclist.txt (localcharset.c): break sync.
59138
59139 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59140
59141         * m4/host-os.m4: Add a copyright notice.
59142
59143 2004-04-20  Jim Meyering  <jim@meyering.net>
59144
59145         Change UTILS_ to gl_ in AC_DEFINE'd names.
59146         Change utils_- and jm_-prefixed variables, too.
59147         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59148         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59150
59151         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59152         Don't emit trailing blanks.
59153         Also rename jm_-prefixed variables to have gl_ prefix.
59154
59155         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59156         Also rename jm_-prefixed variables to have gl_ prefix.
59157
59158         * m4/jm-macros.m4: Reflect the renamings.
59159         * m4/prereq.m4: Likewise.
59160
59161 2004-04-20  Jim Meyering  <jim@meyering.net>
59162
59163         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59164         memory.
59165
59166 2004-04-20  Jim Meyering  <jim@meyering.net>
59167             Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59170         memory when realloc fails.
59171
59172 2004-04-19  Jim Meyering  <jim@meyering.net>
59173
59174         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59175         now that readutmp.c may call `free (0)'.
59176
59177 2004-04-19  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59180         * m4/inttypes_h.m4: Likewise.
59181         * m4/stdint_h.m4: Likewise.
59182         * m4/intmax_t.m4: Likewise.
59183         * m4/uintmax_t.m4: Likewise.
59184
59185 2004-04-18  Jim Meyering  <jim@meyering.net>
59186
59187         * m4/prereq.m4: Don't forbid jm_ prefix.
59188
59189         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59190         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59191         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59192         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59193         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59194         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59195         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59196         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59197         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59198         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59199         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59200         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59201         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59202         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59203         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59204         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59205         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59206         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59207         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59208
59209 2004-04-18  Jim Meyering  <jim@meyering.net>
59210
59211         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59212         failure, don't leak memory and do call END_UTMP_ENT.
59213
59214 2004-04-16  Jim Meyering  <jim@meyering.net>
59215
59216         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59217         coreutils' stat program.
59218         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59219
59220 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59221
59222         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59223         C89.
59224         (CHAR_BIT): Remove, since we assume C89.
59225         Include <stdint.h> if available, as per current Autoconf CVS advice.
59226
59227 2004-03-31  Jim Meyering  <jim@meyering.net>
59228
59229         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59230         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59231         * m4/xalloc.m4: Likewise.
59232
59233 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59234
59235         Merge from coreutils.
59236
59237         * m4/inttostr.m4: New file.
59238         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59239         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59240         Require gl_CLOCK_TIME.
59241         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59242
59243 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59244
59245         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59246         not bool, to be more consistent with Unix conventions.
59247         Suggested by Bruno Haible.
59248
59249         Merge from coreutils.
59250
59251         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59252         * lib/umaxtostr.c: New files.
59253
59254         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59255         the usual <time.h> dance.
59256         (get_date): Change signature to support fractional time stamps.
59257         All callers changed.
59258         * lib/getdate.y: Include "getdate.h" first, as we can now
59259         assume C89 and don't need to worry about 'const'.
59260         Similarly, include "unlocked-io.h" near start, not in middle.
59261         Include <limits.h>.
59262         (textint.value): Use long int rather than int.
59263         (textint.digits): Use size_t rather than int.
59264         (BILLION, LOG10_BILLION): New constants.
59265         (parser_control): New member rel_ns.  Members day_ordinal,
59266         time_zone, month, day, hour, minutes, rel_year, rel_month,
59267         rel_day, rel_hour, rel_minutes, rel_seconds
59268         are now long int, not int.  Member seconds is now struct timespec,
59269         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59270         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59271         not int.
59272         (%union.intval): Now long int, not int.
59273         New member timespec.
59274         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59275         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59276         (spec): Now is a timespec or an item list.
59277         (timespec, items): New nonterminals.
59278         (time, rel, relunit, number, get_date):
59279         Add support for fractional seconds.
59280         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59281         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59282         (to_hour): First arg is now long int, not int.
59283         (to_year): Returns long int, not int.
59284         Don't treat year -70 like 70.
59285         (tm_diff): Returns long int, not int.
59286         (lookup_word): Use bool instead of int when appropriate.
59287         (yylex): Use size_t for count, not int.
59288         Detect overflow when parsing large integer constants.
59289         Add support for fractions.
59290         (get_date): Make pointers 'const' if possible.
59291         Use more-portable code to detect integer overflow.
59292         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59293         Don't use ctime; it's not reliable if the year has >4 digits.
59294
59295         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59296         This is for compatibility with BSD.
59297
59298         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59299         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59300         From coreutils' system.h.
59301
59302         * lib/userspec.c: Don't include "posixver.h".
59303         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59304         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59305         compatible extension.  Simplify code by removing a boolean int
59306         that was always nonzero if a string was nonnull.
59307
59308 2004-03-30  Jim Meyering  <jim@meyering.net>
59309
59310         Merge from coreutils.
59311
59312         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59313         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59314         on some systems one must include <grp.h> before it.
59315         Reported by Christian Krackowizer.
59316
59317 2004-03-30  Jim Meyering  <jim@meyering.net>
59318
59319         Merge from coreutils.
59320
59321         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59322
59323         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59324         an empty input stream.
59325
59326         * lib/readtokens.c: Include <stdbool.h>.
59327         (readtoken): Use `size_t' rather than int/long.
59328         All callers adjusted.
59329         Use `bool' rather than `int' where appropriate.
59330         Use memset rather than an explicit loop.
59331         Use x2nrealloc rather than xrealloc.
59332         Allow the use of `\0' as a delimiter.
59333         (readtokens): Likewise.
59334         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59335
59336 2004-03-30  Jim Meyering  <jim@meyering.net>
59337
59338         * m4/realloc.m4: Remove file, since now it does no more than
59339         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59340         the `configure.ac' section of module/realloc.
59341         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59342
59343 2004-03-30  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59346         nonnull.
59347
59348 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59349
59350         Merge changes to getloadavg.c from coreutils and Emacs.
59351
59352         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59353         Define to an expression, not to the empty string.
59354         Include cloexec.h and xalloc.h.
59355         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59356         Use set_cloexec_flag rather than rolling our own.
59357         * lib/cloexec.c, lib/cloexec.h: New files.
59358
59359 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59360
59361         * m4/cloexec.m4: New file.
59362
59363 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59364
59365         * lib/getopt.h: Sync with libc CVS.
59366
59367 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59368             Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59371         mbswidth.
59372
59373 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59374             Bruno Haible  <bruno@clisp.org>
59375
59376         * lib/mbswidth.h: Include <wchar.h> only if
59377         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59378         <wchar.h>.
59379         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59380
59381 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59382
59383         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59384         Sync with libc CVS.
59385         * lib/getopt_int.h: New file, also synced from libc.
59386
59387 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59388
59389         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59390         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59391         Bring back getopt.c, getopt.h, getopt1.c.
59392
59393 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59394
59395         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59396         All uses changed.  Check for sa_sigaction member; this fixes
59397         a bug first reported by Jason Andrade in
59398         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59399
59400 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59401
59402         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59403         '#if' expressions.  Unlike the code it replaces, it does not
59404         depend on (defined _SC_PAGESIZE).  However, it does depend on
59405         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59406         first reported by Jason Andrade in
59407         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59408
59409 2004-02-25  Simon Josefsson  <jas@extundo.com>
59410
59411         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59412
59413 2004-02-25  Simon Josefsson  <jas@extundo.com>
59414
59415         * lib/strdup.h: New file.
59416         * lib/strdup.c: Include it.
59417         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59418         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59419
59420 2004-02-23  Karl Berry  <karl@gnu.org>
59421
59422         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59423         (from fencepost.gnu.org:/gd/gnuorg).
59424
59425 2004-02-23  Karl Berry  <karl@gnu.org>
59426
59427         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59428         * config/srclist.txt: add maintain/standards documents.
59429
59430 2004-02-18  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59433         Reported by Derek Robert Price <derek@ximbiot.com>.
59434
59435 2004-02-16  Karl Berry  <karl@gnu.org>
59436
59437         * config/mkinstalldirs, install-sh: update from automake.
59438
59439 2004-02-06  Karl Berry  <karl@gnu.org>
59440
59441         * m4/po.m4: update from gettext 0.14.1.
59442
59443 2004-02-06  Karl Berry  <karl@gnu.org>
59444
59445         * lib/config.charset: update from gettext 0.14.1.
59446
59447 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59448
59449         Add comments and code, prompted by suggestions from Bruno Haible
59450         for sh-quote.
59451         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59452         describing the enum quoting_style values.
59453         * lib/quotearg.c (quotearg_alloc): New function.
59454         (quotearg_buffer_restyled): Treat lone { and } as special.
59455         Treat = as special.  Work around bug with older shells
59456         that "see" a '\' that is really the 2nd byte of a multibyte char.
59457         Quote empty string with shell_quoting_style.
59458
59459 2004-02-03  Bruno Haible  <bruno@clisp.org>
59460
59461         * m4/pipe.m4: New file, from GNU gettext.
59462
59463 2004-02-03  Bruno Haible  <bruno@clisp.org>
59464
59465         * lib/pipe.h: New file, from GNU gettext.
59466         * lib/pipe.c: New file, from GNU gettext.
59467
59468 2004-01-27  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/execute.m4: New file, from GNU gettext.
59471
59472 2004-01-27  Bruno Haible  <bruno@clisp.org>
59473
59474         * lib/execute.h: New file, from GNU gettext.
59475         * lib/execute.c: New file, from GNU gettext.
59476         * lib/w32spawn.h: New file, from GNU gettext.
59477
59478 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59479
59480         Merge from diffutils.
59481
59482         * lib/file-type.c (file_type): Add typed memory objects.
59483         * lib/file-type.h (S_TYPEISTMO): New macro.
59484
59485         * lib/c-stack.h (c_stack_action): Remove argv argument.
59486         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59487         (die): Don't calculate message unless segv_action returns.
59488         (get_stack_location, min_address_from_argv, max_address_from_argv,
59489         volatile stack_base, volatile_stack_size): Remove.
59490         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59491         that every segmentation violation is a stack overflow.  (Ouch!)
59492         See Debian bug 136249 (still outstanding) for more info about why
59493         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59494
59495 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59496
59497         Exit-status fix from coreutils.
59498
59499         Use exit_failure consistently in place of EXIT_FAILURE,
59500         so that program exit statuses are consistent on failure.
59501
59502         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59503         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59504         * lib/argmatch.h: Comment fix to match the above.
59505         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59506         Now a macro referring to exit_failure, instead of a separate
59507         variable.  Include "exitfail.h" to get it.
59508         * lib/xstrtol.h: Include "exitfail.h".
59509         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59510
59511         * lib/long-options.c (parse_long_options): Use prototype
59512         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59513         for clarity.
59514
59515 2004-01-21  Jim Meyering  <jim@meyering.net>
59516
59517         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59518         so as not to conflict with a different-sized __mktime_internal
59519         function in GNU libc.
59520         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59521         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59522
59523 2004-01-20  Karl Berry  <karl@gnu.org>
59524
59525         * config/config.guess: update from config.
59526
59527         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59528
59529 2004-01-20  Bruno Haible  <bruno@clisp.org>
59530
59531         Safer stack allocation.
59532         * lib/setenv.c: Include allocsa.h.
59533         (alloca): Remove fallback definition.
59534         (freea): Remove macro.
59535         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59536         instead of freea.
59537
59538 2004-01-20  Bruno Haible  <bruno@clisp.org>
59539
59540         * m4/eealloc.m4: New file, from GNU gettext.
59541
59542 2004-01-20  Bruno Haible  <bruno@clisp.org>
59543
59544         * m4/allocsa.m4: New file, from GNU gettext.
59545
59546 2004-01-20  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/xallocsa.h: New file, from GNU gettext.
59549         * lib/xallocsa.c: New file, from GNU gettext.
59550
59551 2004-01-20  Bruno Haible  <bruno@clisp.org>
59552
59553         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59554
59555 2004-01-20  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59558         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59559         specially.
59560
59561 2004-01-20  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59564         patch.
59565
59566 2004-01-20  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59569
59570 2004-01-20  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/eealloc.h: New file.
59573
59574 2004-01-20  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/binary-io.h: Avoid warnings on Cygwin.
59577
59578 2004-01-20  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/allocsa.h: New file, from GNU gettext.
59581         * lib/allocsa.c: New file, from GNU gettext.
59582
59583 2004-01-18  Karl Berry  <karl@gnu.org>
59584
59585         * doc/gpl.texi, doc/lgpl.texi: new files.
59586
59587 2004-01-18  Karl Berry  <karl@gnu.org>
59588
59589         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59590         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59591
59592 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59593
59594         Merge from coreutils.
59595
59596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59597         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59598         (gl_DEFAULT_POSIX2_VERSION): Move
59599         the documentation from 'configure' into 'config.hin',
59600         so that 'configure --help' isn't burdened by it and
59601         we don't have to worry about its formatting there.
59602         Reword the documentation so that it's more succinct
59603         and can be run together into a single paragraph.
59604         * m4/same.m4 (gl_SAME): Check for pathconf.
59605
59606 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59607
59608         Merge from coreutils.
59609
59610         * lib/posixver.c: Include posixver.h.
59611
59612         * lib/same.c: Include <stdbool.h>, <limits.h>.
59613         (_POSIX_NAME_MAX): Define if not defined.
59614         (MIN): New macro.
59615         (same_name): If file names are silently truncated, report
59616         that the file names are the same if they are the same after
59617         the silent truncation.
59618
59619         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59620         conversion function.
59621         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59622         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59623         longer needed.
59624
59625 2004-01-15  Jim Meyering  <jim@meyering.net>
59626
59627         Merge from coreutils.
59628
59629         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59630         if no library is required.
59631         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59632         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59633         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59634         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59635         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59636         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59637         value, $ac_cv_search_crypt, if it's "none required".
59638         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59639         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59640         not gl_FUNC_GETLOADAVG.
59641         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59642         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59643
59644 2004-01-15  Jim Meyering  <jim@meyering.net>
59645
59646         Merge from coreutils.
59647
59648         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59649         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59650         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59651
59652         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59653         optional configure-time default.
59654
59655         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59656
59657         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59658
59659 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59660
59661         Merge from coreutils.
59662
59663         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59664         value, $ac_cv_search_nanosleep, if it's "none required".
59665
59666 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59667
59668         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59669         with like-named macro in fnmatch.c.
59670         (EXT): Use an internal constant instead.
59671
59672         Merge fnmatch patches from glibc.
59673         * lib/fnmatch.c (mbsinit): Remove define.
59674         Add libc_hidden_ver (__fnmatch, fnmatch).
59675         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59676         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59677
59678 2004-01-14  Karl Berry  <karl@gnu.org>
59679
59680         * config/install-sh: update from automake.
59681
59682 2004-01-13  Karl Berry  <karl@gnu.org>
59683
59684         * config/install-sh: update from automake.
59685
59686 2004-01-09  Karl Berry  <karl@gnu.org>
59687
59688         * config/install-sh: update from automake.
59689
59690 2004-01-05  Karl Berry  <karl@gnu.org>
59691
59692         * config/config.{sub,guess}: update from config.
59693
59694 2003-12-31  Karl Berry  <karl@gnu.org>
59695
59696         * config/depcomp: update from automake.
59697
59698 2003-12-14  Karl Berry  <karl@gnu.org>
59699
59700         * lib/config.charset: update from gettext-runtime.
59701
59702 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59703
59704         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59705         Bug reported by Alfred M. Szmidt.
59706
59707 2003-12-03  Bruno Haible  <bruno@clisp.org>
59708
59709         * m4/gettext.m4: Upgrade from gettext-0.13.
59710         * m4/po.m4: Upgrade from gettext-0.13.
59711         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59712         * m4/intmax.m4: New file, from gettext-0.13.
59713         * m4/printf-posix.m4: New file, from gettext-0.13.
59714
59715 2003-11-29  Karl Berry  <karl@gnu.org>
59716
59717         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59718
59719 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59720             Bruno Haible  <bruno@clisp.org>
59721
59722         * lib/printf-parse.h: Don't include sys/types.h.
59723         (ARG_NONE): New macro.
59724         (char_directive): Change type of *arg_index fields to size_t.
59725         * lib/printf-parse.c: Don't include sys/types.h.
59726         (SSIZE_MAX): Remove macro.
59727         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59728         Remove unnecessary overflow check.
59729         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59730         fields.
59731
59732 2003-11-25  Bruno Haible  <bruno@clisp.org>
59733
59734         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59735
59736 2003-11-25  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59739         gt_TYPE_SSIZE_T.
59740
59741 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59742
59743         * modules/alloca: Remove dependency on xalloc.
59744
59745 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59746
59747         * lib/alloca.c: Remove dependency on xalloc module.
59748         (xalloc_die): Remove.
59749         (memory_full) [!defined emacs]: New macro.
59750         [!defined emacs]: Don't include xalloc.h.
59751         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59752         address arithmetic overflows.  Change datatypes a bit to avoid
59753         unnecessary casts.
59754
59755 2003-11-22  Jim Meyering  <jim@meyering.net>
59756
59757         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59758         s/size/size_t/.
59759
59760 2003-11-21  Karl Berry  <karl@gnu.org>
59761
59762         * config/config.{sub,guess}: update from config.
59763
59764 2003-11-18  Karl Berry  <karl@gnu.org>
59765
59766         * config/config.{sub,guess}: update from config.
59767
59768         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59769
59770 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59771
59772         * README: Mention that S+T cannot overflow if S is the size of
59773         an existing object and T is sufficiently small.
59774
59775 2003-11-17  Jim Meyering  <jim@meyering.net>
59776
59777         On systems without utime and without a utimes function capable of
59778         dealing with a NULL struct utimbuf* argument, this utime replacement
59779         could -- in unusual circumstances -- leak a file descriptor.
59780         * lib/utime.c: Include <unistd.h> and <errno.h>.
59781         (utime_null): Be sure to close `fd' and to preserve errno.
59782         Reported by Geoff Collyer via Arnold Robbins.
59783
59784 2003-11-17  Bruno Haible  <bruno@clisp.org>
59785
59786         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59787         (Depends-on): Add xsize.
59788
59789 2003-11-17  Bruno Haible  <bruno@clisp.org>
59790
59791         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59792
59793 2003-11-17  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/vasnprintf.c (alloca): Remove fallback definition.
59796         (freea): Remove definition.
59797         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59798         Reported by Paul Eggert.
59799
59800 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59801             Bruno Haible  <bruno@clisp.org>
59802
59803         Protect against address arithmetic overflow.
59804         * lib/printf-args.h: Include stddef.h.
59805         (arguments): Change type of field 'count' to size_t.
59806         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59807         'unsigned int' where appropriate.
59808         * lib/printf-parse.h: Include sys/types.h.
59809         (char_directive): Change type of *arg_index fields to ssize_t.
59810         (char_directives): Change type of fields 'count', max_*_length to
59811         size_t.
59812         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59813         (SSIZE_MAX): Define fallback value.
59814         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59815         instead of 'int' where appropriate. Check a_allocated, d_allocated
59816         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59817         * lib/vasnprintf.c: Include xsize.h.
59818         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59819         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59820         overflow. Avoid wraparound when converting a width or precision from
59821         decimal to binary.
59822
59823 2003-11-16  Bruno Haible  <bruno@clisp.org>
59824
59825         Update from GNU gettext.
59826         * lib/printf-parse.c: Generalize to it can be compiled for wide
59827         strings.
59828         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59829         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59830         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59831         SNPRINTF): New macros.
59832         Don't include <alloca.h> if the file is used inside libintl.
59833         (local_wcslen): New function, for Solaris 2.5.1.
59834         (VASNPRINTF): Use it instead of wcslen.
59835
59836 2003-11-16  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/xsize.h (xmax): New function.
59839         (xsum, xsum3, xsum4): Declare as "pure" functions.
59840
59841 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59842
59843         * modules/xalloc (Files): Undo latest change, since xalloc.h
59844         no longer needs SIZE_MAX or PTRDIFF_MAX.
59845
59846 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59847
59848         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59849         gl_PTRDIFF_MAX.
59850
59851 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59852
59853         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59854         "return", to pacify some unknown compiler.  Problem reported
59855         by Joerg Schilling.
59856
59857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59858
59859         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59860         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59861         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59862         heuristic is just as accurate as far as we know, and it removes a
59863         dependency on size_max.m4 and ptrdiff_max.m4.
59864
59865 2003-11-11  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/xsize (Files): Add m4/size_max.m4.
59868         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59869
59870 2003-11-11  Bruno Haible  <bruno@clisp.org>
59871
59872         * m4/size_max.m4: New file.
59873         * m4/ptrdiff_max.m4: New file.
59874         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59875         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59876         (gl_XALLOC): Invoke it.
59877
59878 2003-11-11  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59881         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59882         defined.
59883
59884 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59885
59886         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59887         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59888         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59889         From Bruno Haible.
59890         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59891         not (size_t) -1, since it's defined here.
59892
59893 2003-11-09  Karl Berry  <karl@gnu.org>
59894
59895         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59896
59897 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59898
59899         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59900         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59901         Reject sizes of exactly SIZE_MAX bytes.
59902         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59903         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59904
59905 2003-11-05  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59908         SIZE_MAX defined in <limits.h> on Solaris.
59909
59910 2003-11-04  Jim Meyering  <jim@meyering.net>
59911
59912         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59913         variable names, rather than @VAR@.
59914         * modules/poll: Likewise.
59915
59916 2003-11-04  Bruno Haible  <bruno@clisp.org>
59917
59918         * modules/xsize: New file.
59919         * modules/linebreak: Depend on xsize.
59920         * MODULES.html.sh (func_all_modules): Add xsize.
59921
59922 2003-11-04  Bruno Haible  <bruno@clisp.org>
59923
59924         * m4/xsize.m4: New file.
59925
59926 2003-11-04  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/xsize.h: New file.
59929         * lib/linebreak.c: Include xsize.h.
59930         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59931         argument for overflow.
59932         Suggested by Paul Eggert.
59933
59934 2003-11-03  Karl Berry  <karl@gnu.org>
59935
59936         * config/config.{guess,sub}: update from config.
59937
59938 2003-11-03  Jim Meyering  <jim@meyering.net>
59939
59940         * modules/userspec (lib_SOURCES): Add userspec.h.
59941         (Include): Add "userspec.h".
59942         Improve description.
59943
59944 2003-11-03  Jim Meyering  <jim@meyering.net>
59945
59946         * lib/userspec.c: Include "userspec.h".
59947         * lib/userspec.h: New file.
59948
59949 2003-11-03  Bruno Haible  <bruno@clisp.org>
59950
59951         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59952
59953 2003-11-03  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59956         available, to avoid (extremely rare) race condition.
59957         Suggested by Paul Eggert.
59958
59959 2003-11-02  Karl Berry  <karl@gnu.org>
59960
59961         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59962
59963 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59964
59965         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59966         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59967         (read_filesystem_list): Set and use me_type_malloced.
59968         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59969         whatever the type happens to be), for brevity and consistency.
59970         Check for size calculation overflow on Alphas running OSF/1.
59971
59972 2003-10-31  Jim Meyering  <jim@meyering.net>
59973
59974         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59975
59976         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59977
59978 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59979             Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59982         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59983
59984 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59987         netbsd*-gnu*.  Suggested by Robert Millan.
59988
59989 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59990
59991         * modules/group-member: Depend on stdbool.
59992
59993 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59994
59995         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59996
59997 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59998
59999         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60000         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60001         after the 'gnu' in these cases.  This fixes some bugs in the
60002         previous change, and is based on suggestions by Robert Millan.
60003
60004 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60005
60006         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60007         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60008         no longer needed.
60009         * lib/quotearg.c (quotearg_n_options): Use it.
60010         * lib/group-member.c: Include <stdbool.h>.
60011         (free_group_info): Arg is now const *; don't free arg.
60012         (get_group_info): Now returns bool and accepts struct group_info *,
60013         rather than returning a malloc'ed struct group_info *.
60014         All uses changed.  Check for overflow in internal size calculation.
60015
60016         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60017         rather than xmalloc/xrealloc.
60018         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60019         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60020         conformance bug: the old code used a pointer after freeing the
60021         storage that it addressed.
60022         * lib/hash.c (hash_initialize): Simplify the code by using
60023         xalloc_oversized rather than doing it by hand.
60024         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60025         the buffer preserved.  Use free and xmalloc instead.
60026         * lib/quotearg.c (quotearg_n_options): Likewise.
60027         Use a simpler test for size overflow.  Don't use xalloc_oversized
60028         because unsigned int might be wider than size_t (!); this suggests
60029         that we should switch from unsigned int to size_t for slot numbers.
60030
60031 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60032
60033         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60034         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60035         NetBSD kernels.  Requested by Richard Stallman.
60036
60037 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60038
60039         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60040         to allocate the returned structure.  Do not allocate a subarray,
60041         as x2nrealloc will do that.
60042         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60043         instead of xnrealloc.
60044         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60045
60046 2003-10-27  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/stdbool_.h: Better support for BeOS.
60049
60050 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60051
60052         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60053         now uses inline.
60054
60055 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60056
60057         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60058         callers that want to do their own size-overflow checking.  Include
60059         <stdbool.h>, since xalloc_oversized returns bool.
60060         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60061         to use xalloc_oversized.
60062
60063         Add two functions x2realloc, x2nrealloc, for programs that grow
60064         arrays dynamically by doubling their sizes.
60065         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60066         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60067         New functions.
60068
60069         Port to C99 semantics for 'inline' of external functions.
60070         Bug reported by Bruno Haible.
60071         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60072         with the old contents of xnmalloc.
60073         (xnmalloc, xmalloc): Use it.
60074         (xnrealloc_inline): New static inline function,
60075         with the old contents of xnrealloc.
60076         (xnrealloc, xrealloc): Use it.
60077
60078         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60079         that.
60080
60081 2003-10-26  Karl Berry  <karl@gnu.org>
60082
60083         * config/srclist.txt (COPYING.DOC): no longer available from
60084         /gd/gnuorg; don't know where the ultimate source is.
60085
60086 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60087
60088         Fix several address-calculation bugs in the hash modules,
60089         plus some minor code cleanup.
60090
60091         * lib/hash.h: Include <stdbool.h>, for bool.
60092         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60093         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60094         hash_get_n_entries, hash_get_max_bucket_length,
60095         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60096         hash_rehash): Use size_t rather than unsigned.
60097         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60098         hash_get_n_buckets_used, hash_get_n_entries,
60099         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60100         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60101         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60102         Likewise.
60103         (SIZE_MAX): Define if not defined.
60104         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60105         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60106         hash_print):
60107         Use const * when possible.
60108         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60109         (check_tuning): Fix bug: if tuning parameters were very close to
60110         0 or 1, rounding errors could have caused subscript violations.
60111         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60112         (hash_initialize): Add 'fail:' label
60113         to free table and return NULL, and use it to simplify code.
60114         Use calloc rather than clearing the storage ourself.
60115         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60116         buffer size calculations.
60117         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60118         Include <stddef.h>, for size_t.
60119         * lib/hash-pjw.c (hash_pjw): Likewise.
60120         Switch to method described by Bruno Haible.
60121         Include <limits.h>, for CHAR_BIT.
60122         (SIZE_BITS): New macro.
60123
60124 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60125
60126         * m4/getline.m4 (AM_FUNC_GETLINE):
60127         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60128         hosts.  Problem reported by Derek Robert Price in
60129         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60130         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60131         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60132
60133 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60134
60135         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60136         ceiling the allocation at NMAX bytes rather than silently
60137         discarding input bytes before NMAX is reached.  This makes
60138         a difference only if NMAX exceeds SIZE_MAX / 2.
60139
60140         * lib/obstack.c: Merge from glibc.
60141         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60142         Add libc_hidden_def (_obstack_newchunk).
60143         (_obstack_free) [! defined _LIBC]: Remove.
60144         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60145         a clone of the function body.
60146         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60147         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60148
60149         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60150         glibc.
60151         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60152         arg to memcpy.
60153
60154         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60155         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60156         Don't use lvalue casts, as GCC plans to remove support for them
60157         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60158         was also present in the non-GCC version, indicating that this
60159         code had always been buggy and had never been widely used.
60160         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60161         Use the fast variant of each macro, rather than copying the
60162         definiens of the fast variant; that way, we'll be more likely to
60163         catch future bugs in the fast variants.
60164
60165 2003-10-20  Bruno Haible  <bruno@clisp.org>
60166
60167         * modules/wait-process: New file.
60168         * MODULES.html.sh (func_all_modules): Add wait-process.
60169
60170 2003-10-20  Bruno Haible  <bruno@clisp.org>
60171
60172         * m4/wait-process.m4: New file.
60173
60174 2003-10-20  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/wait-process.h: New file, from GNU gettext.
60177         * lib/wait-process.c: New file, from GNU gettext.
60178
60179 2003-10-19  Jim Meyering  <jim@meyering.net>
60180
60181         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60182         HPUX 10.20.
60183
60184 2003-10-18  Karl Berry  <karl@gnu.org>
60185
60186         * config/config.guess: update from config.
60187
60188 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60189
60190         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60191         (getgroups): First arg is int, not size_t.
60192         Don't let 'free' mangle errno.
60193
60194 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60195
60196         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60197
60198 2003-10-16  Karl Berry  <karl@gnu.org>
60199
60200         * config/config.{guess,sub}: update from config.
60201
60202 2003-10-16  Jim Meyering  <jim@meyering.net>
60203
60204         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60205         memcpy.
60206
60207 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60208
60209         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60210         (SIZE_MAX): Remove.
60211         (new_exclude, add_exclude_file): Initial size no longer needs to
60212         be a power of 2.
60213         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60214         our own address arithmetic overflow checking.
60215
60216         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60217         (fnmatch): Do not alloca more than 2000 wide characters;
60218         instead, use malloc for large buffers.
60219         Check for address arithmetic overflow, and return -1
60220         with errno set to ENOMEM in that case.
60221         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60222         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60223         instead, return -1.  Check for address arithmetic overflow.
60224
60225 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60226
60227         Handle invalid suffixes and overflow independently, so that
60228         callers can treat them independently as needed.  Fix some bugs in
60229         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60230         suffix for a human-readable blocksize.  The major caller-visible
60231         change is the addition of a new
60232         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60233         that both overflow and suffix chars were found.
60234
60235         * lib/human.c (humblock): Don't check separately for invalid suffix
60236         char; that is xstrtoumax's job (now that its bug is fixed).
60237         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60238         INTMAX_MAX]: New macros.
60239         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60240         TYPE_MAXIMUM): New macros.
60241         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60242         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60243         if overflow occurs, as it's what __strtol does and it's more useful
60244         in practice.
60245         (__xstrtol): If __strtol reports some error other than ERANGE,
60246         reflect it to the caller as LONGINT_INVALID.  If it reports
60247         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60248         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60249         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60250         value.
60251         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60252         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60253         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60254         [defined UINTMAX_MAX]: New macros.
60255
60256 2003-10-14  Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60259
60260 2003-10-14  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/sig_atomic_t: New file, from GNU gettext.
60263         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60264
60265 2003-10-14  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60268         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60269         Also use volatile where needed.
60270
60271 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60272
60273         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60274         Change maintainer from Bruno Haible to 'all'.
60275
60276 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60277
60278         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60279
60280 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60281
60282         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60283         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60284         and define in terms of the other primitives.
60285         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60286         (SIZE_MAX): Define if not already defined.
60287         (array_size_overflow): New function.
60288         (xalloc_die): Abort instead of exiting if 'error' returns.
60289         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60290         (xmalloc, xrealloc): Use them.
60291         (xcalloc): Check for address arithmetic overflow.
60292         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60293         a bit faster than strcpy.
60294
60295 2003-10-10  Simon Josefsson  <jas@extundo.com>
60296
60297         * modules/argp (Depends-on): Add restrict and strcase.
60298
60299 2003-10-10  Simon Josefsson  <jas@extundo.com>
60300
60301         * m4/argp.m4: Add AC_C_INLINE.
60302
60303 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60304
60305         Merge getpass from libc, plus a few fixes.
60306
60307         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60308         Include <stdbool.h>.
60309         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60310         __fsetlocking to empty.
60311         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60312         do include <bits/libc-lock.h>.
60313         Do not include <fcntl.h>; not needed.
60314         [_LIBC]: Include <wchar.h>.
60315         (NOTCANCEL_MODE): New macro.
60316         (flockfile, funlockfile) [_LIBC]: New macros.
60317         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60318         [!_LIBC]: New macros.
60319         (call_fclose): New function.
60320         (getpass): Use it.  Save tty stream separately; this simplifies the
60321         code and makes it more reliable if stdin happens to equal stdout.
60322         Invoke __fsetlocking on tty.
60323         Handle thread cancellation if needed.
60324         Namespace cleanup (use __tcgetattr, __getline).
60325         Use bool for Booleans.
60326         [USE_IN_LIBIO]: Handle wide streams.
60327         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60328         stream might go where.
60329
60330         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60331         doesn't have to include <stdio.h> before us.
60332         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60333         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60334         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60335         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60336         if not declared, so that we can use getpass.c code from libc without
60337         rewriting it.
60338         (flockfile, ftrylockfile, funlockfile): New macros.
60339
60340 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60341
60342         * modules/getpass: Depend on stdbool.
60343
60344 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60345
60346         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60347
60348 2003-10-07  Karl Berry  <karl@gnu.org>
60349
60350         * config/config.{guess,sub}: update from config.
60351
60352 2003-10-06  Jim Meyering  <jim@meyering.net>
60353             Bruno Haible  <bruno@clisp.org>
60354
60355         This lets translators provide better translations for the
60356         "Written by ..." part of --version output.
60357         * lib/version-etc.h: Include stdarg.h.
60358         (version_etc_copyright): Declare as readonly.
60359         (version_etc): Make this function variadic with a NULL-terminated list
60360         of author name strings.
60361         (version_etc_va): New declaration.
60362         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60363         (version_etc_copyright): Declare as readonly.
60364         (version_etc_va): New function. Provide a different translatable string
60365         for each possible number of authors < 10. Abbreviate when there are 10
60366         authors or more.
60367         (version_etc): Make this function variadic. Call version_etc_va.
60368         Suggestion from Gary V. Vaughan.
60369
60370         * lib/long-options.h (parse_long_options): Change prototype: the
60371         authors string is moved to the end and becomes variadic.
60372         * lib/long-options.c: Include stdarg.h.
60373         (parse_long_options): Make this function variadic, too.
60374         Call version_etc_va, not version_etc.
60375
60376 2003-10-06  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/version-etc-2: Remove file.
60379         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60380
60381 2003-10-06  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/fatal-signal: New file.
60384         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60385
60386 2003-10-06  Bruno Haible  <bruno@clisp.org>
60387
60388         * m4/fatal-signal.m4: New file.
60389         * m4/signalblocking.m4: New file, from GNU gettext.
60390
60391 2003-10-06  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/version-etc-2.h: Remove file.
60394         * lib/version-etc-2.c: Remove file.
60395
60396 2003-10-06  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/fatal-signal.h: New file, from GNU gettext.
60399         * lib/fatal-signal.c: New file, from GNU gettext.
60400
60401 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60402
60403         * README: Rework advice for preventing empty .o files.
60404         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60405         not <sys/types.h>.
60406
60407 2003-10-04  Karl Berry  <karl@gnu.org>
60408
60409         * lib/argp*: update from libc.
60410
60411 2003-10-04  Karl Berry  <karl@gnu.org>
60412
60413         * config/config.{guess,sub}: update from config.
60414
60415 2003-10-02  Bruno Haible  <bruno@clisp.org>
60416
60417         * modules/lchown (Include): Add lchown.h.
60418         * modules/time_r (Include): Use "..." syntax.
60419         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60420
60421 2003-10-01  Simon Josefsson  <jas@extundo.com>
60422
60423         * MODULES.html.sh (func_all_modules): Move gethostname from section
60424         'based on' to section 'lacking' POSIX:2001.
60425
60426 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60427
60428         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60429         to output mode on the same stream.
60430
60431 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60432
60433         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60434         Fix arg typo in previous patch.
60435
60436 2003-09-28  Jim Meyering  <jim@meyering.net>
60437
60438         * lib/error.c: Correct cpp indentation.
60439
60440 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60441
60442         * modules/free: New file.
60443
60444 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60445
60446         * m4/free.m4: New file.
60447
60448 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60449
60450         * lib/minmax.h (MIN, MAX)
60451         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60452         Omit the special code that used __typeof__, since we worry that
60453         it could be more trouble than it's worth.  See:
60454         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60455         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60456
60457         * lib/free.c: New file.
60458
60459 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60460
60461         Trivial fixes to Makefile.am parts of module listings.
60462         * modules/strstr: Append strstr.h to lib_SOURCES.
60463         * modules/strcase: Likewise, for strcase.h.
60464
60465 2003-09-27  Karl Berry  <karl@gnu.org>
60466
60467         * config/mkinstalldirs: update from automake.
60468
60469 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60470
60471         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60472         (error_tail): Do not loop, reallocating temporary buffer, since
60473         the output cannot contain more wide characters than the input
60474         contains bytes, the size must be big enough already.  This avoids
60475         one potential size overflow calculation.  Check for size overflow
60476         when calculating temporary buffer size.  Free temporary buffer
60477         when done, if it was allocated with malloc; this plugs a memory
60478         leak.  Remove casts from void * to pointers, that are no longer
60479         needed now that we're assuming C89 or better.
60480
60481         Merge error changes from glibc.
60482
60483         * lib/error.c, error.h: Update copyright notice header to match glibc.
60484         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60485         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60486         Disable cancellation while printing error.
60487         * lib/error.h: Prepend __ to parameter names.
60488
60489 2003-09-26  Jim Meyering  <jim@meyering.net>
60490
60491         * lib/error.c (error_tail): Move some declarations
60492         into inner scope where the local variables are used.
60493
60494 2003-09-26  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60497         stpncpy().
60498         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60499
60500 2003-09-26  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60503         (stpncpy): Define as alias for gnu_stpncpy.
60504         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60505
60506 2003-09-25  Simon Josefsson  <jas@extundo.com>
60507
60508         * lib/xgetdomainname.h: New file.
60509         * lib/xgetdomainname.c: New file.
60510
60511 2003-09-25  Simon Josefsson  <jas@extundo.com>
60512             Bruno Haible  <bruno@clisp.org>
60513
60514         * modules/getdomainname: New file.
60515         * modules/xgetdomainname: New file.
60516         * MODULES.html.sh (func_all_modules): Add getdomainname,
60517         xgetdomainname.
60518
60519 2003-09-25  Simon Josefsson  <jas@extundo.com>
60520             Bruno Haible  <bruno@clisp.org>
60521
60522         * m4/getdomainname.m4: New file.
60523
60524 2003-09-25  Simon Josefsson  <jas@extundo.com>
60525             Bruno Haible  <bruno@clisp.org>
60526
60527         * lib/getdomainname.h: New file.
60528         * lib/getdomainname.c: New file.
60529
60530 2003-09-25  Karl Berry  <karl@gnu.org>
60531
60532         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60533
60534 2003-09-25  Karl Berry  <karl@gnu.org>
60535
60536         * config/install-sh: update from automake.
60537
60538 2003-09-25  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/version-etc-2: New file, from modules/version-etc with
60541         modifications.
60542         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60543
60544 2003-09-25  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60547         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60548
60549 2003-09-24  Simon Josefsson  <jas@extundo.com>
60550
60551         * modules/xgethostname: Add xgethostname.h.
60552
60553 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60554
60555         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60556         the buffer associated with the argument.  Bug reported by
60557         Simon Josefsson.
60558
60559 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60560
60561         * README: Document assumptions that 'int' is at least 32 bits
60562         wide, that integer arithmetic is 2's complement without overflow,
60563         that there are no holes in integer values, that adding sizes of
60564         two nonoverlapping objects can't overflow, and that all-bits-zero
60565         yields scalar zero.  Fix spelling and capitalization typos.
60566
60567 2003-09-19  Karl Berry  <karl@gnu.org>
60568
60569         * lib/argp.h: update from libc.
60570
60571 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60572
60573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60574         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60575         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60576
60577 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60578
60579         * gnulib-tool: Use "test -h", not "test -L", for portability
60580         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60581         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60582         (sed_extract_prog): Issue s commands one-by-one, rather than
60583         using \| in one s command.
60584
60585 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60586
60587         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60588         input error, instead of returning NULL the next time we are called
60589         (and therefore losing track of errno).
60590
60591 2003-09-16  Bruno Haible  <bruno@clisp.org>
60592
60593         * gnulib-tool (func_create_testdir): Warn about duplicated
60594         dependencies.
60595
60596 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60597
60598         * modules/argmatch, modules/fatal, modules/obstack,
60599         modules/xalloc, modules/xgethostname: Sort dependencies by
60600         importance, not alphabetically.
60601
60602 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60603
60604         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60605         fails, so that the caller gets the proper errno.
60606
60607         * lib/readutmp.c (read_utmp): Likewise.
60608         Check for fstat error.  Close stream and free storage
60609         when failing.
60610
60611 2003-09-14  Karl Berry  <karl@gnu.org>
60612
60613         * config/srclist.txt (strdup.c): disable for c89 changes.
60614
60615 2003-09-14  Jim Meyering  <jim@meyering.net>
60616
60617         * lib/getloadavg.c: Correct cpp indentation.
60618         * lib/strdup.c: Likewise.
60619         * lib/vasnprintf.c: Likewise.
60620
60621 2003-09-14  Bruno Haible  <bruno@clisp.org>
60622
60623         * modules/fwriteerror: New file.
60624         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60625
60626 2003-09-14  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/fwriteerror.h: New file.
60629         * lib/fwriteerror.c: New file.
60630
60631 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60632
60633         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60634         modules/xgethostname, modules/xalloc: Depend on exit.
60635
60636 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60637
60638         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60639
60640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60641         and AC_MINIX, too, so that their extensions are available.
60642
60643         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60644         This macro has been superseded by gl_BACKUPFILE.
60645
60646         More patches to assume C89 or better.
60647
60648         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60649
60650         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60651         unconditionally.
60652         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60653         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60654         Include <string.h>, <stdlib.h> unconditionally.
60655         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60656         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60657         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60658         headers or for string.h.
60659         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60660         or strtoul.
60661
60662         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60663         headers.
60664         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60665         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60666         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60667         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60668         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60669         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60670         memcpy, memset.
60671         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60672         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60673         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60674         strtol.
60675         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60676         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60677         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60678         strtoul.
60679
60680 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60681
60682         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60683         * lib/obstack.c [!defined _LIBC]: Likewise.
60684         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60685         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60686         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60687
60688         More changes to assume C89 or better.
60689
60690         * lib/error.c (error_tail): Assume vprintf.
60691
60692         * lib/argmatch.c (getenv): Remove decl.
60693         * lib/progreloc.c (get_full_program_name): Define via prototype.
60694         * lib/setenv.c (clearenv): Likewise.
60695         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60696         needed.
60697         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60698         (malloc, memcpy): Remove decls.
60699         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60700         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60701         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60702         (memcpy): Remove macro.
60703         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60704         (__P): Remove.  All uses removed.
60705         (PTR): Remove.  All uses changed to void *.
60706         (CHAR_BIT, NULL): Remove.
60707         (spaces, zeros, memset_space, memset_zero)
60708         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60709         Remove.
60710         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60711         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60712         Define with prototype.
60713         Remove now-unnecessary prototype decl.
60714         (extra_args_spec): Assume ANSI C.  All uses changed.
60715         (extra_args_spec_iso): Remove.
60716         (my_strftime, emacs_strftimeu): Define via prototype.
60717         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60718         unconditionally.
60719         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60720         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60721         (strtoul, strtol): Remove decls.
60722         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60723         LONG_MAX): Remove.
60724         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60725         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60726         (LOCALE_PARAM_PROTO): New macro.
60727         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60728         (INTERNAL (strtol), strtol): Define with a prototype.
60729         (PARAMS): Remove.  All uses removed.
60730         * lib/tempname.c: Include <string.h> unconditionally.
60731         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60732         * lib/xgethostname.c (main): Define with a prototype.
60733         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60734         Include <stdlib.h> unconditionally.
60735         (calloc, malloc, realloc, free): Remove decls.
60736         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60737         Include <stdlib.h> unconditionally.  Sort include file names.
60738         (strtod): Remove.
60739         (xstrtod): Define with a prototype.
60740         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60741         (strtol, strtoul): Remove decls.
60742
60743 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60744
60745         More patches to assume C89 or better.
60746         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60747         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60748         string.h, memchr, STDC_HEADERS.
60749
60750 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60751
60752         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60753         Include <stdlib.h>, <string.h> unconditionally.
60754         Remove now-unnecessary cast to char *.
60755         * lib/strnlen.c: Include <string.h> unconditionally.
60756         * lib/yesno.c (yesno): Define with a prototype.
60757
60758 2003-09-11  Bruno Haible  <bruno@clisp.org>
60759
60760         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60761
60762 2003-09-10  Jim Meyering  <jim@meyering.net>
60763
60764         * lib/error.c: Correct indentation of cpp directives.
60765
60766 2003-09-10  Bruno Haible  <bruno@clisp.org>
60767
60768         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60769         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60770         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60771         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60772         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60773         <stdlib.h> and <string.h> checks.
60774         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60775         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60776
60777 2003-09-10  Bruno Haible  <bruno@clisp.org>
60778
60779         * lib/strcspn.c: Include <string.h> unconditionally.
60780         * lib/strpbrk.c: Include <string.h> unconditionally.
60781         * lib/strstr.c: Include <string.h> unconditionally.
60782         * lib/unicodeio.c: Include <string.h> unconditionally.
60783         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60784         * lib/unsetenv.c: Likewise.
60785         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60786         * lib/yesno.c: Include <stdlib.h> unconditionally.
60787         (rpmatch): Add prototype.
60788
60789 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60790
60791         More patches to assume C89 or better.
60792         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60793         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60794         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60795         or for string.h.
60796         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60797         stdlib.h.
60798         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60799         C headers.
60800         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60801         string.h.
60802         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60803         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60804         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60805         or for string.h.
60806         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60807         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60808         C headers.
60809         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60810         memcpy.
60811         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60812         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60813         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60814         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60815         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60816         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60817         string.h, free.
60818         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60819         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60820         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60821         C headers, or for string.h.
60822         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60823         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60824         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60825         headers, memory.h, stdlib.h, string.h, strings.h.
60826         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60827         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60828         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60829         strchr.
60830         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60831         headers, memory.h, string.h.
60832         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60833         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60834         free.
60835         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60836         headers.
60837         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60838         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60839         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60840         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60841         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60842
60843 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60844
60845         More K&R removal.
60846
60847         * lib/acosl.c (main): Use a prototype.
60848         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60849         tanl.c: Likewise.
60850
60851         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60852
60853         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60854         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60855         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60856         with a prototype.
60857         * lib/getopt.c (const): Remove macro.
60858         Include <string.h> unconditionally.
60859         (my_index): Remove; all uses changed to strchr.
60860         (strlen): Remove decl.
60861         (exchange): Remove forward decl; no longer needed.
60862         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60863         Define with prototype.
60864         * lib/getopt1.c (const): Remove macro.
60865         (getopt_long, getopt_long_only, main): Define with prototype.
60866
60867         * lib/getugroups.c: Include <string.h> unconditionally.
60868
60869         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60870         (getusershell, setusershell, endusershell, readname, main):
60871         Define with prototypes.
60872
60873         * lib/group-member.c: Include group-member.h first.
60874         Include <stdlib.h> unconditionally.
60875
60876         * lib/hard-locale.c: Include hard-locale.h first.
60877         Include <stdlib.h>, <string.h> unconditionally.
60878
60879         * lib/hash.c (free, malloc): Remove decls.
60880         Include <stdlib.h> unconditionally.
60881
60882         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60883         (getenv): Do not declare.
60884
60885         * lib/idcache.c: Include <string.h> unconditionally.
60886
60887         * lib/long-options.c: Include long-options.h first, to test interface.
60888         Include <stdlib.h> unconditionally.
60889
60890         * lib/makepath.c: Include makepath.h first, to test interface.
60891         Include <stdlib.h> and <string.h> unconditionally.
60892
60893         * lib/linebuffer.c: Include <stdlib.h>.
60894         (free): Remove decl.
60895
60896         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60897         stddef.h. rpl_malloc returns void *, not char *.
60898         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60899         prototype.
60900
60901         * lib/md5.h: Include <limits.h> unconditionally.
60902         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60903         (__P): Remove; all uses removed.
60904         * lib/md5.c: Include "md5.h" first.
60905         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60906         md5_buffer, md5_process_bytes, md5_process_block):
60907         Define with prototypes.
60908         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60909         * lib/sha.c: Include "sha.h" first.
60910         Include <stdlib.h>, <string.h> unconditionally.
60911
60912         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60913         * lib/memcmp.c (__ptr_t): Likewise.
60914         * lib/memrchr.c (__ptr_t): Likewise.
60915         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60916         Include <string.h> unconditionally.
60917         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60918         * lib/memchr.c: Include <stdlib.h> unconditionally.
60919         * lib/memchr.c (LONG_MAX): Remove.
60920         * lib/memrchr.c (LONG_MAX): Likewise.
60921         * lib/memchr.c (__memchr): Define via a prototype.
60922         * lib/memrchr.c (__memrchr): Likewise.
60923         * lib/memcmp.c (__P): Remove, and remove all uses.
60924         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60925         Remove forward decls; no longer needed.
60926         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60927         Use types required by C89 in prototype.
60928
60929         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60930         * lib/savedir.c: Likewise.
60931         * lib/mkdir.c (free): Remove decl.
60932         * lib/rmdir.c (rmdir): Define with a prototype.
60933         * lib/savedir.c: Include savedir.h first, to test interface.
60934
60935         * lib/mktime.c (STDC_HEADERS): Remove.
60936         Include <stdlib.h>, <string.h> unconditionally.
60937
60938         * lib/modechange.c: Include <stdlib.h> unconditionally.
60939         (malloc): Remove decl.
60940
60941         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60942         (free): Remove decl.
60943
60944         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60945         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60946         (This type really should be intptr_t, but that's a C99ism.)
60947         (_obstack_memcpy): Remove: all uses changed to memcpy.
60948         Include <string.h> unconditionally.
60949         (struct obstack): Assume __STDC__ for types of members
60950         chunkfun, freefun, extra_arg.
60951         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60952         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60953         obstack_begin, obstack_specify_allocation,
60954         obstack_specify_allocation_with_arg, obstack_chunkfun,
60955         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60956         Remove unprototyped decls and the macros that use them.
60957         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60958         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60959         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60960         (defined __STDC__ && __STDC__)]:
60961         Remove nonprototyped code.
60962         Include <stdlib.h> unconditionally.
60963         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60964         _obstack_allocated_p, _obstack_free, obstack_free,
60965         _obstack_memory_used, print_and_abort):
60966         Define using prototypes.
60967         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60968         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60969         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60970         obstack_next_free, obstack_object_size, obstack_room) [0]:
60971         Remove unused, unprototyped code.
60972
60973         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60974
60975         * lib/physmem.c (physmem_total, physmem_available, main): Define
60976         with prototypes.
60977
60978         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60979         (main): Define with a prototype.
60980
60981         * lib/posixver.c (getenv): Remove decl.
60982
60983         * lib/putenv.c (malloc): Returns void *, not char *.
60984         Include <string.h> unconditionally.
60985         (strchr, memcpy, NULL): Do not define.
60986
60987         * lib/readtokens.c: Include readtokens.h first, to test interface.
60988         Include <stdlib.h>, <string.h> unconditionally.
60989         (init_tokenbuffer): Define with a prototype.
60990
60991         * lib/regex.c (PARAMS): Remove.  All uses removed.
60992         All uses of _RE_ARGS removed, too.
60993         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60994         unconditionally.
60995         (bzero): Assume memset exists.
60996         (memcmp, memcpy, NULL): Remove.
60997         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60998         char, or assignments to local vars of type signed char.
60999         (init_syntax_once, PREFIX(extract_number_and_incr),
61000         PREFIX(print_partial_compiled_pattern),
61001         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61002         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61003         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61004         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61005         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61006         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61007         wcs_compile_range, byte_compile_range, truncate_wchar,
61008         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61009         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61010         count_mbs_length, wcs_re_match_2_internal,
61011         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61012         PREFIX(alt_match_null_string_p),
61013         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61014         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61015         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61016         now-unnecessary declaration, if any.
61017         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61018         regcomp, regexec):
61019         Remove now-unnecessary casts among pointer types.
61020         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61021
61022         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61023         (free): Remove decl.
61024
61025         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61026
61027         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61028         (free): Remove decl.
61029
61030         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61031         * lib/xgetcwd.c: Likewise.
61032
61033         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61034         (free): Remove decl.
61035
61036         * lib/strchrnul.c (strchrnul): Define with a prototype.
61037         Fix bug: c_in was not converted to char before searching.
61038
61039         The following changes are not K&R related:
61040
61041         * lib/group-member.h: Include <sys/types.h>, so that this file is
61042         self-contained.
61043         * lib/makepath.h: Likewise.
61044
61045         * lib/getusershell.c (readname, default_index, line_size, readname):
61046         Use size_t, not int, for sizes.
61047         (readname): If the size overflows, report an error instead of
61048         looping forever.
61049
61050 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61051
61052         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61053         libc.
61054
61055 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61056
61057         * README: New section: portability guidelines.
61058
61059 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61060
61061         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61062         C89 spec.
61063
61064 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61065
61066         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61067
61068 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61069
61070         Assume C89 or better; remove K&R cruft.
61071         A few of these changes were first proposed by Derek Robert Price
61072         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61073
61074         * lib/addext.c: Include <string.h> unconditionally.
61075         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61076         Don't declare getenv or malloc.
61077
61078         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61079         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61080         (NULL): Remove.
61081         (find_stack_direction, alloca): Use prototypes.
61082
61083         * lib/atexit.c (atexit): Define using a prototype.
61084
61085         * lib/basename.c, dirname.c, stripslash.c:
61086         Include <string.h> unconditionally.
61087
61088         * lib/bcopy.c: Include <stddef.h>.
61089         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61090
61091         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61092
61093         * lib/error.h (error, error_at_line, error_print_progname)
61094         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61095         * lib/error.c: Include error.h first, to check interface.
61096         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61097         (VA_START): Remove; all uses changeed to va_start.
61098         (exit, strerror): Remove decls.
61099         (error_print_progname): Prototype uncondionally.
61100         Don't include <errno.h>; no longer needed.
61101         (private_strerror): Remove.
61102         (error_tail): Always define.
61103         (error, error_at_line): Assume C89 or better; always use prototypes.
61104         * lib/fatal.c: Include "fatal.h" first, to test interface.
61105         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61106         (VA_START): Remove; all uses changed to va_start.
61107         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61108         this case.
61109         (exit): Remove decl.
61110         (fatal): Prototype unconditionally.  Assume va_start works.
61111         Abort at end, to pacify gcc.
61112
61113         * lib/euidaccess.c (main): Define with a prototype.
61114
61115         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61116
61117         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61118
61119         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61120         prototypes.
61121         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61122         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61123         (getenv): Remove decl.
61124         (fnmatch): Define using a prototype.
61125         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61126         (FCT): Define using a prototype.
61127
61128         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61129
61130         * lib/gethostname.c: Include <stddef.h>.
61131         (gethostname): Define with prototype.  Length is size_t, not int.
61132
61133 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61134
61135         Assume C89 or better; remove K&R cruft.
61136         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61137         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61138         string.h, getenv, malloc.
61139         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61140         headers.
61141         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61142         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61143         do not check for strerror.
61144         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61145         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61146         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61147         do not check for doprnt or vprintf.
61148         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61149         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61150
61151 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61152
61153         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61154         getversion.c should have been removed then, but was accidentally
61155         preserved.
61156
61157         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61158         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61159
61160 2003-09-08  Karl Berry  <karl@gnu.org>
61161
61162         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61163                 config, forget about prep.
61164
61165         * config/depcomp, missing: update from automake.
61166
61167 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61168
61169         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61170         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61171
61172 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61173
61174         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61175         copy_tm_result.  Bug reported by Simon Josefsson in
61176         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61177
61178 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61179
61180         * m4/time_r.m4: New file.
61181         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61182         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61183         is. Check for timegm declaration.
61184         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61185         Do not check for gmtime_r.
61186         Replace mktime if __mktime_internal does not exist and if mktime
61187         hasn't been replaced already.
61188
61189 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61190
61191         * lib/time_r.c, lib/time_r.h: New files.
61192
61193         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61194         __localtime_r.
61195         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61196         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61197
61198         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61199         __gmtime_r.
61200         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61201         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61202         Include <time_r.h>.
61203
61204         * lib/timegm.c: Switch to glibc implementation, with the following
61205         changes:
61206         [defined HAVE_CONFIG_H]: Include <config.h>.
61207         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61208         (__mktime_internal) [!defined _LIBC]: New decl.
61209         (__gmtime_r) [!defined _LIBC]: New macro and function.
61210         (timegm): Use a prototype, since gnulib assumes C89.
61211         Do not bother declaring tmp to be const, as it's not really usefu.
61212         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61213         (timegm): Declare only if HAVE_DECL_TIMEGM.
61214
61215 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61216
61217         * MODULES.html.sh (func_all_modules): Add time_r.
61218         * modules/time_r: New file.
61219         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61220         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61221
61222 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61223
61224         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61225         Bug reported by Lute Kamstra in
61226         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61227
61228         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61229         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61230         course with correspondingly smaller numbers for tomorrow and
61231         yesterday.  From Tadayoshi Funaba.  Originally installed into
61232         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61233         coreutils merge?).
61234
61235 2003-08-31  Simon Josefsson  <jas@extundo.com>
61236
61237         * modules/timegm: New file.
61238         * MODULES.html.sh (func_all_modules): Add timegm.
61239
61240 2003-08-31  Simon Josefsson  <jas@extundo.com>
61241
61242         * m4/timegm.m4: New file.
61243
61244 2003-08-31  Simon Josefsson  <jas@extundo.com>
61245
61246         * lib/timegm.h: New file.
61247         * lib/timegm.c: New file.  Based on
61248         wget-1.8.2/src/http.c:mktime_from_utc.
61249
61250 2003-08-31  Karl Berry  <karl@gnu.org>
61251
61252         * lib/argp.h: update from libc.
61253
61254 2003-08-28  Bruno Haible  <bruno@clisp.org>
61255
61256         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61257         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61258         followed by '#define fnmatch fnmatch_posix' gives an error.
61259
61260 2003-08-28  Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61263         warning on QNX, which defines O_BINARY to 000000.
61264
61265 2003-08-27  Jim Meyering  <jim@meyering.net>
61266
61267         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61268         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61269         would fail after 32.  Reported by Danny Levinson.  Details here:
61270         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61271
61272 2003-08-24  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61275         MSVC7 <stdio.h> is included later.
61276
61277 2003-08-22  Simon Josefsson  <jas@extundo.com>
61278
61279         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61280
61281 2003-08-20  Karl Berry  <karl@gnu.org>
61282
61283         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61284
61285 2003-08-20  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/progname: New file.
61288         * MODULES.html.sh (func_all_modules): Add progname.
61289
61290 2003-08-20  Bruno Haible  <bruno@clisp.org>
61291
61292         * lib/progname.h: New file, from GNU gettext.
61293         * lib/progname.c: New file, from GNU gettext.
61294         * lib/progreloc.c: New file, from GNU gettext.
61295
61296 2003-08-19  Jim Meyering  <jim@meyering.net>
61297
61298         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61299         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61300
61301 2003-08-19  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61304         more.
61305
61306 2003-08-19  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/xstrdup.c: Assume <string.h> exists.
61309
61310 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61311
61312         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61313         in makefile rules.
61314
61315 2003-08-18  Jim Meyering  <jim@meyering.net>
61316
61317         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61318         * m4/lib-ld.m4: Likewise.
61319
61320 2003-08-18  Jim Meyering  <jim@meyering.net>
61321
61322         * lib/setenv.h: Indent nested cpp directive.
61323         * lib/vasnprintf.c: Remove trailing blanks.
61324
61325 2003-08-17  Simon Josefsson  <jas@extundo.com>
61326
61327         * modules/xstrndup: New file.
61328         * MODULES.html.sh (func_all_modules): Add xstrndup.
61329
61330 2003-08-17  Simon Josefsson  <jas@extundo.com>
61331
61332         * modules/argp: Fix autoconf macro name. Add more dependencies.
61333
61334 2003-08-17  Simon Josefsson  <jas@extundo.com>
61335
61336         * m4/xstrndup.m4: New file.
61337
61338 2003-08-17  Simon Josefsson  <jas@extundo.com>
61339
61340         * m4/argp.m4: New file.
61341
61342 2003-08-17  Simon Josefsson  <jas@extundo.com>
61343             Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/xstrndup.h: New file.
61346         * lib/xstrndup.c: New file.
61347
61348 2003-08-17  Bruno Haible  <bruno@clisp.org>
61349
61350         * modules/strndup (Files, Include): Add lib/strndup.h.
61351
61352 2003-08-17  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/euidaccess (Files): Add lib/euidaccess.h.
61355
61356 2003-08-17  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/strndup.h: New file.
61359
61360 2003-08-17  Bruno Haible  <bruno@clisp.org>
61361
61362         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61363         like AC_GNU_SOURCE.
61364         * modules/extensions (configure.ac): Comment out the invocation of
61365         gl_USE_SYSTEM_EXTENSIONS.
61366
61367 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61368
61369         Merges from coreutils, etc.
61370         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61371         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61372         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61373         fixing a typo.
61374         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61375         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61376
61377 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61378
61379         Document merge from coreutils.
61380         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61381         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61382         * modules/utime: Add m4/utimes-null.m4.
61383
61384 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61385
61386         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61387         space, undoing this 2003-08-12 change:
61388         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61389
61390 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61391
61392         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61393         strtoul.c from libc, undoing this 2003-08-12 change:
61394         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61395
61396 2003-08-16  Jim Meyering  <jim@meyering.net>
61397
61398         Merges from coreutils.
61399         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61400         prefix.  Adjust cache variables similarly.  Create 500 rather than
61401         just 300 files, to exercise bug on Darwin6.5, too.
61402         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61403         $missing_dir.
61404         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61405         AM_SYS_POSIX_TERMIOS.
61406         Reported by mkc@mathdogs.com.
61407         Also change use of $am_cv_sys_posix_termios
61408         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61409         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61410         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61411         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61412         in /proc/mounts until it finds one with matching device number.  This
61413         is unnecessary when the FILE argument *is* a mount point.  No stat call
61414         is necessary in that case.  So, disable the statvfs-testing code on
61415         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61416         as RedHat bug# 84846.
61417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61418         to 1MB, so as not to render systems with no stack size limit (e.g.,
61419         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61420         Include <unistd.h>.  On some systems,
61421         it is required for the definition of _SC_PAGESIZE.
61422
61423 2003-08-16  Jim Meyering  <jim@meyering.net>
61424
61425         Merge from coreutils.
61426         * lib/xstrtoimax.c: #else #if -> #elif.
61427         * lib/xstrtoumax.c: Likewise.
61428
61429 2003-08-16  Jim Meyering  <jim@meyering.net>
61430
61431         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61432         * m4/utimes.m4: Removed.
61433         * m4/utimes-null.m4: Renamed from utimes.m4.
61434
61435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61436         to 1MB, so as not to render systems with no stack size limit (e.g.,
61437         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61438         Include <unistd.h>.  On some systems,
61439         it is required for the definition of _SC_PAGESIZE.
61440
61441 2003-08-16  Jim Meyering  <jim@meyering.net>
61442         and Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         Merges from coreutils, etc.
61445
61446         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61447         using the latest version from cvs.  This avoids problems with #line
61448         directives using a vendor (Sun) compiler.
61449         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61450         Don't set GETGROUPS_LIB here; now it's
61451         done via getgroups.m4's wrapper function.
61452         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61453         rather than just in sh-util/configure.in, so that the
61454         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61455         same.
61456         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61457         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61458         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61459         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61460         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61461         Remove code that is now done by the newly-required macros.
61462         Append $(EXEEXT) to DF_PROG.
61463         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61464         Do not invoke or require the following here,
61465         since prereq.m4 or some gnulib .m4 now does this for us:
61466         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61467         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61468         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61469         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61470         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61471         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61472         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61473         AC_FUNC_OBSTACK.
61474         Do not replace the following functions, as this is now the job
61475         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61476         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61477         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61478         atexit getpass, strdup, getpagesize.
61479         Replace 'raise'.
61480         Do not check for the following functions, as this is now the job
61481         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61482         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61483         setregid.
61484         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61485         Check for sys/sysctl.h.
61486         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61487         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61488         of checking for ssize_t ourselves.
61489
61490         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61491         Require every macro that gnulib/modules/* suggests for us.
61492         (jm_PREREQ_ADDEXT): New macro.
61493         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61494         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61495
61496         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61497         (gl_PHYSMEM): Use it.
61498         Also check for `table' function.
61499         Check for new headers and functions.
61500         Add check for sys/sysmp.h.
61501         With suggestions from Kaveh Ghazi.
61502         Ignore headers that are present but cannot be compiled.  This
61503         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61504         C 5.4.
61505
61506 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61507
61508         Document merge from coreutils.
61509         * modules/userspec: Depend on posixver.
61510         * modules/strftime: Depend on tzset.
61511
61512 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61513
61514         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61515         rather than tab, after '#' in shell-script copyright notices.
61516         Suggested by Bruno Haible.
61517
61518 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61519
61520         * config/srclist-update: Use three spaces, rather than tab, after '#'
61521         in shell-script copyright notices.  Suggested by Bruno Haible.
61522         Remove unnecessary parenthesization in regular expression.
61523
61524 2003-08-15  Jim Meyering  <jim@meyering.net>
61525
61526         Merge from coreutils.
61527         * lib/xgethostname.c: Include <stdlib.h>.
61528         (xghostname): Don't exit for anything other than memory-related
61529         failure; just return NULL.
61530         * lib/userspec.c: Include "posixver.h".
61531         (parse_user_spec): Accept `.' as a separator only
61532         in pre-POSIX-200112 mode.
61533         * lib/strtoimax.c: Use #elif rather than #else #if.
61534         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61535         Remove function, now that we can rely on a working tzset function.
61536         [!_LIBC]: Ensure that the required autoconf test has been run.
61537         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61538         Use underlying_strftime for %r.
61539         * lib/sha.c: Merge in some clean-up and optimization changes from
61540         glibc.
61541         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61542         Ensure that it is a multiple of 64.
61543         Rearrange loop exit tests so as to avoid performing an
61544         additional fread after encountering an error or EOF.
61545         * lib/realloc.c: Update copyright date.
61546
61547 2003-08-15  Jim Meyering  <jim@meyering.net>
61548         and Paul Eggert  <eggert@twinsun.com>
61549
61550         Merge from coreutils.
61551         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61552         member but strut utmpx does not.  Needed for AIX 4.3.3.
61553         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61554
61555 2003-08-15  Jim Meyering  <jim@meyering.net>
61556         and Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         Merges from coreutils, etc.
61559         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61560         Require gl_FUNC_TZSET_CLOBBER.
61561         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61562         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61563         members.
61564
61565 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61566
61567         Help the merge from coreutils.
61568         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61569         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61570         * m4/tzset.m4: Use it too.
61571
61572 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61573
61574         * modules/tzset: New file.
61575
61576 2003-08-14  Jim Meyering  <jim@meyering.net>
61577
61578         Merges from coreutils.
61579         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61580         variable names, rather than @FNMATCH_H@.
61581         * modules/alloca: Likewise for $(ALLOCA_H).
61582
61583         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61584         the three copies of the literal target, `fnmatch.h'.
61585         * modules/alloca (alloca.h): Likewise.
61586
61587 2003-08-14  Jim Meyering  <jim@meyering.net>
61588
61589         Merge from coreutils.
61590         * m4/tzset.m4: New file.
61591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61592         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61593         otherwise, AIX 5.1 systems would end up using the latter.
61594         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61595         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61596         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61597         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61598
61599 2003-08-14  Jim Meyering  <jim@meyering.net>
61600
61601         Merge from coreutils.
61602         * lib/obstack.h: Whitespace changes.
61603         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61604         and xcalloc return values.
61605         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61606         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61607         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61608         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61609         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61610         error from mntctl.
61611         Use mntctl's return value to drive the entry-processing loop, since
61612         we can't rely on the value of the vmt_length member in the last
61613         entry.  On some systems doing so could result in exhausting
61614         virtual memory.  Based in part on a patch from Mike Jetzer.
61615
61616 2003-08-14  Jim Meyering  <jim@meyering.net>
61617         and Paul Eggert  <eggert@twinsun.com>
61618
61619         Merges from coreutils, plus other fixes.
61620         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61621         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61622         for credits and details.  Thanks to Kaveh Ghazi for helping
61623         to keep these files in sync.
61624         (ARRAY_SIZE): Define it.
61625         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61626         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61627         (memcasecmp): Don't assume size_t fits in unsigned int.
61628         Remove casts and duplicate code.
61629         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61630         (memcpy): Remove definition.
61631         Merge in some clean-up and optimization changes from glibc.
61632         [BLOCKSIZE]: Move definition to top of file.
61633         Ensure that it is a multiple of 64.
61634         Rearrange loop exit tests so as to avoid performing an
61635         additional fread after encountering an error or EOF.
61636         * lib/md5.h (md5_uintptr): Define.
61637         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61638         return to the initial working directory.  Preserve errno
61639         for caller.
61640         * lib/idcache.c: Include "xalloc.h".
61641         (xmalloc, xrealloc): Remove decls.
61642         (getuser): Remove casts no longer required in C89.
61643         * lib/human.c: Include stdio.h, for sprintf.
61644         * lib/group-member.c: Include "xalloc.h".
61645         (xmalloc, xrealloc): Remove decls.
61646         (get_group_info): Remove casts no longer required in C89.
61647         * lib/getusershell.c (readname): Remove casts no longer required in
61648         C89.
61649         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61650         * lib/getline.c: Whitespace fix, from coreutils.
61651
61652 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61653
61654         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61655         Check for isascii.
61656
61657         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61658         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61659         Undo previous (whitespace-only) change.
61660
61661 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61662
61663         * lib/exclude.c: Include <ctype.h>
61664         (IN_CTYPE_DOMAIN): New macro.
61665         (is_space): New fn.
61666         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61667         and empty lines.
61668
61669         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61670         Undo previous (whitespace-only) change.
61671
61672 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61673
61674         * config/srclist-update: Change update back to the old behavior,
61675         leaving whitespace alone.  Use one 'sed' command rather than a
61676         pipeline.
61677         (fixlicense): Now a variable, not a function.
61678         (remove_trailing_blanks): Remove.
61679         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61680         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61681         Undo previous (whitespace-only) change.
61682
61683 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61684
61685         Merge from coreutils.
61686         * modules/euidaccess: Add lib_SOURCES, include for new
61687         file euidaccess.h
61688
61689 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61690
61691         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61692         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61693         Normalize leading white space and remove trailing white space.
61694
61695         Merge from coreutils
61696         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61697
61698         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61699         0.12.1.  These files are now being upgraded automatically by
61700         ../config/srclist-update.
61701
61702 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61703
61704         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61705         Normalize leading white space and remove trailing white space.
61706         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61707         notice, as per ../config/srclist-update.
61708
61709         Merge from coreutils.
61710         * lib/euidaccess.h: New file.
61711         * lib/euidaccess.c: Include it.
61712         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61713         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61714         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61715
61716 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61717
61718         * config/srclist-update: Add copyright notice.
61719         (remove_id_lines, remove_trailing_blanks): New constants.
61720         (fixfile): Use them to normalize spacing a bit in copied files.
61721         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61722         Normalize leading white space and remove trailing white space.
61723
61724         * config/texinfo.tex: Sync with texinfo.
61725
61726         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61727         strtoul.c from libc, to merge coreutils whitespace changes.
61728
61729         * config/srclist.txt: Get the following m4 files from gettext:
61730         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61731         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61732         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61733         wint_t.m4.
61734
61735 2003-08-12  Karl Berry  <karl@gnu.org>
61736
61737         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61738         been made.
61739
61740 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61741
61742         * modules/gnu-source, m4/gnu-source.m4:
61743         Remove; we're assuming Autoconf 2.54 or later now.
61744         Suggested by Bruno Haible.
61745         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61746
61747 2003-08-11  Bruno Haible  <bruno@clisp.org>
61748
61749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61750
61751 2003-08-11  Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61754         (vasnprintf): Use it instead of wcslen.
61755
61756 2003-08-11  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61759         value to ensure that _Bool promotes to int. Use #define for _Bool when
61760         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61761
61762 2003-08-10  Karl Berry  <karl@gnu.org>
61763
61764         * lib/regex.h: update from libc (whitespace fix).
61765
61766 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61767
61768         Merge some files from coreutils.  These changes were
61769         originally made by Jim Meyering.
61770         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61771         many older Unixes require this.
61772         * lib/alloca.c (alloca): Remove cast to argument of free;
61773         no longer needed in C89.
61774         * lib/alloca_.h, regex.h: Fix white space to match
61775         what GNU indent does.
61776
61777 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61778
61779         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61780         apparently Emacs's Unicode mode got confused before my 2003-08-05
61781         checkin.
61782
61783 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61784
61785         * m4/extensions.m4: New file.
61786         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61787         Require gl_USE_SYSTEM_EXTENSIONS.
61788         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61789         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61790
61791 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61792
61793         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61794         * modules/extensions, modules/gnu-source: New files.
61795         * modules/timespec, modules/unlocked-io: Depend on extensions.
61796
61797 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61798
61799         * modules/restrict: New file.
61800         * MODULES.html.sh (func_all_modules): Add restrict.
61801         * modules/regex: Depend on restrict.
61802
61803 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61804
61805         * m4/restrict.m4: New file.
61806         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61807
61808 2003-08-07  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61811         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61812
61813 2003-08-07  Bruno Haible  <bruno@clisp.org>
61814
61815         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61816         makes the module 'getndelim2' compatible with the module 'getline'.
61817
61818 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61819
61820         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61821         byte with "\201" to avoid glitches when editing that source file
61822         with multi-gnome-terminal.
61823
61824 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61825
61826         * lib/bumpalloc.h: Remove.
61827
61828 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61829
61830         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61831         * modules/bumpalloc: Remove.
61832
61833 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61834
61835         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61836         GNU coding style.
61837
61838         Merge from coreutils.
61839         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61840         1. From glibc.
61841         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61842         from Karl Berry, implemented by Jim Meyering.
61843         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61844         from Dmitry V. Levin.
61845         Remove anachronistic cast of xrealloc.
61846         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61847         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61848         type. Otherwise, it wouldn't compile with at least /bin/cc on
61849         ymp-cray-unicos9.0.2.X.
61850         Combine two mostly-identical uses of alloca into one.
61851         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61852
61853 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61854
61855         [From Emacs.]
61856
61857         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61858         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61859         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61860         obsolete NLIST_NAME_UNION.
61861         [__GNU__]: Undef BSD and FSCALE.
61862         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61863
61864 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61865
61866         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61867         an enum type, so that it's guaranteed to promote to int.  See:
61868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61869
61870 2003-08-03  Karl Berry  <karl@gnu.org>
61871
61872         * config/depcomp: update from automake.
61873
61874 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61875
61876         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61877         (strerror): Don't assume that a printable int fits in 14 bytes.
61878
61879 2003-07-31  Bruno Haible  <bruno@clisp.org>
61880
61881         * modules/getpass-gnu: New file.
61882         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61883
61884 2003-07-31  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61887
61888 2003-07-24  Karl Berry  <karl@gnu.org>
61889
61890         * config/missing: update from automake.
61891
61892 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61893             Bruno Haible  <bruno@clisp.org>
61894
61895         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61896         * lib/getline.c (getline, getdelim): Likewise.
61897         Remove _GNU_SOURCE define; now it's defined in config.h through
61898         m4/getline.m4.
61899
61900 2003-07-23  Karl Berry  <karl@gnu.org>
61901
61902         * config/config.sub: update from prep.
61903
61904 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61905
61906         * modules/xalloc (Depends-on): Add exitfail.
61907         * modules/xmemcoll: Likewise.
61908
61909 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61910
61911         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61912         over-parenthesization in macros.
61913
61914         Sync with coreutils.
61915
61916         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61917         required by C99.
61918
61919         Use `exit_failure' for xalloc and xmemcoll instead of their own
61920         private exit-failure variables.
61921         * lib/xalloc.h (xalloc_exit_failure): Remove.
61922         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61923         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61924         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61925         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61926         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61927
61928 2003-07-20  Jim Meyering  <jim@meyering.net>
61929
61930         * modules/closeout (Depends-on): Add exitfail.
61931         Suggestion from Bruno Haible.
61932
61933 2003-07-19  Karl Berry  <karl@gnu.org>
61934
61935         * config/config.sub: update from prep.
61936
61937 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61938
61939         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61940         Remove.
61941         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61942         to test that it can stand by itself.  Include "exitfail.h".
61943         Clients should set exit_failure instead.
61944         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61945
61946 2003-07-18  Bruno Haible  <bruno@clisp.org>
61947
61948         * modules/getndelim2: New file.
61949         * modules/getline: Share files with module getndelim2.
61950         * modules/getnline: Depend on getndelim2 instead of sharing files with
61951         it. Add getnline.c to lib_SOURCES.
61952         * MODULES.html.sh (func_all_modules): Add getndelim2.
61953
61954 2003-07-18  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/getndelim2.m4: New file.
61957         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61958         invoke gl_PREREQ_GETNDELIM2.
61959         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61960         gl_PREREQ_GETNDELIM2.
61961         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61962         gl_GETNDELIM2.
61963
61964 2003-07-18  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/getndelim2.h: New file.
61967         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61968         getndelim2.h.
61969         (getndelim2): Make non-static. Change return type to ssize_t.
61970         * lib/getline.h: Change argument names.
61971         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61972         * lib/getnline.c: Include getndelim2.h.
61973
61974 2003-07-18  Andreas Schwab  <schwab@suse.de>
61975
61976         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61977
61978 2003-07-17  Karl Berry  <karl@gnu.org>
61979
61980         * config/config.sub: update from prep.
61981
61982 2003-07-17  Bruno Haible  <bruno@clisp.org>
61983
61984         * modules/getnline: New file.
61985         * modules/getline: Add lib/getndelim2.c to source file list.
61986         * MODULES.html.sh (func_all_modules): Add getnline.
61987
61988 2003-07-17  Bruno Haible  <bruno@clisp.org>
61989
61990         * m4/getnline.m4: New file.
61991
61992 2003-07-17  Bruno Haible  <bruno@clisp.org>
61993
61994         * m4/Makefile.am.in: Remove file.
61995         * m4/Makefile.am: Remove file.
61996         * m4/Makefile.in: Remove file.
61997
61998 2003-07-17  Bruno Haible  <bruno@clisp.org>
61999
62000         * lib/getnline.h: New file.
62001         * lib/getnline.c: New file.
62002         * lib/getndelim2.c: New file, extracted from getline.c.
62003         (getndelim2): Renamed from getdelim2, with added nmax argument.
62004         * lib/getline.c: Include getndelim2.c.
62005         (getdelim2): Moved out to getndelim2.c.
62006         (getline, getdelim): Update.
62007
62008 2003-07-17  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/Makefile.am: Remove file.
62011         * lib/Makefile.in: Remove file.
62012
62013 2003-07-17  Bruno Haible  <bruno@clisp.org>
62014
62015         * configure.in: Remove file.
62016         * Makefile.in: Remove file.
62017
62018 2003-07-17  Bruno Haible  <bruno@clisp.org>
62019
62020         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62021
62022 2003-07-16  Karl Berry  <karl@gnu.org>
62023
62024         * config/srclist-update: was running fixlicense twice, which caused
62025                 texinfo.tex to be nullified for some reason.  Simplify,
62026                 $gplsrc is no longer needed as far as I can see?
62027
62028 2003-07-16  Jim Meyering  <jim@meyering.net>
62029
62030         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62031
62032 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62033
62034         * config/srclist.txt: Get the following files from gettext-runtime/intl
62035         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62036         ref-del.sin.  From Bruno Haible.
62037         * config/srclist-update (fixfile): Change grep pattern again, since the
62038         previous fix didn't work (there was another trailing $).  Use
62039         '[$]' to escape the $s.
62040
62041 2003-07-15  Karl Berry  <karl@gnu.org>
62042
62043         * lib/vasnprintf.c: update from gettext.
62044
62045 2003-07-15  Karl Berry  <karl@gnu.org>
62046
62047         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62048         gets expanded when surrounded by '$'.
62049
62050 2003-07-15  Jim Meyering  <jim@meyering.net>
62051
62052         * modules/save-cwd: Don't depend on error.  From Derek Price.
62053
62054 2003-07-15  Jim Meyering  <jim@meyering.net>
62055
62056         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62057
62058 2003-07-14  Simon Josefsson  <jas@extundo.com>
62059
62060         * modules/mempcpy: New file.
62061         * MODULES.html.sh (func_all_modules): Add mempcpy.
62062
62063 2003-07-14  Simon Josefsson  <jas@extundo.com>
62064
62065         * m4/mempcpy.m4: New file.
62066
62067 2003-07-14  Simon Josefsson  <jas@extundo.com>
62068
62069         * lib/mempcpy.h: New file.
62070         * lib/mempcpy.c: New file.
62071
62072 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62073
62074         * modules/getdate, modules/posixtm: Depend on mktime.
62075
62076 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62077
62078         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62079         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62080         unicodeio.c, unicodeio.h, unlocked-io.h:
62081         Switch from LGPL to GPL.
62082
62083 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62084
62085         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62086         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62087         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62088         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62089         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62090         updated automatically by ../config/srclist-update.  This changes
62091         their license from LPGL to GPL.
62092
62093 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62094
62095         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62096         assumed to refer to the root of the most recent stable gettext version.
62097         * config/srclistvars.sh: Add defaults for eggert.
62098         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62099         Match "This program" as well as "The program".  This is needed
62100         for gettext.
62101
62102 2003-07-14  Jim Meyering  <jim@meyering.net>
62103
62104         Don't emit diagnostics.  Let callers do that.
62105         * lib/save-cwd.c: Don't include "error.h".
62106         (save_cwd): Don't call error.  Ensure that errno is valid
62107         when returning nonzero.
62108
62109         * lib/save-cwd.h (restore_cwd): Update prototype.
62110         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62111         Simplify.  Don't call error upon failure.  Let callers do that.
62112         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62113         when auditing is enabled.  But don't bother updating the #if.
62114
62115 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62116
62117         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62118         it breaks C++ compilation.
62119         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62120
62121 2003-07-10  Simon Josefsson  <jas@extundo.com>
62122
62123         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62124
62125 2003-07-10  Jim Meyering  <jim@meyering.net>
62126
62127         * m4/clock_time.m4: Remove trailing blank.
62128         * m4/intmax_t.m4: Likewise.
62129
62130 2003-07-10  Jim Meyering  <jim@meyering.net>
62131
62132         * lib/vasnprintf.c: Remove trailing blanks.
62133         Make cpp indentation consistent.
62134
62135 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62136
62137         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62138         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62139         Switch from LGPL to GPL.
62140
62141 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62142
62143         * config/srclist.txt: Sort sublists.  Add
62144         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62145         that differ from gnulib for one reason or another; we'd like this list
62146         to be smaller but for now let's document what we have.
62147
62148 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62149
62150         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62151         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62152         and sweeter "eval x=$x".
62153         * config/srclist.txt: Get lib/argp* from glibc.
62154
62155 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62156
62157         * lib/mktime.c: Fix some boundary cases and remove need for floating
62158         point.
62159
62160         Issue a compile-time diagnostic if time_t is floating point, or if
62161         two's complement arithmetic is not in effect, or if arithmetic
62162         right shift does not propagate the sign.  These assumptions were
62163         all in the original code but they weren't checked.
62164
62165         (TIME_T_MIDPOINT, verify): New macros.
62166         (__isleap): Remove; it has integer overflow problems.
62167         (leapyear): New function, without those problems.
62168         (ydhms_tm_diff): Remove; splitting into two parts.
62169         (ydhms_diff): New function, containing the arithmetic part of
62170         the old ydhms_tm_diff function.  Issue a compile-time
62171         diagnostic if we are not using C99 integer division.
62172         Avoid casts when possible.
62173         (guess_time_tm): New function, containing the checking part of
62174         the old ydhms_tm_diff function.  Return the new value, rather than
62175         the difference between it and the old.  Accept a new argument T
62176         so that *T specifies the old value.  Check for overflow in the result.
62177
62178         (__mktime_internal): Use a time_t offset, not a long int offset.
62179         This undoes the 2003-06-04 change, which is no longer needed now
62180         that we have better overflow checking.
62181         (localtime_offset): Likewise.
62182
62183         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62184         and long are 64-bit but int is only 32-bit.
62185         (ydhms_diff): Use long int to store year1 and yday1.
62186         Issue a compile-time diagnostic if long int is not wide enough.
62187
62188         (__mktime_internal): Use long int to store adjusted year and yday.
62189         Use plain C rather than preprocessor commands, if that doesn't
62190         affect efficiency.
62191         Check for overflow (and try to repair) after each probe
62192         rather than checking only at the very end.  This avoids some bugs
62193         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62194         does not equal GMT offset at maximum time).
62195         Use integer to check for overflow rather than floating point; this
62196         is more portable to non-IEEE hosts, and is a tad faster.
62197         When we detect that we are oscillating between two values,
62198         don't check whether tm_isdst has the requested value, since
62199         we already know the answer.  When tm_isdst has the wrong value,
62200         use a different heuristic to find the right one, based on the
62201         extreme values actually observed in practice in tz2003a,
62202         rather than the (overly optimistic) "previous 3 calendar quarters".
62203
62204         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62205         "T const" to accommodate glibc style.
62206         (check_result): Use less-confusing report format.  "long" -> "long int.
62207         (main): Likewise.
62208         Don't loop if the iteration overflows time_t.
62209         Allow a negative step in the iteration.
62210
62211 2003-07-06  Karl Berry  <karl@gnu.org>
62212
62213         * config/depcomp: update from automake.
62214         * config/config.sub: update from prep.
62215
62216 2003-07-03  Karl Berry  <karl@gnu.org>
62217
62218         * config/config.guess: update from prep.
62219
62220 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62221
62222         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62223         xreadlink.c now includes it unconditionally.
62224
62225 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62226
62227         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62228         having it depend on HAVE_SYS_TYPES_H.
62229
62230 2003-07-01  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62233         <sys/types.h> should be sufficient.
62234         Reported by Paul Eggert.
62235
62236 2003-06-26  Karl Berry  <karl@gnu.org>
62237
62238         * config/depcomp: update from automake.
62239
62240 2003-06-26  Bruno Haible  <bruno@clisp.org>
62241
62242         * modules/human: Depend on module stdbool.
62243
62244 2003-06-25  Bruno Haible  <bruno@clisp.org>
62245
62246         * modules/readlink: New file.
62247         * modules/xreadlink: Depend on it.
62248         * MODULES.html.sh (func_all_modules): Add readlink.
62249
62250 2003-06-25  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/readlink.m4: New file.
62253
62254 2003-06-25  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/readlink.c: New file.
62257
62258 2003-06-22  Karl Berry  <karl@gnu.org>
62259
62260         * config/srclist.txt: update mkinstalldirs from automake.
62261         * config/mkinstalldirs: update.
62262
62263 2003-06-22  Bruno Haible  <bruno@clisp.org>
62264
62265         Portability to mingw32.
62266         * m4/ssize_t.m4: New file, from GNU gettext.
62267         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62268         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62269
62270 2003-06-22  Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/safe-read: Add m4/ssize_t.m4.
62273         * modules/xreadlink: Add m4/ssize_t.m4.
62274
62275 2003-06-20  Bruno Haible  <bruno@clisp.org>
62276
62277         Assume C89, so PARAMS isn't needed.
62278         * lib/unicodeio.h (PARAMS): Remove.
62279         * lib/unicodeio.c: Don't use PARAMS.
62280
62281 2003-06-18  Karl Berry  <karl@gnu.org>
62282
62283         * config/config.{guess,sub}: update from prep.
62284
62285 2003-06-18  Jim Meyering  <jim@meyering.net>
62286
62287         Merge changes from coreutils.
62288         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62289         Remove explicit declarations of xmalloc and realloc.
62290         Include xalloc.h.
62291         (read_utmp): Remove anachronistic cast of xmalloc.
62292
62293 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62294
62295         Assume C89, so PARAMS isn't needed.
62296         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62297         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62298         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62299         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62300         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62301         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62302         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62303         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62304         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62305         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62306         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62307         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62308         no longer needed. Anyway, config.h should always be included before any
62309         other file.
62310
62311 2003-06-11  Simon Josefsson  <jas@extundo.com>
62312
62313         * modules/sysexits: New file.
62314         * MODULES.html.sh (func_all_modules): Add sysexits.
62315
62316 2003-06-11  Simon Josefsson  <jas@extundo.com>
62317
62318         * lib/sysexit_.h: New file.
62319
62320 2003-06-11  Derek Price  <derek@ximbiot.com>
62321
62322         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62323         necessary.
62324
62325 2003-06-11  Bruno Haible  <bruno@clisp.org>
62326
62327         * m4/sysexits.m4: New file.
62328
62329 2003-06-10  Simon Josefsson  <jas@extundo.com>
62330
62331         * lib/argp.h: New file, from glibc.
62332         * lib/argp-ba.c: New file, from glibc.
62333         * lib/argp-eexst.c: New file, from glibc.
62334         * lib/argp-fmtstream.c: New file, from glibc.
62335         * lib/argp-fmtstream.h: New file, from glibc.
62336         * lib/argp-fs-xinl.c: New file, from glibc.
62337         * lib/argp-help.c: New file, from glibc.
62338         * lib/argp-namefrob.h: New file, from glibc.
62339         * lib/argp-parse.c: New file, from glibc.
62340         * lib/argp-pv.c: New file, from glibc.
62341         * lib/argp-pvh.c: New file, from glibc.
62342         * lib/argp-xinl.c: New file, from glibc.
62343
62344 2003-06-10  Simon Josefsson  <jas@extundo.com>
62345
62346         * modules/strchrnul: New file.
62347
62348 2003-06-10  Simon Josefsson  <jas@extundo.com>
62349
62350         * modules/argp: New file.
62351
62352 2003-06-10  Simon Josefsson  <jas@extundo.com>
62353
62354         * m4/strchrnul.m4: New file.
62355
62356 2003-06-10  Simon Josefsson  <jas@extundo.com>
62357
62358         * lib/strchrnul.h: New file.
62359         * lib/strchrnul.c: New file.
62360
62361 2003-06-10  Bruno Haible  <bruno@clisp.org>
62362
62363         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62364
62365 2003-06-07  Karl Berry  <karl@gnu.org>
62366
62367         * config/config.{guess,sub}: update from prep.
62368
62369 2003-06-07  Jim Meyering  <jim@meyering.net>
62370
62371         * modules/strtod: Use $(...) notation, not @...@ for
62372         AC_REPLACE'd variables.
62373         * modules/localcharset: Likewise.
62374
62375 2003-06-07  Jim Meyering  <jim@meyering.net>
62376
62377         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62378         in place of my name in the copyright comment.
62379         Remove definition and uses of __P.
62380
62381         From coreutils.
62382         * lib/stat.c: Don't declare xmalloc explicitly.
62383         Instead, include "xalloc.h".
62384         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62385         xrealloc, and xcalloc return values.
62386         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62387         Improve comment.
62388         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62389
62390 2003-06-07  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62393         avoid AC_CONFIG_LINKS.
62394         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62395         fnmatch.h, to avoid AC_CONFIG_LINKS.
62396         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62397
62398 2003-06-07  Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62401         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62402         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62403         directory.
62404         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62405         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62406         directory.
62407
62408 2003-06-06  Jim Meyering  <jim@meyering.net>
62409
62410         Merge from coreutils.
62411         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62412         Consolidate declarations and initializations of *_base* locals.
62413
62414         Merge from coreutils.
62415         This avoids a core dump on systems without GNU putenv,
62416         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62417         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62418         (unsetenv): New static function, from GNU libc.
62419         (rpl_putenv): Use it.
62420
62421         * lib/modechange.c: Remove trailing blanks.
62422
62423         Merge from coreutils.
62424         * lib/fsusage.c: Remove declaration of statfs.
62425         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62426
62427         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62428
62429 2003-06-06  Jim Meyering  <jim@meyering.net>
62430
62431         * lib/stdbool_.h: Renamed from stdbool.h.in.
62432
62433 2003-06-06  Jim Meyering  <jim@meyering.net>
62434             Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62437         Adjust Makefile.am snippet not to redirect directly to target.
62438         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62439
62440 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62441
62442         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62443         mismatch, look in future quarters as well as past.  This fixes a
62444         bug when processing fall-backwards gaps immediately after a long
62445         period of daylight-saving time.
62446
62447         * lib/mktime.c: Assume freestanding C89 or better.
62448         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62449         (__P): Remove; not used.
62450         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62451         (mktime, not_equal_tm, print_tm, check_result,
62452         main): Use prototypes.  Use const * where appropriate.
62453         (main): Fix typo in testing code that uncovered by above changes.
62454         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62455
62456 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62457
62458         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62459         locale.h, localeconv.  This merges changes from coreutils.
62460
62461         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62462         It can be removed after the next Autoconf is released.
62463         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62464         needed.
62465
62466 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62467
62468         * lib/mktime.c: Fix Debian bug 177940
62469         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62470         (localtime_offset): Now long int, not time_t, because we want it
62471         to be guaranteed to be signed.  All uses changed.
62472         (__mktime_internal): If overflow would occur when adding offset,
62473         don't add it.
62474
62475         Merge 'human' changes from coreutils.  Rewrite to support
62476         locale-specific notations like thousands separators.
62477         * lib/human.c: Simplify authorship notice.
62478         Include human.h immediately after config.h.
62479         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62480         <limits.h>: Do not include, since human.h does.
62481         (SIZE_MAX, UINTMAX_MAX): New macros.
62482         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62483         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62484         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62485         (power_letter): Renamed from suffixes.
62486         (generate_suffix_backwards): Remove.
62487         (adjust_value): Now takes int style (because of human.h changes)
62488         and long double value (for greater precision on some platforms).
62489         (group_number): New function.
62490         (human_readable): Use it.  Use integer options, not enum.
62491         Put the options before the sizes in the arg list.
62492         Support all the new options.
62493         The old human_readable function has been removed;
62494         use inttostr.h instead.
62495         (human_readable, default_block_size, humblock):
62496         Use uintmax_t, not int, for block sizes.
62497         (human_readable_inexact, block_size_types): Remove.
62498         (block_size_opts): New constant.
62499         (human_options): Renamed from human_block_size, with new signature
62500         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62501         * lib/human.h: Add copyright and authorship notice.
62502         Include <limits.h> and <stdbool.h> unconditionally.
62503         (PARAMS): Remove.  All uses removed.
62504         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62505         (enum human_inexact_style): Remove tag; now a nameless enum.
62506         (human_floor, human_ceiling, human_round_to_even): Now have
62507         values 2, 0, 1 rather than -1, 1, 0.
62508         (human_group_digits, human_suppress_point_zero, human_autoscale,
62509         human_base_1024, human_SI, human_B): New constants.
62510         (human_readable_inexact, human_block_size): Remove.
62511         (human_readable): Size args are now uintmax_t, not int.
62512         (human_options): New decl.
62513
62514         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62515         unnecessary now that we assume C89 or better.  This change
62516         imported from coreutils.
62517
62518         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62519         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62520         in the 2003-05-30 sync from glibc.
62521
62522         .h files should stand alone, but we shouldn't include <sys/types.h>
62523         if we can get away with just <stddef.h>.
62524
62525         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62526         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62527         rather than <sys/types.h>, as we merely need size_t.
62528         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62529         to get size_t.
62530         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62531         Include <stdio.h>, to get FILE.
62532         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62533         memcasecmp.h has included <stddef.h> and all we need is size_t.
62534         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62535         our interface, instead of including <sys/types.h>
62536
62537 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62538
62539         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62540         now, as glibc mktime is buggy on non-glibc systems.
62541
62542 2003-06-03  Karl Berry  <karl@gnu.org>
62543
62544         * config/config.sub: update from prep.
62545
62546 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62547
62548         [from coreutils]
62549         Fix some minor time-related bugs with POSIX time arguments.
62550         Some valid time stamps were being rejected (notably -1, and
62551         time stamps before 1900 on 64-bit hosts).  And some invalid
62552         time stamps were being accepted, e.g. September 31.
62553
62554         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62555         that we can return (time_t) -1 successfully.
62556         * lib/posixtm.c: Likewise.
62557         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62558         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62559         (t): Remove static var.
62560         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62561         of static var.  All uses changed.
62562         (year): Do not reject years before 1900; they can occur with
62563         64-bit time_t.
62564         (posix_time_parse): Do not check for out-of-range components;
62565         that is now the caller's responsibility, since our checks were
62566         only approximations.
62567         (posixtime): Use mktime to check for out-of-range components,
62568         since it knows them exactly.
62569         If mktime returns (time_t) -1, check whether an error actually occurred
62570         by invoking localtime on -1.
62571         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62572         posixtime failures better.
62573         Improve the test data (in comments only).
62574
62575 2003-06-02  Karl Berry  <karl@gnu.org>
62576
62577         * config/mkinstalldirs (version): new variable.
62578         (--version): new option.
62579         (usage): improve message.
62580
62581 2003-05-30  Karl Berry  <karl@gnu.org>
62582
62583         * lib/mktime.c: update from libc.
62584
62585 2003-05-30  Bruno Haible  <bruno@clisp.org>
62586
62587         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62588         * config/config.rpath: Upgrade to gettext-0.12.1.
62589
62590 2003-05-30  Bruno Haible  <bruno@clisp.org>
62591
62592         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62593         * m4/nls.m4: New file, from gettext-0.12.1.
62594         * m4/po.m4: New file, from gettext-0.12.1.
62595         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62596
62597 2003-05-30  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62600         * lib/localcharset.h: Likewise.
62601         * lib/localcharset.c: Likewise.
62602
62603 2003-05-29  Karl Berry  <karl@gnu.org>
62604
62605         * config/config.rpath: update from gettext.
62606
62607 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62608
62609         Assume the headers required for C89 freestanding compilers.
62610         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62611         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62612         * m4/human.m4 (gl_HUMAN): Likewise.
62613         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62614         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62615         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62616         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62618         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62619
62620 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62621
62622         Assume the headers required for C89 freestanding compilers.
62623         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62624         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62625         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62626         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62627         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62628         define, since <limits.h> is guaranteed to do that.
62629         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62630         * lib/exclude.c: Include <stdbool.h> unconditionally.
62631         * lib/tempname.c: Include <stddef.h> unconditionally.
62632         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62633         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62634         <stddef.h> does that.
62635         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62636         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62637         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62638         needed.
62639         * lib/xstrtol.c: Likewise.
62640         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62641         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62642
62643         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62644         warnings on some platforms.
62645
62646         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62647         arbitrarily.
62648
62649 2003-05-26  Jim Meyering  <jim@meyering.net>
62650
62651         Merge in a change from coreutils:
62652         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62653         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62654         that condition, rather than `-1' which is slightly misleading.
62655         Change the name of the cache variable to have the gl_ prefix.
62656         Prompted by a patch from Richard Dawe for DJGPP.
62657
62658 2003-05-24  Karl Berry  <karl@gnu.org>
62659
62660         * config/config.guess: update from prep.
62661
62662 2003-05-22  Karl Berry  <karl@gnu.org>
62663
62664         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62665
62666 2003-05-20  Karl Berry  <karl@gnu.org>
62667
62668         * config/config.guess: update from prep.
62669
62670 2003-05-18  Karl Berry  <karl@gnu.org>
62671
62672         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62673         might actually be set by the user.
62674
62675         * config/depcomp, install-sh, mdate-sh: update from automake.
62676
62677 2003-05-17  Bruno Haible  <bruno@clisp.org>
62678
62679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62680         invalid expansion for AC_EGREP_CPP.
62681         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62682         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62683         Suggested by Akim Demaille <akim@epita.fr> in
62684         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62685
62686 2003-05-12  Jim Meyering  <jim@meyering.net>
62687
62688         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62689         the space-padded-by-default conversion specifiers, %e, %k, %l.
62690
62691 2003-05-12  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62694         the string is longer than 4 KB.
62695
62696 2003-05-11  Karl Berry  <karl@gnu.org>
62697
62698         * config/config.{guess,sub}: update from prep.
62699
62700 2003-05-09  Bruno Haible  <bruno@clisp.org>
62701
62702         * modules/error: Add m4/strerror_r.m4 to file list.
62703
62704 2003-05-03  Bruno Haible  <bruno@clisp.org>
62705
62706         Upgrade to Unicode-4.0.
62707         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62708         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62709         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62710         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62711         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62712         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62713         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62714         Change width of U+E0100..U+E01EF from 1 to 0.
62715
62716 2003-04-25  Jim Meyering  <jim@meyering.net>
62717
62718         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62719         of type size_t, not int.
62720
62721 2003-04-25  Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/copy-file.c: Include <stddef.h>, for size_t.
62724
62725 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62726
62727         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62728         code which expansion is under static control.  Patch imported from
62729         Akim Demaille's patch to Bison; see
62730         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62731
62732 2003-04-14  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62735
62736 2003-04-11  Jim Meyering  <jim@meyering.net>
62737
62738         Merge changes from Coreutils.
62739
62740         2003-03-22  Jim Meyering  <jim@meyering.net>
62741
62742         * lib/strftime.c (widen): Cast alloca return value to proper type.
62743
62744         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62745
62746         From GNU libc.
62747         * lib/strftime.c (my_strftime): Handle very large width
62748         specifications for numeric values correctly.  Improve checks for
62749         overflow.
62750
62751         2003-01-19  Jim Meyering  <jim@meyering.net>
62752
62753         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62754         definitions.
62755         (nl_get_alt_digit) [! defined my_strftime]: Define.
62756         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62757         _nl_get_alt_digit and _nl_get_walt_digit.
62758
62759         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62760         libc. These changes have no effect outside of _LIBC.
62761
62762 2003-04-10  Bruno Haible  <bruno@clisp.org>
62763
62764         * modules/findprog: New file.
62765         * MODULES.html.sh (func_all_modules): Add it.
62766
62767 2003-04-10  Bruno Haible  <bruno@clisp.org>
62768
62769         * m4/findprog.m4: New file.
62770         * m4/eaccess.m4: New file.
62771
62772 2003-04-10  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/findprog.h: New file, from GNU gettext.
62775         * lib/findprog.c: New file, from GNU gettext.
62776
62777 2003-04-05  Jim Meyering  <jim@meyering.net>
62778
62779         Merge changes from Coreutils.
62780
62781         * lib/exclude.h (PARAMS): Remove definition and uses.
62782         * lib/exclude.c: Remove uses of `PARAMS'.
62783
62784         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62785         Add test-cases for DOS filenames. Declare program_name.
62786         (main): Set up program_name.  Patch by Rich Dawe.
62787
62788         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62789         error from mntctl.
62790         Use mntctl's return value to drive the entry-processing loop, since
62791         we can't rely on the value of the vmt_length member in the last
62792         entry.  On some systems doing so could result in exhausting
62793         virtual memory.  Based in part on a patch from Mike Jetzer.
62794
62795 2003-04-04  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/linebreak: New file.
62798         * MODULES.html.sh (func_all_modules): Add it.
62799
62800 2003-04-04  Bruno Haible  <bruno@clisp.org>
62801
62802         * m4/linebreak.m4: New file.
62803
62804 2003-04-04  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/linebreak.h: New file, from GNU gettext.
62807         * lib/linebreak.c: New file, from GNU gettext with slight
62808         modifications.
62809         * lib/lbrkprop.h: New file, from GNU gettext.
62810
62811 2003-04-03  Bruno Haible  <bruno@clisp.org>
62812
62813         * modules/utf8-ucs4: New file.
62814         * modules/utf16-ucs4: New file.
62815         * modules/ucs4-utf8: New file.
62816         * modules/ucs4-utf16: New file.
62817         * MODULES.html.sh (func_all_modules): Add them.
62818
62819 2003-04-03  Bruno Haible  <bruno@clisp.org>
62820
62821         * m4/utf-ucs4.m4: New file.
62822         * m4/ucs4-utf.m4: New file.
62823
62824 2003-04-03  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/utf8-ucs4.h: New file, from GNU gettext.
62827         * lib/utf16-ucs4.h: New file, from GNU gettext.
62828         * lib/ucs4-utf8.h: New file, from GNU gettext.
62829         * lib/ucs4-utf16.h: New file, from GNU gettext.
62830
62831 2003-04-02  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/binary-io: New file.
62834         * MODULES.html.sh (func_all_modules): Add it.
62835
62836 2003-04-02  Bruno Haible  <bruno@clisp.org>
62837
62838         * lib/binary-io.h: New file, from GNU gettext.
62839
62840 2003-04-01  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/pathname: New file.
62843         * MODULES.html.sh (func_all_modules): Add it.
62844
62845 2003-04-01  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/pathname.h: New file, from GNU gettext.
62848         * lib/concatpath.c: New file, from GNU gettext.
62849
62850 2003-03-30  Bruno Haible  <bruno@clisp.org>
62851
62852         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62853
62854 2003-03-30  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62857         function chown() doesn't exist.
62858
62859 2003-03-28  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/copy-file: New file.
62862         * MODULES.html.sh (func_all_modules): Add it.
62863
62864 2003-03-28  Bruno Haible  <bruno@clisp.org>
62865
62866         * m4/copy-file.m4: New file.
62867
62868 2003-03-28  Bruno Haible  <bruno@clisp.org>
62869
62870         * lib/copy-file.h: New file, from GNU gettext.
62871         * lib/copy-file.c: New file, from GNU gettext.
62872
62873 2003-03-18  Jim Meyering  <jim@meyering.net>
62874
62875         * lib/quote.c (quote_n): Fix typo in comment.
62876
62877 2003-03-18  Bruno Haible  <bruno@clisp.org>
62878
62879         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62880         checking.
62881         * m4/onceonly_2_57.m4: Likewise.
62882
62883 2003-03-17  Bruno Haible  <bruno@clisp.org>
62884
62885         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62886         (m4_quote): Remove macro.
62887         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62888
62889 2003-03-14  Jim Meyering  <jim@meyering.net>
62890
62891         Merge changes from Coreutils.
62892         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62893         to be const, in order to avoid warnings.
62894         (obstack_room): Likewise.
62895         (obstack_empty_p): Likewise.
62896
62897 2003-03-14  Bruno Haible  <bruno@clisp.org>
62898
62899         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62900         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62901
62902 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62903
62904         Merge changes from Bison.
62905         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62906         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62907         when compiling Bison 1.875's `bitset bset = obstack_alloc
62908         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62909         * lib/hash.c: Include <stdbool.h> unconditionally.
62910
62911 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62912
62913         * m4/onceonly.m4 (m4_quote): New macro.
62914         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62915         Quote AC_FOREACH variable-expansions properly.
62916
62917 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62918
62919         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62920
62921 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62922
62923         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62924         Reported by Bruce Becker; see:
62925         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62926
62927 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62928             Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62931         Reported by John Hughes, see
62932         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62933
62934 2003-02-20  Bruno Haible  <bruno@clisp.org>
62935
62936         * MODULES.html.sh (func_all_modules): Add poll.
62937
62938 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62939
62940         * modules/poll: New file.
62941
62942 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62943
62944         * lib/poll_.h: New file.
62945         * lib/poll.c: New file.
62946
62947 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62948
62949         * m4/poll.m4: New file.
62950
62951 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62952
62953         * modules/mathl: New file.
62954
62955 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62956
62957         * lib/mathl.h: New file.
62958         * lib/acosl.c: New file.
62959         * lib/asinl.c: New file.
62960         * lib/atanl.c: New file.
62961         * lib/ceill.c: New file.
62962         * lib/cosl.c: New file.
62963         * lib/expl.c: New file.
62964         * lib/floorl.c: New file.
62965         * lib/frexpl.c: New file.
62966         * lib/ldexpl.c: New file.
62967         * lib/logl.c: New file.
62968         * lib/sincosl.c: New file.
62969         * lib/sinl.c: New file.
62970         * lib/sqrtl.c: New file.
62971         * lib/tanl.c: New file.
62972         * lib/trigl.c: New file.
62973         * lib/trigl.h: New file.
62974
62975 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62976
62977         * m4/mathl.m4: New file.
62978
62979 2003-02-18  Bruno Haible  <bruno@clisp.org>
62980
62981         * MODULES.html.sh (func_all_modules): Add mathl.
62982
62983 2003-02-17  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/mkdtemp: New module.
62986         * MODULES.html.sh (func_all_modules): Add it.
62987
62988 2003-02-17  Bruno Haible  <bruno@clisp.org>
62989
62990         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62991
62992 2003-02-17  Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/mkdtemp.h: New file, from GNU gettext.
62995         * lib/mkdtemp.c: New file, from GNU gettext.
62996
62997 2003-02-02  Jim Meyering  <jim@meyering.net>
62998
62999         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63000         e.g. glibc-2.2.93.
63001
63002 2003-01-31  Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63005         'rpl_rename'.
63006         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63007         'rpl_strnlen'.
63008         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63009         'rpl_strtod'.
63010         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63011         'rpl_utime'.
63012
63013 2003-01-31  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/rename.c: #undef rename before defining rpl_rename.
63016         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63017
63018 2003-01-30  Bruno Haible  <bruno@clisp.org>
63019
63020         * modules/vasnprintf, modules/vasprintf: New modules.
63021         * MODULES.html.sh (func_all_modules): Add them.
63022
63023 2003-01-30  Bruno Haible  <bruno@clisp.org>
63024
63025         * m4/signed.m4: New file, from GNU gettext.
63026         * m4/longdouble.m4: New file, from GNU gettext.
63027         * m4/wchar_t.m4: New file, from GNU gettext.
63028         * m4/wint_t.m4: New file, from GNU gettext.
63029         * m4/vasnprintf.m4: New file.
63030         * m4/vasprintf.m4: New file.
63031
63032 2003-01-30  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/printf-args.h: New file, from GNU gettext.
63035         * lib/printf-args.c: New file, from GNU gettext.
63036         * lib/printf-parse.h: New file, from GNU gettext.
63037         * lib/printf-parse.c: New file, from GNU gettext.
63038         * lib/vasnprintf.h: New file, from GNU gettext.
63039         * lib/vasnprintf.c: New file, from GNU gettext.
63040         * lib/asnprintf.c: New file, from GNU gettext.
63041         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63042         * lib/vasprintf.c: New file, from GNU gettext.
63043         * lib/asprintf.c: New file, from GNU gettext.
63044
63045 2003-01-29  Bruno Haible  <bruno@clisp.org>
63046
63047         * modules/stpncpy: New module.
63048         * MODULES.html.sh (func_all_modules): Add it.
63049
63050 2003-01-29  Bruno Haible  <bruno@clisp.org>
63051
63052         * m4/stpncpy.m4: New file.
63053
63054 2003-01-29  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63057         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63058
63059 2003-01-28  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/c-ctype: New module.
63062         * MODULES.html.sh (func_all_modules): Add it.
63063
63064 2003-01-28  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63067         Paul Eggert.
63068         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63069         Paul Eggert.
63070
63071 2003-01-27  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/xsetenv: New module.
63074         * MODULES.html.sh (func_all_modules): Add it.
63075
63076 2003-01-27  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/xsetenv.h: New file, from GNU gettext.
63079         * lib/xsetenv.c: New file, from GNU gettext.
63080
63081 2003-01-23  Jim Meyering  <jim@meyering.net>
63082
63083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63084         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63085
63086 2003-01-23  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/minmax: New module.
63089         * MODULES.html.sh (func_all_modules): Add it.
63090
63091 2003-01-23  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63094         Eggert.
63095
63096 2003-01-22  Bruno Haible  <bruno@clisp.org>
63097
63098         * modules/exit: New module.
63099         * MODULES.html.sh (func_all_modules): Add it.
63100
63101 2003-01-22  Bruno Haible  <bruno@clisp.org>
63102
63103         * lib/exit.h: New file, from GNU gettext.
63104
63105 2003-01-19  Bruno Haible  <bruno@clisp.org>
63106
63107         * gnulib-tool: Recognize option --extract-maintainer.
63108         (func_get_maintainer): New function.
63109         * modules/*: Add Maintainer entry.
63110
63111 2003-01-16  Jim Meyering  <jim@meyering.net>
63112
63113         * m4/regex.m4: The `regex' struct is both input and output.
63114         Initialize it before each use.  Patch by Tim Waugh.
63115
63116 2003-01-16  Bruno Haible  <bruno@clisp.org>
63117
63118         * MODULES.html.sh: Add a table of contents. Add the module name as
63119         leftmost column. Add hyperlinks.
63120
63121 2003-01-15  Bruno Haible  <bruno@clisp.org>
63122
63123         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63124
63125 2003-01-15  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63128         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63129         suffix.
63130
63131 2003-01-15  Bruno Haible  <bruno@clisp.org>
63132
63133         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63134
63135 2003-01-15  Bruno Haible  <bruno@clisp.org>
63136
63137         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63138         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63139
63140 2003-01-14  Jim Meyering  <jim@meyering.net>
63141
63142         * lib/same.c (same_name): Tweak a comment.
63143
63144 2003-01-14  Bruno Haible  <bruno@clisp.org>
63145
63146         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63147         when a string comparison is sufficient.
63148
63149 2003-01-14  Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63152         'unsigned int'.
63153
63154 2003-01-14  Bruno Haible  <bruno@clisp.org>
63155
63156         * lib/hash-pjw.c: Add comment about low quality of this function.
63157
63158 2003-01-13  Bruno Haible  <bruno@clisp.org>
63159
63160         * modules/stpcpy: Distribute lib/stpcpy.h.
63161         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63162
63163 2003-01-13  Bruno Haible  <bruno@clisp.org>
63164
63165         * modules/*: Add a description.
63166         * modules/strpbrk: Fix Makefile.am snippet.
63167         * modules/strtoimax: Fix dependencies.
63168         * modules/strtoumax: Likewise.
63169
63170 2003-01-13  Bruno Haible  <bruno@clisp.org>
63171
63172         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63173         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63174         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63175
63176 2003-01-13  Bruno Haible  <bruno@clisp.org>
63177
63178         * gnulib-tool (func_create_testdir): Store config/* files in the main
63179         directory.
63180         * config.rpath: Move to ...
63181         * config/config.rpath: ... here.
63182         * modules/gettext: Contains config/config.rpath, not config.rpath.
63183         * modules/iconv: Likewise.
63184
63185 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63186
63187         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63188         to avoid collisions with libcurses and libreadline.
63189
63190         * m4/getstr.m4: Remove.
63191         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63192
63193 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63194
63195         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63196         to avoid collisions with libcurses and libreadline.
63197
63198         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63199         * lib/getstr.h, getstr.c: Remove.
63200         * lib/getline.c: Include "getline.h", to check interface.
63201         Move body of old getstr.c here: this defines MIN_CHUNK and
63202         declares getdelim2, which is renamed from getstr.
63203         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63204
63205         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63206         All uses changed.
63207         * lib/linebuffer.h: Likewise.
63208         (readline): Remove backward-compatibility macro.
63209
63210 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63211
63212         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63213         to avoid collisions with libcurses and libreadline.
63214         * getstr: Remove.
63215         * MODULES.html.sh: Remove getstr.
63216         * modules/getline: Depend on unlocked-io, not getstr.
63217
63218 2003-01-12  Jim Meyering  <jim@meyering.net>
63219
63220         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63221
63222 2003-01-10  Bruno Haible  <bruno@clisp.org>
63223
63224         * modules/alloca: Change Makefile.am requirements. Simplify Include
63225         requirements. Add lib/alloca_.h to file list.
63226
63227 2003-01-10  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63230
63231 2003-01-10  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/alloca_.h: New file.
63234         * lib/getdate.y: Unconditionally include alloca.h.
63235         * lib/makepath.c: Likewise.
63236         * lib/setenv.c: Likewise.
63237         * lib/userspec.c: Likewise.
63238
63239 2003-01-09  Karl Berry  <karl@gnu.org>
63240
63241         * MODULES.html.sh: include `dirname $0` in PATH, to find
63242         gnulib-tool.
63243
63244 2003-01-09  Bruno Haible  <bruno@clisp.org>
63245
63246         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63247         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63248
63249 2003-01-09  Bruno Haible  <bruno@clisp.org>
63250
63251         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63252
63253 2003-01-09  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/stdbool.h.in: New file.
63256
63257 2003-01-09  Bruno Haible  <bruno@clisp.org>
63258
63259         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63260         * MODULES.html.sh: Likewise.
63261
63262 2003-01-08  Jim Meyering  <jim@meyering.net>
63263
63264         * lib/full-write.c: Undefine and define-away `const' after inclusion
63265         of errno.h, not before.  Suggestion from Bruno Haible.
63266
63267 2003-01-08  Bruno Haible  <bruno@clisp.org>
63268
63269         * modules/full-read: Depend on full-write.
63270
63271 2003-01-08  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/safe-read.c: Include specification header first, to ensure its
63274         selfcontainedness.
63275         * lib/full-write.c: Likewise.
63276
63277 2003-01-07  Jim Meyering  <jim@meyering.net>
63278
63279         * lib/full-write.c: Rework so that it may serve to define full_read,
63280         too.
63281         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63282
63283 2003-01-07  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63286         <inttypes.h>.
63287         * lib/xstrtol.h: Likewise.
63288         * lib/xstrtoimax.c: Likewise.
63289         * lib/xstrtoumax.c: Likewise.
63290         * lib/human.h: Likewise.
63291
63292         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63293         on systems that have <inttypes.h> but not <stdint.h>.
63294
63295 2003-01-07  Bruno Haible  <bruno@clisp.org>
63296
63297         * MODULES.html.sh: Add copyright notice.
63298         (missed_files): Omit CVS directory entries.
63299         (func_module): Make it work with sed-3.02.
63300         * MODULES.txt: Remove file.
63301
63302 2003-01-06  Jim Meyering  <jim@meyering.net>
63303
63304         * lib/version-etc.c: Update year in translatable copyright string.
63305
63306 2003-01-03  Karl Berry  <karl@gnu.org>
63307
63308         * config/config.{guess,sub}: update from prep.
63309
63310 2003-01-02  Karl Berry  <karl@gnu.org>
63311
63312         * doc/COPYING.DOC: belatedly updated to 1.2.
63313
63314 2003-01-01  Karl Berry  <karl@gnu.org>
63315
63316         * gnulib-tool (func_verify_module): report module name $module in
63317         error message, not $1.
63318         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63319         be created, only if it doesn't exist.
63320         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63321
63322 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63323
63324         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63325
63326 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63327
63328         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63329         memcmp if strcoll doesn't work.
63330
63331 2002-12-31  Bruno Haible  <bruno@clisp.org>
63332
63333         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63334         nonempty.
63335
63336 2002-12-31  Bruno Haible  <bruno@clisp.org>
63337
63338         * lib/memcoll.c (STRCOLL): New macro.
63339         (memcoll): Use it.
63340
63341 2002-12-31  Bruno Haible  <bruno@clisp.org>
63342
63343         * lib/localcharset.h: New file.
63344         * lib/localcharset.c: Include it.
63345         * lib/unicodeio.c: Likewise.
63346
63347 2002-12-31  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63350         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63351
63352 2002-12-31  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/getline.h: Include <stddef.h>, for size_t.
63355
63356         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63357         * lib/unicodeio.c: Don't include <stddef.h>.
63358
63359 2002-12-31  Bruno Haible  <bruno@clisp.org>
63360
63361         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63362         HAVE_TM_ZONE.
63363
63364 2002-12-24  Karl Berry  <karl@gnu.org>
63365
63366         * config/config.guess: update from prep.
63367
63368 2002-12-24  Bruno Haible  <bruno@clisp.org>
63369
63370         General infrasructure.
63371         * m4/README: Rewritten.
63372         * m4/onceonly.m4: New file.
63373         * m4/onceonly_2_57.m4: New file.
63374
63375         Module atexit.
63376         * m4/atexit.m4: New file.
63377
63378         Module strtod.
63379         * m4/strtod.m4: New file.
63380
63381         Module strtol.
63382         * m4/strtol.m4: New file.
63383
63384         Module strtoul.
63385         * m4/strtoul.m4: New file.
63386
63387         Module memchr.
63388         * m4/memchr.m4: New file.
63389
63390         Module memcmp.
63391         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63392         (jm_FUNC_MEMCMP): Invoke it.
63393
63394         Module memcpy.
63395         * m4/memcpy.m4: New file.
63396
63397         Module memmove.
63398         * m4/memmove.m4: New file.
63399
63400         Module memset.
63401         * m4/memset.m4: New file.
63402
63403         Module strcspn.
63404         * m4/strcspn.m4: New file.
63405
63406         Module strpbrk.
63407         * m4/strpbrk.m4: New file.
63408
63409         Module strstr.
63410         * m4/strstr.m4: New file.
63411
63412         Module strerror.
63413         * m4/strerror.m4: New file.
63414
63415         Module mktime.
63416         * m4/mktime.m4: Renamed from jm-mktime.m4.
63417         (gl_PREREQ_MKTIME): New macro.
63418         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63419
63420         Module malloc.
63421         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63422         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63423         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63424
63425         Module realloc.
63426         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63427         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63428         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63429
63430         Module strftime.
63431         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63433         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63434         gl_TM_GMTOFF.
63435         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63436
63437         Module xalloc.
63438         * m4/xalloc.m4: New file.
63439
63440         Module alloca.
63441         * m4/alloca.m4: New file.
63442
63443         Module putenv.
63444         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63445         (jm_FUNC_PUTENV): Invoke it.
63446
63447         Module setenv.
63448         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63449         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63450         when invoked twice.
63451         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63452         gt_FUNC_SETENV.
63453
63454         Module memrchr.
63455         * m4/memrchr.m4: New file.
63456
63457         Module stpcpy.
63458         * m4/stpcpy.m4: New file.
63459
63460         Module strcase.
63461         * m4/strcase.m4: New file.
63462
63463         Module strdup.
63464         * m4/strdup.m4: New file.
63465
63466         Module strnlen.
63467         * m4/strnlen.m4: New file.
63468
63469         Module strndup.
63470         * m4/strndup.m4: New file.
63471
63472         Module xstrtod.
63473         * m4/xstrtod.m4: New file.
63474
63475         Module xstrtol.
63476         * m4/xstrtol.m4: New file.
63477
63478         Module getdate.
63479         * m4/getdate.m4: New file.
63480
63481         Module unlocked-io.
63482         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63483         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63484         * m4/jm-glibc-io.m4n: Remove file.
63485
63486         Module long-options.
63487         * m4/long-options.m4: New file.
63488
63489         Module md5.
63490         * m4/md5.m4: New file.
63491
63492         Module sha.
63493         * m4/sha.m4: New file.
63494
63495         Module getstr.
63496         * m4/getstr.m4: New file.
63497
63498         Module getline.
63499         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63500         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63501         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63502         simply getline. Infoke gl_PREREQ_GETLINE.
63503
63504         Module obstack.
63505         * m4/obstack.m4: New file.
63506
63507         Module hash.
63508         * m4/hash.m4: New file.
63509
63510         Module readtokens.
63511         * m4/readtokens.m4: New file.
63512
63513         Module strverscmp.
63514         * m4/strverscmp.m4: New file.
63515
63516         Module stdbool.
63517         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63518         OSF/1.
63519
63520         Module strtoll.
63521         * m4/strtoll.m4: New file.
63522
63523         Module strtoull.
63524         * m4/strtoull.m4: New file.
63525
63526         Module strtoimax.
63527         * m4/strtoimax.m4: New file.
63528
63529         Module strtoumax.
63530         * m4/strtoumax.m4: New file.
63531
63532         Module xstrtoimax.
63533         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63534         jm_AC_PREREQ_XSTRTOIMAX.
63535         Moved the strtol prerequisites to strtol.m4.
63536         Moved the strtoll prerequisites to strtoll.m4.
63537         Moved the strtoimax prerequisites to strtoimax.m4.
63538
63539         Module xstrtoumax.
63540         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63541         jm_AC_PREREQ_XSTRTOUMAX.
63542         Moved the strtoul prerequisites to strtoul.m4.
63543         Moved the strtoull prerequisites to strtoull.m4.
63544         Moved the strtoumax prerequisites to strtoumax.m4.
63545
63546         Module chown.
63547         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63548         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63549
63550         Module dup2.
63551         * m4/dup2.m4: New file.
63552
63553         Module ftruncate.
63554         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63555         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63556
63557         Module getgroups.
63558         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63559         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63560
63561         Module gettimeofday.
63562         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63563         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63564         gl_PREREQ_GETTIMEOFDAY.
63565
63566         Module mkdir.
63567         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63568         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63569
63570         Module mkstemp.
63571         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63572         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63573         jm_AC_TYPE_UINTMAX_T.
63574         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63575
63576         Module stat.
63577         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63578         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63579
63580         Module lstat.
63581         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63582         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63583
63584         Module timespec.
63585         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63586         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63587         * m4/st_mtim.m4: Indentation.
63588
63589         Module nanosleep.
63590         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63591         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63592         gl_PREREQ_NANOSLEEP.
63593
63594         Module regex.
63595         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63596         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63597         (gl_REGEX): New macro.
63598
63599         Module rename.
63600         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63601         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63602
63603         Module rmdir.
63604         * m4/rmdir.m4: New file.
63605
63606         Module utime.
63607         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63608         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63609         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63610
63611         Module dirname.
63612         * m4/dirname.m4: New file.
63613
63614         Module getopt.
63615         * m4/getopt.m4: New file.
63616
63617         Module unistd-safer.
63618         * m4/unistd-safer.m4: New file.
63619
63620         Module fnmatch.
63621         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63622         declaration.
63623         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63624         (gl_FUNC_FNMATCH_POSIX): New macro.
63625         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63626         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63627         simply fnmatch.
63628
63629         Module exclude.
63630         * m4/exclude.m4: New file.
63631
63632         Module human.
63633         * m4/human.m4: New file.
63634
63635         Module acl.
63636         * m4/acl.m4: Nop.
63637
63638         Module backupfile.
63639         * m4/backupfile.m4: New file.
63640         * m4/d-ino.m4: Indentation.
63641
63642         Module fsusage.
63643         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63644         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63645         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63646
63647         Module dirfd.
63648         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63649         requirements.
63650
63651         Module euidaccess.
63652         * m4/euidaccess.m4: New file.
63653
63654         Module file-type.
63655         * m4/file-type.m4: New file.
63656
63657         Module fileblocks.
63658         * m4/fileblocks.m4: New file.
63659
63660         Module filemode.
63661         * m4/filemode.m4: New file.
63662
63663         Module isdir.
63664         * m4/isdir.m4: New file.
63665
63666         Module lchown.
63667         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63668         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63669
63670         Module makepath.
63671         * m4/makepath.m4: New file.
63672
63673         Module modechange.
63674         * m4/modechange.m4: New file.
63675
63676         Module mountlist.
63677         * m4/mountlist.m4: New file.
63678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63679         Indentation.
63680
63681         Module path-concat.
63682         * m4/path-concat.m4: New file.
63683
63684         Module pathmax.
63685         * m4/pathmax.m4: New file.
63686
63687         Module same.
63688         * m4/same.m4: New file.
63689
63690         Module save-cwd.
63691         * m4/save-cwd.m4: New file.
63692
63693         Module savedir.
63694         * m4/savedir.m4: New file.
63695
63696         Module xgetcwd.
63697         * m4/xgetcwd.m4: New file.
63698         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63699
63700         Module xreadlink.
63701         * m4/xreadlink.m4: New file.
63702
63703         Module safe-read.
63704         * m4/safe-read.m4: New file.
63705
63706         Module safe-write.
63707         * m4/safe-write.m4: New file.
63708
63709         Module closeout.
63710         * m4/closeout.m4: New file.
63711
63712         Module stdio-safer.
63713         * m4/stdio-safer.m4: New file.
63714
63715         Module getpass.
63716         * m4/getpass.m4: New file.
63717
63718         Module getugroups.
63719         * m4/getugroups.m4: New file.
63720
63721         Module group-member.
63722         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63723         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63724
63725         Module idcache.
63726         * m4/idcache.m4: New file.
63727
63728         Module userspec.
63729         * m4/userspec.m4: New file.
63730
63731         Module gettime.
63732         * m4/clock_time.m4: New file.
63733         * m4/gettime.m4: New file.
63734
63735         Module settime.
63736         * m4/settime.m4: New file.
63737
63738         Module posixtm.
63739         * m4/posixtm.m4: New file.
63740
63741         Module gethostname.
63742         * m4/gethostname.m4: New file.
63743
63744         Module canon-host.
63745         * m4/canon-host.m4: New file.
63746
63747         Module gettext.
63748         * m4/codeset.m4: New file, from gettext-0.11.5.
63749         * m4/gettext.m4: New file, from gettext-0.11.5.
63750         * m4/glibc21.m4: New file, from gettext-0.11.5.
63751         * m4/iconv.m4: New file, from gettext-0.11.5.
63752         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63753         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63754         * m4/inttypes.m4: New file, from gettext-0.11.5.
63755         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63756         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63757         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63758         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63759         * m4/lib-link.m4: New file, from gettext-0.11.5.
63760         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63761         * m4/progtest.m4: New file, from gettext-0.11.5.
63762         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63763         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63764         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63765
63766         Module localcharset.
63767         * m4/localcharset.m4: New file.
63768
63769         Module hard-locale.
63770         * m4/hard-locale.m4: New file.
63771
63772         Module mbswidth.
63773         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63774         onceonly macros.
63775         * m4/mbrtowc.m4: Add comment.
63776
63777         Module memcasecmp.
63778         * m4/memcasecmp.m4: New file.
63779
63780         Module memcoll.
63781         * m4/memcoll.m4: New file.
63782
63783         Module unicodeio.
63784         * m4/unicodeio.m4: New file.
63785
63786         Module rpmatch.
63787         * m4/rpmatch.m4: New file.
63788
63789         Module yesno.
63790         * m4/yesno.m4: New file.
63791
63792         Module exitfail.
63793         * m4/exitfail.m4: New file.
63794
63795         Module c-stack.
63796         * m4/c-stack.m4 (gl_C_STACK): New macro.
63797         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63798
63799         Module error.
63800         * m4/error.m4 (gl_ERROR): New macro.
63801         (jm_PREREQ_ERROR): Use onceonly macros.
63802
63803         Module fatal.
63804         * m4/fatal.m4: New file.
63805
63806         Module getloadavg.
63807         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63808         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63809
63810         Module getpagesize.
63811         * m4/getpagesize.m4: New file.
63812
63813         Module getusershell.
63814         * m4/getusershell.m4: New file.
63815
63816         Module physmem.
63817         * m4/physmem.m4: New file.
63818
63819         Module posixver.
63820         * m4/posixver.m4: New file.
63821
63822         Module quotearg.
63823         * m4/quotearg.m4: New file.
63824
63825         Module quote.
63826         * m4/quote.m4: New file.
63827
63828         Module readutmp.
63829         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63830
63831         Module sig2str.
63832         * m4/sig2str.m4: New file.
63833
63834         Other.
63835         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63836         ulonglong.m4.
63837         * m4/intmax_t.m4: New file.
63838         * m4/d-type.m4: Indentation.
63839         * m4/jm-macros.m4: Update.
63840         * m4/prereq.m4 (jm_PREREQ): Update.
63841         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63842         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63843         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63844         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63845         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63846         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63847         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63848         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63849         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63850         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63851         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63852         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63853         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63854         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63855         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63856         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63857         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63858         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63859         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63860
63861 2002-12-24  Bruno Haible  <bruno@clisp.org>
63862
63863         * MODULES.txt: Update according to m4/ changes.
63864
63865         Module gettext.
63866         * config.rpath: New file, from gettext-0.11.5.
63867
63868         * modules/*: New module descriptions.
63869         * gnulib-tool: New file.
63870         * MODULES.html.sh: New file.
63871
63872 2002-12-21  Karl Berry  <karl@gnu.org>
63873
63874         * doc/fdl.texi: update to version 1.2.
63875
63876 2002-12-19  Karl Berry  <karl@gnu.org>
63877
63878         * config/config.guess: update from prep.
63879
63880 2002-12-18  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63883         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63884
63885 2002-12-17  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63888         stdlib.h, string.h.
63889
63890 2002-12-17  Bruno Haible  <bruno@clisp.org>
63891
63892         * lib/canon-host.c (strdup): Remove unused declaration.
63893
63894         * lib/fsusage.c: Include full_read.h.
63895         (get_fs_usage): Use full_read instead of safe_read.
63896
63897         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63898
63899 2002-12-12  Karl Berry  <karl@gnu.org>
63900
63901         * config/config.guess: update from prep.
63902
63903 2002-12-11  Bruno Haible  <bruno@clisp.org>
63904
63905         * m4/setenv.m4: New file, from gettext-0.11.5.
63906
63907 2002-12-11  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63910         not unsetenv().
63911         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63912         modifications:
63913
63914         2002-12-11  Bruno Haible  <bruno@clisp.org>
63915
63916                 * setenv.c (alloca): Fall back to malloc.
63917                 (freea): New macro.
63918                 (setenv): Use freea() to free memory allocated with alloca().
63919
63920         2002-11-13  Bruno Haible  <bruno@clisp.org>
63921
63922                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63923                 function declarations.
63924                 * unsetenv.c (unsetenv): Likewise.
63925
63926         2002-03-04  Bruno Haible  <bruno@clisp.org>
63927
63928                 Portability to AIX 4.3.3.
63929                 * unsetenv.c: New file, extracted from setenv.c.
63930                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63931
63932         2001-12-20  Bruno Haible  <bruno@clisp.org>
63933
63934                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63935                 use malloc instead. For SunOS 4.
63936
63937         2001-12-11  Bruno Haible  <bruno@clisp.org>
63938
63939                 * setenv.c: Declare alloca.
63940                 (compar_fn_t): New typedef.
63941                 (KNOWN_VALUE, STORE_VALUE): Use it.
63942
63943         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63944         setenv.h.
63945
63946 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63947
63948         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63949         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63950         Choose values that are less likely to collide with system fnmatch
63951         options.
63952         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63953         defined (e.g., a pure POSIX system).
63954         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63955         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63956
63957 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63958
63959         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63960         a pain in practice to deal with generated m4 files.  This change
63961         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63962
63963         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63964         and jm-glibc-io.m4, as they are no longer a special case.
63965         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63966         kludge and the auto-generation stuff.  Check only whether the
63967         functions are declared, not whether they exist, since older hosts
63968         that don't declare the functions can't use the optimization anyway.
63969
63970 2002-12-06  Jim Meyering  <jim@meyering.net>
63971
63972         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63973
63974         Merge in changes from libc's misc/error.c, in preparation
63975         for the merge of gnulib's changes back into libc.
63976
63977         * lib/error.c (_): Define only if not already defined.
63978         Move definition to follow all #include directives.
63979         Include unlocked-io.h only if !_LIBC.
63980         [_LIBC]: Include <libio/libioP.h>.
63981         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63982         (fflush): Tweak definition to use INTUSE.
63983         (putc): Define.
63984
63985 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63986
63987         * lib/alloca.c [defined emacs]: Include "lisp.h".
63988         (xalloc_die) [defined emacs]: New macro.
63989         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63990         [! defined emacs]: Include <xalloc.h>.
63991         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63992         (pointer): Typedef to POINTER_TYPE *.
63993         (malloc): Remove decl; we now always use xmalloc.
63994         (alloca): Use old-style definition, since Emacs needs this.
63995         Check for arithmetic overflow when computing combined size.
63996
63997 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63998
63999         Do not generate unlocked-io.h automatically, since it's easier to
64000         maintain it by hand.
64001
64002         * lib/unlocked-io.h: New file, from GNU diffutils,
64003         but with proper copyright notice and attribution.
64004         * lib/gen-uio: Remove.
64005         * lib/Makefile.am: Add copyright notice.
64006         (libfetish_a_SOURCES): Add unlocked-io.h.
64007         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64008         (DISTCLEANFILES, io_functions): Remove macros.
64009         (EXTRA_DIST): Remove gen_uio.
64010         (unlocked-io.h): Remove rule.
64011
64012 2002-12-04  Jim Meyering  <jim@meyering.net>
64013
64014         Reflect the fact that stat.c and lstat.c are no longer generated.
64015         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64016         (DISTCLEANFILES): Likewise.
64017         (EXTRA_DIST): Likewise.
64018         (all_local): Don't depend on stat.c or lstat.c.
64019         (stat.c, lstat.c): Remove rules.
64020         (EXTRA_DIST): Remove xstat.in.
64021
64022         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64023         * lib/stat.c: New file.  Contents mostly from xstat.in.
64024         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64025         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64026
64027         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64028         too.
64029         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64030
64031 2002-12-03  Jim Meyering  <jim@meyering.net>
64032
64033         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64034         but not semantics, to minimize the differences between these two files.
64035         (safe_read): Change comment to mention SAFE_READ_ERROR.
64036
64037         * lib/safe-read.c (IS_EINTR): Define.
64038         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64039
64040 2002-12-02  Jim Meyering  <jim@meyering.net>
64041
64042         * lib/safe-read.c (EINTR): Define.
64043         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64044         (INT_MAX): Provide fallback.
64045         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64046
64047         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64048
64049 2002-12-02  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64052         Define, taken from safe-read.c.
64053         (INT_MAX): Provide fallback.
64054         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64055         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64056
64057         * lib/safe-read.c (EINTR): Remove definition.
64058         (safe_read): Don't use EINTR if it is absent.
64059
64060 2002-12-01  Jim Meyering  <jim@meyering.net>
64061
64062         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64063         zero.
64064         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64065
64066 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64067
64068         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64069         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64070         with `if (! (value < limit)) abort ();', for readability.
64071
64072 2002-11-26  Karl Berry  <karl@gnu.org>
64073
64074         * lib/strdup.c: copy from libc again, with jim's ok.
64075         * lib/.cppi-disable: re-add strdup.c
64076
64077 2002-11-25  Karl Berry  <karl@gnu.org>
64078
64079         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64080         instead of "strtol.c".
64081
64082 2002-11-25  Karl Berry  <karl@gnu.org>
64083
64084         * config/install-sh: update from automake for variable quoting, $0 in
64085         error msgs, etc.
64086
64087         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64088         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64089         entry.
64090
64091 2002-11-25  Jim Meyering  <jim@meyering.net>
64092
64093         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64094
64095 2002-11-24  Karl Berry  <karl@gnu.org>
64096
64097         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64098         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64099
64100 2002-11-24  Jim Meyering  <jim@meyering.net>
64101
64102         Update from coreutils:
64103
64104         * lib/mktime.c: Merge in changes from libc.
64105
64106         Avoid a link-time failure on some Linux systems.
64107         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64108         (otherwise).
64109         (__mon_yday): Declare with the STATIC attribute.
64110         (__mktime_internal): Likewise.
64111         Based on a report from Greg Schafer.
64112
64113 2002-11-23  Jim Meyering  <jim@meyering.net>
64114
64115         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64116         Use `unsigned', not `int', as type of index.
64117
64118         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64119
64120         * lib/fsusage.c: Remove unneeded parentheses around operands of
64121         `defined'.
64122
64123 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64124
64125         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64126         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64127         so that we can be included first.
64128         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64129         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64130         No need to include stddef.h or sys/types.h any more.
64131         Surround local include files with "", not "<>".
64132         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64133         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64134         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64135         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64136         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64137         (ISPRINT): Remove; no longer needed now that we assume C89.
64138
64139         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64140         Preserve errno.
64141
64142         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64143         quotearg_char): Use SIZE_MAX rather than
64144         (size_t) -1 when we are talking about "infinity".
64145
64146         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64147
64148 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64149
64150         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64151         hint that one should use `if (! x) abort ();' rather than `assert
64152         (x);', and anyway it's one less thing to worry about configuring.
64153         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64154         hash_rehash, hash_insert): Use abort rather than assert.
64155
64156 2002-11-22  Bruno Haible  <bruno@clisp.org>
64157
64158         * lib/safe-read.h: Assume C89. Add comments.
64159         (safe_read): Change return type to size_t.
64160         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64161         byte counts > SSIZE_MAX correctly.
64162         * lib/safe-write.h: New file.
64163         * lib/safe-write.c: New file.
64164         * lib/full-read.h: New file.
64165         * lib/full-read.c: New file.
64166         * lib/full-write.h: Assume C89. Add comments.
64167         * lib/full-write.c: Include safe-write.h.
64168         (full_write): Rewritten to use safe_write.
64169         Suggested by Jim Meyering and Paul Eggert.
64170
64171 2002-11-21  Jim Meyering  <jim@meyering.net>
64172
64173         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64174
64175         Merge in changes from the coreutils.
64176
64177         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64178         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64179         <stdint.h>.
64180         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64181         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64182         int.  Work more efficiently if X is the same width as uintmax_t.
64183         Do not compare X to -1, to avoid bogus compiler warning.
64184         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64185         Don't assume that f_frsize and f_bsize are the same type.
64186
64187         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64188         warning on FreeBSD.
64189
64190         * lib/makepath.c (make_path): Restore umask *before* creating the final
64191         component.
64192         (make_path): Minor reformatting.
64193
64194         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64195         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64196         HAVE_MALLOC/HAVE_REALLOC.
64197
64198         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64199         dummy ones.  At least on GNU/Linux systems, `auto' means something
64200         else.
64201         From Michael Stone.
64202
64203 2002-11-21  Bruno Haible  <bruno@clisp.org>
64204
64205         Remove case insensitive option matching.
64206         * lib/argmatch.h (argcasematch): Remove declaration.
64207         (ARGCASEMATCH): Remove macro.
64208         (__xargmatch_internal): Remove case_sensitive argument.
64209         (XARGMATCH): Update.
64210         (XARGCASEMATCH): Remove macro.
64211         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64212         case_sensitive argument.
64213         (argcasematch): Remove function.
64214         (__xargmatch_internal): Remove case_sensitive argument.
64215         (main): Use XARGMATCH instead of XARGCASEMATCH.
64216
64217         * lib/xmalloc.c: Change compile-time error message. Add comment about
64218         required autoconf version.
64219
64220 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64221
64222         Merge argmatch cleanups from Bison.  Assume C89.
64223
64224         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64225         Include stdlib.h, for EXIT_FAILURE.
64226         Always include <string.h>, since we assume C89.
64227         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64228         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64229         Include <stddef.h> instead, since it's all we need for size_t.
64230         (PARAMS): Remove.  All uses removed.
64231         (ARRAY_CARDINALITY): Do not bother to #undef.
64232         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64233         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64234         Remove unnecessary parentheses.
64235         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64236         Insert necessary parentheses.
64237         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64238         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64239
64240 2002-11-19  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64243         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64244
64245         * lib/mbswidth.h (PARAMS): Remove macro.
64246         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64247         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64248
64249         * lib/gcd.h (PARAMS): Remove macro.
64250         (gcd): Use ANSI C function declarations.
64251         * lib/gcd.c (gcd): Likewise.
64252
64253 2002-11-15  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/strcspn.c: Include <stddef.h>.
64256         (strcspn): Use ANSI C function declaration. Change return type to
64257         size_t. Use NULL.
64258         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64259         (strpbrk): Use NULL.
64260         * lib/strpbrk.h (PARAMS): Remove macro.
64261         (strpbrk): Use ANSI C function declaration.
64262         * lib/strstr.c: Don't include <sys/types.h>.
64263         * lib/strstr.h (PARAMS): Remove macro.
64264         (strstr): Use ANSI C function declarations.
64265
64266 2002-11-14  Karl Berry  <karl@gnu.org>
64267
64268         * config/mkinstalldirs: `do' on separate line, instead of
64269         `for var; do'.
64270
64271 2002-11-06  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64274         * lib/gcd.c (gcd): Likewise.
64275
64276 2002-11-05  Bruno Haible  <bruno@clisp.org>
64277
64278         * lib/gcd.h: New file, from gettext-0.11.5.
64279         * lib/gcd.c: New file, from gettext-0.11.5.
64280
64281 2002-11-05  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64284         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64285         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64286         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64287
64288         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64289         <libintl.h>.
64290         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64291         <libintl.h>.
64292
64293         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64294         * lib/human.c: Include gettext.h instead of <libintl.h>.
64295         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64296         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64297         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64298         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64299         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64300         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64301         (textdomain): Remove definition.
64302         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64303
64304         * lib/long-options.c: Remove include of <libintl.h> and definition of
64305         _.
64306         * lib/same.c: Remove include of <libintl.h> and definition of _.
64307
64308 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64309
64310         * lib/config.charset: A few additions for Solaris.
64311
64312 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64313
64314         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64315         * lib/localcharset.c (locale_charset): Declare as extern "C".
64316
64317 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64318
64319         * lib/config.charset: msdos in uk_UA uses CP1125.
64320
64321 2002-11-04  Bruno Haible  <bruno@clisp.org>
64322
64323         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64324         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64325         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64326         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64327         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64328
64329 2002-11-04  Bruno Haible  <bruno@clisp.org>
64330
64331         * lib/localcharset.c (locale_charset): Don't return an empty string.
64332
64333 2002-11-04  Bruno Haible  <bruno@clisp.org>
64334
64335         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64336         aliases.
64337
64338 2002-11-04  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/config.charset: Update for newest glibc. Add canonical names
64341         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64342
64343 2002-11-04  Bruno Haible  <bruno@clisp.org>
64344
64345         * lib/config.charset: Add support for NetBSD.
64346
64347 2002-11-04  Bruno Haible  <bruno@clisp.org>
64348
64349         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64350
64351 2002-11-01  Bruno Haible  <bruno@clisp.org>
64352
64353         * configure.in: Add AC_CONFIG_AUX_DIR call.
64354         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64355         test/Makefile.
64356         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64357
64358 2002-09-28  Karl Berry  <karl@gnu.org>
64359
64360         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64361         installed automake until the next release, since changes have been
64362         made.
64363
64364 2002-09-25  Karl Berry  <karl@gnu.org>
64365
64366         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64367         * lib/getopt*: copy from libc/posix.
64368         * lib/gettext.h: copy from gettext.
64369         * lib/.cppi-disable: add strdup.c, gettext.h.
64370
64371 2002-09-25  Karl Berry  <karl@gnu.org>
64372
64373         * config/srclist.txt: enable gettext.h check.
64374         * config/config.{guess,sub}: update from prep.
64375         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64376                 from automake 1.6.3.
64377         See srclist*.
64378
64379 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64380
64381         * regex.c (PATFETCH): Remove the translating fetch.
64382         (PATFETCH_RAW): Rename to PATFETCH.
64383         (set_image_of_range): New fun.
64384         (SET_RANGE_TABLE_WORK_AREA): Use it.
64385         (regex_compile): Don't translate the pattern chars so eagerly.
64386         Only do it when inserting an `exactn' bytecode or when handling
64387         a char-range.
64388         (mutually_exclusive_p): Avoid empty statement.
64389
64390 2002-07-06  Jim Meyering  <meyering@lucent.com>
64391
64392         * m4/README: Don't mention Makefile.am.in.
64393         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64394
64395 2002-07-01  Jim Meyering  <meyering@lucent.com>
64396
64397         * lib/c-stack.c: Include sys/time.h.
64398         From Volker Borchert.
64399
64400 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64401
64402         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64403
64404 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64405
64406         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64407         New macro.  Use it uniformly instead of
64408         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64409         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64410         reported by Vin Shelton.
64411
64412 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64413
64414         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64415         Do not assume SA_SIGINFO behavior.
64416         Bug reported by Jim Meyering on NetBSD 1.5.2.
64417
64418 2002-06-22  Jim Meyering  <meyering@lucent.com>
64419
64420         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64421         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64422
64423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64424         now that configure.ac uses AC_GNU_SOURCE.
64425         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64426         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64427
64428         Update to latest tools.  Suggestions from Paul Eggert.
64429         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64430         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64431         * m4/fnmatch.m4: Likewise.
64432         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64433         to AC_HEADER_STDBOOL
64434
64435 2002-06-22  Jim Meyering  <meyering@lucent.com>
64436
64437         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64438         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64439
64440 2002-06-22  Jim Meyering  <meyering@lucent.com>
64441
64442         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64443
64444         * lib/exitfail.c, exitfail.h: Likewise.
64445         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64446
64447         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64448         of fnmatch.h.
64449         (EXTRA_DIST): Add fnmatch_loop.c.
64450         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64451
64452         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64453         * lib/fnmatch.c: Update from diffutils-2.8.2.
64454         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64455         * lib/fnmatch.h: Remove file.
64456
64457 2002-06-21  Jim Meyering  <meyering@lucent.com>
64458
64459         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64460         * m4/mbrtowc.m4: Likewise.
64461
64462         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64463         * m4/mbswidth.m4: Reflect name change:
64464         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64465         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64466
64467         * m4/lib-link.m4: Update from gettext-0.11.2.
64468         * m4/gettext.m4: Likewise.
64469
64470         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64471         From Alfred M. Szmidt.
64472
64473 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64474
64475         * lib/file-type.h: Report an error if neither S_ISREG nor
64476         S_IFREG is defined, instead of using a test specific to glibc
64477         2.2.  This should be safe, since POSIX requires S_ISREG and
64478         Unix Version 7 had S_IFREG.  We don't need to check for
64479         <sys/types.h> since we don't use any symbols that it defines.
64480
64481 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64482
64483         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64484         $@-t, so that each temporary file name is unique and valid in the first
64485         8 characters, for operation under DOS.
64486
64487 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64488
64489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64490
64491 2002-06-15  Jim Meyering  <meyering@lucent.com>
64492
64493         Work even with DJGPP 2.03, which lacks support for symlinks.
64494         From Richard Dawe.
64495         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64496         is defined.
64497         * lib/lchown.c (S_ISLNK): Likewise.
64498
64499 2002-06-15  Jim Meyering  <meyering@lucent.com>
64500
64501         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64502         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64503         have been included before this file.
64504
64505 2002-06-14  Jim Meyering  <meyering@lucent.com>
64506
64507         * lib/file-type.h: Use the version from diffutils-2.8.2.
64508         * lib/file-type.c: Likewise.
64509
64510 2002-06-07  Jim Meyering  <meyering@lucent.com>
64511
64512         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64513         They're needed at least for NetBSD 1.5.2.
64514         ($statxfs_includes): Include those same headers.
64515         ($statxfs_includes): Include sys/vfs.h if available.
64516         ($statxfs_includes): Likewise for sys/statvfs.h.
64517         Check for the following members in both structs statfs and statvfs:
64518         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64519
64520 2002-06-01  Jim Meyering  <meyering@lucent.com>
64521
64522         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64523         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64524
64525 2002-05-28  Jim Meyering  <meyering@lucent.com>
64526
64527         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64528         Reported by Volker Borchert.
64529
64530 2002-05-27  Jim Meyering  <meyering@lucent.com>
64531
64532         Fix a problem seen only on nonconforming systems whereby ls.c's
64533         use of localtime, and then of gettimeofday would cause trouble:
64534         the localtime call used to initialize rpl_gettimeofday's save
64535         mechanism would clobber ls's current local time information so
64536         that in any long listing the first file would always be listed
64537         with date 1970-01-01.  Analysis by Volker Borchert.
64538
64539         * lib/gettimeofday.c (localtime): Undefine.
64540         (rpl_localtime): New function.
64541
64542 2002-05-27  Jim Meyering  <meyering@lucent.com>
64543
64544         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64545         localtime.
64546
64547         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64548         use the replacement function; it wouldn't resolve at link time.
64549         Reported by Volker Borchert.
64550
64551 2002-05-22  Jim Meyering  <meyering@lucent.com>
64552
64553         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64554         file-type.h.
64555         * lib/file-type.h: New file.
64556         * lib/file-type.c (file_type): New file/function.  Extracted from
64557         diffutils.
64558
64559 2002-04-30  Jim Meyering  <meyering@lucent.com>
64560
64561         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64562
64563 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64564
64565         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64566
64567 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64568
64569         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64570         Do not check for alloca.h (no longer used) or stdbool.h (was never
64571         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64572
64573 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64574
64575         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64576
64577 2002-04-29  Jim Meyering  <meyering@lucent.com>
64578
64579         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64580         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64581         Use AC_FUNC_STRNLEN here instead.
64582
64583         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64584         With autoconf-2.53a, it's part of AC_PROG_CC.
64585
64586 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64587
64588         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64590
64591 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64592
64593         * lib/sig2str.h, lib/sig2str.c: New files.
64594         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64595
64596 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64597
64598         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64599         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64600         of 127, since 64 is the largest conceivable number for ancient
64601         nonstandard hosts.
64602         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64603
64604 2002-04-28  Jim Meyering  <meyering@lucent.com>
64605
64606         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64607
64608 2002-04-24  Jim Meyering  <meyering@lucent.com>
64609
64610         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64611         (jm_PREREQ): Use it.
64612
64613         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64614         mach/mach.h fcntl.h.
64615         Check for this function: setlocale.
64616
64617 2002-04-24  Jim Meyering  <meyering@lucent.com>
64618
64619         * lib/gettext.h: New file, from Gettext.
64620         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64621         (libfetish_a_SOURCES): Add gettext.h.
64622
64623 2002-04-16  Jim Meyering  <meyering@lucent.com>
64624
64625         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64626         ut_pid, ut_id, ut_exit.
64627
64628 2002-04-16  Jim Meyering  <meyering@lucent.com>
64629
64630         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64631         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64632         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64633
64634 2002-04-12  Jim Meyering  <meyering@lucent.com>
64635
64636         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64637         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64638         existence of the getmntinfo function.  Needed for Darwin 5.3.
64639
64640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64641         This is necessary at least on Darwin 5.3.
64642
64643         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64644         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64645         strnlen.o in the library, and that makes some versions of ranlib
64646         object.
64647
64648 2002-04-12  Jim Meyering  <meyering@lucent.com>
64649
64650         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64651
64652 2002-04-09  Jim Meyering  <meyering@lucent.com>
64653
64654         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64655         to be more precise.  Rather than saying we're checking whether the
64656         function `works', say what we're testing.
64657         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64658         Reported by Bruno Haible.
64659
64660 2002-03-10  Jim Meyering  <meyering@lucent.com>
64661
64662         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64663         Suggestion from Santiago Vila.
64664
64665 2002-03-08  Jim Meyering  <meyering@lucent.com>
64666
64667         * lib/rename.c: Mention that this wrapper is needed also on
64668         mips-dec-ultrix4.4 systems.
64669
64670 2002-03-02  Jim Meyering  <meyering@lucent.com>
64671
64672         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64673         not HAVE_CLOCK_SETTIME.
64674
64675 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64676
64677         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64678         Check for clock_settime.
64679
64680 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64681
64682         * lib/nanosleep.h: Rename to....
64683         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64684
64685         * lib/gettime.c: New file.
64686         * lib/settime.c: New file.
64687         * lib/stime.c: Remove.
64688
64689         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64690         timespec.h.  Remove nanosleep.h.
64691
64692 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64693
64694         * m4/acl.m4: New file.
64695         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64696         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64697
64698 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64699
64700         * lib/acl.c, lib/acl.h: New files.
64701         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64702
64703 2002-02-24  Jim Meyering  <meyering@lucent.com>
64704
64705         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64706         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64707         cause trouble.  Reported by Nelson Beebe.
64708
64709 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64710
64711         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64712         compilers that don't know that xalloc_die never returns.
64713
64714 2002-02-20  Jim Meyering  <meyering@lucent.com>
64715
64716         * lib/getdate.c: Regenerate using bison-1.33.
64717
64718 2002-02-17  Jim Meyering  <meyering@lucent.com>
64719
64720         * config/config.guess (main): Don't use `head -1'; it's no longer
64721         portable. Use `sed 1q' instead.
64722
64723 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64724
64725         * m4/codeset.m4: Upgrade to gettext-0.11.
64726         * m4/gettext.m4: Upgrade to gettext-0.11.
64727         * m4/glibc21.m4: Upgrade to gettext-0.11.
64728         * m4/iconv.m4: Upgrade to gettext-0.11.
64729         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64730         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64731         * m4/lib-ld.m4: New file, from gettext-0.11.
64732         * m4/lib-link.m4: New file, from gettext-0.11.
64733         * m4/lib-prefix.m4: New file, from gettext-0.11.
64734         * m4/progtest.m4: Upgrade to gettext-0.11.
64735
64736 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64737
64738         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64739         (jm_PREREQ): Use it.
64740
64741 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64742
64743         * lib/posixver.c, lib/posixver.h: New files.
64744         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64745
64746 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64747             Bruno Haible  <bruno@clisp.org>
64748
64749         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64750         (fwrite_success_callback): New declaration.
64751         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64752         print_unicode_char. Call failure callback instead of error.
64753         (fwrite_success_callback): New function.
64754         (exit_failure_callback): New function.
64755         (fallback_failure_callback): New function.
64756         (print_unicode_char): Call unicode_to_mb.
64757
64758 2002-01-26  Jim Meyering  <meyering@lucent.com>
64759
64760         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64761         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64762
64763 2002-01-26  Jim Meyering  <meyering@lucent.com>
64764
64765         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64766
64767 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64768
64769         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64770
64771 2002-01-22  Jim Meyering  <meyering@lucent.com>
64772
64773         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64774         Otherwise, some versions of automake would omit the rule that makes
64775         Makefile from Makefile.in.
64776
64777 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64778
64779         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64780         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64781         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64782         (memcoll): Set errno to zero if there is no error.
64783
64784         * lib/quotearg.c (quotearg_buffer_restyled):
64785         Fix bug with quoting buffers containing NUL when backslashing escapes.
64786         This bug was exposed by the other changes in this patch.
64787         (quotearg_n_options): New arg ARGSIZE.
64788         All callers changed.
64789         (quoting_options_from_style): New function.
64790         (quotearg_n_style): Use it.
64791         (quotearg_n_style_mem): New function.
64792
64793         * lib/quotearg.h (quotearg_n_style_mem): New function.
64794
64795 2002-01-19  Jim Meyering  <meyering@lucent.com>
64796
64797         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64798         Remove useless quotes: DF_PROG="df".
64799         * m4/strnlen.m4: New file.
64800
64801 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64802
64803         * lib/backupfile.c (ISDIGIT): Comment fix.
64804         * lib/getdate.y (ISDIGIT): Likewise.
64805         * lib/posixtm.c (ISDIGIT, year): Likewise.
64806         * lib/strverscmp.c (ISDIGIT): Likewise.
64807         * lib/userspec.c (ISDIGIT): Likewise.
64808
64809 2002-01-16  Jim Meyering  <meyering@lucent.com>
64810
64811         * lib/getdate.y: Add three semicolons, each just before a closing
64812         brace. Bison (as of version 1.31) no longer papers over that mistake.
64813
64814 2002-01-05  Jim Meyering  <meyering@lucent.com>
64815
64816         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64817
64818 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64819
64820         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64821         not silently exit merely because the output buffer happens to
64822         have nothing pending.
64823
64824 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64825
64826         See the big note in ../ChangeLog.
64827         * lib/human.c (suffixes): Prefer K to k for 1024.
64828         (generate_suffix_backwards): New function.
64829         (human_readable_inexact): Use it.
64830         * lib/xstrtol.c (__xstrtol): If there is no number but there
64831         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64832         Accept 'K' as well as 'k'.
64833
64834 2001-12-15  Jim Meyering  <meyering@lucent.com>
64835
64836         * lib/regex.h (__restrict_arr): Update from libc.
64837
64838         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64839         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64840         (STREQ): Define.
64841
64842 2001-12-14  Jim Meyering  <meyering@lucent.com>
64843
64844         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64845         Suggestion from Bruno Haible.
64846
64847 2001-12-10  Jim Meyering  <meyering@lucent.com>
64848
64849         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64850         xrealloc, Instead, include "xalloc.h".
64851         (initbuffer): Don't cast xmalloc return value to char*.
64852         (readline): Reword comment.
64853         Don't cast xrealloc return value to char*
64854         Return NULL, not 0.
64855
64856 2001-12-09  Jim Meyering  <meyering@lucent.com>
64857
64858         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64859         about `signed and unsigned type in conditional expression'.
64860         * lib/posixtm.c (posix_time_parse): Likewise.
64861
64862         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64863
64864         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64865         to avoid a pedantic warning.
64866
64867         * lib/getstr.c: Don't include assert.h.
64868         (getstr): Remove warning-evoking assertions.
64869         Return -1 if offset parameter is out of bounds.
64870         Change the type of a local from int to size_t.
64871
64872         * lib/strftime.c (my_strftime_localtime_r): Include this function
64873         definition in the `#if ! HAVE_TM_GMTOFF' block.
64874
64875         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64876         Include xalloc.h instead.
64877
64878 2001-12-02  Jim Meyering  <meyering@lucent.com>
64879
64880         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64881         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64882         included.
64883
64884         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64885         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64886
64887 2001-11-30  Akim Demaille  <akim@epita.fr>
64888
64889         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64890         before being defined.
64891
64892 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64893
64894         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64895         First arg is int, not unsigned.
64896         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64897         (SIZE_MAX, UINT_MAX): New macros.
64898         (quotearg_n_options): Abort if N is negative.
64899         Avoid overflow check on hosts where size_t is 64 bits and int
64900         is 32 bits, as overflow is impossible there.
64901         Fix off-by-one typo that caused unnecessary reallocation.
64902
64903 2001-11-27  Jim Meyering  <meyering@lucent.com>
64904
64905         * lib/tempname.c: Merge with version from libc.
64906         * lib/regex.c: Likewise.
64907
64908         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64909         systems for which STDC_HEADERS is 0, it was not included, resulting in
64910         a warning about an integer-to-pointer conversion problem with getenv.
64911         Reported by Volker Borchert.
64912
64913 2001-11-26  Jim Meyering  <meyering@lucent.com>
64914
64915         * lib/gtod.h: Remove file.
64916         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64917         * lib/gettimeofday.c: Don't include gtod.h.
64918         (GTOD_init): Remove function.
64919         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64920         Suggestion from Volker Borchert.
64921
64922 2001-11-23  Jim Meyering  <meyering@lucent.com>
64923
64924         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64925         it.
64926         * lib/hash.c (struct hash_table): Define it here instead.
64927
64928 2001-11-22  Jim Meyering  <meyering@lucent.com>
64929
64930         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64931
64932 2001-11-20  Jim Meyering  <meyering@lucent.com>
64933
64934         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64935         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64936
64937 2001-11-19  Jim Meyering  <meyering@lucent.com>
64938
64939         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64940         directory.  Use "conftestXXXXXX" as the template.
64941         Suggestion from Paul Eggert.
64942
64943         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64944         immediately, so the test doesn't mistakenly hit the max-open-files
64945         limit.
64946
64947 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64948
64949         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64950         (TEMPORARIES): New macro.
64951         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64952         removes an artificial limitation (e.g. HP-UX 10.20, where
64953         TMP_MAX is 17576).
64954
64955 2001-11-18  Jim Meyering  <meyering@lucent.com>
64956
64957         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64958
64959 2001-11-18  Jim Meyering  <meyering@lucent.com>
64960
64961         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64962         on SunOS 4.
64963
64964         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64965         files will be created before anything else.
64966
64967 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64968
64969         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64970         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64971
64972 2001-11-17  Jim Meyering  <meyering@lucent.com>
64973
64974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64975         Prompted by a report from Bob Proulx.
64976
64977         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64978         Instead, require UTILS_FUNC_MKSTEMP.
64979
64980 2001-11-17  Jim Meyering  <meyering@lucent.com>
64981
64982         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64983         Now, that's done as part of AC_FUNC_STRTOD.
64984
64985 2001-11-17  Jim Meyering  <meyering@lucent.com>
64986
64987         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64988         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64989         rather than group writable.  Patch by Juan F. Codagnone.
64990
64991         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64992         xrealloc, Instead, include "xalloc.h".
64993
64994         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64995         Remove explicit declarations of xmalloc, xrealloc,
64996         and xstrdup.  Instead, include "xalloc.h".
64997
64998         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64999         unlocked-io.h.
65000         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65001         Likewise.
65002         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65003
65004         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65005         Reported by Padraig Brady.
65006
65007         * lib/mkstemp.c: #undef mkstemp.
65008         Include config.h.
65009         (rpl_mkstemp): Rename from mkstemp.
65010         Protoize.
65011
65012 2001-11-16  Jim Meyering  <meyering@lucent.com>
65013
65014         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65015         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65016         determine the amount of total physical memory, use pstat_getstatic.
65017         HPUX-11 doesn't define _SC_PHYS_PAGES.
65018         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65019         If sysconf couldn't be used to determine the amount of available
65020         physical memory, use both pstat_getstatic and pstat_getdynamic.
65021         Based on a patch from Bob Proulx.
65022
65023 2001-11-10  Jim Meyering  <meyering@lucent.com>
65024
65025         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65026         (jm_PREREQ): Use it.
65027
65028 2001-11-09  Jim Meyering  <meyering@lucent.com>
65029
65030         * m4/jm-macros.m4: Require autoconf-2.52f.
65031         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65032         Use these AC_-prefixed names, not the AM_-prefixed ones.
65033
65034         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65035
65036 2001-11-05  Jim Meyering  <meyering@lucent.com>
65037
65038         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65039
65040 2001-11-04  Jim Meyering  <meyering@lucent.com>
65041
65042         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65043         $DEFS.
65044
65045 2001-11-03  Jim Meyering  <meyering@lucent.com>
65046
65047         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65048         of AC_DEFUN.
65049
65050         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65051         know the name of the variable in the macro definition.
65052
65053 2001-11-03  Jim Meyering  <meyering@lucent.com>
65054
65055         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65056         in argmatch_to_argument call.
65057
65058         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65059         argument.
65060
65061         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65062         e.g., a fault due to an attempt to free a NULL pointer.
65063
65064 2001-11-01  Jim Meyering  <meyering@lucent.com>
65065
65066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65067         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65068
65069 2001-11-01  Jim Meyering  <meyering@lucent.com>
65070
65071         * lib/dirfd.c, lib/dirfd.h: New files.
65072         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65073
65074         * lib/hash.c (hash_print) [TESTING]: Clean up.
65075
65076 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65077
65078         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65079         to avoid a warning if -Wall.
65080
65081 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65082
65083         * README: New file
65084         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65085         (per RMS's instructions, this is now the canonical source)
65086         * lgpl/, gpl/: New directories.
65087
65088 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65089
65090         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65091
65092 2001-10-21  Jim Meyering  <meyering@lucent.com>
65093
65094         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65095         this code would end up calling gettext even in packages built
65096         with --disable-nls.
65097         * lib/getopt.c (_): Likewise.
65098         * lib/regex.c (_): Likewise.
65099
65100 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65101
65102         * m4/error.m4 (jm_PREREQ_ERROR):
65103         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65104         AC_FUNC_STRERROR_R does that.
65105         Check for strerror declaration.
65106
65107         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65108         are supposed to have them these days.
65109         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65110         Merge changes from latest Autoconf CVS.
65111         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65112         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65113         POSIX decided to standardize on the int flavor of strerror_r.
65114
65115 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65116
65117         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65118         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65119         Use strerror_r that is only a macro, even if it is not a function.
65120         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65121         (private_strerror): Use prototypes, not old-style function definition.
65122         (print_errno_message): New function.
65123         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65124         char*-flavored one.
65125         (error_tail, error, error_at_line): Use it.
65126
65127 2001-10-11  Jim Meyering  <meyering@lucent.com>
65128
65129         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65130         and quote_n (1, ... to avoid clobbering a buffer.
65131
65132 2001-10-05  Jim Meyering  <meyering@lucent.com>
65133
65134         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65135         hash-pjw.h.
65136         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65137         * lib/hash-pjw.h: New file.
65138
65139 2001-09-30  Jim Meyering  <meyering@lucent.com>
65140
65141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65142         `struct fsstat' has the `f_fstypename' member.
65143         Use that to define FS_TYPE, which is now used to make
65144         the getfsstat link test tighter.
65145
65146 2001-09-30  Jim Meyering  <meyering@lucent.com>
65147
65148         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65149         Include <sys/ucred.h>, for Apple Darwin.
65150         Include sys/mount.h and sys/fs_types.h only if available.
65151         (FS_TYPE): Define.
65152         (read_filesystem_list): Use FS_TYPE.
65153
65154 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65155
65156         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65157         a boolean context.
65158
65159 2001-09-29  Jim Meyering  <meyering@lucent.com>
65160
65161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65162         [one-argument getmntent function]): Include stdio.h before mntent.h.
65163         SunOS 4.1.x needs it for the declaration of `FILE'.
65164         Patch by Volker Borchert.
65165
65166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65167         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65168         sys/fs_types.h, and make the link-test for getfsstat guard #include
65169         directives with appropriate #if HAVE_*_H tests so that we can
65170         detect getfsstat on Apple Darwin1.3.7 systems.
65171         Reported by Nelson Beebe.
65172         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65173
65174 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65175
65176         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65177         #defines strtoimax.  Also treat the other strto* functions
65178         like strtoimax.
65179
65180         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65181         Check for strtoul and strtoumax,
65182         as those declarations are made even in the signed case.
65183         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65184         Likewise, for strtol and strtoimax.
65185
65186 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65187
65188         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65189         #defines strtoimax.  Also treat the other strto* functions
65190         like strtoimax.
65191
65192         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65193         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65194         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65195
65196 2001-09-26  Jim Meyering  <meyering@lucent.com>
65197
65198         Most macros in unlocked-io.h had the wrong number of arguments.
65199         * lib/gen-uio: New script.
65200         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65201         * lib/unlocked-io.hin: Remove file.
65202         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65203         rather than trying to embed it here.
65204         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65205         Reported by Padraig Brady.
65206
65207 2001-09-25  Volker Borchert  <bt@teknon.de>
65208
65209         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65210         `result'.
65211
65212 2001-09-24  Jim Meyering  <meyering@lucent.com>
65213
65214         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65215
65216 2001-09-23  Jim Meyering  <meyering@lucent.com>
65217
65218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65219         instead of the mere test for existence of mntent.h.  The latter
65220         would get a false-positive on AIX 3.4 systems.
65221         In the outer getmntent if-block, don't die if neither of the getmntent
65222         tests succeeds.  Instead, just fall through and continue with the
65223         remaining tests.
65224
65225 2001-09-23  Jim Meyering  <meyering@lucent.com>
65226
65227         * lib/mountlist.c: Remove useless parentheses in #if directives.
65228         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65229         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65230
65231 2001-09-22  Jim Meyering  <meyering@lucent.com>
65232
65233         * m4/gettext.m4: New file.  From gettext.
65234         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65235         * m4/progtest.m4: Likewise
65236         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65237         * m4/glibc21.m4: Likewise.
65238
65239         * m4/libintl.m4: Remove.  No longer used.
65240
65241 2001-09-22  Jim Meyering  <meyering@lucent.com>
65242
65243         * lib/localcharset.c: Update from latest gettext.
65244         * lib/config.charset: Likewise.
65245
65246 2001-09-20  Jim Meyering  <meyering@lucent.com>
65247
65248         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65249         strtoimax.
65250         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65251         strtoumax.
65252
65253 2001-09-20  Jim Meyering  <meyering@lucent.com>
65254
65255         * lib/xstrtol.c (strtoimax): Guard declaration with
65256         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65257         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65258         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65259         (strtoumax): Likewise, for completeness (it wasn't necessary).
65260
65261 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65262
65263         * lib/strtoimax.c (HAVE_LONG_LONG):
65264         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65265         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65266         to work around bug in IBM C compiler.
65267
65268 2001-09-17  Jim Meyering  <meyering@lucent.com>
65269
65270         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65271         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65272         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65273         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65274         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65275         whenever the right hand side need not be expanded by the shell.
65276
65277 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65278
65279         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65280         library.  It's not correct, as some older glibcs are buggy.
65281         fnmatch wasn't fixed until glibc 2.2.
65282
65283         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65284         special shell magic here.
65285
65286 2001-09-16  Jim Meyering  <meyering@lucent.com>
65287
65288         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65289         * m4/jm-macros.m4: Require it.
65290
65291 2001-09-16  Jim Meyering  <meyering@lucent.com>
65292
65293         * lib/mkdir.c: New file.
65294
65295 2001-09-15  Jim Meyering  <meyering@lucent.com>
65296
65297         * m4/jm-macros.m4: Check for help2man.
65298
65299 2001-09-11  Jim Meyering  <meyering@lucent.com>
65300
65301         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65302         The body, by Paul Eggert, was moved here from configure.in.
65303         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65304
65305 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65306
65307         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65308         (jm_PREREQ): Use it.
65309
65310 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65311
65312         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65313         Use ssize_t, not int, to store result of readlink.
65314         Check for ssize_t overflow as well as size_t overflow,
65315         as POSIX says the result of readlink is implementation-defined
65316         when ssize_t overflows.
65317         Remove unnecessary cast to char*.
65318         Use free+malloc instead of realloc, as the storage doesn't need
65319         to be preserved and it's clearer and can be more efficient that way.
65320         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65321         * lib/xreadlink.h (xreadlink): Update prototype.
65322
65323 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65324
65325         * lib/xgetcwd.c: Revert some of the previous change; intead,
65326         fix the HAVE_GETCWD_NULL code to behave more like the
65327         !HAVE_GETCWD_NULL code used to.
65328
65329         Include "xalloc.h".
65330         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65331         invoke xalloc_die.
65332
65333 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65334
65335         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65336         sys/param.h, as pathmax.h includes them.
65337
65338 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65339
65340         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65341         (jm_PREREQ_XGETCWD): New macro.
65342
65343         * m4/getcwd.m4: New file.
65344
65345 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65346
65347         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65348         like the HAVE_GETCWD_NULL code.
65349         Include pathmax.h if not HAVE_GETCWD.
65350         Do not include xalloc.h.
65351         (INITIAL_BUFFER_SIZE): New symbol.
65352         Do not use xmalloc / xrealloc, since the caller is responsible for
65353         handling errors.  Preserve errno around `free' during failure.
65354         Do not overrun buffer when using getwd.
65355
65356 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65357
65358         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65359         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65360         getcwd (NULL, 0).
65361
65362 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65363
65364         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65365         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65366         spotted by Jim Meyering.
65367
65368 2001-09-03  Jim Meyering  <meyering@lucent.com>
65369
65370         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65371         failure.
65372
65373 2001-09-02  Jim Meyering  <meyering@lucent.com>
65374
65375         * lib/error.c: Update from GNU libc.
65376
65377 2001-09-01  Jim Meyering  <meyering@lucent.com>
65378
65379         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65380         Used by df.
65381
65382 2001-09-01  Jim Meyering  <meyering@lucent.com>
65383
65384         * lib/xreadlink.c: New file.
65385         * lib/xreadlink.h: New file.
65386         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65387         xreadlink.h.
65388
65389         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65390         doesn't conflict with sparc Solaris 7's definition in
65391         /usr/include/sys/int_types.h.
65392
65393         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65394         files.
65395         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65396         and strncasecmp as r-values.  Unixware didn't have declarations.
65397
65398 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65399
65400         * lib/xstrtol.h: Add copyright notice.
65401         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65402         LONGINT_INVALID_SUFFIX_CHAR.
65403
65404 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65405
65406         * lib/xstrtol.c (strtoimax): New decl.
65407
65408 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65409
65410         * lib/xgetcwd.c: Don't include pathmax.h.
65411         Include stdlib.h and unistd.h if available.
65412         Include xalloc.h.
65413         (xmalloc, xstrdup, free): Remove decls.
65414         (xgetcwd): Don't assume sizes fit in unsigned.
65415         Check for overflow when computing sizes.
65416         Simplify reallocation code.
65417
65418 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65419
65420         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65421         a directory's st_size can have an arbitrary value, so the old
65422         usage could waste an arbitrary amount of memory.  All uses
65423         changed.
65424         * lib/savedir.h: Update prototype.
65425
65426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65427
65428         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65429
65430         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65431         old strtoimax.c.
65432
65433         Also, make the following further changes to make this file's
65434         configuration more similar to that of strtol.c:
65435         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65436         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65437         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65438         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65439         changed to signed values.
65440
65441         And make the following changes as well:
65442         Fix copyright notice, as 1999 was missing.
65443         (verify): New macro.
65444         (strtoimax): Check sizes at compile-time, not run-time.
65445         Prefer strtol to strtoll if both work.
65446         (main): Remove; it was not that useful and was a pain to maintain.
65447
65448         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65449
65450 2001-08-31  Jim Meyering  <meyering@lucent.com>
65451
65452         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65453         Use an initial, malloc'd, buffer of length 128 rather than
65454         a statically allocated one of length 1024.
65455
65456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65457
65458         Simplify code, partly by assuming autoconf 2.52 semantics.
65459
65460         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65461
65462         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65463         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65464         All uses removed.
65465         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65466         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65467         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65468         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65469         jm_AC_HEADER_INTTYPES_H.
65470         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65471
65472         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65473
65474         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65475         Quote first arg of AC_DEFUN.
65476         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65477         since they are needed to parse the include file even if we need
65478         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65479         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65480         but with opposite signedness.
65481
65482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65483
65484         Merge 'exclude' changes from tar 1.13.22.
65485         This fixes one or two unlikely storage allocation overflow bugs,
65486         but doesn't change user-visible behavior otherwise.
65487
65488 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65489
65490         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65491         (jm_PREREQ_EXCLUDE): New macro.
65492
65493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65494
65495         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65496         tm to be declared.
65497
65498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65499
65500         * lib/hash.c: Remove '2001' from copyright notice.
65501
65502 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65503
65504         * lib/full-write.h: New file.
65505         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65506         * lib/full-write.c: Correct credits, as cccp.c no longer
65507         exists and anyway it was so heavily changed from the old cccp
65508         code as to be unrecognizable.  Include full-write.h.
65509         (full_write) Return size_t, with short writes meaning failure.
65510         All callers changed.  This fixes a bug with large buffers
65511         on 64-bit hosts.
65512         * lib/utime.c: Include full-write.h.
65513
65514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65515
65516         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65517         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65518         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65519         Include if available.
65520         (<xalloc.h>): Include
65521         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65522         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65523         collide with FNM macros.
65524         (struct patopts): New struct.
65525         (struct exclude): Use it, as exclude patterns now come with options.
65526         (new_exclude): Support above changes.
65527         (new_exclude, add_exclude_file):
65528         Initial size must now be a power of two to simplify overflow checking.
65529         (free_exclude, fnmatch_no_wildcards): New function.
65530         (excluded_filename): No longer requires options arg, as the options
65531         are determined by add_exclude.  Now returns bool, not int.
65532         (excluded_filename, add_exclude):
65533         Add support for the fancy new exclusion options.
65534         (add_exclude, add_exclude_file): Now takes int options arg.
65535         Check for arithmetic overflow when computing sizes.
65536         (add_exclude_file): xrealloc might modify errno, so don't
65537         realloc until after errno might be used.
65538
65539         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65540         New macros.
65541         (free_exclude): New decl.
65542         (add_exclude, add_exclude_file): Now takes int options arg.
65543         (excluded_filename): No longer requires options arg, as the options
65544         are determined by add_exclude.  Now returns bool, not int.
65545
65546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65547
65548         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65549
65550 2001-08-27  Jim Meyering  <meyering@lucent.com>
65551
65552         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65553
65554         * lib/version-etc.c (N_): Remove definition.
65555         Revert most of last change.
65556         Instead, simply don't mark the `Copyright...' string for translation.
65557         Based on advice from Paul Eggert.
65558
65559         * lib/strtoxmax.c: Tweak comment.
65560
65561 2001-08-26  Jim Meyering  <meyering@lucent.com>
65562
65563         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65564
65565         * m4/xstrtoimax.m4: New file.
65566         * m4/xstrtoumax.m4: Add comments explaining why we
65567         AC_REPLACE_FUNCS(strtol).
65568
65569 2001-08-26  Jim Meyering  <meyering@lucent.com>
65570
65571         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65572         of copyright with `%s' so translators don't get an untranslated
65573         message in 2002.
65574         (COPYRIGHT_YEAR): Define.
65575         (version_etc): Use fprintf rather than fputs.
65576         Suggestion from Ulrich Drepper.
65577
65578         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65579
65580         * lib/strtoll.c: New file, from GNU libc.
65581         * lib/xstrtoimax.c: New file.
65582
65583         * lib/xstrtol.h: Add xstrtoimax.
65584         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65585         * lib/strtoimax.c: New file.  Likewise, but first define
65586         STRTOUXMAX_SIGNED.
65587
65588         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65589         ...
65590         * lib/strtoxmax.c: ... then renamed to this.
65591
65592 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65593
65594         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65595         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65596         (jm_AC_TYPE_INTMAX_T): New macro.
65597         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65598
65599         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65600
65601         * m4/longlong.m4: Renamed from ulonglong.m4.
65602         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65603         * m4/uintmax_t.m4: Removed.
65604
65605 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65606
65607         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65608         Port to Solaris 8, where 'sed' requires a space after the 'r'
65609         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65610         Redirect output to $tmp just once.
65611
65612 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65613
65614         * lib/addext.c (<errno.h>): Include.
65615         (errno): Declare if not defined.
65616         (addext): Work correctly when pathconf returns -1 and leaves
65617         errno alone because there is no limit.  Also, work even if
65618         pathconf returns a value greater than SIZE_MAX.
65619
65620 2001-08-12  Jim Meyering  <meyering@lucent.com>
65621
65622         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65623         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65624         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65625         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65626         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65627         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65628         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65629         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65630         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65631         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65632         utime.m4, utimes.m4, xstrtoumax.m4:
65633         Quote the first argument in each use of AC_DEFUN.
65634
65635 2001-08-12  Jim Meyering  <meyering@lucent.com>
65636
65637         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65638         Simply `return getcwd (NULL, 0);'.
65639         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65640         Use 1300 as initial value for length, not PATH_MAX.
65641
65642         * lib/pathmax.h: Clean up cpp syntax.
65643
65644 2001-08-12  Jim Meyering  <meyering@lucent.com>
65645
65646         * lib/gettimeofday.c: New file.
65647         * lib/gtod.h: New file.
65648         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65649
65650 2001-08-05  Jim Meyering  <meyering@lucent.com>
65651
65652         * m4/jm-macros.m4: Require autoconf-2.52.
65653
65654 2001-08-04  Jim Meyering  <meyering@lucent.com>
65655
65656         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65657         stmt, to get in sync with glibc.
65658
65659 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65660
65661         The following changes are from gettext 0.10.39 as maintained by
65662         Bruno Haible.
65663
65664         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65665         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65666         with inverted sense.  All uses changed.
65667
65668         * lib/mbswidth.c: Don't include <limits.h>.
65669         Include <stdlib.h> and <string.h> unconditionally.
65670         (iswcntrl, mbsinit, ISCNTRL): New macros.
65671         (mbsnwidth): Use K&R style function declarations.
65672         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65673         can optimize it when MB_CUR_MAX == 1.
65674         The width of control characters is zero, not 1.
65675
65676 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65677
65678         The following changes are from gettext 0.10.39 as maintained by
65679         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65680
65681         * m4/codeset.m4: Upgrade to serial AM1.
65682         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65683         all uses changed.  Quote first arg of AC_DEFUN.
65684         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65685
65686         * m4/iconv.m4: Upgrade to serial AM2.
65687         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65688         Add --with-libconv-prefix.
65689         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65690         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65691         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65692         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65693         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65694
65695         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65696         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65697         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65698         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65699         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65700         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65701         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65702         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65703         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65704
65705         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65706         string.h any more.
65707
65708         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65709         not the default value.
65710
65711         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65712         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65713         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65714         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65715         Also check for iswcntrl, used for wcwidth fallback.
65716         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65717         to Autoconf 2.13.
65718
65719 2001-08-03  Jim Meyering  <meyering@lucent.com>
65720
65721         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65722         as it was in the original.  Reported by Paul Eggert.
65723
65724 2001-07-16  Jim Meyering  <meyering@lucent.com>
65725
65726         * m4/gettimeofday.m4: New file.
65727         Prompted by a report from Bernhard Baehr.
65728
65729 2001-07-15  Jim Meyering  <meyering@lucent.com>
65730
65731         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65732         stuff. Now it's in ../Makefile.cfg.
65733
65734 2001-07-15  Jim Meyering  <meyering@lucent.com>
65735
65736         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65737         (BUILT_SOURCES): Add unlocked-io.h.
65738         (io_functions): Define.
65739         (unlocked-io.h): New rule.
65740         (DISTCLEANFILES): Add unlocked-io.h.
65741         (all-local): Depend on unlocked-io.h, to ensure it is created.
65742
65743         * lib/unlocked-io.hin: New file
65744
65745         * lib/regex.c: Update from glibc.
65746
65747 2001-07-05  Jim Meyering  <meyering@lucent.com>
65748
65749         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65750         recommendation.
65751         (libfetish_a_SOURCES): Put all .h files here instead.
65752         Remove a thus-exposed (better checks in automake) duplicate and
65753         two unnecessary .h files.
65754
65755 2001-07-04  Jim Meyering  <meyering@lucent.com>
65756
65757         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65758         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65759         distcheck failure.
65760
65761 2001-07-02  Jim Meyering  <meyering@lucent.com>
65762
65763         The following changes were prompted by suggestions from Bruno Haible.
65764
65765         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65766         is now generated.
65767         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65768         definition of EXTRA_DIST.
65769         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65770         ensure that the generated file is created/updated whenever the list
65771         of $(unlocked_functions) is changed.
65772         (jm-glibc-io.m4): New rule.
65773         (unlocked-io.h): New rule -- currently unused.
65774
65775 2001-06-24  Jim Meyering  <meyering@lucent.com>
65776
65777         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65778         unmatched right bracket, rather than kludging it with an extra,
65779         falsely-matching quote in a comment.  Patch by Akim Demaille.
65780
65781 2001-06-11  Jim Meyering  <meyering@lucent.com>
65782
65783         * lib/regex.c: Update from GNU libc.
65784
65785 2001-05-27  Jim Meyering  <meyering@lucent.com>
65786
65787         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65788         Check for ut_type in struct utmp.
65789
65790 2001-05-27  Jim Meyering  <meyering@lucent.com>
65791
65792         * lib/readutmp.h (UT_TYPE): Define.
65793
65794 2001-05-24  Jim Meyering  <meyering@lucent.com>
65795
65796         * lib/argmatch.c: Include "quote.h".
65797         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65798         quote function.  Reported by Göran Uddeborg.
65799
65800 2001-05-22  Jim Meyering  <meyering@lucent.com>
65801
65802         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65803         now that we use the package-supplied version unconditionally.
65804         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65805
65806 2001-05-21  Jim Meyering  <meyering@lucent.com>
65807
65808         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65809         shell syntax errors.
65810
65811 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65812
65813         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65814
65815 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65816
65817         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65818         Don't bother to check library strftime, since
65819         we'll be using our own my_strftime function anyway.
65820         Define my_strftime instead of strftime.
65821
65822 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65823
65824         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65825         which is not yet declared.
65826
65827 2001-05-15  Jim Meyering  <meyering@lucent.com>
65828
65829         * m4/regex.m4: Use proper quoting so brackets appear in the test
65830         program.
65831         Reported by, and with help from, Bruno Haible.
65832
65833 2001-05-13  Jim Meyering  <meyering@lucent.com>
65834
65835         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65836         undefined.
65837
65838 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65839
65840         dirname code cleanup.  base_name now behaves more compatibly
65841         with POSIX basename when given file names that have trailing
65842         slashes, and similarly for dir_name.  Add new primitives
65843         base_len and dir_len.  Put the directory-name-related decls
65844         into dirname.h.
65845
65846         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65847         * lib/backupfile.c (base_name): Likewise.
65848         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65849         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65850         * lib/makepath.c (strip_trailing_slashes): Likewise.
65851         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65852         ISSLASH): Likewise.
65853         * lib/rename.c (strip_trailing_slashes): Likewise.
65854         * lib/same.c (base_name): Likewise.
65855         * lib/stripslash.c (ISSLASH): Likewise.
65856
65857         * lib/addext.c: Include <dirname.h> after size_t is defined.
65858         * lib/backupfile.c: Likewise.
65859
65860         * lib/addext.c (addext): Use base_len to trim redundant
65861         trailing slashes instead of doing it ourselves.
65862         But do not trim the last slash if it is not redundant.
65863
65864         * lib/backupfile.c (find_backup_file_name,
65865         max_backup_version): Use base_len instead of rolling it ourselves.
65866         Handle the case of "" and (on DOS) "C:" correctly.
65867
65868         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65869         needed. Include <string.h>, <dirname.h>.
65870         (base_name): Allow file names ending in slashes, other than names
65871         that are all slashes.  In this case, return the basename followed
65872         by the slashes.  This is more general, and can be used in places
65873         where the original base_name purposely had an assertion failure.
65874         (base_len): New function.
65875
65876         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65877         Do not include <assert.h>; no longer needed.
65878         Include xalloc.h.
65879         (memrchr): Remove decl.
65880         (dir_name_r): Remove.
65881         (dir_len): Renamed from dirlen.  All callers changed.
65882         Rewrite in terms of base_name, for simplicity and consistency.
65883         (dir_name): Never return NULL.  All callers changed.
65884         Do not include <stdlib.h> in test program; no longer needed.
65885         return 0; is fine for test program.
65886
65887         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65888         New macros.
65889         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65890
65891         * lib/path-concat.c (path_concat): Use base_len to compute
65892         base length, not strlen; this means we cannot rely on memcpy
65893         to null-terminate.
65894
65895         * lib/same.c (STREQ): Remove.
65896         (same_name): Handle the case where the basename ends in trailing '/'.
65897
65898         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65899         a slash was stripped.  Do not strip the last slash after a
65900         file system prefix.
65901
65902 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65903
65904         * lib/Makefile.am (libfetish_a_SOURCES):
65905         Add strftime.c, since we now compile it on all hosts.
65906
65907         * lib/strftime.c (my_strftime):
65908         Define to nstrftime if emacs, but only if my_strftime is not defined.
65909         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65910         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65911         Add one more extra argument: a nanoseconds value.
65912         All uses changed.
65913         (ns): New macro.
65914         (my_strftime function): Add %N format.
65915         (emacs_strftimeu): Renamed from emacs_strftime,
65916         with extra ut argument.
65917
65918 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65919
65920         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65921
65922 2001-04-21  Jim Meyering  <meyering@lucent.com>
65923
65924         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65925         doesn't interfere.
65926
65927 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65928
65929         * m4/ftruncate.m4: Check for chsize.
65930         Link with ftruncate.o unconditionally if ftruncate is missing.
65931         This was required when cross-compiling to i586-mingw32msvc.
65932
65933 2001-04-08  Jim Meyering  <meyering@lucent.com>
65934
65935         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65936         recomputed; that's necessary when the offset spans a DST transition.
65937         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65938
65939 2001-04-02  Jim Meyering  <meyering@lucent.com>
65940
65941         * lib/regex.h, regex.c: Update from GNU libc.
65942
65943 2001-03-24  Jim Meyering  <meyering@lucent.com>
65944
65945         * m4/jm-macros.m4: Require autoconf-2.49d.
65946
65947 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65948
65949         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65950
65951 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65952
65953         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65954
65955 2001-03-17  Jim Meyering  <meyering@lucent.com>
65956
65957         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65958         now that the version in autoconf is equivalent.
65959         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65960
65961         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65962         Suggestion from Akim Demaille.
65963
65964         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65965         (jm_PREREQ_TEMPNAME): New function.
65966
65967 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65968
65969         * lib/tempname.c (uint64_t): Define to uintmax_t if
65970         not defined, and if UINT64_MAX is not defined.
65971         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65972         Reported by John David Anglin.
65973
65974 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65975
65976         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65977         resolve alias if codeset is empty.
65978         * lib/config.charset (BeOS): Use wildcard syntax.
65979
65980 2001-03-13  Jim Meyering  <meyering@lucent.com>
65981
65982         * lib/path-concat.c (path_concat)
65983         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65984         concatenating e.g., `C:' and `foo'.
65985         From Bruno Haible.
65986
65987 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65988
65989         * lib/localcharset.c (locale_charset): Don't use
65990         setlocale(LC_CTYPE,NULL). Don't return NULL.
65991         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65992
65993 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65994
65995         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65996         support for DOS/DJGPP.
65997
65998 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65999
66000         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66001         lacks mkstemp.  Compile our own tempname.c if we compile our own
66002         mkstemp.c, as mkstemp relies on tempname.
66003
66004 2001-03-01  Jim Meyering  <meyering@lucent.com>
66005
66006         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66007         AH_VERBATIM really does output its argument verbatim.
66008
66009 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66010
66011         * lib/Makefile.am (libfetish_a_SOURCES):
66012         Add dup-safer.c, fopen-safer.c.
66013         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66014
66015         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66016         * lib/unistd-safer.h: New files.
66017
66018 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66019
66020         The mkstemp replacement is taken from glibc 2.2.2, with some
66021         portability fixes for use outside glibc, as follows:
66022
66023         * lib/tempname.c (struct_stat64): New macro.
66024         (direxists, __gen_tempname): Use it.
66025         This avoids a portability problem with Solaris 8.
66026
66027         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66028         (<stddef.h>, <stdint.h>, <string.h>):
66029         Include only if STDC_HEADERS || _LIBC.
66030         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66031         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66032         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66033         (__set_errno): Define this macro if <errno.h> doesn't.
66034         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66035         Define these macros if <stdio.h> doesn't.
66036         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66037         Define these macros if <sys/stat.h>
66038         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66039         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66040         __xstat64): Define if not _LIBC.
66041         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66042         (__gen_tempname): Invoke gettimeofday only if
66043         HAVE_GETTIMEOFDAY || _LIBC;
66044         otherwise, fall back on plain "time".
66045         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66046
66047         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66048
66049         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66050
66051 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66052
66053         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66054
66055 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66056
66057         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66058         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66059         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66060         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66061
66062 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66063
66064         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66065         Remove workaround macros for hosts that have mbrtowc but not
66066         mbstate_t, as we now insist on proper declarations for both
66067         before using mbrtowc.
66068
66069 2001-02-17  Jim Meyering  <meyering@lucent.com>
66070
66071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66072         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66073         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66074         UnixWare 7.1.1.
66075
66076         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66077         rather than AC_CACHE_VAL.
66078
66079 2001-02-17  Jim Meyering  <meyering@lucent.com>
66080
66081         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66082         around included file name.
66083
66084         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66085
66086         * lib/strftime.c: Update from GNU libc (the only changes were to
66087         comments).
66088
66089 2001-02-17  Jim Meyering  <meyering@lucent.com>
66090
66091         * lib/regex.c: Update from libc.
66092
66093 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66094
66095         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66096         clash.
66097
66098 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66099
66100         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66101         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66102         Reported by Mark Hounschell via Paul Eggert.
66103
66104 2001-02-07  Jim Meyering  <meyering@lucent.com>
66105
66106         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66107
66108 2001-02-05  Jim Meyering  <meyering@lucent.com>
66109
66110         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66111         it includes the patch required for `large file' support with at least
66112         HP-UX's 10.20 /bin/cc.
66113
66114 2001-02-03  Jim Meyering  <meyering@lucent.com>
66115
66116         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66117         AS_IF, now that it works once again (mysteriously).
66118         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66119
66120 2001-01-30  Jim Meyering  <meyering@lucent.com>
66121
66122         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66123         * m4/chown.m4: Rename conftestchown to conftest.chown.
66124         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66125         s/conftestdir2/conftest.d2/.
66126         * m4/utimes.m4: s/conftestdata/conftest.data/
66127         Inspired by Pavel Roskin's change in autoconf.
66128
66129 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66130
66131         * lib/config.charset: Update for FreeBSD 4.2.
66132
66133 2001-01-27  Jim Meyering  <meyering@lucent.com>
66134
66135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66136         a use of AS_IF.
66137         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66138
66139 2001-01-26  Jim Meyering  <meyering@lucent.com>
66140
66141         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66142         quotearg.c includes it.
66143
66144 2001-01-26  Jim Meyering  <meyering@lucent.com>
66145
66146         * lib/quotearg.c: Include stddef.h.
66147         * lib/quote.c: Include stddef.h.
66148         Reported by Axel Kittenberger.
66149
66150         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66151         line in double quotes so that it evokes a better diagnostic.
66152         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66153         Reported by Axel Kittenberger.
66154
66155 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66156
66157         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66158         as if it was a `charset'.
66159
66160 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66161
66162         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66163         has const.
66164
66165 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66166
66167         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66168         to avoid a warning.  Add back 'const' to inptr.
66169
66170 2001-01-20  Jim Meyering  <meyering@lucent.com>
66171
66172         Be sure that headers are checked before used in code compiled
66173         for the type checks.
66174         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66175         In place of that, invoke jm_CHECK_ALL_TYPES.
66176         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66177         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66178         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66179         The check for ssize_t was mistakenly run before the test for unistd.h.
66180
66181         The configure-time check for stdbool.h was missing.
66182         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66183         (jm_PREREQ_HASH): New function.
66184
66185 2001-01-17  Jim Meyering  <meyering@lucent.com>
66186
66187         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66188         for autoconf-2.49c.
66189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66190
66191 2001-01-16  Jim Meyering  <meyering@lucent.com>
66192
66193         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66194         From Bruno Haible.
66195
66196 2001-01-14  Jim Meyering  <meyering@lucent.com>
66197
66198         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66199         foo and bar.  Create conftestdir/ in the script, not in the C code.
66200         Remove directories in the script, not in the C code.
66201         Remove conftestdir{,2} before trying to create the directory.
66202         Make the entire configure script fail if the mkdir fails.
66203
66204 2001-01-14  Jim Meyering  <meyering@lucent.com>
66205
66206         * lib/rename.c: New file.  From Volker Borchert.
66207         Include stdlib.h, string.h or strings.h, and xalloc.h.
66208         Use strip_trailing_slashes rather than open-coding it.
66209
66210 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66211
66212         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66213
66214 2001-01-03  Jim Meyering  <meyering@lucent.com>
66215
66216         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66217         of local `inptr' to avoid warning with some system declarations of
66218         iconv.
66219
66220 2001-01-02  Volker Borchert  <bt@teknon.de>
66221
66222         * m4/rename.m4: New file.
66223         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66224
66225 2001-01-01  Jim Meyering  <meyering@lucent.com>
66226
66227         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66228         even on systems with utmpx.h.  It's necessary for the declaration of
66229         utmp's ut_user member.  Reported by Andreas Jaeger.
66230
66231         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66232         available. They are required for the declarations of getgrgid and
66233         getpwuid resp.
66234         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66235         Reported by Andreas Jaeger.
66236
66237 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66238
66239         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66240         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66241         so `make install' also works in VPATH builds.
66242
66243 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66244
66245         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66246         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66247         can be used in subdirectories.
66248
66249 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66250
66251         * lib/modechange.c: Do not assume that mode_t uses the
66252         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66253         the other-execute bit of FOO even if S_IXOTH != 1.
66254
66255         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66256         WOTH, XOTH, ALLM): New macros.
66257         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66258          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66259         Use them.
66260         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66261         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66262         (mode_compile):
66263         No need to use uintmax_t; unsigned long is long enough.
66264         Don't bother to get suffix since we don't use it.
66265
66266 2000-12-26  Jim Meyering  <meyering@lucent.com>
66267
66268         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66269         better with autoheader.
66270
66271 2000-12-24  Jim Meyering  <meyering@lucent.com>
66272
66273         * lib/hash.c (is_prime): Return explicit boolean values.
66274         (hash_get_first): Return NULL to appease Irix5.6's 89.
66275         Reported by Nelson Beebe.
66276
66277 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66278
66279         * lib/localcharset.c (locale_charset): Add support for Win32.
66280
66281 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66282
66283         * lib/physmem.h, lib/physmem.c: New files.
66284
66285         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66286         (noinst_HEADERS): Add physmem.h.
66287
66288         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66289         't' for compatibility with Solaris 8 sort.
66290
66291 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66292
66293         * lib/config.charset: Add support for BeOS.
66294
66295 2000-12-17  Jim Meyering  <meyering@lucent.com>
66296
66297         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66298         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66299
66300 2000-12-16  Jim Meyering  <meyering@lucent.com>
66301
66302         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66303         N and M) would have treated it like `chown N:N FILE'.
66304
66305         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66306
66307 2000-12-16  Jim Meyering  <meyering@lucent.com>
66308
66309         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66310         SHELLS_FILE to a file name that's useful on djgpp systems.
66311         Include stdlib.h.
66312         (ADDITIONAL_DEFAULT_SHELLS): Define.
66313         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66314         Based mostly on a patch from Prashant TR.
66315
66316 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66317
66318         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66319         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66320         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66321
66322 2000-12-08  Andreas Schwab  <schwab@suse.de>
66323
66324         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66325         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66326
66327 2000-12-07  Jim Meyering  <meyering@lucent.com>
66328
66329         * lib/stripslash.c (ISSLASH): Define.
66330         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66331         `/'.
66332         From Prashant TR.
66333
66334         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66335         (dir_name_r): Declare this function as static.
66336         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66337         manifest itself on a name containing a mix of slashes and
66338         backslashes.
66339         Make this function work with names starting with a DOS-style
66340         drive letter and colon prefix.
66341         (dir_name): Append `.' if necessary.
66342         Based mostly on patches from Prashant TR and Eli Zaretskii.
66343
66344         * lib/dirname.h (dir_name_r): Remove prototype.
66345
66346 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66347
66348         * m4/off_t-format.m4: Remove this file.
66349         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66350
66351 2000-12-06  Jim Meyering  <meyering@lucent.com>
66352
66353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66354         replacement strtoull, we may well need the replacement strtoul, too.
66355         Check for declarations of strtoul and strtoull.
66356         Check for strtol.  Mainly as a cue to cause automake to include
66357         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66358         Check for limits.h -- strtol.c needs it.
66359
66360 2000-12-05  Jim Meyering  <meyering@lucent.com>
66361
66362         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66363
66364 2000-12-04  Jim Meyering  <meyering@lucent.com>
66365
66366         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66367         Also include memory.h, stdlib.h, unistd.h if appropriate.
66368         Reported by Andreas Jaeger (conflicting declaration of malloc).
66369
66370 2000-12-02  Jim Meyering  <meyering@lucent.com>
66371
66372         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66373         * m4/jm-macros.m4 (jm_MACROS): require it.
66374
66375 2000-12-02  Jim Meyering  <meyering@lucent.com>
66376
66377         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66378
66379 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66380
66381         * lib/memrchr.c: Include <config.h> before any system include file.
66382
66383 2000-11-30  Jim Meyering  <meyering@lucent.com>
66384
66385         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66386
66387 2000-11-30  Jim Meyering  <meyering@lucent.com>
66388
66389         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66390
66391 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66392
66393         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66394
66395 2000-11-26  Jim Meyering  <meyering@lucent.com>
66396
66397         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66398
66399 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66400
66401         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66402         size of (size_t) -1; it's not portable.
66403
66404 2000-11-17  Jim Meyering  <meyering@lucent.com>
66405
66406         * lib/strstr.c: Update from GNU libc.
66407
66408 2000-11-17  Akim Demaille  <akim@epita.fr>
66409
66410         * lib/obstack.h: Formatting changes.
66411         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66412         prevent type checking.
66413         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66414         cast the value to (void *): assigning a `foo *' to a `void *'
66415         variable is valid.
66416         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66417
66418 2000-11-16  Jim Meyering  <meyering@lucent.com>
66419
66420         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66421
66422 2000-11-11  Jim Meyering  <meyering@lucent.com>
66423
66424         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66425
66426 2000-11-10  Jim Meyering  <meyering@lucent.com>
66427
66428         * lib/obstack.h: Update from GNU libc.
66429         * lib/obstack.c: Likewise.
66430
66431 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66432
66433         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66434
66435 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66436
66437         * lib/getusershell.c (setusershell): Use rewind rather than
66438         fseek/fseeko, to avoid configuration hassles with fseeko.
66439         Don't bother opening SHELLS_FILE if shellstream is NULL;
66440         it's not necessary.
66441
66442 2000-11-05  Jim Meyering  <meyering@lucent.com>
66443
66444         * lib/makepath.h (make_dir): Declare.
66445         * lib/makepath.c (make_dir): Remove `static' attribute.
66446         Tweak a comment.
66447
66448 2000-11-04  Jim Meyering  <meyering@lucent.com>
66449
66450         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66451
66452 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66453
66454         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66455         last one in a bucket, advance to the next bucket.
66456
66457 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66458
66459         * lib/fnmatch.c: Do not comment out all the code if we are using
66460         the GNU C library, because in some cases we are replacing buggy
66461         code in the GNU C library itself.
66462
66463 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66464
66465         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66466         (regex_compile): Catch bogus \(\1\).
66467
66468 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66469
66470         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66471         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66472         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66473
66474 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66475
66476         * lib/error.h, getline.h, modechange.h:
66477         Remove "2000" from Copyright line, as the file hasn't been
66478         changed this year other than in the copyright notice.
66479
66480         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66481         was changed this year.
66482
66483 2000-10-29  Jim Meyering  <meyering@lucent.com>
66484
66485         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66486         renaming.
66487         * m4/ls-mntd-fs.m4: Likewise
66488
66489 2000-10-29  Jim Meyering  <meyering@lucent.com>
66490
66491         * lib/xstat.in: Fix grammar in comment.
66492
66493 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66494
66495         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66496         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66497         doesn't define __restrict_arr.
66498
66499 2000-10-28  Jim Meyering  <meyering@lucent.com>
66500
66501         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66502         (jm_PREREQ_MEMCHR): New function.
66503
66504 2000-10-28  Jim Meyering  <meyering@lucent.com>
66505
66506         * lib/memchr.c: Update from libc.
66507         Adjust for portability:
66508         [HAVE_STDLIB_H]: Include stdlib.h.
66509         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66510         Undef __memchr, too.
66511         [!weak_alias]: Define __memchr to memchr.
66512
66513         * lib/regex.c: Update from libc.
66514         * lib/regex.h: Likewise.
66515         * lib/getopt1.c: Likewise.
66516         * lib/memcmp.c: Likewise.
66517
66518         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66519         Avoid using fseek, when possible -- it's broken by design.
66520         Patch by Ulrich Drepper.
66521
66522 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66523
66524         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66525         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66526         Giving in to popular pressure to shut up the compiler with casts.
66527
66528 2000-10-26  Jim Meyering  <meyering@lucent.com>
66529
66530         * lib/strftime.c: Update from libc.
66531
66532 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66533
66534         * regex.c: More `unsigned char' -> `re_char' changes.
66535         Also change several `int' into `re_wchar_t'.
66536         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66537         (PUSH_FAILURE_POINTER): Don't cast any more.
66538         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66539         We want GCC to complain, since this piece of code makes
66540         re_match non-reentrant, which *should* be fixed.
66541         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66542         (EXTEND_BUFFER): Use RETALLOC.
66543         (SET_LIST_BIT): Don't cast.
66544         (re_wchar_t): New type.
66545         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66546         that those two functions will always properly return.
66547         (IMMEDIATE_QUIT_CHECK): Cast to void.
66548         (analyse_first): Use recursion rather than an explicit stack.
66549         (re_compile_fastmap): Can't fail anymore.
66550         (re_search_2): Don't check re_compile_fastmap for failure.
66551         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66552         Now also sets the new value (passed in a new argument).
66553         (re_match_2_internal): Use it.
66554         Also, use a new var `reg' of type size_t when looping through regs
66555         rather than reuse the inappropriate `mcnt'.
66556
66557 2000-10-25  Jim Meyering  <meyering@lucent.com>
66558
66559         * lib/obstack.c: Update from libc.
66560
66561 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66562
66563         * regex.c (regex_compile): Change the way of handling a range from
66564         a char less than 256 to a char not less than 256.
66565
66566 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66567
66568         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66569         NT-Emacs only.
66570         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66571         so that re_search functions only quit when callers expect them to.
66572
66573 2000-10-23  Jim Meyering  <meyering@lucent.com>
66574
66575         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66576         wrong.  That set_locale call must not have any side effects.
66577         From Paul Eggert.
66578
66579 2000-10-22  Jim Meyering  <meyering@lucent.com>
66580
66581         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66582         [CYCLIC]: Remove now-unused definition.
66583
66584         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66585         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66586         Suggestion from Ulrich Drepper.
66587
66588 2000-10-21  Jim Meyering  <meyering@lucent.com>
66589
66590         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66591         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66593
66594 2000-10-21  Jim Meyering  <meyering@lucent.com>
66595
66596         * lib/dirname.c (memrchr): Declare if necessary.
66597         (dir_name): Remove the restriction that there be no
66598         trailing slashes.  Now, this code skips past them, effectively
66599         ignoring them.
66600         [TEST_DIRNAME] (main): New unit tests.
66601
66602         * lib/memrchr.c: New file from GNU libc.
66603         Undef __memrchr, too.
66604         [!weak_alias]: Define __memrchr to memrchr.
66605         Guard weak_alias use with `#ifdef weak_alias'.
66606
66607 2000-10-21  Jim Meyering  <meyering@lucent.com>
66608
66609         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66610         (dir_name): Use dir_name_r.
66611         * lib/dirname.h (dir_name_r): Declare it.
66612
66613 2000-10-17  Jim Meyering  <meyering@lucent.com>
66614
66615         * lib/quote.h (PARAMS): Define and use.
66616         Reported by Akim Demaille.
66617
66618         * lib/getopt.c: Update from libc.
66619
66620 2000-10-16  Jim Meyering  <meyering@lucent.com>
66621
66622         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66623         setlocale.
66624         From Jan Fedak.
66625
66626 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66627
66628         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66629
66630 2000-09-25  Jim Meyering  <meyering@lucent.com>
66631
66632         * lib/md5.h (rol): Define (from GnuPG).
66633
66634         * lib/sha.c: Give credit (GnuPG) where due.
66635         (M): Use rol rather than open-coding it.
66636         Add a FIXME comment.
66637
66638 2000-09-21  Jim Meyering  <meyering@lucent.com>
66639
66640         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66641         Reported by Michael Stone.
66642
66643 2000-09-20  Jim Meyering  <meyering@lucent.com>
66644
66645         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66646         (noinst_HEADERS): Add sha.h.
66647         Based on code from Scott G. Miller and from GnuPG.
66648
66649 2000-09-18  Jim Meyering  <meyering@lucent.com>
66650
66651         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66652         LIBS. Otherwise, everyone ends up linking with -lelf for some
66653         configurations.
66654         Reported by Mike Stone.
66655
66656 2000-09-15  Jim Meyering  <meyering@lucent.com>
66657
66658         * lib/regex.c: Update from libc.
66659
66660 2000-09-10  Jim Meyering  <meyering@lucent.com>
66661
66662         * lib/getopt.c (_getopt_internal): Update from glibc.
66663
66664 2000-09-09  Jim Meyering  <meyering@lucent.com>
66665
66666         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66667         think it should be used as a general replacement for isascii.
66668         * lib/fnmatch.c: Likewise.
66669         * lib/mbswidth.c: Likewise
66670         * lib/regex.c: Likewise.
66671
66672         Don't use atoi.
66673         * lib/userspec.c: Include sys/param.h and limits.h.
66674         Include xstrtol.h.
66675         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66676         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66677         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66678         UID, GID.  Check range.
66679
66680 2000-09-06  Jim Meyering  <meyering@lucent.com>
66681
66682         * lib/getopt.c (_getopt_internal): Update from glibc.
66683
66684 2000-08-30  Jim Meyering  <meyering@lucent.com>
66685
66686         * lib/strftime.c: Merge in changes from GNU libc.
66687
66688 2000-08-26  Jim Meyering  <meyering@lucent.com>
66689
66690         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66691         * m4/fpending.m4: New file.
66692
66693 2000-08-26  Jim Meyering  <meyering@lucent.com>
66694
66695         * lib/closeout.c: Include "__fpending.h".
66696         (close_stdout_status): Return right away if there's nothing to flush.
66697
66698         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66699         * lib/__fpending.c: New file.
66700         * lib/__fpending.h: New file.
66701
66702 2000-08-20  Jim Meyering  <meyering@lucent.com>
66703
66704         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66705         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66706         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66707
66708 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66709
66710         Improve fileutils installation on systems where running
66711         programs (like install) can't be unlinked.
66712         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66713         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66714
66715 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66716
66717         Standardize on "memory exhausted" instead of "Memory exhausted"
66718         or "virtual memory exhausted".
66719         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66720         "virtual memory exhausted".
66721         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66722         our own message.
66723         * lib/userspec.c (parse_user_spec): Likewise.
66724         * lib/bumpalloc.h: comment fix
66725         * lib/same.c, userspec.c: Include xalloc.h.
66726
66727         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66728         not char *const and pointing to a constant array.
66729         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66730         (xrealloc): Comment fix.
66731
66732         * lib/userspec.c (parse_user_spec):
66733         Don't translate a message until just before returning,
66734         to avoid unnecessary translation.
66735
66736 2000-08-07  Jim Meyering  <meyering@lucent.com>
66737
66738         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66739         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66740         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66741         getgroups.c, gethostname.c, getopt.h, group-member.c,
66742         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66743         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66744         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66745         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66746         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66747         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66748         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66749         yesno.c: Back out Copyright date changes for each file with no change
66750         this year.  This eases coordination with other programs using the same
66751         source code modules.  From Paul Eggert.
66752
66753 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66754
66755         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66756         not char, for compatibility with glibc 2.1.3 strftime.c.
66757
66758 2000-08-03  Greg McGary  <greg@mcgary.org>
66759
66760         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66761         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66762         (EXTEND_BUFFER): Use them.
66763
66764 2000-08-01  Jim Meyering  <meyering@lucent.com>
66765
66766         * lib/dirname.c (ISSLASH): Define.
66767         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66768         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66769         both `\' and `/' may be use as path separators.
66770         Based on a patch from Prashant TR.
66771
66772 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66773
66774         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66775         slot vector a constant, since it might get modified.
66776
66777 2000-07-31  Jim Meyering  <meyering@lucent.com>
66778
66779         * lib/xmalloc.c: Use `virtual memory exhausted', not
66780         `Memory exhausted'.
66781         * lib/obstack.c (print_and_abort): Likewise.
66782
66783 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66784
66785         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66786         buffer, so that the caller can always quote one small
66787         component of a "memory exhausted" message in slot 0.
66788         From a suggestion by Jim Meyering.
66789
66790 2000-07-30  Jim Meyering  <meyering@lucent.com>
66791
66792         * lib/makepath.c (make_path): Quote the other instance, too.
66793
66794         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66795         (STATIC_BUF_SIZE): Define.
66796         (quotearg_n_options): Use only statically allocated storage when
66797         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66798         than STATIC_BUF_SIZE.
66799
66800 2000-07-29  Jim Meyering  <meyering@lucent.com>
66801
66802         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66803         * lib/dirname.c (dir_name): Likewise.
66804
66805         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66806         `/'.
66807
66808         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66809         (dir_name): Assert that there are no trailing slashes.
66810
66811 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66812
66813         * lib/mbswidth.h (mbswidth): Add a flags argument.
66814         (mbswidth): New declaration.
66815         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66816         * lib/mbswidth.c (mbswidth): Add a flags argument.
66817         (mbsnwidth): New function.
66818
66819 2000-07-24  Jim Meyering  <meyering@lucent.com>
66820
66821         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66822
66823 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66824
66825         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66826
66827 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66828
66829         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66830         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66831         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66832         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66833         invoke multibyte primitives.
66834
66835 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66836
66837         * lib/quotearg.c:
66838         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66839         so that mbstate_t is always defined.
66840
66841         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66842         be 1 in at least one GCC installation, and this configuration
66843         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66844         performance on hosts that have mbrtowc but have only unibyte
66845         locales, but I assume these hosts are rare.
66846
66847 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66848
66849         * lib/mbswidth.c (_XOPEN_SOURCE):
66850         Don't define; this causes problems on Solaris 7.
66851         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66852
66853 2000-07-23  Jim Meyering  <meyering@lucent.com>
66854
66855         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66856         too: getgrgid, getpwuid, getuid.
66857
66858 2000-07-23  Jim Meyering  <meyering@lucent.com>
66859
66860         * lib/basename.c (base_name): Add an assertion.
66861
66862 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66863
66864         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66865         shadow its mbsinit function.
66866
66867 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66868
66869         * lib/mbswidth.h: New file.
66870         * lib/mbswidth.c: New file.
66871         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66872         (noinst_HEADERS): Add mbswidth.h.
66873
66874 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66875
66876         * lib/config.charset: Add support for FreeBSD. Improve support for
66877         HP-UX and IRIX 6.
66878
66879 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66880
66881         * m4/mbswidth.m4: New file.
66882         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66883
66884 2000-07-15  Jim Meyering  <meyering@lucent.com>
66885
66886         * lib/makepath.c: Include quote.h.
66887         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66888         corresponding argument in a `quote (...)' call.
66889         Give better diagnostics.
66890
66891         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66892         (noinst_HEADERS): Add quote.h.
66893
66894         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66895         from tar's src/misc.c.
66896         * lib/quote.h: New file.  Prototypes for same.
66897
66898 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66899
66900         From a suggestion by Bruno Haible.
66901         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66902         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66903         to decide whether to define the BeOS workaround macro;
66904         this adjusts to the change to AC_MBSTATE_T.
66905
66906 2000-07-14  Jim Meyering  <meyering@lucent.com>
66907
66908         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66909         jm_AC_TYPE_UINTMAX_T.
66910
66911 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66912
66913         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66914
66915         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66916         quotearg_buffer_restyled): Add support for
66917         clocale_quoting_style.  Undo previous change to
66918         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66919         and "{RIGHT QUOTATION MARK}" msgids.
66920
66921 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66922
66923         From a suggestion by Bruno Haible.
66924         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66925         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66926         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66927         and mbstate_t, to a single-part test that simply defines mbstate_t.
66928         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66929         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66930
66931 2000-07-10  Jim Meyering  <meyering@lucent.com>
66932
66933         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66934
66935         * m4/gnu-source.m4: Output to confdefs.h directly.
66936         Suggestion from Akim Demaille.
66937
66938 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66939
66940         The old behavior of quoting `like this' doesn't look good with
66941         newer, ISO-style fonts.  See:
66942         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66943
66944         Instead, quote "like this" by default.  Let the translator
66945         tailor the locale-specific quoting behavior by providing
66946         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66947
66948         * lib/quotearg.c (N_): New macro.
66949         (gettext_default): New function.
66950         (quotearg_buffer_restyled): Use
66951         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66952         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66953
66954 2000-07-09  Jim Meyering  <meyering@lucent.com>
66955
66956         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66957         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66958
66959         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66961
66962 2000-07-09  Jim Meyering  <meyering@lucent.com>
66963
66964         * lib/Most files: Update copyright dates to include 2000.
66965
66966 2000-07-08  Jim Meyering  <meyering@lucent.com>
66967
66968         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66969         if not defined.
66970         (xgethostname): Remove now-unnecessary #ifdef.
66971         Move declaration of `err' into loop where it's used.
66972
66973 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66974         and Bruno Haible  <haible@clisp.cons.org>
66975
66976         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66977         only if the test for an object-type mbstate_t fails.  This
66978         prevents us from mistakenly reporting that mbstate_t is a
66979         system object type after we "#define mbstate_t int" to work
66980         around its lack.
66981
66982 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66983         and Bruno Haible  <haible@clisp.cons.org>
66984
66985         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66986
66987 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66988
66989         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66990         to strerror_r.
66991         Include <ctype.h> for use of isalpha.
66992
66993 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66994
66995         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66996         by allocating a larger buffer. Test the gethostname return value for
66997         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66998         returns an error and ENAMETOOLONG isn't defined.
66999
67000 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67001
67002         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67003         dimension.
67004
67005 2000-07-04  Jim Meyering  <meyering@lucent.com>
67006
67007         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67008         of the deprecated AC_CHECKING.
67009
67010 2000-07-04  Jim Meyering  <meyering@lucent.com>
67011
67012         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67013         Reported by Bruno Haible.
67014
67015 2000-07-04  Jim Meyering  <meyering@lucent.com>
67016
67017         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67018         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67019         lacks mbrtowc.
67020
67021 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67022
67023         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67024         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67025
67026 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67027         and Bruno Haible  <haible@clisp.cons.org>
67028
67029         * lib/quotearg.c (mbrtowc):
67030         Assign to *pwc, and return 1 only if result is nonzero.
67031         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67032
67033 2000-07-03  Jim Meyering  <meyering@lucent.com>
67034
67035         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67036
67037 2000-07-03  Jim Meyering  <meyering@lucent.com>
67038
67039         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67040         This is necessary to get a definition of e.g., UTMP_FILE on
67041         HP-UX 10.20.
67042         From Bob Proulx.
67043
67044 2000-07-02  Jim Meyering  <meyering@lucent.com>
67045
67046         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67047
67048         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67049         AC_LIBOBJ(function_name).
67050         * m4/chown.m4: Likewise.
67051         * m4/fnmatch.m4: Likewise.
67052         * m4/ftruncate.m4: Likewise.
67053         * m4/getgroups.m4: Likewise.
67054         * m4/getline.m4: Likewise.
67055         * m4/group-member.m4: Likewise.
67056         * m4/jm-macros.m4: Likewise.
67057         * m4/lstat.m4: Likewise.
67058         * m4/malloc.m4: Likewise.
67059         * m4/memcmp.m4: Likewise.
67060         * m4/nanosleep.m4: Likewise.
67061         * m4/putenv.m4: Likewise.
67062         * m4/realloc.m4: Likewise.
67063         * m4/regex.m4: Likewise.
67064         * m4/stat.m4: Likewise.
67065         * m4/strftime.m4: Likewise.
67066
67067 2000-07-02  Jim Meyering  <meyering@lucent.com>
67068
67069         * lib/quotearg.c (mbstate_t): Don't define here.
67070
67071 2000-07-02  Jim Meyering  <meyering@lucent.com>
67072
67073         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67074
67075 2000-07-01  Jim Meyering  <meyering@lucent.com>
67076
67077         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67078
67079 2000-07-01  Jim Meyering  <meyering@lucent.com>
67080
67081         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67082         problem.
67083
67084 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67085
67086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67087         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67088
67089 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67090
67091         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67092         per change in ../m4/ls-mntd-fs.m4.
67093         (read_filesystem_list): Ignore symbolic links.
67094
67095 2000-06-29  Jim Meyering  <meyering@lucent.com>
67096
67097         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67098         for declaration of strcmp.
67099
67100         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67101
67102         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67103         Avoid warning by casting result to `char *' to remove `const'.
67104
67105 2000-06-28  Jim Meyering  <meyering@lucent.com>
67106
67107         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67108         included by quotearg.c, for which we perform this test.  From
67109         Bruno Haible.
67110
67111 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67112
67113         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67114         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67115         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67116
67117 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67118
67119         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67120
67121 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67122
67123         savedir now sets errno on failure and invokes xmalloc to get memory.
67124         Fix a couple of other minor bugs while we're at it.
67125
67126         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67127         (NAMLEN): Remove macro.
67128         (malloc, realloc): Remove decls.
67129         (stpcpy): Likewise.
67130         ("xalloc.h"): Include.
67131         (NAME_SIZE_DEFAULT): New macro.
67132         (savedir): Use xmalloc / xrealloc to allocate memory.
67133         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67134         Skip "" directory entries.
67135         Use strlen to calculate directory entry length, since the old method
67136         is rarely used these days and isn't worth supporting.
67137         Don't use a pointer after freeing it.
67138         Check for integer overflow when calculating allocation size.
67139         Use memcpy to copy entries, instead of stpcpy.
67140         Set errno properly when returning NULL.
67141         Check for readdir error.
67142
67143 2000-06-26  Jim Meyering  <meyering@lucent.com>
67144
67145         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67146
67147 2000-06-25  Jim Meyering  <meyering@lucent.com>
67148
67149         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67150         Linux header bug when _XOPEN_SOURCE is defined to 500.
67151
67152 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67153
67154         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67155         deficiency.
67156
67157 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67158
67159         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67160         Include xalloc.h.
67161         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67162
67163 2000-06-24  Jim Meyering  <meyering@lucent.com>
67164
67165         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67166         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67167         for which strerror does return char*, but which lacks a conveniently
67168         accessible declaration of the function.  If the compile-test says
67169         strerror_r doesn't work, then resort to a `run'-test that works on
67170         BeOS and segfaults on DEC Unix.
67171
67172 2000-06-24  Jim Meyering  <meyering@lucent.com>
67173
67174         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67175
67176 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67177
67178         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67180
67181 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67182
67183         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67184         (mbrtowc, mbstate_t): Define substitutes if
67185         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67186         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67187         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67188
67189 2000-06-23  Jim Meyering  <meyering@lucent.com>
67190
67191         * m4/afs.m4: Add missing AC_MSG_RESULT.
67192         Reported by Bruno Haible.
67193
67194         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67195         Suggestion from Bruno Haible.
67196
67197 2000-06-23  Jim Meyering  <meyering@lucent.com>
67198
67199         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67200
67201 2000-06-21  Jim Meyering  <meyering@lucent.com>
67202
67203         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67204
67205 2000-06-21  Jim Meyering  <meyering@lucent.com>
67206
67207         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67208         (noinst_HEADERS): Add getstr.h.
67209
67210         * lib/getline.c (getstr): Move into a separate file.
67211         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67212         the following changes: new parameter, delim2; both delim[12]
67213         parameters have type `int', not `char'.  The latter would lose
67214         with 8-bit delimiters.
67215         * lib/getstr.h: New file.
67216
67217 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67218
67219         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67220         than 1024, return a memory chunk of least possible size, instead
67221         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67222         Use free/xmalloc instead of xrealloc to avoid copying for very long
67223         paths.
67224
67225 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67226
67227         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67228         the empty string.
67229
67230 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67231
67232         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67233         address, not strdup.  Include <stdlib.h> and don't declare free().
67234
67235 2000-06-19  Jim Meyering  <meyering@lucent.com>
67236
67237         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67238
67239 2000-06-18  Jim Meyering  <meyering@lucent.com>
67240
67241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67242
67243         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67244         `checking whether...' message to be consistent with that of the
67245         lstat test.
67246
67247 2000-06-18  Jim Meyering  <meyering@lucent.com>
67248
67249         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67250         Besides, these days every porting target provides a mkdir function.
67251
67252         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67253         needed. (this snippet comes from src/system.h).
67254
67255 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67256
67257         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67258
67259 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67260
67261         * lib/human.c (adjust_value): New function.
67262         (human_readable_inexact): Apply rounding style even when
67263         printing approximate values.
67264
67265 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67266
67267         * lib/human.c (human_readable_inexact): Allow an input block
67268         size that is not a multiple of the output block size, and vice versa.
67269         Reported by Piergiorgio Sartor.
67270
67271 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67272
67273         * lib/getdate.y (get_date): Apply relative times after time
67274         zone indicator, not before.  Reported by Todd A. Jacobs.
67275
67276 2000-06-13  Jim Meyering  <meyering@lucent.com>
67277
67278         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67279
67280         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67281
67282 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67283
67284         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67285
67286 2000-06-12  Jim Meyering  <meyering@lucent.com>
67287
67288         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67289         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67290         optional argument.
67291         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67292         the optional argument, `lib'.
67293
67294 2000-06-08  Jim Meyering  <meyering@lucent.com>
67295
67296         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67297
67298 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67299
67300         Rewrite largefile configuration so that we don't need to run
67301         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67302         AC_CANONICAL_HOST in configure.in -- jmm]
67303
67304         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67305         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67306         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67307         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67308         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67309         All uses changed.
67310         Instead of inspecting the output of getconf, try to compile the
67311         test program without and with the macro definition.
67312         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67313         for getconf.  Instead, check for the needed flags by compiling
67314         test programs.
67315
67316 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67317
67318         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67319
67320 2000-06-04  Jim Meyering  <meyering@lucent.com>
67321
67322         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67323         SunOS 4.1.4 for which gid_t is an unsigned type.
67324
67325 2000-06-03  Jim Meyering  <meyering@lucent.com>
67326
67327         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67328         now that autoconf requires that.
67329
67330         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67331         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67332         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67333
67334 2000-06-03  Jim Meyering  <meyering@lucent.com>
67335
67336         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67337
67338 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67339
67340         * m4/glibc21.m4: New file.
67341         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67342
67343 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67344
67345         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67346         newer, don't install charset.alias.
67347         * lib/config.charset: Change the Linux/glibc rules so they become empty
67348         on glibc-2.1 or newer.
67349
67350 2000-06-02  Jim Meyering  <meyering@lucent.com>
67351
67352         * lib/mountlist.c: Back out last change.  Instead, do this...
67353         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67354         me_dummy member using the same `ignore'-testing code.
67355         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67356         fs_type strings.
67357         From Mark D. Roth.
67358
67359 2000-05-29  Jim Meyering  <meyering@lucent.com>
67360
67361         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67362         mounts with the `ignore' attribute.  Based on a patch from
67363         Mark D. Roth.
67364
67365 2000-05-28  Jim Meyering  <meyering@lucent.com>
67366
67367         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67368         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67369         * m4/stat.m4: Likewise.
67370         * m4/lstat.m4: Likewise.
67371         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67372
67373         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67374         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67375
67376 2000-05-26  Jim Meyering  <meyering@lucent.com>
67377
67378         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67379
67380 2000-05-24  Jim Meyering  <meyering@lucent.com>
67381
67382         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67383         autoconf requires that.
67384         * m4/lib-check.m4: Likewise.
67385         * m4/jm-macros.m4: Likewise.
67386         * m4/strftime.m4: Likewise.
67387
67388         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67389         AC_CHECK_DECLS, now that autoconf requires that.
67390
67391 2000-05-22  Jim Meyering  <meyering@lucent.com>
67392
67393         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67394         * m4/lstat.m4: Likewise.
67395
67396 2000-05-22  Jim Meyering  <meyering@lucent.com>
67397
67398         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67399
67400 2000-05-20  Jim Meyering  <meyering@lucent.com>
67401
67402         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67403         (jm_PREREQ): Use it.
67404
67405 2000-05-18  Jim Meyering  <meyering@lucent.com>
67406
67407         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67408         back, too, since it may have been modified by allocate_entry.
67409         (hash_delete): Rewrite to use neither the assignment operator
67410         nor the comma operator in an if-expression.
67411
67412 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67413
67414         * lib/closeout.c:
67415         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67416         Remove; no longer needed.
67417         "quotearg.h": Add include.
67418         (file_name): Do not bother to explicitly initialize to NULL; it's less
67419         efficient on some hosts.
67420         (close_stdout_status): Remove test as to whether stdout was already
67421         closed; it breaks for the case "echo x | sort >&-".
67422         Quote file name colons.
67423         Do not assume that _("write error") lacks format strings.
67424
67425 2000-05-15  Jim Meyering  <meyering@lucent.com>
67426
67427         * lib/version-etc.c (version_etc_copyright): Update the copyright
67428         string used in all --version output.
67429
67430 2000-05-14  Jim Meyering  <meyering@lucent.com>
67431
67432         * lib/closeout.c (close_stdout_set_file_name): New function.
67433         (close_stdout_status): Use new file-scoped global.
67434         Return right away if fstat says the stdout file descriptor is invalid.
67435         * lib/closeout.h (close_stdout_set_file_name): Declare.
67436
67437 2000-05-10  Jim Meyering  <meyering@lucent.com>
67438
67439         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67440         (close_stdout_set_status): New function.
67441         * lib/closeout.h (close_stdout_set_status): Declare.
67442
67443 2000-05-09  Jim Meyering  <meyering@lucent.com>
67444
67445         * m4/gettext.m4: Rename this...
67446         * m4/libintl.m4: ...to this.
67447
67448 2000-05-08  Jim Meyering  <meyering@lucent.com>
67449
67450         * lib/long-options.c: Don't include closeout.h.
67451         (parse_long_options): Don't call close_stdout for --version.
67452
67453 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67454
67455         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67456         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67457         2.1.3 bug.  This avoids a clash when files like regex.c define
67458         _GNU_SOURCE.
67459
67460 2000-05-06  Jim Meyering  <meyering@lucent.com>
67461
67462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67463         (AC_REPLACE_FUNCS): Add strnlen.
67464
67465         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67466         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67467
67468         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67469         AC_SEARCH_LIBS call for nanosleep.
67470         (LIB_NANOSLEEP): Set and AC_SUBST.
67471
67472 2000-05-06  Jim Meyering  <meyering@lucent.com>
67473
67474         * lib/strnlen.c: Undefine __strnlen and strnlen.
67475         [!weak_alias]: Define __strnlen to strnlen.
67476
67477         * lib/atexit.c: New file, from libiberty.
67478
67479 2000-05-06  Jim Meyering  <meyering@lucent.com>
67480
67481         * lib/closeout.c (close_stdout_status): Also check for errors on the
67482         stderr stream.
67483
67484 2000-05-05  Jim Meyering  <meyering@lucent.com>
67485
67486         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67487         AC_SEARCH_LIBS call for clock_gettime.
67488         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67489
67490         * m4/search-libs.m4: Update from autoconf.
67491
67492         su doesn't work on Solaris 2.6.
67493         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67494         <shadow.h>.  Reported by Dragos Harabor.
67495
67496 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67497
67498         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67499         memcpy instead of xmalloc, xrealloc, path_concat.
67500         (locale_charset): Treat empty environment variables as absent.
67501         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67502
67503 2000-05-04  Jim Meyering  <meyering@lucent.com>
67504
67505         * lib/getopt.c: Update from glibc.
67506         * lib/obstack.c: Likewise.
67507         * lib/obstack.h: Likewise.
67508         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67509         file
67510
67511         * lib/regex.h: Likewise.
67512         * lib/strndup.c: Likewise.
67513         * lib/strnlen.c: New file, from glibc.
67514
67515 2000-05-03  Jim Meyering  <meyering@lucent.com>
67516
67517         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67518
67519 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67520
67521         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67522         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67523         compile-time test, rather than inspecting host and OS, to
67524         decide whether to define _LARGEFILE_SOURCE.
67525
67526 2000-05-01  Jim Meyering  <meyering@lucent.com>
67527
67528         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67529
67530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67531         Based on a patch from Bruno Haible.
67532
67533 2000-05-01  Jim Meyering  <meyering@lucent.com>
67534
67535         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67536
67537 2000-04-29  Jim Meyering  <meyering@lucent.com>
67538
67539         * lib/path-concat.c: Declare strdup only if it's not defined.
67540         * lib/canon-host.c: Likewise.
67541
67542 2000-04-28  Jim Meyering  <meyering@lucent.com>
67543
67544         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67545         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67546         is included first, then limits.h is included by locale.h by libintl.h.
67547         From John David Anglin.
67548
67549 2000-04-25  Jim Meyering  <meyering@lucent.com>
67550
67551         * lib/makepath.c (S_IRWXUGO): Define.
67552         (make_path): Always perform explicit chmod if MODE specifies any
67553         of the `special' permission bits.  Prompted by a bug report against
67554         install from Mate Wierdl and Joost van Baal.
67555
67556 2000-04-18  Jim Meyering  <meyering@lucent.com>
67557
67558         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67559         (jm_PREREQ): Use it.
67560
67561 2000-04-18  Jim Meyering  <meyering@lucent.com>
67562
67563         * lib/README: New file.
67564
67565         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67566         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67567
67568 2000-04-17  Jim Meyering  <meyering@lucent.com>
67569
67570         Get it right :-)
67571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67572         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67573         Suggestion from Akim Demaille.
67574
67575 2000-04-17  Jim Meyering  <meyering@lucent.com>
67576
67577         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67578         the definition of it to rpl_strftime also defined-away the system's
67579         declaration.
67580
67581 2000-04-15  Jim Meyering  <meyering@lucent.com>
67582
67583         Use `C' to denote so-called `contiguous' files, the same way
67584         that tar does.
67585         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67586         (ftypelet): Use S_ISCTG.
67587         From Michael Deutschmann.
67588
67589 2000-04-14  Jim Meyering  <meyering@lucent.com>
67590
67591         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67592         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67593         clobbered.
67594
67595 2000-04-14  Jim Meyering  <meyering@lucent.com>
67596
67597         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67598
67599 2000-04-13  Jim Meyering  <meyering@lucent.com>
67600
67601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67602         AH_VERBATIM to insert required #ifndef into config.h.in.
67603         Suggestion from Akim Demaille.
67604
67605 2000-04-12  Jim Meyering  <meyering@lucent.com>
67606
67607         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67608         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67609         Christian Krackowizer.
67610
67611         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67612         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67613         (AC_SYS_LARGEFILE): Require.
67614         (AM_C_PROTOTYPES): Require.
67615
67616 2000-04-08  Jim Meyering  <meyering@lucent.com>
67617
67618         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67619         names don't conflict.  Reported by Eli Zaretskii.
67620
67621 2000-04-07  Jim Meyering  <meyering@lucent.com>
67622
67623         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67624         sys/types.h, to work around system header problems on AIX 3.2.5.
67625         From Bruno Haible.
67626
67627 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67628
67629         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67630         bug.  Deal with the different error behavior of Irix iconv.
67631
67632 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67633
67634         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67635         IRIX if the installer said otherwise.
67636
67637 2000-04-05  Jim Meyering  <meyering@lucent.com>
67638
67639         Portability tweaks required for ultrix4.3.
67640         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67641         (jm_CHECK_DECLS): Add getutent to the list of functions.
67642         (_jm_DECL_HEADERS): Add utmpx.h.
67643         From John David Anglin.
67644
67645         * m4/strftime.m4: Back out the 2000-04-02 change.
67646         Instead of that change, simply undefine putenv in the test program.
67647
67648 2000-04-05  Jim Meyering  <meyering@lucent.com>
67649
67650         Portability tweaks required for ultrix4.3.
67651         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67652         getutent.
67653         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67654         * lib/canon-host.c: Declare strdup.
67655         * lib/path-concat.c: Likewise.
67656         From John David Anglin.
67657
67658 2000-04-04  Jim Meyering  <meyering@lucent.com>
67659
67660         Be more DOS 8.3-friendly.
67661         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67662         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67663         * lib/Makefile.am: Reflect renaming.
67664         Reported by Eli Zaretskii.
67665
67666         Use a temporary file name that won't clash with `charset.alias'
67667         in the DOS 8.3 name space.
67668         * lib/Makefile.am (charset_tmp): Define.
67669         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67670         (uninstall-local): Likewise.
67671         Reported by Eli Zaretskii.
67672
67673 2000-04-03  Jim Meyering  <meyering@lucent.com>
67674
67675         * m4/gettext.m4: Fix typo in comment.
67676
67677         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67678         textutils/configure.in).  Suggestion from Paul Eggert.
67679         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67680
67681 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67682
67683         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67684         variable in the shell rather than using putenv, which isn't
67685         portable.  This avoids the configure-time inter-test dependency
67686         on the potentially-renamed putenv function.
67687
67688 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67689
67690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67691         before checking struct stat.st_blksize, so that
67692         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67693
67694 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67695
67696         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67697         since strftime.c uses HAVE_STRFTIME to decide whether to use
67698         the underlying strftime.
67699
67700 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67701
67702         * lib/time/strftime.c (my_strftime): Make sure we call the system
67703         strftime, not ourselves, when invoking the underlying strftime.
67704
67705 2000-03-24  Jim Meyering  <meyering@lucent.com>
67706
67707         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67708         (charset_alias): Define.
67709         (install-exec-local): Factor out common code.
67710         (uninstall-local): Split lines longer than 80.
67711         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67712         (SUFFIXES): Define.
67713         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67714         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67715
67716 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67717
67718         * lib/config.charset: Output a line containing "Packages using this
67719         file".
67720         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67721         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67722         ref-del.sed): New rules.
67723
67724 2000-03-17  Jim Meyering  <meyering@lucent.com>
67725
67726         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67727         Otherwise, include <strings.h>
67728
67729 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67730
67731         * lib/unicodeio.c (utf8_wctomb): New function.
67732         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67733         format instead of in UCS-4 with platform dependent endianness.
67734
67735 2000-03-10  Jim Meyering  <meyering@lucent.com>
67736
67737         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67738         From Marco Franzen.
67739
67740 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67741
67742         * lib/savedir.c (savedir): Work even if directory size is
67743         negative; this can happen with some screwy NFS configurations.
67744
67745 2000-03-06  Jim Meyering  <meyering@lucent.com>
67746
67747         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67748         if it's NULL (because we ran out of memory).  From Bruno Haible.
67749
67750 2000-03-05  Jim Meyering  <meyering@lucent.com>
67751
67752         * lib/localcharset.c ("path-concat.h"): Include.
67753         (get_charset_aliases): Use path_concat instead of ANSI string
67754         concatenation.
67755
67756         * lib/unicodeio.h (PARAMS): Define.
67757         Use it to guard prototype.
67758
67759 2000-03-04  Jim Meyering  <meyering@lucent.com>
67760
67761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67762         for lib/localcharset.c.
67763
67764 2000-03-04  Jim Meyering  <meyering@lucent.com>
67765
67766         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67767         installing into it.
67768         (uninstall-local): Uncomment this rule so `make distcheck' works
67769         once again.
67770
67771         * lib/unicodeio.c (<errno.h>): Include it.
67772         (errno): Declare if not defined.
67773
67774         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67775
67776         * lib/config.charset: New version, incorporating remarks from a linux
67777         i18n mailing list.  From Bruno Haible.
67778
67779 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67780
67781         * m4/codeset.m4: New file.
67782         * m4/iconv.m4: New file.
67783         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67784
67785 2000-03-03  Jim Meyering  <meyering@lucent.com>
67786
67787         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67788
67789 2000-03-02  Jim Meyering  <meyering@lucent.com>
67790
67791         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67792         the messages come out on separate lines.
67793
67794         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67795         rather than jm_CHECK_DECLARATIONS.
67796         * m4/decl.m4: Remove now-unused file.
67797
67798         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67799         geteuid.
67800
67801 2000-03-02  Jim Meyering  <meyering@lucent.com>
67802
67803         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67804
67805 2000-03-01  Jim Meyering  <meyering@lucent.com>
67806
67807         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67808         * lib/unicodeio.c: Likewise.
67809
67810 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67811
67812         * lib/config.charset: New file.
67813         * lib/localcharset.c: New file.
67814         * lib/unicodeio.h, lib/unicodeio.c: New files.
67815         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67816         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67817         (noinst_HEADERS): Add unicodeio.h.
67818         (all-local, install-exec-local, charset.alias): New targets.
67819
67820 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67821
67822         * lib/quotearg.c (ALERT_CHAR): New macro.
67823         (quotearg_buffer_restyled): Use it.
67824
67825 2000-02-27  Jim Meyering  <meyering@lucent.com>
67826
67827         * m4/check-decl.m4: Add getenv to the list.
67828
67829 2000-02-27  Jim Meyering  <meyering@lucent.com>
67830
67831         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67832         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67833
67834         * lib/backupfile.c: Guard inclusion of stdlib.h with
67835         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67836         Declare malloc if needed.
67837
67838         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67839         `#ifndef HAVE_DECL..'
67840         now that autoconf always defines the HAVE_DECL_ symbols.
67841         * lib/human.c: Likewise.
67842         * lib/same.c: Likewise.
67843         * lib/strtoumax.c: Likewise.
67844
67845         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67846         declaration check was not run.
67847         * lib/hash.c: Likewise.
67848         * lib/human.c: Likewise.
67849         * lib/same.c: Likewise.
67850         * lib/strtoumax.c: Likewise.
67851
67852         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67853         `.', then first look up the entire `.'-containing string as a login
67854         name.
67855
67856 2000-02-23  Jim Meyering  <meyering@lucent.com>
67857
67858         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67859         in place of my hack.
67860
67861 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67862
67863         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67864         (textint): New typedef.
67865         (parser_control): Member year changed from int to textint.
67866         All uses changed.
67867         (YYSTYPE): Removed; replaced by %union with int and textint members.
67868         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67869         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67870         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67871         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67872         (date, number, to_year): Use width of number in digits, not its value,
67873         to determine whether it's a 2-digit year, or a 2-digit time.
67874         (yylex): Store number of digits of numeric tokens.
67875         Reported by John Kendall.
67876
67877         (parser_control): Changed from struct parser_control to typedef (for
67878         consistency).  All uses changed.
67879
67880         (tID): Removed; not used.
67881         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67882
67883 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67884
67885         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67886         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67887
67888 2000-02-12  Jim Meyering  <meyering@lucent.com>
67889
67890         * lib/userspec.c (ISDIGIT): Define it.
67891         (isdigit): Remove definition.
67892         (is_number): Use ISDIGIT, not isdigit.
67893         <libintl.h>: Include.
67894         (_ and N_): Define.
67895         (parse_user_spec): Mark translatable strings.
67896
67897 2000-02-10  Jim Meyering  <meyering@lucent.com>
67898
67899         With these changes, nanosleep.[ch] are finally enough like the other
67900         lib/* replacement files to compile on a few more losing systems.
67901
67902         * lib/nanosleep.h: Don't include config.h.
67903         Remove prototype from declaration of nanosleep.
67904         (PARAMS): Remove now-unneeded definition.
67905         * lib/nanosleep.c: #undef nanosleep.
67906         (rpl_nanosleep): Rename from nanosleep.
67907
67908 2000-02-10  Jim Meyering  <meyering@lucent.com>
67909
67910         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67911         gnu_nanosleep to rpl_nanosleep.
67912
67913 2000-02-09  Jim Meyering  <meyering@lucent.com>
67914
67915         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67916         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67917
67918 2000-02-08  Akim Demaille  <akim@epita.fr>
67919
67920         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67921         `[' and `]' and remove uses of `changequote'.
67922         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67923         (AC_SYS_LARGEFILE): Likewise.
67924         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67925         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67926         of changequote.
67927         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67928         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67929         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67930         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67931
67932 2000-02-05  Jim Meyering  <meyering@lucent.com>
67933
67934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67935         Remove explicit use of AC_HEADER_TIME.  It is required by
67936         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67937         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67938         in autoconf whereby the expansion of the latter ended up preceding
67939         the expansion of its prerequisite, AC_HEADER_TIME.
67940         Reported by Volker Borchert.
67941
67942 2000-02-03  Jim Meyering  <meyering@lucent.com>
67943
67944         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67945
67946 2000-02-03  Jim Meyering  <meyering@lucent.com>
67947
67948         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67949         rather than with `#if HAVE_UTMPNAME'.
67950
67951 2000-02-02  Jim Meyering  <meyering@lucent.com>
67952
67953         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67954         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67955         Reported by Eli Zaretskii.
67956
67957 2000-02-01  Jim Meyering  <meyering@lucent.com>
67958
67959         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67960
67961 2000-01-31  Jim Meyering  <meyering@lucent.com>
67962
67963         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67964         functions.  Add the time.h and sys/time.h headers along with the
67965         AC_REQUIRE'ment of AC_HEADER_TIME.
67966
67967 2000-01-31  Jim Meyering  <meyering@lucent.com>
67968
67969         * lib/nanosleep.h (nanosleep): Guard declaration with
67970         `#if ! HAVE_DECL_NANOSLEEP'.
67971         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67972         the declaration in that vendor's sys/timers.h.
67973         Reported by Christian Krackowizer.
67974
67975         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67976         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67977         (ISPRINT): Likewise.
67978         Reported by Tom Tromey.
67979
67980 2000-01-30  Jim Meyering  <meyering@lucent.com>
67981
67982         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67983
67984         * m4/prereq.m4 (utmp_includes): Define.
67985         Check for ut_user and ut_name members in both struct utmpx
67986         and struct utmp.
67987
67988 2000-01-30  Jim Meyering  <meyering@lucent.com>
67989
67990         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67991         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67992         header files where only utmpx.ut_user is declared.
67993
67994         * lib/readutmp.h (UT_USER): Define.
67995
67996 2000-01-29  Jim Meyering  <meyering@lucent.com>
67997
67998         * m4/lib-check.m4: New file containing library-related checks from
67999         fileutils and sh-utils (textutils had none).
68000
68001 2000-01-28  Jim Meyering  <meyering@lucent.com>
68002
68003         * m4/perl.m4: Change format of warning message to look more like that
68004         from the missing script.  Suggestion from François Pinard.
68005
68006 2000-01-25  Jim Meyering  <meyering@lucent.com>
68007
68008         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68009         well as time.h in the compile check.
68010         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68011         Fix typo in cross-compiling case: s/yes/no/.
68012
68013 2000-01-23  Jim Meyering  <meyering@lucent.com>
68014
68015         * m4/jm-macros.m4: Move df-related tests here from
68016         fileutils/configure.in
68017
68018         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68019         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68020
68021         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68022         s/space/ac_fsusage_space/.
68023         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68024
68025         * m4/ftruncate.m4: New file (derived from part of
68026         fileutils/configure.in).
68027         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68028         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68029
68030         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68031         AC_SUBST these here, rather than just in sh-util/configure.in, so
68032         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68033         all the same.
68034         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68035         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68036         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68037         (AC_SUBST(POW_LIBM)): Likewise.
68038         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68039
68040 2000-01-23  Jim Meyering  <meyering@lucent.com>
68041
68042         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68043         obstack.c.
68044
68045 2000-01-22  Jim Meyering  <meyering@lucent.com>
68046
68047         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68048
68049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68050
68051         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68052         configure.in
68053         (AC_CHECK_HEADERS): Likewise for sh-utils.
68054         (AC_CHECK_HEADERS): Likewise for textutils.
68055         Merge the three lists of headers.
68056
68057         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68058         from fileutils' configure.in.
68059
68060         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68061         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68062         check-decl.m4.
68063
68064         * m4/check-decl.m4: Use #if rather than #ifdef.
68065         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68066         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68067         (_jm_DECL_HEADERS): Define new function.
68068         (jm_CHECK_DECLARATIONS): Require it.
68069
68070 2000-01-22  Jim Meyering  <meyering@lucent.com>
68071
68072         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68073         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68074         Required for some AIX systems.  Reported by Christian Krackowizer.
68075         [TESTING] (main): New function.
68076
68077         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68078         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68079         letters.
68080
68081         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68082         iswprint.
68083
68084         * lib/strverscmp.c (ISDIGIT): Define.
68085         (strverscmp): Use ISDIGIT, not isdigit.
68086
68087 2000-01-19  Jim Meyering  <meyering@lucent.com>
68088
68089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68090         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68091         defines `struct timespec' in <sys/time.h>
68092
68093         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68094         Thanks to Akim for explaining.
68095
68096 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68097
68098         * lib/nanosleep.c (nanosleep):
68099         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68100         POSIX.1 doesn't require SA_INTERRUPT and some systems
68101         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68102         it's been part of POSIX.1 since day 1 (in 1988).
68103
68104 2000-01-17  Jim Meyering  <meyering@lucent.com>
68105
68106         * lib/interlock: Remove unused file.  Reported by François Pinard.
68107
68108 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68109
68110         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68111         alert, backslash, formfeed, and vertical tab unnecessarily in
68112         shell quoting style.
68113
68114 2000-01-16  Jim Meyering  <meyering@lucent.com>
68115
68116         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68117         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68118         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68119         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68120
68121 2000-01-16  Jim Meyering  <meyering@lucent.com>
68122
68123         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68124         because the latter didn't work.
68125
68126 2000-01-15  Jim Meyering  <meyering@lucent.com>
68127
68128         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68129         (AC_REPLACE_FUNCS): Add memcpy and memset.
68130         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68131         Add strpbrk.
68132         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68133
68134 2000-01-12  Jim Meyering  <meyering@lucent.com>
68135
68136         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68137         (jm_PREREQ): Use it.
68138         (jm_PREREQ_READUTMP): New macro.
68139         (jm_PREREQ): Use it.
68140
68141 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68142
68143         Quote multibyte characters correctly.
68144         * m4/c-bs-a.m4: New file.
68145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68146         (jm_PREREQ): Use it.
68147
68148 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68149
68150         * m4/uintmax_t.m4: Port to autoconf 2.13.
68151
68152 2000-01-08  Jim Meyering  <meyering@ascend.com>
68153
68154         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68155         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68156
68157 2000-01-04  Jim Meyering  <meyering@ascend.com>
68158
68159         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68160         jm_STRUCT_DIRENT_D_TYPE.
68161         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68162         jm_STRUCT_DIRENT_D_INO.
68163         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68164         jm_STRUCT_UTIMBUF.
68165         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68166         renamings.
68167         * m4/utime.m4: Likewise.
68168
68169         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68170         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68171
68172 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68173
68174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68175         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68176
68177 2000-01-02  Jim Meyering  <meyering@ascend.com>
68178
68179         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68180         remember if this is necessary.
68181
68182 1999-12-26  Jim Meyering  <meyering@ascend.com>
68183
68184         * m4/jm-macros.m4: Use it here.
68185         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68186
68187 1999-12-23  Jim Meyering  <meyering@ascend.com>
68188
68189         * m4/jm-macros.m4: Check for clock_gettime (moved from
68190         fileutils/configure.in)
68191         Check for gettimeofday.
68192
68193 1999-12-20  Jim Meyering  <meyering@ascend.com>
68194
68195         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68196         autoconf-2.14a-1999-12-20.
68197
68198 1999-12-19  Jim Meyering  <meyering@ascend.com>
68199
68200         * m4/lstat-slash.m4: New file.
68201         * m4/jm-macros.m4: Use the new macro:
68202         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68203
68204 1999-12-07  Jim Meyering  <meyering@ascend.com>
68205
68206         * m4/perl.m4: Require that File::Compare be available, too.
68207         Too many systems seem to lack it.
68208
68209         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68210         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68211
68212 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68213
68214         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68215         problem with the QNX 4.25 shell, which doesn't propagate exit
68216         status of failed commands inside shell assignments.
68217
68218 1999-11-17  Jim Meyering  <meyering@ascend.com>
68219
68220         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68221
68222 1999-11-07  Jim Meyering  <meyering@ascend.com>
68223
68224         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68225
68226 1999-11-06  Jim Meyering  <meyering@ascend.com>
68227
68228         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68229         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68230
68231 1999-11-05  Jim Meyering  <meyering@ascend.com>
68232
68233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68234         configure.in of textutils, fileutils, and sh-utils into this one
68235         (shared between those packages) file.
68236         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68237         AC_STRUCT_ST_BLKSIZE.
68238
68239 1999-11-03  Jim Meyering  <meyering@ascend.com>
68240
68241         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68242         of AC_CHECK_TYPE checks includes unistd.h.
68243         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68244         Suggestion from Akim Demaille.
68245
68246 1999-10-30  Jim Meyering  <meyering@ascend.com>
68247
68248         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68249         m4-quoted string.
68250         * m4/ls-mntd-fs.m4: Likewise.
68251         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68252         * m4/jm-winsz1.m4: Likewise.
68253
68254         * m4/const.m4: Remove file, since the fix made it into the experimental
68255         version of autoconf.
68256         * m4/mktime.m4: Likewise.
68257
68258         * m4/check-type.m4: Remove file, now that the latest version of
68259         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68260
68261         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68262         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68263         AC_CHECK_TYPE.
68264
68265 1999-10-04  Jim Meyering  <meyering@ascend.com>
68266
68267         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68268
68269 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68270
68271         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68272         2.95.1 bug with HP-UX 10.20.
68273
68274 1999-09-17  Jim Meyering  <meyering@ascend.com>
68275
68276         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68277         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68278         due to missing strdup (against sh-utils-2.0).
68279
68280 1999-08-29  Jim Meyering  <meyering@ascend.com>
68281
68282         * m4/jm-macros.m4: Require jm_BISON.
68283         * m4/bison.m4: New file.
68284
68285 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68286
68287         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68288         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68289
68290 1999-08-05  Jim Meyering  <meyering@ascend.com>
68291
68292         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68293         to avoid conflicts with `conftest' on 8+3 filesystems.
68294         Suggestion from Eli Zaretskii.
68295
68296 1999-08-04  Jim Meyering  <meyering@ascend.com>
68297
68298         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68299         fileutils and sh-utils (textutils's getline test was inadequate).
68300         (AM_FUNC_GETLINE): Run this test.
68301         (AC_CHECK_FUNCS): Check for getdelim.
68302         Reported by Bob Proulx.
68303
68304 1999-08-02  Jim Meyering  <meyering@ascend.com>
68305
68306         * m4/jm-macros.m4: Add a comment.
68307
68308 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68309
68310         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68311         <inttypes.h> defines strtoumax as a macro (and not as a
68312         function).
68313
68314 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68315
68316         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68317         that we can shift, multiply and divide unsigned long long
68318         values; Ultrix cc can't do it.
68319
68320 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68321
68322         * m4/mktime.m4: New file, which is a preview of what should appear
68323         in the next public autoconf release.
68324
68325 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68326
68327         * m4/lfs.m4: Remove this file.
68328         * m4/largefile.m4: New file.  It contains the old contents of
68329         lfs.m4, except that all names with prefix AC_LFS have been
68330         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68331         compatible with future autoconf versions.  Also, some minor m4
68332         quoting problems have been fixed.
68333
68334 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68335
68336         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68337         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68338         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68339         and simplify the shell code.
68340
68341 1999-08-01  Jim Meyering  <meyering@ascend.com>
68342
68343         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68344         m4.
68345
68346 1999-07-20  Jim Meyering  <meyering@ascend.com>
68347
68348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68349
68350 1999-07-15  Jim Meyering  <meyering@ascend.com>
68351
68352         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68353
68354 1999-05-22  Jim Meyering  <meyering@ascend.com>
68355
68356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68357
68358 1999-05-20  Jim Meyering  <meyering@ascend.com>
68359
68360         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68361         Add a colon after each `then' in case $4 is empty.
68362
68363 1999-05-16  Jim Meyering  <meyering@ascend.com>
68364
68365         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68366
68367 1999-05-10  Jim Meyering  <meyering@ascend.com>
68368
68369         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68370
68371         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68372         AC_FUNC_MKTIME.
68373
68374 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68375
68376         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68377
68378 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68379
68380         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68381         not CPPFLAGS, so that linking works correctly in IRIX.
68382
68383 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68384
68385         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68386
68387 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68388
68389         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68390         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68392         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68393         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68394
68395         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68396
68397 1999-04-20  Jim Meyering  <meyering@ascend.com>
68398
68399         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68400         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68401         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68402
68403 1999-04-18  Jim Meyering  <meyering@ascend.com>
68404
68405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68406         * m4/jm-macros.m4: Use it.
68407
68408 1999-04-06  Jim Meyering  <meyering@ascend.com>
68409
68410         * m4/strftime.m4: Remove test for %f.
68411
68412 1999-03-29  Jim Meyering  <meyering@ascend.com>
68413
68414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68415         superset of the AC_TYPE_* checks in the textutils, fileutils,
68416         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68417         AC_TYPE_PID_T.
68418
68419 1999-03-28  Jim Meyering  <meyering@ascend.com>
68420
68421         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68422         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68423         replaced e.g., in the *.sh files of the sh-utils.
68424
68425 1999-03-20  Jim Meyering  <meyering@ascend.com>
68426
68427         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68428         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68429         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68430
68431 1999-03-19  Jim Meyering  <meyering@ascend.com>
68432
68433         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68434
68435 1999-03-12  Jim Meyering  <meyering@ascend.com>
68436
68437         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68438
68439 1999-03-07  Jim Meyering  <meyering@ascend.com>
68440
68441         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68442         declared.
68443
68444 1999-02-17  Jim Meyering  <meyering@ascend.com>
68445
68446         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68447         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68448
68449 1999-02-07  Jim Meyering  <meyering@ascend.com>
68450
68451         * m4/group-member.m4: New file -- extracted from sh-utils'
68452         configure.in.
68453
68454         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68455         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68456
68457 1999-02-06  Jim Meyering  <meyering@ascend.com>
68458
68459         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68460         * m4/fnmatch.m4: Likewise.
68461         * m4/getgroups.m4: Likewise.
68462         * m4/lstat.m4: Likewise.
68463         * m4/malloc.m4: Likewise.
68464         * m4/putenv.m4: Likewise.
68465         * m4/realloc.m4: Likewise.
68466         * m4/regex.m4: Likewise.
68467         * m4/stat.m4: Likewise.
68468         * m4/strftime.m4: Likewise.
68469         Suggestion from Alain Magloire.
68470
68471         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68472         * m4/fnmatch.m4: Likewise.
68473         * m4/getgroups.m4: Likewise.
68474         * m4/getline.m4: Likewise.
68475         * m4/lstat.m4: Likewise.
68476         * m4/malloc.m4: Likewise.
68477         * m4/memcmp.m4: Likewise.
68478         * m4/putenv.m4: Likewise.
68479         * m4/realloc.m4: Likewise.
68480         * m4/regex.m4: Likewise.
68481         * m4/stat.m4: Likewise.
68482         * m4/strftime.m4: Likewise.
68483         Suggestion from Alain Magloire.
68484
68485         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68486         an argument.
68487
68488         * m4/regex.m4: Add a run-time Test for proper operation of
68489         re_compile_pattern.
68490
68491 1999-01-31  Jim Meyering  <meyering@ascend.com>
68492
68493         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68494
68495 1999-01-30  Jim Meyering  <meyering@ascend.com>
68496
68497         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68498
68499         * m4/jm-mktime.m4: Make this a wrapper around the official
68500         AM_FUNC_MKTIME rather than my private copy, now that the official one
68501         is up to date.
68502         * m4/mktime.m4: Remove file.
68503
68504         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68505         * m4/uptime.m4: Likewise.
68506         * m4/uintmax_t.m4: Likewise.
68507
68508 1999-01-28  Jim Meyering  <meyering@ascend.com>
68509
68510         * m4/jm-macros.m4: Use jm_AFS.
68511         * m4/afs.m4: New file (from fileutils' configure.in).
68512
68513         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68514         * m4/chown.m4: Likewise.
68515         * m4/d-ino.m4: Likewise.
68516         * m4/d-type.m4: Likewise.
68517         * m4/fnmatch.m4: Likewise.
68518         * m4/getgroups.m4: Likewise.
68519         * m4/gettext.m4: Likewise.
68520         * m4/jm-mktime.m4: Likewise.
68521         * m4/jm-winsz2.m4: Likewise.
68522         * m4/lcmessage.m4: Likewise.
68523         * m4/ls-mntd-fs.m4: Likewise.
68524         * m4/malloc.m4: Likewise.
68525         * m4/memcmp.m4: Likewise.
68526         * m4/putenv.m4: Likewise.
68527         * m4/realloc.m4: Likewise.
68528         * m4/st_mtim.m4: Likewise.
68529         * m4/strftime.m4: Likewise.
68530
68531 1999-01-16  Jim Meyering  <meyering@ascend.com>
68532
68533         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68534         (ARGMATCH_DIE_DECL): Define.
68535
68536 1999-01-12  Jim Meyering  <meyering@ascend.com>
68537
68538         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68539         Reported by Lars Hecking.
68540
68541 1999-01-10  Jim Meyering  <meyering@ascend.com>
68542
68543         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68544         gross kludge.
68545         * m4/inttypes_h.m4: Likewise.
68546         * m4/lstat.m4: Likewise.
68547         * m4/malloc.m4: Likewise.
68548         * m4/readdir.m4: Likewise.
68549         * m4/realloc.m4: Likewise.
68550         * m4/st_dm_mode.m4: Likewise.
68551         * m4/stat.m4: Likewise.
68552         * m4/utimbuf.m4: Likewise.
68553         * m4/utimes.m4: Likewise.
68554
68555         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68556         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68557         comments in config.h.in are meaningful.
68558
68559         * m4/jm-macros.m4: Require autoconf-2.13 here.
68560
68561         * m4/regex.m4: By default, don't use the included regex.c on systems
68562         with glibc 2.  Suggestion from Uli Drepper.
68563
68564 1999-01-02  Jim Meyering  <meyering@ascend.com>
68565
68566         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68567
68568 1998-12-18  Jim Meyering  <meyering@ascend.com>
68569
68570         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68571         Based on a suggestion from Lars Hecking.
68572
68573 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68574
68575         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68576
68577 1998-11-16  Jim Meyering  <meyering@ascend.com>
68578
68579         * m4/lfs.m4: Double-quote the `uname...` expression.
68580
68581 1998-11-14  Jim Meyering  <meyering@ascend.com>
68582
68583         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68584         * m4/stat.m4: Likewise.
68585
68586 1998-11-03  Jim Meyering  <meyering@ascend.com>
68587
68588         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68589         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68590
68591 1998-10-18  Jim Meyering  <meyering@ascend.com>
68592
68593         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68594
68595 1998-10-17  Jim Meyering  <meyering@ascend.com>
68596
68597         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68598         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68599         calls for those previously hard-coded headers.  Instead, take a new
68600         parameter.
68601         (jm_CHECK_DECLARATIONS): Reflect interface change.
68602         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68603         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68604
68605         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68606
68607 1998-10-14  Jim Meyering  <meyering@ascend.com>
68608
68609         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68610         instead of "TZ=America/Vancouver".  From Paul Eggert.
68611
68612 1998-10-11  Jim Meyering  <meyering@ascend.com>
68613
68614         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68615         This adds a test for a recently added compatibility fix for mktime.c.
68616         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68617
68618 1998-09-27  Jim Meyering  <meyering@ascend.com>
68619
68620         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68621
68622         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68623         ../configure.in, including a change from Gordon Matzigkeit to allow
68624         cross-compiling for the Hurd.
68625
68626         * m4/glibc.m4: New file/macro to test for the GNU C Library
68627         versions 1 and 2.  From Gordon Matzigkeit.
68628         Indent.
68629
68630 1998-09-21  Jim Meyering  <meyering@ascend.com>
68631
68632         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68633
68634 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68635
68636         Port nanosecond-resolution times to UnixWare 2.1.2 and
68637         pedantic Solaris 2.6.
68638
68639         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68640         AC_STRUCT_ST_MTIM.
68641         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68642         Generate name of ns member, instead of just 1 or undef.
68643         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68644
68645 1998-08-15  Jim Meyering  <meyering@ascend.com>
68646
68647         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68648         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68649         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68650         instead of jm_TYPE_SSIZE_T.
68651
68652 1998-08-12  Jim Meyering  <meyering@ascend.com>
68653
68654         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68655
68656 1998-08-02  Jim Meyering  <meyering@ascend.com>
68657
68658         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68659         in acconfig.h manually.
68660
68661 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68662
68663         * m4/st_mtim.m4: New file.
68664
68665 1998-07-28  Jim Meyering  <meyering@ascend.com>
68666
68667         * m4/utimes.m4: Undef stat.
68668
68669 1998-07-25  Jim Meyering  <meyering@ascend.com>
68670
68671         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68672         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68673
68674 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68675
68676         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68677         uid and gid actually remain unchanged.
68678
68679 1998-07-07  Jim Meyering  <meyering@ascend.com>
68680
68681         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68682
68683 1998-07-04  Jim Meyering  <meyering@ascend.com>
68684
68685         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68686         to prove that this macro can be used in packages without regex.c.
68687
68688 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68689
68690         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68691         is to be used.
68692
68693 1998-07-03  Jim Meyering  <meyering@ascend.com>
68694
68695         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68696
68697         * m4/gettext.m4: New file -- from gettext-0.10.35.
68698         * m4/lcmessage.m4: Likewise.
68699         * m4/progtest.m4: Likewise.
68700
68701         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68702         * m4/jm-macros.m4: Require the new macro.
68703
68704 1998-06-29  Jim Meyering  <meyering@ascend.com>
68705
68706         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68707         for the definition of NGROUPS (used in a system header included
68708         by sys/mount.h).
68709
68710 1998-06-28  Jim Meyering  <meyering@ascend.com>
68711
68712         * m4/ls-mntd-fs.m4: New file.
68713         * m4/fstypename.m4: New file.
68714
68715         * m4/jm-macros.m4: Require the new macro.
68716         * m4/jm-glibc-io.m4: New file.
68717
68718 1998-05-19  Jim Meyering  <meyering@ascend.com>
68719
68720         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68721         * m4/lchown.m4: New file.
68722
68723         * m4/Makefile.am.in: New file.
68724         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68725
68726 1998-05-14  Jim Meyering  <meyering@ascend.com>
68727
68728         * m4/Makefile.am (EXTRA_DIST): Add them.
68729         * m4/jm-macros.m4: New file.
68730         * m4/utimbuf.m4: New file.
68731
68732 1998-05-12  Jim Meyering  <meyering@ascend.com>
68733
68734         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68735
68736 1998-05-11  Jim Meyering  <meyering@ascend.com>
68737
68738         * m4/isc-posix.m4: New file.
68739
68740 1998-05-10  Jim Meyering  <meyering@ascend.com>
68741
68742         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68743
68744 1998-05-09  Jim Meyering  <meyering@ascend.com>
68745
68746         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68747         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68748         with automake.
68749
68750         * m4/ssize_t.m4: New file.
68751         * m4/mktime.m4: Remove file -- the new automake has this now.
68752
68753 1998-04-26  Jim Meyering  <meyering@ascend.com>
68754
68755         * m4/assert.m4: New file.
68756         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68757
68758 1998-04-05  Jim Meyering  <meyering@ascend.com>
68759
68760         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68761         (jm_PREREQ): Use it here.
68762
68763 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68764
68765         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68766         in acconfig.h.
68767
68768 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68769
68770         * m4/prereq.m4: New file.
68771         * m4/error.m4: New file.
68772         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68773
68774 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68775
68776         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68777         cache-check for the same variable -- that defeated the purpose of
68778         the test; the test program was never run.  This was a problem only
68779         on systems with losing getline functions -- HP-UX 10.20 is one.
68780         Reported by Bjorn Helgaas.
68781
68782 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68783
68784         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68785
68786 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68787
68788         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68789
68790         * m4/const.m4: New file.  Use an initializer in this declaration
68791         typedef int charset[2]; const charset x;
68792         Reported by Bob Glickstein.
68793
68794 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68795
68796         * m4/chown.m4: Fix reversed types on -1 args to chown.
68797         From Kaveh Ghazi.
68798
68799 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68800
68801         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68802         Add lseek and memchr.
68803
68804         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68805         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68806         have a 20-character limit on names.
68807
68808 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68809
68810         * m4/inttypes_h.m4: New file.
68811         * m4/uintmax_t.m4: New file.
68812         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68813
68814
68815         -----
68816
68817         Local Variables:
68818         coding: utf-8
68819         End:
68820
68821         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68822
68823         Copying and distribution of this file, with or without
68824         modification, are permitted provided the copyright notice
68825         and this notice are preserved.