056daba483df2fd40d4be963f0b8e23b8b2b588c
[gnulib.git] / ChangeLog
1 2011-09-16  Bruno Haible  <bruno@clisp.org>
2
3         Support for MSVC compiler: Ensure off_t gets defined.
4         * lib/unistd.in.h: Include <sys/types.h>.
5         * tests/test-fcntl-h.c: Check that off_t is defined.
6         * tests/test-sys_stat.c: Likewise.
7         * tests/test-sys_types.c: Likewise.
8
9 2011-09-16  Eric Blake  <eblake@redhat.com>
10
11         fdatasync: port to Solaris
12         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13         * modules/fdatasync (Link): Document it.
14         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15
16         fdatasync: port to MacOS X 10.7
17         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
18         declared.
19         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
20         * modules/unistd (Makefile.am): Substitute it.
21         * lib/unistd.in.h (fdatasync): Declare on MacOS.
22         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
23
24         fdatasync: minor improvements
25         * modules/fdatasync (Depends-on): Add condition for fsync.
26         * lib/fdatasync.c (fdatasync): Add comment.
27         * tests/test-unistd-c++.cc: Test fdatasync.
28
29         unistd: update refs to newer POSIX
30         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
31         Suggested by Bruno Haible.
32
33         fdatasync: new module
34         * modules/fsync (Description): Document difference to fdatasync.
35         * modules/fdatasync: New module.
36         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
37         * lib/fdatasync.c (fdatasync): Likewise.
38         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
39         defaults.
40         * modules/unistd (Makefile.am): Set witnesses.
41         * lib/unistd.in.h (fdatasync): Declare.
42         * MODULES.html.sh: Document it.
43         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44         * modules/fdatasync-tests: New test.
45         * tests/test-fdatasync.c: Likewise.
46
47 2011-09-16  Eric Blake  <eblake@redhat.com>
48
49         test-fsync: enhance tests
50         * modules/fsync-tests (Depends-on): Add errno, for mingw.
51         * tests/test-fsync.c (main): Enhance test.
52
53 2011-09-15  Bruno Haible  <bruno@clisp.org>
54
55         Support for MSVC compiler: Ensure ssize_t gets defined.
56         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
57         * doc/posix-headers/stdio.texi: Likewise.
58         * modules/stdio (Depends-on): Add ssize_t.
59         * modules/sys_socket (Depends-on): Likewise.
60         * modules/sys_types (Depends-on): Likewise.
61         * modules/sys_uio (Depends-on): Likewise.
62         * modules/unistd (Depends-on): Likewise.
63         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
64         * tests/test-sys_types.c: Check that ssize_t is defined.
65
66 2011-09-14  Bruno Haible  <bruno@clisp.org>
67
68         Avoid using #, the m4 comment starter character, near brackets.
69         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
70         delimiter character in sed expressions.
71         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
72         Suggested by Eric Blake.
73
74         Properly quote AC_CHECK_DECLS' 4th argument.
75         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
76         argument.
77         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
78         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
79         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
81         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
82         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
83         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
84         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
85         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
86         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
87         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
88         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
89         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
90         * m4/isinf.m4 (gl_ISINF): Likewise.
91         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
92         * m4/readutmp.m4 (gl_READUTMP): Likewise.
93         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
95         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
96         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
97         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
98         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
99         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
100         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
101         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
102         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
104         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106         Reported by Eric Blake.
107
108         Properly quote AC_CHECK_DECL's 4th argument.
109         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
110         argument.
111         * m4/argp.m4 (gl_ARGP): Likewise.
112         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
113         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
114         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
115         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
116         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
117         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
118         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
119         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
120         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
121         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
122         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
123         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
124         Reported by Eric Blake.
125
126 2011-09-14  Eric Blake  <eblake@redhat.com>
127
128         opendir: avoid compile warning
129         * lib/opendir.c (includes): Always include errno.h.
130         Reported by Tatsuro MATSUOKA.
131
132 2011-09-14  Jim Meyering  <meyering@redhat.com>
133
134         maint.mk: sc_tight_scope: propagate failure from sub-make
135         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
136         Reported by Martin von Gagern.
137
138 2011-09-13  Bruno Haible  <bruno@clisp.org>
139
140         tempname: Support for MSVC.
141         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
142         MSVC.
143         * modules/tempname (Depends-on): Add fcntl-h.
144
145 2011-09-13  Bruno Haible  <bruno@clisp.org>
146
147         sys_time: Support for MSVC.
148         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
149         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
150         include <winsock2.h>.
151         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
152         function declarations that collide with POSIX.
153         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
154         (Makefile.am): Substitute HAVE_WINSOCK2_H.
155
156 2011-09-13  Bruno Haible  <bruno@clisp.org>
157
158         stat: Support for MSVC.
159         * lib/stat.c: Include pathmax.h.
160         * modules/stat (Depends-on): Add pathmax.
161
162         pathmax: Support for native Windows.
163         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
164
165 2011-09-12  Bruno Haible  <bruno@clisp.org>
166
167         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
168         * lib/dirent.in.h (struct dirent): New type.
169         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
170         DT_WHT): New macros.
171         (DIR): New type.
172         (opendir, closedir): Declare only if the module 'opendir' is enabled.
173         (readdir, rewinddir): New declarations.
174         * lib/dirent-private.h: New file.
175         * lib/opendir.c: New file.
176         * lib/readdir.c: New file.
177         * lib/rewinddir.c: New file.
178         * lib/closedir.c: New file.
179         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
180         * m4/opendir.m4: New file.
181         * m4/readdir.m4: New file.
182         * m4/rewinddir.m4: New file.
183         * m4/closedir.m4: New file.
184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
185         REPLACE_CLOSEDIR here.
186         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
187         readdir, rewinddir are declared.
188         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
189         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
190         HAVE_REWINDDIR, HAVE_CLOSEDIR.
191         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
192         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
193         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
194         * modules/opendir: New file.
195         * modules/readdir: New file.
196         * modules/rewinddir: New file.
197         * modules/closedir: New file.
198         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
199         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
200         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
201         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
202         * NEWS: Mention the 'fchdir' change.
203
204 2011-09-11  Bruno Haible  <bruno@clisp.org>
205
206         asm-underscore.m4: Support for MSVC.
207         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
208         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
209
210 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
211
212         Doc about crypt functions.
213         * doc/posix-functions/crypt.texi: Expand range of glibc versions
214         needing for _GNU_SOURCE to get crypt.
215         * doc/posix-functions/encrypt.texi: Likewise.
216         * doc/posix-functions/setkey.texi: Likewise.
217
218 2011-09-11  Bruno Haible  <bruno@clisp.org>
219
220         doc: Update regarding MSVC 9.
221         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
222         tested".
223         * doc/posix-functions/*.texi: Update with info about MSVC 9.
224         * doc/posix-headers/*.texi: Likewise.
225         * doc/pastposix-functions/*.texi: Likewise.
226         * doc/glibc-functions/*.texi: Likewise.
227         * doc/glibc-headers/*.texi: Likewise.
228
229 2011-09-11  Bruno Haible  <bruno@clisp.org>
230
231         unistd et al.: Don't assume <unistd.h> exists.
232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
233         does not exist.
234         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
235         exist. But include <stdlib.h>.
236         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
237         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
238         symlink() does not exist.
239         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
240         include <io.h> instead.
241         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
242         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
243         include <direct.h> instead.
244         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
245         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
246         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
247         <io.h> instead.
248         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
249         correctly if the system does not have hard links.
250         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
251         <direct.h> instead.
252         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
253         it when looking for function declarations.
254         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
255         <direct.h> and <io.h> instead.
256         * doc/posix-headers/unistd.texi: More details about MSVC problem.
257
258 2011-09-11  Bruno Haible  <bruno@clisp.org>
259
260         strcase: Support for MSVC.
261         * modules/strcase (Status, Notice): Remove obsoletion mark.
262         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
263         * doc/posix-functions/strncasecmp.texi: Likewise.
264
265         strings: Don't assume <strings.h> exists.
266         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
267         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
268         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
269         * doc/posix-headers/strings.texi: Mention the MSVC problem.
270
271 2011-09-11  Bruno Haible  <bruno@clisp.org>
272
273         dirent: Don't assume <dirent.h> exists.
274         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
275         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
276         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
277         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
278
279 2011-09-11  Bruno Haible  <bruno@clisp.org>
280
281         Fix wint_t on MSVC.
282         * lib/wchar.in.h (wint_t): On MSVC, override it.
283         * lib/wctype.in.h (wint_t): Likewise.
284         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
285         MSVC.
286         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
287         * doc/posix-headers/wctype.texi: Likewise.
288
289 2011-09-11  Bruno Haible  <bruno@clisp.org>
290
291         sys_types: Fix typo.
292         * lib/sys_types.in.h: Fix typo in comment.
293         Reported by Paul Eggert.
294
295         Support for MSVC compiler: Ensure size_t gets defined.
296         * modules/strings (Depends-on): Add 'sys_types'.
297         * modules/sys_uio (Depends-on): Likewise.
298         * lib/sys_uio.in.h: Update comment.
299
300         C++ tests for module 'sys_types'.
301         * modules/sys_types-c++-tests: New file.
302         * tests/test-sys_types-c++.cc: New file.
303
304         Tests for module 'sys_types'.
305         * modules/sys_types-tests: New file.
306         * tests/test-sys_types.c: New file.
307
308         New module 'sys_types'.
309         * lib/sys_types.in.h: New file.
310         * m4/sys_types_h.m4: New file.
311         * modules/sys_types: New file.
312         * doc/posix-headers/sys_types.texi: Mention the new module and the
313         size_t problem on MSVC 9.
314
315 2011-09-11  Bruno Haible  <bruno@clisp.org>
316
317         Support for MSVC compiler: Avoid division by a literal 0.
318         * lib/math.in.h (NAN): Define through a function call also on MSVC.
319         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
320         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
321         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
322         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
323         * tests/infinity.h: New file.
324         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
325         on MSVC.
326         * tests/test-ceilf1.c: Include infinity.h.
327         (main): Use Infinityf.
328         * tests/test-ceil1.c: Include infinity.h.
329         (main): Use Infinityd.
330         * tests/test-ceill.c: Include infinity.h.
331         (main): Use Infinityl.
332         * tests/test-dprintf-posix.c: Include infinity.h.
333         (test_function): Use Infinityd.
334         * tests/test-floorf1.c: Include infinity.h.
335         (main): Use Infinityf.
336         * tests/test-floor1.c: Include infinity.h.
337         (main): Use Infinityd.
338         * tests/test-floorl.c: Include infinity.h.
339         (main): Use Infinityl.
340         * tests/test-fprintf-posix.c: Include infinity.h.
341         (test_function): Use Infinityd.
342         * tests/test-frexp.c: Include infinity.h.
343         (main): Use Infinityd.
344         * tests/test-frexpl.c: Include infinity.h.
345         (main): Use Infinityl.
346         * tests/test-isfinite.c: Include infinity.h.
347         (test_isfinitef): Use Infinityf.
348         (test_isfinited): Use Infinityd.
349         (test_isfinitel): Use Infinityl.
350         * tests/test-isinf.c: Include infinity.h.
351         (test_isinff): Use Infinityf.
352         (test_isinfd): Use Infinityd.
353         (test_isinfl): Use Infinityl.
354         * tests/test-isnan.c: Include infinity.h.
355         (test_float): Use Infinityf.
356         (test_double): Use Infinityd.
357         (test_long_double): Use Infinityl.
358         * tests/test-isnanf.h: Include infinity.h.
359         (main): Use Infinityf.
360         * tests/test-isnand.h: Include infinity.h.
361         (main): Use Infinityd.
362         * tests/test-isnanl.h: Include infinity.h.
363         (main): Use Infinityl.
364         * tests/test-ldexpl.c: Include infinity.h.
365         (main): Use Infinityl.
366         * tests/test-printf-posix.h: Include infinity.h.
367         (test_function): Use Infinityd.
368         * tests/test-roundf1.c: Include infinity.h.
369         (main): Use Infinityf.
370         * tests/test-round1.c: Include infinity.h.
371         (main): Use Infinityd.
372         * tests/test-roundl.c: Include infinity.h.
373         (main): Use Infinityl.
374         * tests/test-signbit.c: Include infinity.h.
375         (test_signbitf): Use Infinityf.
376         (test_signbitd): Use Infinityd.
377         (test_signbitl): Use Infinityl.
378         * tests/test-snprintf-posix.h: Include infinity.h.
379         (test_function): Use Infinityd, Infinityl.
380         * tests/test-sprintf-posix.h: Include infinity.h.
381         (test_function): Use Infinityd, Infinityl.
382         * tests/test-truncf1.c: Include infinity.h.
383         (main): Use Infinityf.
384         * tests/test-trunc1.c: Include infinity.h.
385         (main): Use Infinityd.
386         * tests/test-truncl.c: Include infinity.h.
387         (main): Use Infinityl.
388         * tests/test-vasnprintf-posix.c: Include infinity.h.
389         (test_function): Use Infinityd, Infinityl.
390         * tests/test-vasprintf-posix.c: Include infinity.h.
391         (test_function): Use Infinityd, Infinityl.
392         * modules/ceilf-tests (Files): Add tests/infinity.h.
393         * modules/ceil-tests (Files): Likewise.
394         * modules/ceill-tests (Files): Likewise.
395         * modules/dprintf-posix-tests (Files): Likewise.
396         * modules/floorf-tests (Files): Likewise.
397         * modules/floor-tests (Files): Likewise.
398         * modules/floorl-tests (Files): Likewise.
399         * modules/fprintf-posix-tests (Files): Likewise.
400         * modules/frexp-tests (Files): Likewise.
401         * modules/frexp-nolibm-tests (Files): Likewise.
402         * modules/frexpl-tests (Files): Likewise.
403         * modules/frexpl-nolibm-tests (Files): Likewise.
404         * modules/isfinite-tests (Files): Likewise.
405         * modules/isinf-tests (Files): Likewise.
406         * modules/isnan-tests (Files): Likewise.
407         * modules/isnanf-tests (Files): Likewise.
408         * modules/isnanf-nolibm-tests (Files): Likewise.
409         * modules/isnand-tests (Files): Likewise.
410         * modules/isnand-nolibm-tests (Files): Likewise.
411         * modules/isnanl-tests (Files): Likewise.
412         * modules/isnanl-nolibm-tests (Files): Likewise.
413         * modules/ldexpl-tests (Files): Likewise.
414         * modules/printf-posix-tests (Files): Likewise.
415         * modules/roundf-tests (Files): Likewise.
416         * modules/round-tests (Files): Likewise.
417         * modules/roundl-tests (Files): Likewise.
418         * modules/signbit-tests (Files): Likewise.
419         * modules/snprintf-posix-tests (Files): Likewise.
420         * modules/sprintf-posix-tests (Files): Likewise.
421         * modules/truncf-tests (Files): Likewise.
422         * modules/trunc-tests (Files): Likewise.
423         * modules/truncl-tests (Files): Likewise.
424         * modules/vasnprintf-posix-tests (Files): Likewise.
425         * modules/vasprintf-posix-tests (Files): Likewise.
426         * modules/vdprintf-posix-tests (Files): Likewise.
427         * modules/vfprintf-posix-tests (Files): Likewise.
428         * modules/vprintf-posix-tests (Files): Likewise.
429         * modules/vsnprintf-posix-tests (Files): Likewise.
430         * modules/vsprintf-posix-tests (Files): Likewise.
431         * modules/xprintf-posix-tests (Files): Likewise.
432
433 2011-09-11  Bruno Haible  <bruno@clisp.org>
434
435         Ensure pid_t gets defined.
436         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
437         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
438         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
439         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
440         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
441         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
442         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
443         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
444         * tests/test-fcntl-h.c: Check that pid_t is defined.
445         * tests/test-sched.c: Likewise.
446         * tests/test-termios.c: Likewise.
447         * tests/test-time.c: Likewise.
448         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
449         * doc/posix-headers/signal.texi: Likewise.
450         * doc/posix-headers/sys_types.texi: Likewise.
451         * doc/posix-headers/time.texi: Likewise.
452
453 2011-09-11  Bruno Haible  <bruno@clisp.org>
454
455         acl: Fix compilation on Solaris 10 (older version).
456         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
457         of ACE_EVERYONE.
458         * lib/set-mode-acl.c (qset_acl): Likewise.
459         Reported by Christian Jullien <eligis@orange.fr>.
460
461 2011-09-10  Bruno Haible  <bruno@clisp.org>
462
463         iconv, unsetenv: Add support for MSVC compiler.
464         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
465         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
466
467 2011-09-10  Bruno Haible  <bruno@clisp.org>
468
469         *printf: Add support for MSVC compiler.
470         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
471         handles the exception caused by the %n directive. When cross-compiling,
472         guess no on native Windows.
473         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
474         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
475         emulate it through vsnprintf.
476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
477         * doc/posix-functions/dprintf.texi: Update documentation regarding
478         MSVC 9.
479         * doc/posix-functions/fprintf.texi: Likewise.
480         * doc/posix-functions/printf.texi: Likewise.
481         * doc/posix-functions/snprintf.texi: Likewise.
482         * doc/posix-functions/sprintf.texi: Likewise.
483         * doc/posix-functions/swprintf.texi: Likewise.
484         * doc/posix-functions/vdprintf.texi: Likewise.
485         * doc/posix-functions/vfprintf.texi: Likewise.
486         * doc/posix-functions/vprintf.texi: Likewise.
487         * doc/posix-functions/vsnprintf.texi: Likewise.
488         * doc/posix-functions/vsprintf.texi: Likewise.
489         * doc/glibc-functions/asprintf.texi: Likewise.
490         * doc/glibc-functions/obstack_printf.texi: Likewise.
491         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
492         * doc/glibc-functions/vasprintf.texi: Likewise.
493
494 2011-09-10  Bruno Haible  <bruno@clisp.org>
495
496         nocrash: Add support for native Windows.
497         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
498
499 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
500             Bruno Haible  <bruno@clisp.org>
501
502         absolute-header, include-next: Add support for MSVC compiler.
503         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
504         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
505         directory separator in #line directives.
506         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
507         recognize also backslash as directory separator in #line directives.
508
509 2011-09-08  Jim Meyering  <meyering@redhat.com>
510
511         maint.mk: mark the post-release commit log with "maint: " prefix
512         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
513         one-line commit-log summary.
514
515 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
516             Bruno Haible  <bruno@clisp.org>
517
518         Doc about crypt functions.
519         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
520         systems.
521         * doc/posix-functions/encrypt.texi: Likewise.
522         * doc/posix-functions/setkey.texi: Likewise.
523
524 2011-09-08  Simon Josefsson  <simon@josefsson.org>
525
526         * lib/gc.h: Fix copyright header.
527
528 2011-09-07  Bruno Haible  <bruno@clisp.org>
529
530         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
531         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
532         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
533
534 2011-09-07  Bruno Haible  <bruno@clisp.org>
535
536         openat: Work around compilation error with OSF/1 5.1 DTK cc.
537         * lib/fopen.c: Use different syntax for include of <stdio.h>.
538         * lib/freopen.c: Likewise.
539         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
540         * lib/lstat.c: Likewise.
541         * lib/stat.c: Likewise.
542         * lib/open.c: Use different syntax for include of <fcntl.h>.
543         * lib/openat.c: Include fcntl.h again, explicitly.
544
545 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
546
547         parse-datetime: document the newly accepted format
548         * doc/parse-datetime.texi (Combined date and time of day items):
549         New section.
550
551 2011-09-06  Bruno Haible  <bruno@clisp.org>
552
553         acl: Fix a test failure on newer Solaris 10 with ZFS.
554         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
555         ENOSYS as no ACL.
556         Reported by Jim Meyering.
557
558 2011-09-06  Bruno Haible  <bruno@clisp.org>
559
560         acl: Update for AIX >= 5.3 with NFS.
561         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
562         ENOSYS as no ACL.
563
564         acl: Fix a test failure on AIX >= 5.3 with NFS.
565         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
566         as no ACL.
567
568 2011-09-06  Bruno Haible  <bruno@clisp.org>
569
570         acl: Fix a test failure on IRIX 6.5 with NFS.
571         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
572         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
573         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
574         * lib/copy-acl.c (qcopy_acl): Likewise.
575
576 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
577
578         openat: port to AIX 7.1 with large files
579         AIX 7.1 does a "#define openat open64at" if large files are in use,
580         so we can't simply #undef openat.  Use the orig_openat trick (similar
581         to orig_open in lib/open.c) to work around the problem.  Problem
582         reported by Kevin Brott for GNU tar, in the thread containing
583         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
584         * lib/openat.c (__need_system_fcntl_h): Define first.
585         Include <fcntl.h> and <sys/types.h> before undefining.
586         (orig_openat) [HAVE_OPENAT]: New inline function.
587         (openat) [HAVE_OPENAT]: Do not undef.
588         (rpl_openat): Use orig_openat, not openat.
589
590 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
591             Bruno Haible  <bruno@clisp.org>
592
593         acl: Avoid errors on NonStop Kernel.
594         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
595         ENOTSUP errors.
596
597 2011-09-05  Bruno Haible  <bruno@clisp.org>
598
599         acl: Clean up Solaris code.
600         * lib/acl-internal.h: Remove no-op #if.
601         * lib/file-has-acl.c: Likewise.
602         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
603         * lib/copy-acl.c (qcopy_acl): Likewise.
604
605 2011-09-05  Bruno Haible  <bruno@clisp.org>
606
607         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
608         binaries built on the original Solaris 10.
609         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
610         trivial.
611
612 2011-09-05  Bruno Haible  <bruno@clisp.org>
613
614         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
615         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
616         10.
617         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
618         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
619         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
620         instead of acl_get, facl_get, acl_set, facl_set.
621
622 2011-09-05  Bruno Haible  <bruno@clisp.org>
623
624         copy-file: Try unit tests on more file systems.
625         * tests/test-copy-file-1.sh: New file.
626         * tests/test-copy-file-2.sh: New file.
627         * modules/copy-file-tests (Files): Add them.
628         (Makefile.am): Add them to TESTS.
629
630         acl: Try unit tests on more file systems.
631         * tests/test-file-has-acl-1.sh: New file.
632         * tests/test-file-has-acl-2.sh: New file.
633         * tests/test-set-mode-acl-1.sh: New file.
634         * tests/test-set-mode-acl-2.sh: New file.
635         * tests/test-copy-acl-1.sh: New file.
636         * tests/test-copy-acl-2.sh: New file.
637         * modules/acl-tests (Files): Add them.
638         (Makefile.am): Add them to TESTS.
639
640 2011-09-04  Bruno Haible  <bruno@clisp.org>
641
642         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
643         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
644         10.
645         (OLD_ALLOW, OLD_DENY): New macros.
646         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
647         ACE_ACCESS_ALLOWED_ACE_TYPE.
648         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
649         ACE_ACCESS_DENIED_ACE_TYPE.
650         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
651         (NEW_ACE_EXECUTE): Fix value.
652         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
653         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
654         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
655         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
656         NEW_ACE_SYNCHRONIZE): New macros.
657         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
658         instead of acl_fromtext, acl_set, facl_set.
659         Fixes a coreutils/tests/cp/perm failure.
660
661 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
662
663         openat: test for fstatat (..., 0) bug
664         Further testing with tar suggests that fstatat (..., 0)
665         does not work in general, on AIX 7.1; see
666         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
667         So, give up entirely on AIX 7.1's fstatat, and fall back on our
668         replacement fstatat (which is what older AIX releases were using
669         anyway).
670         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
671         use is now changed to orig_fstatat.  This was probably the right
672         thing to do anyway.
673         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
674         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
675         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
676         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
677         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
678         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
679         if the bug is found.
680
681         openat: test for fstatat (AT_FDCWD, ..., 0) bug
682         This tests for another fstatat bug on AIX 7.1:
683         fstatat (AT_FDCWD, ..., 0) does not work.  See
684         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
685         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
686         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
687         (rpl_fstatat): Adjust so that it works around either (or both)
688         bugs if present.
689         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
690
691 2011-09-03  Karl Berry  <karl@gnu.org>
692
693         * doc/regex.texi (Character Class Operators): Avoid literal ":"
694         in index entries.
695
696 2011-09-02  Bruno Haible  <bruno@clisp.org>
697
698         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
699         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
700         values of AR, ARFLAGS, RANLIB.
701         Reported by John W. Eaton <jwe@gnu.org> for Octave.
702
703 2011-09-02  Bruno Haible  <bruno@clisp.org>
704
705         Find 'ar' program that fits with --host argument.
706         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
707
708 2011-09-02  Bruno Haible  <bruno@clisp.org>
709
710         tests: init.sh: Support any non-GNU diff.
711         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
712         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
713         Solaris 8.
714
715 2011-09-02  Bruno Haible  <bruno@clisp.org>
716
717         tests: init.sh: work also with any non-GNU diff that supports -u
718         * tests/init.sh: Relax check for diff -u support.
719         Rather than checking for GNU diff via --version, simply check
720         for support for -u itself.  Useful at least on OpenBSD 4.9,
721         AIX 7.1, IRIX 6.5, and Solaris 10.
722
723 2011-09-01  Bruno Haible  <bruno@clisp.org>
724
725         strtoimax, strtoumax: Document problem on HP-UX 11.
726         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
727         * doc/posix-functions/strtoumax.texi: Likewise.
728
729 2011-09-01  Bruno Haible  <bruno@clisp.org>
730
731         strtoumax: Avoid link error on OSF/1 with DTK cc.
732         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
733         defined as a function.
734         * modules/strtoumax (Depends-on, configure.ac): Test only whether
735         strtoumax is defined, not whether it is declared.
736
737 2011-09-01  Bruno Haible  <bruno@clisp.org>
738
739         strtoimax: Avoid link error on OSF/1 with DTK cc.
740         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
741         defined as a function.
742         * modules/strtoimax (Depends-on, configure.ac): Test only whether
743         strtoimax is defined, not whether it is declared.
744
745 2011-09-01  Bruno Haible  <bruno@clisp.org>
746
747         imaxdiv: Avoid link error on OSF/1 with DTK cc.
748         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
749         as a function.
750         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
751         whether it is declared.
752
753 2011-09-01  Bruno Haible  <bruno@clisp.org>
754
755         imaxabs: Avoid link error on OSF/1 with DTK cc.
756         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
757         as a function.
758         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
759         whether it is declared.
760
761 2011-09-01  Bruno Haible  <bruno@clisp.org>
762
763         Tests for module 'strtoumax'.
764         * modules/strtoumax-tests: New file.
765         * tests/test-strtoumax.c: New file.
766
767         Tests for module 'strtoimax'.
768         * modules/strtoimax-tests: New file.
769         * tests/test-strtoimax.c: New file.
770
771         Tests for module 'imaxdiv'.
772         * modules/imaxdiv-tests: New file.
773         * tests/test-imaxdiv.c: New file.
774
775         Tests for module 'imaxabs'.
776         * modules/imaxabs-tests: New file.
777         * tests/test-imaxabs.c: New file.
778
779 2011-09-01  Bruno Haible  <bruno@clisp.org>
780
781         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
782         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
783         pthread_create.
784
785 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
786
787         openat: work around AIX 7.1 fstatat issue
788         This should fix the problem that was not properly fixed
789         in the previous change, dated 2011-08-30.
790         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
791         __need_system_stat_h defined.
792         (orig_fstatat) [HAVE_FSTATAT]: New function.
793         (rpl_fstatat): Go back to the old way of doing things,
794         except call orig_fstatat instead of fstatat.
795         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
796         Remove unnecessary check whether fstatat fills in st_size etc.
797
798 2011-09-01  Bruno Haible  <bruno@clisp.org>
799
800         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
801         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
802         just include the system's header.
803
804 2011-08-31  Jim Meyering  <meyering@redhat.com>
805
806         tests: avoid spurious assertion failure in test-float.c on ppc64
807         * tests/test-float.c (test_long_double): Comment out an assertion,
808         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
809         with gcc-4.4.4.
810
811         maint: indent with spaces, not TABs
812         I need to get in the habit of running gnulib's "make check".
813         Both of these would have been caught.
814         * m4/largefile.m4: Indent with spaces, not TABs.
815         * lib/parse-datetime.y (iso_8601_time): Likewise.
816         Spotted by Pádraig Brady.
817
818         test-parse-datetime.c: accommodate a relatively strict gcc warning
819         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
820         to avoid a warning from gcc's -Werror=missing-declarations.
821         Insert a few spaces-before-funcall-parenthesis.
822
823 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
824
825         parse-datetime: accept ISO 8601 date and time rep with "T" separator
826         The parser now accepts ISO 8601 date-time strings with "T" as the
827         separator.  It has long parsed dates like "2004-02-29 16:21:42"
828         with a space between the date and time strings.  Now it also parses
829         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
830         variants like "2004-02-29T16:21:42.333-07:00"
831         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
832         of day representation using the 'T' separator character.
833         * doc/parse-datetime.texi (General date syntax): replace use of
834         deprecated --iso-8601 option with --rfc-3339 in example of date
835         command output formats that can be parsed.
836         * tests/test-parse-datetime.c (tm_diff): New function, taken from
837         lib/parse-datetime.y.
838         (gmt_offset): New function.
839         (main): Add additional test cases to validate ISO8601 extended
840         date and time of day parsing.
841
842 2011-08-31  Bruno Haible  <bruno@clisp.org>
843
844         freopen: Documentation.
845         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
846         name.
847         Reported by Claudio Bley <claudio.bley@gmail.com>.
848
849 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
850
851         freopen: Don't crash if the filename argument is NULL.
852         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
853         NULL.
854
855 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
856
857         openat: work around AIX 7.1 fstatat bug
858         Problem reported by Kevin Brott for GNU tar, in the thread containing
859         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
860         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
861         FSTATAT_ST_SIZE_ETC_BROKEN.
862         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
863         rpl_fstatat.
864         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
865         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
866         AC_CHECK_FUNCS_ONCE for fstatat.
867         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
868         fchmodat, mkdirat, openat and unlinkat.
869
870 2011-08-30  Bruno Haible  <bruno@clisp.org>
871
872         Avoid endless recursions if config.h includes some header files.
873         * lib/fopen.c (__need_FILE): Define already before including config.h.
874         * lib/freopen.c (__need_FILE): Likewise.
875         * lib/open.c (__need_system_fcntl_h): Likewise.
876         * lib/stat.c (__need_system_sys_stat_h): Likewise.
877         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
878         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
879
880 2011-08-25  Karl Berry  <karl@gnu.org>
881
882         * config/srclist.txt (ylwrap): new try.
883         * build-aux/ylwrap: new file.
884
885 2011-08-23  Bruno Haible  <bruno@clisp.org>
886
887         tmpdir: Use a good default directory on native Windows.
888         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
889         (P_tmpdir): Default to _P_tmpdir on native Windows.
890         (path_search): On native Windows, try the value returned by GetTempPath
891         before trying P_tmpdir.
892         * modules/tmpdir (Depends-on): Add pathmax.
893         Suggested by John Darrington <john@darrington.wattle.id.au>.
894
895 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
896
897         doc: fix typo in README-release
898         * top/README-release: Capitalize first word of a sentence.
899
900 2011-08-19  Jim Meyering  <meyering@redhat.com>
901
902         fts: do not exhaust memory when processing million-entry directories
903         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
904         directory would require about 256*N bytes of memory.  Thus, it was
905         easy to construct a directory too large to be processed by any of
906         those tools.  With this change, fts' maximum memory utilization is
907         now limited to around 30MB.
908         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
909         (fts_read): When we've processed the final entry (i.e., when
910         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
911         using the parent entry to read any remaining entries.  Dispatch
912         depending on what fts_build returns:
913         - NULL+stop, aka failure: stop
914         - NULL otherwise: move up in the dir hierarchy
915         - non-NULL: handle this new entry
916         (fts_build): Declare and use new local, continue_readdir.
917         Prepare to be called from fts_read, when the entries
918         from a partially-read directory have just been exhausted.
919         In that case, we'll skip the opendir and instead use the parent's
920         fts_dirp and derive dir_fd from that.
921         Finally, in the readdir loop, if we read max_entries entries,
922         exit the loop ensuring *not* to call closedir.  This is required
923         so that fts_dirp can be reused on a subsequent call.
924         Prompted by Ben England's report of memory exhaustion in find
925         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
926
927         maint: fts: move decl of `dp' down into while loop; split a long line
928         * lib/fts.c (fts_build): No semantic change.
929
930         fts: add/use new struct member, fts_dirp
931         We are about to use this to manage any directory with
932         too many entries to read all of them into memory at once.
933         To do that, we'll need to save the DIR* pointer in each
934         affected FTSENT struct.
935         * lib/fts_.h: Include <dirent.h>.
936         (struct FTSENT) [fts_dirp]: New member.
937         * lib/fts.c (closedir_and_clear): Define.
938         Use it in place of closedir so that we are sure to
939         clear the new fts_dirp member when done with it.
940         (fts_alloc): Initialize the new member.
941         (fts_lfree): Free, if needed.
942
943         maint: fts: give __opendir2 a new parameter and rename
944         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
945         than surreptitiously using sole caller's "dir_fd".
946         (fts_opendir): Rename from __opendir2.
947
948         maint: fts.c: remove __opendir2's now-unused parameter, oflag
949         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
950
951         maint: fts.c: correct off-by-one indentation
952         * lib/fts.c (fts_build): Correct indentation, change style
953         of a couple of block comments, and bracing style.
954
955         maint: fts.c: move __opendir2 #define "up" out of function body
956         * lib/fts.c (__opendir2): Move "up".  No semantic change.
957
958         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
959         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
960         out for a long time and besides was useful only on BSD systems.
961
962 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
963
964         regex: port to Stratus OpenVOS
965         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
966         define to empty, rather than attempting nonportable optimizations.
967         Problem reported by Paul Green in:
968         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
969         and fix suggested by Eric Blake in:
970         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
971
972 2011-08-17  Eric Blake  <eblake@redhat.com>
973
974         getcwd: fix test failures on mingw
975         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
976         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
977         test if long directory cannot be created, and allow mingw errno.
978
979         getcwd-lgpl: fix m4 to match relaxed test for BSD
980         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
981         (gl_FUNC_GETCWD_SIGNATURE): New macro.
982         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
983         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
984         signature problem.
985
986         getcwd: fix compilation on mingw64
987         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
988         getcwd.
989         Reported by Marc-André Lureau.
990
991         pipe2: silence compiler warning
992         * lib/pipe2.c (pipe2): Hide label if it is not used.
993
994 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
995
996         relocatable-prog: fix link error
997         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
998         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
999         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1000         into modules/relocatable-lib without noticing that
1001         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1002         also needs to build relocatable.c.
1003
1004 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1005
1006         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1008         shell code: it contained a 'break' that was not in a loop.
1009         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1010         via a shell-language loop; this may have been true in old Autoconf
1011         versions, but it's not true in Autoconf 2.68.  I found this bug
1012         when testing coreutils git on Solaris 8, whose shell complains
1013         about the syntax error.
1014
1015 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1016
1017         * lib/base64.c: Fix comment to reference RFC 4648.
1018         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1019         <gvtulder@gmail.com>.
1020
1021 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1022
1023         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1024
1025         po/Makefile.in.in: fix make -q problem
1026         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1027         rule, since there's no file named 'check-macro-version' and its
1028         use as a file breaks make -q.
1029         (all): Don't depend on check-macro-version.
1030         (CHECK_MACRO_VERSION): New macro.
1031         (stamp-po): Use it.
1032
1033         configmake: fix make -q problem
1034         * modules/configmake (configmake.h): Update configmake.h's time stamp
1035         even if the file does not change.  Otherwise, 'make -q' fails.
1036         Problem reported by Simon Josefsson in
1037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1038
1039 2011-08-11  Jim Meyering  <meyering@redhat.com>
1040
1041         git-version-gen: correct the advice in a comment
1042         * build-aux/git-version-gen: Correct comment.
1043         Don't recommend to list .tarball-version in .gitignore.
1044
1045 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1046
1047         base64: fix off-by-one buffer size bug
1048         Problem and (trivial) fix reported by Gijs van Tulder in
1049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1050         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1051         * tests/test-base64.c (main): Catch the bug.
1052
1053 2011-08-10  Eric Blake  <eblake@redhat.com>
1054
1055         closein: correct comments
1056         * lib/closein.c (close_stdin): Improve comments.
1057
1058 2011-08-09  Bruno Haible  <bruno@clisp.org>
1059
1060         More tests for 'fseeko'.
1061         * tests/test-fseeko3.c: New file, from Eric Blake.
1062         * tests/test-fseeko3.sh: New file.
1063         * modules/fseeko-tests (Files): Add them.
1064         (TESTS): Add test-fseeko3.sh.
1065         (check_PROGRAMS): Add test-fseeko3.
1066
1067 2011-08-09  Eric Blake  <eblake@redhat.com>
1068
1069         fseeko: remove unneeded hack
1070         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1071
1072         fseeko: fix bug on glibc
1073         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1074         Reported by John W. Eaton.
1075
1076 2011-08-08  Bruno Haible  <bruno@clisp.org>
1077
1078         unictype/base: Fix interoperability with preinstalled libunistring.
1079         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1080         Reported by Simon Josefsson.
1081
1082 2011-08-08  Bruno Haible  <bruno@clisp.org>
1083
1084         iswblank: Detect declaration correctly.
1085         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1086         AC_CHECK_DECLS invocation.
1087
1088 2011-08-08  Bruno Haible  <bruno@clisp.org>
1089
1090         tcgetsid: Detect declaration correctly.
1091         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1092         AC_CHECK_DECLS invocation.
1093         Reported by Simon Josefsson.
1094
1095 2011-08-08  Eric Blake  <eblake@redhat.com>
1096
1097         largefile: fix typo that regressed large file support
1098         * modules/largefile (configure.ac-early): Fix section name.
1099
1100 2011-08-06  Karl Berry  <karl@gnu.org>
1101
1102         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1103         a separate module.
1104
1105 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1106
1107         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1108         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1109         get prototype for free.
1110
1111 2011-08-04  Bruno Haible  <bruno@clisp.org>
1112
1113         Tests for module 'pathmax'.
1114         * modules/pathmax-tests: New file.
1115         * tests/test-pathmax.c: New file.
1116
1117         canonicalize-lgpl: Support larger filenames on the Hurd.
1118         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1119         Reported by Paul Eggert.
1120
1121         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1122         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1123         * lib/chdir-long.h: Include pathmax.h.
1124         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1125         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1126         (PATH_MAX): Remove code that is done by pathmax.h.
1127         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1128         * lib/tmpfile.c: Add a comment.
1129         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1130         * modules/chdir-long (Depends-on): Add pathmax.
1131         * modules/getcwd (Depends-on): Add pathmax.
1132         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1133         is not defined.
1134         * doc/posix-headers/limits.texi: Mention the pathmax module.
1135         * NEWS: Mention the change.
1136
1137 2011-08-02  Bruno Haible  <bruno@clisp.org>
1138
1139         pthread_sigmask: Actually use results of gl_THREADLIB.
1140         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1141         gl_THREADLIB, not gl_[]THREADLIB.
1142         Reported by Eric Blake.
1143
1144 2011-08-02  Jim Meyering  <meyering@redhat.com>
1145
1146         maint.mk: relax the default _gl_TS_function_match regexp
1147         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1148         space between function name and "(" in an "extern" declaration.
1149         That would fail to match a decl with no space there: extern void foo();
1150
1151 2011-07-31  Iain Nicol  <iain@thenicols.net>
1152
1153         git-version-gen: document that EXTRA_DIST must include .version
1154         * build-aux/git-version-gen: In the how-to-use comment, document
1155         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1156         will fail when run from an unpacked distribution tarball.
1157
1158 2011-08-01  Bruno Haible  <bruno@clisp.org>
1159
1160         wctype-h: Fix last change.
1161         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1162         REPLACE_TOWLOWER to 0.
1163         Reported by Sam Steingold <sds@gnu.org>.
1164
1165 2011-07-31  Bruno Haible  <bruno@clisp.org>
1166
1167         frexpl: Update autoconf test.
1168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1169         according to changes of 2011-06-20.
1170
1171 2011-07-31  Bruno Haible  <bruno@clisp.org>
1172
1173         sys_utsname: Add support for Minix.
1174         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1175         <sys/utsname.h>.
1176         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1177         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1178
1179 2011-07-31  Bruno Haible  <bruno@clisp.org>
1180
1181         strings: Add support for Minix.
1182         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1183         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1184         * doc/posix-headers/strings.texi: Document the Minix problem.
1185
1186 2011-07-31  Bruno Haible  <bruno@clisp.org>
1187
1188         wctype-h: Add support for Minix.
1189         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1190         REPLACE_TOWLOWER.
1191         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1192         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1193         REPLACE_ISWCNTRL.
1194
1195 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1198         This is a performance improvement for 64-bit hosts: it causes the
1199         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1200
1201 2011-07-31  Bruno Haible  <bruno@clisp.org>
1202
1203         stdioext: Add support for Minix.
1204         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1205         * lib/fpurge.c (fpurge): Likewise.
1206         * lib/freadahead.c (freadahead): Likewise.
1207         * lib/freadable.c (freadable): Likewise.
1208         * lib/freading.c (freading): Likewise.
1209         * lib/freadptr.c (freadptr): Likewise.
1210         * lib/freadseek.c (freadptrinc): Likewise.
1211         * lib/fseeko.c (rpl_fseeko): Likewise.
1212         * lib/fseterr.c (fseterr): Likewise.
1213         * lib/fwritable.c (fwritable): Likewise.
1214         * lib/fwriting.c (fwriting): Likewise.
1215         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1216         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1217
1218 2011-07-31  Bruno Haible  <bruno@clisp.org>
1219
1220         errno: Port to Minix.
1221         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1222         ECONNABORTED are defined.
1223         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1224         GNULIB_defined_ECONNABORTED): New macros.
1225         * lib/strerror-override.h (strerror_override): Test also
1226         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1227         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1228         ECONNABORTED.
1229         * doc/posix-headers/errno.texi: Mention the Minix problem.
1230
1231 2011-07-31  Bruno Haible  <bruno@clisp.org>
1232
1233         Work around declaration collisions on Minix.
1234         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1235         defined, set REPLACE_MBSINIT.
1236         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1237         defined, set REPLACE_MBRTOWC.
1238         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1239         set REPLACE_MBRLEN.
1240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1241         defined, set REPLACE_MBSRTOWCS.
1242         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1243         defined, set REPLACE_WCRTOMB.
1244         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1245         defined, set REPLACE_WCSRTOMBS.
1246
1247 2011-07-31  Bruno Haible  <bruno@clisp.org>
1248
1249         Add support for Minix with ACK compiler.
1250         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1251         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1252         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1253
1254 2011-07-31  Bruno Haible  <bruno@clisp.org>
1255
1256         Documentation about Minix.
1257         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1258         * doc/glibc-headers/*.texi: Likewise.
1259         * doc/posix-functions/*.texi: Likewise.
1260         * doc/glibc-functions/*.texi: Likewise.
1261
1262 2011-07-31  Bruno Haible  <bruno@clisp.org>
1263
1264         snippet/warn-on-use: Fix indentation.
1265         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1266
1267 2011-07-25  Jim Meyering  <meyering@redhat.com>
1268
1269         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1270         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1271         commands.
1272
1273 2011-07-27  Jim Meyering  <meyering@redhat.com>
1274
1275         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1276         * top/maint.mk (gl_extract_significant_defines_): Now that
1277         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1278         gnulib/lib/signal.in.h, and now that we recommend to
1279         define-if-undefined those two symbols in application code,
1280         we must filter them out of the "significant" list.
1281         This avoids a "make syntax-check" failure in coreutils.
1282
1283 2011-07-26  Eric Blake  <eblake@redhat.com>
1284
1285         warnings: add comments about previous patch
1286         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1287         * m4/include_next.m4: Likewise.
1288         * m4/warn-on-use.m4: Likewise.
1289         * m4/warnings.m4: Likewise, and simplify use.
1290         Suggested by Stefano Lattarini.
1291
1292         include-next, warnings: support older autoconf
1293         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1294         AS_VAR_PUSHDEF in a way that works with older autoconf.
1295         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1296         Reported by Daniel P. Berrange.
1297
1298 2011-07-25  Bruno Haible  <bruno@clisp.org>
1299
1300         fseek, ftell: Fix doc.
1301         * doc/posix-functions/fseek.texi: Reword statement about
1302         AC_SYS_LARGEFILE.
1303         * doc/posix-functions/ftell.texi: Likewise.
1304
1305 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1306             Bruno Haible  <bruno@clisp.org>
1307
1308         Add dependencies to the 'largefile' module.
1309         * modules/fopen (Depends-on): Add 'largefile'.
1310         * modules/freopen (Depends-on): Likewise.
1311         * modules/fseeko (Depends-on): Likewise.
1312         * modules/ftello (Depends-on): Likewise.
1313         * modules/glob (Depends-on): Likewise.
1314         * modules/lseek (Depends-on): Likewise.
1315         * modules/lstat (Depends-on): Likewise.
1316         * modules/mkostemp (Depends-on): Likewise.
1317         * modules/mkostemps (Depends-on): Likewise.
1318         * modules/mkstemp (Depends-on): Likewise.
1319         * modules/mkstemps (Depends-on): Likewise.
1320         * modules/open (Depends-on): Likewise.
1321         * modules/openat (Depends-on): Likewise.
1322         * modules/pread (Depends-on): Likewise.
1323         * modules/pwrite (Depends-on): Likewise.
1324         * modules/scandir (Depends-on): Likewise.
1325         * modules/stat (Depends-on): Likewise.
1326         * modules/tmpfile (Depends-on): Likewise.
1327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1328         since the containing module now depends on the largefile module.
1329         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1330         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1331         off_t is fixed by gnulib.
1332         * doc/posix-functions/freopen.texi: Likewise.
1333         * doc/posix-functions/fseeko.texi: Likewise.
1334         * doc/posix-functions/fstatat.texi: Likewise.
1335         * doc/posix-functions/ftello.texi: Likewise.
1336         * doc/posix-functions/glob.texi: Likewise.
1337         * doc/posix-functions/lseek.texi: Likewise.
1338         * doc/posix-functions/lstat.texi: Likewise.
1339         * doc/posix-functions/mkstemp.texi: Likewise.
1340         * doc/posix-functions/open.texi: Likewise.
1341         * doc/posix-functions/openat.texi: Likewise.
1342         * doc/posix-functions/pread.texi: Likewise.
1343         * doc/posix-functions/pwrite.texi: Likewise.
1344         * doc/posix-functions/scandir.texi: Likewise.
1345         * doc/posix-functions/stat.texi: Likewise.
1346         * doc/posix-functions/tmpfile.texi: Likewise.
1347         * doc/glibc-functions/mkostemp.texi: Likewise.
1348         * doc/glibc-functions/mkostemps.texi: Likewise.
1349         * doc/glibc-functions/mkstemps.texi: Likewise.
1350
1351 2011-07-25  Bruno Haible  <bruno@clisp.org>
1352
1353         fcntl: Move AC_LIBOBJ invocation to module description.
1354         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1355         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1356
1357         fcntl: Remove call-in from fchdir.m4.
1358         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1360
1361         dup3: Remove potential call-in from fchdir.m4.
1362         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1364
1365         dup2: Move AC_LIBOBJ invocation to module description.
1366         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1367         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1368         Don't invoke AC_LIBOBJ.
1369         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1370
1371         dup2: Remove call-in from fchdir.m4.
1372         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1374
1375         fclose: Move AC_LIBOBJ invocation to module description.
1376         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1377         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1378         to 1.
1379         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1380
1381         fclose: Remove call-in from close.m4.
1382         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1383         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1384
1385         close: Move AC_LIBOBJ invocation to module description.
1386         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1387         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1388         1.
1389         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1390
1391         close: Remove call-in from fchdir.m4.
1392         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1394
1395         open: Move AC_LIBOBJ invocation to module description.
1396         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1397         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1398         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1399
1400         open: Remove call-in from fchdir.m4.
1401         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1403
1404         fchdir: Start to remove gl_REPLACE_* idiom.
1405         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1406         (gl_FUNC_FCHDIR): Invoke it.
1407
1408 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1409
1410         * lib/ftell.c (ftell): Comment out cast.
1411
1412         close: use gl_REPLACE_FCLOSE only if defined
1413         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1414         is defined.  The close module doesn't depend on the fclose module
1415         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1417         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1418
1419 2011-07-24  Jim Meyering  <meyering@redhat.com>
1420
1421         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1422         * tests/test-select.h (test_function): Declare as "static".
1423
1424 2011-07-24  Bruno Haible  <bruno@clisp.org>
1425
1426         doc: Mention the effects of AC_SYS_LARGEFILE.
1427         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1428         on this function.
1429         * doc/posix-functions/aio_error.texi: Likewise.
1430         * doc/posix-functions/aio_fsync.texi: Likewise.
1431         * doc/posix-functions/aio_read.texi: Likewise.
1432         * doc/posix-functions/aio_return.texi: Likewise.
1433         * doc/posix-functions/aio_suspend.texi: Likewise.
1434         * doc/posix-functions/aio_write.texi: Likewise.
1435         * doc/posix-functions/fgetpos.texi: Likewise.
1436         * doc/posix-functions/fopen.texi: Likewise.
1437         * doc/posix-functions/freopen.texi: Likewise.
1438         * doc/posix-functions/fsetpos.texi: Likewise.
1439         * doc/posix-functions/fstatvfs.texi: Likewise.
1440         * doc/posix-functions/ftruncate.texi: Likewise.
1441         * doc/posix-functions/ftw.texi: Likewise.
1442         * doc/posix-functions/getrlimit.texi: Likewise.
1443         * doc/posix-functions/glob.texi: Likewise.
1444         * doc/posix-functions/lio_listio.texi: Likewise.
1445         * doc/posix-functions/lockf.texi: Likewise.
1446         * doc/posix-functions/mkstemp.texi: Likewise.
1447         * doc/posix-functions/mmap.texi: Likewise.
1448         * doc/posix-functions/nftw.texi: Likewise.
1449         * doc/posix-functions/openat.texi: Likewise.
1450         * doc/posix-functions/opendir.texi: Likewise.
1451         * doc/posix-functions/posix_fadvise.texi: Likewise.
1452         * doc/posix-functions/posix_fallocate.texi: Likewise.
1453         * doc/posix-functions/pread.texi: Likewise.
1454         * doc/posix-functions/pwrite.texi: Likewise.
1455         * doc/posix-functions/readdir.texi: Likewise.
1456         * doc/posix-functions/readdir_r.texi: Likewise.
1457         * doc/posix-functions/rewinddir.texi: Likewise.
1458         * doc/posix-functions/scandir.texi: Likewise.
1459         * doc/posix-functions/seekdir.texi: Likewise.
1460         * doc/posix-functions/setrlimit.texi: Likewise.
1461         * doc/posix-functions/statvfs.texi: Likewise.
1462         * doc/posix-functions/telldir.texi: Likewise.
1463         * doc/posix-functions/tmpfile.texi: Likewise.
1464         * doc/posix-functions/truncate.texi: Likewise.
1465         * doc/glibc-functions/fallocate.texi: Likewise.
1466         * doc/glibc-functions/fstatfs.texi: Likewise.
1467         * doc/glibc-functions/fts_children.texi: Likewise.
1468         * doc/glibc-functions/fts_read.texi: Likewise.
1469         * doc/glibc-functions/getdirentries.texi: Likewise.
1470         * doc/glibc-functions/mkostemp.texi: Likewise.
1471         * doc/glibc-functions/mkostemps.texi: Likewise.
1472         * doc/glibc-functions/mkstemps.texi: Likewise.
1473         * doc/glibc-functions/preadv.texi: Likewise.
1474         * doc/glibc-functions/pwritev.texi: Likewise.
1475         * doc/glibc-functions/sendfile.texi: Likewise.
1476         * doc/glibc-functions/statfs.texi: Likewise.
1477
1478 2011-07-24  Bruno Haible  <bruno@clisp.org>
1479
1480         doc: Fix typo.
1481         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1482
1483 2011-07-24  Bruno Haible  <bruno@clisp.org>
1484
1485         doc: Mention fsusage.
1486         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1487
1488 2011-07-24  Bruno Haible  <bruno@clisp.org>
1489
1490         doc: Mention new glibc headers and functions.
1491         * doc/glibc-headers/gshadow.texi: New file.
1492         * doc/glibc-functions/endsgent.texi: New file.
1493         * doc/glibc-functions/fgetsgent.texi: New file.
1494         * doc/glibc-functions/fgetsgent_r.texi: New file.
1495         * doc/glibc-functions/getsgent.texi: New file.
1496         * doc/glibc-functions/getsgent_r.texi: New file.
1497         * doc/glibc-functions/getsgnam.texi: New file.
1498         * doc/glibc-functions/getsgnam_r.texi: New file.
1499         * doc/glibc-functions/putsgent.texi: New file.
1500         * doc/glibc-functions/setsgent.texi: New file.
1501         * doc/glibc-functions/sgetsgent.texi: New file.
1502         * doc/glibc-functions/sgetsgent_r.texi: New file.
1503         * doc/glibc-functions/malloc_info.texi: New file.
1504         * doc/glibc-functions/preadv.texi: New file.
1505         * doc/glibc-functions/pwritev.texi: New file.
1506         * doc/glibc-functions/register_printf_modifier.texi: New file.
1507         * doc/glibc-functions/register_printf_specifier.texi: New file.
1508         * doc/glibc-functions/register_printf_type.texi: New file.
1509         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1510         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1511         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1512         * doc/glibc-functions/pthread_getname_np.texi: New file.
1513         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1514         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1515         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1516         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1517         * doc/glibc-functions/pthread_setname_np.texi: New file.
1518         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1519         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1520         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1521         * doc/glibc-functions/qsort_r.texi: New file.
1522         * doc/glibc-functions/quick_exit.texi: New file.
1523         * doc/glibc-functions/syncfs.texi: New file.
1524         * doc/gnulib.texi: Include them.
1525         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1526         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1527         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1528         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1529         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1530         * doc/glibc-functions/execvpe.texi: Likewise.
1531
1532 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1533
1534         ftell: don't include <unistd.h>
1535         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1536         guaranteed to define off_t, and the ftell module depends on the
1537         stdio module.
1538
1539         ftell: do not assume wraparound signed arithmetic
1540         * lib/ftell.c: Include <limits.h>.
1541         (ftell): Don't assume wraparound signed arithmetic.
1542
1543 2011-07-24  Bruno Haible  <bruno@clisp.org>
1544
1545         close: No longer depend on module 'fclose'.
1546         * modules/close (Depends-on): Remove fclose.
1547         * NEWS: Mention the change.
1548         Suggested by Sam Steingold <sds@gnu.org>.
1549
1550 2011-07-24  Bruno Haible  <bruno@clisp.org>
1551
1552         fsusage: Enable large volume support on AIX >= 5.2.
1553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1554         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1555         instead of STAT_STATVFS.
1556         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1557
1558         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1559         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1560         f_blocks field only on MacOS X.
1561
1562         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1564         * modules/fsusage (Depends-on): Add largefile.
1565
1566 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1567
1568         * README: Modernize discussion of signed integers.
1569         Assuming overflow wraparound is no longer safe.
1570         Mention ones' complement and signed magnitude.
1571
1572 2011-07-22  Bruno Haible  <bruno@clisp.org>
1573
1574         select tests, pselect tests: Refactor.
1575         * tests/test-select.h: New file, extracted from tests/test-select.c.
1576         (select_fn): New type.
1577         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1578         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1579         test_pipe): Add my_select argument.
1580         (test_function): Renamed from main. Add my_select argument.
1581         * tests/test-select.c: Move most code to tests/test-select.h. Include
1582         test-select.h.
1583         * modules/select-tests (Files): Add tests/test-select.h.
1584         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1585         (my_select, main): New functions.
1586         * modules/pselect-tests (Files): Add tests/test-select.h,
1587         tests/macros.h, tests/signature.h.
1588         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1589         (configure.ac): Check for <sys/wait.h>.
1590
1591 2011-07-22  Bruno Haible  <bruno@clisp.org>
1592
1593         sys_select tests: Check the signature of FD_*.
1594         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1595         signature tests from here...
1596         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1597         here.
1598         * modules/sys_select-tests (Files): Add tests/signature.h.
1599
1600 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1601
1602         largefile: new module, replacing large-inode
1603         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1604         * MODULES.html.sh: Add largefile, remove large-inode.
1605         * modules/largefile, m4/largefile.m4: New files.
1606         * modules/large-inode, m4/large-inode.m4: Remove.
1607
1608         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1610         implementations that use only 32 bits to count blocks.
1611         On typical hosts with 1024-byte blocks, this fails with file
1612         systems as small as 4 TiB.  Problem reported by Herb Wartens
1613         <http://debbugs.gnu.org/9140> and this should also fix a similar
1614         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1615
1616         large-inode: New module
1617         * MODULES.html.sh: Add it.
1618         * modules/large-inode, m4/large-inode.m4: New files.
1619
1620         extensions: Enable extensions on MacOS X 10.5 and later.
1621         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1622
1623 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1624
1625         file-has-acl: use acl_extended_file_nofollow if available
1626         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1627         (acl_extended_file): New macro.
1628         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1629         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1630
1631 2011-07-21  Bruno Haible  <bruno@clisp.org>
1632
1633         Declare system functions in a way that works with C++.
1634         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1635         declare fdopendir as extern "C".
1636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1637         declare frexpl as extern "C".
1638         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1639         declare gai_strerror as extern "C".
1640         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1641         programs, declare gai_strerror as extern "C".
1642         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1643         declare getlogin_r as extern "C".
1644         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1645         as extern "C".
1646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1647         declare ldexpl as extern "C".
1648         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1649         as extern "C".
1650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1651         program, declare getmntinfo as extern "C".
1652         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1653         stpncpy as extern "C".
1654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1655         program, declare __xpg_strerror_r as extern "C".
1656         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1657         strndup as extern "C".
1658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1659         declare memset and bzero as extern "C".
1660         Reported by Sam Steingold <sds@gnu.org>.
1661
1662 2011-07-12  Jim Meyering  <meyering@redhat.com>
1663
1664         maint.mk: prohibit inclusion of "verify.h" without use
1665         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1666
1667 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1668
1669         timer-time: A new module to check for timer_settime()
1670         * m4/timer_time.m4: Check for the posix function.
1671         * modules/timer-time: Add the new module.
1672         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1673         Mention it.
1674
1675 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1676             Bruno Haible  <bruno@clisp.org>
1677
1678         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1679         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1680         not defined, assume POSIX threads and look for pthread_sigmask in
1681         $LIBS, without changing $CPPFLAGS.
1682
1683 2011-07-19  Bruno Haible  <bruno@clisp.org>
1684
1685         strstr: Update cross-compilation guess.
1686         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1687         CPUs, guess no, in view of glibc
1688         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1689         Suggested by Eric Blake. Reported by Reuben Thomas.
1690
1691 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1692
1693         getopt-gnu: suppress core dumps from detection code
1694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1695         to suppress core dumps that may well occur on glibc systems.
1696         * modules/getopt-gnu: Depend on nocrash.
1697
1698 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1699
1700         pthread_sigmask: ensure usleep is declared
1701         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1702         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1703
1704 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1705
1706         doc: Document NonStop portability issues.
1707         * doc/posix-functions/sigaction.texi (sigaction):
1708         * doc/posix-headers/signal.texi (signal.h):
1709         Document NonStop.  See Joachim Schmitz in
1710         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1711
1712 2011-07-15  Bruno Haible  <bruno@clisp.org>
1713
1714         ffsl, ffsll: Avoid unportable behaviour.
1715         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1716
1717 2011-07-15  Bruno Haible  <bruno@clisp.org>
1718
1719         ffs: More tests.
1720         * tests/test-ffs.c (NBITS): New macro.
1721         (main): Add more tests.
1722         * tests/test-ffsl.c (NBITS): New macro.
1723         (main): Add more tests.
1724         * tests/test-ffsll.c (NBITS): New macro.
1725         (main): Add more tests.
1726
1727 2011-07-15  Eric Blake  <eblake@redhat.com>
1728
1729         ffsl, ffsll: new modules
1730         * modules/ffsl: New file.
1731         * modules/ffsll: Likewise.
1732         * m4/ffsl.m4: Likewise.
1733         * m4/ffsll.m4: Likewise.
1734         * lib/ffsl.c: Likewise.
1735         * lib/ffsl.h: Likewise.
1736         * lib/ffsll.c: Likewise.
1737         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1738         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1739         * modules/string (Makefile.am): Substitute witnesses.
1740         * lib/strings.in.h (ffsl, ffsll): Declare.
1741         * modules/ffsl-tests: New test file.
1742         * modules/ffsll-tests: Likewise.
1743         * tests/test-ffsl.c: Likewise.
1744         * tests/test-ffsll.c: Likewise.
1745         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1746         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1747         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1748
1749         ffs: fix m4 prerequisite
1750         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1751
1752         ffs: avoid undefined behavior
1753         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1754         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1755         Reported by Bruno Haible.
1756
1757 2011-07-12  Bruno Haible  <bruno@clisp.org>
1758
1759         pthread_sigmask: Rely on module 'threadlib'.
1760         * modules/pthread_sigmask (Depends-on): Add threadlib.
1761         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1762         is defined.
1763
1764 2011-07-12  Bruno Haible  <bruno@clisp.org>
1765
1766         regex: Depend on module 'strcase'.
1767         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1768
1769 2011-07-12  Jim Meyering  <meyering@redhat.com>
1770
1771         warn-on-use: fix typo in file name
1772         * modules/snippet/warn-on-use (Files): Correct file name:
1773         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1774
1775 2011-07-12  Bruno Haible  <bruno@clisp.org>
1776
1777         strings: Document module.
1778         * doc/posix-headers/strings.texi: Mention module 'strings'.
1779
1780 2011-07-12  Bruno Haible  <bruno@clisp.org>
1781
1782         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1783         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1784         (Files, Makefile.am): Update.
1785         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1786         * modules/stdlib (Depends-on): Update.
1787
1788 2011-07-12  Bruno Haible  <bruno@clisp.org>
1789
1790         * NEWS: Mention the changes.
1791
1792         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1793         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1794         (Files, Makefile.am): Update.
1795         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1796         * modules/arpa_inet (Depends-on): Update.
1797         * modules/ctype (Depends-on): Update.
1798         * modules/dirent (Depends-on): Update.
1799         * modules/fcntl-h (Depends-on): Update.
1800         * modules/glob (Depends-on): Update.
1801         * modules/iconv-h (Depends-on): Update.
1802         * modules/inttypes-incomplete (Depends-on): Update.
1803         * modules/langinfo (Depends-on): Update.
1804         * modules/locale (Depends-on): Update.
1805         * modules/math (Depends-on): Update.
1806         * modules/netdb (Depends-on): Update.
1807         * modules/poll-h (Depends-on): Update.
1808         * modules/pty (Depends-on): Update.
1809         * modules/search (Depends-on): Update.
1810         * modules/signal (Depends-on): Update.
1811         * modules/spawn (Depends-on): Update.
1812         * modules/stdio (Depends-on): Update.
1813         * modules/stdlib (Depends-on): Update.
1814         * modules/string (Depends-on): Update.
1815         * modules/strings (Depends-on): Update.
1816         * modules/sys_file (Depends-on): Update.
1817         * modules/sys_ioctl (Depends-on): Update.
1818         * modules/sys_select (Depends-on): Update.
1819         * modules/sys_socket (Depends-on): Update.
1820         * modules/sys_stat (Depends-on): Update.
1821         * modules/sys_time (Depends-on): Update.
1822         * modules/sys_times (Depends-on): Update.
1823         * modules/sys_utsname (Depends-on): Update.
1824         * modules/sys_wait (Depends-on): Update.
1825         * modules/termios (Depends-on): Update.
1826         * modules/time (Depends-on): Update.
1827         * modules/unistd (Depends-on): Update.
1828         * modules/wchar (Depends-on): Update.
1829         * modules/wctype-h (Depends-on): Update.
1830         * MODULES.html.sh (Support for building libraries and executables):
1831         Update.
1832
1833         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1834         * modules/snippet/unused-parameter: Renamed from
1835         modules/unused-parameter.
1836         (Files, Makefile.am): Update.
1837         * build-aux/snippet/unused-parameter.h: Renamed from
1838         build-aux/unused-parameter.h.
1839         * modules/selinux-h (Depends-on): Update.
1840         * modules/unistr/base (Depends-on): Update.
1841         * MODULES.html.sh (Core language properties): Update.
1842
1843         Rename module 'link-warning' to 'snippet/link-warning'.
1844         * modules/snippet/link-warning: Renamed from modules/link-warning.
1845         (Files, Makefile.am): Update.
1846         * build-aux/snippet/link-warning.h: Renamed from
1847         build-aux/link-warning.h.
1848         * MODULES.html.sh (Support for building libraries and executables):
1849         Update.
1850
1851         Rename module 'c++defs' to 'snippet/c++defs'.
1852         * modules/snippet/c++defs: Renamed from modules/c++defs.
1853         (Files, Makefile.am): Update.
1854         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1855         * modules/arpa_inet (Depends-on): Update.
1856         * modules/ctype (Depends-on): Update.
1857         * modules/dirent (Depends-on): Update.
1858         * modules/fcntl-h (Depends-on): Update.
1859         * modules/glob (Depends-on): Update.
1860         * modules/iconv-h (Depends-on): Update.
1861         * modules/langinfo (Depends-on): Update.
1862         * modules/locale (Depends-on): Update.
1863         * modules/math (Depends-on): Update.
1864         * modules/netdb (Depends-on): Update.
1865         * modules/poll-h (Depends-on): Update.
1866         * modules/pty (Depends-on): Update.
1867         * modules/search (Depends-on): Update.
1868         * modules/signal (Depends-on): Update.
1869         * modules/spawn (Depends-on): Update.
1870         * modules/stdio (Depends-on): Update.
1871         * modules/stdlib (Depends-on): Update.
1872         * modules/string (Depends-on): Update.
1873         * modules/strings (Depends-on): Update.
1874         * modules/sys_ioctl (Depends-on): Update.
1875         * modules/sys_select (Depends-on): Update.
1876         * modules/sys_socket (Depends-on): Update.
1877         * modules/sys_stat (Depends-on): Update.
1878         * modules/sys_time (Depends-on): Update.
1879         * modules/sys_wait (Depends-on): Update.
1880         * modules/termios (Depends-on): Update.
1881         * modules/time (Depends-on): Update.
1882         * modules/unistd (Depends-on): Update.
1883         * modules/wchar (Depends-on): Update.
1884         * modules/wctype-h (Depends-on): Update.
1885
1886         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1887         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1888         (Files, Makefile.am): Update.
1889         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1890         * modules/argv-iter (Depends-on): Update.
1891         * modules/arpa_inet (Depends-on): Update.
1892         * modules/dirent (Depends-on): Update.
1893         * modules/fcntl-h (Depends-on): Update.
1894         * modules/fnmatch (Depends-on): Update.
1895         * modules/getopt-posix (Depends-on): Update.
1896         * modules/glob (Depends-on): Update.
1897         * modules/iconv-h (Depends-on): Update.
1898         * modules/inttypes-incomplete (Depends-on): Update.
1899         * modules/locale (Depends-on): Update.
1900         * modules/math (Depends-on): Update.
1901         * modules/netdb (Depends-on): Update.
1902         * modules/search (Depends-on): Update.
1903         * modules/signal (Depends-on): Update.
1904         * modules/spawn (Depends-on): Update.
1905         * modules/stdio (Depends-on): Update.
1906         * modules/stdlib (Depends-on): Update.
1907         * modules/string (Depends-on): Update.
1908         * modules/strings (Depends-on): Update.
1909         * modules/sys_socket (Depends-on): Update.
1910         * modules/sys_stat (Depends-on): Update.
1911         * modules/sys_time (Depends-on): Update.
1912         * modules/sys_times (Depends-on): Update.
1913         * modules/sys_utsname (Depends-on): Update.
1914         * modules/time (Depends-on): Update.
1915         * modules/unistd (Depends-on): Update.
1916         * modules/wchar (Depends-on): Update.
1917         * MODULES.html.sh (Support for building libraries and executables):
1918         Update.
1919
1920 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         Improvements on _Noreturn and related modules.
1923
1924         modules/_Exit-tests: test _Noreturn too
1925         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1926         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1927         (main): Use them.
1928
1929         stdnoreturn, stdnoreturn-tests: remove modules
1930         They're not needed here and a bit premature for use elsewhere.  See
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1932         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1933         * tests/test-stdnoreturn.c: Remove files.
1934         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1935         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1936         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1937         and using noreturn.
1938         * modules/openat, modules/sigpipe-die, modules/xalloc:
1939         * modules/xmemdup0, modules/xstrtol:
1940         Remove dependency on stdnoreturn.
1941
1942         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1943         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1944         Reparenthesize to avoid GCC warning.
1945         Support Microsoft's syntax.
1946         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1947
1948         _Noreturn-tests: remove module
1949         * modules/_Noreturn-tests: Remove.
1950         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1951         * tests/test-_Noreturn.c: Remove.
1952         * tests/test-stdnoreturn.c: Merge from the old
1953         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1954
1955 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1956
1957         _Noreturn, stdnoreturn, and related modules.
1958
1959         * top/maint.mk: Adjust to new noreturn support.
1960         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1961         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1962
1963         xalloc: use stdnoreturn.h
1964         * lib/xalloc.h: Include <stdnoreturn.h>.
1965         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1966         * modules/xalloc (Depends-on): Add stdnoreturn.
1967
1968         xstrtol: use stdnoreturn.h
1969         * lib/xstrtol.h: Include <stdnoreturn.h>.
1970         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1971         * modules/xstrtol (Depends-on): Add stdnoreturn.
1972
1973         xmemdup0: use stdnoreturn.h
1974         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1975         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1976         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1977
1978         sigpipe-die: use stdnoreturn.h
1979         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1980         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1981         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1982
1983         openat: use stdnoreturn.h
1984         * lib/openat.h: Include <stdnoreturn.h>.
1985         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1986         * modules/openat (Depends-on): Add stdnoreturn.
1987
1988         * lib/openat-die.c (openat_save_fail): Modernize comment.
1989
1990         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1991
1992         * lib/glthread/thread.h: Modernize comment.
1993
1994         obstack: use _Noreturn
1995         * lib/obstack.c (__attribute__): Remove macro.
1996         (print_and_abort): Use _Noreturn.
1997
1998         c-stack: use _Noreturn
1999         * lib/c-stack.c (die, overflow_handler, segv_handler):
2000         Use _Noreturn rather than __attribute__((noreturn)).
2001
2002         argmatch-tests, exclude_tests: use _Noreturn
2003         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2004         Remove.
2005         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2006
2007         stdlib: use _Noreturn
2008         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2009         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2010         * modules/stdlib (Depends-on): Add _Noreturn.
2011         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2012
2013         stdnoreturn-tests: new module
2014         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2015
2016         stdnoreturn: new module
2017         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2018         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2019
2020         _Noreturn-tests: new module
2021         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2022
2023         _Noreturn: new module
2024         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2025         New section, mentioning it.
2026         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2027
2028         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2029
2030 2011-07-11  Eric Blake  <eblake@redhat.com>
2031
2032         ffs: new module
2033         * modules/ffs: New file.
2034         * m4/ffs.m4: Likewise.
2035         * lib/ffs.c: Likewise.
2036         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2037         * modules/strings (Makefile.am): Substitute witness.
2038         (Depends-on): Add c++defs.
2039         * lib/strings.in.h (ffs): Declare.
2040         * modules/ffs-tests: New test file.
2041         * tests/test-ffs.c: Test new module.
2042         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2043         * doc/posix-functions/ffs.texi (ffs): Likewise.
2044
2045         regex: avoid compiler warning
2046         * lib/regex.c (includes): Include <strings.h>, for use of
2047         strcasecmp in regcomp.c.
2048         Reported by Joachim Schmitz.
2049
2050 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2051
2052         stdint: respect system's intmax_t if INTMAX_MAX
2053         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2054         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2055         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2056         long but int64_t is long long, and where we will clash with the
2057         system intmax_t if we override it.  See
2058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2059         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2060         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2061         similarly for UINTMAX_C.
2062
2063 2011-07-08  Bruno Haible  <bruno@clisp.org>
2064
2065         pthread_sigmask tests: Avoid a compiler warning.
2066         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2067         non-zero.
2068
2069         sigprocmask tests: A better way to avoid a compiler warning.
2070         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2071         (main): Complain if system() returns non-zero.
2072         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2073
2074 2011-07-08  Bruno Haible  <bruno@clisp.org>
2075
2076         pthread_sigmask: Work around IRIX bug.
2077         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2078         bug.
2079         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2080         there may be unblocked pending signals.
2081         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2082
2083 2011-07-08  Bruno Haible  <bruno@clisp.org>
2084
2085         pthread_sigmask: Work around Cygwin bug.
2086         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2087         bug.
2088         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2089         the system's pthread_sigmask function.
2090         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2091
2092 2011-07-08  Bruno Haible  <bruno@clisp.org>
2093
2094         pthread_sigmask: Work around bug in single-threaded implementation.
2095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2096         FreeBSD, HP-UX, Solaris bug.
2097         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2098         * lib/pthread_sigmask.c: Include <stddef.h>.
2099         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2100         the system's pthread_sigmask function.
2101         * modules/pthread_sigmask (configure.ac): Invoke
2102         gl_PREREQ_PTHREAD_SIGMASK.
2103         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2104         HP-UX, Solaris.
2105
2106 2011-07-08  Eric Blake  <eblake@redhat.com>
2107
2108         test-sigprocmask: avoid compiler warning
2109         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2110         * tests/test-sigprocmask.c (main): Use it to silence warning.
2111         Reported by Jim Meyering.
2112
2113         test-snprintf: avoid compiler warning
2114         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2115         * tests/test-vsnprintf.c (main): Likewise.
2116         Reported by Jim Meyering.
2117
2118 2011-07-08  Bruno Haible  <bruno@clisp.org>
2119
2120         Tests for module 'pthread_sigmask'.
2121         * modules/pthread_sigmask-tests: New file.
2122         * tests/test-pthread_sigmask1.c: New file, based on
2123         tests/test-sigprocmask.c.
2124         * tests/test-pthread_sigmask2.c: New file.
2125
2126 2011-07-08  Jim Meyering  <meyering@redhat.com>
2127
2128         test-getopt.h: avoid warning about an unused variable
2129         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2130
2131 2011-07-07  Jim Meyering  <meyering@redhat.com>
2132
2133         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2134         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2135         now that it no longer contains leading TABs.
2136         Remove unused "url=FIXME" statement.
2137
2138 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2142         When gl_THREADLIB is not in use, assume that the POSIX sematics
2143         are desired.  This is better for Emacs, which uses POSIX semantics
2144         on GNUish and/or POSIXish platforms, and does not use threads at
2145         all otherwise.
2146
2147         pthread_sigmask: fix typo when testing for libraries
2148         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2149         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2150
2151 2011-07-08  Eric Blake  <eblake@redhat.com>
2152
2153         fts: introduce FTS_NOATIME
2154         * lib/fts_.h (FTS_NOATIME): New bit flag.
2155         (FTS_OPTIONMASK): Adjust.
2156         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2157         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2158
2159 2011-07-08  Bruno Haible  <bruno@clisp.org>
2160
2161         Tests for module 'thread'.
2162         * modules/thread-tests: New file.
2163         * tests/test-thread_self.c: New file.
2164         * tests/test-thread_create.cc: New file.
2165
2166 2011-07-08  Bruno Haible  <bruno@clisp.org>
2167
2168         thread: Avoid gcc warnings when using gl_thread_self().
2169         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2170         'void *'.
2171         (gl_thread_self_pointer): Update.
2172
2173 2011-07-07  Bruno Haible  <bruno@clisp.org>
2174
2175         signal-c++-tests: Check declaration of pthread_sigmask.
2176         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2177         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2178         $(LIB_PTHREAD_SIGMASK).
2179
2180 2011-07-07  Bruno Haible  <bruno@clisp.org>
2181
2182         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2183         * lib/signal.in.h (pthread_sigmask): Override if
2184         REPLACE_PTHREAD_SIGMASK is 1.
2185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2186         REPLACE_PTHREAD_SIGMASK.
2187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2188         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2189         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2190         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2191         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2192
2193 2011-07-07  Bruno Haible  <bruno@clisp.org>
2194
2195         pthread_sigmask: Ensure declaration in <signal.h>.
2196         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2197         include <pthread.h>.
2198         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2199         problem.
2200
2201 2011-07-07  Bruno Haible  <bruno@clisp.org>
2202
2203         pthread_sigmask: Document the module.
2204         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2205
2206 2011-07-07  Bruno Haible  <bruno@clisp.org>
2207
2208         pthread_sigmask: Follow gnulib conventions.
2209         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2210         gl_PTHREAD_SIGMASK.
2211         * modules/pthread_sigmask (configure.ac): Update.
2212
2213 2011-07-07  Bruno Haible  <bruno@clisp.org>
2214
2215         pthread_sigmask: Make declaration C++ safe.
2216         * lib/signal.in.h: In two special conditions, just do an #include_next.
2217         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2218         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2219         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2220         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2221         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2222         not REPLACE_PTHREAD_MASK.
2223         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2224         not REPLACE_PTHREAD_MASK.
2225         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2226
2227 2011-07-07  Bruno Haible  <bruno@clisp.org>
2228
2229         pthread_sigmask: Fix return value.
2230         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2231         * lib/pthread_sigmask.c: New file.
2232         * modules/pthread_sigmask (Files): Add it.
2233         (configure.ac): Invoke AC_LIBOBJ.
2234
2235 2011-07-07  Eric Blake  <eblake@redhat.com>
2236
2237         getopt: more portable argv creation
2238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2239         const, use char arrays rather than strings.
2240         Suggested by Paul Eggert.
2241
2242 2011-07-07  Bruno Haible  <bruno@clisp.org>
2243
2244         Tests for module 'sigprocmask'.
2245         * modules/sigprocmask-tests: New file.
2246         * tests/test-sigprocmask.c: New file.
2247
2248 2011-07-07  Bruno Haible  <bruno@clisp.org>
2249
2250         float tests: Tweak.
2251         * tests/test-float.c (main): Tweak skip message.
2252
2253 2011-07-07  Eric Blake  <eblake@redhat.com>
2254
2255         getopt: avoid compiler warning during configure
2256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2257         assigning string literals to non-const pointer.
2258
2259         getopt-gnu: avoid crash in glibc getopt
2260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2261         * tests/test-getopt.h (test_getopt): Enhance test.
2262         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2263         * doc/posix-functions/getopt.texi (getopt): Document it.
2264         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2266         Likewise.
2267
2268 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2269
2270         getopt: handle W; without long options in getopt [BZ #12922]
2271         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2272         but no long options are defined, just return 'W'.
2273
2274 2011-07-07  Bruno Haible  <bruno@clisp.org>
2275
2276         Avoid literal tabs.
2277         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2278         variable containing a tab instead of a literal tab.
2279         Reported by Jim Meyering.
2280
2281 2011-07-07  Bruno Haible  <bruno@clisp.org>
2282
2283         Comments.
2284         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2285
2286 2011-07-06  Bruno Haible  <bruno@clisp.org>
2287
2288         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2289         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2290         <winsock2.h>.
2291         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2292         lib/sys_socket.in.h.
2293         (close, gethostname): Hide declarations from <winsock2.h>.
2294         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2295         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2296         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2297         (select): Don't override if gnulib's <sys/select.h> was already
2298         included.
2299         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2300         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2301         setsockopt, shutdown, select): Tweak indentation.
2302
2303 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2306         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2307         in an application that does not use the sys_select module.
2308
2309 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2310
2311         poll: do not return 0 on timeout=-1
2312         * lib/poll.c: Loop with yield if no events occured
2313
2314 2011-07-06  Eric Blake  <eblake@redhat.com>
2315
2316         pthread_sigmask: always replace when not using pthread
2317         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2318         replacement when using some threading other than pthread.  Fix
2319         logic bug.
2320
2321 2011-07-06  Bruno Haible  <bruno@clisp.org>
2322
2323         Comments.
2324         * m4/printf.m4: Update comments about mingw.
2325
2326 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2327
2328         sys_select: define sigset_t more portably
2329         * lib/sys_select.in.h: Always include <sys/types.h>, since
2330         we now need sigset_t and mingw defines it there.
2331         Include <signal.h> before split inclusion guard, to avoid
2332         mishaps on Solaris, whose <signal.h> eventually includes us.
2333         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2334         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2335         which come from ...
2336         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2337         gl_CHECK_TYPE_SIGSET_T.
2338         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2339         does the real work.
2340         * modules/sys_select (Depends-on): Add 'signal'.
2341
2342         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2343         Suggested by Bruno Haible.
2344
2345         pselect: Use pthread_sigmask, not sigprocmask.
2346         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2347         multithreaded apps better than sigprocmask does.
2348         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2349         sigprocmask directly.
2350
2351 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2352
2353         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2354         Don't #undef,  since we don't need any underlying pselect.
2355         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2356         (Depends-on): Add select.
2357         (Link): Add $(LIBSOCKET).
2358         These changes suggested by Bruno Haible.
2359
2360         pselect: document better
2361         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2362         * doc/posix-functions/pselect.texi (pselect): Document new module.
2363
2364         pthread_sigmask: new module
2365         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2366         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2367         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2368         This is done only as a macro; I don't know how well that'll
2369         work for C++.  Move <sys/types.h> include before the include_next,
2370         to avoid mishap on Solaris.
2371         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2372         * modules/signal (Makefile.am): Substitute the check's results.
2373         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2374
2375         test-pselect: new module
2376         * modules/pselect-tests, tests/test-pselect.c: New files.
2377         * tests/test-select.c, tests/test-sys_select-c++.cc:
2378         If TEST_PSELECT is defined, test pselect instead of testing select.
2379
2380         * tests/test-sys_select.c (sigset_t): Test for it, too.
2381         Suggested by Bruno Haible.
2382
2383 2011-07-05  Eric Blake  <eblake@redhat.com>
2384
2385         snprintf: guarantee %1$d, for libintl
2386         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2387         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2388         * doc/posix-functions/snprintf.texi (snprintf): Update.
2389         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2390         * tests/test-snprintf.c (main): Enhance test.
2391         * tests/test-vsnprintf.c (main): Likewise.
2392
2393 2011-07-05  Jim Meyering  <meyering@redhat.com>
2394
2395         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2396         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2397         per Bruno's request, to accommodate this idiom (no space after "#")
2398         even when the function is inside an #if block:
2399         char *
2400         gets (char *s)
2401         #undef gets
2402         {
2403           ...
2404         }
2405
2406 2011-07-04  Jim Meyering  <meyering@redhat.com>
2407
2408         maint: indent with spaces, not TABs, and add a rule to check this
2409         * tests/test-userspec.c: Indent with spaces, not TABs.
2410         * tests/test-argp.c: Likewise.
2411         * tests/test-c-stack2.sh: Likewise.
2412         * tests/test-parse-duration.sh: Likewise
2413         * m4/strtod.m4: Likewise.
2414         * m4/alloca.m4: Likewise.
2415         * m4/pselect.m4: Likewise.
2416         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2417
2418 2011-07-03  Jim Meyering  <meyering@redhat.com>
2419
2420         maint.mk: correct omissions in prohibit_argmatch_without_use check
2421         This rule would mistakenly report that argmatch.h is included without
2422         use even when both the argmatch and invalid_arg macro were used.
2423         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2424         of argmatch and invalid_arg.
2425
2426 2011-07-03  Bruno Haible  <bruno@clisp.org>
2427
2428         Comments about EINTR.
2429         * lib/safe-read.h: Explain the purpose of this module.
2430         * lib/safe-write.h: Likewise.
2431         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2432         module.
2433         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2434         module.
2435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2436
2437 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2438
2439         xnanosleep: Rewrite to use new dtotimespec module.
2440         It has the conversion code that used to be in xnanosleep.
2441         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2442         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2443         (TIME_T_MAX): Remove.
2444         (xnanosleep): Rewrite in terms of dtotimespec.
2445         * modules/xnanosleep (Depends-on): Add dtotimespec.
2446         Remove intprops, stdbool.
2447
2448         timespec-add, timespec-sub: new modules
2449         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2450         * lib/timespec-add.c, lib/timespec-sub.c:
2451         * modules/timespec-add, modules/timespec-sub: New files.
2452
2453         dtotimespec: new module
2454         * lib/timespec.h (dtotimespec): New decl.
2455         * lib/dtotimespec.c, modules/dtotimespec: New files.
2456
2457         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2458
2459         pselect: new module
2460         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2461         (pselect): New decls.
2462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2463         since the standard pselect decl uses 'restrict'.
2464         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2465         HAVE_PSELECT, REPLACE_PSELECT.
2466         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2467         HAVE_PSELECT, REPLACE_PSELECT.
2468         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2469
2470         sys_select: don't depend on sys_socket
2471         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2473         This fix works on GNU and GNU-like platforms, but has not been tested
2474         on native Windows.
2475         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2476         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2477         gl_HEADER_SYS_SOCKET.
2478         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2479         gl_PREREQ_SYS_H_WINSOCK2.
2480
2481 2011-06-29  Eric Blake  <eblake@redhat.com>
2482
2483         pipe2: fix C89 compile problem
2484         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2485         Reported by Bruno Haible.
2486
2487         pipe, pipe2: don't corrupt fd on error
2488         * lib/pipe.c (pipe): Leave fd unchanged on error.
2489         * lib/pipe2.c (pipe2): Likewise.
2490         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2491         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2492
2493 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2494
2495         mmap-anon: do not use regular expressions inadvertently
2496         * m4/mmap-anon.m4: Remove trailing period from strings sought
2497         in the output.
2498
2499 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2500
2501         nanosleep: fix integer overflow problem
2502         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2503         arithmetic wraps around on overflow.
2504
2505         nanosleep: simplify carrying
2506         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2507         first call to the underyling nanosleep, not for the last one.
2508         This doesn't fix any bugs, but it simplifies the computation of
2509         the remaining delay.  Found while auditing integer overflow issues.
2510
2511         dup2: remove test for existence of fcntl
2512         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2513         "#if HAVE_FCNTL", in the configure-time test program.
2514         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2515         and therefore speeds up "configure" a bit.  Found while
2516         adding the dup2 module to Emacs.
2517
2518 2011-06-24  Eric Blake  <eblake@redhat.com>
2519
2520         maint.mk: enhance useless header checks
2521         * top/maint.mk (_sc_header_without_use): Check both include
2522         styles.
2523         (sc_prohibit_assert_without_use)
2524         (sc_prohibit_close_stream_without_use)
2525         (sc_prohibit_getopt_without_use)
2526         (sc_prohibit_quotearg_without_use)
2527         (sc_prohibit_quote_without_use)
2528         (sc_prohibit_long_options_without_use)
2529         (sc_prohibit_inttostr_without_use)
2530         (sc_prohibit_ignore_value_without_use)
2531         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2532         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2533         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2534         (sc_prohibit_hash_pjw_without_use)
2535         (sc_prohibit_safe_read_without_use)
2536         (sc_prohibit_argmatch_without_use)
2537         (sc_prohibit_canonicalize_without_use)
2538         (sc_prohibit_root_dev_ino_without_use)
2539         (sc_prohibit_openat_without_use)
2540         (sc_prohibit_c_ctype_without_use)
2541         (sc_prohibit_signal_without_use)
2542         (sc_prohibit_stdio--_without_use)
2543         (sc_prohibit_stdio-safer_without_use)
2544         (sc_prohibit_strings_without_use)
2545         (sc_prohibit_intprops_without_use)
2546         (sc_prohibit_stddef_without_use)
2547         (sc_prohibit_xfreopen_without_use): Update clients.
2548
2549 2011-06-24  Jim Meyering  <meyering@redhat.com>
2550
2551         syntax-check: keep one maint.mk rule in sync with its header
2552         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2553         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2554         I prefer to avoid temporary files here, so use <(...), but that
2555         is not supported by /bin/sh, so...
2556         (SHELL): Define to /bin/bash.
2557
2558 2011-06-24  Eric Blake  <eblake@redhat.com>
2559
2560         maint.mk: update sc_prohibit_intprops_without_use
2561         * top/maint.mk (_intprops_names): Match recent changes.
2562
2563 2011-06-24  Bruno Haible  <bruno@clisp.org>
2564
2565         strerror-override: No-op tweak.
2566         * lib/strerror-override.h (strerror_override): Reorder conditions,
2567         for consistency with lib/strerror-override.c.
2568
2569 2011-06-23  Eric Blake  <eblake@redhat.com>
2570
2571         maint.mk: test further PATH_MAX issues
2572         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2573         (sc_prohibit_path_max_allocation): ...and also test alloca.
2574         Suggested by Jim Meyering.
2575
2576 2011-06-22  Eric Blake  <eblake@redhat.com>
2577
2578         maint.mk: add syntax-check to avoid char[PATH_MAX]
2579         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2580
2581         stat: be robust to PATH_MAX definition
2582         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2583         * modules/stat (Depends-on): Add verify.
2584
2585         link: work around IRIX bug
2586         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2587         * lib/link.c (rpl_link): Work around it.
2588         * tests/test-link.h (test_link): Enhance test.
2589         * doc/posix-functions/link.texi (link): Document the bug.
2590
2591         getopt: silence clang warning
2592         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2593         dereference.
2594         Reported by Gustavo Martin Domato.
2595
2596 2011-06-22  Jim Meyering  <meyering@redhat.com>
2597
2598         bootstrap: do not insert a blank line into each .gitignore file
2599         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2600
2601 2011-06-21  Eric Blake  <eblake@redhat.com>
2602
2603         perror: test for output mismatch
2604         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2605         perror on IRIX.
2606
2607         strerror_r: fix OpenBSD behavior on out-of-range
2608         * lib/strerror_r.c (strerror_r): Always use maximal string.
2609         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2610
2611         strerror_r: fix OpenBSD behavior on 0
2612         * lib/strerror-override.c (strerror_override): Also override 0
2613         when needed.
2614         * lib/strerror-override.h (strerror_override): Likewise.
2615         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2616         earlier.
2617         * lib/strerror_r.c (strerror_r): Likewise.
2618         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2619         behavior...
2620         (gl_FUNC_STRERROR_0): ...into new macro.
2621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2622         is overridden.
2623         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2624         * modules/strerror-override (Files): Add strerror.m4.
2625         (configure.ac): Also provide override for 0 when needed.
2626         * doc/posix-functions/strerror.texi (strerror): Document this.
2627         * doc/posix-functions/perror.texi (perror): Likewise.
2628
2629         perror: adjust array size
2630         * modules/perror (Depends-on): Add strerror-override.
2631         * lib/perror.c (perror): Use it to avoid magic number.
2632
2633         strerror-override: reduce size
2634         * lib/strerror-override.c (strerror_override): Use fewer lines.
2635
2636 2011-06-20  Bruno Haible  <bruno@clisp.org>
2637
2638         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2639         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2640
2641 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         alloca: port to compilers that can optimize like GCC 4.6.0
2644         * lib/alloca.c (find_stack_direction): New signature, taken from
2645         Autoconf git.  This works with GCC 4.6.0.  This code should never
2646         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2647         be used with other compilers that optimize as well as GCC 4.6.0 does.
2648         (alloca): Adjust to new signature.
2649         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2650         New macro, which patches Autoconf in a similar way.
2651
2652         c-stack: stop worrying about stack direction
2653         * lib/c-stack.c (find_stack_direction): Remove.
2654         (segv_handler): Don't worry about stack direction growth, as it's
2655         too much of a pain to configure this correctly, given how compilers
2656         are optimizing-away our stack-growth detection code.  Instead, assume
2657         that any access to just before or just after the stack is OK.
2658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2659         Don't require AC_FUNC_ALLOCA; no longer needed.
2660
2661 2011-06-20  Eric Blake  <eblake@redhat.com>
2662
2663         test-stat: don't allocate PATH_MAX bytes
2664         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2665         PATH_MAX-sized buffer.
2666         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2667         * modules/stat-tests (Depends-on): Likewise.
2668         * tests/test-fstatat.c (includes): Drop pathmax.h.
2669         * tests/test-stat.c (includes): Likewise.
2670         Reported by Bruno Haible.
2671
2672 2011-06-20  Bruno Haible  <bruno@clisp.org>
2673
2674         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2675         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2676         * lib/float.c: New file.
2677         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2678         REPLACE_FLOAT_LDBL.
2679         * modules/float (Files): Add lib/float.c.
2680         (configure.ac): Invoke AC_LIBOBJ.
2681         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2682
2683 2011-06-20  Bruno Haible  <bruno@clisp.org>
2684
2685         Tests for module 'float'.
2686         * modules/float-tests: New file.
2687         * tests/test-float.c: New file.
2688
2689 2011-06-19  Bruno Haible  <bruno@clisp.org>
2690
2691         isinf: Coding style.
2692         * lib/isinf.c: Use GNU coding style.
2693
2694 2011-06-19  Bruno Haible  <bruno@clisp.org>
2695
2696         linkat test: Avoid test failure on AIX 7.1.
2697         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2698         * tests/test-link.h (test_link): Likewise.
2699
2700 2011-06-19  Bruno Haible  <bruno@clisp.org>
2701
2702         pread test: Avoid test failure on OpenBSD 4.9.
2703         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2704
2705 2011-06-19  Bruno Haible  <bruno@clisp.org>
2706
2707         sprintf-posix: Fix test failure on AIX 7.1.
2708         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2709         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2710         on AIX.
2711         * doc/posix-functions/fprintf.texi: Likewise.
2712         * doc/posix-functions/printf.texi: Likewise.
2713         * doc/posix-functions/snprintf.texi: Likewise.
2714         * doc/posix-functions/sprintf.texi: Likewise.
2715         * doc/posix-functions/vdprintf.texi: Likewise.
2716         * doc/posix-functions/vfprintf.texi: Likewise.
2717         * doc/posix-functions/vprintf.texi: Likewise.
2718         * doc/posix-functions/vsnprintf.texi: Likewise.
2719         * doc/posix-functions/vsprintf.texi: Likewise.
2720
2721 2011-06-19  Bruno Haible  <bruno@clisp.org>
2722
2723         roundl-ieee: Fix test failure on AIX 7.1.
2724         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2725         * doc/posix-functions/roundl.texi: Mention problem with negative
2726         arguments.
2727
2728 2011-06-19  Bruno Haible  <bruno@clisp.org>
2729
2730         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2731         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2732         * doc/posix-functions/round.texi: Mention problem with negative
2733         arguments.
2734         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2735
2736 2011-06-19  Bruno Haible  <bruno@clisp.org>
2737
2738         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2739         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2740         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2741         * doc/posix-functions/roundf.texi: Mention problem with negative
2742         arguments.
2743         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2744
2745 2011-06-19  Bruno Haible  <bruno@clisp.org>
2746
2747         ceilf-ieee: Work around bug on MacOS X 10.5.
2748         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2749
2750         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2751         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2752         IEEE compliant, avoid compiler optimizations.
2753         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2754         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2755         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2756         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2757         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2758         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2759         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2761         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2762         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2763
2764 2011-06-19  Bruno Haible  <bruno@clisp.org>
2765
2766         ceilf-ieee: Work around bug on AIX 7.1.
2767         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2768         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2769
2770 2011-06-19  Bruno Haible  <bruno@clisp.org>
2771
2772         ceil-ieee: Work around bug on AIX 7.1.
2773         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2774         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2775
2776 2011-06-18  Bruno Haible  <bruno@clisp.org>
2777
2778         fsync test: Avoid test failure on MacOS X and AIX.
2779         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2780         EINVAL.
2781
2782 2011-06-18  Bruno Haible  <bruno@clisp.org>
2783
2784         openat, fdopendir tests: Fix link errors.
2785         * modules/openat-tests (Depends-on): Add progname.
2786         * modules/fdopendir-tests (Depends-on): Likewise.
2787         * tests/test-fchownat.c: Include progname.h.
2788         (main): Call set_program_name.
2789         * tests/test-fstatat.c: Include progname.h.
2790         (main): Call set_program_name.
2791         * tests/test-mkdirat.c: Include progname.h.
2792         (main): Call set_program_name.
2793         * tests/test-openat.c: Include progname.h.
2794         (main): Call set_program_name.
2795         * tests/test-unlinkat.c: Include progname.h.
2796         (main): Call set_program_name.
2797         * tests/test-fdopendir.c: Include progname.h.
2798         (main): Call set_program_name.
2799
2800 2011-06-18  Bruno Haible  <bruno@clisp.org>
2801
2802         Doc update.
2803         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2804         HP-UX.
2805         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2806
2807 2011-06-18  Bruno Haible  <bruno@clisp.org>
2808
2809         getcwd tests: Avoid compilation error on HP-UX 11.31.
2810         * modules/getcwd-tests (Depends-on): Add pathmax.
2811         * tests/test-getcwd.c: Include pathmax.h.
2812
2813 2011-06-18  Bruno Haible  <bruno@clisp.org>
2814
2815         isfinite, isinf: Fix link error on AIX 6 and 7.
2816         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2817         needed, also test the macro with a 'float' argument.
2818         * m4/isinf.m4 (gl_ISINF): Likewise.
2819
2820 2011-06-18  Bruno Haible  <bruno@clisp.org>
2821
2822         getloadavg: Don't clobber LIBS. Regression from previous commit.
2823         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2824         AC_CHECK_LIB from here...
2825         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2826         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2827         gl_func_getloadavg_done.
2828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2829
2830 2011-06-18  Bruno Haible  <bruno@clisp.org>
2831
2832         clean-temp: Improve documentation.
2833         * lib/clean-temp.h: Explain better how to use this module.
2834         Reported by John Darrington <john@darrington.wattle.id.au>.
2835
2836 2011-06-17  Bruno Haible  <bruno@clisp.org>
2837
2838         pread, pwrite: Avoid cc warning on AIX.
2839         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2840         (pwrite): Likewise.
2841
2842 2011-06-17  Bruno Haible  <bruno@clisp.org>
2843
2844         spawn-pipe tests: Fix link error.
2845         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2847
2848 2011-06-17  Bruno Haible  <bruno@clisp.org>
2849
2850         Tests: Remove unnecessary dependency.
2851         * modules/canonicalize-tests (Depends-on): Remove progname.
2852         * modules/chown-tests (Depends-on): Likewise.
2853         * modules/dirname-tests (Depends-on): Likewise.
2854         * modules/fdopendir-tests (Depends-on): Likewise.
2855         * modules/fdutimensat-tests (Depends-on): Likewise.
2856         * modules/hash-tests (Depends-on): Likewise.
2857         * modules/lchown-tests (Depends-on): Likewise.
2858         * modules/linkat-tests (Depends-on): Likewise.
2859         * modules/renameat-tests (Depends-on): Likewise.
2860         * modules/spawn-pipe-tests (Depends-on): Likewise.
2861         * modules/utimensat-tests (Depends-on): Likewise.
2862
2863 2011-06-17  Bruno Haible  <bruno@clisp.org>
2864
2865         spawn-pipe tests: Fix link error.
2866         * tests/test-spawn-pipe-child.c: Undefine fflush.
2867
2868 2011-06-17  Bruno Haible  <bruno@clisp.org>
2869
2870         Fix tests link errors.
2871         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2872         * modules/chown-tests (Makefile.am): Don't link test-chown with
2873         LIBINTL.
2874         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2875         LIBINTL.
2876         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2877         LIBINTL.
2878         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2879         LIBINTL.
2880
2881 2011-06-16  Bruno Haible  <bruno@clisp.org>
2882
2883         crypto/gc-sha1: Fix recent regression.
2884         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2885         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2886
2887         crypto/gc-md5: Fix recent regression.
2888         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2889
2890         crypto/gc-md4: Fix recent regression.
2891         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2892         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2893
2894         crypto/gc-arctwo: Fix recent regression.
2895         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2896         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2897
2898         crypto/gc-rijndael: Fix recent regression.
2899         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2900         (configure.ac): Invoke AC_LIBOBJ here.
2901         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2903
2904         crypto/gc-hmac-sha1: Fix recent regression.
2905         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2906         (configure.ac): Invoke AC_LIBOBJ here.
2907         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2909
2910         crypto/gc-hmac-md5: Fix recent regression.
2911         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2912         (configure.ac): Invoke AC_LIBOBJ here.
2913         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2915
2916         crypto/gc-des: Fix recent regression.
2917         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2918         (configure.ac): Invoke AC_LIBOBJ here.
2919         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2921
2922         crypto/gc-arcfour: Fix recent regression.
2923         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2924         (configure.ac): Invoke AC_LIBOBJ here.
2925         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2927
2928 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2929
2930         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2931         After the 2011-05-21 change, this macro requires
2932         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2933         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2934
2935 2011-06-16  Bruno Haible  <bruno@clisp.org>
2936
2937         fprintftime: Move AC_LIBOBJ invocations to module description.
2938         * m4/fprintftime.m4: Remove file.
2939         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2940         (configure.ac): Remove gl_FPRINTFTIME call.
2941         (Makefile.am): Augment lib_SOURCES.
2942         Reported by Jim Meyering.
2943
2944 2011-06-16  Bruno Haible  <bruno@clisp.org>
2945
2946         tmpfile-safer: Finish 2011-05-23 commit.
2947         * m4/stdio-safer.m4: Really remove file.
2948         Reported by Jim Meyering.
2949
2950 2011-06-16  Bruno Haible  <bruno@clisp.org>
2951
2952         syntax-check: Fix typo.
2953         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2954         printf-posix.m4.
2955         Reported by Jim Meyering.
2956
2957 2011-06-13  Jim Meyering  <meyering@redhat.com>
2958
2959         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2960         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2961
2962 2011-05-23  Bruno Haible  <bruno@clisp.org>
2963
2964         yesno: Move AC_LIBOBJ invocations to module description.
2965         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2966         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2967
2968 2011-05-23  Bruno Haible  <bruno@clisp.org>
2969
2970         xstrtol: Move AC_LIBOBJ invocations to module description.
2971         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2972         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2973
2974 2011-05-23  Bruno Haible  <bruno@clisp.org>
2975
2976         xstrtold: Move AC_LIBOBJ invocations to module description.
2977         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2978         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2979
2980 2011-05-23  Bruno Haible  <bruno@clisp.org>
2981
2982         xstrtod: Move AC_LIBOBJ invocations to module description.
2983         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2984         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2985
2986 2011-05-23  Bruno Haible  <bruno@clisp.org>
2987
2988         xnanosleep: Move AC_LIBOBJ invocations to module description.
2989         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2990         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2991
2992 2011-05-23  Bruno Haible  <bruno@clisp.org>
2993
2994         xgetcwd: Move AC_LIBOBJ invocations to module description.
2995         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2996         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2997
2998 2011-05-23  Bruno Haible  <bruno@clisp.org>
2999
3000         xalloc: Move AC_LIBOBJ invocations to module description.
3001         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3002         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3003
3004 2011-05-23  Bruno Haible  <bruno@clisp.org>
3005
3006         write-any-file: Move AC_LIBOBJ invocations to module description.
3007         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3008         invocation.
3009         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3010
3011 2011-05-23  Bruno Haible  <bruno@clisp.org>
3012
3013         utimens: Move AC_LIBOBJ invocations to module description.
3014         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3015         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3016
3017 2011-05-23  Bruno Haible  <bruno@clisp.org>
3018
3019         utimecmp: Move AC_LIBOBJ invocations to module description.
3020         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3021         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3022
3023 2011-05-23  Bruno Haible  <bruno@clisp.org>
3024
3025         userspec: Move AC_LIBOBJ invocations to module description.
3026         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3027         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3028
3029 2011-05-23  Bruno Haible  <bruno@clisp.org>
3030
3031         unlinkdir: Move AC_LIBOBJ invocations to module description.
3032         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3033         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3034
3035 2011-05-23  Bruno Haible  <bruno@clisp.org>
3036
3037         unistd-safer: Move AC_LIBOBJ invocations to module description.
3038         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3039         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3040
3041 2011-05-23  Bruno Haible  <bruno@clisp.org>
3042
3043         tempname: Move AC_LIBOBJ invocations to module description.
3044         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3045         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3046
3047 2011-05-23  Bruno Haible  <bruno@clisp.org>
3048
3049         strftime: Move AC_LIBOBJ invocations to module description.
3050         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3051         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3052
3053 2011-05-23  Bruno Haible  <bruno@clisp.org>
3054
3055         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3056         * m4/stdlib-safer.m4: Remove file.
3057         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3058         (configure.ac): Remove gl_STDLIB_SAFER call.
3059         (Makefile.am): Augment lib_SOURCES.
3060
3061 2011-05-23  Bruno Haible  <bruno@clisp.org>
3062
3063         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3064         * m4/stdio-safer.m4: Remove file.
3065         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3066         (configure.ac): Remove gl_TMPFILE_SAFER call.
3067         (Makefile.am): Augment lib_SOURCES.
3068
3069 2011-05-23  Bruno Haible  <bruno@clisp.org>
3070
3071         popen-safer: Move AC_LIBOBJ invocations to module description.
3072         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3073         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3074         (configure.ac): Remove gl_POPEN_SAFER call.
3075         (Makefile.am): Augment lib_SOURCES.
3076
3077 2011-05-23  Bruno Haible  <bruno@clisp.org>
3078
3079         freopen-safer: Move AC_LIBOBJ invocations to module description.
3080         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3081         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3082         (configure.ac): Remove gl_FREOPEN_SAFER call.
3083         (Makefile.am): Augment lib_SOURCES.
3084
3085 2011-05-23  Bruno Haible  <bruno@clisp.org>
3086
3087         fopen-safer: Move AC_LIBOBJ invocations to module description.
3088         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3089         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3090         (configure.ac): Remove gl_FOPEN_SAFER call.
3091         (Makefile.am): Augment lib_SOURCES.
3092
3093 2011-05-23  Bruno Haible  <bruno@clisp.org>
3094
3095         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3096         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3097         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3098
3099 2011-05-23  Bruno Haible  <bruno@clisp.org>
3100
3101         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3102         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3103         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3104
3105 2011-05-23  Bruno Haible  <bruno@clisp.org>
3106
3107         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3108         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3109         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3110
3111 2011-05-23  Bruno Haible  <bruno@clisp.org>
3112
3113         settime: Move AC_LIBOBJ invocations to module description.
3114         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3115         * modules/settime (Makefile.am): Augment lib_SOURCES.
3116
3117 2011-05-23  Bruno Haible  <bruno@clisp.org>
3118
3119         savedir: Move AC_LIBOBJ invocations to module description.
3120         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3121         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3122
3123 2011-05-23  Bruno Haible  <bruno@clisp.org>
3124
3125         save-cwd: Move AC_LIBOBJ invocations to module description.
3126         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3127         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3128
3129 2011-05-23  Bruno Haible  <bruno@clisp.org>
3130
3131         same: Move AC_LIBOBJ invocations to module description.
3132         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3133         * modules/same (Makefile.am): Augment lib_SOURCES.
3134
3135 2011-05-23  Bruno Haible  <bruno@clisp.org>
3136
3137         safe-write: Move AC_LIBOBJ invocations to module description.
3138         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3139         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3140         instead of gl_SAFE_WRITE.
3141         (Makefile.am): Augment lib_SOURCES.
3142
3143 2011-05-23  Bruno Haible  <bruno@clisp.org>
3144
3145         safe-read: Move AC_LIBOBJ invocations to module description.
3146         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3147         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3148         of gl_SAFE_READ.
3149         (Makefile.am): Augment lib_SOURCES.
3150
3151 2011-05-23  Bruno Haible  <bruno@clisp.org>
3152
3153         safe-alloc: Move AC_LIBOBJ invocations to module description.
3154         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3155         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3160         * m4/rijndael.m4: Remove file.
3161         * modules/crypto/rijndael (Files): Remove it.
3162         (configure.ac): Remove gl_RIJNDAEL call.
3163         (Makefile.am): Augment lib_SOURCES.
3164
3165 2011-05-23  Bruno Haible  <bruno@clisp.org>
3166
3167         readtokens: Move AC_LIBOBJ invocations to module description.
3168         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3169         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3170
3171 2011-05-23  Bruno Haible  <bruno@clisp.org>
3172
3173         read-file: Move AC_LIBOBJ invocations to module description.
3174         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3175         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3176         of gl_FUNC_READ_FILE.
3177         (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         quotearg: Move AC_LIBOBJ invocations to module description.
3182         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3183         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3184
3185 2011-05-23  Bruno Haible  <bruno@clisp.org>
3186
3187         quote: Move AC_LIBOBJ invocations to module description.
3188         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3189         * modules/quote (Makefile.am): Augment lib_SOURCES.
3190
3191 2011-05-23  Bruno Haible  <bruno@clisp.org>
3192
3193         posixver: Move AC_LIBOBJ invocations to module description.
3194         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3195         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3196
3197 2011-05-23  Bruno Haible  <bruno@clisp.org>
3198
3199         posixtm: Move AC_LIBOBJ invocations to module description.
3200         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3201         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3202
3203 2011-05-23  Bruno Haible  <bruno@clisp.org>
3204
3205         physmem: Move AC_LIBOBJ invocations to module description.
3206         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3207         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3208
3209 2011-05-23  Bruno Haible  <bruno@clisp.org>
3210
3211         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3212         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3213         invocation.
3214         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3215
3216 2011-05-23  Bruno Haible  <bruno@clisp.org>
3217
3218         mpsort: Move AC_LIBOBJ invocations to module description.
3219         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3220         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3221
3222 2011-05-23  Bruno Haible  <bruno@clisp.org>
3223
3224         modechange: Move AC_LIBOBJ invocations to module description.
3225         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3226         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3227
3228 2011-05-23  Bruno Haible  <bruno@clisp.org>
3229
3230         mkdir-p: Move AC_LIBOBJ invocations to module description.
3231         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3232         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3233
3234 2011-05-23  Bruno Haible  <bruno@clisp.org>
3235
3236         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3237         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3238         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3239
3240 2011-05-23  Bruno Haible  <bruno@clisp.org>
3241
3242         mgetgroups: Move AC_LIBOBJ invocations to module description.
3243         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3244         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3245
3246 2011-05-23  Bruno Haible  <bruno@clisp.org>
3247
3248         memxor: Move AC_LIBOBJ invocations to module description.
3249         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3250         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3251
3252 2011-05-23  Bruno Haible  <bruno@clisp.org>
3253
3254         memcoll: Move AC_LIBOBJ invocations to module description.
3255         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3256         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3257
3258 2011-05-23  Bruno Haible  <bruno@clisp.org>
3259
3260         memcasecmp: Move AC_LIBOBJ invocations to module description.
3261         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3262         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3263
3264 2011-05-23  Bruno Haible  <bruno@clisp.org>
3265
3266         crypto/md5: Move AC_LIBOBJ invocations to module description.
3267         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3268         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3269
3270 2011-05-23  Bruno Haible  <bruno@clisp.org>
3271
3272         crypto/md4: Move AC_LIBOBJ invocations to module description.
3273         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3274         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3275
3276 2011-05-23  Bruno Haible  <bruno@clisp.org>
3277
3278         crypto/md2: Move AC_LIBOBJ invocations to module description.
3279         * m4/md2.m4: Remove file.
3280         * modules/crypto/md2 (Files): Remove it.
3281         (configure.ac): Remove gl_MD2 call.
3282         (Makefile.am): Augment lib_SOURCES.
3283
3284 2011-05-23  Bruno Haible  <bruno@clisp.org>
3285
3286         long-options: Move AC_LIBOBJ invocations to module description.
3287         * m4/long-options.m4: Remove file.
3288         * modules/long-options (Files): Remove it.
3289         (configure.ac): Remove gl_LONG_OPTIONS call.
3290         (Makefile.am): Augment lib_SOURCES.
3291
3292 2011-05-23  Bruno Haible  <bruno@clisp.org>
3293
3294         i-ring: Move AC_LIBOBJ invocations to module description.
3295         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3296         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3297
3298 2011-05-23  Bruno Haible  <bruno@clisp.org>
3299
3300         idcache: Move AC_LIBOBJ invocations to module description.
3301         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3302         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3303
3304 2011-05-23  Bruno Haible  <bruno@clisp.org>
3305
3306         human: Move AC_LIBOBJ invocations to module description.
3307         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3308         * modules/human (Makefile.am): Augment lib_SOURCES.
3309
3310 2011-05-23  Bruno Haible  <bruno@clisp.org>
3311
3312         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3313         * m4/hmac-sha1.m4: Remove file.
3314         * modules/crypto/hmac-sha1 (Files): Remove it.
3315         (configure.ac): Remove gl_HMAC_SHA1 call.
3316         (Makefile.am): Augment lib_SOURCES.
3317
3318 2011-05-23  Bruno Haible  <bruno@clisp.org>
3319
3320         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3321         * m4/hmac-md5.m4: Remove file.
3322         * modules/crypto/hmac-md5 (Files): Remove it.
3323         (configure.ac): Remove gl_HMAC_MD5 call.
3324         (Makefile.am): Augment lib_SOURCES.
3325
3326 2011-05-23  Bruno Haible  <bruno@clisp.org>
3327
3328         hash: Move AC_LIBOBJ invocations to module description.
3329         * m4/hash.m4: Remove file.
3330         * modules/hash (Files): Remove it.
3331         (configure.ac): Remove gl_HASH call.
3332         (Makefile.am): Augment lib_SOURCES.
3333
3334 2011-05-23  Bruno Haible  <bruno@clisp.org>
3335
3336         hard-locale: Move AC_LIBOBJ invocations to module description.
3337         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3338         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3339
3340 2011-05-23  Bruno Haible  <bruno@clisp.org>
3341
3342         getugroups: Move AC_LIBOBJ invocations to module description.
3343         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3344         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3345
3346 2011-05-23  Bruno Haible  <bruno@clisp.org>
3347
3348         gettime: Move AC_LIBOBJ invocations to module description.
3349         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3350         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3351
3352 2011-05-23  Bruno Haible  <bruno@clisp.org>
3353
3354         getndelim2: Move AC_LIBOBJ invocations to module description.
3355         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3356         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3357
3358 2011-05-23  Bruno Haible  <bruno@clisp.org>
3359
3360         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3361         * m4/gc-pbkdf2-sha1.m4: Remove file.
3362         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3363         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3364         (Makefile.am): Augment lib_SOURCES.
3365
3366 2011-05-23  Bruno Haible  <bruno@clisp.org>
3367
3368         fts: Move AC_LIBOBJ invocations to module description.
3369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3370         * modules/fts (configure.ac): ... to here.
3371
3372 2011-05-23  Bruno Haible  <bruno@clisp.org>
3373
3374         file-type: Move AC_LIBOBJ invocations to module description.
3375         * m4/file-type.m4: Remove file.
3376         * modules/file-type (Files): Remove it.
3377         (configure.ac): Remove gl_FILE_TYPE call.
3378         (Makefile.am): Augment lib_SOURCES.
3379
3380 2011-05-23  Bruno Haible  <bruno@clisp.org>
3381
3382         filenamecat*: Respect rules for use of AC_LIBOBJ.
3383         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3384         Remove AC_LIBOBJ invocation.
3385         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3386         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3387
3388 2011-05-23  Bruno Haible  <bruno@clisp.org>
3389
3390         filemode: Move AC_LIBOBJ invocations to module description.
3391         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3392         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3393
3394 2011-05-23  Bruno Haible  <bruno@clisp.org>
3395
3396         openat-safer: Move AC_LIBOBJ invocations to module description.
3397         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3398         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3399
3400 2011-05-23  Bruno Haible  <bruno@clisp.org>
3401
3402         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3404         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3405
3406 2011-05-23  Bruno Haible  <bruno@clisp.org>
3407
3408         exclude: Move AC_LIBOBJ invocations to module description.
3409         * m4/exclude.m4: Remove file.
3410         * modules/exclude (Files): Remove it.
3411         (configure.ac): Remove gl_EXCLUDE call.
3412         (Makefile.am): Augment lib_SOURCES.
3413
3414 2011-05-23  Bruno Haible  <bruno@clisp.org>
3415
3416         dirname*: Respect rules for use of AC_LIBOBJ.
3417         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3418         invocations.
3419         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3420         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3421
3422 2011-05-23  Bruno Haible  <bruno@clisp.org>
3423
3424         dirent-safer: Move AC_LIBOBJ invocations to module description.
3425         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3426         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3427
3428 2011-05-23  Bruno Haible  <bruno@clisp.org>
3429
3430         crypto/des: Move AC_LIBOBJ invocations to module description.
3431         * m4/des.m4: Remove file.
3432         * modules/crypto/des (Files): Remove it.
3433         (configure.ac): Remove gl_DES call.
3434         (Makefile.am): Augment lib_SOURCES.
3435
3436 2011-05-23  Bruno Haible  <bruno@clisp.org>
3437
3438         cycle-check: Move AC_LIBOBJ invocations to module description.
3439         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3440         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3441
3442 2011-05-23  Bruno Haible  <bruno@clisp.org>
3443
3444         c-strtold: Move AC_LIBOBJ invocations to module description.
3445         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3446         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3447
3448 2011-05-23  Bruno Haible  <bruno@clisp.org>
3449
3450         c-strtod: Move AC_LIBOBJ invocations to module description.
3451         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3452         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3453
3454 2011-05-23  Bruno Haible  <bruno@clisp.org>
3455
3456         crc: Move AC_LIBOBJ invocations to module description.
3457         * m4/crc.m4: Remove file.
3458         * modules/crc (Files): Remove it.
3459         (configure.ac): Remove gl_CRC call.
3460         (Makefile.am): Augment lib_SOURCES.
3461
3462 2011-05-23  Bruno Haible  <bruno@clisp.org>
3463
3464         close-stream: Move AC_LIBOBJ invocations to module description.
3465         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3466         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3467
3468 2011-05-23  Bruno Haible  <bruno@clisp.org>
3469
3470         closeout: Move AC_LIBOBJ invocations to module description.
3471         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3472         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3473
3474 2011-05-23  Bruno Haible  <bruno@clisp.org>
3475
3476         closein: Move AC_LIBOBJ invocations to module description.
3477         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3478         * modules/closein (Makefile.am): Augment lib_SOURCES.
3479
3480 2011-05-23  Bruno Haible  <bruno@clisp.org>
3481
3482         cloexec: Move AC_LIBOBJ invocations to module description.
3483         * m4/cloexec.m4: Remove file.
3484         * modules/cloexec (Files): Remove it.
3485         (configure.ac): Remove gl_CLOEXEC call.
3486         (Makefile.am): Augment lib_SOURCES.
3487
3488 2011-05-23  Bruno Haible  <bruno@clisp.org>
3489
3490         check-version: Move AC_LIBOBJ invocations to module description.
3491         * m4/check-version.m4: Remove file.
3492         * modules/check-version (Files): Remove it.
3493         (configure.ac): Remove gl_CHECK_VERSION call.
3494         (Makefile.am): Augment lib_SOURCES.
3495
3496 2011-05-23  Bruno Haible  <bruno@clisp.org>
3497
3498         chdir-safer: Move AC_LIBOBJ invocations to module description.
3499         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3500         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3501
3502 2011-05-23  Bruno Haible  <bruno@clisp.org>
3503
3504         canonicalize: Move AC_LIBOBJ invocations to module description.
3505         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3506         AC_LIBOBJ invocation.
3507         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3508
3509 2011-05-23  Bruno Haible  <bruno@clisp.org>
3510
3511         canon-host: Move AC_LIBOBJ invocations to module description.
3512         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3513         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3514         instead of gl_CANON_HOST.
3515         (Makefile.am): Augment lib_SOURCES.
3516
3517 2011-05-23  Bruno Haible  <bruno@clisp.org>
3518
3519         backupfile: Move AC_LIBOBJ invocations to module description.
3520         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3521         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3522
3523 2011-05-23  Bruno Haible  <bruno@clisp.org>
3524
3525         argmatch: Move AC_LIBOBJ invocations to module description.
3526         * m4/argmatch.m4: Remove file.
3527         * modules/argmatch (Files): Remove it.
3528         (configure.ac): Remove gl_ARGMATCH call.
3529         (Makefile.am): Augment lib_SOURCES.
3530
3531 2011-05-23  Bruno Haible  <bruno@clisp.org>
3532
3533         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3534         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3535         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3536
3537 2011-05-23  Bruno Haible  <bruno@clisp.org>
3538
3539         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3540         * m4/arcfour.m4: Remove file.
3541         * modules/crypto/arcfour (Files): Remove it.
3542         (configure.ac): Remove gl_ARCFOUR call.
3543         (Makefile.am): Augment lib_SOURCES.
3544
3545 2011-05-22  Bruno Haible  <bruno@clisp.org>
3546
3547         write: Move AC_LIBOBJ invocations to module description.
3548         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3549         * modules/write (configure.ac): ... to here.
3550
3551 2011-05-22  Bruno Haible  <bruno@clisp.org>
3552
3553         wmemset: Move AC_LIBOBJ invocations to module description.
3554         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3555         here...
3556         * modules/wmemset (configure.ac): ... to here.
3557
3558 2011-05-22  Bruno Haible  <bruno@clisp.org>
3559
3560         wmemmove: Move AC_LIBOBJ invocations to module description.
3561         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3562         here...
3563         * modules/wmemmove (configure.ac): ... to here.
3564
3565 2011-05-22  Bruno Haible  <bruno@clisp.org>
3566
3567         wmemcpy: Move AC_LIBOBJ invocations to module description.
3568         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3569         here...
3570         * modules/wmemcpy (configure.ac): ... to here.
3571
3572 2011-05-22  Bruno Haible  <bruno@clisp.org>
3573
3574         wmemcmp: Move AC_LIBOBJ invocations to module description.
3575         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3576         here...
3577         * modules/wmemcmp (configure.ac): ... to here.
3578
3579 2011-05-22  Bruno Haible  <bruno@clisp.org>
3580
3581         wmemchr: Move AC_LIBOBJ invocations to module description.
3582         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3583         here...
3584         * modules/wmemchr (configure.ac): ... to here.
3585
3586 2011-05-22  Bruno Haible  <bruno@clisp.org>
3587
3588         wcswidth: Move AC_LIBOBJ invocations to module description.
3589         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3590         here...
3591         * modules/wcswidth (configure.ac): ... to here.
3592
3593 2011-05-22  Bruno Haible  <bruno@clisp.org>
3594
3595         wcwidth: Respect rules for use of AC_LIBOBJ.
3596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3597         invocation from here...
3598         * modules/wcwidth (configure.ac): ... to here.
3599         (Depends-on): Update conditions.
3600
3601 2011-05-22  Bruno Haible  <bruno@clisp.org>
3602
3603         wctype: Move AC_LIBOBJ invocations to module description.
3604         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3605         invocation from here...
3606         * modules/wctype (configure.ac): ... to here.
3607         (Depends-on): Update conditions.
3608
3609 2011-05-22  Bruno Haible  <bruno@clisp.org>
3610
3611         wctrans: Move AC_LIBOBJ invocations to module description.
3612         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3613         invocation from here...
3614         * modules/wctrans (configure.ac): ... to here.
3615
3616 2011-05-22  Bruno Haible  <bruno@clisp.org>
3617
3618         wctomb: Move AC_LIBOBJ invocations to module description.
3619         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3620         invocations from here...
3621         * modules/wctomb (configure.ac): ... to here.
3622
3623 2011-05-22  Bruno Haible  <bruno@clisp.org>
3624
3625         wctob: Move AC_LIBOBJ invocations to module description.
3626         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3627         gl_PREREQ_WCTOB invocations from here...
3628         * modules/wctob (configure.ac): ... to here.
3629         (Depends-on): Update conditions.
3630
3631 2011-05-22  Bruno Haible  <bruno@clisp.org>
3632
3633         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3634         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3635         here...
3636         * modules/wcsxfrm (configure.ac): ... to here.
3637
3638 2011-05-22  Bruno Haible  <bruno@clisp.org>
3639
3640         wcstok: Move AC_LIBOBJ invocations to module description.
3641         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3642         * modules/wcstok (configure.ac): ... to here.
3643
3644 2011-05-22  Bruno Haible  <bruno@clisp.org>
3645
3646         wcsstr: Move AC_LIBOBJ invocations to module description.
3647         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3648         * modules/wcsstr (configure.ac): ... to here.
3649
3650 2011-05-22  Bruno Haible  <bruno@clisp.org>
3651
3652         wcsspn: Move AC_LIBOBJ invocations to module description.
3653         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3654         * modules/wcsspn (configure.ac): ... to here.
3655
3656 2011-05-22  Bruno Haible  <bruno@clisp.org>
3657
3658         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3659         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3660         gl_PREREQ_WCSRTOMBS invocations from here...
3661         * modules/wcsrtombs (configure.ac): ... to here.
3662
3663 2011-05-22  Bruno Haible  <bruno@clisp.org>
3664
3665         wcsrchr: Move AC_LIBOBJ invocations to module description.
3666         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3667         here...
3668         * modules/wcsrchr (configure.ac): ... to here.
3669
3670 2011-05-22  Bruno Haible  <bruno@clisp.org>
3671
3672         wcspbrk: Move AC_LIBOBJ invocations to module description.
3673         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3674         here...
3675         * modules/wcspbrk (configure.ac): ... to here.
3676
3677 2011-05-22  Bruno Haible  <bruno@clisp.org>
3678
3679         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3680         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3681         gl_PREREQ_WCSNRTOMBS invocations from here...
3682         * modules/wcsnrtombs (configure.ac): ... to here.
3683
3684 2011-05-22  Bruno Haible  <bruno@clisp.org>
3685
3686         wcsnlen: Move AC_LIBOBJ invocations to module description.
3687         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3688         here...
3689         * modules/wcsnlen (configure.ac): ... to here.
3690
3691 2011-05-22  Bruno Haible  <bruno@clisp.org>
3692
3693         wcsncpy: Move AC_LIBOBJ invocations to module description.
3694         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3695         here...
3696         * modules/wcsncpy (configure.ac): ... to here.
3697
3698 2011-05-22  Bruno Haible  <bruno@clisp.org>
3699
3700         wcsncmp: Move AC_LIBOBJ invocations to module description.
3701         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3702         here...
3703         * modules/wcsncmp (configure.ac): ... to here.
3704
3705 2011-05-22  Bruno Haible  <bruno@clisp.org>
3706
3707         wcsncat: Move AC_LIBOBJ invocations to module description.
3708         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3709         here...
3710         * modules/wcsncat (configure.ac): ... to here.
3711
3712 2011-05-22  Bruno Haible  <bruno@clisp.org>
3713
3714         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3715         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3716         from here...
3717         * modules/wcsncasecmp (configure.ac): ... to here.
3718
3719 2011-05-22  Bruno Haible  <bruno@clisp.org>
3720
3721         wcslen: Move AC_LIBOBJ invocations to module description.
3722         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3723         * modules/wcslen (configure.ac): ... to here.
3724
3725 2011-05-22  Bruno Haible  <bruno@clisp.org>
3726
3727         wcsdup: Move AC_LIBOBJ invocations to module description.
3728         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3729         * modules/wcsdup (configure.ac): ... to here.
3730
3731 2011-05-22  Bruno Haible  <bruno@clisp.org>
3732
3733         wcscspn: Move AC_LIBOBJ invocations to module description.
3734         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3735         here...
3736         * modules/wcscspn (configure.ac): ... to here.
3737
3738 2011-05-22  Bruno Haible  <bruno@clisp.org>
3739
3740         wcscpy: Move AC_LIBOBJ invocations to module description.
3741         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3742         * modules/wcscpy (configure.ac): ... to here.
3743
3744 2011-05-22  Bruno Haible  <bruno@clisp.org>
3745
3746         wcscoll: Move AC_LIBOBJ invocations to module description.
3747         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3748         here...
3749         * modules/wcscoll (configure.ac): ... to here.
3750
3751 2011-05-22  Bruno Haible  <bruno@clisp.org>
3752
3753         wcscmp: Move AC_LIBOBJ invocations to module description.
3754         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3755         * modules/wcscmp (configure.ac): ... to here.
3756
3757 2011-05-22  Bruno Haible  <bruno@clisp.org>
3758
3759         wcschr: Move AC_LIBOBJ invocations to module description.
3760         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3761         * modules/wcschr (configure.ac): ... to here.
3762
3763 2011-05-22  Bruno Haible  <bruno@clisp.org>
3764
3765         wcscat: Move AC_LIBOBJ invocations to module description.
3766         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3767         * modules/wcscat (configure.ac): ... to here.
3768
3769 2011-05-22  Bruno Haible  <bruno@clisp.org>
3770
3771         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3772         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3773         here...
3774         * modules/wcscasecmp (configure.ac): ... to here.
3775
3776 2011-05-22  Bruno Haible  <bruno@clisp.org>
3777
3778         wcrtomb: Move AC_LIBOBJ invocations to module description.
3779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3780         invocations from here...
3781         * modules/wcrtomb (configure.ac): ... to here.
3782
3783 2011-05-22  Bruno Haible  <bruno@clisp.org>
3784
3785         wcpncpy: Move AC_LIBOBJ invocations to module description.
3786         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3787         here...
3788         * modules/wcpncpy (configure.ac): ... to here.
3789
3790 2011-05-22  Bruno Haible  <bruno@clisp.org>
3791
3792         wcpcpy: Move AC_LIBOBJ invocations to module description.
3793         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3794         * modules/wcpcpy (configure.ac): ... to here.
3795
3796 2011-05-22  Bruno Haible  <bruno@clisp.org>
3797
3798         waitpid: Move AC_LIBOBJ invocations to module description.
3799         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3800         invocation from here...
3801         * modules/waitpid (configure.ac): ... to here.
3802
3803 2011-05-22  Bruno Haible  <bruno@clisp.org>
3804
3805         utimensat: Move AC_LIBOBJ invocations to module description.
3806         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3807         here...
3808         * modules/utimensat (configure.ac): ... to here.
3809
3810 2011-05-22  Bruno Haible  <bruno@clisp.org>
3811
3812         usleep: Move AC_LIBOBJ invocations to module description.
3813         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3814         here...
3815         * modules/usleep (configure.ac): ... to here.
3816
3817 2011-05-22  Bruno Haible  <bruno@clisp.org>
3818
3819         unlockpt: Move AC_LIBOBJ invocations to module description.
3820         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3821         gl_PREREQ_UNLOCKPT invocations from here...
3822         * modules/unlockpt (configure.ac): ... to here.
3823
3824 2011-05-22  Bruno Haible  <bruno@clisp.org>
3825
3826         unlink: Respect rules for use of AC_LIBOBJ.
3827         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3828         * modules/unlink (configure.ac): ... to here.
3829
3830 2011-05-22  Bruno Haible  <bruno@clisp.org>
3831
3832         uname: Move AC_LIBOBJ invocations to module description.
3833         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3834         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3835         here...
3836         * modules/uname (configure.ac): ... to here.
3837
3838 2011-05-22  Bruno Haible  <bruno@clisp.org>
3839
3840         ttyname_r: Move AC_LIBOBJ invocations to module description.
3841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3842         gl_PREREQ_TTYNAME_R invocations from here...
3843         * modules/ttyname_r (configure.ac): ... to here.
3844
3845 2011-05-22  Bruno Haible  <bruno@clisp.org>
3846
3847         tsearch: Move AC_LIBOBJ invocations to module description.
3848         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3849         invocations from here...
3850         * modules/tsearch (configure.ac): ... to here.
3851
3852 2011-05-22  Bruno Haible  <bruno@clisp.org>
3853
3854         towctrans: Move AC_LIBOBJ invocations to module description.
3855         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3856         AC_LIBOBJ invocation from here...
3857         * modules/towctrans (configure.ac): ... to here.
3858
3859 2011-05-22  Bruno Haible  <bruno@clisp.org>
3860
3861         tmpfile: Move AC_LIBOBJ invocations to module description.
3862         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3863         invocations from here...
3864         * modules/tmpfile (configure.ac): ... to here.
3865
3866 2011-05-22  Bruno Haible  <bruno@clisp.org>
3867
3868         times: Move AC_LIBOBJ invocations to module description.
3869         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3870         * modules/times (configure.ac): ... to here.
3871
3872 2011-05-22  Bruno Haible  <bruno@clisp.org>
3873
3874         time_r: Move AC_LIBOBJ invocations to module description.
3875         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3876         invocations from here...
3877         * modules/time_r (configure.ac): ... to here.
3878
3879 2011-05-22  Bruno Haible  <bruno@clisp.org>
3880
3881         timegm: Move AC_LIBOBJ invocations to module description.
3882         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3883         invocations from here...
3884         * modules/timegm (configure.ac): ... to here.
3885
3886 2011-05-22  Bruno Haible  <bruno@clisp.org>
3887
3888         tcgetsid: Move AC_LIBOBJ invocations to module description.
3889         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3890         and gl_PREREQ_TCGETSID invocations from here...
3891         * modules/tcgetsid (configure.ac): ... to here.
3892         (Depends-on): Update conditions.
3893
3894 2011-05-22  Bruno Haible  <bruno@clisp.org>
3895
3896         symlinkat: Move AC_LIBOBJ invocations to module description.
3897         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3898         here...
3899         * modules/symlinkat (configure.ac): ... to here.
3900
3901 2011-05-22  Bruno Haible  <bruno@clisp.org>
3902
3903         symlink: Move AC_LIBOBJ invocations to module description.
3904         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3905         here...
3906         * modules/symlink (configure.ac): ... to here.
3907
3908 2011-05-22  Bruno Haible  <bruno@clisp.org>
3909
3910         strverscmp: Move AC_LIBOBJ invocations to module description.
3911         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3913         from here...
3914         * modules/strverscmp (configure.ac): ... to here.
3915
3916 2011-05-22  Bruno Haible  <bruno@clisp.org>
3917
3918         strtok_r: Move AC_LIBOBJ invocations to module description.
3919         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3920         and gl_PREREQ_STRTOK_R invocations from here...
3921         * modules/strtok_r (configure.ac): ... to here.
3922         (Depends-on): Update conditions.
3923
3924 2011-05-22  Bruno Haible  <bruno@clisp.org>
3925
3926         strtoumax: Move AC_LIBOBJ invocations to module description.
3927         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3929         from here...
3930         * modules/strtoumax (configure.ac): ... to here.
3931
3932 2011-05-22  Bruno Haible  <bruno@clisp.org>
3933
3934         strtoimax: Move AC_LIBOBJ invocations to module description.
3935         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3937         from here...
3938         * modules/strtoimax (configure.ac): ... to here.
3939
3940 2011-05-22  Bruno Haible  <bruno@clisp.org>
3941
3942         strtoull: Move AC_LIBOBJ invocations to module description.
3943         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3944         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3945         from here...
3946         * modules/strtoull (configure.ac): ... to here.
3947
3948 2011-05-22  Bruno Haible  <bruno@clisp.org>
3949
3950         strtoll: Move AC_LIBOBJ invocations to module description.
3951         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3953         here...
3954         * modules/strtoll (configure.ac): ... to here.
3955
3956 2011-05-22  Bruno Haible  <bruno@clisp.org>
3957
3958         strtoul: Move AC_LIBOBJ invocations to module description.
3959         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3960         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3961         * modules/strtoul (configure.ac): ... to here.
3962
3963 2011-05-22  Bruno Haible  <bruno@clisp.org>
3964
3965         strtol: Move AC_LIBOBJ invocations to module description.
3966         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3967         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3968         * modules/strtol (configure.ac): ... to here.
3969
3970 2011-05-22  Bruno Haible  <bruno@clisp.org>
3971
3972         strtod: Move AC_LIBOBJ invocations to module description.
3973         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3974         invocations from here...
3975         * modules/strtod (configure.ac): ... to here.
3976
3977 2011-05-22  Bruno Haible  <bruno@clisp.org>
3978
3979         strstr*: Move AC_LIBOBJ invocations to module description.
3980         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3981         invocations from here...
3982         * modules/strstr-simple (configure.ac): ... to here.
3983         * modules/strstr (configure.ac): ... and here.
3984
3985 2011-05-22  Bruno Haible  <bruno@clisp.org>
3986
3987         strsignal: Move AC_LIBOBJ invocations to module description.
3988         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3989         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3990         * modules/strsignal (configure.ac): ... to here.
3991         (Depends-on): Update conditions.
3992
3993 2011-05-22  Bruno Haible  <bruno@clisp.org>
3994
3995         strsep: Move AC_LIBOBJ invocations to module description.
3996         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3998         here...
3999         * modules/strsep (configure.ac): ... to here.
4000
4001 2011-05-22  Bruno Haible  <bruno@clisp.org>
4002
4003         strptime: Move AC_LIBOBJ invocations to module description.
4004         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4005         gl_PREREQ_STRPTIME invocations from here...
4006         * modules/strptime (configure.ac): ... to here.
4007
4008 2011-05-22  Bruno Haible  <bruno@clisp.org>
4009
4010         strpbrk: Move AC_LIBOBJ invocations to module description.
4011         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4013         here...
4014         * modules/strpbrk (configure.ac): ... to here.
4015
4016 2011-05-22  Bruno Haible  <bruno@clisp.org>
4017
4018         strnlen: Move AC_LIBOBJ invocations to module description.
4019         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4020         invocations from here...
4021         * modules/strnlen (configure.ac): ... to here.
4022
4023 2011-05-22  Bruno Haible  <bruno@clisp.org>
4024
4025         strndup: Move AC_LIBOBJ invocations to module description.
4026         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4027         invocations from here...
4028         * modules/strndup (configure.ac): ... to here.
4029         (Depends-on): Update conditions.
4030
4031 2011-05-22  Bruno Haible  <bruno@clisp.org>
4032
4033         strncat: Move AC_LIBOBJ invocations to module description.
4034         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4035         invocations from here...
4036         * modules/strncat (configure.ac): ... to here.
4037
4038 2011-05-22  Bruno Haible  <bruno@clisp.org>
4039
4040         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4041         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4042         invocations from here...
4043         * modules/strdup (configure.ac): ... to here.
4044         * modules/strdup-posix (configure.ac): ... and here.
4045
4046 2011-05-22  Bruno Haible  <bruno@clisp.org>
4047
4048         strcspn: Move AC_LIBOBJ invocations to module description.
4049         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4051         here...
4052         * modules/strcspn (configure.ac): ... to here.
4053
4054 2011-05-22  Bruno Haible  <bruno@clisp.org>
4055
4056         strchrnul: Move AC_LIBOBJ invocations to module description.
4057         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4058         gl_PREREQ_STRCHRNUL invocations from here...
4059         * modules/strchrnul (configure.ac): ... to here.
4060
4061 2011-05-22  Bruno Haible  <bruno@clisp.org>
4062
4063         strcasestr*: Move AC_LIBOBJ invocations to module description.
4064         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4065         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4066         * modules/strcasestr-simple (configure.ac): ... to here.
4067         * modules/strcasestr (configure.ac): ... and here.
4068
4069 2011-05-22  Bruno Haible  <bruno@clisp.org>
4070
4071         strcase: Move AC_LIBOBJ invocations to module description.
4072         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4073         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4074         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4075         gl_PREREQ_STRNCASECMP invocations from here...
4076         * modules/strcase (configure.ac): ... to here.
4077
4078 2011-05-22  Bruno Haible  <bruno@clisp.org>
4079
4080         stpncpy: Move AC_LIBOBJ invocations to module description.
4081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4082         here...
4083         * modules/stpncpy (configure.ac): ... to here.
4084
4085 2011-05-22  Bruno Haible  <bruno@clisp.org>
4086
4087         stpcpy: Move AC_LIBOBJ invocations to module description.
4088         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4090         here...
4091         * modules/stpcpy (configure.ac): ... to here.
4092
4093 2011-05-21  Bruno Haible  <bruno@clisp.org>
4094
4095         stat: Move AC_LIBOBJ invocations to module description.
4096         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4097         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4098         here...
4099         * modules/stat (configure.ac): ... to here.
4100
4101 2011-05-21  Bruno Haible  <bruno@clisp.org>
4102
4103         sleep: Move AC_LIBOBJ invocations to module description.
4104         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4105         * modules/sleep (configure.ac): ... to here.
4106
4107 2011-05-21  Bruno Haible  <bruno@clisp.org>
4108
4109         signbit: Move AC_LIBOBJ invocations to module description.
4110         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4111         * modules/signbit (configure.ac): ... to here.
4112
4113 2011-05-21  Bruno Haible  <bruno@clisp.org>
4114
4115         sigprocmask: Move AC_LIBOBJ invocations to module description.
4116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4117         gl_PREREQ_SIGPROMASK invocations from here...
4118         * modules/sigprocmask (configure.ac): ... to here.
4119
4120 2011-05-21  Bruno Haible  <bruno@clisp.org>
4121
4122         sigaction: Move AC_LIBOBJ invocations to module description.
4123         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4124         gl_PREREQ_SIGACTION invocations from here...
4125         * modules/sigaction (configure.ac): ... to here.
4126
4127 2011-05-21  Bruno Haible  <bruno@clisp.org>
4128
4129         sig2str: Move AC_LIBOBJ invocations to module description.
4130         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4132         here...
4133         * modules/sig2str (configure.ac): ... to here.
4134
4135 2011-05-21  Bruno Haible  <bruno@clisp.org>
4136
4137         setlocale: Move AC_LIBOBJ invocations to module description.
4138         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4139         gl_PREREQ_SETLOCALE invocations from here...
4140         * modules/setlocale (configure.ac): ... to here.
4141
4142 2011-05-21  Bruno Haible  <bruno@clisp.org>
4143
4144         unsetenv: Move AC_LIBOBJ invocations to module description.
4145         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4146         and gl_PREREQ_UNSETENV invocations from here...
4147         * modules/unsetenv (configure.ac): ... to here.
4148         (Depends-on): Update.
4149
4150 2011-05-21  Bruno Haible  <bruno@clisp.org>
4151
4152         setenv: Move AC_LIBOBJ invocations to module description.
4153         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4154         here...
4155         * modules/setenv (configure.ac): ... to here.
4156
4157 2011-05-21  Bruno Haible  <bruno@clisp.org>
4158
4159         selinux-h: Move AC_LIBOBJ invocations to module description.
4160         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4161         AC_LIBOBJ invocation from here...
4162         * modules/selinux-h (configure.ac): ... to here.
4163
4164 2011-05-21  Bruno Haible  <bruno@clisp.org>
4165
4166         select: Respect rules for use of AC_LIBOBJ.
4167         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4168         here...
4169         * modules/select (configure.ac): ... to here.
4170
4171 2011-05-21  Bruno Haible  <bruno@clisp.org>
4172
4173         scandir: Move AC_LIBOBJ invocations to module description.
4174         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4175         invocations from here...
4176         * modules/scandir (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         rpmatch: Move AC_LIBOBJ invocations to module description.
4181         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4183         here...
4184         * modules/rpmatch (configure.ac): ... to here.
4185
4186 2011-05-21  Bruno Haible  <bruno@clisp.org>
4187
4188         rmdir: Respect rules for use of AC_LIBOBJ.
4189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4190         * modules/rmdir (configure.ac): ... to here.
4191
4192 2011-05-21  Bruno Haible  <bruno@clisp.org>
4193
4194         renameat: Move AC_LIBOBJ invocations to module description.
4195         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4196         here...
4197         * modules/renameat (configure.ac): ... to here.
4198
4199 2011-05-21  Bruno Haible  <bruno@clisp.org>
4200
4201         rename: Respect rules for use of AC_LIBOBJ.
4202         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4203         here...
4204         * modules/rename (configure.ac): ... to here.
4205
4206 2011-05-21  Bruno Haible  <bruno@clisp.org>
4207
4208         remove: Move AC_LIBOBJ invocations to module description.
4209         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4210         here...
4211         * modules/remove (configure.ac): ... to here.
4212
4213 2011-05-21  Bruno Haible  <bruno@clisp.org>
4214
4215         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4216         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4217         macro.
4218         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4219         * modules/relocatable-lib (configure.ac): ... to here.
4220         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4221         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4222
4223 2011-05-21  Bruno Haible  <bruno@clisp.org>
4224
4225         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4226         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4227         here...
4228         * modules/relocatable-prog (configure.ac): ... to here.
4229
4230 2011-05-21  Bruno Haible  <bruno@clisp.org>
4231
4232         regex: Move AC_LIBOBJ invocations to module description.
4233         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4234         invocations from here...
4235         * modules/regex (configure.ac): ... to here.
4236
4237 2011-05-21  Bruno Haible  <bruno@clisp.org>
4238
4239         realloc-*: Move AC_LIBOBJ invocations to module description.
4240         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4241         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4242         AC_LIBOBJ invocations from here...
4243         * modules/realloc-gnu (configure.ac): ... to here.
4244         * modules/realloc-posix (configure.ac): ... and here.
4245
4246 2011-05-21  Bruno Haible  <bruno@clisp.org>
4247
4248         readutmp: Move AC_LIBOBJ invocations to module description.
4249         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4250         * modules/readutmp (configure.ac): ... to here.
4251
4252 2011-05-21  Bruno Haible  <bruno@clisp.org>
4253
4254         readlinkat: Move AC_LIBOBJ invocations to module description.
4255         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4256         here...
4257         * modules/readlinkat (configure.ac): ... to here.
4258
4259 2011-05-21  Bruno Haible  <bruno@clisp.org>
4260
4261         readlink: Move AC_LIBOBJ invocations to module description.
4262         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4263         gl_PREREQ_READLINK invocations from here...
4264         * modules/readlink (configure.ac): ... to here.
4265
4266 2011-05-21  Bruno Haible  <bruno@clisp.org>
4267
4268         readline: Move AC_LIBOBJ invocations to module description.
4269         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4270         gl_PREREQ_READLINE invocations from here...
4271         * modules/readline (configure.ac): ... to here.
4272
4273 2011-05-21  Bruno Haible  <bruno@clisp.org>
4274
4275         read: Move AC_LIBOBJ invocations to module description.
4276         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4277         * modules/read (configure.ac): ... to here.
4278
4279 2011-05-21  Bruno Haible  <bruno@clisp.org>
4280
4281         rawmemchr: Move AC_LIBOBJ invocations to module description.
4282         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4284         from here...
4285         * modules/rawmemchr (configure.ac): ... to here.
4286
4287 2011-05-21  Bruno Haible  <bruno@clisp.org>
4288
4289         random_r: Move AC_LIBOBJ invocations to module description.
4290         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4291         gl_PREREQ_RANDOM_R invocations from here...
4292         * modules/random_r (configure.ac): ... to here.
4293
4294 2011-05-21  Bruno Haible  <bruno@clisp.org>
4295
4296         pwrite: Move AC_LIBOBJ invocations to module description.
4297         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4298         * modules/pwrite (configure.ac): ... to here.
4299
4300 2011-05-21  Bruno Haible  <bruno@clisp.org>
4301
4302         putenv: Move AC_LIBOBJ invocations to module description.
4303         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4304         * modules/putenv (configure.ac): ... to here.
4305
4306 2011-05-21  Bruno Haible  <bruno@clisp.org>
4307
4308         login_tty: Move AC_LIBOBJ invocations to module description.
4309         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4310         * modules/login_tty (configure.ac): ... to here.
4311
4312 2011-05-21  Bruno Haible  <bruno@clisp.org>
4313
4314         openpty: Move AC_LIBOBJ invocations to module description.
4315         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4316         * modules/openpty (configure.ac): ... to here.
4317
4318 2011-05-21  Bruno Haible  <bruno@clisp.org>
4319
4320         forkpty: Move AC_LIBOBJ invocations to module description.
4321         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4322         * modules/forkpty (configure.ac): ... to here.
4323
4324 2011-05-21  Bruno Haible  <bruno@clisp.org>
4325
4326         ptsname: Move AC_LIBOBJ invocations to module description.
4327         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4328         invocations from here...
4329         * modules/ptsname (configure.ac): ... to here.
4330
4331 2011-05-21  Bruno Haible  <bruno@clisp.org>
4332
4333         pread: Move AC_LIBOBJ invocations to module description.
4334         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4335         * modules/pread (configure.ac): ... to here.
4336
4337 2011-05-21  Bruno Haible  <bruno@clisp.org>
4338
4339         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4340         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4341         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4342         * modules/posix_spawn (configure.ac): ... to here.
4343         * modules/posix_spawnp (configure.ac): ... and here.
4344
4345 2011-05-21  Bruno Haible  <bruno@clisp.org>
4346
4347         popen: Move AC_LIBOBJ invocations to module description.
4348         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4349         invocations from here...
4350         * modules/popen (configure.ac): ... to here.
4351
4352 2011-05-21  Bruno Haible  <bruno@clisp.org>
4353
4354         poll: Move AC_LIBOBJ invocations to module description.
4355         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4356         invocations from here...
4357         * modules/poll (configure.ac): ... to here.
4358
4359 2011-05-21  Bruno Haible  <bruno@clisp.org>
4360
4361         pipe-posix: Move AC_LIBOBJ invocations to module description.
4362         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4363         * modules/pipe-posix (configure.ac): ... to here.
4364
4365 2011-05-21  Bruno Haible  <bruno@clisp.org>
4366
4367         openat: Respect rules for use of AC_LIBOBJ.
4368         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4369         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4370         * modules/openat (configure.ac): ... to here.
4371
4372 2011-05-21  Bruno Haible  <bruno@clisp.org>
4373
4374         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4375         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4376         invocation from here...
4377         * modules/obstack-printf (configure.ac): ... to here.
4378         * modules/obstack-printf-posix (configure.ac): ... and here.
4379
4380 2011-05-21  Bruno Haible  <bruno@clisp.org>
4381
4382         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4383         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4384         from here...
4385         * modules/nl_langinfo (configure.ac): ... to here.
4386
4387 2011-05-21  Bruno Haible  <bruno@clisp.org>
4388
4389         nanosleep: Move AC_LIBOBJ invocations to module description.
4390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4391         gl_PREREQ_NANOSLEEP invocations from here...
4392         * modules/nanosleep (configure.ac): ... to here.
4393
4394 2011-05-21  Bruno Haible  <bruno@clisp.org>
4395
4396         mountlist: Move AC_LIBOBJ invocations to module description.
4397         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4398         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4399         * modules/mountlist (configure.ac): ... to here.
4400
4401 2011-05-21  Bruno Haible  <bruno@clisp.org>
4402
4403         mktime: Respect rules for use of AC_LIBOBJ.
4404         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4405         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4406         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4407         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4408         * modules/mktime (configure.ac): ... to here.
4409         * modules/mktime-internal (configure.ac): ... and here.
4410         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4411
4412 2011-05-21  Bruno Haible  <bruno@clisp.org>
4413
4414         mkstemps: Move AC_LIBOBJ invocations to module description.
4415         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4416         here...
4417         * modules/mkstemps (configure.ac): ... to here.
4418
4419 2011-05-21  Bruno Haible  <bruno@clisp.org>
4420
4421         mkstemp: Move AC_LIBOBJ invocations to module description.
4422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4423         gl_PREREQ_MKSTEMP invocations from here...
4424         * modules/mkstemp (configure.ac): ... to here.
4425
4426 2011-05-21  Bruno Haible  <bruno@clisp.org>
4427
4428         mkostemps: Move AC_LIBOBJ invocations to module description.
4429         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4430         here...
4431         * modules/mkostemps (configure.ac): ... to here.
4432
4433 2011-05-21  Bruno Haible  <bruno@clisp.org>
4434
4435         mkostemp: Move AC_LIBOBJ invocations to module description.
4436         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4437         gl_PREREQ_MKOSTEMP invocations from here...
4438         * modules/mkostemp (configure.ac): ... to here.
4439
4440 2011-05-21  Bruno Haible  <bruno@clisp.org>
4441
4442         mknod: Move AC_LIBOBJ invocations to module description.
4443         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4444         * modules/mknod (configure.ac): ... to here.
4445
4446 2011-05-21  Bruno Haible  <bruno@clisp.org>
4447
4448         mkfifoat: Move AC_LIBOBJ invocations to module description.
4449         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4450         here...
4451         * modules/mkfifoat (configure.ac): ... to here.
4452
4453 2011-05-21  Bruno Haible  <bruno@clisp.org>
4454
4455         mkfifo: Respect rules for use of AC_LIBOBJ.
4456         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4457         here...
4458         * modules/mkfifo (configure.ac): ... to here.
4459
4460 2011-05-21  Bruno Haible  <bruno@clisp.org>
4461
4462         mkdtemp: Move AC_LIBOBJ invocations to module description.
4463         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4464         invocations from here...
4465         * modules/mkdtemp (configure.ac): ... to here.
4466
4467 2011-05-21  Bruno Haible  <bruno@clisp.org>
4468
4469         mkdir: Move AC_LIBOBJ invocations to module description.
4470         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4471         * modules/mkdir (configure.ac): ... to here.
4472
4473 2011-05-21  Bruno Haible  <bruno@clisp.org>
4474
4475         memset: Move AC_LIBOBJ invocations to module description.
4476         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4478         here...
4479         * modules/memset (configure.ac): ... to here.
4480
4481 2011-05-21  Bruno Haible  <bruno@clisp.org>
4482
4483         memrchr: Move AC_LIBOBJ invocations to module description.
4484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4486         here...
4487         * modules/memrchr (configure.ac): ... to here.
4488
4489 2011-05-21  Bruno Haible  <bruno@clisp.org>
4490
4491         mempcpy: Move AC_LIBOBJ invocations to module description.
4492         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4493         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4494         here...
4495         * modules/mempcpy (configure.ac): ... to here.
4496
4497 2011-05-21  Bruno Haible  <bruno@clisp.org>
4498
4499         memmove: Move AC_LIBOBJ invocations to module description.
4500         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4502         here...
4503         * modules/memmove (configure.ac): ... to here.
4504
4505 2011-05-21  Bruno Haible  <bruno@clisp.org>
4506
4507         memmem*: Move AC_LIBOBJ invocations to module description.
4508         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4509         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4510         here...
4511         (gl_FUNC_MEMMEM): ... and here...
4512         * modules/memmem-simple (configure.ac): ... to here.
4513         * modules/memmem (configure.ac): ... and here.
4514
4515 2011-05-21  Bruno Haible  <bruno@clisp.org>
4516
4517         memcpy: Move AC_LIBOBJ invocations to module description.
4518         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4520         here...
4521         * modules/memcpy (configure.ac): ... to here.
4522
4523 2011-05-21  Bruno Haible  <bruno@clisp.org>
4524
4525         memcmp: Simplify autoconf macro.
4526         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4527         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4528         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4529
4530 2011-05-21  Bruno Haible  <bruno@clisp.org>
4531
4532         memcmp: Move AC_LIBOBJ invocations to module description.
4533         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4534         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4535         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4536         * modules/memcmp (configure.ac): ... to here.
4537         (Depends-on): Update conditions.
4538
4539 2011-05-21  Bruno Haible  <bruno@clisp.org>
4540
4541         memchr: Respect rules for use of AC_LIBOBJ.
4542         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4543         invocations from here...
4544         * modules/memchr (configure.ac): ... to here.
4545
4546 2011-05-21  Bruno Haible  <bruno@clisp.org>
4547
4548         mbtowc: Move AC_LIBOBJ invocations to module description.
4549         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4550         invocations from here...
4551         * modules/mbtowc (configure.ac): ... to here.
4552
4553 2011-05-21  Bruno Haible  <bruno@clisp.org>
4554
4555         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4556         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4557         gl_PREREQ_MBSRTOWCS invocations from here...
4558         * modules/mbsrtowcs (configure.ac): ... to here.
4559
4560 2011-05-21  Bruno Haible  <bruno@clisp.org>
4561
4562         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4563         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4564         gl_PREREQ_MBSNRTOWCS invocations from here...
4565         * modules/mbsnrtowcs (configure.ac): ... to here.
4566
4567 2011-05-21  Bruno Haible  <bruno@clisp.org>
4568
4569         mbsinit: Move AC_LIBOBJ invocations to module description.
4570         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4571         invocations from here...
4572         * modules/mbsinit (configure.ac): ... to here.
4573
4574 2011-05-21  Bruno Haible  <bruno@clisp.org>
4575
4576         mbrlen: Move AC_LIBOBJ invocations to module description.
4577         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4578         invocations from here...
4579         * modules/mbrlen (configure.ac): ... to here.
4580
4581 2011-05-21  Bruno Haible  <bruno@clisp.org>
4582
4583         mbrtowc: Respect rules for use of AC_LIBOBJ.
4584         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4585         invocations from here...
4586         * modules/mbrtowc (configure.ac): ... to here.
4587
4588 2011-05-21  Bruno Haible  <bruno@clisp.org>
4589
4590         malloc-*: Move AC_LIBOBJ invocations to module description.
4591         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4592         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4593         AC_LIBOBJ invocations from here...
4594         * modules/malloc-gnu (configure.ac): ... to here.
4595         * modules/malloc-posix (configure.ac): ... and here.
4596
4597 2011-05-21  Bruno Haible  <bruno@clisp.org>
4598
4599         lstat, openat: Respect rules for use of AC_LIBOBJ.
4600         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4601         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4602         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4603         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4604         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4605         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4606         here.
4607         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4608
4609 2011-05-21  Bruno Haible  <bruno@clisp.org>
4610
4611         lseek: Move AC_LIBOBJ invocations to module description.
4612         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4613         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4614         * modules/lseek (configure.ac): ... to here.
4615
4616 2011-05-21  Bruno Haible  <bruno@clisp.org>
4617
4618         linkat: Move AC_LIBOBJ invocations to module description.
4619         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4620         here...
4621         * modules/linkat (configure.ac): ... to here.
4622
4623 2011-05-21  Bruno Haible  <bruno@clisp.org>
4624
4625         link: Respect rules for use of AC_LIBOBJ.
4626         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4627         * modules/link (configure.ac): ... to here.
4628
4629 2011-05-21  Bruno Haible  <bruno@clisp.org>
4630
4631         lchown: Move AC_LIBOBJ invocations to module description.
4632         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4633         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4634         * modules/lchown (configure.ac): ... to here.
4635
4636 2011-05-21  Bruno Haible  <bruno@clisp.org>
4637
4638         iswctype: Move AC_LIBOBJ invocations to module description.
4639         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4640         here...
4641         * modules/iswctype (configure.ac): ... to here.
4642
4643 2011-05-21  Bruno Haible  <bruno@clisp.org>
4644
4645         iswblank: Move AC_LIBOBJ invocations to module description.
4646         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4647         here...
4648         * modules/iswblank (configure.ac): ... to here.
4649
4650 2011-05-21  Bruno Haible  <bruno@clisp.org>
4651
4652         atanl: Move AC_LIBOBJ invocations to module description.
4653         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4654         * modules/atanl (configure.ac): ... to here.
4655
4656 2011-05-21  Bruno Haible  <bruno@clisp.org>
4657
4658         acosl: Move AC_LIBOBJ invocations to module description.
4659         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4660         * modules/acosl (configure.ac): ... to here.
4661
4662 2011-05-21  Bruno Haible  <bruno@clisp.org>
4663
4664         asinl: Respect rules for use of AC_LIBOBJ.
4665         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4666         * modules/asinl (configure.ac): ... to here.
4667
4668 2011-05-21  Bruno Haible  <bruno@clisp.org>
4669
4670         tanl: Move AC_LIBOBJ invocations to module description.
4671         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4672         * modules/tanl (configure.ac): ... to here.
4673
4674 2011-05-21  Bruno Haible  <bruno@clisp.org>
4675
4676         cosl: Move AC_LIBOBJ invocations to module description.
4677         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4678         * modules/cosl (configure.ac): ... to here.
4679
4680 2011-05-21  Bruno Haible  <bruno@clisp.org>
4681
4682         sinl: Move AC_LIBOBJ invocations to module description.
4683         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4684         * modules/sinl (configure.ac): ... to here.
4685
4686 2011-05-21  Bruno Haible  <bruno@clisp.org>
4687
4688         logl: Move AC_LIBOBJ invocations to module description.
4689         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4690         * modules/logl (configure.ac): ... to here.
4691
4692 2011-05-21  Bruno Haible  <bruno@clisp.org>
4693
4694         expl: Move AC_LIBOBJ invocations to module description.
4695         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4696         * modules/expl (configure.ac): ... to here.
4697
4698 2011-05-21  Bruno Haible  <bruno@clisp.org>
4699
4700         roundl: Move AC_LIBOBJ invocations to module description.
4701         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4702         * modules/roundl (configure.ac): ... to here.
4703
4704 2011-05-21  Bruno Haible  <bruno@clisp.org>
4705
4706         round: Move AC_LIBOBJ invocations to module description.
4707         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4708         * modules/round (configure.ac): ... to here.
4709
4710 2011-05-21  Bruno Haible  <bruno@clisp.org>
4711
4712         roundf: Move AC_LIBOBJ invocations to module description.
4713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4714         * modules/roundf (configure.ac): ... to here.
4715
4716 2011-05-21  Bruno Haible  <bruno@clisp.org>
4717
4718         truncl: Move AC_LIBOBJ invocations to module description.
4719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4720         * modules/truncl (configure.ac): ... to here.
4721
4722 2011-05-21  Bruno Haible  <bruno@clisp.org>
4723
4724         trunc: Move AC_LIBOBJ invocations to module description.
4725         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4726         * modules/trunc (configure.ac): ... to here.
4727
4728 2011-05-21  Bruno Haible  <bruno@clisp.org>
4729
4730         truncf: Move AC_LIBOBJ invocations to module description.
4731         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4732         * modules/truncf (configure.ac): ... to here.
4733
4734 2011-05-21  Bruno Haible  <bruno@clisp.org>
4735
4736         ceill: Move AC_LIBOBJ invocations to module description.
4737         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4738         * modules/ceill (configure.ac): ... to here.
4739
4740 2011-05-21  Bruno Haible  <bruno@clisp.org>
4741
4742         ceil: Move AC_LIBOBJ invocations to module description.
4743         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4744         * modules/ceil (configure.ac): ... to here.
4745
4746 2011-05-21  Bruno Haible  <bruno@clisp.org>
4747
4748         ceilf: Move AC_LIBOBJ invocations to module description.
4749         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4750         * modules/ceilf (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         floorl: Respect rules for use of AC_LIBOBJ.
4755         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4756         * modules/floorl (configure.ac): ... to here.
4757
4758 2011-05-21  Bruno Haible  <bruno@clisp.org>
4759
4760         floor: Respect rules for use of AC_LIBOBJ.
4761         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4762         * modules/floor (configure.ac): ... to here.
4763
4764 2011-05-21  Bruno Haible  <bruno@clisp.org>
4765
4766         floorf: Move AC_LIBOBJ invocations to module description.
4767         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4768         * modules/floorf (configure.ac): ... to here.
4769
4770 2011-05-20  Bruno Haible  <bruno@clisp.org>
4771
4772         sqrtl: Respect rules for use of AC_LIBOBJ.
4773         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4774         * modules/sqrtl (configure.ac): ... to here.
4775
4776 2011-05-20  Bruno Haible  <bruno@clisp.org>
4777
4778         ldexpl: Respect rules for use of AC_LIBOBJ.
4779         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4780         * modules/ldexpl (configure.ac): ... to here.
4781
4782 2011-05-20  Bruno Haible  <bruno@clisp.org>
4783
4784         frexpl*: Respect rules for use of AC_LIBOBJ.
4785         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4786         invocation from here...
4787         * modules/frexpl (configure.ac): ... to here.
4788         * modules/frexpl-nolibm (configure.ac): ... and here.
4789
4790 2011-05-20  Bruno Haible  <bruno@clisp.org>
4791
4792         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4793         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4794         invocation from here...
4795         * modules/frexp (configure.ac): ... to here.
4796         * modules/frexp-nolibm (configure.ac): ... and here.
4797
4798 2011-05-20  Bruno Haible  <bruno@clisp.org>
4799
4800         isnan: Respect rules for use of AC_LIBOBJ.
4801         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4802         invocations here.
4803         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4804         REPLACE_ISNAN.
4805         * modules/isnand (configure.ac): Likewise.
4806         * modules/isnanl (configure.ac): Likewise.
4807
4808 2011-05-20  Bruno Haible  <bruno@clisp.org>
4809
4810         isnanl*: Respect rules for use of AC_LIBOBJ.
4811         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4812         invocation from here...
4813         * modules/isnanl (configure.ac): ... to here.
4814         * modules/isnanl-nolibm (configure.ac): ... and here.
4815
4816 2011-05-20  Bruno Haible  <bruno@clisp.org>
4817
4818         isnand*: Move AC_LIBOBJ invocations to module description.
4819         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4820         invocation from here...
4821         * modules/isnand (configure.ac): ... to here.
4822         * modules/isnand-nolibm (configure.ac): ... and here.
4823
4824 2011-05-20  Bruno Haible  <bruno@clisp.org>
4825
4826         isnanf*: Move AC_LIBOBJ invocations to module description.
4827         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4828         invocation from here...
4829         * modules/isnanf (configure.ac): ... to here.
4830         * modules/isnanf-nolibm (configure.ac): ... and here.
4831
4832 2011-05-20  Bruno Haible  <bruno@clisp.org>
4833
4834         isnan*: Separate the AC_LIBOBJ invocations.
4835         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4836         AC_LIBOBJ invocation.
4837         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4838         here.
4839         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4840         AC_LIBOBJ invocation.
4841         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4842         here.
4843         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4844         AC_LIBOBJ invocation.
4845         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4846         here.
4847         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4848
4849 2011-05-08  Bruno Haible  <bruno@clisp.org>
4850
4851         isinf: Move AC_LIBOBJ invocations to module description.
4852         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4853         * modules/isinf (configure.ac): ... to here.
4854
4855 2011-05-08  Bruno Haible  <bruno@clisp.org>
4856
4857         isfinite: Move AC_LIBOBJ invocations to module description.
4858         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4859         * modules/isfinite (configure.ac): ... to here.
4860
4861 2011-05-08  Bruno Haible  <bruno@clisp.org>
4862
4863         isblank: Move AC_LIBOBJ invocations to module description.
4864         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4865         here...
4866         * modules/isblank (configure.ac): ... to here.
4867
4868 2011-05-08  Bruno Haible  <bruno@clisp.org>
4869
4870         isapipe: Move AC_LIBOBJ invocations to module description.
4871         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4872         gl_PREREQ_ISAPIPE invocations from here...
4873         * modules/isapipe (configure.ac): ... to here.
4874         (Depends-on): Update condition.
4875
4876 2011-05-08  Bruno Haible  <bruno@clisp.org>
4877
4878         ioctl: Move AC_LIBOBJ invocations to module description.
4879         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4880         invocations from here...
4881         * modules/ioctl (configure.ac): ... to here.
4882         (Depends-on): Update condition.
4883
4884 2011-05-08  Bruno Haible  <bruno@clisp.org>
4885
4886         imaxdiv: Move AC_LIBOBJ invocations to module description.
4887         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4888         invocations from here...
4889         * modules/imaxdiv (configure.ac): ... to here.
4890
4891 2011-05-08  Bruno Haible  <bruno@clisp.org>
4892
4893         imaxabs: Move AC_LIBOBJ invocations to module description.
4894         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4895         invocations from here...
4896         * modules/imaxabs (configure.ac): ... to here.
4897
4898 2011-05-08  Bruno Haible  <bruno@clisp.org>
4899
4900         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4902         AC_LIBOBJ invocations from here...
4903         * modules/getaddrinfo (configure.ac): ... to here.
4904         (Depends-on): Add conditions.
4905
4906 2011-05-08  Bruno Haible  <bruno@clisp.org>
4907
4908         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4909         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4910         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4911         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4912         (gl_PREREQ_INET_PTON): ... from here.
4913         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4914         gl_PREREQ_INET_PTON here.
4915         (Depends-on): Update condition.
4916
4917 2011-05-08  Bruno Haible  <bruno@clisp.org>
4918
4919         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4920         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4921         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4922         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4923         (gl_PREREQ_INET_NTOP): ... from here.
4924         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4925         gl_PREREQ_INET_NTOP here.
4926         (Depends-on): Update condition.
4927
4928 2011-05-08  Bruno Haible  <bruno@clisp.org>
4929
4930         iconv_open: Move AC_LIBOBJ invocations to module description.
4931         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4932         AC_LIBOBJ invocations from here...
4933         * modules/iconv_open (configure.ac): ... to here.
4934
4935 2011-05-08  Bruno Haible  <bruno@clisp.org>
4936
4937         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4938         If module 'iconv_open' is among the main modules and module
4939         'iconv_open-utf' is among the tests dependencies, then
4940         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4941         return the special iconv_t values. Therefore iconv() and iconv_close()
4942         must support these special iconv_t values, already in lib, not only in
4943         tests.
4944         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4946         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4947         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4948         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4949         (Depends-on): Add the dependencies of iconv_open-utf.
4950         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4951         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4952         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4953
4954 2011-05-08  Bruno Haible  <bruno@clisp.org>
4955
4956         group-member: Move AC_LIBOBJ invocations to module description.
4957         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4958         gl_PREREQ_GROUP_MEMBER invocations from here...
4959         * modules/group-member (configure.ac): ... to here.
4960
4961 2011-05-08  Bruno Haible  <bruno@clisp.org>
4962
4963         grantpt: Move AC_LIBOBJ invocations to module description.
4964         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4965         invocations from here...
4966         * modules/grantpt (configure.ac): ... to here.
4967
4968 2011-05-08  Bruno Haible  <bruno@clisp.org>
4969
4970         glob: Move AC_LIBOBJ invocations to module description.
4971         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4972         from here...
4973         * modules/glob (configure.ac): ... to here.
4974
4975 2011-05-08  Bruno Haible  <bruno@clisp.org>
4976
4977         getusershell: Move AC_LIBOBJ invocations to module description.
4978         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4979         Move AC_LIBOBJ invocation from here...
4980         * modules/getusershell (configure.ac): ... to here.
4981         (Depends-on): Update condition.
4982
4983 2011-05-08  Bruno Haible  <bruno@clisp.org>
4984
4985         gettimeofday: Move AC_LIBOBJ invocations to module description.
4986         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4987         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4988         gl_PREREQ_GETTIMEOFDAY invocations from here...
4989         * modules/gettimeofday (configure.ac): ... to here.
4990
4991 2011-05-08  Bruno Haible  <bruno@clisp.org>
4992
4993         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4994         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4995         just gl_FUNC_TZSET.
4996         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4997         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4999         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5000
5001 2011-05-08  Bruno Haible  <bruno@clisp.org>
5002
5003         getsubopt: Move AC_LIBOBJ invocations to module description.
5004         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5005         gl_PREREQ_GETSUBOPT invocations from here...
5006         * modules/getsubopt (configure.ac): ... to here.
5007
5008 2011-05-08  Bruno Haible  <bruno@clisp.org>
5009
5010         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5011         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5012         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5013         * modules/getpass-gnu (configure.ac): ... to here.
5014
5015 2011-05-08  Bruno Haible  <bruno@clisp.org>
5016
5017         getpass: Move AC_LIBOBJ invocations to module description.
5018         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5019         gl_PREREQ_GETPASS invocations from here...
5020         * modules/getpass (configure.ac): ... to here.
5021
5022 2011-05-08  Bruno Haible  <bruno@clisp.org>
5023
5024         getpagesize: Move AC_LIBOBJ invocations to module description.
5025         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5026         from here...
5027         * modules/getpagesize (configure.ac): ... to here.
5028
5029 2011-05-08  Bruno Haible  <bruno@clisp.org>
5030
5031         getopt: Move AC_LIBOBJ invocations to module description.
5032         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5033         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5034         invocations from here...
5035         * modules/getopt-gnu (configure.ac): ... to here.
5036         * modules/getopt-posix (configure.ac): ... and here.
5037         (Depends-on): Update condition.
5038
5039 2011-05-08  Bruno Haible  <bruno@clisp.org>
5040
5041         getopt, argp: Respect rules for use of AC_LIBOBJ.
5042         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5043         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5044         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5045         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5046
5047 2011-05-08  Bruno Haible  <bruno@clisp.org>
5048
5049         getlogin_r: Move AC_LIBOBJ invocations to module description.
5050         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5051         gl_PREREQ_GETLOGIN_R invocations from here...
5052         * modules/getlogin_r (configure.ac): ... to here.
5053
5054 2011-05-08  Bruno Haible  <bruno@clisp.org>
5055
5056         getlogin: Move AC_LIBOBJ invocations to module description.
5057         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5058         here...
5059         * modules/getlogin (configure.ac): ... to here.
5060
5061 2011-05-08  Bruno Haible  <bruno@clisp.org>
5062
5063         getloadavg: Move AC_LIBOBJ invocations to module description.
5064         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5065         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5066         * modules/getloadavg (configure.ac): ... to here.
5067
5068 2011-05-08  Bruno Haible  <bruno@clisp.org>
5069
5070         gethrxtime: Move AC_LIBOBJ invocations to module description.
5071         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5072         LIB_GETHRXTIME from here...
5073         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5074         invocations from here...
5075         * modules/gethrxtime (configure.ac): ... to here.
5076
5077 2011-05-08  Bruno Haible  <bruno@clisp.org>
5078
5079         gethostname: Move AC_LIBOBJ invocations to module description.
5080         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5081         gl_PREREQ_GETHOSTNAME invocations from here...
5082         * modules/gethostname (configure.ac): ... to here.
5083
5084 2011-05-08  Bruno Haible  <bruno@clisp.org>
5085
5086         getgroups: Move AC_LIBOBJ invocations to module description.
5087         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5088         here...
5089         * modules/getgroups (configure.ac): ... to here.
5090
5091 2011-05-08  Bruno Haible  <bruno@clisp.org>
5092
5093         getdtablesize: Move AC_LIBOBJ invocations to module description.
5094         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5095         invocation from here...
5096         * modules/getdtablesize (configure.ac): ... to here.
5097
5098 2011-05-08  Bruno Haible  <bruno@clisp.org>
5099
5100         getdomainname: Move AC_LIBOBJ invocations to module description.
5101         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5102         gl_PREREQ_GETDOMAINNAME invocations from here...
5103         * modules/getdomainname (configure.ac): ... to here.
5104
5105 2011-05-08  Bruno Haible  <bruno@clisp.org>
5106
5107         getline: Move AC_LIBOBJ invocations to module description.
5108         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5109         invocations from here...
5110         * modules/getline (configure.ac): ... to here.
5111
5112 2011-05-08  Bruno Haible  <bruno@clisp.org>
5113
5114         getline: Simplify.
5115         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5116         It's already handled through the module dependency.
5117
5118 2011-05-08  Bruno Haible  <bruno@clisp.org>
5119
5120         getdelim: Move AC_LIBOBJ invocations to module description.
5121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5122         and gl_PREREQ_GETDELIM invocations from here...
5123         * modules/getdelim (configure.ac): ... to here.
5124         (Depends-on): Fix condition.
5125
5126 2011-05-08  Bruno Haible  <bruno@clisp.org>
5127
5128         getcwd: Move AC_LIBOBJ invocations to module description.
5129         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5130         invocations from here...
5131         * modules/getcwd (configure.ac): ... to here.
5132
5133 2011-05-08  Bruno Haible  <bruno@clisp.org>
5134
5135         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5136         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5137         here...
5138         * modules/getcwd-lgpl (configure.ac): ... to here.
5139
5140 2011-05-07  Bruno Haible  <bruno@clisp.org>
5141
5142         crypto/gc: Move AC_LIBOBJ invocations to module description.
5143         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5144         * modules/crypto/gc (configure.ac): ... to here.
5145
5146 2011-05-07  Bruno Haible  <bruno@clisp.org>
5147
5148         fwriting: Move AC_LIBOBJ invocations to module description.
5149         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5150         here...
5151         * modules/fwriting (configure.ac): ... to here.
5152
5153 2011-05-07  Bruno Haible  <bruno@clisp.org>
5154
5155         fwritable: Move AC_LIBOBJ invocations to module description.
5156         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5157         here...
5158         * modules/fwritable (configure.ac): ... to here.
5159
5160 2011-05-07  Bruno Haible  <bruno@clisp.org>
5161
5162         futimens: Move AC_LIBOBJ invocations to module description.
5163         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5164         here...
5165         * modules/futimens (configure.ac): ... to here.
5166
5167 2011-05-07  Bruno Haible  <bruno@clisp.org>
5168
5169         ftruncate: Move AC_LIBOBJ invocations to module description.
5170         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5171         gl_PREREQ_FTRUNCATE invocations from here...
5172         * modules/ftruncate (configure.ac): ... to here.
5173
5174 2011-05-07  Bruno Haible  <bruno@clisp.org>
5175
5176         fsync: Move AC_LIBOBJ invocations to module description.
5177         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5178         invocations from here...
5179         * modules/fsync (configure.ac): ... to here.
5180
5181 2011-05-07  Bruno Haible  <bruno@clisp.org>
5182
5183         fsusage: Move AC_LIBOBJ invocations to module description.
5184         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5185         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5186         * modules/fsusage (configure.ac): ... to here.
5187
5188 2011-05-07  Bruno Haible  <bruno@clisp.org>
5189
5190         freopen: Move AC_LIBOBJ invocations to module description.
5191         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5192         invocations from here...
5193         * modules/freopen (configure.ac): ... to here.
5194
5195 2011-05-07  Bruno Haible  <bruno@clisp.org>
5196
5197         free: Move AC_LIBOBJ invocations to module description.
5198         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5199         invocations from here...
5200         * modules/free (configure.ac): ... to here.
5201
5202 2011-05-07  Bruno Haible  <bruno@clisp.org>
5203
5204         freadable: Move AC_LIBOBJ invocations to module description.
5205         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5206         here...
5207         * modules/freadable (configure.ac): ... to here.
5208
5209 2011-05-07  Bruno Haible  <bruno@clisp.org>
5210
5211         fpurge: Move AC_LIBOBJ invocations to module description.
5212         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5213         invocations from here...
5214         * modules/fpurge (configure.ac): ... to here.
5215
5216 2011-05-07  Bruno Haible  <bruno@clisp.org>
5217
5218         fpending: Move AC_LIBOBJ invocations to module description.
5219         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5220         gl_FUNC_FPENDING.
5221         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5222         invocations from here...
5223         * modules/fpending (configure.ac): ... to here.
5224
5225 2011-05-07  Bruno Haible  <bruno@clisp.org>
5226
5227         fopen: Move AC_LIBOBJ invocations to module description.
5228         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5229         invocations from here...
5230         * modules/fopen (configure.ac): ... to here.
5231
5232 2011-05-07  Bruno Haible  <bruno@clisp.org>
5233
5234         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5235         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5236         gl_FUNC_FNMATCH_POSIX.
5237         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5238         invocations from here...
5239         * modules/fnmatch (configure.ac): ... to here.
5240         * modules/fnmatch-gnu (configure.ac): ... and here.
5241
5242 2011-05-07  Bruno Haible  <bruno@clisp.org>
5243
5244         flock: Move AC_LIBOBJ invocations to module description.
5245         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5246         invocations from here...
5247         * modules/flock (configure.ac): ... to here.
5248
5249 2011-05-07  Bruno Haible  <bruno@clisp.org>
5250
5251         fileblocks: Move AC_LIBOBJ invocations to module description.
5252         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5253         gl_PREREQ_FILEBLOCKS invocations from here...
5254         * modules/fileblocks (configure.ac): ... to here.
5255
5256 2011-05-06  Bruno Haible  <bruno@clisp.org>
5257
5258         fflush: Move AC_LIBOBJ invocations to module description.
5259         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5260         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5261         invocations from here...
5262         * modules/fflush (configure.ac): ... to here.
5263
5264 2011-05-06  Bruno Haible  <bruno@clisp.org>
5265
5266         fdopendir: Move AC_LIBOBJ invocations to module description.
5267         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5268         here...
5269         * modules/fdopendir (configure.ac): ... to here.
5270         (Depends-on): Improve conditions.
5271
5272 2011-05-06  Bruno Haible  <bruno@clisp.org>
5273
5274         _Exit: Move AC_LIBOBJ invocations to module description.
5275         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5276         invocations from here...
5277         * modules/_Exit (configure.ac): ... to here.
5278
5279 2011-05-21  Bruno Haible  <bruno@clisp.org>
5280
5281         euidaccess: Respect rules for use of AC_LIBOBJ.
5282         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5283         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5284         from here...
5285         * modules/euidaccess (configure.ac): ... to here.
5286
5287 2011-05-06  Bruno Haible  <bruno@clisp.org>
5288
5289         error: Move AC_LIBOBJ invocations to module description.
5290         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5291         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5292         invocations from here...
5293         * modules/error (configure.ac): ... to here.
5294
5295 2011-05-06  Bruno Haible  <bruno@clisp.org>
5296
5297         duplocale: Move AC_LIBOBJ invocations to module description.
5298         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5299         gl_PREREQ_DUPLOCALE invocations from here...
5300         * modules/duplocale (configure.ac): ... to here.
5301
5302 2011-05-05  Bruno Haible  <bruno@clisp.org>
5303
5304         dirfd: Move AC_LIBOBJ invocations to module description.
5305         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5306         gl_FUNC_DIRFD.
5307         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5308         here...
5309         * modules/dirfd (configure.ac): ... to here.
5310         (Depends-on): Fix condition.
5311
5312 2011-05-05  Bruno Haible  <bruno@clisp.org>
5313
5314         chown: Respect rules for use of AC_LIBOBJ.
5315         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5316         * modules/chown (configure.ac): ... to here.
5317
5318 2011-05-05  Bruno Haible  <bruno@clisp.org>
5319
5320         chdir-long: Move AC_LIBOBJ invocations to module description.
5321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5322         gl_PREREQ_CHDIR_LONG invocations from here...
5323         * modules/chdir-long (configure.ac): ... to here.
5324
5325 2011-05-05  Bruno Haible  <bruno@clisp.org>
5326
5327         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5328         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5329         from here...
5330         * modules/canonicalize-lgpl (configure.ac): ... to here.
5331
5332 2011-05-05  Bruno Haible  <bruno@clisp.org>
5333
5334         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5335         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5336         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5337         REPLACE_CALLOC.
5338         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5339         * modules/calloc-gnu (configure.ac): Likewise.
5340
5341 2011-05-05  Bruno Haible  <bruno@clisp.org>
5342
5343         btowc: Move AC_LIBOBJ invocations to module description.
5344         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5345         invocations from here...
5346         * modules/btowc (configure.ac): ... to here.
5347
5348 2011-05-21  Bruno Haible  <bruno@clisp.org>
5349
5350         atexit: Move AC_LIBOBJ invocations to module description.
5351         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5353         here...
5354         * modules/atexit (configure.ac): ... to here.
5355
5356 2011-05-05  Bruno Haible  <bruno@clisp.org>
5357
5358         atoll: Move AC_LIBOBJ invocations to module description.
5359         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5360         invocations from here...
5361         * modules/atoll (configure.ac): ... to here.
5362
5363 2011-05-05  Bruno Haible  <bruno@clisp.org>
5364
5365         argz: Move AC_LIBOBJ invocations to module description.
5366         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5367         * modules/argz (configure.ac): ... to here.
5368
5369 2011-05-05  Bruno Haible  <bruno@clisp.org>
5370
5371         alphasort: Move AC_LIBOBJ invocations to module description.
5372         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5373         gl_PREREQ_ALPHASORT invocations from here...
5374         * modules/alphasort (configure.ac): ... to here.
5375
5376 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5377
5378         verify: new macro verify_expr; verify_true deprecated
5379         * NEWS: Mention this.
5380         * doc/verify.texi (Compile-time Assertions): Document this.
5381         * lib/verify.h (verify_true): Deprecate.
5382         (verify_expr): New macro.
5383         * tests/test-verify.c (function): Test verify_expr.
5384
5385 2011-06-14  Jim Meyering  <meyering@redhat.com>
5386
5387         init.sh: give more portable redirection-related advice in a comment
5388         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5389         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5390         for lots of discussion.  Stefano Lattarini suggested the solution
5391         of putting "9>&2" after the command.  Reported by Bruno Haible.
5392
5393 2011-06-13  Bruno Haible  <bruno@clisp.org>
5394
5395         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5396         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5397         'none'.
5398
5399 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5400
5401         ftoastr: use strtof only if HAVE_STRTOF
5402         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5404         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5405         * modules/ftoastr (configure.ac): Check for strtof.
5406
5407 2011-06-13  Bruno Haible  <bruno@clisp.org>
5408
5409         gnulib-tool: Addendum to 2011-06-08 commit.
5410         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5411         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5412
5413 2011-06-13  Bruno Haible  <bruno@clisp.org>
5414
5415         fseeko: Provide a non-inline replacement of fseek().
5416         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5417         * modules/fseeko (Depends-on): Add fseek.
5418         * modules/fseek (License): Change to LGPLv2+.
5419
5420 2011-06-13  Bruno Haible  <bruno@clisp.org>
5421
5422         ftello: Provide a non-inline replacement of ftell().
5423         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5424         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5425         not have ftello() (such as on mingw).
5426         * modules/ftello (Depends-on): Add ftell.
5427         * modules/ftell (License): Change to LGPLv2+.
5428
5429 2011-05-07  Bruno Haible  <bruno@clisp.org>
5430
5431         ftell: Move AC_LIBOBJ invocations to module description.
5432         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5433         * modules/ftell (configure.ac): ... to here.
5434
5435 2011-05-07  Bruno Haible  <bruno@clisp.org>
5436
5437         ftello: Respect rules for use of AC_LIBOBJ.
5438         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5439         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5440         here...
5441         * modules/ftello (configure.ac): ... to here.
5442
5443 2011-05-07  Bruno Haible  <bruno@clisp.org>
5444
5445         fseeko: Simplify.
5446         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5447         (gl_FUNC_FSEEKO): Inline it here.
5448
5449 2011-05-07  Bruno Haible  <bruno@clisp.org>
5450
5451         fseek: Move AC_LIBOBJ invocations to module description.
5452         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5453         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5454         * modules/fseek (configure.ac): ... to here.
5455
5456 2011-05-07  Bruno Haible  <bruno@clisp.org>
5457
5458         fseek: Respect rules for use of AC_LIBOBJ.
5459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5460         here...
5461         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5462
5463 2011-05-07  Bruno Haible  <bruno@clisp.org>
5464
5465         fseeko: Respect rules for use of AC_LIBOBJ.
5466         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5467         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5468         here...
5469         * modules/fseeko (configure.ac): ... to here.
5470
5471 2011-06-13  Bruno Haible  <bruno@clisp.org>
5472
5473         gnulib-tool: Allow comments in the 'Depends-on' section.
5474         * doc/gnulib.texi (Module description): Mention comment syntax in the
5475         Depends-on section.
5476         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5477
5478 2011-06-13  Bruno Haible  <bruno@clisp.org>
5479
5480         file-set.h: guard __attibute__ use, now that it's not always defined
5481         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5482         versions that support it.  This fixes a coreutils build failure with
5483         the vendor cc on HP-UX 11.31.
5484
5485 2011-06-12  Bruno Haible  <bruno@clisp.org>
5486
5487         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5488         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5489         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5490         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5491         (acl, aclsort): New declarations.
5492         (aclv_nontrivial): New declaration.
5493         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5494         (file_has_acl): Read also the second kind of HP-UX ACLs.
5495         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5496         kind of HP-UX ACLs if the first kind fails.
5497         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5498         second kind of HP-UX ACLs.
5499         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5500         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5501         agree.
5502         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5503         hpuxjfs.
5504         Handle hpuxjfs.
5505         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5506         hpuxjfs.
5507         Handle hpuxjfs.
5508         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5509         (func_test_same_acls): Use both lsacl and getacl.
5510         Handle hpuxjfs.
5511         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5512         (func_test_same_acls): Use both lsacl and getacl.
5513         Handle hpuxjfs.
5514
5515 2011-06-12  Bruno Haible  <bruno@clisp.org>
5516
5517         acl: Complete the 2010-08-10 fix.
5518         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5519         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5520         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5521         explicitly.
5522         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5523         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5524
5525 2011-06-12  Bruno Haible  <bruno@clisp.org>
5526
5527         spawn-pipe tests: Comments.
5528         * tests/test-spawn-pipe-child.c (main): Update comment.
5529         Reported by James Youngman <jay@gnu.org>.
5530
5531 2011-06-11  James Youngman  <jay@gnu.org>
5532
5533         New module 'stat-size'.
5534         * modules/stat-size: New module.  Provides macros for accessing
5535         file size information in instances of struct stat.  Depends on the
5536         fileblocks module because it calls st_blocks.
5537         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5538         * doc/gnulib.texi: Include stat-size.texi.
5539         * doc/stat-size.texi: Documentation for this module.
5540         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5541         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5542         AC_STRUCT_ST_BLOCKS.
5543
5544 2011-06-09  Bruno Haible  <bruno@clisp.org>
5545
5546         thread: Support pthreads-win32.
5547         * lib/glthread/thread.h (gl_thread_self): Define differently on
5548         pthreads-win32.
5549         (gl_null_thread): New declaration.
5550         (gl_thread_self_pointer): New macro.
5551         * lib/glthread/thread.c (gl_null_thread): New constant.
5552         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5553         gl_thread_self.
5554         * tests/test-tls.c: Likewise.
5555         Suggested by Paul Eggert. Reported by Eric Blake.
5556
5557 2011-06-09  Bruno Haible  <bruno@clisp.org>
5558
5559         thread: Fix confusion between NULL and 0.
5560         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5561         Reported by Paul Eggert.
5562
5563 2011-06-09  Bruno Haible  <bruno@clisp.org>
5564
5565         spawn-pipe tests: Avoid test failure on HP-UX 11.
5566         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5567         is closed.
5568
5569 2011-06-09  Bruno Haible  <bruno@clisp.org>
5570
5571         acl tests: Fix compilation error on HP-UX 11.
5572         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5573
5574 2011-06-09  Bruno Haible  <bruno@clisp.org>
5575
5576         rmdir: Avoid test failure on HP-UX 10.20.
5577         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5578         EEXIST.
5579
5580 2011-06-08  Eric Blake  <eblake@redhat.com>
5581
5582         perror: fix test on mingw
5583         * modules/perror-tests (Depends-on): Add dup2.
5584
5585         strerror_r-posix: fix on MacOS
5586         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5587         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5588         logic bug.
5589         * lib/strerror_r.c (strerror_r): Fix the bug.
5590         * lib/strerror.c (strerror): Likewise.
5591         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5592         problem.
5593         * doc/posix-functions/strerror.texi (strerror): Likewise.
5594         * doc/posix-functions/perror.texi (perror): Likewise.
5595         * tests/test-strerror.c (main): Enhance test.
5596         * tests/test-strerror_r.c (main): Likewise.
5597
5598 2011-06-08  Bruno Haible  <bruno@clisp.org>
5599
5600         gnulib-tool: Better isolation between different gnulib-tool invocations.
5601         * gnulib-tool: New option --witness-c-macro.
5602         (witness_c_macro): New variable.
5603         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5604         AM_CPPFLAGS define it as a C macro.
5605         (func_emit_tests_Makefile_am): Likewise.
5606         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5607         read it from there.
5608         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5609         m4_define, not AC_DEFUN.
5610         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5611         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5612         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5613         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5614         s|...|...|, to substitute the values of the GNULIB_* module indicator
5615         variables.
5616         * modules/dirent (Makefile.am): Likewise.
5617         * modules/fcntl-h (Makefile.am): Likewise.
5618         * modules/iconv-h (Makefile.am): Likewise.
5619         * modules/langinfo (Makefile.am): Likewise.
5620         * modules/locale (Makefile.am): Likewise.
5621         * modules/math (Makefile.am): Likewise.
5622         * modules/netdb (Makefile.am): Likewise.
5623         * modules/poll-h (Makefile.am): Likewise.
5624         * modules/pty (Makefile.am): Likewise.
5625         * modules/search (Makefile.am): Likewise.
5626         * modules/signal (Makefile.am): Likewise.
5627         * modules/spawn (Makefile.am): Likewise.
5628         * modules/stdio (Makefile.am): Likewise.
5629         * modules/stdlib (Makefile.am): Likewise.
5630         * modules/string (Makefile.am): Likewise.
5631         * modules/sys_ioctl (Makefile.am): Likewise.
5632         * modules/sys_select (Makefile.am): Likewise.
5633         * modules/sys_socket (Makefile.am): Likewise.
5634         * modules/sys_stat (Makefile.am): Likewise.
5635         * modules/sys_times (Makefile.am): Likewise.
5636         * modules/sys_utsname (Makefile.am): Likewise.
5637         * modules/sys_wait (Makefile.am): Likewise.
5638         * modules/termios (Makefile.am): Likewise.
5639         * modules/time (Makefile.am): Likewise.
5640         * modules/unistd (Makefile.am): Likewise.
5641         * modules/wchar (Makefile.am): Likewise.
5642
5643 2011-06-08  Eric Blake  <eblake@redhat.com>
5644
5645         strerror: simplify replacement
5646         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5647         * modules/strerror (configure.ac): No prereqs needed here...
5648         * modules/strerror-override (configure.ac): ...but this needs it.
5649         (Files): Add file for needed prereq macro.
5650
5651 2011-06-08  Bruno Haible  <bruno@clisp.org>
5652
5653         strerror_r-posix: Tweaks.
5654         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5655         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5657         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5658         (gl_FUNC_STRERROR_R): ... to here.
5659         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5660
5661 2011-06-07  Eric Blake  <eblake@redhat.com>
5662
5663         perror: document fixed bugs
5664         * doc/posix-functions/perror.texi (perror): Document recent
5665         patches.
5666
5667 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5668
5669         stat-time: get_stat_birthtime failure is better-defined
5670         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5671         return a timestamp whose tv_sec and tv_nsec values are both -1.
5672         Previously, the spec said only that the tv_nsec value was negative.
5673         This upward-compatible change simplifies GNU tar a bit.
5674
5675 2011-06-07  Eric Blake  <eblake@redhat.com>
5676
5677         strerror_r-posix: work around cygwin 1.7.9
5678         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5679         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5680         bug without replacing strerror_r.
5681         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5682         strerror_r is buggy, but without requiring strerror_r compilation.
5683         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5684
5685         test-perror: relax test to ignore cygwin bug
5686         * tests/test-perror2.c (main): Relax test on requiring detection
5687         of stream errors, and use unbuffered stream.
5688         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5689         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5690         * doc/posix-functions/fputc.texi (fputc): Likewise.
5691         * doc/posix-functions/fputs.texi (fputs): Likewise.
5692         * doc/posix-functions/fputws.texi (fputws): Likewise.
5693         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5694         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5695         * doc/posix-functions/getopt.texi (getopt): Likewise.
5696         * doc/posix-functions/perror.texi (perror): Likewise.
5697         * doc/posix-functions/printf.texi (printf): Likewise.
5698         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5699         * doc/posix-functions/psignal.texi (psignal): Likewise.
5700         * doc/posix-functions/putc.texi (putc): Likewise.
5701         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5702         Likewise.
5703         * doc/posix-functions/putchar.texi (putchar): Likewise.
5704         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5705         Likewise.
5706         * doc/posix-functions/puts.texi (puts): Likewise.
5707         * doc/posix-functions/putwc.texi (putwc): Likewise.
5708         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5709         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5710         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5711         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5712         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5713         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5714         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5715         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5716
5717 2011-05-22  Bruno Haible  <bruno@clisp.org>
5718
5719         strerror: Move AC_LIBOBJ invocations to module description.
5720         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5721         gl_PREREQ_STRERROR invocations from here...
5722         * modules/strerror (configure.ac): ... to here.
5723
5724 2011-05-21  Bruno Haible  <bruno@clisp.org>
5725
5726         perror: Use common idiom.
5727         * modules/perror (configure.ac): Reorder statements.
5728
5729 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5730
5731         tests: fix usage message in 'mktempd_'
5732         * tests/init.sh (mktempd_): In the usage message, use literal
5733         'mktempd_', not '$ME' (which is even undefined), as the name of
5734         the subroutine.
5735
5736 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5737
5738         tests init: new function 'fatal_', for hard errors
5739         Before this patch, the only way offered by tests/init.sh to
5740         properly signal a hard error was the `framework_failure_'
5741         function.  But the error message issued by that function,
5742         as its name would suggest, refers to a set-up failure in the
5743         testsuite, while hard errors can obviously also be due to
5744         other reasons.  The best way to fix this inconsistency is to
5745         introduce a new function with a more general error message.
5746         * tests/init.sh (fatal_): New function.
5747
5748 2011-06-06  Eric Blake  <eblake@redhat.com>
5749
5750         canonicalize-lgpl: use common idiom
5751         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5752         over newer POSIX -Rf.
5753         Reported by Bruno Haible.
5754
5755         canonicalize-lgpl: work around AIX realpath bug
5756         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5757         * doc/posix-functions/realpath.texi (realpath): Document it.
5758         Reported by Bruno Haible.
5759
5760         strerror: work around FreeBSD bug
5761         * lib/strerror.c (strerror): Special case 0.
5762         Reported by Bruno Haible.
5763
5764         strerror-override: avoid bloating errno module
5765         * modules/errno (Files, configure.ac): Move replacement strings...
5766         * modules/strerror-override: ...to new module.
5767         * modules/strerror (Depends-on): Add strerror-override.
5768         * modules/strerror_r-posix (Depends-on): Likewise.
5769         * MODULES.html.sh: Document new module.
5770         Reported by Bruno Haible.
5771
5772 2011-06-06  Bruno Haible  <bruno@clisp.org>
5773
5774         spawn-pipe tests: Rename program.
5775         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5776         * tests/test-spawn-pipe-child.c: Update comment.
5777         * tests/test-spawn-pipe.sh: Update.
5778         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5779
5780         spawn-pipe tests: Link the child program only against libc.
5781         * tests/test-spawn-pipe-child.c: New file, extracted from
5782         tests/test-spawn-pipe.c.
5783         (main): Expect only one argument.
5784         (is_open): New function, copied from tests/test-pipe.c.
5785         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5786         (child_main): Remove function.
5787         (test_pipe): Pass only one argument to the child program.
5788         (main): Remove child process code. Expect the child program's name as
5789         first argument.
5790         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5791         argument.
5792         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5793         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5794         test-spawn-pipe-child against no libraries.
5795
5796 2011-06-06  Bruno Haible  <bruno@clisp.org>
5797
5798         careadlinkat: Avoid mismatch between ssize_t and int.
5799         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5800         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5801
5802 2011-06-06  Jim Meyering  <meyering@redhat.com>
5803
5804         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5805         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5806         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5807
5808 2011-06-05  Bruno Haible  <bruno@clisp.org>
5809
5810         ansi-c++-opt: Interoperability with libtool.
5811         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5812         set the variable to "no", not to ":".
5813         * NEWS: Mention the change.
5814
5815 2011-06-05  Bruno Haible  <bruno@clisp.org>
5816
5817         acl: Fix test failure on AIX 7.
5818         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5819         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5820
5821 2011-06-05  Bruno Haible  <bruno@clisp.org>
5822
5823         pipe-filter-ii: Fix test failure on AIX and IRIX.
5824         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5825         with EAGAIN, retry with a smaller buffer size.
5826
5827 2011-06-05  Bruno Haible  <bruno@clisp.org>
5828
5829         localename: Fix link dependencies.
5830         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5831         * modules/localename-tests (Makefile.am): Link test-localename with
5832         $(LIBTHREAD).
5833
5834 2011-06-05  Bruno Haible  <bruno@clisp.org>
5835
5836         error: Avoid gcc warning.
5837         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5838
5839 2011-06-05  Bruno Haible  <bruno@clisp.org>
5840
5841         unsetenv: Avoid gcc warning.
5842         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5843
5844 2011-06-05  Bruno Haible  <bruno@clisp.org>
5845
5846         setenv: Avoid gcc warning.
5847         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5848
5849 2011-06-05  Bruno Haible  <bruno@clisp.org>
5850
5851         sys_select: Ensure memset is declared also on AIX 7.
5852         * lib/sys_select.in.h: Include <string.h> also on AIX.
5853         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5854         self-contained also on AIX 7.1.
5855
5856 2011-06-04  Jim Meyering  <meyering@redhat.com>
5857
5858         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5859         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5860         function name, "error".
5861         (_gl_translatable_diag_func_re): New configurable variable.
5862
5863 2011-06-04  Bruno Haible  <bruno@clisp.org>
5864
5865         getopt: Avoid gcc warning.
5866         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5867
5868 2011-06-04  Bruno Haible  <bruno@clisp.org>
5869
5870         strerror_r: Fix comments.
5871         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5872         commit.
5873
5874 2011-06-04  Bruno Haible  <bruno@clisp.org>
5875
5876         perror: Fix compilation error.
5877         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5878         Undefine fprintf, not sprintf.
5879         * modules/perror (Depends-on): Remove intprops, verify.
5880
5881 2011-06-04  Bruno Haible  <bruno@clisp.org>
5882
5883         setlocale: Enable replacement on Cygwin 1.5.
5884         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5885         Cygwin 1.5.x.
5886         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5887         LC_CTYPE category also exists on Cygwin 1.5.x.
5888
5889 2011-06-04  Bruno Haible  <bruno@clisp.org>
5890
5891         strerror-override: Don't disable symbol renamings.
5892         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5893         * lib/strerror-override.c: Include config.h.
5894         (strerror_override): Don't undefine.
5895
5896 2011-06-03  Bruno Haible  <bruno@clisp.org>
5897
5898         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5899         * lib/localename.h: Update copyright header.
5900         * lib/localename.c: Likewise.
5901         * lib/relocatable.h: Likewise.
5902         * lib/relocatable.c: Likewise.
5903
5904 2011-06-02  Bruno Haible  <bruno@clisp.org>
5905
5906         doc: Fix a module name.
5907         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5908
5909 2011-06-02  Bruno Haible  <bruno@clisp.org>
5910
5911         pipe2: Remove dependency on 'nonblocking' module.
5912         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5913         O_NONBLOCK is defined by gnulib.
5914         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5915         is zero.
5916         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5917         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5918         defined by gnulib.
5919         (get_nonblocking_flag): New function.
5920         (main): Test O_NONBLOCK flag only if it is nonzero.
5921         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5922
5923 2011-06-03  Jim Meyering  <meyering@redhat.com>
5924
5925         maint: three new prohibit-header-without-use rules
5926         Prohibit use of cloexec.h, posixver.h, same.h without use.
5927         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5928         (sc_prohibit_posixver_without_use): Likewise.
5929         (sc_prohibit_same_without_use): Likewise.
5930
5931 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         allocator: 'die' routine is now given requested size
5934         * lib/allocator.h (struct allocator.die): New size arg.
5935         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5936         If the actual problem is an ssize_t limitation, not a size_t or
5937         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5938
5939 2011-06-01  Eric Blake  <eblake@redhat.com>
5940
5941         strerror: drop strerror_r dependency
5942         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5943         * lib/strerror-override.c (strerror_override): ...to new file.
5944         * lib/strerror-override.h: Add prototype.
5945         * lib/strerror-impl.h: Delete.
5946         * lib/strerror.c (strerror): New implementation.
5947         * modules/errno (Files): Add new files.
5948         (configure.ac): Compile new file as appropriate.
5949         * modules/strerror (Files): Drop unused file.
5950         (Depends-on): Drop strerror_r-posix.
5951         * MODULES.html.sh: Document strerror_r-posix.
5952         Requested by Sam Steingold.
5953
5954         perror: call strerror_r directly
5955         * modules/perror (Files): Drop strerror-impl.h.
5956         * lib/perror.c (perror): Use our own stack buffer, rather than
5957         calling a wrapper that uses static storage.
5958         * doc/posix-functions/perror.texi (perror): Document a limitation
5959         of our replacement.
5960
5961         strerror_r: fix includes for FreeBSD
5962         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5963         since we use abort on some platforms.
5964         Reported by Matthias Bolte.
5965
5966 2011-05-31  Bruno Haible  <bruno@clisp.org>
5967
5968         Fix link errors in tests: openat-die uses gettext-h.
5969         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5970         against $(LIBINTL).
5971         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5972         against $(LIBINTL).
5973         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5974         $(LIBINTL).
5975         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5976         against $(LIBINTL).
5977         * modules/linkat-tests (Makefile.am): Link test-linkat against
5978         $(LIBINTL).
5979         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5980         $(LIBINTL).
5981         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5982         against $(LIBINTL).
5983         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5984         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5985         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5986         $(LIBINTL).
5987         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5988         $(LIBINTL).
5989         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5990         $(LIBINTL).
5991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5992
5993 2011-05-31  Bruno Haible  <bruno@clisp.org>
5994
5995         Fix link errors in tests: wait-process uses gettext-h.
5996         * modules/nonblocking-pipe-tests (Makefile.am): Set
5997         test_nonblocking_pipe_main_LDADD.
5998         * modules/nonblocking-socket-tests (Makefile.am): Link
5999         test-nonblocking-socket-main against $(LIBINTL).
6000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6001
6002 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6003
6004         assert-h: work around 'verify' incompatibility
6005         * lib/verify.h: Use @...@ directives, not ifdef.
6006         * modules/assert-h (assert.h): Implement the directives.
6007         (assert.h): Substitute the symbol-prefix more consistently.
6008
6009 2011-05-29  Jim Meyering  <meyering@redhat.com>
6010
6011         trim: remove three superfluous assignments
6012         * lib/trim.c (trim2): Remove three superfluous assignments
6013         and correct brace positioning.
6014
6015 2011-05-29  Bruno Haible  <bruno@clisp.org>
6016
6017         wctype-h: Avoid namespace pollution on Solaris 2.6.
6018         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6019         identifiers.
6020         * doc/posix-headers/wctype.texi: Mention the problem.
6021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6022
6023 2011-05-28  Jim Meyering  <meyering@redhat.com>
6024
6025         parse-datetime.y: accommodate -Wstrict-overflow
6026         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6027         placate -Wstrict-overflow.
6028
6029         trim: avoid a warning from -O2 -Wstrict-overflow
6030         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6031
6032 2011-05-29  Bruno Haible  <bruno@clisp.org>
6033
6034         gnulib-tool: Fix bug in yesterday's commit.
6035         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6036         twice.
6037
6038 2011-05-29  Bruno Haible  <bruno@clisp.org>
6039
6040         Allow multiple gnulib generated include files to be combined.
6041         * gnulib-tool (func_compute_include_guard_prefix): New function.
6042         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6043         ${gl_include_guard_prefix} references.
6044         (func_import, func_create_testdir): Invoke
6045         func_compute_include_guard_prefix.
6046         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6047         * lib/ctype.in.h: Likewise.
6048         * lib/dirent.in.h: Likewise.
6049         * lib/errno.in.h: Likewise.
6050         * lib/fcntl.in.h: Likewise.
6051         * lib/float.in.h: Likewise.
6052         * lib/getopt.in.h: Likewise.
6053         * lib/iconv.in.h: Likewise.
6054         * lib/langinfo.in.h: Likewise.
6055         * lib/locale.in.h: Likewise.
6056         * lib/math.in.h: Likewise.
6057         * lib/netdb.in.h: Likewise.
6058         * lib/netinet_in.in.h: Likewise.
6059         * lib/poll.in.h: Likewise.
6060         * lib/pthread.in.h: Likewise.
6061         * lib/pty.in.h: Likewise.
6062         * lib/sched.in.h: Likewise.
6063         * lib/se-selinux.in.h: Likewise.
6064         * lib/search.in.h: Likewise.
6065         * lib/signal.in.h: Likewise.
6066         * lib/spawn.in.h: Likewise.
6067         * lib/stdarg.in.h: Likewise.
6068         * lib/stddef.in.h: Likewise.
6069         * lib/stdint.in.h: Likewise.
6070         * lib/stdio.in.h: Likewise.
6071         * lib/stdlib.in.h: Likewise.
6072         * lib/string.in.h: Likewise.
6073         * lib/strings.in.h: Likewise.
6074         * lib/sys_file.in.h: Likewise.
6075         * lib/sys_ioctl.in.h: Likewise.
6076         * lib/sys_select.in.h: Likewise.
6077         * lib/sys_socket.in.h: Likewise.
6078         * lib/sys_stat.in.h: Likewise.
6079         * lib/sys_time.in.h: Likewise.
6080         * lib/sys_times.in.h: Likewise.
6081         * lib/sys_uio.in.h: Likewise.
6082         * lib/sys_utsname.in.h: Likewise.
6083         * lib/sys_wait.in.h: Likewise.
6084         * lib/sysexits.in.h: Likewise.
6085         * lib/termios.in.h: Likewise.
6086         * lib/time.in.h: Likewise.
6087         * lib/unistd.in.h: Likewise.
6088         * lib/wchar.in.h: Likewise.
6089         * lib/wctype.in.h: Likewise.
6090         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6091         * modules/ctype (Makefile.am): Likewise.
6092         * modules/dirent (Makefile.am): Likewise.
6093         * modules/errno (Makefile.am): Likewise.
6094         * modules/fcntl-h (Makefile.am): Likewise.
6095         * modules/float (Makefile.am): Likewise.
6096         * modules/getopt-posix (Makefile.am): Likewise.
6097         * modules/iconv-h (Makefile.am): Likewise.
6098         * modules/langinfo (Makefile.am): Likewise.
6099         * modules/locale (Makefile.am): Likewise.
6100         * modules/math (Makefile.am): Likewise.
6101         * modules/netdb (Makefile.am): Likewise.
6102         * modules/netinet_in (Makefile.am): Likewise.
6103         * modules/poll-h (Makefile.am): Likewise.
6104         * modules/pthread (Makefile.am): Likewise.
6105         * modules/pty (Makefile.am): Likewise.
6106         * modules/sched (Makefile.am): Likewise.
6107         * modules/search (Makefile.am): Likewise.
6108         * modules/selinux-h (Makefile.am): Likewise.
6109         * modules/signal (Makefile.am): Likewise.
6110         * modules/spawn (Makefile.am): Likewise.
6111         * modules/stdarg (Makefile.am): Likewise.
6112         * modules/stddef (Makefile.am): Likewise.
6113         * modules/stdint (Makefile.am): Likewise.
6114         * modules/stdio (Makefile.am): Likewise.
6115         * modules/stdlib (Makefile.am): Likewise.
6116         * modules/string (Makefile.am): Likewise.
6117         * modules/strings (Makefile.am): Likewise.
6118         * modules/sys_file (Makefile.am): Likewise.
6119         * modules/sys_ioctl (Makefile.am): Likewise.
6120         * modules/sys_select (Makefile.am): Likewise.
6121         * modules/sys_socket (Makefile.am): Likewise.
6122         * modules/sys_stat (Makefile.am): Likewise.
6123         * modules/sys_time (Makefile.am): Likewise.
6124         * modules/sys_times (Makefile.am): Likewise.
6125         * modules/sys_uio (Makefile.am): Likewise.
6126         * modules/sys_utsname (Makefile.am): Likewise.
6127         * modules/sys_wait (Makefile.am): Likewise.
6128         * modules/sysexits (Makefile.am): Likewise.
6129         * modules/termios (Makefile.am): Likewise.
6130         * modules/time (Makefile.am): Likewise.
6131         * modules/unistd (Makefile.am): Likewise.
6132         * modules/wchar (Makefile.am): Likewise.
6133         * modules/wctype-h (Makefile.am): Likewise.
6134         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6135
6136 2011-05-29  Bruno Haible  <bruno@clisp.org>
6137
6138         assert-h: Allow multiple gnulib generated replacements to coexist.
6139         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6140
6141 2011-05-29  Bruno Haible  <bruno@clisp.org>
6142
6143         argp: Allow coexistence with strerror_r-posix module.
6144         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6145         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6146         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6147         not the glibc signature.
6148
6149 2011-05-28  Bruno Haible  <bruno@clisp.org>
6150
6151         gnulib-tool: Alternative structure of testdirs, similar to --import.
6152         * gnulib-tool: New option --single-configure.
6153         (func_usage): Document it.
6154         (single_configure): New variable.
6155         (func_modules_transitive_closure_separately,
6156         func_modules_transitive_closure_separately,
6157         func_determine_use_libtests, func_modules_add_dummy_separately,
6158         func_modules_to_filelist_separately): New functions, extracted from
6159         func_import.
6160         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6161         (func_import): Use the new functions.
6162         (func_create_testdir): Set final_modules. Handle $single_configure =
6163         true case.
6164
6165 2011-05-28  Bruno Haible  <bruno@clisp.org>
6166
6167         getloadavg: Remove an unreliable safety check.
6168         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6169         getloadavg.c is in place.
6170         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6171         Reported by Sam Steingold <sds@gnu.org>.
6172
6173 2011-05-28  Bruno Haible  <bruno@clisp.org>
6174
6175         doc: Cleanup yet another file produced by texinfo.tex.
6176         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6177
6178 2011-05-28  Bruno Haible  <bruno@clisp.org>
6179
6180         Finish the conditional dependencies mechanism.
6181         * gnulib-tool: New option --no-conditional-dependencies.
6182         (func_usage): Document it. Don't mark --conditional-dependencies as
6183         experimental.
6184         (cond_dependencies): The possible values can now be true, false, empty.
6185         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6186         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6187         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6188
6189 2011-05-28  Bruno Haible  <bruno@clisp.org>
6190
6191         doc: Use a recent texinfo.tex.
6192         * doc/Makefile (tex_opts): New variable.
6193         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6194
6195 2011-05-28  Jim Meyering  <meyering@redhat.com>
6196
6197         intprops.h: adjust comment to match code change
6198         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6199         only once, it *may* have side effects.  Also fix an unrelated typo.
6200         (_GL_INT_SIGNED): Likewise.
6201
6202 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6203
6204         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6205
6206 2011-05-26  Bruno Haible  <bruno@clisp.org>
6207
6208         mbsrchr: Avoid collision with system function on Interix.
6209         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6210         Reported by Markus Duft <mduft@gentoo.org>.
6211
6212 2011-05-15  James Youngman  <jay@gnu.org>
6213
6214         getopt: for ambiguous options, enumerate the possibilities.
6215         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6216         the ambiguous options when an ambiguous prefix is given. This was
6217         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6218         glibc change was
6219         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6220
6221 2011-05-25  Eric Blake  <eblake@redhat.com>
6222
6223         getcwd: work around mingw bug
6224         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6225         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6226         Reported by Matthias Bolte.
6227
6228 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6229
6230         test-intprops: disable -Wtype-limits diagnostics
6231         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6232         diagnostics.  Otherwise, the integer overflow macros generate many
6233         diagnostics.  Reported by Jim Meyering in
6234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6235
6236         intprops: shorten, to pacify gcc -Woverlength-strings
6237         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6238         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6239         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6240         likely to run afoul of C compiler limits for string constant lengths.
6241         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6242
6243 2011-05-24  Eric Blake  <eblake@redhat.com>
6244
6245         docs: document recently fixed glibc printf bug
6246         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6247         * doc/posix-functions/printf.texi (printf): Likewise.
6248         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6249         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6250
6251         closein-tests: convert to init.sh
6252         * modules/closein-tests (Files): Add init.sh
6253         * tests/test-closein.sh Use it.
6254
6255         yesno-tests: convert to init.sh
6256         * modules/yesno-tests (Files): Add init.sh.
6257         * tests/test-yesno.sh: Use it.
6258
6259         atexit-tests: ensure reliable exit status
6260         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6261         Reported by Bruno Haible.
6262
6263 2011-05-24  Bruno Haible  <bruno@clisp.org>
6264
6265         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6267         gl_PREREQ_STRERROR_R invocations from here...
6268         * modules/strerror_r-posix (configure.ac): ... to here.
6269
6270 2011-05-24  Eric Blake  <eblake@redhat.com>
6271
6272         strerror_r: fix missing header
6273         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6274
6275         strerror_r: fix AIX test failures
6276         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6277         ERANGE failure.
6278
6279         strerror_r: fix Solaris test failures
6280         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6281         failures.
6282         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6283
6284         strerror_r: enforce POSIX recommendations
6285         * lib/strerror_r.c (safe_copy): New helper method.
6286         (strerror_r): Guarantee a non-empty string.
6287         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6288         recent POSIX rulings and to match our strerror guarantees.
6289         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6290
6291 2011-05-24  Jim Meyering  <meyering@redhat.com>
6292
6293         test-perror2.c: avoid warning about unused variable
6294         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6295
6296 2011-05-24  Eric Blake  <eblake@redhat.com>
6297
6298         perror: avoid spurious test failure on HP-UX
6299         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6300
6301         tests: fix logic bug in init.sh
6302         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6303         shell.
6304
6305 2011-05-24  Jim Meyering  <meyering@redhat.com>
6306
6307         utimensat: do not reference an out-of-scope buffer
6308         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6309         declared in an inner scope, yet "times" would be dereferenced outside
6310         the scope in which "ts" was valid.
6311         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6312         of ts[2] "out/up", so that the use of aliased "times" (via
6313         "times = ts;") does not end up referencing an out-of-scope "ts"
6314
6315         opendir-safer.c: don't clobber errno; don't close negative FD
6316         * lib/opendir-safer.c (opendir_safer):
6317         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6318         file descriptor, and more importantly, don't clobber the
6319         offending errno value with EINVAL.  Before, upon failure
6320         of dup_safer, we would pass the negative file descriptor to
6321         fdopendir, which would clobber errno.
6322
6323 2011-05-23  Bruno Haible  <bruno@clisp.org>
6324
6325         idcache: Fix module description.
6326         * modules/idcache (Include): Set to "idcache.h".
6327
6328 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6329
6330         gnulib-tool: fix portability problem with MacOS sed
6331         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6332         before the "}".  Problem reported by Leo in
6333         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6334         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6335         sed_extract_condition1, sed_extract_condition2.
6336
6337 2011-05-23  Bruno Haible  <bruno@clisp.org>
6338
6339         hash: Simplify autoconf macro.
6340         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6341
6342 2011-05-23  Bruno Haible  <bruno@clisp.org>
6343
6344         getugroups: Fix module description.
6345         * modules/getugroups (Include): Set to "getugroups.h".
6346
6347 2011-05-23  Bruno Haible  <bruno@clisp.org>
6348
6349         linkat: Simplify autoconf macro.
6350         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6351
6352 2011-05-23  Bruno Haible  <bruno@clisp.org>
6353             Eric Blake  <eblake@redhat.com>
6354
6355         linkat, renameat: Update dependencies.
6356         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6357         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6358         symlinkat.
6359
6360 2011-05-23  Jim Meyering  <meyering@redhat.com>
6361
6362         maint.mk: more tight_scope improvements
6363         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6364         (_gl_TS_headers): Define only in if-0'd block.
6365         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6366         sometimes we must *not* use it.  Adjust uses accordingly.
6367         (sc_tight_scope): Use much simpler grep-based test to determine
6368         whether we skip this rule.
6369
6370         maint.mk: generalize/improve the tight-scope rule
6371         * top/maint.mk: Emit a warning when the test is skipped.
6372         (_gl_TS_dir): Add $(srcdir)/ prefix.
6373         (_gl_TS_function_match): Simplify, rather than trying
6374         to enumerate common types.  Otherwise, it would fail to match an
6375         "extern unsigned char const *" declaration in idutils.
6376         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6377         a way to support use of that type of macro.
6378         (_gl_TS_var_match): Simplify regexp.
6379         (_gl_TS_obj_files): New configurable variable.
6380         (_gl_TS_headers): Likewise.
6381
6382 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6383
6384         verify: fix bug when gnulib <assert.h> is also included
6385         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6386         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6387         Perhaps there's a better way, but this fixes the immediate problem.
6388         Problem reported by Bruno Haible in
6389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6390
6391 2011-05-22  Bruno Haible  <bruno@clisp.org>
6392
6393         xgetcwd: Simplify autoconf macro.
6394         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6395
6396 2011-05-22  Bruno Haible  <bruno@clisp.org>
6397
6398         New module 'mktime-internal'.
6399         * modules/mktime-internal: New file.
6400         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6401         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6402         mktime_internal as a C macro if libc has __mktime_internal.
6403         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6404         conditions.
6405         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6406
6407 2011-05-22  Bruno Haible  <bruno@clisp.org>
6408
6409         timegm: Correct mktime replacement statements.
6410         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6411         defining mktime as a C macro. This completes a 2009-07-28 commit.
6412
6413 2011-05-22  Bruno Haible  <bruno@clisp.org>
6414
6415         timegm: Simplify autoconf macro.
6416         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6417
6418 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6419
6420         clock-time: change to LGPLv2+.
6421         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6422         BSD-like but we have no mark for that; this is good enough for now.
6423
6424 2011-05-21  Bruno Haible  <bruno@clisp.org>
6425
6426         strerror_r: Fix comments.
6427         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6428
6429 2011-05-21  Bruno Haible  <bruno@clisp.org>
6430
6431         relocatable-prog-wrapper: Fix possible link error.
6432         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6433         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6434         (gl_FUNC_SETENV): ... to here.
6435         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6436         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6437
6438 2011-05-21  Bruno Haible  <bruno@clisp.org>
6439
6440         relocatable-prog-wrapper: Assume strerror() exists.
6441         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6442         m4/strerror.m4.
6443         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6444         * lib/relocwrapper.c: Remove mention of strerror module.
6445         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6447         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6448         C macro.
6449
6450 2011-05-21  Bruno Haible  <bruno@clisp.org>
6451
6452         select: Simplify replacement idiom.
6453         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6454         Win32 platforms.
6455         * lib/sys_select.in.h (select): Simplify accordingly.
6456         * modules/select (Depends-on): Likewise.
6457
6458 2011-05-21  Bruno Haible  <bruno@clisp.org>
6459
6460         mkdir-p: Simplify autoconf macro.
6461         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6462         gl_FUNC_LCHOWN.
6463
6464 2011-05-21  Eric Blake  <eblake@redhat.com>
6465
6466         strerror_r: avoid clobbering strerror on cygwin
6467         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6468         fall back instead to sys_errlist.
6469         * modules/strerror (configure.ac): Add witness.
6470         * tests/test-strerror_r.c (main): Enhance test.
6471         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6472         * tests/test-perror2.c (main): Free memory before exit.
6473
6474 2011-05-21  Bruno Haible  <bruno@clisp.org>
6475
6476         mkdtemp: Use gnulib naming conventions.
6477         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6478         * modules/mkdtemp (configure.ac): Update.
6479
6480 2011-05-20  Eric Blake  <eblake@redhat.com>
6481
6482         strerror_r: avoid corrupting errno on Solaris
6483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6484         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6485
6486         strerror_r: avoid compiler warning
6487         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6488
6489         strerror_r: simplify AIX code
6490         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6491
6492         test-perror: avoid spurious failure on FreeBSD
6493         * modules/perror-tests (Depends-on): Add strerror, now that
6494         strerror_r no longer pulls it in.
6495
6496 2011-05-20  Bruno Haible  <bruno@clisp.org>
6497
6498         strerror_r-posix: Remove unused dependencies.
6499         * modules/strerror_r-posix (Depends-on): Remove strerror.
6500         Reported by Eric Blake.
6501
6502 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6503
6504         intprops: remove assumption about A|B representation
6505         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6506         is a valid integer if both A and B are.  Although this is true for
6507         all known practical hosts, the C standard doesn't guarantee it,
6508         and the code need not assume it.  Also, this change may work around
6509         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6511
6512 2011-05-20  Eric Blake  <eblake@redhat.com>
6513
6514         perror: work around FreeBSD bug
6515         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6516         is broken.  Move AC_LIBOBJ...
6517         * modules/perror (configure.ac): Here.
6518         * doc/posix-functions/perror.texi (perror): Document this.
6519         * tests/test-perror2.c (main): Enhance test.
6520
6521         test-perror: check for strerror interactions
6522         * tests/macros.h (STREQ): Add macro.
6523         * modules/perror-tests (Files): Add second test.
6524         * tests/test-perror2.c (main): New file.
6525         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6526
6527         test-perror: rewrite to use init script
6528         * modules/perror-tests (Files): Add init.sh.
6529         * tests/test-perror.sh: Use temporary directory.
6530
6531 2011-05-20  Jim Meyering  <meyering@redhat.com>
6532
6533         maint: replace misused "a" with "an"
6534         * doc/intprops.texi: "a integer"
6535         * doc/regex.texi: "a explanation"
6536         * lib/alignof.h: "a object"
6537         * lib/argmatch.h: "a explanation"
6538         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6539         * lib/stdint.in.h: "a integer"
6540         * lib/userspec.c: "a owner"
6541         * doc/gnulib.texi: Fix "a idea", and reword.
6542
6543 2011-05-19  Jim Meyering  <meyering@redhat.com>
6544
6545         maint: correct misuse of "a" and "an"
6546         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6547         * lib/argp-help.c: "an docum...": s/an/a/
6548         * lib/argp-parse.c: "An vector": s/An/A/
6549         * lib/execute.c: "an native": s/an/a/
6550         * lib/spawn-pipe.c: Likewise.
6551         * lib/gc.h: "an Gc_rc": s/an/a/
6552         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6553         * lib/fts.c: "an stat.st_dev": s/an/a/
6554
6555 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6556
6557         intprops-tests: work around HP-UX 11.23 cc bug with constants
6558         * tests/test-intprops.c (VERIFY): New macro.
6559         (main): Use it, instead of verify, to work around the compiler bug; see
6560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6561
6562         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6563         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6564         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6565         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6566         (_GL_REMAINDER_OVERFLOW): Use it.
6567
6568         intprops-tests: revert unsigned part of previous change
6569         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6570         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6571         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6573
6574 2011-05-19  Bruno Haible  <bruno@clisp.org>
6575
6576         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6577         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6578         strerror_r() returned without filling the buffer.
6579         Reported by Eric Blake.
6580
6581 2011-05-19  Eric Blake  <eblake@redhat.com>
6582
6583         strerror_r: guarantee unchanged errno
6584         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6585         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6586         failure.
6587         * tests/test-strerror_r.c (main): Enhance test.
6588
6589 2011-05-19  Bruno Haible  <bruno@clisp.org>
6590
6591         strerror_r: Reorder #if blocks.
6592         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6593         for consistency with the previous commit.
6594
6595 2011-05-19  Bruno Haible  <bruno@clisp.org>
6596
6597         perror: Avoid clobbering the strerror buffer when possible.
6598         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6599         * lib/strerror.c: Include it.
6600         * modules/strerror (Files): Add lib/strerror-impl.h.
6601         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6602         (my_strerror): New function, defined through lib/strerror-impl.h.
6603         (perror): Use it instead of strerror.
6604         * modules/perror (Files): Add lib/strerror-impl.h.
6605         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6606
6607 2011-05-19  Eric Blake  <eblake@redhat.com>
6608
6609         strerror_r: fix on newer cygwin
6610         * lib/strerror_r.c (strerror_r): Cygwin now has
6611         __xpg_strerror_r, use it.
6612
6613 2011-05-19  Bruno Haible  <bruno@clisp.org>
6614
6615         strerror_r: Avoid clobbering the strerror buffer when possible.
6616         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6617         (sys_nerr, sys_errlist): New declarations.
6618         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6619         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6620         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6621
6622 2011-05-19  Bruno Haible  <bruno@clisp.org>
6623
6624         strerror_r: Fix test failure on mingw.
6625         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6626         EXTEND_STRERROR_R.
6627         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6628         macros from errno.in.h instead.
6629
6630 2011-05-19  Eric Blake  <eblake@redhat.com>
6631
6632         strerror: relax test for Solaris
6633         * tests/test-strerror.c (main): Permit Solaris behavior.
6634         * tests/test-strerror_r.c (main): Likewise.
6635
6636         strerror: enforce POSIX ruling on strerror(0)
6637         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6639         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6640         * doc/posix-functions/strerror.texi (strerror): Document it.
6641         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6642         * tests/test-strerror.c (main): Strengthen test.
6643         * tests/test-strerror_r.c (main): Likewise.
6644
6645 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6646
6647         intprop-tests: port to older and more-pedantic compilers
6648         * modules/intprops-tests (Files): Add tests/macros.h.
6649         * tests/test-intprops.c: Include macros.h.
6650         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6651         it's no longer documented to expand to an integer constant expression.
6652         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6653         argument is floating point, as it's no longer documented to expand
6654         to an integer constant expression in that case.
6655         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6656         compiler bugs reported by Bruno Haible.  See
6657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6658         (U0, U1): New constants, to work around the same bugs.  Also,
6659         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6660
6661         intprops: work around C compiler bugs
6662         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6663         bug in Sun C 5.11 2010/08/13 and other compilers; see
6664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6665
6666         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6667         * doc/intprops.texi (Integer Type Determination): Fix
6668         documentation for TYPE_IS_INTEGER: it returns an constant
6669         expression, not an integer constant expression.  Fix doc for
6670         TYPE_SIGNED: it returns an integer constant expression only if its
6671         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6672         hardly worth documented that way....)
6673
6674 2011-05-18  Bruno Haible  <bruno@clisp.org>
6675
6676         strerror_r: Avoid clobbering the strerror buffer when possible.
6677         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6678         Handle gnulib defined errno values here. When strerror() returns NULL
6679         or an empty string, return EINVAL.
6680         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6681         gnulib defined errno values here.
6682         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6683
6684 2011-05-18  Eric Blake  <eblake@redhat.com>
6685
6686         fnmatch: avoid compiler warning
6687         * lib/fnmatch_loop.c (FCT): Use correct type.
6688         Reported by Matthias Bolte.
6689
6690 2011-05-13  Jim Meyering  <meyering@redhat.com>
6691
6692         maint.mk: three new prohibit_<HDR>_without_use rules
6693         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6694         (sc_prohibit_stdio-safer_without_use): Likewise.
6695         (sc_prohibit_xfreopen_without_use): Likewise.
6696
6697 2011-05-17  Jim Meyering  <meyering@redhat.com>
6698
6699         announce-gen: fail if the NEWS delta is empty
6700         If there's nothing noteworthy in NEWS, then either you forgot
6701         or you shouldn't be releasing.
6702         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6703
6704 2011-05-17  Pádraig Brady <P@draigBrady.com>
6705
6706         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6707         reserved symbols starting with double underscore from the check.
6708
6709 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6710
6711         intprops: add doc
6712         * doc/intprops.texi: New file, documenting intprops.
6713         * doc/gnulib.texi (Particular Modules): Include it.
6714
6715         verify: add doc to gnulib manual and fix example
6716         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6717         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6718         (Compile-time Assertions): Fix example so it can't overflow.
6719
6720 2011-05-17  Jim Meyering  <meyering@redhat.com>
6721
6722         warnings.m4: don't usurp save_CPPFLAGS variable name
6723         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6724
6725         doc: fix typo
6726         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6727
6728 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6729             Bruno Haible  <bruno@clisp.org>
6730
6731         doc: Tweak recent change.
6732         * README (Portability guidelines): Tweak new text.
6733         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6734         Interix 6.1.
6735
6736 2011-05-16  Eric Blake  <eblake@redhat.com>
6737
6738         inttypes: avoid autoconf warning
6739         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6740         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6741
6742 2011-05-16  Sam Steingold <sds@gnu.org>
6743         and Eric Blake  <eblake@redhat.com>
6744
6745         vc-list-files: accept multiple directory operands
6746         * build-aux/vc-list-files: Iterate over all remaining operands.
6747
6748 2011-05-16  Bruno Haible  <bruno@clisp.org>
6749
6750         Fix confusion regarding deprecated modules.
6751         * modules/calloc (Status, Notice): Mark module as deprecated, not
6752         obsolete.
6753         * modules/fnmatch-posix (Status, Notice): Likewise.
6754         * modules/getdate (Status, Notice): Likewise.
6755         * modules/getopt (Status, Notice): Likewise.
6756         * modules/malloc (Status, Notice): Likewise.
6757         * modules/pipe (Status, Notice): Likewise.
6758         * modules/realloc (Status, Notice): Likewise.
6759         * modules/rename-dest-slash (Status, Notice): Likewise.
6760         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6761         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6762         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6763         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6764         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6765
6766 2011-05-16  Bruno Haible  <bruno@clisp.org>
6767
6768         doc: List the target platforms.
6769         * doc/gnulib-intro.texi (Target Platforms): New section.
6770         * doc/gnulib.texi (Introduction): Update menu.
6771         * README (Portability guidelines): Refer to the new section. Update
6772         statement about oldest supported environment. Remove rationale why
6773         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6774         unportable C89 function.
6775         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6776         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6777
6778 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6779
6780         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6781
6782 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6783
6784         intprops-tests: new module
6785         * modules/intprops-tests, tests/test-intprops.c: New files.
6786
6787         intprops: add safe, portable integer overflow checking
6788         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6789         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6790         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6791         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6792         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6793         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6794         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6795         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6796         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6797         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6798         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6799
6800 2011-05-12  James Youngman  <jay@gnu.org>
6801
6802         Add a test for glibc's Bugzilla bug #12378.
6803         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6804         doesn't allow the literal matching of a lone "[" (which is
6805         required by POSIX).
6806         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6807
6808 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6809
6810         Sync glibc change fixing Bugzilla bug #12378.
6811         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6812         beginning and fall back to matching as normal character if the
6813         string ends before the matching ']' is found.  This is what POSIX
6814         requires.
6815
6816 2011-05-13  Eric Blake  <eblake@redhat.com>
6817
6818         getcwd-lgpl: relax test for FreeBSD
6819         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6820         issue.
6821         * tests/test-getcwd-lgpl.c (main): Relax test.
6822         Reported by Matthias Bolte.
6823
6824 2011-05-11  Eric Blake  <eblake@redhat.com>
6825
6826         test-fflush: silence compiler warning
6827         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6828
6829 2011-05-11  Bruno Haible  <bruno@clisp.org>
6830
6831         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6832         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6833         * modules/canonicalize (Depends-on): Add 'nocrash'.
6834         * modules/canonicalize-lgpl (Depends-on): Likewise.
6835         * doc/posix-functions/realpath.texi: Update platforms list.
6836         Reported by Ryan Schmidt <ryandesign@macports.org>.
6837
6838 2011-05-11  Bruno Haible  <bruno@clisp.org>
6839
6840         group-member: Declare function in <unistd.h>.
6841         * lib/unistd.in.h (group_member): New declaration.
6842         * lib/group-member.h: Remove file.
6843         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6844         * tests/test-unistd-c++.cc: Check signature of group_member.
6845         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6846         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6847         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6848         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6849         HAVE_GROUP_MEMBER.
6850         * modules/group-member (Files): Remove lib/group-member.h.
6851         (Depends-on): Add unistd. Specify conditions.
6852         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6853         (Include): Change to <unistd.h>.
6854         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6855         HAVE_GROUP_MEMBER.
6856         * NEWS: Mention the change.
6857         * lib/euidaccess.c: Don't include group-member.h.
6858
6859 2011-05-11  Bruno Haible  <bruno@clisp.org>
6860
6861         group-member: Document module.
6862         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6863         module.
6864
6865 2011-05-11  Bruno Haible  <bruno@clisp.org>
6866
6867         fclose: Fix mistake earlier today.
6868         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6869
6870 2011-05-11  Eric Blake  <eblake@redhat.com>
6871
6872         fclose: preserve fflush errors
6873         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6874         Reported by Jim Meyering.
6875
6876         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6877         * build-aux/bootstrap (check_versions): When no specific version
6878         is required, merely check that the app produces an exit status
6879         that indicates its existence.
6880
6881         maint.mk: drop redundant check
6882         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6883         the same but better.
6884
6885 2011-05-11  Bruno Haible  <bruno@clisp.org>
6886
6887         fclose: Fix possible link error.
6888         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6889         unregister_shadow_fd. Improve comments.
6890         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6891         Eric Blake.
6892
6893 2011-05-11  Jim Meyering  <meyering@redhat.com>
6894
6895         maint.mk: improve "can not" detection and generalize rule name
6896         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6897         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6898         Use the same technique as in sc_prohibit_doubled_word, so that
6899         we recognize "can not" also when the words are separated by a newline.
6900         Suggested by Eric Blake.
6901         (perl_filename_lineno_text_): Define.  Factored out of...
6902         (prohibit_doubled_word_): ...here.  Use the new definition.
6903         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6904         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6905         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6906
6907 2011-05-10  Eric Blake  <eblake@redhat.com>
6908
6909         fclose: avoid double close race when possible
6910         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6911         all but WINDOWS_SOCKETS.
6912
6913 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6914
6915         openat: correct new comment
6916         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6917
6918 2011-05-10  Jim Meyering  <meyering@redhat.com>
6919
6920         openat: add comments
6921         * lib/openat-proc.c (openat_proc_name): Add comments,
6922         mostly from Eric Blake.
6923
6924 2011-05-09  Eric Blake  <eblake@redhat.com>
6925
6926         openat: reduce syscalls in first probe of /proc
6927         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6928         be a directory.  Simplify the probe for .. bugs.
6929         * modules/openat (Depends-on): Drop same-inode.
6930         Reported by Bastien ROUCARIES.
6931
6932 2011-05-09  Jim Meyering  <meyering@redhat.com>
6933
6934         maint.mk: change semantics/name of tight_scope variables
6935         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6936         Rename variables to align with semantics that make them more useful.
6937
6938         maint.mk: tweak new rule's name not to impinge
6939         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6940         (sc_tight_scope): Use new rule name rather than $@-0.
6941
6942         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6943         * top/maint.mk (sc_tight_scope): New rule.
6944         (sc_tight_scope-0): New rule, ifdef'd out.
6945         (_gl_TS_dir): Default.
6946         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6947         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6948
6949 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6950
6951         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6952         Haible <bruno@clisp.org>.
6953
6954 2011-05-08  Bruno Haible  <bruno@clisp.org>
6955
6956         Comments.
6957         * m4/isnanf.m4: Add comment.
6958         * m4/isnanl.m4: Likewise.
6959
6960 2011-05-08  Bruno Haible  <bruno@clisp.org>
6961
6962         glob: Remove obsolete macro.
6963         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6964
6965 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6966
6967         intprops: Sun C 5.11 supports __typeof__
6968         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6969         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6970         which is new.
6971         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6972
6973         intprops: switch to usual gnulib indenting and naming
6974         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6975         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6976
6977         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6978
6979 2011-05-08  Jim Meyering  <meyering@redhat.com>
6980
6981         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6982         * top/maint.mk (release-prep): Use make's --no-print-directory
6983         option when generating the announcement.  This eliminates the
6984         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6985         generated announcement template.
6986
6987 2011-05-08  Bruno Haible  <bruno@clisp.org>
6988
6989         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6990         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6991         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6992
6993 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6994
6995         ignore-value, verify: Omit include files from lib_SOURCES.
6996         * modules/ignore-value, modules/verify (Makefile.am):
6997         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6998         that leads Automake to duplicate use of am__objects_... variables
6999         in Makefile.in.  See
7000         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7001
7002 2011-05-07  Bruno Haible  <bruno@clisp.org>
7003
7004         fclose: Simplify autoconf macro.
7005         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7006         defined.
7007
7008 2011-05-07  Bruno Haible  <bruno@clisp.org>
7009
7010         canonicalize-lgpl: Fix autoconf macro ordering bug.
7011         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7012         gl_STDLIB_H_DEFAULTS.
7013
7014 2011-05-06  Eric Blake  <eblake@redhat.com>
7015
7016         maintainer-makefile: make sc_po_check easier to tune
7017         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7018         to probe for strings, such as an alternate location for gnulib.
7019
7020         fclose: guarantee behavior on seekable stdin
7021         * modules/fclose (Depends-on): Add fflush.
7022         * doc/posix-functions/fclose.texi (fclose): Document this.
7023         * tests/test-fclose.c (main): Make test for this unconditional.
7024
7025 2011-05-06  Bruno Haible  <bruno@clisp.org>
7026
7027         fflush, fpurge: Relicense under LGPLv2+.
7028         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7029         * modules/fpurge (License): Likewise.
7030         With permission from Eric Blake and Jim Meyering.
7031         Suggested by Eric Blake.
7032
7033 2011-05-06  Karl Berry  <karl@gnu.org>
7034
7035         * MODULES.html.sh (func_all_modules): remove exit.
7036
7037 2011-05-06  Jim Meyering  <meyering@redhat.com>
7038
7039         maint.mk: use info-gnu@ as the default only for a stable release
7040         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7041         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7042         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7043         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7044
7045 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7046
7047         assert-h: new module, which supports C1X-style static_assert
7048         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7049         * lib/verify.h: Revamp so that this can be copied into assert.h,
7050         while retaining the ability to use it standalone as before.
7051         Rename private identifiers so as not to encroach on the
7052         standard C namespace, since this is now used by assert.h.
7053         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7054         the old verify_true.
7055         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7056         the old verify_true.  Use _GL_VERIFY_TYPE.
7057         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7058         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7059         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7060         defined when this file is copied into the replacement assert.h.
7061         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7062         and _Static_assert is not built in.
7063         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7064         defined, and use the new macros mentioned above.
7065         * doc/posix-headers/assert.texi: Document this.
7066
7067 2011-05-05  Bruno Haible  <bruno@clisp.org>
7068
7069         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7070         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7071         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7072         gl_REPLACE_FCLOSE here.
7073         * modules/fflush (Depends-on): Remove fclose.
7074         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7075         combination with module 'fclose'.
7076
7077 2011-05-05  Bruno Haible  <bruno@clisp.org>
7078
7079         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7080         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7081         gl_FUNC_FFLUSH.
7082         (gl_FUNC_FFLUSH): Use it.
7083         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7085         gl_REPLACE_FSEEKO here.
7086
7087 2011-05-05  Bruno Haible  <bruno@clisp.org>
7088
7089         tzset: Relicense under LGPL.
7090         * modules/tzset (License): Change to LGPL.
7091         No agreement needed; it's a no-op.
7092
7093         strtoimax, strtoumax: Relicense under LGPL.
7094         * modules/strtoimax (License): Change to LGPL.
7095         * modules/strtoumax (License): Likewise.
7096         With permission from Jim Meyering, Paul Eggert:
7097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7099
7100         getgroups: Relicense under LGPL.
7101         * modules/getgroups (License): Change to LGPL.
7102         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7106
7107         nanosleep: Relicense under LGPL.
7108         * modules/nanosleep (License): Change to LGPL.
7109         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7110         Haible:
7111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7115
7116         futimens: Relicense under LGPL.
7117         * modules/futimens (License): Change to LGPL.
7118         With permission from Eric Blake:
7119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7120
7121         fflush: Relicense under LGPL.
7122         * modules/fflush (License): Change to LGPL.
7123         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7127
7128         tmpfile: Relicense under LGPL.
7129         * modules/tmpfile (License): Change to LGPL.
7130         With permission from Ben Pfaff:
7131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7132
7133         isfinite: Relicense under LGPL.
7134         * modules/isfinite (License): Change to LGPL.
7135         With permission from Ben Pfaff, Bruno Haible:
7136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7138
7139         acosl..tanl: Relicense under LGPL.
7140         * modules/acosl (License): Change to LGPL.
7141         * modules/asinl (License): Likewise.
7142         * modules/atanl (License): Likewise.
7143         * modules/cosl (License): Likewise.
7144         * modules/expl (License): Likewise.
7145         * modules/logl (License): Likewise.
7146         * modules/sinl (License): Likewise.
7147         * modules/sqrtl (License): Likewise.
7148         * modules/tanl (License): Likewise.
7149         Source code originally from glibc and Paolo Bonzini. Agreements:
7150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7152
7153 2011-05-05  Bruno Haible  <bruno@clisp.org>
7154
7155         signal: Define sighandler_t.
7156         * lib/signal.in.h (sighandler_t): New type.
7157         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7158         whether sighandler_t is defined.
7159         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7160         * modules/signal (Depends-on): Add extensions.
7161         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7162         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7163         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7164
7165 2011-05-05  Eric Blake  <eblake@redhat.com>
7166
7167         maint: remove useless REPLACE_*_H macros
7168         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7169         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7170         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7171         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7172         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7173         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7174         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7175         * m4/btowc.m4: Update callers.
7176         * m4/dirfd.m4: Likewise.
7177         * m4/duplocale.m4: Likewise.
7178         * m4/fchdir.m4: Likewise.
7179         * m4/fdopendir.m4: Likewise.
7180         * m4/inet_ntop.m4: Likewise.
7181         * m4/inet_pton.m4: Likewise.
7182         * m4/ioctl.m4: Likewise.
7183         * m4/mbrlen.m4: Likewise.
7184         * m4/mbrtowc.m4: Likewise.
7185         * m4/mbsinit.m4: Likewise.
7186         * m4/mbsnrtowcs.m4: Likewise.
7187         * m4/mbsrtowcs.m4: Likewise.
7188         * m4/poll.m4: Likewise.
7189         * m4/setlocale.m4: Likewise.
7190         * m4/wcrtomb.m4: Likewise.
7191         * m4/wcsnrtombs.m4: Likewise.
7192         * m4/wcsrtombs.m4: Likewise.
7193         * m4/wctob.m4: Likewise.
7194         * m4/wcwidth.m4: Likewise.
7195         * modules/posix_spawn: Likewise.
7196         * modules/posix_spawn_file_actions_addclose: Likewise.
7197         * modules/posix_spawn_file_actions_adddup2: Likewise.
7198         * modules/posix_spawn_file_actions_addopen: Likewise.
7199         * modules/posix_spawn_file_actions_destroy: Likewise.
7200         * modules/posix_spawn_file_actions_init: Likewise.
7201         * modules/posix_spawnattr_destroy: Likewise.
7202         * modules/posix_spawnattr_getflags: Likewise.
7203         * modules/posix_spawnattr_getpgroup: Likewise.
7204         * modules/posix_spawnattr_getschedparam: Likewise.
7205         * modules/posix_spawnattr_getschedpolicy: Likewise.
7206         * modules/posix_spawnattr_getsigdefault: Likewise.
7207         * modules/posix_spawnattr_getsigmask: Likewise.
7208         * modules/posix_spawnattr_init: Likewise.
7209         * modules/posix_spawnattr_setflags: Likewise.
7210         * modules/posix_spawnattr_setpgroup: Likewise.
7211         * modules/posix_spawnattr_setschedparam: Likewise.
7212         * modules/posix_spawnattr_setschedpolicy: Likewise.
7213         * modules/posix_spawnattr_setsigdefault: Likewise.
7214         * modules/posix_spawnattr_setsigmask: Likewise.
7215         * modules/posix_spawnp: Likewise.
7216
7217 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7218
7219         Add option to do-release-commit-and-tag to specify branch.
7220         * build-aux/do-release-commit-and-tag: Add --branch.
7221
7222 2011-05-03  Bruno Haible  <bruno@clisp.org>
7223
7224         Avoid unnecessary compilation units, through conditional dependencies.
7225         * modules/accept (Depends-on): Add conditions to the dependencies.
7226         * modules/acosl (Depends-on): Likewise.
7227         * modules/argz (Depends-on): Likewise.
7228         * modules/asinl (Depends-on): Likewise.
7229         * modules/atanl (Depends-on): Likewise.
7230         * modules/atoll (Depends-on): Likewise.
7231         * modules/bind (Depends-on): Likewise.
7232         * modules/btowc (Depends-on): Likewise.
7233         * modules/canonicalize-lgpl (Depends-on): Likewise.
7234         * modules/ceil (Depends-on): Likewise.
7235         * modules/ceilf (Depends-on): Likewise.
7236         * modules/ceill (Depends-on): Likewise.
7237         * modules/chdir-long (Depends-on): Likewise.
7238         * modules/chown (Depends-on): Likewise.
7239         * modules/close (Depends-on): Likewise.
7240         * modules/connect (Depends-on): Likewise.
7241         * modules/cosl (Depends-on): Likewise.
7242         * modules/dirfd (Depends-on): Likewise.
7243         * modules/dprintf (Depends-on): Likewise.
7244         * modules/dprintf-posix (Depends-on): Likewise.
7245         * modules/error (Depends-on): Likewise.
7246         * modules/euidaccess (Depends-on): Likewise.
7247         * modules/expl (Depends-on): Likewise.
7248         * modules/faccessat (Depends-on): Likewise.
7249         * modules/fchdir (Depends-on): Likewise.
7250         * modules/fclose (Depends-on): Likewise.
7251         * modules/fcntl (Depends-on): Likewise.
7252         * modules/fdopendir (Depends-on): Likewise.
7253         * modules/fflush (Depends-on): Likewise.
7254         * modules/floor (Depends-on): Likewise.
7255         * modules/floorf (Depends-on): Likewise.
7256         * modules/floorl (Depends-on): Likewise.
7257         * modules/fnmatch (Depends-on): Likewise.
7258         * modules/fopen (Depends-on): Likewise.
7259         * modules/fprintf-posix (Depends-on): Likewise.
7260         * modules/frexp (Depends-on): Likewise.
7261         * modules/frexp-nolibm (Depends-on): Likewise.
7262         * modules/frexpl (Depends-on): Likewise.
7263         * modules/frexpl-nolibm (Depends-on): Likewise.
7264         * modules/fseek (Depends-on): Likewise.
7265         * modules/fsusage (Depends-on): Likewise.
7266         * modules/ftell (Depends-on): Likewise.
7267         * modules/ftello (Depends-on): Likewise.
7268         * modules/futimens (Depends-on): Likewise.
7269         * modules/getcwd (Depends-on): Likewise.
7270         * modules/getcwd-lgpl (Depends-on): Likewise.
7271         * modules/getdelim (Depends-on): Likewise.
7272         * modules/getdomainname (Depends-on): Likewise.
7273         * modules/getgroups (Depends-on): Likewise.
7274         * modules/gethostname (Depends-on): Likewise.
7275         * modules/getline (Depends-on): Likewise.
7276         * modules/getlogin_r (Depends-on): Likewise.
7277         * modules/getopt-posix (Depends-on): Likewise.
7278         * modules/getpeername (Depends-on): Likewise.
7279         * modules/getsockname (Depends-on): Likewise.
7280         * modules/getsockopt (Depends-on): Likewise.
7281         * modules/getsubopt (Depends-on): Likewise.
7282         * modules/getusershell (Depends-on): Likewise.
7283         * modules/glob (Depends-on): Likewise.
7284         * modules/grantpt (Depends-on): Likewise.
7285         * modules/iconv_open (Depends-on): Likewise.
7286         * modules/iconv_open-utf (Depends-on): Likewise.
7287         * modules/inet_ntop (Depends-on): Likewise.
7288         * modules/inet_pton (Depends-on): Likewise.
7289         * modules/ioctl (Depends-on): Likewise.
7290         * modules/isapipe (Depends-on): Likewise.
7291         * modules/isfinite (Depends-on): Likewise.
7292         * modules/isinf (Depends-on): Likewise.
7293         * modules/lchown (Depends-on): Likewise.
7294         * modules/ldexpl (Depends-on): Likewise.
7295         * modules/link (Depends-on): Likewise.
7296         * modules/linkat (Depends-on): Likewise.
7297         * modules/listen (Depends-on): Likewise.
7298         * modules/logl (Depends-on): Likewise.
7299         * modules/lstat (Depends-on): Likewise.
7300         * modules/mbrlen (Depends-on): Likewise.
7301         * modules/mbrtowc (Depends-on): Likewise.
7302         * modules/mbsinit (Depends-on): Likewise.
7303         * modules/mbsnrtowcs (Depends-on): Likewise.
7304         * modules/mbsrtowcs (Depends-on): Likewise.
7305         * modules/mbtowc (Depends-on): Likewise.
7306         * modules/memcmp (Depends-on): Likewise.
7307         * modules/mkdir (Depends-on): Likewise.
7308         * modules/mkdtemp (Depends-on): Likewise.
7309         * modules/mkfifo (Depends-on): Likewise.
7310         * modules/mkfifoat (Depends-on): Likewise.
7311         * modules/mknod (Depends-on): Likewise.
7312         * modules/mkostemp (Depends-on): Likewise.
7313         * modules/mkostemps (Depends-on): Likewise.
7314         * modules/mkstemp (Depends-on): Likewise.
7315         * modules/mkstemps (Depends-on): Likewise.
7316         * modules/mktime (Depends-on): Likewise.
7317         * modules/nanosleep (Depends-on): Likewise.
7318         * modules/open (Depends-on): Likewise.
7319         * modules/openat (Depends-on): Likewise.
7320         * modules/perror (Depends-on): Likewise.
7321         * modules/poll (Depends-on): Likewise.
7322         * modules/popen (Depends-on): Likewise.
7323         * modules/posix_spawn (Depends-on): Likewise.
7324         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7325         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7326         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7327         * modules/posix_spawnp (Depends-on): Likewise.
7328         * modules/pread (Depends-on): Likewise.
7329         * modules/printf-posix (Depends-on): Likewise.
7330         * modules/ptsname (Depends-on): Likewise.
7331         * modules/putenv (Depends-on): Likewise.
7332         * modules/pwrite (Depends-on): Likewise.
7333         * modules/readline (Depends-on): Likewise.
7334         * modules/readlink (Depends-on): Likewise.
7335         * modules/readlinkat (Depends-on): Likewise.
7336         * modules/recv (Depends-on): Likewise.
7337         * modules/recvfrom (Depends-on): Likewise.
7338         * modules/regex (Depends-on): Likewise.
7339         * modules/remove (Depends-on): Likewise.
7340         * modules/rename (Depends-on): Likewise.
7341         * modules/renameat (Depends-on): Likewise.
7342         * modules/rmdir (Depends-on): Likewise.
7343         * modules/round (Depends-on): Likewise.
7344         * modules/roundf (Depends-on): Likewise.
7345         * modules/roundl (Depends-on): Likewise.
7346         * modules/rpmatch (Depends-on): Likewise.
7347         * modules/select (Depends-on): Likewise.
7348         * modules/send (Depends-on): Likewise.
7349         * modules/sendto (Depends-on): Likewise.
7350         * modules/setenv (Depends-on): Likewise.
7351         * modules/setlocale (Depends-on): Likewise.
7352         * modules/setsockopt (Depends-on): Likewise.
7353         * modules/shutdown (Depends-on): Likewise.
7354         * modules/sigaction (Depends-on): Likewise.
7355         * modules/signbit (Depends-on): Likewise.
7356         * modules/sigprocmask (Depends-on): Likewise.
7357         * modules/sinl (Depends-on): Likewise.
7358         * modules/sleep (Depends-on): Likewise.
7359         * modules/snprintf (Depends-on): Likewise.
7360         * modules/snprintf-posix (Depends-on): Likewise.
7361         * modules/socket (Depends-on): Likewise.
7362         * modules/sprintf-posix (Depends-on): Likewise.
7363         * modules/sqrtl (Depends-on): Likewise.
7364         * modules/stat (Depends-on): Likewise.
7365         * modules/strchrnul (Depends-on): Likewise.
7366         * modules/strdup-posix (Depends-on): Likewise.
7367         * modules/strerror (Depends-on): Likewise.
7368         * modules/strerror_r-posix (Depends-on): Likewise.
7369         * modules/strndup (Depends-on): Likewise.
7370         * modules/strnlen (Depends-on): Likewise.
7371         * modules/strptime (Depends-on): Likewise.
7372         * modules/strsep (Depends-on): Likewise.
7373         * modules/strsignal (Depends-on): Likewise.
7374         * modules/strstr-simple (Depends-on): Likewise.
7375         * modules/strtod (Depends-on): Likewise.
7376         * modules/strtoimax (Depends-on): Likewise.
7377         * modules/strtok_r (Depends-on): Likewise.
7378         * modules/strtoumax (Depends-on): Likewise.
7379         * modules/symlink (Depends-on): Likewise.
7380         * modules/symlinkat (Depends-on): Likewise.
7381         * modules/tanl (Depends-on): Likewise.
7382         * modules/tcgetsid (Depends-on): Likewise.
7383         * modules/tmpfile (Depends-on): Likewise.
7384         * modules/trunc (Depends-on): Likewise.
7385         * modules/truncf (Depends-on): Likewise.
7386         * modules/truncl (Depends-on): Likewise.
7387         * modules/uname (Depends-on): Likewise.
7388         * modules/unlink (Depends-on): Likewise.
7389         * modules/unlockpt (Depends-on): Likewise.
7390         * modules/unsetenv (Depends-on): Likewise.
7391         * modules/usleep (Depends-on): Likewise.
7392         * modules/utimensat (Depends-on): Likewise.
7393         * modules/vasprintf (Depends-on): Likewise.
7394         * modules/vdprintf (Depends-on): Likewise.
7395         * modules/vdprintf-posix (Depends-on): Likewise.
7396         * modules/vfprintf-posix (Depends-on): Likewise.
7397         * modules/vprintf-posix (Depends-on): Likewise.
7398         * modules/vsnprintf (Depends-on): Likewise.
7399         * modules/vsnprintf-posix (Depends-on): Likewise.
7400         * modules/vsprintf-posix (Depends-on): Likewise.
7401         * modules/wcrtomb (Depends-on): Likewise.
7402         * modules/wcscasecmp (Depends-on): Likewise.
7403         * modules/wcscspn (Depends-on): Likewise.
7404         * modules/wcsdup (Depends-on): Likewise.
7405         * modules/wcsncasecmp (Depends-on): Likewise.
7406         * modules/wcsnrtombs (Depends-on): Likewise.
7407         * modules/wcspbrk (Depends-on): Likewise.
7408         * modules/wcsrtombs (Depends-on): Likewise.
7409         * modules/wcsspn (Depends-on): Likewise.
7410         * modules/wcsstr (Depends-on): Likewise.
7411         * modules/wcstok (Depends-on): Likewise.
7412         * modules/wcswidth (Depends-on): Likewise.
7413         * modules/wctob (Depends-on): Likewise.
7414         * modules/wctomb (Depends-on): Likewise.
7415         * modules/wctype (Depends-on): Likewise.
7416         * modules/wcwidth (Depends-on): Likewise.
7417         * modules/write (Depends-on): Likewise.
7418
7419 2011-05-03  Bruno Haible  <bruno@clisp.org>
7420
7421         Support for conditional dependencies.
7422         * doc/gnulib.texi (Module description): Document the syntax of
7423         conditional dependencies.
7424         * gnulib-tool: New option --conditional-dependencies.
7425         (func_usage): Document it.
7426         (cond_dependencies): New variable.
7427         (func_get_automake_snippet_conditional,
7428         func_get_automake_snippet_unconditional): New functions, extracted from
7429         func_get_automake_snippet.
7430         (func_get_automake_snippet): Use them.
7431         (sed_first_32_chars): New variable.
7432         (func_module_shellfunc_name): New function.
7433         (func_module_shellvar_name): New function.
7434         (func_module_conditional_name): New function.
7435         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7436         func_cond_module_condition): New functions.
7437         (func_modules_transitive_closure): Add support for conditional
7438         dependencies.
7439         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7440         conditional automake snippet in an automake conditional.
7441         (func_emit_autoconf_snippets): Emit shell functions that contain the
7442         code for conditional modules.
7443         (func_import, func_create_testdir): Update specification.
7444
7445 2011-05-03  Eric Blake  <eblake@redhat.com>
7446
7447         test-getaddrinfo: report error information
7448         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7449
7450 2011-05-03  Jim Meyering  <meyering@redhat.com>
7451
7452         bootstrap: avoid build failure when $GZIP is set
7453         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7454         program name.  If defined at all, it is supposed to list gzip options.
7455         Reported by Alan Curry in http://debbugs.gnu.org/8609
7456
7457 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7458
7459         readme-release: new module with release instructions
7460         * modules/readme-release: New module.
7461         * top/README-release: New file, from coreutils, grep, diffutils.
7462         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7463
7464 2011-05-02  Eric Blake  <eblake@redhat.com>
7465
7466         fflush: also replace fclose when fixing fflush
7467         * modules/fflush (Depends-on): Add fclose.
7468         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7469         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7470         memstreams with no backing fd.
7471         * doc/posix-functions/fclose.texi (fclose): Document the use of
7472         fflush module to fix the bug.
7473         * tests/test-fclose.c (main): Relax test when fclose is used in
7474         isolation.
7475
7476         fclose: add some tests
7477         * modules/fclose-tests: New test module.
7478         * tests/test-fclose.c: New file.
7479         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7480
7481         fclose: reduced dependencies
7482         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7483         simpler lseek.
7484         * lib/fclose.c (rpl_fclose): Likewise.
7485         Reported by Simon Josefsson.
7486
7487         exit: drop remaining clients
7488         * modules/argmatch (Depends-on): Replace exit with stdlib.
7489         * modules/copy-file (Depends-on): Likewise.
7490         * modules/execute (Depends-on): Likewise.
7491         * modules/exitfail (Depends-on): Likewise.
7492         * modules/obstack (Depends-on): Likewise.
7493         * modules/pagealign_alloc (Depends-on): Likewise.
7494         * modules/pipe-filter-gi (Depends-on): Likewise.
7495         * modules/pipe-filter-ii (Depends-on): Likewise.
7496         * modules/savewd (Depends-on): Likewise.
7497         * modules/spawn-pipe (Depends-on): Likewise.
7498         * modules/wait-process (Depends-on): Likewise.
7499         * modules/xsetenv (Depends-on): Likewise.
7500         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7501         * modules/git-merge-changelog (Depends-on): Likewise.
7502         * modules/long-options (Depends-on): Likewise.
7503         * modules/pt_chown (Depends-on): Likewise.
7504         * modules/sysexits (Depends-on): Likewise.
7505
7506         freading: relax license from LGPLv3+ to LGPLv2+
7507         * modules/freading (License): Relax LGPL version.
7508
7509 2011-05-02  Bruno Haible  <bruno@clisp.org>
7510
7511         fchdir: Remove unused dependencies.
7512         * modules/fchdir (Depends-on): Remove include_next.
7513
7514 2011-05-02  Bruno Haible  <bruno@clisp.org>
7515
7516         gnulib-tool: Refactor.
7517         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7518         from func_emit_autoconf_snippets.
7519         (func_emit_autoconf_snippets): Use it.
7520
7521 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7522
7523         * NEWS: Document removal of 'exit'.
7524         * modules/exit: Remove file.
7525
7526 2011-05-01  Bruno Haible  <bruno@clisp.org>
7527
7528         Update DEPENDENCIES.
7529         * DEPENDENCIES (gettext): Recommend the newest release.
7530         Reported by Simon Josefsson.
7531
7532 2011-05-01  Bruno Haible  <bruno@clisp.org>
7533
7534         gnulib-tool: Reduce code duplication.
7535         * gnulib-tool (func_emit_autoconf_snippets): New function.
7536         (func_import, func_create_testdir): Use it.
7537
7538 2011-04-30  Eric Blake  <eblake@redhat.com>
7539
7540         fclose: don't fail on non-seekable input stream
7541         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7542         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7543         since fflush is allowed to fail in that case.
7544
7545 2011-04-30  Bruno Haible  <bruno@clisp.org>
7546
7547         dup3: cleanup
7548         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7549
7550 2011-04-30  Bruno Haible  <bruno@clisp.org>
7551
7552         netdb: Make it work in C++ mode.
7553         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7554         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7555         module.
7556         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7557         gl_MODULE_INDICATOR_FOR_TESTS.
7558         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7559         * modules/netdb-c++-tests: New file.
7560         * tests/test-netdb-c++.cc: New file.
7561
7562 2011-04-30  Bruno Haible  <bruno@clisp.org>
7563
7564         New modules 'vfscanf', 'vscanf'.
7565         * modules/vfscanf: New file.
7566         * modules/vscanf: New file.
7567         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7568         here.
7569         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7570         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7571
7572 2011-04-30  Bruno Haible  <bruno@clisp.org>
7573
7574         passfd: Add comments.
7575         * lib/passfd.c: Add comments about platforms.
7576
7577 2011-04-30  Bruno Haible  <bruno@clisp.org>
7578
7579         sys_uio: Make <sys/uio.h> self-contained.
7580         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7581         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7582
7583 2011-04-30  Bruno Haible  <bruno@clisp.org>
7584
7585         sys_socket: Ensure 'struct iovec' definition.
7586         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7587         <sys/socket.h>.
7588         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7589
7590 2011-04-30  Bruno Haible  <bruno@clisp.org>
7591
7592         sys_uio: Protect definition of 'struct iovec'.
7593         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7594         it as a C struct.
7595
7596 2011-04-30  Bruno Haible  <bruno@clisp.org>
7597
7598         manywarnings: fix indentation
7599         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7600
7601 2011-04-30  Pádraig Brady <P@draigBrady.com>
7602
7603         manywarnings: add -Wno-missing-field-initializers if needed.
7604         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7605         option if it's needed to allow initialization with { 0, }
7606
7607 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7608
7609         announce-gen: cosmetic improvement
7610         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7611
7612 2011-04-29  Jim Meyering  <meyering@redhat.com>
7613
7614         vc-list-files: indent with spaces, not TABs
7615         * build-aux/vc-list-files: Convert leading TABs to spaces,
7616         to match the style of most other files in gnulib.
7617
7618         announce-gen: indent with spaces, not TABs
7619         * build-aux/announce-gen: Convert all TABs to spaces, to match
7620         the style of most other files in gnulib.
7621
7622 2011-04-29  Eric Blake  <eblake@redhat.com>
7623
7624         quotearg: avoid uninitialized variable use
7625         * lib/quotearg.c (quoting_options_from_style): Initialize
7626         remaining fields, and ensure that custom styles are only used via
7627         quoting_options rather than quoting_style.
7628
7629 2011-04-29  Jim Meyering  <meyering@redhat.com>
7630
7631         maint.mk: remove unused VC-tag variable
7632         * top/maint.mk (VC-tag): Remove unused variable.
7633
7634 2011-04-29  Bruno Haible  <bruno@clisp.org>
7635
7636         netdb: fix gai_strerror replacements
7637         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7638         * modules/netdb: Substitute it.
7639
7640 2011-04-29  Jim Meyering  <meyering@redhat.com>
7641
7642         test-getcwd.c: avoid new set-but-not-used warning
7643         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7644         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7645         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7646         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7647
7648         test-hash.c: avoid a new shadowing warning
7649         * tests/test-hash.c (main): Don't shadow "dup".
7650
7651 2011-04-28  Eric Blake  <eblake@redhat.com>
7652
7653         getaddrinfo: fix gai_strerror signature
7654         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7655         and work around mingw with UNICODE defined.
7656         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7657         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7658         * modules/netdb (Makefile.am): Substitute it.
7659         * lib/netdb.in.h (gai_strerror): Declare replacement.
7660         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7661         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7662         the fix.
7663
7664         getsockopt: avoid compiler warning
7665         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7666         Reported by Matthias Bolte.
7667
7668         tests: drop unused link dependency
7669         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7670         * modules/dirent-safer-tests (Makefile.am): Likewise.
7671         * modules/fdopendir-tests (Makefile.am): Likewise.
7672         * modules/mkfifoat-tests (Makefile.am): Likewise.
7673         * modules/openat-safer-tests (Makefile.am): Likewise.
7674         * modules/openat-tests (Makefile.am): Likewise.
7675         * modules/readlinkat-tests (Makefile.am): Likewise.
7676         * modules/symlinkat-tests (Makefile.am): Likewise.
7677         * modules/linkat-tests (Makefile.am): Likewise.
7678         (Depends-on): Switch to filenamecat-lgpl.
7679         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7680         LIBINTL.
7681         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7682         * tests/test-linkat.c (main): Don't require xalloc.
7683
7684         hash, mgetgroups: drop xalloc dependency
7685         * lib/hash.c (includes): Adjust includes.
7686         * lib/mgetgroups.c (includes): Likewise.
7687         (xgetgroups): Move...
7688         * lib/xgetgroups.c: ...to new file.
7689         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7690         * modules/xgetgroups: New file, split from...
7691         * modules/mgetgroups: ...here.
7692         (Depends-on): Add xalloc-oversized.
7693         * modules/hash (Depends-on): Likewise.
7694         * modules/hash-tests (Depends-on): Drop xalloc.
7695         (test_hash_LDADD): Drop unused library.
7696         * tests/test-hash.c (main): Break xalloc dependency.
7697         (includes): Drop unused include.
7698
7699         xalloc-oversized: new module
7700         * modules/xalloc-oversized: New module.
7701         * modules/xalloc (Depends-on): Add it.
7702         * lib/xalloc.h (xalloc_oversized): Move...
7703         * lib/xalloc-oversized.h: ...into new file.
7704
7705         utimecmp: drop dependency on xmalloc
7706         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7707         due to memory pressure.
7708         * modules/utimecmp (Depends-on): Drop xalloc.
7709
7710 2011-04-27  Eric Blake  <eblake@redhat.com>
7711
7712         getcwd: fix mingw bugs
7713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7714         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7715         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7716
7717 2011-04-27  Bruno Haible  <bruno@clisp.org>
7718
7719         mkstemps: Ensure declaration on MacOS X 10.5.
7720         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7721         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7722         MacOS X.
7723
7724 2011-04-27  Bruno Haible  <bruno@clisp.org>
7725
7726         mkstemp: More documentation.
7727         * doc/posix-functions/mkstemp.texi: Document header file problem on
7728         MacOS X.
7729
7730 2011-04-27  Bruno Haible  <bruno@clisp.org>
7731
7732         mkstemp: Tweak configure message when cross-compiling.
7733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7734         result as a guess.
7735
7736 2011-04-27  Bruno Haible  <bruno@clisp.org>
7737
7738         clean-temp: Clarify what it does.
7739         * lib/clean-temp.h: Add more comments.
7740         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7741         module.
7742         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7743         * doc/glibc-functions/mkstemps.texi: Likewise.
7744         * doc/glibc-functions/mkostemps.texi: Likewise.
7745
7746 2011-04-27  Eric Blake  <eblake@redhat.com>
7747
7748         fchdir: avoid extra chdir and fix test
7749         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7750         getcwd-lgpl.
7751         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7752         have to be canonical.
7753         (canonicalize_file_name): Drop unused macro.
7754         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7755
7756         filenamecat-lgpl: fix licence
7757         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7758         when it was first created.
7759
7760         linkat, renameat: add missing dependency
7761         * modules/linkat (Depends-on): Require getcwd-lgpl.
7762         * modules/renameat (Depends-on): Likewise.
7763
7764         tests: reduce dependencies
7765         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7766         * tests/test-renameat.c (main): Likewise.
7767         * modules/linkat-tests (Depends-on): Relax dependency.
7768         * modules/renameat-tests (Depends-on): Likewise.
7769         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7770         dependency explicit.
7771
7772         save-cwd: reduce default dependency
7773         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7774         * lib/save-cwd.c: Update comments.
7775         * NEWS: Document the semantic change.
7776
7777         getcwd: enhance tests
7778         * tests/test-getcwd-lgpl.c: New file, taken from...
7779         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7780         repeat long path stress tests from m4 probe.
7781         * modules/getcwd-lgpl-tests: New module.
7782         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7783         * m4/getcwd-abort-bug.m4: Update comment.
7784         * m4/getcwd-path-max.m4: Likewise.
7785
7786         getcwd-lgpl: new module
7787         * modules/getcwd-lgpl: New module.
7788         * lib/getcwd-lgpl.c: New file.
7789         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7790         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7791         * modules/getcwd (configure.ac): Set C witness.
7792         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7793
7794         getcwd: tweak comments
7795         * m4/getcwd-abort-bug.m4: Fix comments.
7796         * m4/getcwd-path-max.m4: Likewise.
7797         * m4/getcwd.m4: Likewise.
7798
7799 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7800         and Eric Blake  <eblake@redhat.com>
7801
7802         mkstemp: replace if system version uses wrong permissions
7803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7804         read/write mode bits set in file created by mkstemp.
7805         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7806
7807 2011-04-27  Eric Blake  <eblake@redhat.com>
7808
7809         passfd: avoid compiler warning
7810         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7811         Reported by Laine Stump.
7812
7813 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7814
7815         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7816         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7817
7818 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7819         and Eric Blake  <eblake@redhat.com>
7820
7821         mkstemp: mention clean-temp module
7822         * lib/mkstemp.c: Add comment.
7823         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7824
7825 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7826
7827         inttypes: also provide default values for 32-bit tests
7828         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7829         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7830
7831 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7832
7833         strtoumax: remove dependency on strtoimax
7834         This is like the strtoull change of yesterday.
7835         * modules/strtoumax (Files): Add lib/strtoimax.c.
7836         (Depends-on): Remove strtoimax and add verify.
7837
7838         inttypes-incomplete: new module
7839         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7840         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7841         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7842         of gl_INTTYPES_H.
7843         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7844         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7845         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7846         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7847         * modules/strtoumax, modules/xstrtol (Depends-on):
7848         Depend on inttypes-incomplete, not inttypes.
7849         * modules/inttypes-incomplete: New module, containing the contents
7850         of the old modules/inttypes module, except that the Files: section
7851         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7852         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7853         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7854         (Depends-on): Depend only on inttypes-incomplete.
7855         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7856
7857         inttypes: omit now-redundant strtoimax and strtoumax work
7858         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7859         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7860
7861         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7862         This supports apps that need pointers to strtoimax and strtoumax,
7863         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7864         nonexistent functions.  See
7865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7866         et seq.
7867         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7868         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7869         a macro.
7870         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7871
7872 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7873
7874         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7875
7876 2011-04-25  Bruno Haible  <bruno@clisp.org>
7877
7878         strtol, strtoul: Mark modules as obsolete.
7879         * modules/strtol (Status, Notice): New sections.
7880         * modules/strtoul (Status, Notice): New sections.
7881
7882 2011-04-25  Bruno Haible  <bruno@clisp.org>
7883
7884         strtod: Remove check for strtod, unless supporting old platforms.
7885         * modules/strtod-obsolete: New file.
7886         * m4/strtod-obsolete.m4: New file.
7887         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7888         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7889         * modules/strtod (Depends-on): Add strtod-obsolete.
7890         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7891
7892 2011-04-25  Bruno Haible  <bruno@clisp.org>
7893
7894         strcase: Make module obsolete.
7895         * modules/strcase (Status, Notice): New sections.
7896
7897 2011-04-25  Bruno Haible  <bruno@clisp.org>
7898
7899         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7900         * modules/dup2-obsolete: New file.
7901         * m4/dup2-obsolete.m4: New file.
7902         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7903         gl_FUNC_DUP2_OBSOLETE is not also defined.
7904         * modules/dup2 (Depends-on): Add dup2-obsolete.
7905         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7906
7907 2011-04-25  Bruno Haible  <bruno@clisp.org>
7908
7909         strnlen: Avoid memchr related link error on old obsolete platforms.
7910         * modules/memchr-obsolete: New file.
7911         * m4/memchr-obsolete.m4: New file.
7912         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7913         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7914         * modules/memchr (Depends-on): Add memchr-obsolete.
7915         * modules/strnlen (Depends-on): Likewise.
7916         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7917
7918 2011-04-25  Jim Meyering  <meyering@redhat.com>
7919
7920         maint.mk: makefile_at_at_check extend and clean up
7921         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7922         in addition to */Makefile.am.
7923         Exempt legitimate uses of @VAR@ notation, e.g.,
7924         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7925         Remove obsolete coreutils-specific comment.
7926         Prompted by discussion here:
7927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7928
7929 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7930
7931         strtoul: remove dependency on strtol
7932         This is so that 'configure' need not check for strtol merely because
7933         the application needs strtoul.
7934         * modules/strtoul (Files): Add lib/strtol.c.
7935         (Depends-on): Remove strtol.
7936
7937         strtoull: remove dependency on strtoul
7938         This is like the strtoll change.
7939         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7940         (Depends-on): Remove strtoul.
7941
7942         strtoll: remove dependency on strtol
7943         This is so that 'configure' need not check for strtol merely because
7944         the application needs strtoll.
7945         * modules/strtoll (Files): Add lib/strtol.c.
7946         (Depends-on): Remove strtol.
7947
7948 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         inttypes: Move some configure check to module 'imaxdiv'.
7951         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7952         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7953         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7954
7955 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7956
7957         inttypes: Move some configure check to module 'imaxabs'.
7958         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7959         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7960         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7961
7962 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         inttypes: Remove configure tests that are not needed since 2009-12-31.
7965         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7966         gl_cv_header_working_inttypes_h.
7967
7968 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7969
7970         * modules/strnlen (Depends-on): Remove memchr.
7971         The strnlen implementation doesn't need the memchr module's fixes; see
7972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7973
7974         strtol: remove dependency on wchar
7975         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7976         * modules/strtol (Depends-on): Remove wchar.
7977
7978 2011-04-21  Eric Blake  <eblake@redhat.com>
7979
7980         passfd: fix test regression on Linux
7981         * modules/passfd-tests (configure.ac): Correct socketpair check.
7982
7983         passfd: speed up configure and drop unused code
7984         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7985         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7986         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7987         Instead of probing at configure for unix_scm_rights_bsd44_way,
7988         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7989         check to a struct member probe.
7990         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7991         (sendfd, recvfd): Update preprocessor checks.
7992         * modules/passfd (Files): Reflect rename, and drop unused file.
7993         (Depends-on): Drop unused dependency.
7994
7995         passfd: allow compilation on mingw
7996         * modules/sys_socket (Depends-on): Add sys_uio.
7997         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7998         iovec and a minimal struct msghdr.
7999         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8000         * tests/test-sys_socket.c (main): Enhance test.
8001         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8002         guaranteed to provide what we need.
8003         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8004         * modules/passfd-tests (Depends-on): Add sys_wait.
8005         * tests/test-passfd.c (main): Skip test on mingw, for now.
8006         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8007         partial 'struct msghdr' implementation.
8008
8009         sys_uio: new module
8010         * modules/sys_uio: New module.
8011         * modules/sys_uio-tests: Likewise.
8012         * lib/sys_uio.in.h: New file.
8013         * m4/sys_uio_h.m4: Likewise.
8014         * tests/test-sys_uio.c: Likewise.
8015         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8016         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8017
8018 2011-04-20  Jim Meyering  <meyering@redhat.com>
8019
8020         useless-if-before-free: avoid false-positive
8021         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8022         disjunct so that it too requires a terminating ";".  Without that,
8023         this script would identify as useless one statement from gcc that
8024         was not:
8025           if (aligned_ptr)
8026             free (((void **) aligned_ptr) [-1]);
8027
8028 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8029
8030         doc: update users.txt.
8031         * users.txt: Add barcode.
8032
8033 2011-04-19  Bruno Haible  <bruno@clisp.org>
8034
8035         ioctl: Remove link dependency on native Windows.
8036         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8037         (gl_close_fn, gl_ioctl_fn): New types.
8038         (struct fd_hook): Renamed from struct close_hook. Change type of
8039         private_close_fn field. Add private_ioctl_fn field.
8040         (close_hook_fn): Add parameter for primary close method.
8041         (execute_close_hooks, execute_all_close_hooks): Likewise.
8042         (ioctl_hook_fn): New type.
8043         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8044         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8045         argument.
8046         (unregister_fd_hook): Renamed from unregister_close_hook.
8047         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8048         Don't include <unistd.h>.
8049         (close): Remove undef.
8050         (anchor): Update.
8051         (execute_close_hooks): Add argument for primary close method.
8052         (execute_all_close_hooks): Likewise.
8053         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8054         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8055         argument. Allow each argument to be NULL.
8056         (unregister_fd_hook): Renamed from unregister_close_hook.
8057         * lib/close.c (rpl_close): Pass 'close' function pointer to
8058         execute_all_close_hooks.
8059         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8060         (primary_ioctl): New function.
8061         (ioctl): Don't call ioctlsocket here. Instead, call
8062         execute_all_ioctl_hooks.
8063         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8064         close method.
8065         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8066         (fd_sockets_hook): Renamed from close_sockets_hook.
8067         (gl_sockets_startup, gl_sockets_cleanup): Update.
8068         * modules/fd-hook: Renamed from modules/close-hook. Update.
8069         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8070         * modules/sockets (Depends-on): Likewise.
8071         * modules/ioctl (Depends-on): Add fd-hook.
8072         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8073         GNULIB_SOCKET.
8074
8075 2011-04-19  Bruno Haible  <bruno@clisp.org>
8076
8077         Move the support of O_NONBLOCK in open() to the 'open' module.
8078         * modules/nonblocking (Depends-on): Remove 'open'.
8079         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8080         gl_cv_have_open_O_NONBLOCK.
8081         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8082         O_NONBLOCK support.
8083         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8084
8085 2011-04-17  Bruno Haible  <bruno@clisp.org>
8086
8087         pipe2: Simplify code.
8088         * lib/pipe2.c (pipe2): Reduce code duplication.
8089
8090 2011-04-17  Bruno Haible  <bruno@clisp.org>
8091
8092         nonblocking: Add comment.
8093         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8094
8095 2011-04-17  Bruno Haible  <bruno@clisp.org>
8096
8097         nonblocking: Add tests for sockets.
8098         * tests/test-nonblocking-socket.sh: New file.
8099         * tests/test-nonblocking-socket-main.c: New file.
8100         * tests/test-nonblocking-socket-child.c: New file.
8101         * tests/test-nonblocking-socket.h: New file.
8102         * tests/socket-server.h: New file.
8103         * tests/socket-client.h: New file.
8104         * modules/nonblocking-socket-tests: New file.
8105         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8106
8107 2011-04-17  Bruno Haible  <bruno@clisp.org>
8108
8109         nonblocking: Add tests for pipes.
8110         * tests/test-nonblocking-pipe.sh: New file.
8111         * tests/test-nonblocking-pipe-main.c: New file.
8112         * tests/test-nonblocking-pipe-child.c: New file.
8113         * tests/test-nonblocking-pipe.h: New file.
8114         * tests/test-nonblocking-writer.h: New file.
8115         * tests/test-nonblocking-reader.h: New file.
8116         * tests/test-nonblocking-misc.h: New file.
8117         * modules/nonblocking-pipe-tests: New file.
8118         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8119
8120 2011-04-16  Bruno Haible  <bruno@clisp.org>
8121
8122         gettext: Clarify the needed programmer actions.
8123         * modules/gettext (Notice): New field.
8124         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8125
8126 2011-04-16  Bruno Haible  <bruno@clisp.org>
8127
8128         strchrnul: Tweak last commit.
8129         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8130         bug.
8131         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8132         as in _GL_FUNCDECL_SYS.
8133         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8134         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8135
8136 2011-04-15  Eric Blake  <eblake@redhat.com>
8137
8138         strchrnul: work around cygwin bug
8139         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8140         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8142         * modules/string (Makefile.am): Substitute it.
8143         * lib/string.in.h (strchrnul): Use it.
8144
8145 2011-04-15  Bruno Haible  <bruno@clisp.org>
8146
8147         Don't require lib/stdio-write.c when only module 'stdio' is used.
8148         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8149         invocation.
8150         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8151
8152 2011-04-14  Bruno Haible  <bruno@clisp.org>
8153
8154         Support non-blocking pipe I/O in read() on native Windows.
8155         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8156         (read): New declaration.
8157         * lib/read.c: New file.
8158         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8159         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8160         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8161         vscanf): New declarations.
8162         * lib/stdio-read.c: New file.
8163         * m4/read.m4: New file.
8164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8165         REPLACE_READ.
8166         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8167         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8168         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8169         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8170         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8171         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8172         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8173         * modules/read: New file.
8174         * modules/nonblocking (Files): Add lib/stdio-read.c.
8175         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8176         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8177         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8178         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8179         * modules/pread (Depends-on): Add read.
8180         * modules/safe-read (Depends-on): Likewise.
8181         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8182         gets, scanf, vfscanf, vscanf): Verify signatures.
8183         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8184         problem with non-blocking pipes.
8185         * doc/posix-functions/fgetc.texi: Likewise.
8186         * doc/posix-functions/fgets.texi: Likewise.
8187         * doc/posix-functions/fread.texi: Likewise.
8188         * doc/posix-functions/fscanf.texi: Likewise.
8189         * doc/posix-functions/getc.texi: Likewise.
8190         * doc/posix-functions/getchar.texi: Likewise.
8191         * doc/posix-functions/gets.texi: Likewise.
8192         * doc/posix-functions/scanf.texi: Likewise.
8193         * doc/posix-functions/vfscanf.texi: Likewise.
8194         * doc/posix-functions/vscanf.texi: Likewise.
8195
8196 2011-04-14  Bruno Haible  <bruno@clisp.org>
8197
8198         Support non-blocking pipe I/O in write() on native Windows.
8199         * lib/write.c (rpl_write): Split a write request that failed merely
8200         because the byte count was larger than the pipe buffer's size.
8201         * doc/posix-functions/write.texi: Mention the problem with large byte
8202         counts.
8203
8204 2011-04-14  Bruno Haible  <bruno@clisp.org>
8205
8206         wchar: Ensure that wchar_t gets defined on uClibc.
8207         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8208         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8209
8210 2011-04-13  Bruno Haible  <bruno@clisp.org>
8211
8212         safe-write, full-read: Avoid unnecessary compilation units.
8213         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8214         (Depends-on): Remove safe-read. Add ssize_t.
8215         * modules/full-read (Files): Add lib/full-write.c.
8216         (Depends-on): Add full-write.
8217
8218 2011-04-13  Bruno Haible  <bruno@clisp.org>
8219
8220         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8221         * modules/pwrite (Depends-on): Add 'write'.
8222
8223 2011-04-13  Bruno Haible  <bruno@clisp.org>
8224
8225         Support non-blocking pipe I/O in write() on native Windows.
8226         * lib/unistd.in.h (write): Enable replacement also if
8227         GNULIB_UNISTD_H_NONBLOCKING is 1.
8228         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8229         (rpl_write): When failing to write on a non-blocking pipe, change
8230         errno from ENOSPC to EAGAIN.
8231         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8232         putchar, puts, vfprintf, vprintf): Enable replacement also if
8233         GNULIB_STDIO_H_NONBLOCKING is 1.
8234         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8235         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8236         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8237         CALL_WITH_SIGPIPE_EMULATION.
8238         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8239         * m4/nonblocking.m4: New file.
8240         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8241         for non-blocking I/O support.
8242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8243         GNULIB_UNISTD_H_NONBLOCKING.
8244         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8245         required for non-blocking I/O support.
8246         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8247         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8248         lib/stdio-write.c, m4/asm-underscore.m4.
8249         (Depends-on): Add stdio, unistd.
8250         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8251         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8252         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8253         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8254         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8255         problem with non-blocking pipes.
8256         * doc/posix-functions/fputc.texi: Likewise.
8257         * doc/posix-functions/fputs.texi: Likewise.
8258         * doc/posix-functions/fwrite.texi: Likewise.
8259         * doc/posix-functions/printf.texi: Likewise.
8260         * doc/posix-functions/putc.texi: Likewise.
8261         * doc/posix-functions/putchar.texi: Likewise.
8262         * doc/posix-functions/puts.texi: Likewise.
8263         * doc/posix-functions/vfprintf.texi: Likewise.
8264         * doc/posix-functions/vprintf.texi: Likewise.
8265         * doc/posix-functions/write.texi: Likewise.
8266
8267 2011-04-10  Jim Meyering  <meyering@redhat.com>
8268
8269         maint.mk: prohibit doubled words
8270         Detect them also when they're separated by a newline.
8271         There are 3 ways to customize it:
8272           - disable the test on a per file basis, as usual with rules using
8273             $(VC_LIST_EXCEPT)
8274           - replace the default doubled-word-selecting regexp (affects all files)
8275           - ignore a particular file-vs-doubled-word match
8276         I nearly used that last one to ignore the "is is" match in
8277         coreutils' NEWS file, since the text was "ls -is is ..."
8278         To do that, I would have added this line to cfg.mk:
8279           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8280         but it would have ignored any "is is" match in NEWS.
8281         Low probability, but still...
8282         Instead, I changed the text, slightly:
8283           -  ls -is is now consistent with ls -lis in ignoring values returned
8284           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8285         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8286         (prohibit_doubled_word_): Define.
8287         (sc_prohibit_doubled_word): New rule.
8288         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8289
8290 2011-04-10  Jim Meyering  <meyering@redhat.com>
8291
8292         maint: fix doubled-word typo in comment
8293         * m4/gethostname.m4: s/is is/it is/
8294         * m4/getdomainname.m4: Likewise.
8295
8296 2011-04-10  Jim Meyering  <meyering@redhat.com>
8297
8298         maint: remove doubled word: s/it it/it/
8299         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8300
8301 2011-04-10  Jim Meyering  <meyering@redhat.com>
8302
8303         maint.mk: remove useless semicolon and backslash
8304         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8305         semicolon and backslash.
8306
8307 2011-04-10  Bruno Haible  <bruno@clisp.org>
8308
8309         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8310         * modules/stdint-tests (Depends-on): Add wchar.
8311
8312 2011-04-10  Jim Meyering  <meyering@redhat.com>
8313
8314         maint: remove doubled words in comments, e.g., s/a a/a/
8315         * lib/strptime.c (day_of_the_week): s/the the/the/
8316         * tests/test-chown.h (test_chown): s/a a/a/
8317
8318         test-chown.h: correct a cast
8319         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8320         when the destination is a stat.st_gid.
8321
8322 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8323
8324         getaddrinfo: Fix test for sa_len member.
8325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8326         include <sys/types.h> before <sys/socket.h>.
8327
8328 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8329
8330         maint: change "can not" to "cannot"
8331         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8332         boundaries.
8333
8334 2011-04-09  Jim Meyering  <meyering@redhat.com>
8335
8336         maint: change "a a" to "a"
8337         * tests/test-lchown.h (test_lchown): s/a a/a/
8338
8339         maint.mk: prohibit \<the the\>
8340         * top/maint.mk (sc_prohibit_the_the): New rule.
8341
8342         maint: fix "the the" in comment
8343         * lib/count-one-bits.h: s/the the/the/
8344
8345         maint: change "can not" to "cannot"
8346         But do not change the occurrences in maintain.texi or in
8347         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8348         * doc/gnulib-tool.texi: s/can not/cannot/
8349         * doc/posix-functions/accept.texi (accept): Likewise.
8350         * doc/posix-functions/socket.texi (socket): Likewise.
8351         * lib/mbrtowc.c: Likewise.
8352
8353         maint.mk: prohibit use of "can not"
8354         * top/maint.mk (sc_prohibit_can_not): New rule.
8355         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8356
8357 2011-04-09  Bruno Haible  <bruno@clisp.org>
8358
8359         careadlinkat: Guard against misuse of careadlinkatcwd.
8360         * lib/careadlinkat.c: Include <stdlib.h>.
8361         (careadlinkatcwd): Check that the fd argument is as expected.
8362
8363 2011-04-09  Bruno Haible  <bruno@clisp.org>
8364
8365         careadlinkat: Use common coding style.
8366         * lib/careadlinkat.c: Move gnulib includes after system includes.
8367
8368 2011-04-09  Bruno Haible  <bruno@clisp.org>
8369
8370         careadlinkat: Clarify specification.
8371         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8372         (careadlinkatcwd): Add comment.
8373         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8374
8375 2011-04-09  Bruno Haible  <bruno@clisp.org>
8376
8377         areadlinkat: Avoid link error on many platforms.
8378         * modules/areadlinkat (Depends-on): Add areadlink.
8379
8380 2011-04-09  Bruno Haible  <bruno@clisp.org>
8381
8382         allocator, careadlinkat: Fix double-inclusion guard.
8383         * lib/allocator.h: Fix double-inclusion guard.
8384         * lib/careadlinkat.h: Likewise.
8385
8386 2011-04-09  Bruno Haible  <bruno@clisp.org>
8387
8388         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8389         * lib/relocwrapper.c: Update dependencies hierarchy.
8390         * build-aux/install-reloc: Update list of files to be compiled.
8391         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8392         lib/allocator.[hc].
8393
8394 2011-04-08  Eric Blake  <eblake@redhat.com>
8395
8396         strftime: silence gnulib-tool warning
8397         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8398
8399 2011-04-08  Bruno Haible  <bruno@clisp.org>
8400
8401         verify: Fix syntax error with GCC 4.6 in C++ mode.
8402         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8403         (HAVE_STATIC_ASSERT): New macro.
8404         (verify_true, verify): Use 'static_assert' if it is supported and
8405         '_Static_assert' is not supported.
8406
8407 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8408
8409         allocator: New module.
8410         * modules/allocator, lib/allocator.c: New files.
8411         * lib/allocator.h (stdlib_allocator): New decl.
8412         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8413         Remove.  Do not include <stdlib.h>.
8414         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8415         * modules/careadlinkat (Files): Remove lib/allocator.h.
8416         (Depends-on): Add allocator.
8417
8418         stdlib: let modules use system malloc, realloc
8419         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8420         if !_GL_USE_STDLIB_ALLOC.
8421         (malloc, realloc): Limit this change to a smaller scope.
8422
8423         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8424         (malloc, realloc): Don't #undef; no longer needed.
8425         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8426         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8427         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8428         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8429         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8430         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8431         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8432         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8433
8434         careadlinkat: rename members to avoid problem
8435         * lib/allocator.h (struct allocator): Rename members from
8436         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8437         and realloc are #define'd.  Reported by Eric Blake in
8438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8439         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8440
8441 2011-04-08  Eric Blake  <eblake@redhat.com>
8442
8443         nonblocking: reduce dependency
8444         * tests/test-nonblocking.c: Only test sockets when in use.
8445         * modules/nonblocking-tests (Depends-on): Drop socket.
8446         (Makefile.am): Link even if sockets are not present.
8447         * modules/pipe2-tests (Makefile.am): Likewise.
8448         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8449
8450         pipe2: fix O_NONBLOCK support on mingw
8451         * modules/pipe2 (Depends-on): Add nonblocking.
8452         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8453         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8454         * tests/test-nonblocking.c (main): Likewise.
8455         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8456
8457         fcntl-h: fix O_ACCMODE on cygwin
8458         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8459         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8460
8461         pipe-filter: drop O_NONBLOCK workarounds
8462         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8463         * modules/pipe-filter-ii (Depends-on): Likewise.
8464         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8465
8466         nonblocking: provide O_NONBLOCK for mingw
8467         * modules/nonblocking (Depends-on): Add open.
8468         (configure.ac): Set new witness macro.
8469         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8470         * modules/fcntl-h (Makefile.am): Substitute it.
8471         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8472         nonblocking module is in use.
8473         * lib/nonblocking.c: Adjust portability test.
8474         * lib/open.c (open): Don't let native open see gnulib flag.
8475         * tests/test-fcntl-h.c (main): Enhance test.
8476         * tests/test-open.h (test_open): Likewise.
8477         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8478
8479         careadlinkat: fix compilation error on mingw
8480         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8481         within struct allocator.
8482
8483 2011-04-06  Eric Blake  <eblake@redhat.com>
8484
8485         binary-io: relicense under LGPLv2+
8486         * modules/binary-io (License): Relax to LGPLv2+.
8487         Requested for libvirt, and required by pipe2.
8488
8489 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8490
8491         verify: use _Static_assert if available
8492         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8493         (verify_true, verify): Use it if available.  This generates better
8494         diagnostics with GCC 4.6.0 and later.
8495
8496 2011-04-05  Bruno Haible  <bruno@clisp.org>
8497
8498         Remove leftover generated .h files after config.status changed.
8499
8500         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8501         GL_GENERATE_ALLOCA_H.
8502         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8503         GL_GENERATE_ALLOCA_H evaluates to false.
8504
8505         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8506         GL_GENERATE_ARGZ_H.
8507         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8508         evaluates to false.
8509
8510         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8511         GL_GENERATE_BYTESWAP_H.
8512         * modules/byteswap (Makefile.am): Remove byteswap.h if
8513         GL_GENERATE_BYTESWAP_H evaluates to false.
8514
8515         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8516         GL_GENERATE_ERRNO_H.
8517         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8518         evaluates to false.
8519
8520         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8521         GL_GENERATE_FLOAT_H.
8522         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8523         evaluates to false.
8524
8525         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8526         GL_GENERATE_FNMATCH_H.
8527         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8528         GL_GENERATE_FNMATCH_H evaluates to false.
8529
8530         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8531         GL_GENERATE_GLOB_H.
8532         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8533         evaluates to false.
8534
8535         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8536         automake conditional GL_GENERATE_ICONV_H.
8537         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8538         evaluates to false.
8539
8540         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8541         GL_GENERATE_NETINET_IN_H.
8542         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8543         GL_GENERATE_NETINET_IN_H evaluates to false.
8544
8545         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8546         conditional GL_GENERATE_PTHREAD_H.
8547         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8548         * modules/pthread (Makefile.am): Remove pthread.h if
8549         GL_GENERATE_PTHREAD_H evaluates to false.
8550
8551         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8552         GL_GENERATE_SCHED_H.
8553         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8554         evaluates to false.
8555
8556         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8557         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8558         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8559         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8560
8561         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8562         GL_GENERATE_STDARG_H.
8563         * modules/stdarg (Makefile.am): Remove stdarg.h if
8564         GL_GENERATE_STDARG_H evaluates to false.
8565
8566         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8567         GL_GENERATE_STDBOOL_H.
8568         * modules/stdbool (Makefile.am): Remove stdbool.h if
8569         GL_GENERATE_STDBOOL_H evaluates to false.
8570
8571         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8572         conditional GL_GENERATE_STDDEF_H.
8573         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8574         * modules/stddef (Makefile.am): Remove stddef.h if
8575         GL_GENERATE_STDDEF_H evaluates to false.
8576
8577         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8578         GL_GENERATE_STDINT_H.
8579         * modules/stdint (Makefile.am): Remove stdint.h if
8580         GL_GENERATE_STDINT_H evaluates to false.
8581
8582         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8583         GL_GENERATE_SYSEXITS_H.
8584         * modules/sysexits (Makefile.am): Remove sysexits.h if
8585         GL_GENERATE_SYSEXITS_H evaluates to false.
8586
8587         Reported by Karl Berry and Ralf Wildenhues.
8588
8589 2011-04-05  Bruno Haible  <bruno@clisp.org>
8590
8591         Ensure to rebuild generated .h files when config.status has changed.
8592         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8593         config.status.
8594         * modules/ctype (Makefile.am): Likewise.
8595         * modules/dirent (Makefile.am): Likewise.
8596         * modules/errno (Makefile.am): Likewise.
8597         * modules/fcntl-h (Makefile.am): Likewise.
8598         * modules/float (Makefile.am): Likewise.
8599         * modules/getopt-posix (Makefile.am): Likewise.
8600         * modules/glob (Makefile.am): Likewise.
8601         * modules/iconv-h (Makefile.am): Likewise.
8602         * modules/inttypes (Makefile.am): Likewise.
8603         * modules/langinfo (Makefile.am): Likewise.
8604         * modules/locale (Makefile.am): Likewise.
8605         * modules/math (Makefile.am): Likewise.
8606         * modules/netdb (Makefile.am): Likewise.
8607         * modules/netinet_in (Makefile.am): Likewise.
8608         * modules/poll-h (Makefile.am): Likewise.
8609         * modules/pthread (Makefile.am): Likewise.
8610         * modules/pty (Makefile.am): Likewise.
8611         * modules/sched (Makefile.am): Likewise.
8612         * modules/search (Makefile.am): Likewise.
8613         * modules/selinux-h (Makefile.am): Likewise.
8614         * modules/signal (Makefile.am): Likewise.
8615         * modules/spawn (Makefile.am): Likewise.
8616         * modules/stdarg (Makefile.am): Likewise.
8617         * modules/stdbool (Makefile.am): Likewise.
8618         * modules/stddef (Makefile.am): Likewise.
8619         * modules/stdint (Makefile.am): Likewise.
8620         * modules/stdio (Makefile.am): Likewise.
8621         * modules/stdlib (Makefile.am): Likewise.
8622         * modules/string (Makefile.am): Likewise.
8623         * modules/strings (Makefile.am): Likewise.
8624         * modules/sys_file (Makefile.am): Likewise.
8625         * modules/sys_ioctl (Makefile.am): Likewise.
8626         * modules/sys_select (Makefile.am): Likewise.
8627         * modules/sys_socket (Makefile.am): Likewise.
8628         * modules/sys_stat (Makefile.am): Likewise.
8629         * modules/sys_time (Makefile.am): Likewise.
8630         * modules/sys_times (Makefile.am): Likewise.
8631         * modules/sys_utsname (Makefile.am): Likewise.
8632         * modules/sys_wait (Makefile.am): Likewise.
8633         * modules/sysexits (Makefile.am): Likewise.
8634         * modules/termios (Makefile.am): Likewise.
8635         * modules/time (Makefile.am): Likewise.
8636         * modules/unistd (Makefile.am): Likewise.
8637         * modules/wchar (Makefile.am): Likewise.
8638         * modules/wctype-h (Makefile.am): Likewise.
8639         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8640
8641 2011-04-05  Bruno Haible  <bruno@clisp.org>
8642
8643         pipe2: Relicense under LGPLv2+.
8644         * modules/pipe2 (License): Change to LGPLv2+.
8645         Requested by Eric Blake, for libvirt.
8646
8647 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8648
8649         bootstrap: compute gnulib_extra_files after updating build_aux
8650         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8651         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8652
8653 2011-04-05  Eric Blake  <eblake@redhat.com>
8654
8655         bootstrap: preserve git whitelist item sorting
8656         * build-aux/bootstrap (sort_patterns): New function.
8657         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8658
8659 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8660
8661         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8662         sc_space_tab check.
8663
8664 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8665
8666         areadlink, areadlinkat: rewrite in terms of careadlinkat
8667         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8668         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8669         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8670         (malloc, realloc): Remove #undefs.
8671         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8672         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8673         readlink, ssize_t, stdint, unistd.
8674         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8675         areadlink, stdint.
8676
8677         careadlinkat: new module
8678         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8679         * modules/careadlinkat: New files, written by me with
8680         a review and feedback from Ben Pfaff in
8681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8682
8683 2011-04-01  Bruno Haible  <bruno@clisp.org>
8684
8685         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8686         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8687         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8688         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8689         Reported by Bruce Korb <bruce.korb@gmail.com>.
8690
8691 2011-04-01  Bruno Haible  <bruno@clisp.org>
8692
8693         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8694         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8695         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8696         * modules/wcpcpy (Depends-on): Add extensions.
8697         * modules/wcpncpy (Depends-on): Likewise.
8698         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8699         systems.
8700         * doc/posix-functions/wcpncpy.texi: Likewise.
8701         * doc/posix-functions/wcwidth.texi: Likewise.
8702
8703 2011-03-31  Eric Blake  <eblake@redhat.com>
8704
8705         nonblocking: fix mingw test failures
8706         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8707         non-blocking flag on regular file.
8708         (get_nonblocking_flag): Set errno on invalid fd.
8709         * tests/test-nonblocking.c (main): Avoid test failure on
8710         directories if fchdir is not active.
8711         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8712
8713 2011-03-31  Bruno Haible  <bruno@clisp.org>
8714
8715         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8716         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8717         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8718         Reported by Simon Josefsson <simon@josefsson.org>.
8719
8720 2011-03-31  Bruno Haible  <bruno@clisp.org>
8721         and Eric Blake  <eblake@redhat.com>
8722
8723         nonblocking: new module
8724         * modules/nonblocking: New module.
8725         * modules/nonblocking-tests: Likewise.
8726         * lib/nonblocking.h: New file.
8727         * lib/nonblocking.c: Likewise.
8728         * tests/test-nonblocking.c: New test.
8729         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8730
8731 2011-03-30  Bruno Haible  <bruno@clisp.org>
8732
8733         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8734         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8735         instead of 'printf' format for GCC >= 4.4.
8736         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8737         (fprintf, printf, vfprintf, vprintf): Declare with
8738         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8739         the system's vfprintf() function.
8740         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8741
8742 2011-03-30  Eric Blake  <eblake@redhat.com>
8743
8744         passfd: fix scoping bug
8745         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8746         before sendmsg/recvmsg.
8747
8748         passfd: standardize coding conventions
8749         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8750         can be learned at compile time.
8751         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8752         ifdefs.
8753         (sendfd, recvfd): Follow gnulib code conventions.
8754
8755         passfd: fix incorrect sendmsg arguments
8756         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8757         incorrect msg_controllen value.
8758         * modules/passfd-tests (Depends-on): Check for alarm.
8759         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8760         Reported by Bastien ROUCARIES.
8761
8762 2011-03-30  Bruno Haible  <bruno@clisp.org>
8763
8764         c-strcasestr: Relicense under LGPLv2+.
8765         * modules/c-strcasestr (License): Change to LGPLv2+.
8766         Requested by Eric Blake, for libvirt.
8767
8768 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8769
8770         * users.txt: Add libidn2.  Fix libtasn1 link.
8771
8772 2011-03-30  Jim Meyering  <meyering@redhat.com>
8773
8774         tests: readlink* ("",... fails with EINVAL on newer kernels
8775         readlink and readlinkat have typically failed with ENOENT for
8776         the invalid, empty file name,  "".  However, with the advent
8777         of linux-2.6.39, they fail with EINVAL.
8778         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8779         when operating on the empty file name.
8780         * tests/test-readlink.h (test_readlink): Likewise.
8781
8782 2011-03-29  Bruno Haible  <bruno@clisp.org>
8783
8784         Relicense some modules under LGPLv2+, for libidn2.
8785         * modules/array-mergesort (License): Change to LGPLv2+.
8786         * modules/c-strcaseeq (License): Likewise.
8787         * modules/striconveh (License): Likewise.
8788         * modules/striconveha (License): Likewise.
8789         * modules/uniconv/base (License): Likewise.
8790         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8791         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8792         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8793         * modules/unictype/base (License): Likewise.
8794         * modules/unictype/bidiclass-of (License): Likewise.
8795         * modules/unictype/category-M (License): Likewise.
8796         * modules/unictype/category-none (License): Likewise.
8797         * modules/unictype/category-of (License): Likewise.
8798         * modules/unictype/category-test (License): Likewise.
8799         * modules/unictype/category-test-withtable (License): Likewise.
8800         * modules/unictype/combining-class (License): Likewise.
8801         * modules/unictype/joiningtype-of (License): Likewise.
8802         * modules/unictype/scripts (License): Likewise.
8803         * modules/uninorm/base (License): Likewise.
8804         * modules/uninorm/canonical-decomposition (License): Likewise.
8805         * modules/uninorm/composition (License): Likewise.
8806         * modules/uninorm/decompose-internal (License): Likewise.
8807         * modules/uninorm/decomposition-table (License): Likewise.
8808         * modules/uninorm/nfc (License): Likewise.
8809         * modules/uninorm/nfd (License): Likewise.
8810         * modules/uninorm/u32-normalize (License): Likewise.
8811         * modules/unistr/base (License): Likewise.
8812         * modules/unistr/u32-cpy (License): Likewise.
8813         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8814         * modules/unistr/u32-to-u8 (License): Likewise.
8815         * modules/unistr/u32-uctomb (License): Likewise.
8816         * modules/unistr/u8-check (License): Likewise.
8817         * modules/unistr/u8-mblen (License): Likewise.
8818         * modules/unistr/u8-mbtouc (License): Likewise.
8819         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8820         * modules/unistr/u8-mbtoucr (License): Likewise.
8821         * modules/unistr/u8-prev (License): Likewise.
8822         * modules/unistr/u8-strlen (License): Likewise.
8823         * modules/unistr/u8-to-u32 (License): Likewise.
8824         * modules/unistr/u8-uctomb (License): Likewise.
8825         * modules/unitypes (License): Likewise.
8826         Requested by Simon Josefsson.
8827
8828 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8829
8830         lib-symbol-visibility: Add a notice.
8831         * modules/lib-symbol-visibility (Notice): New field.
8832
8833 2011-03-29  Bruno Haible  <bruno@clisp.org>
8834
8835         getaddrinfo: Doc fix.
8836         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8837         section "fixed in Gnulib".
8838
8839 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8840
8841         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8842         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8843
8844 2011-03-26  Bruno Haible  <bruno@clisp.org>
8845
8846         unictype/property-byname: Reduce the number of load-time relocations.
8847         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8848         (UC_PROPERTY_INDEX_*): New enumeration values.
8849         (uc_property_byname): Convert an index from the lookup table to an
8850         uc_property_t.
8851         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8852         values.
8853
8854 2011-03-26  Bruno Haible  <bruno@clisp.org>
8855
8856         unictype/property-byname: Allow omitted word separators and aliases.
8857         * lib/unictype/pr_byname.gperf: Add property names without word
8858         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8859         for 'space'.
8860
8861 2011-03-26  Bruno Haible  <bruno@clisp.org>
8862
8863         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8864         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8865         also hyphens to space.
8866         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8867         without spaces.
8868         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8869
8870 2011-03-26  Bruno Haible  <bruno@clisp.org>
8871
8872         unictype/joiningtype-byname: Recognize long names as well.
8873         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8874         a long name.
8875         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8876         unictype/joiningtype_byname.h.
8877         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8878         * lib/unictype/joiningtype_byname.gperf: New file.
8879         * modules/unictype/joiningtype-byname (Files): Add
8880         lib/unictype/joiningtype_byname.gperf.
8881         (Depends-on): Add gperf.
8882         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8883         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8884         long names.
8885
8886         Tests for module 'unictype/joiningtype-longname'.
8887         * modules/unictype/joiningtype-longname-tests: New file.
8888         * tests/unictype/test-joiningtype_longname.c: New file.
8889
8890         New module 'unictype/joiningtype-longname'.
8891         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8892         * lib/unictype/joiningtype_longname.c: New file.
8893         * modules/unictype/joiningtype-longname: New file.
8894         * modules/unictype/joiningtype-all (Depends-on): Add
8895         unictype/joiningtype-longname.
8896
8897 2011-03-26  Bruno Haible  <bruno@clisp.org>
8898
8899         unictype/bidiclass-byname: Recognize long names as well.
8900         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8901         name.
8902         * lib/unictype/bidi_byname.c: Include <string.h>,
8903         unictype/bidi_byname.h.
8904         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8905         * lib/unictype/bidi_byname.gperf: New file.
8906         * modules/unictype/bidiclass-byname (Files): Add
8907         lib/unictype/bidi_byname.gperf.
8908         (Depends-on): Add gperf.
8909         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8910         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8911         long names.
8912
8913         Tests for module 'unictype/bidiclass-longname'.
8914         * modules/unictype/bidiclass-longname-tests: New file.
8915         * tests/unictype/test-bidi_longname.c: New file.
8916
8917         New module 'unictype/bidiclass-longname'.
8918         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8919         * lib/unictype/bidi_longname.c: New file.
8920         * modules/unictype/bidiclass-longname: New file.
8921         * modules/unictype/bidiclass-all (Depends-on): Add
8922         unictype/bidiclass-longname.
8923
8924 2011-03-26  Bruno Haible  <bruno@clisp.org>
8925
8926         unictype/bidi*: Rename modules.
8927         * modules/unictype/bidiclass-all: Renamed from
8928         modules/unictype/bidicategory-all.
8929         * modules/unictype/bidiclass-name: Renamed from
8930         modules/unictype/bidiclass-name.
8931         (Description): Update.
8932         * modules/unictype/bidiclass-name-tests: Renamed from
8933         modules/unictype/bidicategory-name-tests.
8934         * modules/unictype/bidiclass-byname: Renamed from
8935         modules/unictype/bidicategory-byname.
8936         (Description): Update.
8937         * modules/unictype/bidiclass-byname-tests: Renamed from
8938         modules/unictype/bidicategory-byname-tests.
8939         * modules/unictype/bidiclass-of: Renamed from
8940         modules/unictype/bidicategory-of.
8941         (Description): Update.
8942         * modules/unictype/bidiclass-of-tests: Renamed from
8943         modules/unictype/bidicategory-of-tests.
8944         * modules/unictype/bidiclass-test: Renamed from
8945         modules/unictype/bidicategory-test.
8946         (Description): Update.
8947         * modules/unictype/bidiclass-test-tests: Renamed from
8948         modules/unictype/bidicategory-test-tests.
8949         * modules/unictype/bidicategory-all: New file, a simple redirection.
8950         * modules/unictype/bidicategory-name: Likewise.
8951         * modules/unictype/bidicategory-byname: Likewise.
8952         * modules/unictype/bidicategory-of: Likewise.
8953         * modules/unictype/bidicategory-test: Likewise.
8954         * modules/unictype/property-bidi-* (Dependencies): Update.
8955         * lib/unictype/bidi_*.c: Update comment.
8956
8957 2011-03-26  Bruno Haible  <bruno@clisp.org>
8958
8959         unictype/bidi*: Rename functions, part 2.
8960         * modules/unictype/bidicategory-name (configure.ac): Update required
8961         libunistring version.
8962         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8963
8964 2011-03-25  Bruno Haible  <bruno@clisp.org>
8965
8966         New module 'unictype/combining-class-all'.
8967         * modules/unictype/combining-class-all: New file.
8968
8969         Tests for module 'unictype/combining-class-byname'.
8970         * modules/unictype/combining-class-byname-tests: New file.
8971         * tests/unictype/test-combiningclass_byname.c: New file.
8972
8973         New module 'unictype/combining-class-byname'.
8974         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8975         * lib/unictype/combiningclass_byname.c: New file.
8976         * lib/unictype/combiningclass_byname.gperf: New file.
8977         * modules/unictype/combining-class-byname: New file.
8978
8979         Tests for module 'unictype/combining-class-longname'.
8980         * modules/unictype/combining-class-longname-tests: New file.
8981         * tests/unictype/test-combiningclass_longname.c: New file.
8982
8983         New module 'unictype/combining-class-longname'.
8984         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8985         * lib/unictype/combiningclass_longname.c: New file.
8986         * modules/unictype/combining-class-longname: New file.
8987
8988         Tests for module 'unictype/combining-class-name'.
8989         * modules/unictype/combining-class-name-tests: New file.
8990         * tests/unictype/test-combiningclass_name.c: New file.
8991
8992         New module 'unictype/combining-class-name'.
8993         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8994         * lib/unictype/combiningclass_name.c: New file.
8995         * modules/unictype/combining-class-name: New file.
8996
8997 2011-03-25  Bruno Haible  <bruno@clisp.org>
8998
8999         unictype/combining-class: Rename source files.
9000         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9001         of unictype/combining.h.
9002         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9003         Update.
9004         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9005         * modules/unictype/combining-class (Description): Fix.
9006         (Files, Makefile.am): Update.
9007         * tests/unictype/test-combiningclass.c: Renamed from
9008         tests/unictype/test-combining.c.
9009         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9010
9011 2011-03-25  Bruno Haible  <bruno@clisp.org>
9012
9013         unictype: Update list of canonical combining classes.
9014         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9015
9016 2011-03-25  Bruno Haible  <bruno@clisp.org>
9017
9018         unictype/category-byname: Recognize long names as well.
9019         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9020         a long name.
9021         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9022         unictype/categ_byname.h.
9023         (UC_CATEGORY_INDEX_*): New enumeration values.
9024         (uc_general_category_byname): Use uc_general_category_lookup and
9025         convert from index to value.
9026         * lib/unictype/categ_byname.gperf: New file.
9027         * modules/unictype/category-byname (Files): Add
9028         lib/unictype/categ_byname.gperf.
9029         (Depends-on): Add gperf.
9030         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9031         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9032         long names.
9033
9034         Tests for module 'unictype/category-longname'.
9035         * modules/unictype/category-longname-tests: New file.
9036         * tests/unictype/test-categ_longname.c: New file.
9037
9038         New module 'unictype/category-longname'.
9039         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9040         * lib/unictype/categ_longname.c: New file.
9041         * modules/unictype/category-longname: New file.
9042         * modules/unictype/category-all (Depends-on): Add it.
9043
9044 2011-03-25  Bruno Haible  <bruno@clisp.org>
9045
9046         Tests for module 'unictype/category-LC'.
9047         * modules/unictype/category-LC-tests: New file.
9048         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9049
9050         New module 'unictype/category-LC'.
9051         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9052         (UC_CATEGORY_LC): New declaration.
9053         (UC_CASED_LETTER): New macro.
9054         * lib/gen-uni-tables.c (is_category_LC): New function.
9055         (output_categories): Also handle category LC.
9056         (UC_CATEGORY_MASK_LC): New enumeration value.
9057         (general_category_byname): Also handle category LC.
9058         * lib/unictype/categ_LC.c: New file.
9059         * lib/unictype/categ_LC.h: New file, automatically generated.
9060         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9061         category LC.
9062         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9063         * modules/unictype/category-LC: New file.
9064         * modules/unictype/category-byname (Depends-on): Add
9065         unictype/category-LC.
9066         * modules/unictype/category-all (Depends-on): Likewise.
9067
9068 2011-03-25  Eric Blake  <eblake@redhat.com>
9069
9070         xmalloc: revert yesterday's regression
9071         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9072         realloc's underlying behavior (allowing allocation of zero-size
9073         objects, especially if malloc-gnu is also in use).
9074
9075 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9076
9077         maint.mk: add missing version to VC-tag
9078         * top/maint.mk: git tag was missing actual tag name; add it.
9079
9080         valgrind: do leak checking, and exit with code 1 on error (not 0)
9081         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9082         to VALGRIND.
9083
9084 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9085
9086         posix-modules: say what it does.
9087         * posix-modules: Add a line to the --help output saying what it does.
9088
9089 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9090
9091         xmalloc: Do not leak if underlying realloc is C99 compatible.
9092         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9093         This avoids a leak on C99-based systems.  See
9094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9095
9096 2011-03-24  Eric Blake  <eblake@redhat.com>
9097
9098         realloc: document portability problem
9099         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9100         passing 0 size to realloc.
9101
9102 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9103
9104         doc: update users.txt
9105         * users.txt: Add cvsps, tmpwatch
9106
9107 2011-03-23  Matt Rice  <ratmice@gmail.com>
9108
9109         doc: update users.txt
9110         * users.txt: Add gdb.
9111
9112 2011-03-23  Jim Meyering  <meyering@redhat.com>
9113
9114         doc: update users.txt
9115         Looking through matches up to the following URL (there are still
9116         several more pages), I found several projects that use gnulib:
9117         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9118         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9119         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9120
9121 2011-03-22  Bruno Haible  <bruno@clisp.org>
9122
9123         unictype/bidi*: Rename functions.
9124         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9125         uc_bidi_class, uc_is_bidi_class): New declarations.
9126         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9127         uc_bidi_category_byname.
9128         (uc_bidi_category_byname): New function.
9129         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9130         u_bidi_category_name.
9131         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9132         (uc_bidi_category_name): New function.
9133         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9134         uc_bidi_category.
9135         (uc_bidi_category): New function.
9136         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9137         uc_is_bidi_category. Invoke uc_bidi_class.
9138         (uc_is_bidi_category): New function.
9139         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9140         instead of uc_bidi_category_byname.
9141         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9142         instead of uc_bidi_category_name.
9143         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9144         uc_bidi_category.
9145         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9146         instead of uc_is_bidi_category.
9147
9148 2011-03-21  Bruno Haible  <bruno@clisp.org>
9149
9150         New module 'unictype/joininggroup-all'.
9151         * modules/unictype/joininggroup-all: New file.
9152
9153         Tests for module 'unictype/joininggroup-of'.
9154         * modules/unictype/joininggroup-of-tests: New file.
9155         * tests/unictype/test-joininggroup_of.c: New file.
9156         * tests/unictype/test-joininggroup_of.h: New file, automatically
9157         generated by gen-uni-tables.
9158
9159         New module 'unictype/joininggroup-of'.
9160         * modules/unictype/joininggroup-of: New file.
9161         * lib/unictype/joininggroup_of.c: New file.
9162         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9163         gen-uni-tables.
9164
9165         Tests for module 'unictype/joininggroup-byname'.
9166         * modules/unictype/joininggroup-byname-tests: New file.
9167         * tests/unictype/test-joininggroup_byname.c: New file.
9168
9169         New module 'unictype/joininggroup-byname'.
9170         * modules/unictype/joininggroup-byname: New file.
9171         * lib/unictype/joininggroup_byname.c: New file.
9172         * lib/unictype/joininggroup_byname.gperf: New file.
9173
9174         Tests for module 'unictype/joininggroup-name'.
9175         * modules/unictype/joininggroup-name-tests: New file.
9176         * tests/unictype/test-joininggroup_name.c: New file.
9177
9178         New module 'unictype/joininggroup-name'.
9179         * modules/unictype/joininggroup-name: New file.
9180         * lib/unictype/joininggroup_name.c: New file.
9181         * lib/unictype/joininggroup_name.h: New file.
9182
9183         New module 'unictype/joiningtype-all'.
9184         * modules/unictype/joiningtype-all: New file.
9185
9186         Tests for module 'unictype/joiningtype-of'.
9187         * modules/unictype/joiningtype-of-tests: New file.
9188         * tests/unictype/test-joiningtype_of.c: New file.
9189         * tests/unictype/test-joiningtype_of.h: New file, automatically
9190         generated by gen-uni-tables.
9191
9192         New module 'unictype/joiningtype-of'.
9193         * modules/unictype/joiningtype-of: New file.
9194         * lib/unictype/joiningtype_of.c: New file.
9195         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9196         gen-uni-tables.
9197
9198         Tests for module 'unictype/joiningtype-byname'.
9199         * modules/unictype/joiningtype-byname-tests: New file.
9200         * tests/unictype/test-joiningtype_byname.c: New file.
9201
9202         New module 'unictype/joiningtype-byname'.
9203         * modules/unictype/joiningtype-byname: New file.
9204         * lib/unictype/joiningtype_byname.c: New file.
9205
9206         Tests for module 'unictype/joiningtype-name'.
9207         * modules/unictype/joiningtype-name-tests: New file.
9208         * tests/unictype/test-joiningtype_name.c: New file.
9209
9210         New module 'unictype/joiningtype-name'.
9211         * modules/unictype/joiningtype-name: New file.
9212         * lib/unictype/joiningtype_name.c: New file.
9213
9214         unictype: Add support for Arabic shaping properties.
9215         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9216         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9217         declarations.
9218         (UC_JOINING_GROUP_*): New enumeration values.
9219         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9220         declarations.
9221         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9222         (unicode_joining_type): New variable.
9223         (UC_JOINING_GROUP_*): New enumeration values.
9224         (unicode_joining_group): New variable.
9225         (fill_arabicshaping, joining_type_as_c_identifier,
9226         output_joining_type_test, output_joining_type,
9227         joining_group_as_c_identifier, output_joining_group_test,
9228         output_joining_group): New functions.
9229         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9230         fill_arabicshaping and output_joining_type_test, output_joining_type,
9231         output_joining_group_test, output_joining_group.
9232         Reported by Simon Josefsson.
9233
9234 2011-03-21  Jim Meyering  <meyering@redhat.com>
9235
9236         strftime: fix a bug in yesterday's change
9237         * lib/strftime.c (add): Accommodate width's initial value of -1.
9238         Otherwise, nstrftime would copy uninitialized data into
9239         the result buffer.
9240
9241 2011-03-21  Jim Meyering  <meyering@redhat.com>
9242
9243         tests: add strftime-tests module
9244         * tests/test-strftime.c: New file.
9245         * modules/strftime-tests: New module.
9246
9247 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         strftime: don't assume a byte count fits in 'int'
9250         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9251         found this problem by static analysis, using gcc -Wstrict-overflow
9252         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9253         on an integer overflow having undefined behavior, but it turns out
9254         that the argument is a size, which might not fit in 'int' anyway,
9255
9256 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9257
9258         stdio: don't require ignore_value around fwrite
9259
9260         This patch works around libc bug 11959
9261         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9262         Without this patch, applications must often write
9263         ignore_value (fwrite (...)) even though the ignore_value is
9264         not helpful here.  It's common to write many objects, using
9265         fwrite/printf/etc., and then use ferror to detect output error.
9266
9267         I considered making this patch optional, but decided against it,
9268         because libc is obviously being inconsistent here: there is no
9269         reason libc should insist that user code must inspect fwrite
9270         return's value without also insisting that it inspect printf's,
9271         putchar's, etc.  If user code wants to have a strict style where
9272         all these functions' values are checked (so that ferror need not
9273         be checked), we could add support for that style in a new gnulib
9274         module, but in the meantime it's better to be consistent and to
9275         support common usage.
9276
9277         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9278         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9279         that we are compiling in checking mode, and if not C++, and
9280         if not already wrapping fwrite for some other reason.
9281         (fwrite): #define to rpl_fwrite if the latter is defined.
9282
9283 2011-03-20  Bruno Haible  <bruno@clisp.org>
9284
9285         verror: Fix compilation error introduced on 2011-02-13.
9286         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9287         instead of __attribute__.
9288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9289
9290 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9291             Bruno Haible  <bruno@clisp.org>
9292
9293         socklen: do not depend on sys_socket
9294         While trying to modify Emacs to use gnulib's socklen module,
9295         I discovered a circular dependency: socklen depends on sys_socket
9296         and vice versa.  Emacs can use socklen, but it does not need
9297         sys_socket because it has its own substitute for sys/socket.h.
9298         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9299         gl_TYPE_SOCKLEN_T.
9300         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9301         gl_PREREQ_SYS_H_SOCKET.
9302         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9303         gl_PREREQ_SYS_H_SOCKET.
9304         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9305         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9306         * modules/socklen (Depends-on): Do not depend on sys_socket.
9307         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9308
9309 2011-03-20  Jim Meyering  <meyering@redhat.com>
9310
9311         maint.mk: sort file names *after* new transformation
9312         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9313         prefix would have led to an unwarranted failure in GNU parted.
9314         Sort after that transformation.
9315
9316 2011-03-19  Jim Meyering  <meyering@redhat.com>
9317
9318         maint.mk: fix po-file syntax-check rule
9319         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9320         Patch by Bruno Haible.
9321
9322 2011-03-19  Bruno Haible  <bruno@clisp.org>
9323
9324         socklen: Update comment.
9325         * m4/socklen.m4: Update comment about platforms.
9326
9327 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9328             Bruno Haible  <bruno@clisp.org>
9329
9330         inet_ntop, inet_pton: Simplify.
9331         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9332         documented to provide socklen_t and we already depend on sys_socket.
9333         * modules/inet_pton (Depends-on): Likewise.
9334         * lib/arpa_inet.in.h: Adjust comment.
9335
9336 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9337             Bruno Haible  <bruno@clisp.org>
9338
9339         netdb: Simplify.
9340         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9341         documented to provide socklen_t and we already depend on sys_socket.
9342         * lib/netdb.in.h: Adjust comment.
9343
9344 2011-03-19  Bruno Haible  <bruno@clisp.org>
9345
9346         sys_socket, netdb: Document problem with socklen_t.
9347         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9348         platforms.
9349         * doc/posix-headers/netdb.texi: Likewise.
9350
9351 2011-03-18  Eric Blake  <eblake@redhat.com>
9352
9353         maint.mk: let po check work in VPATH build
9354         * top/maint.mk (po_file): Allow cfg.mk override.
9355         (sc_po_check): Allow VPATH use.
9356         Reported by Jiri Denemark.
9357
9358 2011-03-16  Jim Meyering  <meyering@redhat.com>
9359
9360         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9361         Before, you would have had to create one .x-sc_ file per rule in order
9362         to exempt offending files.  Now, you may instead use a Make variable --
9363         usually defined in cfg.mk -- whose name identifies the affected rule.
9364         * top/maint.mk (_sc_excl): Define.
9365         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9366         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9367
9368 2011-03-13  Bruno Haible  <bruno@clisp.org>
9369
9370         ignore-value tests: Avoid warnings.
9371         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9372         empty for gcc < 3.4.
9373
9374 2011-03-13  Bruno Haible  <bruno@clisp.org>
9375
9376         passfd: Fix link error on Solaris.
9377         * modules/passfd (Description): Correct.
9378         (Depends-on): Add socketlib.
9379         (Link): New section.
9380         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9381
9382 2011-03-13  Bruno Haible  <bruno@clisp.org>
9383
9384         passfd: Fix link error on AIX 5.2.
9385         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9386
9387 2011-03-13  Bruno Haible  <bruno@clisp.org>
9388
9389         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9390         * lib/sys_socket.in.h: Include <stddef.h>.
9391         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9392         CMSG_FIRSTHDR. Remove unused variable.
9393
9394 2011-03-13  Bruno Haible  <bruno@clisp.org>
9395
9396         passfd: Fix compilation error on OpenBSD.
9397         * lib/passfd.c: Include <sys/uio.h>.
9398
9399 2011-03-13  Bruno Haible  <bruno@clisp.org>
9400
9401         passfd test: Fix warnings.
9402         * tests/test-passfd.c: Include <sys/wait.h>.
9403         (main): Fix typo.
9404
9405 2011-03-13  Bruno Haible  <bruno@clisp.org>
9406
9407         passfd module, part 4, tweaks.
9408         * tests/test-passfd.c: Reorder includes.
9409         (main): Fix perror and printf calls.
9410
9411 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9412
9413         passfd module, part 4.
9414         * modules/passfd-tests: New file.
9415         * tests/test-passfd.c: New file.
9416
9417 2011-03-13  Jim Meyering  <meyering@redhat.com>
9418
9419         Makefile: rely on GNU make; derive syntax-check rule names
9420         Rather than requiring that each sc_ rule be listed as a dependent
9421         of "check", use features of GNU make to derive the list.
9422         * Makefile (syntax-check-rules): Define.
9423         (check): Depend on the new variable, not the hard-coded list.
9424
9425 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9426             Bruno Haible  <bruno@clisp.org>
9427
9428         passfd module, part 3.
9429         * lib/passfd.h (recvfd): Add a flags argument.
9430         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9431         (recvfd): Add a flags argument.
9432         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9433         exists.
9434         * modules/passfd (Depends-on): Add cloexec.
9435         Suggested by Eric Blake.
9436
9437 2011-03-13  Bruno Haible  <bruno@clisp.org>
9438
9439         passfd module, part 2, tweaks.
9440         * modules/passfd (Files): Reorder.
9441         (Depends-on): Remove errno.
9442         (Include): Remove <sys/socket.h>, <sys/un.h>.
9443         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9444         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9445         specification header. Include <sys/socket.h> always. Don't include
9446         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9447         (sendfd): Clarify that it sets errno when it fails.
9448         (recvfd): Fix specification.
9449
9450 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9451
9452         passfd module, part 2.
9453         * modules/passfd: New file.
9454         * lib/passfd.h: New file.
9455         * lib/passfd.c: New file.
9456
9457 2011-03-12  Bruno Haible  <bruno@clisp.org>
9458
9459         wcswidth, mbswidth: Avoid integer overflow.
9460         * lib/wcswidth.c: Include <limits.h>.
9461         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9462         * lib/mbswidth.c: Include <limits.h>.
9463         (mbsnwidth): Avoid 'int' overflow.
9464         Reported by Jim Meyering.
9465
9466 2011-03-12  Bruno Haible  <bruno@clisp.org>
9467
9468         futimens, utimensat: Avoid endless recursion on Solaris 10.
9469         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9470         Solaris.
9471         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9472         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9473
9474 2011-03-11  Jim Meyering  <meyering@redhat.com>
9475
9476         maint.mk: relax a regexp to accommodate other formatting styles
9477         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9478         between "ngettext" and the following "(".
9479
9480 2011-03-11  Pádraig Brady <P@draigBrady.com>
9481
9482         maint.mk: suppress a false positive warning
9483         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9484         diagnostics are marked with ngettext.
9485
9486 2011-03-10  Eric Blake  <eblake@redhat.com>
9487
9488         wchar: add explicit dependencies, for Tru64
9489         * modules/mbmemcasecoll (Depends-on): Add wchar.
9490         * modules/mbtowc (Depends-on): Likewise.
9491         * modules/vasnprintf (Depends-on): Likewise.
9492         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9493         * modules/wctomb (Depends-on): Likewise.
9494         Reported by Peter O'Gorman.
9495
9496 2011-03-08  Bruno Haible  <bruno@clisp.org>
9497
9498         passfd module, part 1, tweaks.
9499         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9500         Improve indentation. Improve AC_MSG_CHECKING messages.
9501         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9502         gl_SOCKET_FAMILIES.
9503
9504 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9505
9506         passfd module, part 1.
9507         * m4/afunix.m4: New file.
9508         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9509         sockets.
9510
9511 2011-03-08  Bruno Haible  <bruno@clisp.org>
9512
9513         regex-quote: New API.
9514         * lib/regex-quote.h: Include <stdbool.h>.
9515         (struct regex_quote_spec): New type.
9516         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9517         New declarations.
9518         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9519         'const struct regex_quote_spec *' argument.
9520         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9521         (pcre_special): New constant.
9522         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9523         New functions.
9524         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9525         'const struct regex_quote_spec *' argument.
9526         * modules/regex-quote (Depends-on): Add stdbool.
9527         * tests/test-regex-quote.c (check): Update for new API. Add test for
9528         anchored results.
9529         * NEWS: Mention the API change.
9530         Reported by Reuben Thomas and Eric Blake.
9531
9532 2011-03-06  Bruno Haible  <bruno@clisp.org>
9533
9534         regex-quote: Fix creation of POSIX extended regular expressions.
9535         * lib/regex-quote.c (ere_special): Add grouping and alternation
9536         operators.
9537
9538 2011-03-05  Bruno Haible  <bruno@clisp.org>
9539
9540         doc: Improve doc regarding autopoint vs. gnulib.
9541         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9542         disable autopoint while running autoreconf.
9543         Suggested by Ralf Wildenhues.
9544
9545 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9546
9547         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9548         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9549
9550 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9551
9552         parse-duration: remove xalloc.h dependency
9553         * lib/parse-duration.c (parse_period): handle NULL return from
9554         strdup instead of calling xstrdup().
9555         * modules/parse-duration: remove "xalloc" dependency
9556
9557 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9558
9559         bootstrap: honor m4_base when running aclocal
9560         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9561
9562 2011-03-02  Jim Meyering  <meyering@redhat.com>
9563
9564         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9565         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9566         on request from Matt Booth.
9567
9568 2011-03-01  Eric Blake  <eblake@redhat.com>
9569
9570         test-link: work on Hurd
9571         * tests/test-link.h (test_link): Hurd rejects linking directories
9572         with EISDIR instead of the POSIX-mandated EPERM.
9573
9574 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9575
9576         stdio: simplify by moving files to printf-posix, sigpipe
9577         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9578         since this symbol is needed only if printf is replaced.
9579         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9580         Require gl_ASM_SYMBOL_PREFIX.
9581         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9582         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9583         (Depends-on): Add 'raise'.
9584         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9585         * modules/stdio (Files): Remove lib/stdio-write.c,
9586         m4/asm-underscore.m4.
9587         (Depends-on): Remove 'raise'.
9588
9589         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9590         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9591         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9592         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9593
9594 2011-02-28  Bruno Haible  <bruno@clisp.org>
9595
9596         localcharset: Assume ANSI C behaviour of free().
9597         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9598         calling free().
9599         Suggested by Simon Josefsson <simon@josefsson.org>.
9600
9601 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9602             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9603             Bruno Haible  <bruno@clisp.org>  (tiny change)
9604
9605         On Cygwin, use /proc file system instead of win32 API.
9606         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9607         Win32 file names.
9608         (DllMain): Simplify by removing Cygwin specific code.
9609         (find_shared_library_fullname): Use Linux specific implementation also
9610         for Cygwin.
9611         (get_shared_library_fullname): Update accordingly.
9612         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9613         Win32 file names.
9614         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9615         Cygwin specific code.
9616
9617 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9618             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9619
9620         Fix OpenMP flag detection for various Fortran compilers.
9621         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9622         OpenMP-conditional compilation construct, to force compile
9623         failure with missing OpenMP flag.
9624         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9625
9626 2011-02-25  Eric Blake  <eblake@redhat.com>
9627
9628         strstr: expand test coverage
9629         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9630         compilation.
9631         * tests/test-memmem.c (main): Duplicate tests.
9632         * tests/test-strcasestr.c (main): Likewise.
9633         * tests/test-c-strcasestr.c (main): Likewise.
9634
9635 2011-02-25  Jim Meyering  <meyering@redhat.com>
9636
9637         maint.mk: detect missing-NL-at-EOF, too
9638         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9639         it also detects when a file lacks a newline at EOF.
9640         (require_exactly_one_NL_at_EOF_): Renamed from
9641         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9642         since people may well have .x-sc_... file names tied to the
9643         existing name.  Suggested by Eric Blake.
9644
9645 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9646
9647         dirname: move m4/dos.m4 functionality into lib/dosname.h
9648
9649         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9650         extracts symbols from it, puts them into config.h; but it's much
9651         easier to use the symbols directly.  filename.h already does this,
9652         but it disagrees with dos.m4 in some respects.  This patch
9653         introduces a different include file dosname.h that packages up
9654         dos.m4, and then later we can work on merging filename.h and
9655         dosname.h.  Applications that need only the easy-to-configure
9656         symbols should consider including dosname.h rather than dirname.h.
9657         * NEWS: Mention incompatible changes.
9658         * m4/dos.m4: Remove.
9659         * lib/dosname.h, modules/dosname: New files.
9660         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9661         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9662         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9663         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9664         Include dosname.h, not dirname.h.
9665         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9666         Include dosname.h, for definitions of symbols like ISSLASH
9667         that used to be in config.h.
9668         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9670         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9671         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9672         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9673         * modules/rmdir (Files): Likewise.
9674         * modules/stat (Files): Likewise.
9675         * modules/unlink (Files): Likewise.
9676         * modules/dirname-lgpl (Depends-on): Add dosname.
9677         * modules/lstat (Depends-on): Likewise.
9678         * modules/openat (Depends-on): Likewise.
9679         * modules/rmdir (Depends-on): Likewise.
9680         * modules/savewd (Depends-on): Likewise.
9681         * modules/stat (Depends-on): Likewise.
9682         * modules/unlink (Depends-on): Likewise.
9683         * modules/openat (Depends-on): Remove dirname-lgpl.
9684         * modules/savewd (Depends-on): Likewise.
9685         * tests/test-dirname.c: Do not use removed symbols like
9686         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9687         the remaining symbols, e.g., ISSLASH ('\\').
9688
9689 2011-02-25  Eric Blake  <eblake@redhat.com>
9690
9691         strstr: revert patches that introduced bug and pessimization
9692         * lib/str-two-way.h: Add another reference.
9693         (two_way_short_needle, two_way_long_needle): Revert changes from
9694         2011-02-24; they pessimize search speed.
9695         (critical_factorization): Partially revert changes from
9696         2010-06-22; they violate the requirement that the left half of the
9697         needle be smaller than the period of the needle.
9698
9699 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9700
9701         filenamecat: remove unnecessary dependency on dirname-lgpl
9702         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9703         is no direct dependency, just an indirect one via filenamecat-lgpl.
9704
9705         remove: remove unnecessary use of m4/dos.m4
9706         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9707         * modules/remove (FILES): Remove m4/dos.m4.
9708
9709         * lib/openat-proc.c: Don't include dirname.h; not needed.
9710
9711         backupfile: remove unnecessary use of m4/dos.m4
9712         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9713         of its symbols are used by the backupfile code.  backupfile.c does
9714         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9715         for the rare case of programs that want all their backup file
9716         names to live within 8+3 limits, and dos.m4 doesn't address that.
9717         * modules/backupfile (Files): Remove m4/dos.m4.
9718
9719 2011-02-24  Jim Meyering  <meyering@redhat.com>
9720
9721         strstr: fix a bug whereby strstr would mistakenly return NULL
9722         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9723         in period calculation.
9724         (two_way_long_needle): Likewise.
9725         The original problem was reported by Mike Stump in
9726         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9727         Ralf Wildenhues provided the short needle and haystack.
9728         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9729         Add a more involved test to trigger the bug in two_way_long_needle.
9730
9731 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9732
9733         gnulib-tool: remove use of bold display in help screen
9734         * gnulib-tool (func_usage): Do not use bold display anymore in the
9735         help screen.  That was just meant to be a temporary emphasis for a
9736         backward-incompatible change.
9737
9738 2011-02-23  Bruno Haible  <bruno@clisp.org>
9739
9740         Fix misindentation of preprocessor directives.
9741         * lib/argp-namefrob.h: Reindent preprocessor directives.
9742         * lib/getopt_int.h (struct _getopt_data): Likewise.
9743         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9744         * lib/vasnprintf.c (decode_long_double): Likewise.
9745         * tests/test-argmatch.c: Insert blank lines, for clarity.
9746         * tests/test-exclude.c: Likewise.
9747
9748 2011-02-22  Bruno Haible  <bruno@clisp.org>
9749
9750         ioctl: Fix for MacOS X in 64-bit mode.
9751         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9752         value.
9753         Suggested by Eric Blake.
9754         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9755
9756 2011-02-22  Jim Meyering  <meyering@redhat.com>
9757
9758         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9759         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9760         in lib/.
9761
9762 2011-02-22  Eric Blake  <eblake@redhat.com>
9763
9764         maint: avoid any CDPATH issue
9765         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9766
9767         maint: adjust cpp indentation for my modules, as well
9768         * Makefile (sc_cpp_indent_check): Add my name.
9769         * lib/fbufmode.c: Filter through cppi.
9770         * lib/fpurge.c: Likewise.
9771         * lib/freadable.c: Likewise.
9772         * lib/freading.c: Likewise.
9773         * lib/fwritable.c: Likewise.
9774         * lib/fwriting.c: Likewise.
9775         * lib/sigaction.c: Likewise.
9776
9777 2011-02-22  Jim Meyering  <meyering@redhat.com>
9778
9779         maint: adjust cpp indentation to reflect nesting depth
9780         I.e., in a block of code that begins with an unnested "#if",
9781         put one space between the "#" in column 1 and following token.
9782         For example,
9783         -#include <sys/vfs.h>
9784         +# include <sys/vfs.h>
9785         Do this only in .c files that are part of a module I maintain.
9786         * lib/linkat.c: Filter through cppi.
9787         * lib/nanosleep.c: Likewise.
9788         * lib/openat.c: Likewise.
9789         * lib/openat-die.c: Likewise.
9790         * lib/dup3.c: Likewise.
9791         * lib/fchownat.c: Likewise.
9792         * lib/flock.c: Likewise.
9793         * lib/fsync.c: Likewise.
9794         * lib/fts.c: Likewise.
9795         * lib/getpass.c: Likewise.
9796         * lib/gettimeofday.c: Likewise.
9797         * lib/userspec.c: Likewise.
9798         * Makefile (sc_cpp_indent_check): New rule, to check this.
9799
9800 2011-02-22  Bruno Haible  <bruno@clisp.org>
9801
9802         New module 'wctomb'.
9803         * lib/stdlib.in.h (wctomb): New declaration.
9804         * lib/wctomb.c: New file.
9805         * lib/wctomb-impl.h: New file.
9806         * m4/wctomb.m4: New file.
9807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9808         REPLACE_WCTOMB.
9809         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9810         REPLACE_WCTOMB.
9811         * modules/wctomb: New file.
9812         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9813         * doc/posix-functions/wctomb.texi: Mention the new module.
9814         * modules/wctob (Depends-on): Add wctomb.
9815
9816 2011-02-22  Bruno Haible  <bruno@clisp.org>
9817
9818         New module 'mbtowc'.
9819         * lib/stdlib.in.h (mbtowc): New declaration.
9820         * lib/mbtowc.c: New file.
9821         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9822         * m4/mbtowc.m4: New file.
9823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9824         REPLACE_MBTOWC.
9825         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9826         REPLACE_MBTOWC.
9827         * modules/mbtowc: New file.
9828         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9829         * doc/posix-functions/mbtowc.texi: Mention the new module.
9830         * modules/btowc (Depends-on): Add mbtowc.
9831
9832 2011-02-22  Bruno Haible  <bruno@clisp.org>
9833
9834         wcrtomb: Add more tests for native Windows platforms.
9835         * tests/test-wcrtomb-w32-1.sh: New file.
9836         * tests/test-wcrtomb-w32-2.sh: New file.
9837         * tests/test-wcrtomb-w32-3.sh: New file.
9838         * tests/test-wcrtomb-w32-4.sh: New file.
9839         * tests/test-wcrtomb-w32-5.sh: New file.
9840         * tests/test-wcrtomb-w32.c: New file.
9841         * modules/wcrtomb-tests (Files): Add them.
9842         (Makefile.am): Arrange to run these tests.
9843         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9844         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9845
9846 2011-02-20  Bruno Haible  <bruno@clisp.org>
9847
9848         wcrtomb: Enhance test.
9849         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9850
9851 2011-02-20  Bruno Haible  <bruno@clisp.org>
9852
9853         mbrtowc: Tiny optimization.
9854         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9855
9856 2011-02-20  Jim Meyering  <meyering@redhat.com>
9857
9858         test-exclude.c: remove unmatched #endif
9859         * tests/test-exclude.c: Remove stray #endif, left over from
9860         the change of a week ago.
9861
9862 2011-02-19  Jim Meyering  <meyering@redhat.com>
9863
9864         git-version-gen: skip "-dirty" check when appropriate
9865         * build-aux/git-version-gen: Don't run any git commands when the
9866         version string comes from .tarball-version.  Prior to this, we
9867         would run git update-index --refresh even from a just-unpacked
9868         tarball directory, and that could affect a .git/ directory in a
9869         parent of the build directory.  Reported by Mike Frysinger.
9870
9871 2011-02-19  Bruno Haible  <bruno@clisp.org>
9872
9873         unictype/property-byname: Reduce the size of the 'data' segment.
9874         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9875
9876 2011-02-19  Bruno Haible  <bruno@clisp.org>
9877
9878         unictype/scripts: Reduce the size of the 'data' segment.
9879         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9880         '%pic'.
9881         * lib/unictype/scripts_byname.gperf: Regenerated.
9882
9883 2011-02-19  Bruno Haible  <bruno@clisp.org>
9884
9885         stdint: Update documentation.
9886         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9887
9888 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9889
9890         stdint: omit redundant check for wchar.h
9891         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9892         always tests whether wchar.h exists, so remove the now-redundant test.
9893
9894 2011-02-18  Bruno Haible  <bruno@clisp.org>
9895
9896         stdint: Cut dependency to module 'wchar'.
9897         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9898         include the necessary prerequisites.
9899         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9900         * modules/stdint (Depends-on): Remove wchar.
9901         (Makefile.am): Substitute HAVE_WCHAR_H.
9902         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9903
9904 2011-02-18  Eric Blake  <eblake@redhat.com>
9905
9906         longlong: skip, rather than fail, on cross-compilation
9907         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9908         when cross-compiling; regression from 2011-02-16.
9909
9910 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9911
9912         * NEWS: Mention 2011-02-08 change to stdlib.
9913
9914 2011-02-17  Bruno Haible  <bruno@clisp.org>
9915
9916         getloadavg: Add comments about platforms.
9917         * m4/getloadavg.m4: Add comment.
9918         * lib/getloadavg.c: Likewise.
9919
9920 2011-02-17  Bruno Haible  <bruno@clisp.org>
9921
9922         getloadavg: Fix link error on Solaris 2.6.
9923         * modules/getloadavg (Link): New section.
9924         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9925         linking test-getloadavg.
9926         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9927         getloadavg.
9928
9929 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9930
9931         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9932         It was 'int', but this doesn't match the IRIX 6.5 manual.
9933         Suggested by Bruno Haible in
9934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9935
9936 2011-02-17  Bruno Haible  <bruno@clisp.org>
9937
9938         havelib: Fix comments.
9939         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9940         change.
9941
9942 2011-02-17  Bruno Haible  <bruno@clisp.org>
9943
9944         havelib: Update config.rpath.
9945         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9946
9947 2011-02-17  Bruno Haible  <bruno@clisp.org>
9948
9949         getloadavg test: Add some plausibility checks.
9950         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9951         is improbable.
9952
9953 2011-02-16  Eric Blake  <eblake@redhat.com>
9954
9955         maintainer-makefile: make syntax-check a no-op from tarballs
9956         * top/maint.mk (no-vc-detected): New rule.
9957         (local-checks-available): Use it to avoid hanging if someone tries
9958         'make syntax-check' from a tarball.  Also append to any non-syntax
9959         checks already defined in cfg.mk.
9960
9961 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9962
9963         longlong: tune, particularly for common case of c99
9964
9965         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9966         or running anything if c99, or if unsigned long long int does not
9967         work.  In either case, we know the answer without further tests.
9968         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9969         it at most once, and use its results for both long long int and
9970         unsigned long long int.  This is more likely to be efficient in
9971         the common case where the program wants to check for both long
9972         long int and unsigned long long int.
9973         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9974         since the answer is already known.
9975
9976 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9977
9978         getloadavg: set errno
9979         * lib/getloadavg.c: Set errno when returning -1.  If no other
9980         error number looks appropriate, set it to ENOSYS if the getloadavg
9981         looks like it can't possibly ever work, ENOTSUP otherwise.
9982         Suggested by Bruno Haible in
9983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9984
9985         getloadavg: trim unused parts and speed up 'configure'
9986         * NEWS: Document this.
9987         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9988         always compiled if getloadavg is absent.
9989         Move test code to ...
9990         * tests/test-getloadavg.c: New file, containing previous
9991         contents of test from lib/getloadavg.c.  It also contains
9992         suggestions by Bruno Haible in
9993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9994         * modules/getloadavg-tests: New file.
9995         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9996         Do tests in the same order as they're needed for getloadavg.c.
9997         Omit setgid-related tests that generate symbols KMEM_GROUP,
9998         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9999         Do only the tests that are needed to see whether the system has
10000         getloadavg, moving the other tests into ...
10001         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10002         NLIST_NAME_UNION; nobody should be using it.  Do not define
10003         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10004         relevant, as the user of this module shouldn't care how getloadavg
10005         is implemented.
10006
10007         getloadavg: omit unused var
10008         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10009
10010 2011-02-15  Jim Meyering  <meyering@redhat.com>
10011
10012         doc: update users.txt
10013         * users.txt: Update iwhd's URL.
10014
10015 2011-02-13  Bruno Haible  <bruno@clisp.org>
10016
10017         Consistent macro naming for macros that use GCC __attribute__.
10018         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10019         _ATTRIBUTE_NONNULL_.
10020         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10021         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10022         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10023         ATTRIBUTE_DEPRECATED.
10024         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10025         ATTRIBUTE_NORETURN.
10026         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10027         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10028         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10029         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10030         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10031         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10032         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10033         ATTRIBUTE_SENTINEL.
10034         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10035         ATTRIBUTE_RETURN_CHECK.
10036         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10037         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10038         ATTRIBUTE_NORETURN.
10039         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10040         Reported by Paul Eggert.
10041
10042 2011-02-13  Bruno Haible  <bruno@clisp.org>
10043
10044         Don't interfere with a program's definition of __attribute__.
10045         * lib/argp.h (__attribute__): Remove definition.
10046         (_GL_ATTRIBUTE_FORMAT): New macro.
10047         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10048         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10049         (_GL_ATTRIBUTE_FORMAT): New macro.
10050         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10051         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10052         GCC 3 or newer.
10053         * lib/error.h (__attribute__): Remove definition.
10054         (_GL_ATTRIBUTE_FORMAT): New macro.
10055         (error, error_at_line): Use it.
10056         * lib/hash.h (__attribute__): Remove definition.
10057         (ATTRIBUTE_WUR): Update definition. Define always.
10058         * lib/openat.h (__attribute__): Remove definition.
10059         (ATTRIBUTE_NORETURN): Update definition. Define always.
10060         * lib/sigpipe-die.h (__attribute__): Remove definition.
10061         (ATTRIBUTE_NORETURN): Update definition. Define always.
10062         * lib/vasnprintf.h (__attribute__): Remove definition.
10063         (_GL_ATTRIBUTE_FORMAT): New macro.
10064         (asnprintf, vasnprintf): Use it.
10065         * lib/xalloc.h (__attribute__): Remove definition.
10066         (ATTRIBUTE_NORETURN): Update definition. Define always.
10067         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10068         * lib/xmemdup0.h (__attribute__): Remove definition.
10069         (ATTRIBUTE_NORETURN): Update definition. Define always.
10070         * lib/xprintf.h (__attribute__): Remove definition.
10071         (_GL_ATTRIBUTE_FORMAT): New macro.
10072         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10073         * lib/xstrtol.h (__attribute__): Remove definition.
10074         (ATTRIBUTE_NORETURN): Update definition. Define always.
10075         * lib/xvasprintf.h (__attribute__): Remove definition.
10076         (_GL_ATTRIBUTE_FORMAT): New macro.
10077         (xasprintf, xvasprintf): Use it.
10078         * tests/test-argmatch.c (__attribute__): Remove definition.
10079         (ATTRIBUTE_NORETURN): Update definition. Define always.
10080         * tests/test-exclude.c (__attribute__): Remove definition.
10081         (ATTRIBUTE_NORETURN): Update definition. Define always.
10082         Reported by Paul Eggert.
10083
10084 2011-02-13  Bruno Haible  <bruno@clisp.org>
10085
10086         mbrtowc: Add more tests for native Windows platforms.
10087         * tests/test-mbrtowc-w32-1.sh: New file.
10088         * tests/test-mbrtowc-w32-2.sh: New file.
10089         * tests/test-mbrtowc-w32-3.sh: New file.
10090         * tests/test-mbrtowc-w32-4.sh: New file.
10091         * tests/test-mbrtowc-w32-5.sh: New file.
10092         * tests/test-mbrtowc-w32.c: New file.
10093         * modules/mbrtowc-tests (Files): Add them.
10094         (Makefile.am): Arrange to run these tests.
10095         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10096         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10097
10098 2011-02-13  Bruno Haible  <bruno@clisp.org>
10099
10100         mbrtowc: Work around native Windows bug.
10101         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10102         guess when no suitable locale for testing was found.
10103         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10104
10105 2011-02-13  Bruno Haible  <bruno@clisp.org>
10106
10107         mbsinit: Work around mingw bug.
10108         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10109         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10110         Windows.
10111         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10112
10113 2011-02-13  Bruno Haible  <bruno@clisp.org>
10114
10115         mbsinit: Don't crash for a NULL argument.
10116         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10117         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10118
10119 2011-02-13  Bruno Haible  <bruno@clisp.org>
10120
10121         Don't interfere with a program's definition of __attribute__.
10122         * lib/stdio.in.h (__attribute__): Remove definition.
10123         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10124         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10125         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10126         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10127         * lib/string.in.h (__attribute__): Remove definition.
10128         Reported by Paul Eggert.
10129
10130 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         stdlib: don't get in the way of non-GCC __attribute__
10133         See thread starting at
10134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10135         Revert previous stdlib change, installing the following instead:
10136         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10137         to get in the way of a non-GCC compiler that supports __attribute__.
10138         (_GL_ATTRIBUTE_RETURN): New macro.
10139         (_Exit): Use it instead of __attribute__.
10140
10141 2011-02-12  Bruno Haible  <bruno@clisp.org>
10142
10143         quotearg test: Avoid test failure on mingw.
10144         * tests/test-quotearg.sh: Convert the locale identifier from native
10145         Windows syntax to Unix syntax.
10146
10147 2011-02-12  Bruno Haible  <bruno@clisp.org>
10148
10149         setlocale: Prefer gnulib's override over libintl's override.
10150         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10151         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10152         GNULIB_defined_setlocale is set.
10153
10154 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10155
10156         stdlib: support non-GCC __attribute__
10157
10158         Fix a serious and tricky problem encountered when attempting to
10159         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10160         5.5, but it crashed due to memory corruption on Solaris 10 with
10161         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10162         bits that are otherwise zero.  This tagging is optional inside
10163         Emacs but is preferred and is used when __attribute__ ((__aligned
10164         (8))) works, as it does with both recent-enough GCC and with Sun C
10165         5.11.  However, Sun C 5.11 is not GCC and does not #define
10166         __GNUC__ and __GNUC_MINOR__.
10167
10168         When I added the getloadavg module to Emacs, it brought in
10169         stdlib.in.h, which contained this fragment:
10170
10171            #ifndef __attribute__
10172            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10173            #  define __attribute__(Spec)   /* empty */
10174            # endif
10175            #endif
10176
10177         When files that include <stdlib.h> were compiled with Sun C 5.11,
10178         the above code disabled __attribute__ ((__aligned (8))), which
10179         caused variables to not be properly aligned, which eventually led
10180         to the pointer corruption mentioned above.  (This was a bit hard
10181         to diagnose, unfortunately.)
10182
10183         Several "#define __attribute__(X) /* empty */" code snippets need
10184         to be eradicated from Gnulib to work with non-GCC compilers that
10185         support __attribute__.  The Autoconf way to do this is to test for
10186         each kind of attribute that we want support for, and selectively
10187         enable that in source code.
10188
10189         Fix this problem just for stdlib.h, by adding a test for the
10190         __noreturn__ attribute, and change stdlib.in.h to use that test
10191         when needed.  This technique can be easily generalized to the
10192         other *.in.h files and attributes, and a similar technique can be
10193         used for *.h and *.c files.  This patch is enough to solve the
10194         problem for Emacs + getloadavg, and I thought I'd publish it for
10195         feedback before undertaking further, similar fixes in other
10196         modules.
10197
10198         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10199         because it's not needed for stdlib.h.  It merely substitutes the
10200         value directly into stdlib.h.  We may well need to #define it, or
10201         similar symbols, for other modules, but it's nice to also have an
10202         option to not #define it for applications like Emacs that do not
10203         need it.
10204
10205         * lib/stdlib.in.h (__attribute__): Do not #define.
10206         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10207         be defined only if the _Exit module is also used.
10208         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10210         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10211         platforms.
10212         * modules/_Exit (Files): Add m4/attribute.m4.
10213         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10214         * m4/attribute.m4: New file.
10215
10216 2011-02-12  Bruno Haible  <bruno@clisp.org>
10217
10218         wcsrtombs: Work around bug on native Windows.
10219         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10220         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10221         instead of len.
10222         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10223
10224 2011-02-12  Bruno Haible  <bruno@clisp.org>
10225
10226         mbsrtowcs: Work around bug on native Windows.
10227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10228         against mingw bug.
10229         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10230
10231 2011-02-12  Bruno Haible  <bruno@clisp.org>
10232
10233         Avoid setlocale bugs in tests.
10234         * modules/btowc (Dependencies): Add setlocale.
10235         * modules/c-strcase (Dependencies): Likewise.
10236         * modules/mbmemcasecmp (Dependencies): Likewise.
10237         * modules/mbmemcasecoll (Dependencies): Likewise.
10238         * modules/mbrtowc (Dependencies): Likewise.
10239         * modules/mbscasecmp (Dependencies): Likewise.
10240         * modules/mbscasestr (Dependencies): Likewise.
10241         * modules/mbschr (Dependencies): Likewise.
10242         * modules/mbscspn (Dependencies): Likewise.
10243         * modules/mbsinit (Dependencies): Likewise.
10244         * modules/mbsncasecmp (Dependencies): Likewise.
10245         * modules/mbsnrtowcs (Dependencies): Likewise.
10246         * modules/mbspbrk (Dependencies): Likewise.
10247         * modules/mbspcasecmp (Dependencies): Likewise.
10248         * modules/mbsrchr (Dependencies): Likewise.
10249         * modules/mbsrtowcs (Dependencies): Likewise.
10250         * modules/mbsspn (Dependencies): Likewise.
10251         * modules/mbsstr (Dependencies): Likewise.
10252         * modules/nl_langinfo (Dependencies): Likewise.
10253         * modules/quotearg (Dependencies): Likewise.
10254         * modules/unicase/locale-language (Dependencies): Likewise.
10255         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10256         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10257         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10258         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10259         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10260         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10261         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10262         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10263         * modules/vasnprintf-posix (Dependencies): Likewise.
10264         * modules/wcrtomb (Dependencies): Likewise.
10265         * modules/wcsnrtombs (Dependencies): Likewise.
10266         * modules/wcsrtombs (Dependencies): Likewise.
10267
10268 2011-02-12  Bruno Haible  <bruno@clisp.org>
10269
10270         setlocale: Workaround native Windows bug.
10271         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10272         succeeds but sets LC_CTYPE to "C", report a failure.
10273         * tests/test-setlocale2.sh: New file.
10274         * tests/test-setlocale2.c: New file.
10275         * modules/setlocale-tests (Files): Add the new files.
10276         (Makefile.am): Enable test-setlocale2.sh test.
10277         * doc/posix-functions/setlocale.texi: Mention workaround.
10278
10279 2011-02-11  Bruno Haible  <bruno@clisp.org>
10280
10281         Tests for module 'setlocale'.
10282         * modules/setlocale-tests: New file.
10283         * tests/test-setlocale1.sh: New file.
10284         * tests/test-setlocale1.c: New file.
10285
10286         New module 'setlocale'.
10287         * lib/locale.in.h (setlocale): New declaration.
10288         * lib/setlocale.c: New file, based on
10289         gettext/gettext-runtime/intl/setlocale.c.
10290         * m4/setlocale.m4: New file.
10291         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10292         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10293         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10294         REPLACE_SETLOCALE.
10295         * modules/setlocale: New file.
10296         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10297         * doc/posix-functions/setlocale.texi: Mention the new module.
10298
10299 2011-02-11  Bruno Haible  <bruno@clisp.org>
10300
10301         Prepare for locale dependent tests on mingw.
10302         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10303         because it has the wrong locale encoding.
10304         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10305         French_France.1252 instead of "fr".
10306         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10307         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10308         because it has the wrong locale encoding.
10309         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10310         native Windows, try Turkish_Turkey.65001.
10311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10312         Chinese_China.54936.
10313
10314         Prepare for locale dependent tests on mingw.
10315         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10316         differently.
10317         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10318         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10319         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10320         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10321
10322 2011-02-11  Eric Blake  <eblake@redhat.com>
10323
10324         strptime: avoid compiler warnings
10325         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10326         compiler warnings about dead code.
10327         Reported by Daniel P. Berrange.
10328
10329 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10330
10331         doc: update users.txt
10332         * users.txt: Add rcs.
10333
10334 2011-02-10  John W. Eaton  <jwe@gnu.org>
10335
10336         doc: update users.txt
10337         * users.txt: Add octave.
10338
10339 2011-02-10  Jim Meyering  <meyering@redhat.com>
10340
10341         doc: update users.txt
10342         * users.txt: Add iwhd.
10343
10344 2011-02-09  Bruno Haible  <bruno@clisp.org>
10345
10346         gnulib-tool: Make copyright notice adjustment more robust.
10347         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10348         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10349         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10350         License".
10351         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10352
10353 2011-02-06  Bruno Haible  <bruno@clisp.org>
10354
10355         New module 'towctrans'.
10356         * modules/towctrans: New file.
10357         * lib/wctype.in.h (towctrans): New declaration.
10358         * lib/towctrans.c: New file.
10359         * lib/towctrans-impl.h: New file.
10360         * m4/towctrans.m4: New file.
10361         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10362         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10363         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10364         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10365         * doc/posix-functions/towctrans.texi: Mention the new module.
10366
10367 2011-02-06  Bruno Haible  <bruno@clisp.org>
10368
10369         New module 'wctrans'.
10370         * modules/wctrans: New file.
10371         * lib/wctype.in.h (wctrans): New declaration.
10372         * lib/wctrans.c: New file.
10373         * lib/wctrans-impl.h: New file.
10374         * m4/wctrans.m4: New file.
10375         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10376         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10377         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10378         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10379         * doc/posix-functions/wctrans.texi: Mention the new module.
10380
10381 2011-02-06  Bruno Haible  <bruno@clisp.org>
10382
10383         New module 'iswctype'.
10384         * modules/iswctype: New file.
10385         * lib/wctype.in.h (iswctype): New declaration.
10386         * lib/iswctype.c: New file.
10387         * lib/iswctype-impl.h: New file.
10388         * m4/iswctype.m4: New file.
10389         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10390         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10391         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10392         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10393         * doc/posix-functions/iswctype.texi: Mention the new module and the
10394         HP-UX 11.00 problem.
10395
10396 2011-02-06  Bruno Haible  <bruno@clisp.org>
10397
10398         New module 'wctype'.
10399         * modules/wctype: Change to represent the wctype() substitute.
10400         * lib/wctype.in.h (wctype): New declaration.
10401         * lib/wctype.c: New file.
10402         * lib/wctype-impl.h: New file.
10403         * m4/wctype.m4: New file.
10404         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10405         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10406         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10407         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10408         * doc/posix-functions/wctype.texi: Mention the new module and the
10409         HP-UX 11.00 problem.
10410
10411 2011-02-06  Bruno Haible  <bruno@clisp.org>
10412
10413         wctype-h: Ensure wctype_t and wctrans_t are defined.
10414         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10415         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10416         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10417         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10418         HAVE_WCTRANS_T.
10419         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10420
10421 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         flock: fix license typo
10424
10425         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10426         omitted.
10427
10428 2011-02-08  Bruno Haible  <bruno@clisp.org>
10429
10430         Split large sed scripts, for HP-UX sed.
10431         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10432         to avoid HP-UX limit of 99 commands, in the near future.
10433         * modules/stdlib (Makefile.am): Likewise.
10434         * modules/unistd (Makefile.am): Likewise.
10435         * modules/wchar (Makefile.am): Likewise.
10436         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10437         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10439
10440 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10441             Bruno Haible  <bruno@clisp.org>
10442
10443         stdlib: improve random_r modularization
10444         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10445         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10446         you also need the random_r module to get this material right.
10447         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10448         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10449         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10450
10451 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10452
10453         stdlib: don't depend on stdint
10454         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10455         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10456         be independent of whether stdint.h is needed.
10457         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10458         here, instead of ...
10459         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10460         struct random_data should be using the random_r module, not just
10461         the stdlib module (which wouldn't make sense: what package needs
10462         just struct random_data without also needing random_r?).
10463         * modules/stdlib (Depends-on): Remove stdint.
10464
10465         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10466         See the thread rooted at
10467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10468         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10469         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10470         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10471         __VMS)); previously it was always included (via fcntl--.h).
10472         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10473         hand; this is good enough for load averages.  Also, do not use
10474         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10475         flags directly if available and don't bother otherwise.  (Packages
10476         that need the extra reliability should use the modules that define
10477         these flags on older platforms that lack them.)
10478         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10479         fcntl-safer.
10480
10481 2011-02-08  Jim Meyering  <meyering@redhat.com>
10482
10483         di-set.h, ino-map.h: add multiple-inclusion guard
10484         Technically, the guard is required only for ino-map.h, due to its
10485         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10486         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10487         * lib/ino-map.h: Likewise.
10488
10489 2011-02-06  Bruno Haible  <bruno@clisp.org>
10490
10491         iswblank: Ensure declaration on glibc systems.
10492         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10493         * modules/iswblank (Dependencies): Add 'extensions'.
10494         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10495
10496 2011-02-06  Bruno Haible  <bruno@clisp.org>
10497
10498         New module 'iswblank'.
10499         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10500         * modules/iswblank: New file.
10501         * modules/wctype-h (Files): Remove lib/iswblank.c.
10502         (Makefile.am): Substitute GNULIB_ISWBLANK.
10503         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10504         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10505         (gl_WCTYPE_H_DEFAULTS): New macro.
10506         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10507         * modules/iswblank-tests: New file.
10508         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10509         * tests/test-wctype-h.c (main): Remove iswblank tests.
10510         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10511         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10512         of 'wctype-h'.
10513         * NEWS: Mention the change.
10514         * modules/mbchar (Depends-on): Add iswblank.
10515
10516 2011-02-08  Bruno Haible  <bruno@clisp.org>
10517
10518         di-set tests: Refactor.
10519         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10520         unnecessary includes.
10521         (ASSERT): Remove macro.
10522         (main): Make C90 compliant by avoiding variable declaration after
10523         statement.
10524         * modules/di-set-tests (Files): Add tests/macros.h.
10525
10526 2011-02-08  Bruno Haible  <bruno@clisp.org>
10527
10528         ino-map tests: Refactor.
10529         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10530         unnecessary includes.
10531         (ASSERT): Remove macro.
10532         (main): Make C90 compliant by avoiding variable declaration after
10533         statement.
10534         * modules/ino-map-tests (Files): Add tests/macros.h.
10535
10536 2011-02-08  Jim Meyering  <meyering@redhat.com>
10537
10538         di-set: add "const" to a cast
10539         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10540         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10541
10542 2011-02-06  Bruno Haible  <bruno@clisp.org>
10543
10544         Rename module 'wctype' to 'wctype-h'.
10545         * modules/wctype-h: Renamed from modules/wctype.
10546         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10547         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10548         (Files, Depends-on, Makefile.am): Update.
10549         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10550         (Files, Makefile.am): Update.
10551         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10552         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10553         * doc/posix-headers/wctype.texi: Update.
10554         * doc/posix-functions/iswalnum.texi: Update.
10555         * doc/posix-functions/iswalpha.texi: Update.
10556         * doc/posix-functions/iswblank.texi: Update.
10557         * doc/posix-functions/iswcntrl.texi: Update.
10558         * doc/posix-functions/iswdigit.texi: Update.
10559         * doc/posix-functions/iswgraph.texi: Update.
10560         * doc/posix-functions/iswlower.texi: Update.
10561         * doc/posix-functions/iswprint.texi: Update.
10562         * doc/posix-functions/iswpunct.texi: Update.
10563         * doc/posix-functions/iswspace.texi: Update.
10564         * doc/posix-functions/iswupper.texi: Update.
10565         * doc/posix-functions/iswxdigit.texi: Update.
10566         * doc/posix-functions/towlower.texi: Update.
10567         * doc/posix-functions/towupper.texi: Update.
10568         * NEWS: Mention the change.
10569         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10570         * modules/mbchar (Dependencies): Likewise.
10571         * modules/mbswidth (Dependencies): Likewise.
10572         * modules/quotearg (Dependencies): Likewise.
10573         * modules/regex (Dependencies): Likewise.
10574         * modules/wcscasecmp (Dependencies): Likewise.
10575         * modules/wcsncasecmp (Dependencies): Likewise.
10576         * modules/wcwidth (Dependencies): Likewise.
10577
10578 2011-02-06  Bruno Haible  <bruno@clisp.org>
10579
10580         New module 'wcswidth'.
10581         * modules/wcswidth: New file.
10582         * lib/wchar.in.h (wcswidth): New declaration.
10583         * lib/wcswidth.c: New file.
10584         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10585         * m4/wcswidth.m4: New file.
10586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10588         REPLACE_WCSWIDTH.
10589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10590         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10591         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10592         * doc/posix-functions/wcswidth.texi: Mention the new module.
10593
10594 2011-02-06  Bruno Haible  <bruno@clisp.org>
10595
10596         New module 'wcstok'.
10597         * modules/wcstok: New file.
10598         * lib/wchar.in.h (wcstok): New declaration.
10599         * lib/wcstok.c: New file.
10600         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10601         * m4/wcstok.m4: New file.
10602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10605         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10606         * doc/posix-functions/wcstok.texi: Mention the new module.
10607
10608 2011-02-06  Bruno Haible  <bruno@clisp.org>
10609
10610         New module 'wcsstr'.
10611         * modules/wcsstr: New file.
10612         * lib/wchar.in.h (wcsstr): New declaration.
10613         * lib/wcsstr.c: New file.
10614         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10615         * m4/wcsstr.m4: New file.
10616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10619         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10620         * doc/posix-functions/wcsstr.texi: Mention the new module.
10621
10622 2011-02-06  Bruno Haible  <bruno@clisp.org>
10623
10624         New module 'wcspbrk'.
10625         * modules/wcspbrk: New file.
10626         * lib/wchar.in.h (wcspbrk): New declaration.
10627         * lib/wcspbrk.c: New file.
10628         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10629         * m4/wcspbrk.m4: New file.
10630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10633         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10634         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10635
10636 2011-02-06  Bruno Haible  <bruno@clisp.org>
10637
10638         New module 'wcsspn'.
10639         * modules/wcsspn: New file.
10640         * lib/wchar.in.h (wcsspn): New declaration.
10641         * lib/wcsspn.c: New file.
10642         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10643         * m4/wcsspn.m4: New file.
10644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10647         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10648         * doc/posix-functions/wcsspn.texi: Mention the new module.
10649
10650 2011-02-06  Bruno Haible  <bruno@clisp.org>
10651
10652         New module 'wcscspn'.
10653         * modules/wcscspn: New file.
10654         * lib/wchar.in.h (wcscspn): New declaration.
10655         * lib/wcscspn.c: New file.
10656         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10657         * m4/wcscspn.m4: New file.
10658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10661         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10662         * doc/posix-functions/wcscspn.texi: Mention the new module.
10663
10664 2011-02-06  Bruno Haible  <bruno@clisp.org>
10665
10666         New module 'wcsrchr'.
10667         * modules/wcsrchr: New file.
10668         * lib/wchar.in.h (wcsrchr): New declaration.
10669         * lib/wcsrchr.c: New file.
10670         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10671         * m4/wcsrchr.m4: New file.
10672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10675         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10676         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10677
10678 2011-02-06  Bruno Haible  <bruno@clisp.org>
10679
10680         New module 'wcschr'.
10681         * modules/wcschr: New file.
10682         * lib/wchar.in.h (wcschr): New declaration.
10683         * lib/wcschr.c: New file.
10684         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10685         * m4/wcschr.m4: New file.
10686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10689         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10690         * doc/posix-functions/wcschr.texi: Mention the new module.
10691
10692 2011-02-06  Bruno Haible  <bruno@clisp.org>
10693
10694         New module 'wcsdup'.
10695         * modules/wcsdup: New file.
10696         * lib/wchar.in.h (wcsdup): New declaration.
10697         * lib/wcsdup.c: New file.
10698         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10699         * m4/wcsdup.m4: New file.
10700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10703         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10704         * doc/posix-functions/wcsdup.texi: Mention the new module.
10705
10706 2011-02-06  Bruno Haible  <bruno@clisp.org>
10707
10708         New module 'wcsxfrm'.
10709         * modules/wcsxfrm: New file.
10710         * lib/wchar.in.h (wcsxfrm): New declaration.
10711         * lib/wcsxfrm.c: New file.
10712         * lib/wcsxfrm-impl.h: New file.
10713         * m4/wcsxfrm.m4: New file.
10714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10717         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10718         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10719
10720 2011-02-06  Bruno Haible  <bruno@clisp.org>
10721
10722         New module 'wcscoll'.
10723         * modules/wcscoll: New file.
10724         * lib/wchar.in.h (wcscoll): New declaration.
10725         * lib/wcscoll.c: New file.
10726         * lib/wcscoll-impl.h: New file.
10727         * m4/wcscoll.m4: New file.
10728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10731         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10732         * doc/posix-functions/wcscoll.texi: Mention the new module.
10733
10734 2011-02-06  Bruno Haible  <bruno@clisp.org>
10735
10736         New module 'wcsncasecmp'.
10737         * modules/wcsncasecmp: New file.
10738         * lib/wchar.in.h (wcsncasecmp): New declaration.
10739         * lib/wcsncasecmp.c: New file.
10740         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10741         * m4/wcsncasecmp.m4: New file.
10742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10745         HAVE_WCSNCASECMP.
10746         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10747         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10748
10749 2011-02-06  Bruno Haible  <bruno@clisp.org>
10750
10751         New module 'wcscasecmp'.
10752         * modules/wcscasecmp: New file.
10753         * lib/wchar.in.h (wcscasecmp): New declaration.
10754         * lib/wcscasecmp.c: New file.
10755         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10756         * m4/wcscasecmp.m4: New file.
10757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10760         HAVE_WCSCASECMP.
10761         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10762         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10763
10764 2011-02-05  Bruno Haible  <bruno@clisp.org>
10765
10766         New module 'wcsncmp'.
10767         * modules/wcsncmp: New file.
10768         * lib/wchar.in.h (wcsncmp): New declaration.
10769         * lib/wcsncmp.c: New file.
10770         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10771         * m4/wcsncmp.m4: New file.
10772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10775         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10776         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10777
10778 2011-02-05  Bruno Haible  <bruno@clisp.org>
10779
10780         New module 'wcscmp'.
10781         * modules/wcscmp: New file.
10782         * lib/wchar.in.h (wcscmp): New declaration.
10783         * lib/wcscmp.c: New file.
10784         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10785         * m4/wcscmp.m4: New file.
10786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10789         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10790         * doc/posix-functions/wcscmp.texi: Mention the new module.
10791
10792 2011-02-05  Bruno Haible  <bruno@clisp.org>
10793
10794         New module 'wcsncat'.
10795         * modules/wcsncat: New file.
10796         * lib/wchar.in.h (wcsncat): New declaration.
10797         * lib/wcsncat.c: New file.
10798         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10799         * m4/wcsncat.m4: New file.
10800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10803         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10804         * doc/posix-functions/wcsncat.texi: Mention the new module.
10805
10806 2011-02-05  Bruno Haible  <bruno@clisp.org>
10807
10808         New module 'wcscat'.
10809         * modules/wcscat: New file.
10810         * lib/wchar.in.h (wcscat): New declaration.
10811         * lib/wcscat.c: New file.
10812         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10813         * m4/wcscat.m4: New file.
10814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10817         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10818         * doc/posix-functions/wcscat.texi: Mention the new module.
10819
10820 2011-02-05  Bruno Haible  <bruno@clisp.org>
10821
10822         New module 'wcpncpy'.
10823         * modules/wcpncpy: New file.
10824         * lib/wchar.in.h (wcpncpy): New declaration.
10825         * lib/wcpncpy.c: New file.
10826         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10827         * m4/wcpncpy.m4: New file.
10828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10830         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10831         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10832         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10833
10834 2011-02-05  Bruno Haible  <bruno@clisp.org>
10835
10836         New module 'wcsncpy'.
10837         * modules/wcsncpy: New file.
10838         * lib/wchar.in.h (wcsncpy): New declaration.
10839         * lib/wcsncpy.c: New file.
10840         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10841         * m4/wcsncpy.m4: New file.
10842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10845         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10846         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10847
10848 2011-02-05  Bruno Haible  <bruno@clisp.org>
10849
10850         New module 'wcpcpy'.
10851         * modules/wcpcpy: New file.
10852         * lib/wchar.in.h (wcpcpy): New declaration.
10853         * lib/wcpcpy.c: New file.
10854         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10855         * m4/wcpcpy.m4: New file.
10856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10858         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10859         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10860         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10861
10862 2011-02-05  Bruno Haible  <bruno@clisp.org>
10863
10864         New module 'wcscpy'.
10865         * modules/wcscpy: New file.
10866         * lib/wchar.in.h (wcscpy): New declaration.
10867         * lib/wcscpy.c: New file.
10868         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10869         * m4/wcscpy.m4: New file.
10870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10873         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10874         * doc/posix-functions/wcscpy.texi: Mention the new module.
10875
10876 2011-02-05  Bruno Haible  <bruno@clisp.org>
10877
10878         New module 'wcsnlen'.
10879         * modules/wcsnlen: New file.
10880         * lib/wchar.in.h (wcsnlen): New declaration.
10881         * lib/wcsnlen.c: New file.
10882         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10883         * m4/wcsnlen.m4: New file.
10884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10887         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10888         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10889
10890 2011-02-05  Bruno Haible  <bruno@clisp.org>
10891
10892         New module 'wcslen'.
10893         * modules/wcslen: New file.
10894         * lib/wchar.in.h (wcslen): New declaration.
10895         * lib/wcslen.c: New file.
10896         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10897         * m4/wcslen.m4: New file.
10898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10901         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10902         * doc/posix-functions/wcslen.texi: Mention the new module.
10903
10904 2011-02-05  Bruno Haible  <bruno@clisp.org>
10905
10906         New module 'wmemset'.
10907         * modules/wmemset: New file.
10908         * lib/wchar.in.h (wmemset): New declaration.
10909         * lib/wmemset.c: New file.
10910         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10911         * m4/wmemset.m4: New file.
10912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10914         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10915         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10916         * doc/posix-functions/wmemset.texi: Mention the new module.
10917
10918 2011-02-05  Bruno Haible  <bruno@clisp.org>
10919
10920         New module 'wmemmove'.
10921         * modules/wmemmove: New file.
10922         * lib/wchar.in.h (wmemmove): New declaration.
10923         * lib/wmemmove.c: New file.
10924         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10925         * m4/wmemmove.m4: New file.
10926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10928         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10929         HAVE_WMEMMOVE.
10930         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10931         * doc/posix-functions/wmemmove.texi: Mention the new module.
10932
10933 2011-02-05  Bruno Haible  <bruno@clisp.org>
10934
10935         New module 'wmemcpy'.
10936         * modules/wmemcpy: New file.
10937         * lib/wchar.in.h (wmemcpy): New declaration.
10938         * lib/wmemcpy.c: New file.
10939         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10940         * m4/wmemcpy.m4: New file.
10941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10943         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10944         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10945         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10946
10947 2011-02-05  Bruno Haible  <bruno@clisp.org>
10948
10949         New module 'wmemcmp'.
10950         * modules/wmemcmp: New file.
10951         * lib/wchar.in.h (wmemcmp): New declaration.
10952         * lib/wmemcmp.c: New file.
10953         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10954         * m4/wmemcmp.m4: New file.
10955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10957         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10958         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10959         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10960
10961 2011-02-07  Jim Meyering  <meyering@redhat.com>
10962
10963         di-set, ino-map: new modules, from coreutils
10964         * lib/di-set.c: New file.
10965         * lib/di-set.h: Likewise.
10966         * lib/ino-map.c: Likewise.
10967         * lib/ino-map.h: Likewise.
10968         * modules/di-set: Likewise.
10969         * modules/di-set-tests: Likewise.
10970         * modules/ino-map: Likewise.
10971         * modules/ino-map-tests: Likewise.
10972         * tests/test-di-set.c: Likewise.
10973         * tests/test-ino-map.c: Likewise.
10974
10975 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         getloadavg: merge minor changes from Emacs
10978
10979         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10980         (getloadavg): Use memset, not bzero.
10981
10982         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10983         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10984         clash (bug#86).
10985
10986 2010-11-14  Bruno Haible  <bruno@clisp.org>
10987
10988         Allow multiple gnulib generated replacements to coexist.
10989         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10990         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10991         * lib/langinfo.in.h (nl_item): Likewise.
10992         * lib/math.in.h (_NaN, NAN): Likewise.
10993         * lib/netdb.in.h (struct addrinfo): Likewise.
10994         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10995         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10996         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10997         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10998         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10999         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11000         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11001         pthread_mutexattr_init, pthread_mutexattr_settype,
11002         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11003         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11004         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11005         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11006         * lib/sched.in.h (struct sched_param): Likewise.
11007         * lib/se-selinux.in.h (security_class_t, security_context_t,
11008         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11009         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11010         lsetfilecon, fsetfilecon, security_check_context,
11011         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11012         Likewise.
11013         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11014         Likewise.
11015         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11016         _gl_function_taking_int_returning_void_t, union sigval,
11017         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11018         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11019         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11020         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11021         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11022         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11023         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11024         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11025         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11026         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11027         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11028         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11029         socklen_t, rpl_fd_isset): Likewise.
11030         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11031         * lib/sys_time.in.h (struct timeval): Likewise.
11032         * lib/sys_times.in.h (struct tms): Likewise.
11033         * lib/sys_utsname.in.h (struct utsname):
11034         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11035         * lib/unistd.in.h (getpagesize): Likewise.
11036         * lib/wchar.in.h (mbstate_t): Likewise.
11037         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11038         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11039         towlower, towupper): Likewise.
11040         Reported by Sam Steingold <sds@gnu.org>.
11041
11042 2011-02-05  Eric Blake  <eblake@redhat.com>
11043
11044         unsetenv: work around Haiku issues
11045         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11046         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11047
11048 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11049
11050         libposix: avoid calling error() within libposix
11051         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11052         is defined.
11053
11054 2011-02-05  Eric Blake  <eblake@redhat.com>
11055
11056         strerror_r-posix: port to cygwin
11057         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11058         implementation.
11059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11060         * tests/test-strerror_r.c (main): Fix test.
11061         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11062         issue.
11063
11064 2011-02-05  Bruno Haible  <bruno@clisp.org>
11065
11066         New module 'wmemchr'.
11067         * modules/wmemchr: New file.
11068         * lib/wchar.in.h (wmemchr): New declaration.
11069         * lib/wmemchr.c: New file.
11070         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11071         * m4/wmemchr.m4: New file.
11072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11074         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11075         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11076         * doc/posix-functions/wmemchr.texi: Mention the new module.
11077
11078 2011-02-04  Eric Blake  <eblake@redhat.com>
11079
11080         fdopendir: detect FreeBSD bug
11081         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11082         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11083
11084 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11085
11086         stdbool: do not define HAVE_STDBOOL_H
11087         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11088         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11089         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11090         imported from the latest Autoconf git.  It was motivated by Emacs,
11091         which uses gnulib but does not need HAVE_STDBOOL_H.
11092
11093 2011-02-04  Bruno Haible  <bruno@clisp.org>
11094
11095         wcsnrtombs: Prepare for new module wwcsnrtombs.
11096         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11097         * lib/wcsnrtombs.c: Include it.
11098         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11099
11100         wcsrtombs: Prepare for new module wwcsrtombs.
11101         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11102         * lib/wcsrtombs.c: Include it.
11103         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11104
11105         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11106         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11107         * lib/mbsnrtowcs.c: Include it.
11108         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11109
11110         mbsrtowcs: Prepare for new module mbsrtowwcs.
11111         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11112         * lib/mbsrtowcs.c: Include it.
11113         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11114
11115 2011-02-04  Bruno Haible  <bruno@clisp.org>
11116
11117         vasnprintf: Reduce use of malloc for small format strings.
11118         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11119         (arguments): Add room for the first 7 arguments.
11120         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11121         (char_directives, u8_directives, u16_directives, u32_directives): Add
11122         room for the first 7 directives.
11123         * lib/printf-parse.c: Include <string.h>.
11124         (PRINTF_PARSE): Change memory handling code so that it uses the first
11125         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11126         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11127         Reported by Pádraig Brady <P@draigbrady.com>.
11128
11129 2011-01-31  Eric Blake  <eblake@redhat.com>
11130
11131         dup2: work around Haiku bug
11132         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11133         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11134         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11135         * tests/test-dup2.c (main): Enhance test.
11136
11137 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11138
11139         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11140         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11141         declared by eglibc 2.11.2.
11142         * lib/stdio.in.h: Likewise.
11143
11144 2011-01-31  Eric Blake  <eblake@redhat.com>
11145
11146         ignore-value: add missing test dependency
11147         * tests/test-ignore-value.c: Revert previous change; stdio.h
11148         provides off_t.
11149         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11150
11151 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11152
11153         mktime: clarify long_int width checking
11154         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11155         the top level, to make it clearer that the assumption about
11156         long_int width is being checked.  See
11157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11158
11159 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11160
11161         ignore-value: Fix self-test.
11162         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11163
11164 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11165
11166         TYPE_MAXIMUM: avoid theoretically undefined behavior
11167         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11168         negative number, which the C Standard says has undefined behavior.
11169         In practice this is not a problem, but might as well do it by the book.
11170         Reported by Rich Felker and Eric Blake; see
11171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11172         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11173         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11175         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11176         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11177         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11178
11179         mktime: #undef mktime before #defining it
11180         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11181
11182         mktime: systematically normalize tm_isdst comparisons
11183         * lib/mktime.c (isdst_differ): New function.
11184         (__mktime_internal): Use it systematically for all isdst comparisons.
11185         This completes the fix for libc BZ #6723, and removes the need for
11186         normalizing tm_isdst.  See
11187         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11188         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11189
11190         mktime: fix some integer overflow issues and sidestep the rest
11191
11192         This was prompted by a bug report by Benjamin Lindner for MinGW
11193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11194         His bug is due to signed integer overflow (0 - INT_MIN), and I
11195         I scanned through mktime.c looking for other integer overflow
11196         problems, fixing all the bugs I found.
11197
11198         Although the C Standard says the resulting code is still not safe
11199         in the presence of integer overflow, in practice it should be good
11200         enough for all real-world two's-complement implementations, except
11201         for debugging environments that deliberately trap on integer
11202         overflow (e.g., gcc -ftrapv).
11203
11204         * lib/mktime.c (WRAPV): New macro.
11205         (SHR): Also check that long_int and time_t shift right in the
11206         usual way, before using the fast-but-unportable method.
11207         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11208         used.  The code already assumed two's complement, so there's
11209         no need to test for alternatives.  All uses removed.
11210         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11211         the C standard.  Problem reported by Rich Felker in
11212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11213         (twos_complement_arithmetic): Also check long_int and time_t.
11214         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11215         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11216         (__mktime_internal): Avoid integer overflow with unary subtraction
11217         in two instances where -1 - X is an adequate replacement for -X,
11218         since the calculations are approximate.
11219
11220 2011-01-29  Eric Blake  <eblake@redhat.com>
11221
11222         mktime: avoid infinite loop
11223         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11224         type; behavior is still undefined but portable to all known targets.
11225         Reported by Rich Felker.
11226
11227 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11228
11229         rename, unlink, same-inode: Relicense.
11230         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11231         * modules/unlink (License): Likewise.
11232         * modules/same-inode (License): Likewise.
11233
11234 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11235
11236         mktime: avoid problems on NetBSD 5 / i386
11237         * lib/mktime.c (long_int): New type.  This works around a problem
11238         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11239         but time_t is 64 bits, and where I expect the existing code is
11240         wrong in some cases.
11241         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11242         (ydhms_diff): Bring back the compile-time check for wide-enough
11243         year and yday.
11244
11245         mktime: fix misspelling in comment
11246         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11247         This merges all recent glibc changes of importance.
11248
11249 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11250
11251         move-if-change: cope with concurrent mv of identical file.
11252         * build-aux/move-if-change (CMPPROG): Accept environment
11253         variable as an override for `cmp'.
11254         (usage): Document CMPPROG.
11255         Adjust comparison to drop stdout.  Cope with failure of mv if
11256         the target file exists and is identical to the source, for
11257         parallel builds.
11258         Report from H.J. Lu against binutils in PR binutils/12283.
11259
11260 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11261
11262         * users.txt: Mention sharutils.
11263
11264 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11265
11266         * users.txt: Mention OATH Toolkit.
11267
11268 2011-01-27  Bruno Haible  <bruno@clisp.org>
11269
11270         Prepare for supporting FreeBSD 10.
11271         * build-aux/config.libpath: Remove handling of freebsd1*.
11272
11273 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11274
11275         Prepare for supporting FreeBSD 10.
11276         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11277         match FreeBSD 10.0.
11278
11279 2011-01-27  Bruno Haible  <bruno@clisp.org>
11280
11281         vma-iter, get-rusage-as: Add OpenBSD support.
11282         * modules/vma-iter (configure.ac): Test for mquery.
11283         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11284         * lib/vma-iter.c: Include <sys/mman.h>.
11285         (vma_iterate): Add an implementation based on mquery().
11286         * lib/resource-ext.h (get_rusage_as): Update comments.
11287         * lib/get-rusage-as.c: Likewise.
11288         * lib/get-rusage-data.c: Likewise.
11289
11290 2011-01-26  Karl Berry  <karl@gnu.org>
11291
11292         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11293         variables to make it easier to override the makeinfo program used.
11294
11295 2011-01-26  Eric Blake  <eblake@redhat.com>
11296
11297         fcntl: work around Haiku F_DUPFD bugs
11298         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11299         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11300         cloexec bit on duplication.
11301         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11302
11303 2011-01-26  Bruno Haible  <bruno@clisp.org>
11304
11305         Enable memory leak tests on AIX.
11306         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11307         * tests/test-fprintf-posix3.c (main): Likewise.
11308
11309 2011-01-26  Bruno Haible  <bruno@clisp.org>
11310
11311         Tests for module 'get-rusage-data'.
11312         * modules/get-rusage-data-tests: New file.
11313         * tests/test-get-rusage-data.c: New file.
11314
11315         New module 'get-rusage-data'.
11316         * lib/resource-ext.h (get_rusage_data): New declaration.
11317         * lib/get-rusage-data.c: New file.
11318         * modules/get-rusage-data: New file.
11319
11320 2011-01-25  Bruno Haible  <bruno@clisp.org>
11321
11322         get-rusage-as: Allow for easier testing.
11323         * lib/resource-ext.h (get_rusage_as): Add comment.
11324         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11325         (main): New function for interactive testing.
11326
11327 2011-01-25  Bruno Haible  <bruno@clisp.org>
11328
11329         vma-iter: Treat Haiku like BeOS.
11330         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11331         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11332
11333 2011-01-25  Eric Blake  <eblake@redhat.com>
11334
11335         c-stack: fix regression on cygwin when libsigsegv is present
11336         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11337
11338 2011-01-24  Bruno Haible  <bruno@clisp.org>
11339
11340         vma-iter: Avoid empty intervals.
11341         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11342         on an empty interval.
11343
11344 2011-01-24  Jim Meyering  <meyering@redhat.com>
11345
11346         u64: remove unnecessary #include
11347         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11348
11349 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11350
11351         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11352         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11353
11354 2011-01-23  Bruno Haible  <bruno@clisp.org>
11355
11356         New module 'vma-iter'.
11357         * lib/vma-iter.h: New file.
11358         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11359         * modules/vma-iter: New file.
11360         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11361         for get_rusage_as_via_iterator.
11362         (vma_iterate_callback): New function.
11363         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11364         * modules/get-rusage-as (Depends-on): Add vma-iter.
11365
11366 2011-01-23  Bruno Haible  <bruno@clisp.org>
11367
11368         uninorm: Tweak includes.
11369         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11370         Reported by Jim Meyering.
11371
11372 2011-01-23  Bruno Haible  <bruno@clisp.org>
11373
11374         get-rusage-as: Improve on NetBSD.
11375         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11376         /proc, like on FreeBSD.
11377
11378 2011-01-23  Jim Meyering  <meyering@redhat.com>
11379
11380         xreadlink.h: remove unnecessary #include
11381         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11382
11383         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11384         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11385
11386 2011-01-23  Bruno Haible  <bruno@clisp.org>
11387
11388         get-rusage-as: Fix bug.
11389         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11390         original limit when aborting the first loop.
11391
11392 2011-01-23  Bruno Haible  <bruno@clisp.org>
11393
11394         wctype: Ensure valid C syntax.
11395         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11396         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11397
11398 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11399
11400         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11402         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11403         as they are needed only for configure's test case.
11404         This removes two unnecessary symbols from config.h.
11405
11406         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11407         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11409         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11410         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11411         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11412         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11413         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11414         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11415         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11416         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11418         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11419         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11420         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11421         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11422         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11423         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11424
11425 2011-01-21  Eric Blake  <eblake@redhat.com>
11426
11427         maintainer-makefile: work with older git for submodule check
11428         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11429         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11430         Reported by Matthias Bolte.
11431
11432         bootstrap: minor portability fixes
11433         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11434         (usage): Omit leading capital and trailing . on help phrases, per
11435         GNU Coding Standards.
11436         (check_versions, top level): Prefix messages with script name.
11437
11438 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11439
11440         bootstrap: support --no-git option
11441         * build-aux/bootstrap: Add --no-git option, to be used when
11442         --gnulib-srcdir points to the exact desired checkout.
11443
11444 2011-01-21  Eric Blake  <eblake@redhat.com>
11445
11446         strerror_r-posix: work with glibc 2.13
11447         * lib/strerror_r.c (strerror_r): Fix return type.
11448
11449 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11450             Bruno Haible  <bruno@clisp.org>
11451
11452         uN_strstr: New unit tests.
11453         * modules/unistr/u8-strstr-tests: New file.
11454         * modules/unistr/u16-strstr-tests: New file.
11455         * modules/unistr/u32-strstr-tests: New file.
11456         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11457         * tests/unistr/test-u8-strstr.c: New file.
11458         * tests/unistr/test-u16-strstr.c: New file.
11459         * tests/unistr/test-u32-strstr.c: New file.
11460
11461 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11462             Bruno Haible  <bruno@clisp.org>
11463
11464         Make uN_strstr functions O(n) worst-case.
11465         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11466         16-bit and 32-bit unit cases, use the unibyte algorithm from
11467         lib/mbsstr.c.
11468         * lib/unistr/u8-strstr.c: Include <string.h>.
11469         (UNIT_IS_UINT8_T): New macro.
11470         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11471         (U_STRLEN, U_STRNLEN): New macros.
11472         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11473         (U_STRLEN, U_STRNLEN): New macros.
11474         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11475         (configure.ac): Update required libunistring version.
11476         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11477         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11478         malloca.
11479         (configure.ac): Update required libunistring version.
11480         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11481         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11482         malloca.
11483         (configure.ac): Update required libunistring version.
11484
11485 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11486             Bruno Haible  <bruno@clisp.org>
11487
11488         Prepare for faster uN_strstr functions.
11489         * lib/str-kmp.h: Support definable UNITs.
11490         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11491         needle_len argument.
11492         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11493         * lib/mbscasestr.c (mbscasestr): Likewise.
11494
11495 2011-01-21  Pádraig Brady <P@draigBrady.com>
11496
11497         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11498         * tests/test-malloca.c (main): Unset the environment variable
11499         to greatly speed up the test.
11500         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11501         * modules/malloca-tests: Depend on unsetenv.
11502
11503 2011-01-21  Pádraig Brady <P@draigBrady.com>
11504
11505         ignore-value: remove stdint dependency
11506         * lib/ignore-value.h: Remove <stdint.h>
11507         * modules/ignore-value: Remove stdint dependency.
11508
11509 2011-01-21  Jim Meyering  <meyering@redhat.com>
11510
11511         maint.mk: adjust variable name to be consistent with other gl_ vars
11512         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11513         to be lower case.
11514
11515 2011-01-20  Jim Meyering  <meyering@redhat.com>
11516
11517         maint.mk: make "check" depend on public-submodule-commit by default
11518         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11519
11520 2011-01-20  Bruno Haible  <bruno@clisp.org>
11521
11522         mbfile, mbiter: Complete change from 2008-12-21.
11523         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11524         * m4/mbiter.m4 (gl_MBITER): Likewise.
11525
11526 2011-01-20  Jim Meyering  <meyering@redhat.com>
11527
11528         init.sh: insert space between each function name and "()"
11529         * tests/init.sh: Make it a little easier to see that a function's
11530         name is "warn_", and not "warn" when looking at the first part of
11531         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11532
11533 2011-01-20  Jim Meyering  <meyering@redhat.com>
11534
11535         mountlist: clean up code formatting
11536         * lib/mountlist.c (read_file_system_list): Split a long line,
11537         correct bracing style, use NULL in place of "(struct statfs *)0",
11538         don't parenthesize return value, add spaces around "=" and after
11539         ";-in-for-stmt".
11540
11541 2011-01-14  Markus Duft <mduft@gentoo.org>
11542
11543         mountlist: add support for Interix
11544         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11545         Apply statvfs to all entries of /dev/fs.
11546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11547         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11548
11549 2011-01-20  Jim Meyering  <meyering@redhat.com>
11550
11551         maint.mk: improve the public-submodule-commit rule
11552         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11553         to suppress printing of its commands... unless V=1.
11554         Add git submodule's --quiet option to suppress printing of e.g.,
11555         "Entering gnulib" output.
11556         "cd" into $(srcdir) before running git submodule.
11557
11558 2011-01-20  Bruno Haible  <bruno@clisp.org>
11559
11560         include_next: Fix bug introduced on 2011-01-18.
11561         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11562         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11563         ac_cv_header_... variable if the second argument is not 'check'.
11564         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11565         gl_NEXT_HEADERS_INTERNAL.
11566
11567 2011-01-20  Bruno Haible  <bruno@clisp.org>
11568
11569         Allow the user to avoid the GNULIB_TEST_* macros.
11570         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11571         Suggested by Paul Eggert.
11572
11573 2011-01-14  Jim Meyering  <meyering@redhat.com>
11574
11575         bootstrap: avoid failure when there is no .gitmodules file
11576         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11577         has been assigned to, even when its value is the empty string.
11578         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11579         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11580         Reported by John W. Eaton <jwe@gnu.org>.
11581
11582 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11583
11584         assume <ctype.h>, ..., <time.h> exist
11585         For years gnulib has been assuming the existence of the headers
11586         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11587         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11588         them, since they don't appear to be needed.
11589         * README (Portability guidelines): Document this.
11590         * lib/flock.c: Assume <fcntl.h> exists.
11591         * lib/regex_internal.h: Assume <locale.h> exists.
11592         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11594         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11595         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11596         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11597         * m4/regex.m4 (gl_REGEX): Likewise.
11598         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11599         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11600         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11601         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11602         * tests/test-argp.c: Likewise.
11603         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11604
11605         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11606         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11607         AA_APPLE_UNIVERSAL_BUILD.  See
11608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11609         * NEWS: Document this.
11610
11611 2011-01-19  Eric Blake  <eblake@redhat.com>
11612
11613         c-stack: assume stack overflow if SA_SIGINFO unsupported
11614         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11615         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11616         sigaction will work.
11617         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11618         behavior match Linux.
11619         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11620
11621         stdbool-tests: accomodate Haiku
11622         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11623
11624         binary-io: fix O_TEXT on Haiku
11625         * modules/binary-io (Depends-on): Add fcntl-h.
11626         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11627         than blindly undefining O_TEXT.
11628         Reported by Scott McCreary.
11629
11630 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11631
11632         include_next: do not check for standard headers like stddef.h
11633
11634         I found this problem when modifying Emacs to use gnulib.
11635         I noticed that it added HAVE_STDDEF_H to config.h, even though
11636         gnulib always assumes <stddef.h> exists as per README and this
11637         symbol is unnecessary.
11638         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11639         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11640         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11641         faster for headers like stddef.h that are known to exist.
11642         (gl_CHECK_NEXT_HEADERS): Use it.
11643         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11644         rather than gl_CHECK_NEXT_HEADERS.
11645         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11646         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11647
11648 2011-01-18  Eric Blake  <eblake@redhat.com>
11649
11650         ansi-c++-opt: skip C++ dependency style if C++ is unused
11651         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11652         tests when we know C++ compilation is not desired.
11653         Reported by Scott McCreary.
11654
11655 2011-01-18  Bruno Haible  <bruno@clisp.org>
11656
11657         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11658         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11659         (main): Perform test also when getrlimit and setrlimit don't exist or
11660         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11661         limiting the address space size using setrlimit, compare the address
11662         space size before and after the the test.
11663         * tests/test-dprintf-posix2.c: Likewise.
11664         * tests/test-fprintf-posix3.sh: Update skip messages.
11665         * tests/test-dprintf-posix2.sh: Likewise.
11666         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11667         * modules/dprintf-posix-tests (Depends-on): Likewise.
11668         Reported by Bruce Korb <bkorb@gnu.org> and
11669         Gary V. Vaughan <gary@gnu.org>.
11670
11671 2011-01-18  Bruno Haible  <bruno@clisp.org>
11672
11673         get-rusage-as: Improvement for Cygwin.
11674         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11675         areas that are merely reserved.
11676
11677 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11678
11679         strftime: remove dependencies on multibyte modules
11680
11681         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11682         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11683         only if __osf__ is defined, and I suspect OSF doesn't need these
11684         other modules.  If my guess is wrong, we'll need to come up with a
11685         variant of strftime that doesn't need the multibyte modules.
11686
11687         I discovered this problem when attempting modify Emacs to use the
11688         strftime module.  With the previous gnulib, this caused Emacs to
11689         need 31 new files, ranging from lib/config.charset to
11690         m4/wint_t.m4.  This was overkill and I expect would be offputting
11691         to the Emacs maintainers.  After this change, only 6 new files are
11692         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11693         stdbool.m4, and tm_gmtoff.m4.
11694
11695         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11696         Suggested by Bruno Haible in
11697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11698         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11699         and do not check for wchar.h.
11700         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11701         (Depends-on): Remove mbrlen, mbsinit, wchar.
11702
11703 2011-01-18  Bruno Haible  <bruno@clisp.org>
11704
11705         Tests for module 'get-rusage-as'.
11706         * modules/get-rusage-as-tests: New file.
11707         * tests/test-get-rusage-as.c: New file.
11708
11709         New module 'get-rusage-as'.
11710         * modules/get-rusage-as: New file.
11711         * lib/resource-ext.h: New file.
11712         * lib/get-rusage-as.c: New file.
11713
11714 2011-01-17  Eric Blake  <eblake@redhat.com>
11715
11716         sigaction: relax license from LGPLv3+ to LGPLv2+
11717         * modules/sigaction (License): Relax to LGPLv2+.
11718
11719 2011-01-14  Bruno Haible  <bruno@clisp.org>
11720
11721         filemode: Make function declarations usable in C++ mode.
11722         * lib/filemode.h: Enclose function declarations in extern "C" block.
11723         Reported by John W. Eaton <jwe@gnu.org>.
11724
11725 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11726
11727         save-cwd: no longer include "xgetcwd.h"
11728         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11729         This avoids a compilation failure in projects that use save-cwd
11730         without also using the xgetcwd module.
11731
11732 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11733
11734         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11735         This is so that a program like Emacs, which needs only dtoastr,
11736         does not have to bother with distributing and compiling ftoastr
11737         and ldtoastr.
11738         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11739         * modules/dtoastr, modules/ldtoastr: New files.
11740         * modules/ftoastr: Now works just for 'float'.
11741         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11742         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11743         dtoastr.c, ldtoastr.c.
11744
11745 2011-01-11  Jim Meyering  <meyering@redhat.com>
11746
11747         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11748         There is no need to work around the lack of the fchdir function,
11749         since gnulib can now provide a replacement when required.
11750         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11751         * modules/save-cwd (Depends-on): Add fchdir.
11752
11753 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11754
11755         openat, save-cwd: avoid xmalloc
11756
11757         This removes a direct (but undocumented) dependency of openat on
11758         xalloc, along with an indirect dependency via save-cwd.  It also
11759         removes a dependency of save-cwd on xgetcwd, and thereby
11760         indirectly on xalloc.  This change causes the openat substitute
11761         to fall back on save_cwd when memory is tight, and for save_cwd to
11762         fail instead of dying when memory is tight, but that's good enough.
11763         Problem and initial idea for fix reported by Bastien Roucaries in
11764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11765
11766         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11767         xalloc.h (for xmalloc).
11768         (openat_proc_name): Use malloc, not xmalloc.
11769         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11770         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11771
11772         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11773         This avoids heap allocation for file names whose lengths are in
11774         the range 512..1023, with the upper bound increasing to at most
11775         4031 depending on the platform's PATH_MAX.  (We do not want
11776         pathmax.h here as it might supply a non-constant PATH_MAX.)
11777         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11778         Perhaps they should be moved to malloca.h?
11779         (OPENAT_BUFFER_SIZE): Use them.
11780
11781 2011-01-10  Bruno Haible  <bruno@clisp.org>
11782
11783         doc: Update users.txt.
11784         * users.txt: Add recutils.
11785
11786 2011-01-09  Karl Berry  <karl@gnu.org>
11787
11788         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11789
11790         * doc/configmake.texi: New file.
11791         * doc/gnulib.texi: Include it.
11792         * modules/configmake: Move documentation from here.
11793
11794 2011-01-09  Bruno Haible  <bruno@clisp.org>
11795
11796         Update to Unicode 6.0.0.
11797         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11798         (get_lbp): Update for Unicode 6.0.0.
11799         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11800         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11801         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11802         U+11001, U+11038..U+11046. Remove U+06DE.
11803         (uc_width): Fix bounds of planes.
11804         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11805         lib/uniwidth/width.c.
11806         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11807         trailing whitespace removed.
11808         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11809         without comments, but with the original copyright notice.
11810         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11811         * lib/unicase/ignorable.h: Likewise.
11812         * lib/unicase/tocasefold.h: Likewise.
11813         * lib/unicase/tolower.h: Likewise.
11814         * lib/unicase/totitle.h: Likewise.
11815         * lib/unicase/toupper.h: Likewise.
11816         * lib/unictype/bidi_of.h: Likewise.
11817         * lib/unictype/blocks.h: Likewise.
11818         * lib/unictype/categ_C.h: Likewise.
11819         * lib/unictype/categ_Cn.h: Likewise.
11820         * lib/unictype/categ_L.h: Likewise.
11821         * lib/unictype/categ_Ll.h: Likewise.
11822         * lib/unictype/categ_Lm.h: Likewise.
11823         * lib/unictype/categ_Lo.h: Likewise.
11824         * lib/unictype/categ_Lu.h: Likewise.
11825         * lib/unictype/categ_M.h: Likewise.
11826         * lib/unictype/categ_Mc.h: Likewise.
11827         * lib/unictype/categ_Me.h: Likewise.
11828         * lib/unictype/categ_Mn.h: Likewise.
11829         * lib/unictype/categ_N.h: Likewise.
11830         * lib/unictype/categ_Nd.h: Likewise.
11831         * lib/unictype/categ_No.h: Likewise.
11832         * lib/unictype/categ_P.h: Likewise.
11833         * lib/unictype/categ_Po.h: Likewise.
11834         * lib/unictype/categ_S.h: Likewise.
11835         * lib/unictype/categ_Sc.h: Likewise.
11836         * lib/unictype/categ_Sk.h: Likewise.
11837         * lib/unictype/categ_Sm.h: Likewise.
11838         * lib/unictype/categ_So.h: Likewise.
11839         * lib/unictype/categ_of.h: Likewise.
11840         * lib/unictype/combining.h: Likewise.
11841         * lib/unictype/ctype_alnum.h: Likewise.
11842         * lib/unictype/ctype_alpha.h: Likewise.
11843         * lib/unictype/ctype_graph.h: Likewise.
11844         * lib/unictype/ctype_lower.h: Likewise.
11845         * lib/unictype/ctype_print.h: Likewise.
11846         * lib/unictype/ctype_punct.h: Likewise.
11847         * lib/unictype/ctype_upper.h: Likewise.
11848         * lib/unictype/decdigit.h: Likewise.
11849         * lib/unictype/digit.h: Likewise.
11850         * lib/unictype/numeric.h: Likewise.
11851         * lib/unictype/pr_alphabetic.h: Likewise.
11852         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11853         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11854         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11855         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11856         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11857         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11858         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11859         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11860         * lib/unictype/pr_case_ignorable.h: Likewise.
11861         * lib/unictype/pr_cased.h: Likewise.
11862         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11863         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11864         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11865         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11866         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11867         * lib/unictype/pr_combining.h: Likewise.
11868         * lib/unictype/pr_composite.h: Likewise.
11869         * lib/unictype/pr_currency_symbol.h: Likewise.
11870         * lib/unictype/pr_decimal_digit.h: Likewise.
11871         * lib/unictype/pr_deprecated.h: Likewise.
11872         * lib/unictype/pr_format_control.h: Likewise.
11873         * lib/unictype/pr_grapheme_base.h: Likewise.
11874         * lib/unictype/pr_grapheme_extend.h: Likewise.
11875         * lib/unictype/pr_grapheme_link.h: Likewise.
11876         * lib/unictype/pr_id_continue.h: Likewise.
11877         * lib/unictype/pr_id_start.h: Likewise.
11878         * lib/unictype/pr_ideographic.h: Likewise.
11879         * lib/unictype/pr_lowercase.h: Likewise.
11880         * lib/unictype/pr_math.h: Likewise.
11881         * lib/unictype/pr_numeric.h: Likewise.
11882         * lib/unictype/pr_other_alphabetic.h: Likewise.
11883         * lib/unictype/pr_other_id_continue.h: Likewise.
11884         * lib/unictype/pr_other_math.h: Likewise.
11885         * lib/unictype/pr_punctuation.h: Likewise.
11886         * lib/unictype/pr_sentence_terminal.h: Likewise.
11887         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11888         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11889         * lib/unictype/pr_unified_ideograph.h: Likewise.
11890         * lib/unictype/pr_uppercase.h: Likewise.
11891         * lib/unictype/pr_xid_continue.h: Likewise.
11892         * lib/unictype/pr_xid_start.h: Likewise.
11893         * lib/unictype/scripts.h: Likewise.
11894         * lib/unictype/scripts_byname.gperf: Likewise.
11895         * lib/unictype/sy_java_ident.h: Likewise.
11896         * lib/unigbrk/gbrkprop.h: Likewise.
11897         * lib/unilbrk/lbrkprop1.h: Likewise.
11898         * lib/unilbrk/lbrkprop2.h: Likewise.
11899         * lib/uninorm/decomposition-table2.h: Likewise.
11900         * lib/uniwbrk/wbrkprop.h: Likewise.
11901         * tests/unicase/test-cased.c: Likewise.
11902         * tests/unicase/test-ignorable.c: Likewise.
11903         * tests/unicase/test-uc_tolower.c: Likewise.
11904         * tests/unicase/test-uc_totitle.c: Likewise.
11905         * tests/unicase/test-uc_toupper.c: Likewise.
11906         * tests/unictype/test-categ_C.c: Likewise.
11907         * tests/unictype/test-categ_Cn.c: Likewise.
11908         * tests/unictype/test-categ_L.c: Likewise.
11909         * tests/unictype/test-categ_Ll.c: Likewise.
11910         * tests/unictype/test-categ_Lm.c: Likewise.
11911         * tests/unictype/test-categ_Lo.c: Likewise.
11912         * tests/unictype/test-categ_Lu.c: Likewise.
11913         * tests/unictype/test-categ_M.c: Likewise.
11914         * tests/unictype/test-categ_Mc.c: Likewise.
11915         * tests/unictype/test-categ_Me.c: Likewise.
11916         * tests/unictype/test-categ_Mn.c: Likewise.
11917         * tests/unictype/test-categ_N.c: Likewise.
11918         * tests/unictype/test-categ_Nd.c: Likewise.
11919         * tests/unictype/test-categ_No.c: Likewise.
11920         * tests/unictype/test-categ_P.c: Likewise.
11921         * tests/unictype/test-categ_Po.c: Likewise.
11922         * tests/unictype/test-categ_S.c: Likewise.
11923         * tests/unictype/test-categ_Sc.c: Likewise.
11924         * tests/unictype/test-categ_Sk.c: Likewise.
11925         * tests/unictype/test-categ_Sm.c: Likewise.
11926         * tests/unictype/test-categ_So.c: Likewise.
11927         * tests/unictype/test-ctype_alnum.c: Likewise.
11928         * tests/unictype/test-ctype_alpha.c: Likewise.
11929         * tests/unictype/test-ctype_graph.c: Likewise.
11930         * tests/unictype/test-ctype_lower.c: Likewise.
11931         * tests/unictype/test-ctype_print.c: Likewise.
11932         * tests/unictype/test-ctype_punct.c: Likewise.
11933         * tests/unictype/test-ctype_upper.c: Likewise.
11934         * tests/unictype/test-decdigit.h: Likewise.
11935         * tests/unictype/test-digit.h: Likewise.
11936         * tests/unictype/test-numeric.h: Likewise.
11937         * tests/unictype/test-pr_alphabetic.c: Likewise.
11938         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11939         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11940         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11941         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11942         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11943         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11944         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11945         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11946         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11947         * tests/unictype/test-pr_cased.c: Likewise.
11948         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11949         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11950         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11951         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11952         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11953         * tests/unictype/test-pr_combining.c: Likewise.
11954         * tests/unictype/test-pr_composite.c: Likewise.
11955         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11956         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11957         * tests/unictype/test-pr_deprecated.c: Likewise.
11958         * tests/unictype/test-pr_format_control.c: Likewise.
11959         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11960         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11961         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11962         * tests/unictype/test-pr_id_continue.c: Likewise.
11963         * tests/unictype/test-pr_id_start.c: Likewise.
11964         * tests/unictype/test-pr_ideographic.c: Likewise.
11965         * tests/unictype/test-pr_lowercase.c: Likewise.
11966         * tests/unictype/test-pr_math.c: Likewise.
11967         * tests/unictype/test-pr_numeric.c: Likewise.
11968         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11969         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11970         * tests/unictype/test-pr_other_math.c: Likewise.
11971         * tests/unictype/test-pr_punctuation.c: Likewise.
11972         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11973         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11974         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11975         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11976         * tests/unictype/test-pr_uppercase.c: Likewise.
11977         * tests/unictype/test-pr_xid_continue.c: Likewise.
11978         * tests/unictype/test-pr_xid_start.c: Likewise.
11979         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11980         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11981         changes.
11982         * lib/unictype/categ_Cc.h: Likewise.
11983         * lib/unictype/categ_Cf.h: Likewise.
11984         * lib/unictype/categ_Co.h: Likewise.
11985         * lib/unictype/categ_Cs.h: Likewise.
11986         * lib/unictype/categ_Lt.h: Likewise.
11987         * lib/unictype/categ_Nl.h: Likewise.
11988         * lib/unictype/categ_Pc.h: Likewise.
11989         * lib/unictype/categ_Pd.h: Likewise.
11990         * lib/unictype/categ_Pe.h: Likewise.
11991         * lib/unictype/categ_Pf.h: Likewise.
11992         * lib/unictype/categ_Pi.h: Likewise.
11993         * lib/unictype/categ_Ps.h: Likewise.
11994         * lib/unictype/categ_Z.h: Likewise.
11995         * lib/unictype/categ_Zl.h: Likewise.
11996         * lib/unictype/categ_Zp.h: Likewise.
11997         * lib/unictype/categ_Zs.h: Likewise.
11998         * lib/unictype/ctype_blank.h: Likewise.
11999         * lib/unictype/ctype_cntrl.h: Likewise.
12000         * lib/unictype/ctype_digit.h: Likewise.
12001         * lib/unictype/ctype_space.h: Likewise.
12002         * lib/unictype/ctype_xdigit.h: Likewise.
12003         * lib/unictype/mirror.h: Likewise.
12004         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12005         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12006         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12007         * lib/unictype/pr_bidi_control.h: Likewise.
12008         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12009         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12010         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12011         * lib/unictype/pr_bidi_pdf.h: Likewise.
12012         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12013         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12014         * lib/unictype/pr_dash.h: Likewise.
12015         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12016         * lib/unictype/pr_diacritic.h: Likewise.
12017         * lib/unictype/pr_extender.h: Likewise.
12018         * lib/unictype/pr_hex_digit.h: Likewise.
12019         * lib/unictype/pr_hyphen.h: Likewise.
12020         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12021         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12022         * lib/unictype/pr_ignorable_control.h: Likewise.
12023         * lib/unictype/pr_iso_control.h: Likewise.
12024         * lib/unictype/pr_join_control.h: Likewise.
12025         * lib/unictype/pr_left_of_pair.h: Likewise.
12026         * lib/unictype/pr_line_separator.h: Likewise.
12027         * lib/unictype/pr_logical_order_exception.h: Likewise.
12028         * lib/unictype/pr_non_break.h: Likewise.
12029         * lib/unictype/pr_not_a_character.h: Likewise.
12030         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12031         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12032         * lib/unictype/pr_other_id_start.h: Likewise.
12033         * lib/unictype/pr_other_lowercase.h: Likewise.
12034         * lib/unictype/pr_other_uppercase.h: Likewise.
12035         * lib/unictype/pr_paired_punctuation.h: Likewise.
12036         * lib/unictype/pr_paragraph_separator.h: Likewise.
12037         * lib/unictype/pr_pattern_syntax.h: Likewise.
12038         * lib/unictype/pr_pattern_white_space.h: Likewise.
12039         * lib/unictype/pr_private_use.h: Likewise.
12040         * lib/unictype/pr_quotation_mark.h: Likewise.
12041         * lib/unictype/pr_radical.h: Likewise.
12042         * lib/unictype/pr_soft_dotted.h: Likewise.
12043         * lib/unictype/pr_space.h: Likewise.
12044         * lib/unictype/pr_titlecase.h: Likewise.
12045         * lib/unictype/pr_variation_selector.h: Likewise.
12046         * lib/unictype/pr_white_space.h: Likewise.
12047         * lib/unictype/pr_zero_width.h: Likewise.
12048         * lib/unictype/sy_c_ident.h: Likewise.
12049         * lib/unictype/sy_c_whitespace.h: Likewise.
12050         * lib/unictype/sy_java_whitespace.h: Likewise.
12051         * lib/uninorm/composition-table.gperf: Likewise.
12052         * lib/uninorm/decomposition-table1.h: Likewise.
12053         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12054         LB8.
12055         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12056         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12057         * modules/unictype/*: Bump version number of expected libunistring
12058         version.
12059
12060 2011-01-09  Bruno Haible  <bruno@clisp.org>
12061
12062         Update to Unicode 5.2.0.
12063         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12064         trailing whitespace removed.
12065
12066 2011-01-09  Bruno Haible  <bruno@clisp.org>
12067
12068         New Unicode character properties, from Unicode 5.2.0.
12069         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12070         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12071         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12072         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12073         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12074         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12075         uc_is_property_cased, uc_is_property_case_ignorable,
12076         uc_is_property_changes_when_lowercased,
12077         uc_is_property_changes_when_uppercased,
12078         uc_is_property_changes_when_titlecased,
12079         uc_is_property_changes_when_casefolded,
12080         uc_is_property_changes_when_casemapped): New declarations.
12081         * lib/unictype/pr_byname.gperf: Add the new properties.
12082         * modules/unictype/property-byname (Depends-on): Depend on the new
12083         properties modules.
12084         * modules/unictype/property-all (Depends-on): Likewise.
12085         * MODULES.html.sh (Unicode string functions): Add
12086         unictype/property-case-ignorable, unictype/property-cased,
12087         unictype/property-changes-when-casefolded,
12088         unictype/property-changes-when-casemapped,
12089         unictype/property-changes-when-lowercased,
12090         unictype/property-changes-when-titlecased,
12091         unictype/property-changes-when-uppercased.
12092
12093         New module 'unictype/property-changes-when-casemapped'.
12094         * modules/unictype/property-changes-when-casemapped: New file.
12095         * lib/unictype/pr_changes_when_casemapped.c: New file.
12096         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12097         generated by gen-uni-tables.
12098         * modules/unictype/property-changes-when-casemapped-tests: New file.
12099         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12100         automatically generated by gen-uni-tables.
12101
12102         New module 'unictype/property-changes-when-casefolded'.
12103         * modules/unictype/property-changes-when-casefolded: New file.
12104         * lib/unictype/pr_changes_when_casefolded.c: New file.
12105         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12106         generated by gen-uni-tables.
12107         * modules/unictype/property-changes-when-casefolded-tests: New file.
12108         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12109         automatically generated by gen-uni-tables.
12110
12111         New module 'unictype/property-changes-when-titlecased'.
12112         * modules/unictype/property-changes-when-titlecased: New file.
12113         * lib/unictype/pr_changes_when_titlecased.c: New file.
12114         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12115         generated by gen-uni-tables.
12116         * modules/unictype/property-changes-when-titlecased-tests: New file.
12117         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12118         automatically generated by gen-uni-tables.
12119
12120         New module 'unictype/property-changes-when-uppercased'.
12121         * modules/unictype/property-changes-when-uppercased: New file.
12122         * lib/unictype/pr_changes_when_uppercased.c: New file.
12123         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12124         generated by gen-uni-tables.
12125         * modules/unictype/property-changes-when-uppercased-tests: New file.
12126         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12127         automatically generated by gen-uni-tables.
12128
12129         New module 'unictype/property-changes-when-lowercased'.
12130         * modules/unictype/property-changes-when-lowercased: New file.
12131         * lib/unictype/pr_changes_when_lowercased.c: New file.
12132         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12133         generated by gen-uni-tables.
12134         * modules/unictype/property-changes-when-lowercased-tests: New file.
12135         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12136         automatically generated by gen-uni-tables.
12137
12138         New module 'unictype/property-case-ignorable'.
12139         * modules/unictype/property-case-ignorable: New file.
12140         * lib/unictype/pr_case_ignorable.c: New file.
12141         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12142         by gen-uni-tables.
12143         * modules/unictype/property-case-ignorable-tests: New file.
12144         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12145         generated by gen-uni-tables.
12146
12147         New module 'unictype/property-cased'.
12148         * modules/unictype/property-cased: New file.
12149         * lib/unictype/pr_cased.c: New file.
12150         * lib/unictype/pr_cased.h: New file, automatically generated by
12151         gen-uni-tables.
12152         * modules/unictype/property-cased-tests: New file.
12153         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12154         gen-uni-tables.
12155
12156 2011-01-09  Bruno Haible  <bruno@clisp.org>
12157
12158         Update to Unicode 5.2.0.
12159         * lib/gen-uni-tables.c (output_predicate, output_category,
12160         output_combclass, output_bidi_category, output_decimal_digit_test,
12161         output_decimal_digit, output_digit_test, output_digit,
12162         output_numeric_test, output_numeric, output_mirror, output_scripts,
12163         output_scripts_byname, output_blocks, output_ident_category): Fix
12164         comment header.
12165         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12166         get_wbp.
12167         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12168         items.
12169         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12170         Changes_When_Lowercased, Changes_When_Uppercased,
12171         Changes_When_Titlecased, Changes_When_Casefolded,
12172         Changes_When_Casemapped.
12173         (is_property_alphabetic, is_property_default_ignorable_code_point):
12174         Update for Unicode 5.2.0.
12175         (is_property_cased, is_property_case_ignorable,
12176         is_property_changes_when_lowercased,
12177         is_property_changes_when_uppercased,
12178         is_property_changes_when_titlecased,
12179         is_property_changes_when_casefolded,
12180         is_property_changes_when_casemapped): New functions.
12181         (output_properties): Output also the properties cased, case_ignorable,
12182         changes_when_lowercased, changes_when_uppercased,
12183         changes_when_titlecased, changes_when_casefolded,
12184         changes_when_casemapped.
12185         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12186         Unicode TR#11 revision 17 -> 19.
12187         (LBP_CP): New enumeration value.
12188         (LBP_*): Adjust values accordingly.
12189         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12190         TR#14 revision 22 -> 24.
12191         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12192         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12193         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12194         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12195         is_WBP_MIDLETTER.
12196         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12197         the code1 and code2 of each composition rule.
12198         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12199         * lib/unicase/ignorable.h: Likewise.
12200         * lib/unicase/tocasefold.h: Likewise.
12201         * lib/unicase/tolower.h: Likewise.
12202         * lib/unicase/totitle.h: Likewise.
12203         * lib/unicase/toupper.h: Likewise.
12204         * lib/unictype/bidi_of.h: Likewise.
12205         * lib/unictype/blocks.h: Likewise.
12206         * lib/unictype/categ_C.h: Likewise.
12207         * lib/unictype/categ_Cf.h: Likewise.
12208         * lib/unictype/categ_Cn.h: Likewise.
12209         * lib/unictype/categ_L.h: Likewise.
12210         * lib/unictype/categ_Ll.h: Likewise.
12211         * lib/unictype/categ_Lm.h: Likewise.
12212         * lib/unictype/categ_Lo.h: Likewise.
12213         * lib/unictype/categ_Lu.h: Likewise.
12214         * lib/unictype/categ_M.h: Likewise.
12215         * lib/unictype/categ_Mc.h: Likewise.
12216         * lib/unictype/categ_Mn.h: Likewise.
12217         * lib/unictype/categ_N.h: Likewise.
12218         * lib/unictype/categ_Nd.h: Likewise.
12219         * lib/unictype/categ_Nl.h: Likewise.
12220         * lib/unictype/categ_No.h: Likewise.
12221         * lib/unictype/categ_P.h: Likewise.
12222         * lib/unictype/categ_Pd.h: Likewise.
12223         * lib/unictype/categ_Po.h: Likewise.
12224         * lib/unictype/categ_S.h: Likewise.
12225         * lib/unictype/categ_Sc.h: Likewise.
12226         * lib/unictype/categ_So.h: Likewise.
12227         * lib/unictype/categ_of.h: Likewise.
12228         * lib/unictype/combining.h: Likewise.
12229         * lib/unictype/ctype_alnum.h: Likewise.
12230         * lib/unictype/ctype_alpha.h: Likewise.
12231         * lib/unictype/ctype_graph.h: Likewise.
12232         * lib/unictype/ctype_lower.h: Likewise.
12233         * lib/unictype/ctype_print.h: Likewise.
12234         * lib/unictype/ctype_punct.h: Likewise.
12235         * lib/unictype/ctype_upper.h: Likewise.
12236         * lib/unictype/decdigit.h: Likewise.
12237         * lib/unictype/digit.h: Likewise.
12238         * lib/unictype/numeric.h: Likewise.
12239         * lib/unictype/pr_alphabetic.h: Likewise.
12240         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12241         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12242         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12243         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12244         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12245         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12246         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12247         * lib/unictype/pr_combining.h: Likewise.
12248         * lib/unictype/pr_composite.h: Likewise.
12249         * lib/unictype/pr_currency_symbol.h: Likewise.
12250         * lib/unictype/pr_dash.h: Likewise.
12251         * lib/unictype/pr_decimal_digit.h: Likewise.
12252         * lib/unictype/pr_deprecated.h: Likewise.
12253         * lib/unictype/pr_diacritic.h: Likewise.
12254         * lib/unictype/pr_extender.h: Likewise.
12255         * lib/unictype/pr_grapheme_base.h: Likewise.
12256         * lib/unictype/pr_grapheme_extend.h: Likewise.
12257         * lib/unictype/pr_grapheme_link.h: Likewise.
12258         * lib/unictype/pr_id_continue.h: Likewise.
12259         * lib/unictype/pr_id_start.h: Likewise.
12260         * lib/unictype/pr_ideographic.h: Likewise.
12261         * lib/unictype/pr_ignorable_control.h: Likewise.
12262         * lib/unictype/pr_logical_order_exception.h: Likewise.
12263         * lib/unictype/pr_lowercase.h: Likewise.
12264         * lib/unictype/pr_numeric.h: Likewise.
12265         * lib/unictype/pr_other_alphabetic.h: Likewise.
12266         * lib/unictype/pr_punctuation.h: Likewise.
12267         * lib/unictype/pr_sentence_terminal.h: Likewise.
12268         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12269         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12270         * lib/unictype/pr_unified_ideograph.h: Likewise.
12271         * lib/unictype/pr_uppercase.h: Likewise.
12272         * lib/unictype/pr_xid_continue.h: Likewise.
12273         * lib/unictype/pr_xid_start.h: Likewise.
12274         * lib/unictype/pr_zero_width.h: Likewise.
12275         * lib/unictype/scripts.h: Likewise.
12276         * lib/unictype/scripts_byname.gperf: Likewise.
12277         * lib/unictype/sy_java_ident.h: Likewise.
12278         * lib/unigbrk/gbrkprop.h: Likewise.
12279         * lib/unilbrk/lbrkprop1.h: Likewise.
12280         * lib/unilbrk/lbrkprop2.h: Likewise.
12281         * lib/unilbrk/lbrktables.h: Likewise.
12282         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12283         LBP_CP. Implement rule LB30.
12284         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12285         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12286         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12287         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12288         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12289         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12290         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12291         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12292         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12293         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12294         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12295         bits instead of 16 bits in the code1 and code2 of each composition
12296         rule.
12297         (uc_composition): Update for Unicode 5.2.0.
12298         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12299         * lib/uninorm/decomposition-table2.h: Likewise.
12300         * lib/uniwbrk/wbrkprop.h: Likewise.
12301         * tests/unicase/test-cased.c: Likewise.
12302         * tests/unicase/test-ignorable.c: Likewise.
12303         * tests/unicase/test-uc_tolower.c: Likewise.
12304         * tests/unicase/test-uc_totitle.c: Likewise.
12305         * tests/unicase/test-uc_toupper.c: Likewise.
12306         * tests/unictype/test-categ_C.c: Likewise.
12307         * tests/unictype/test-categ_Cf.c: Likewise.
12308         * tests/unictype/test-categ_Cn.c: Likewise.
12309         * tests/unictype/test-categ_L.c: Likewise.
12310         * tests/unictype/test-categ_Ll.c: Likewise.
12311         * tests/unictype/test-categ_Lm.c: Likewise.
12312         * tests/unictype/test-categ_Lo.c: Likewise.
12313         * tests/unictype/test-categ_Lu.c: Likewise.
12314         * tests/unictype/test-categ_M.c: Likewise.
12315         * tests/unictype/test-categ_Mc.c: Likewise.
12316         * tests/unictype/test-categ_Mn.c: Likewise.
12317         * tests/unictype/test-categ_N.c: Likewise.
12318         * tests/unictype/test-categ_Nd.c: Likewise.
12319         * tests/unictype/test-categ_Nl.c: Likewise.
12320         * tests/unictype/test-categ_No.c: Likewise.
12321         * tests/unictype/test-categ_P.c: Likewise.
12322         * tests/unictype/test-categ_Pd.c: Likewise.
12323         * tests/unictype/test-categ_Po.c: Likewise.
12324         * tests/unictype/test-categ_S.c: Likewise.
12325         * tests/unictype/test-categ_Sc.c: Likewise.
12326         * tests/unictype/test-categ_So.c: Likewise.
12327         * tests/unictype/test-ctype_alnum.c: Likewise.
12328         * tests/unictype/test-ctype_alpha.c: Likewise.
12329         * tests/unictype/test-ctype_graph.c: Likewise.
12330         * tests/unictype/test-ctype_lower.c: Likewise.
12331         * tests/unictype/test-ctype_print.c: Likewise.
12332         * tests/unictype/test-ctype_punct.c: Likewise.
12333         * tests/unictype/test-ctype_upper.c: Likewise.
12334         * tests/unictype/test-decdigit.h: Likewise.
12335         * tests/unictype/test-digit.h: Likewise.
12336         * tests/unictype/test-numeric.h: Likewise.
12337         * tests/unictype/test-pr_alphabetic.c: Likewise.
12338         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12339         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12340         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12341         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12342         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12343         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12344         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12345         * tests/unictype/test-pr_combining.c: Likewise.
12346         * tests/unictype/test-pr_composite.c: Likewise.
12347         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12348         * tests/unictype/test-pr_dash.c: Likewise.
12349         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12350         * tests/unictype/test-pr_deprecated.c: Likewise.
12351         * tests/unictype/test-pr_diacritic.c: Likewise.
12352         * tests/unictype/test-pr_extender.c: Likewise.
12353         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12354         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12355         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12356         * tests/unictype/test-pr_id_continue.c: Likewise.
12357         * tests/unictype/test-pr_id_start.c: Likewise.
12358         * tests/unictype/test-pr_ideographic.c: Likewise.
12359         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12360         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12361         * tests/unictype/test-pr_lowercase.c: Likewise.
12362         * tests/unictype/test-pr_numeric.c: Likewise.
12363         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12364         * tests/unictype/test-pr_punctuation.c: Likewise.
12365         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12366         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12367         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12368         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12369         * tests/unictype/test-pr_uppercase.c: Likewise.
12370         * tests/unictype/test-pr_xid_continue.c: Likewise.
12371         * tests/unictype/test-pr_xid_start.c: Likewise.
12372         * tests/unictype/test-pr_zero_width.c: Likewise.
12373         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12374         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12375         changed behaviour: line breaking is now disallowed between a letter
12376         or '=' and '('.
12377         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12378         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12379         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12380         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12381         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12382         lib/uniwidth/width.c.
12383         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12384         without comments, but with the original copyright notice.
12385         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12386         changes.
12387         * lib/unictype/categ_Cc.h: Likewise.
12388         * lib/unictype/categ_Co.h: Likewise.
12389         * lib/unictype/categ_Cs.h: Likewise.
12390         * lib/unictype/categ_Lt.h: Likewise.
12391         * lib/unictype/categ_Me.h: Likewise.
12392         * lib/unictype/categ_Pc.h: Likewise.
12393         * lib/unictype/categ_Pe.h: Likewise.
12394         * lib/unictype/categ_Pf.h: Likewise.
12395         * lib/unictype/categ_Pi.h: Likewise.
12396         * lib/unictype/categ_Ps.h: Likewise.
12397         * lib/unictype/categ_Sk.h: Likewise.
12398         * lib/unictype/categ_Sm.h: Likewise.
12399         * lib/unictype/categ_Z.h: Likewise.
12400         * lib/unictype/categ_Zl.h: Likewise.
12401         * lib/unictype/categ_Zp.h: Likewise.
12402         * lib/unictype/categ_Zs.h: Likewise.
12403         * lib/unictype/ctype_blank.h: Likewise.
12404         * lib/unictype/ctype_cntrl.h: Likewise.
12405         * lib/unictype/ctype_digit.h: Likewise.
12406         * lib/unictype/ctype_space.h: Likewise.
12407         * lib/unictype/ctype_xdigit.h: Likewise.
12408         * lib/unictype/mirror.h: Likewise.
12409         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12410         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12411         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12412         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12413         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12414         * lib/unictype/pr_bidi_control.h: Likewise.
12415         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12416         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12417         * lib/unictype/pr_bidi_pdf.h: Likewise.
12418         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12419         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12420         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12421         * lib/unictype/pr_format_control.h: Likewise.
12422         * lib/unictype/pr_hex_digit.h: Likewise.
12423         * lib/unictype/pr_hyphen.h: Likewise.
12424         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12425         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12426         * lib/unictype/pr_iso_control.h: Likewise.
12427         * lib/unictype/pr_join_control.h: Likewise.
12428         * lib/unictype/pr_left_of_pair.h: Likewise.
12429         * lib/unictype/pr_line_separator.h: Likewise.
12430         * lib/unictype/pr_math.h: Likewise.
12431         * lib/unictype/pr_non_break.h: Likewise.
12432         * lib/unictype/pr_not_a_character.h: Likewise.
12433         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12434         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12435         * lib/unictype/pr_other_id_continue.h: Likewise.
12436         * lib/unictype/pr_other_id_start.h: Likewise.
12437         * lib/unictype/pr_other_lowercase.h: Likewise.
12438         * lib/unictype/pr_other_math.h: Likewise.
12439         * lib/unictype/pr_other_uppercase.h: Likewise.
12440         * lib/unictype/pr_paired_punctuation.h: Likewise.
12441         * lib/unictype/pr_paragraph_separator.h: Likewise.
12442         * lib/unictype/pr_pattern_syntax.h: Likewise.
12443         * lib/unictype/pr_pattern_white_space.h: Likewise.
12444         * lib/unictype/pr_private_use.h: Likewise.
12445         * lib/unictype/pr_quotation_mark.h: Likewise.
12446         * lib/unictype/pr_radical.h: Likewise.
12447         * lib/unictype/pr_soft_dotted.h: Likewise.
12448         * lib/unictype/pr_space.h: Likewise.
12449         * lib/unictype/pr_titlecase.h: Likewise.
12450         * lib/unictype/pr_variation_selector.h: Likewise.
12451         * lib/unictype/pr_white_space.h: Likewise.
12452         * lib/unictype/sy_c_ident.h: Likewise.
12453         * lib/unictype/sy_c_whitespace.h: Likewise.
12454         * lib/unictype/sy_java_whitespace.h: Likewise.
12455         * modules/uni*/*: Bump version number of expected libunistring version.
12456         Reported by Simon Josefsson.
12457
12458 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12459
12460         useless-if-before-free: fix typo in --help and make the internal,
12461         automatic version date update process work once again.
12462         --help output contained a NUL character instead of the
12463         backslash-zero that was intended.  Also, the "must lie within
12464         the first 8 lines" line is on line 9, and hence not getting
12465         automatically updated.
12466         * build-aux/useless-if-before-free: Fix the former by adding a
12467         backslash, and the latter by condensing the three lines of what-it-does
12468         to a single line, leaving one line of slack for the future.
12469
12470 2011-01-09  Bruno Haible  <bruno@clisp.org>
12471
12472         uniwidth/width: Fix width of U+1D173..U+1D17A.
12473         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12474         symbolic_width, output_width_property_test): New functions.
12475         (main): Invoke output_nonspacing_property, output_width_property_test.
12476         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12477         U+1D173..U+1D17A.
12478         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12479         1.
12480         * modules/uniwidth/*: Bump version number of expected libunistring
12481         version.
12482         * modules/unilbrk/*: Likewise.
12483
12484 2011-01-08  Bruno Haible  <bruno@clisp.org>
12485
12486         uninorm tests: Preserve copyright of Unicode data file.
12487         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12488         Mention modifications.
12489
12490 2011-01-08  Bruno Haible  <bruno@clisp.org>
12491
12492         gen-uni-tables: Prepare for Unicode 5.2.0.
12493         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12494         (debug_output_lbp, output_lbp): Update.
12495
12496 2011-01-08  Bruno Haible  <bruno@clisp.org>
12497
12498         unilbrk: Clarify gen-uni-tables.c code.
12499         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12500         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12501         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12502
12503 2011-01-07  Bruno Haible  <bruno@clisp.org>
12504
12505         strtod: Restore errno when successfully parsing Infinity or NaN.
12506         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12507         restore the original errno.
12508
12509 2011-01-07  Bruno Haible  <bruno@clisp.org>
12510
12511         remove test: Avoid failure on HP-UX 11.
12512         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12513
12514 2011-01-07  Bruno Haible  <bruno@clisp.org>
12515
12516         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12517         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12518         error code.
12519
12520 2011-01-07  Pádraig Brady <P@draigBrady.com>
12521
12522         ignore-value: fixup comments, and add Eric Blake
12523         as an author since he rewrote the macros.
12524         * lib/ignore-value.h (ignore_value):  State that
12525         we now support aggregates.  Also specify exactly
12526         when the GCC warn_unused_result feature was added.
12527
12528 2011-01-06  Eric Blake  <eblake@redhat.com>
12529
12530         ignore-value: support aggregate types
12531         * lib/ignore-value.h (ignore_value): Provide separate gcc
12532         definition.
12533         * modules/ignore-value-tests: New test module.
12534         * tests/test-ignore-value.c: New test.
12535
12536         maint.mk: improve sc_prohibit_strcmp regex
12537         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12538         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12539         definition of STRNEQ.
12540
12541         signal: work around Haiku issue with SIGBUS
12542         * lib/siglist.h: Add comment.
12543         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12544         strsignal's favoring of SIGSEGV.
12545         * tests/test-signal.c (main): Avoid test failure.
12546         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12547         Reported by Scott McCreary.
12548
12549         maint.mk: add pre-release check to ensure submodule commits are public
12550         * top/maint.mk (public-submodule-commit): New rule.
12551         (submodule-checks): New variable.
12552         (alpha beta stable): Depend on the variable.
12553
12554 2011-01-05  Pádraig Brady <P@draigBrady.com>
12555         and Jim Meyering  <meyering@redhat.com>
12556
12557         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12558         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12559         (ATTRIBUTE_DEPRECATED): Define.
12560         (_ignore_case): New function.
12561         (ignore_value): New macro, to replace the old function.
12562         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12563         * modules/ignore-value (Depends-on): Add stdint.
12564
12565 2011-01-04  Eric Blake  <eblake@redhat.com>
12566
12567         doc: regenerate INSTALL
12568         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12569         @firstparagraphindent support, now that autoconf dropped it.
12570         (INSTALL_PRELUDE): Reinstate old macro.
12571         * doc/install.texi: Resync from autoconf.
12572         * doc/INSTALL: Reflect recent autoconf update.
12573         * doc/INSTALL.ISO: Likewise.
12574         * doc/INSTALL.UTF-8: Likewise.
12575         Reported by Karl Berry.
12576
12577 2011-01-04  Bruce Korb  <address@hidden>
12578
12579         git-version-gen: avoid a sub-shell
12580         * build-aux/git-version-gen: Redirect stderr in `...` via
12581         "exec 2>...", rather than via an added sub-shell.
12582
12583 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12584
12585         git-version-gen: use (...) rather than sh -c '...'
12586         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12587         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12588
12589 2011-01-03  Jim Meyering  <meyering@redhat.com>
12590
12591         git-version-gen: convert leading TABs to spaces
12592         * build-aux/git-version-gen: Expand leading TABs.
12593
12594         git-version-gen: handle failed "git rev-list"
12595         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12596         from git and proceeding as if it had succeeded but printed no SHA1
12597         checksums, suppress the diagnostic and handle the failure.
12598         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12599
12600         git-version-gen: include command name in one more diagnostic
12601         * build-aux/git-version-gen: When the required .tarball-version file
12602         was missing or unreadable, you might see the diagnostic from "cat",
12603         but no trace of the name of the invoking script.  Now, you still see
12604         the diagnostic from cat, but also get one from "git-version-gen: ".
12605         Inspired by a patch from Bruce Korb.
12606
12607         update-copyright: adjust test to match changed code
12608         * tests/test-update-copyright.sh: Change test's expected output
12609         to match new actual output.
12610
12611 2011-01-02  Bruno Haible  <bruno@clisp.org>
12612
12613         getlogin_r: Avoid test failure on HP-UX 11.
12614         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12615         ERANGE when the second argument is zero.
12616         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12617         portability problem.
12618
12619 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12620
12621         * build-aux/update-copyright: doc Simon's changes
12622
12623 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12624
12625         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12626         environment variable.
12627
12628 2011-01-02  Bruno Haible  <bruno@clisp.org>
12629
12630         unigbrk: Avoid gcc warnings.
12631         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12632         unused variable.
12633         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12634         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12635         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12636         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12637         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12638         Change type of first argument to 'const char *'.
12639         (main): Remove unused variable.
12640         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12641         type of first argument to 'const char *'.
12642         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12643         Likewise.
12644         (main): Change type of variable 's'.
12645         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12646         to 'int'.
12647
12648 2011-01-02  Bruno Haible  <bruno@clisp.org>
12649
12650         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12651         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12652         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12653         bug.
12654         * lib/pwrite.c: Undo 2010-12-31 patch.
12655         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12656
12657 2011-01-02  Bruno Haible  <bruno@clisp.org>
12658
12659         pread: Fix test whether it works.
12660         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12661
12662 2011-01-02  Bruno Haible  <bruno@clisp.org>
12663
12664         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12665         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12666         ends in "6". Don't require a specific month name. Try also the locale
12667         names found on HP-UX 11 and Solaris 7.
12668
12669 2011-01-02  Bruno Haible  <bruno@clisp.org>
12670
12671         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12672         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12673         C linkage.
12674         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12675
12676 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12677
12678         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12679         for consistency, since the "cluster" term is not used elsewhere.
12680         * lib/unigbrk.in.h: Update name.
12681         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12682         * lib/unigbrk/u16-grapheme-next.c: Update name.
12683         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12684         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12685         * lib/unigbrk/u32-grapheme-next.c: Update name.
12686         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12687         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12688         * lib/unigbrk/u8-grapheme-next.c: Update name.
12689         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12690         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12691         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12692         Suggested by Bruno Haible.
12693
12694 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12695
12696         Remove module 'u8-grapheme-len' as too redundant with
12697         'u8-grapheme-next'.
12698         * modules/unigbrk/u8-grapheme-len: Delete file.
12699         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12700         * lib/unigbrk.in.h: Remove prototype for deleted function.
12701         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12702         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12703
12704         Remove module 'u16-grapheme-len' as too redundant with
12705         'u16-grapheme-next'.
12706         * modules/unigbrk/u16-grapheme-len: Delete file.
12707         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12708         * lib/unigbrk.in.h: Remove prototype for deleted function.
12709         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12710         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12711
12712         Remove module 'u32-grapheme-len' as too redundant with
12713         'u32-grapheme-next'.
12714         * modules/unigbrk/u32-grapheme-len: Delete file.
12715         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12716         * lib/unigbrk.in.h: Remove prototype for deleted function.
12717         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12718         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12719
12720         Suggested by Bruno Haible.
12721
12722 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12723
12724         * unigbrk.in.h: Fix typo: "ben" => "been".
12725         Reported by Bruno Haible.
12726
12727 2011-01-01  Jim Meyering  <meyering@redhat.com>
12728
12729         maint: update almost all copyright ranges to include 2011
12730         Run the new "make update-copyright" rule.
12731
12732 2011-01-01  Jim Meyering  <meyering@redhat.com>
12733
12734         maint: update-copyright: exempt doc/INSTALL*
12735         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12736         since they are generated.  Suggested by Bruno Haible.
12737
12738 2011-01-01  Jim Meyering  <meyering@redhat.com>
12739
12740         maint: refine the update-copyright rule
12741         * Makefile (update-copyright): Also exclude any file that includes
12742         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12743         code that merely generates the comment.
12744
12745 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12746
12747         New module 'u8-grapheme-len'.
12748         * modules/unigbrk/u8-grapheme-len: New file.
12749         * modules/unigbrk/u8-grapheme-len-tests: New file.
12750         * lib/unigbrk.in.h: Add prototype for new function.
12751         * lib/unigbrk/u8-grapheme-len.c: New file.
12752         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12753
12754         New module 'u16-grapheme-len'.
12755         * modules/unigbrk/u16-grapheme-len: New file.
12756         * modules/unigbrk/u16-grapheme-len-tests: New file.
12757         * lib/unigbrk.in.h: Add prototype for new function.
12758         * lib/unigbrk/u16-grapheme-len.c: New file.
12759         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12760
12761         New module 'u32-grapheme-len'.
12762         * modules/unigbrk/u32-grapheme-len: New file.
12763         * modules/unigbrk/u32-grapheme-len-tests: New file.
12764         * lib/unigbrk.in.h: Add prototype for new function.
12765         * lib/unigbrk/u32-grapheme-len.c: New file.
12766         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12767
12768         New module 'u8-grapheme-next'.
12769         * modules/unigbrk/u8-grapheme-next: New file.
12770         * modules/unigbrk/u8-grapheme-next-tests: New file.
12771         * lib/unigbrk.in.h: Add prototype for new function.
12772         * lib/unigbrk/u8-grapheme-next.c: New file.
12773         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12774
12775         New module 'u16-grapheme-next'.
12776         * modules/unigbrk/u16-grapheme-next: New file.
12777         * modules/unigbrk/u16-grapheme-next-tests: New file.
12778         * lib/unigbrk.in.h: Add prototype for new function.
12779         * lib/unigbrk/u16-grapheme-next.c: New file.
12780         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12781
12782         New module 'u32-grapheme-next'.
12783         * modules/unigbrk/u32-grapheme-next: New file.
12784         * modules/unigbrk/u32-grapheme-next-tests: New file.
12785         * lib/unigbrk.in.h: Add prototype for new function.
12786         * lib/unigbrk/u32-grapheme-next.c: New file.
12787         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12788
12789         New module 'u8-grapheme-prev'.
12790         * modules/unigbrk/u8-grapheme-prev: New file.
12791         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12792         * lib/unigbrk.in.h: Add prototype for new function.
12793         * lib/unigbrk/u8-grapheme-prev.c: New file.
12794         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12795
12796         New module 'u16-grapheme-prev'.
12797         * modules/unigbrk/u16-grapheme-prev: New file.
12798         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12799         * lib/unigbrk.in.h: Add prototype for new function.
12800         * lib/unigbrk/u16-grapheme-prev.c: New file.
12801         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12802
12803         New module 'u32-grapheme-prev'.
12804         * modules/unigbrk/u32-grapheme-prev: New file.
12805         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12806         * lib/unigbrk.in.h: Add prototype for new function.
12807         * lib/unigbrk/u32-grapheme-prev.c: New file.
12808         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12809
12810         New module 'u8-grapheme-breaks'.
12811         * modules/unigbrk/u8-grapheme-breaks: New file.
12812         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12813         * lib/unigbrk.in.h: Add prototype for new function.
12814         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12815         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12816
12817         New module 'u16-grapheme-breaks'.
12818         * modules/unigbrk/u16-grapheme-breaks: New file.
12819         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12820         * lib/unigbrk.in.h: Add prototype for new function.
12821         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12822         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12823
12824         New module 'u32-grapheme-breaks'.
12825         * modules/unigbrk/u32-grapheme-breaks: New file.
12826         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12827         * lib/unigbrk.in.h: Add prototype for new function.
12828         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12829         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12830
12831         New module 'ulc-grapheme-breaks'.
12832         * modules/unigbrk/ulc-grapheme-breaks: New file.
12833         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12834         * m4/locale-ar.m4: New file.
12835         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12836         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12837         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12838
12839 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12840
12841         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12842         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12843         modified how this file was generated before I initially submitted
12844         the module, but failed to regenerate it.  This meant that several
12845         of the level2 entries were wrong.
12846         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12847         Remove the division-by-2 that is folded into the table now that
12848         gbrkprop.h has been regenerated properly.  Now -1 entries are
12849         handled correctly.
12850
12851         New module 'unigbrk/uc-gbrk-prop-tests'.
12852         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12853         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12854         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12855         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12856
12857 2011-01-01  Bruno Haible  <bruno@clisp.org>
12858
12859         Avoid use of hexadecimal escapes.
12860         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12861         instead of hexadecimal escapes.
12862
12863 2011-01-01  Jim Meyering  <meyering@redhat.com>
12864
12865         maint: new rule to update copyright year ranges
12866         * Makefile (update-copyright): New rule.
12867
12868         maint: indent with TABs in Makefile
12869         * Makefile: Expand leading sequences of spaces to TABs
12870
12871         version-etc: update the copyright year it reports
12872         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12873
12874 2010-12-31  Bruno Haible  <bruno@clisp.org>
12875
12876         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12877         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12878         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12879         zero.
12880
12881 2010-12-31  Bruno Haible  <bruno@clisp.org>
12882
12883         pwrite: Work around HP-UX 11.11 bug.
12884         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12885         works and set REPLACE_PWRITE if not.
12886         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12887         function.
12888         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12889
12890 2010-12-31  Bruno Haible  <bruno@clisp.org>
12891
12892         pread: Work around HP-UX 11 bugs.
12893         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12894         and set REPLACE_PREAD if not.
12895         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12896
12897 2010-12-31  Eric Blake  <eblake@redhat.com>
12898
12899         nl_langinfo: fix YESEXPR on Irix 6.5
12900         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12901         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12902         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12903         it.
12904
12905 2010-12-31  Bruno Haible  <bruno@clisp.org>
12906
12907         iconv: Document HP-UX 11 bug.
12908         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12909
12910 2010-12-31  Bruno Haible  <bruno@clisp.org>
12911
12912         ldexpl: Fix link error on HP-UX 11.
12913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12914         LDEXPL_LIBM, using $ISNANL_LIBM.
12915
12916 2010-12-31  Eric Blake  <eblake@redhat.com>
12917
12918         ftello: avoid compilation failure with SunStudio c89
12919         * lib/ftello.c (ftello): Use lseek, not llseek.
12920
12921         tests: avoid failing coreutils tests on cygwin
12922         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12923         (create_exe_shims_): Return 0 when skipping.
12924
12925 2010-12-31  Bruno Haible  <bruno@clisp.org>
12926
12927         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12928         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12929
12930 2010-12-31  Bruno Haible  <bruno@clisp.org>
12931
12932         waitpid: Fix link error in C++ mode.
12933         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12934
12935 2010-12-31  Bruno Haible  <bruno@clisp.org>
12936
12937         isnan: Use GCC built-ins when possible.
12938         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12939         __builtin_isnan.
12940         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12941         (isnan): Define using GCC built-ins for GCC >= 4.0.
12942
12943 2010-12-31  Bruno Haible  <bruno@clisp.org>
12944
12945         isnand: Fix mistake.
12946         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12947         __builtin_isnand.
12948
12949 2010-12-31  Bruno Haible  <bruno@clisp.org>
12950
12951         open: Avoid C++ error on HP-UX 11.
12952         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12953
12954 2010-12-31  Bruno Haible  <bruno@clisp.org>
12955
12956         time_r: Add missing declarations on HP-UX 11.
12957         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12958         instead of HAVE_LOCALTIME_R.
12959         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12960         HAVE_LOCALTIME_R always.
12961         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12962         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12963         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12964         HAVE_LOCALTIME_R.
12965         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12966         * doc/posix-functions/localtime_r.texi: Likewise.
12967
12968 2010-12-29  Eric Blake  <eblake@redhat.com>
12969
12970         mountlist: tweak previous commit
12971         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12972         Reported by Paul Eggert.
12973
12974         mountlist: fix local drive detection on cygwin
12975         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12976         that works for cygwin.
12977
12978 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12979
12980         ftoastr, snprintf: ftoastr + snprintf module
12981         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12982         since the snprintf module now should be good enough here.
12983         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12984         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12985         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12986         GNULIB_SNPRINTF only for the test directory, and the latter
12987         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12988         seems to suffice by itself.
12989
12990 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12991
12992         alloca: one step towards thread-safety
12993         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12994         need for a static variable.  All callers changed.  This does not
12995         make the alloca replacement thread-safe, but it's one step.
12996
12997         tests: minor indenting change
12998         * tests/init.sh: Sync from coreutils housekeeping patch
12999         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13000         to keep lines within 80 columns.
13001
13002 2010-12-28  Jim Meyering  <meyering@redhat.com>
13003
13004         regex: don't infloop on persistent failing calloc
13005         * lib/regexec.c (build_trtable): Return failure indication upon
13006         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13007         In glibc, this was fixed for version 2.13:
13008         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13009
13010 2010-12-28  Bruno Haible  <bruno@clisp.org>
13011             Paul Eggert <eggert@cs.ucla.edu>
13012
13013         linkat: Make implementation robust against system behaviour variations.
13014         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13015         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13016         way, and to -2 if it needs a generic runtime test.
13017         * lib/linkat.c (solaris_optimized_link_immediate,
13018         solaris_optimized_link_follow): New functions.
13019         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13020         (check_same_link): Use it.
13021
13022 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13023
13024         New module 'unigbrk/base'.
13025         * modules/unigbrk/base: New file.
13026         * lib/unigbrk.in.h: New file.
13027
13028         New module 'unigbrk/uc-gbrk-prop'.
13029         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13030         * modules/unigbrk/uc-gbrk-prop: New file.
13031         * lib/unigbrk/gbrkprop.h: New file.
13032         * lib/unigbrk/uc-gbrk-prop.c: New file.
13033
13034         New module 'unigbrk/uc-is-grapheme-break'.
13035         * modules/unigbrk/uc-is-grapheme-break: New file.
13036         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13037         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13038         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13039         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13040         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13041
13042         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13043
13044 2010-12-27  Bruno Haible  <bruno@clisp.org>
13045
13046         linkat test: Avoid failure on Solaris 11 2010-11.
13047         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13048
13049 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13050
13051         utimens: work around glibc rounding bug on more platforms
13052         * lib/utimens.c (fdutimens): Work around rounding bug even if
13053         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13054         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13055
13056 2010-12-27  Bruno Haible  <bruno@clisp.org>
13057
13058         select tests: Improve comments.
13059         * tests/test-select.c (do_select): Add comments.
13060
13061 2010-12-27  Bruno Haible  <bruno@clisp.org>
13062
13063         select tests: Safer way of handling timeout.
13064         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13065         at every invocation.
13066
13067 2010-12-27  Bruno Haible  <bruno@clisp.org>
13068
13069         select tests: Use 'bool' where appropriate.
13070         * tests/test-select.c (connect_to_socket): Change argument type to
13071         'bool'.
13072
13073 2010-12-27  Bruno Haible  <bruno@clisp.org>
13074
13075         select tests: Use existing modules.
13076         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13077         (configure.ac): Don't test for unistd.h.
13078         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13079         declared in <unistd.h>.
13080
13081 2010-12-27  Bruno Haible  <bruno@clisp.org>
13082
13083         mbrtowc: Work around a Solaris 7 bug.
13084         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13085         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13086         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13087         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13088         MBRTOWC_NULL_ARG1_BUG.
13089         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13090         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13091         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13092         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13093
13094 2010-12-27  Jim Meyering  <meyering@redhat.com>
13095
13096         read-file.c: tweak syntax
13097         * lib/read-file.c (fread_file): Remove space after "*" in function
13098         definitions.
13099
13100 2010-12-27  Bruno Haible  <bruno@clisp.org>
13101
13102         times test: Avoid gcc warnings on OSF/1.
13103         * tests/test-times.c (main): Cast printf arguments from clock_t to
13104         'long int'.
13105
13106 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13107
13108         utimens: work around glibc rounding bug on older Linux kernels
13109         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13110         on Linux with a glibc whose utimes might not work, then work
13111         around a longstanding glibc bug involving rounding rather than
13112         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13114
13115 2010-12-26  Bruno Haible  <bruno@clisp.org>
13116
13117         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13118         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13119         _GL_CXXALIAS_SYS.
13120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13121
13122 2010-12-26  Bruno Haible  <bruno@clisp.org>
13123
13124         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13125         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13126         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13127         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13128         looking for the declaration.
13129         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13130         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13131         problem.
13132         * doc/posix-functions/inet_pton.texi: Likewise.
13133
13134 2010-12-26  Bruno Haible  <bruno@clisp.org>
13135
13136         arpa_inet: Use the common idioms with C++ support.
13137         * lib/arpa_inet.in.h: Include c++defs.h.
13138         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13139         support.
13140         * modules/arpa_inet (Depends-on): Add c++defs.
13141         (Makefile.am): Substitute the contents of c++defs.h.
13142         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13143         * modules/arpa_inet-c++-tests: New file.
13144         * tests/test-arpa_inet-c++.cc: New file.
13145
13146 2010-12-25  Bruno Haible  <bruno@clisp.org>
13147
13148         Fix more C++ link errors on Solaris 8.
13149         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13150         $(LIB_EACCESS).
13151         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13152         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13153         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13154         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13155         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13156
13157 2010-12-25  Bruno Haible  <bruno@clisp.org>
13158
13159         printf-posix: Fix link error when a non-GCC compiler is used.
13160         * lib/stdio.in.h (printf): When not using GCC, override printf
13161         correctly.
13162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13163
13164 2010-12-25  Bruno Haible  <bruno@clisp.org>
13165
13166         strerror_r-posix: Update doc.
13167         * doc/posix-functions/strerror_r.texi: Update doc about the return
13168         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13169
13170 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13171
13172         utimens: simplify the logic of the previous change
13173         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13174         This should not affect whether the test succeeds or fails.
13175
13176         utimens: configure better on hosts with NFS clock skew
13177         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13178         uses the clock of the local host.  It might use the clock of the
13179         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13180         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13181
13182 2010-12-25  Bruno Haible  <bruno@clisp.org>
13183
13184         ptsname test: Avoid failure on Solaris.
13185         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13186         open a pseudo-terminal; don't use BSD-style ptys.
13187         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13188
13189 2010-12-25  Bruno Haible  <bruno@clisp.org>
13190
13191         ptsname: Avoid ERANGE failure on some systems.
13192         * lib/ptsname.c (buffer): Increase size.
13193
13194 2010-12-25  Bruno Haible  <bruno@clisp.org>
13195
13196         rename, renameat: Avoid test failures at NFS mounted locations.
13197         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13198         so that subsequent mkdir calls succeed.
13199
13200 2010-12-25  Bruno Haible  <bruno@clisp.org>
13201
13202         iswblank: Fix C++ link error on Solaris 8.
13203         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13204         _GL_FUNCDECL_SYS.
13205
13206 2010-12-25  Bruno Haible  <bruno@clisp.org>
13207
13208         unistd: Fix C++ link error on Solaris 8.
13209         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13210
13211 2010-12-25  Bruno Haible  <bruno@clisp.org>
13212
13213         readlink doc: Mention an old glibc bug.
13214         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13215
13216 2010-12-25  Bruno Haible  <bruno@clisp.org>
13217
13218         fcntl-h: Fix for use of C++ on glibc systems.
13219         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13220         also on glibc systems in C++ mode.
13221         Reported by Gary V. Vaughan <gary@gnu.org>.
13222
13223 2010-12-25  Bruno Haible  <bruno@clisp.org>
13224
13225         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13226         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13227
13228 2010-12-25  Bruno Haible  <bruno@clisp.org>
13229
13230         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13231         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13232         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13233         test whether truncl works according to ISO C 99 with IEC 60559.
13234         * m4/truncl-ieee.m4: New file.
13235         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13236         m4/signbit.m4.
13237         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13238
13239 2010-12-25  Bruno Haible  <bruno@clisp.org>
13240
13241         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13242         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13243         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13244         test whether ceill works according to ISO C 99 with IEC 60559.
13245         * m4/ceill-ieee.m4: New file.
13246         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13247         m4/signbit.m4.
13248         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13249
13250 2010-12-25  Bruno Haible  <bruno@clisp.org>
13251
13252         Ensure all prerequisites of <wchar.h> are included.
13253         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13254         before <wchar.h>.
13255         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13256         gl_MBRLEN_NUL_RETVAL): Likewise.
13257         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13258         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13259         AC_FUNC_MBRTOWC): Likewise.
13260         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13261         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13263         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13264         Likewise.
13265         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13266         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13267         (gl_WCHAR_H): Improve comments.
13268         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13269
13270 2010-12-25  Bruno Haible  <bruno@clisp.org>
13271
13272         strtok_r: Fix C syntax error in autoconf macro.
13273         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13274         characters in test program.
13275
13276 2010-12-24  Bruno Haible  <bruno@clisp.org>
13277
13278         ceil, trunc, round: Fix gcc warnings.
13279         * lib/ceil.c (MIN): Undefine before redefining.
13280         * lib/trunc.c (MIN): Likewise.
13281         * lib/round.c (MIN): Likewise.
13282         Include <math.h> first.
13283
13284 2010-12-24  Bruno Haible  <bruno@clisp.org>
13285
13286         select tests: Avoid failures on OSF/1 5.1.
13287         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13288         failure of closing the last socket; it may fail with ECONNRESET.
13289
13290 2010-12-24  Eric Blake  <eblake@redhat.com>
13291
13292         stdint: avoid HP-UX 10.20 preprocessor bug
13293         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13294         than #if.
13295         * tests/test-floor2.c (main): Likewise.
13296         Reported by Peter O'Gorman.
13297
13298         pipe: make obsoletion transition easier
13299         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13300         * modules/pipe (Files): Include revived file.
13301         (Include): Drop reference, to mirror getdate's behavior.
13302
13303 2010-12-24  Bruno Haible  <bruno@clisp.org>
13304
13305         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13306         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13307         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13308         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13309
13310 2010-12-24  Bruno Haible  <bruno@clisp.org>
13311
13312         gethostname: Ensure declaration on NonStop Kernel.
13313         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13315
13316 2010-12-24  Bruno Haible  <bruno@clisp.org>
13317
13318         sys_select: Ensure all necessary types on NonStop Kernel.
13319         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13320         include <sys/time.h>.
13321         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13322         NonStop Kernel.
13323         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13324
13325 2010-12-24  Bruno Haible  <bruno@clisp.org>
13326
13327         sys_select: Remove unneeded include.
13328         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13329         have <sys/select.h>.
13330
13331 2010-12-24  Bruno Haible  <bruno@clisp.org>
13332
13333         gethostname: Provide a fallback for HOST_NAME_MAX.
13334         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13335         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13336         instead.
13337         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13338
13339 2010-12-24  Bruno Haible  <bruno@clisp.org>
13340
13341         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13342         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13343         (SA_RESTART): Likewise.
13344         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13345
13346 2010-12-24  Bruno Haible  <bruno@clisp.org>
13347
13348         signal: Define NSIG.
13349         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13350         * tests/test-signal.c (nsig): New variable.
13351         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13352
13353 2010-12-24  Bruno Haible  <bruno@clisp.org>
13354
13355         rename, renameat: Avoid test failures on OSF/1 5.1.
13356         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13357         alternative error codes.
13358         * tests/test-renameat.c (main): Likewise.
13359
13360 2010-12-24  Bruno Haible  <bruno@clisp.org>
13361
13362         *printf: Detect large precisions bug on Solaris 10/SPARC.
13363         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13364         by Paul Eggert.
13365         * tests/test-snprintf-posix.h (test_function): Add this test code here
13366         too.
13367         * tests/test-sprintf-posix.h (test_function): Likewise.
13368         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13369         * tests/test-vasprintf-posix.c (test_function): Likewise.
13370         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13371         around by gnulib.
13372         * doc/posix-functions/printf.texi: Likewise.
13373         * doc/posix-functions/snprintf.texi: Likewise.
13374         * doc/posix-functions/sprintf.texi: Likewise.
13375         * doc/posix-functions/vfprintf.texi: Likewise.
13376         * doc/posix-functions/vprintf.texi: Likewise.
13377         * doc/posix-functions/vsnprintf.texi: Likewise.
13378         * doc/posix-functions/vsprintf.texi: Likewise.
13379         * doc/posix-functions/dprintf.texi: Undo last commit.
13380         * doc/posix-functions/vdprintf.texi: Likewise.
13381
13382 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         tests: port test-fdutimensat.c to Solaris 8
13385         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13386         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13387         On Solaris 8, it fails with errno == ENOSYS, because there is no
13388         futimens (so it can't use the fd), and there is no lutimens (so it
13389         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13390
13391         vsnprintf: make more consistent with snprintf; doc fixes
13392
13393         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13394         the byte count return problem was promoted from the snprintf-posix
13395         to the snprintf module.
13396         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13397         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13398         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13399         * tests/test-snprintf.c (main): Check the byte count returned.
13400         * tests/test-vsnprintf.c (main): Likewise.
13401
13402 2010-12-23  Eric Blake  <eblake@redhat.com>
13403
13404         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13405         * modules/sigpipe (License): Relax license.
13406
13407 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13408
13409         doc: document Solaris printf bug with large float precisions
13410         * doc/posix-functions/dprintf.texi (dprintf):
13411         * doc/posix-functions/fprintf.texi (fprintf):
13412         * doc/posix-functions/printf.texi (printf):
13413         * doc/posix-functions/snprintf.texi (snprintf):
13414         * doc/posix-functions/sprintf.texi (sprintf):
13415         * doc/posix-functions/vdprintf.texi (vdprintf):
13416         * doc/posix-functions/vfprintf.texi (vfprintf):
13417         * doc/posix-functions/vprintf.texi (vprintf):
13418         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13419         * doc/posix-functions/vsprintf.texi (vsprintf):
13420         Mention that these functions mishandle large floating point
13421         precisions on Solaris 10.  The same bug is also present in Solaris
13422         8, and I assume earlier.  This causes "cd gnulib-tests; make
13423         check" to fail on Solaris 8 (and I assume, later) when building
13424         the latest coreutils, in test-vasprintf-posix's call to
13425         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13426         the wide flavors (e.g., wprintf) so this patch just updates the
13427         documentation for the narrow ones.
13428
13429         test-posixtm.c: add two tests
13430         * tests/test-posixtm.c: Add two tests, to highlight the
13431         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13432         around this bug; this is merely to document it.
13433
13434 2010-12-22  Bruno Haible  <bruno@clisp.org>
13435
13436         getlogin_r: Work around portability problem on OSF/1.
13437         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13438         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13439         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13440         test for a truncated result.
13441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13442         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13443         * modules/getlogin_r (Depends-on): Add memchr.
13444         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13445
13446 2010-12-22  Bruno Haible  <bruno@clisp.org>
13447
13448         ptsname: Avoid test failure on OSF/1 5.1.
13449         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13450         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13451         (same_slave): New function.
13452         (main): Use it to compare ptsname's result with the expected file name.
13453
13454 2010-12-22  Bruno Haible  <bruno@clisp.org>
13455
13456         Port extended stdio modules to HP NonStop Kernel.
13457         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13458         macros.
13459         * lib/fbufmode.c: Update comments.
13460         * lib/fflush.c: Likewise.
13461         * lib/fpurge.c: Likewise.
13462         * lib/freadable.c: Likewise.
13463         * lib/freadahead.c: Likewise.
13464         * lib/freading.c: Likewise.
13465         * lib/freadptr.c: Likewise.
13466         * lib/freadseek.c: Likewise.
13467         * lib/fseeko.c: Likewise.
13468         * lib/fseterr.c: Likewise.
13469         * lib/fwritable.c: Likewise.
13470         * lib/fwriting.c: Likewise.
13471         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13472
13473 2010-12-22  Bruno Haible  <bruno@clisp.org>
13474
13475         ttyname_r: Work around bug on OSF/1 5.1.
13476         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13477         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13478         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13479         present.
13480         * lib/ttyname_r.c (ttyname_r): Update comments.
13481
13482 2010-12-22  Bruno Haible  <bruno@clisp.org>
13483
13484         round: Implement result sign according to IEEE 754.
13485         * lib/round.c (MIN, MINUS_ZERO): New macros.
13486         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13487         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13488         * tests/test-round-ieee.c (main): Likewise.
13489         * tests/test-roundl-ieee.c (main): Likewise.
13490
13491         trunc: Implement result sign according to IEEE 754.
13492         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13493         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13494         * tests/test-trunc2.c: Include minus-zero.h.
13495         (MINUS_ZERO): New macro.
13496         (trunc_reference): Keep in sync with lib/trunc.c.
13497         * tests/test-truncf2.c: Include minus-zero.h.
13498         (MINUS_ZERO): New macro.
13499         (truncf_reference): Keep in sync with lib/trunc.c.
13500         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13501         * tests/test-trunc-ieee.c (main): Likewise.
13502         * tests/test-truncl-ieee.c (main): Likewise.
13503
13504         ceil: Implement result sign according to IEEE 754.
13505         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13506         (FUNC): Return -0.0 for -1 < x < 0.
13507         * tests/test-ceil2.c: Include minus-zero.h.
13508         (MINUS_ZERO): New macro.
13509         (ceil_reference): Keep in sync with lib/ceil.c.
13510         * tests/test-ceilf2.c: Include minus-zero.h.
13511         (MINUS_ZERO): New macro.
13512         (ceilf_reference): Keep in sync with lib/ceil.c.
13513         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13514         * tests/test-ceil-ieee.c (main): Likewise.
13515         * tests/test-ceill-ieee.c (main): Likewise.
13516
13517         floor: Implement result sign according to IEEE 754.
13518         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13519         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13520         * tests/test-floorf2.c (floorf_reference): Likewise.
13521         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13522         * tests/test-floor-ieee.c (main): Likewise.
13523         * tests/test-floorl-ieee.c (main): Likewise.
13524
13525 2010-12-22  Bruno Haible  <bruno@clisp.org>
13526
13527         getaddrinfo: Update doc.
13528         * doc/posix-functions/gai_strerror.texi: Return type is also different
13529         on AIX and HP-UX.
13530
13531 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13532
13533         getaddrinfo, inet_ntop: Update doc for Solaris.
13534         * doc/posix-functions/gai_strerror.texi: Return type is also an
13535         issue on Solaris 9 and earlier.
13536         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13537         on Solaris 10 and earlier.
13538
13539 2010-12-21  Bruno Haible  <bruno@clisp.org>
13540
13541         New module 'roundl-ieee'.
13542         * modules/roundl-ieee: New file.
13543         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13544         test whether roundl works according to ISO C 99 with IEC 60559.
13545         * m4/roundl-ieee.m4: New file.
13546         * modules/roundl-ieee-tests: New file.
13547         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13548         * tests/test-roundl.c (main): Remove signbit tests.
13549         * modules/roundl-tests (Depends-on): Remove signbit.
13550         * doc/posix-functions/roundl.texi: Mention the new module.
13551
13552 2010-12-21  Bruno Haible  <bruno@clisp.org>
13553
13554         New module 'truncl-ieee'.
13555         * modules/truncl-ieee: New file.
13556         * modules/truncl-ieee-tests: New file.
13557         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13558         * tests/test-truncl.c (main): Remove signbit tests.
13559         * modules/truncl-tests (Depends-on): Remove signbit.
13560         * doc/posix-functions/truncl.texi: Mention the new module.
13561
13562 2010-12-21  Bruno Haible  <bruno@clisp.org>
13563
13564         New module 'ceill-ieee'.
13565         * modules/ceill-ieee: New file.
13566         * modules/ceill-ieee-tests: New file.
13567         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13568         * tests/test-ceill.c (main): Remove signbit tests.
13569         * modules/ceill-tests (Depends-on): Remove signbit.
13570         * doc/posix-functions/ceill.texi: Mention the new module.
13571
13572 2010-12-21  Bruno Haible  <bruno@clisp.org>
13573
13574         New module 'floorl-ieee'.
13575         * modules/floorl-ieee: New file.
13576         * modules/floorl-ieee-tests: New file.
13577         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13578         * tests/test-floorl.c (main): Remove signbit tests.
13579         * modules/floorl-tests (Depends-on): Remove signbit.
13580         * doc/posix-functions/floorl.texi: Mention the new module.
13581
13582 2010-12-21  Bruno Haible  <bruno@clisp.org>
13583
13584         New module 'round-ieee'.
13585         * modules/round-ieee: New file.
13586         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13587         whether round works according to ISO C 99 with IEC 60559.
13588         * m4/round-ieee.m4: New file.
13589         * modules/round-ieee-tests: New file.
13590         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13591         * tests/test-round1.c (main): Remove signbit tests.
13592         * modules/round-tests (Depends-on): Remove 'signbit'.
13593         * doc/posix-functions/round.texi: Mention the new module.
13594
13595 2010-12-21  Bruno Haible  <bruno@clisp.org>
13596
13597         New module 'trunc-ieee'.
13598         * modules/trunc-ieee: New file.
13599         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13600         whether trunc works according to ISO C 99 with IEC 60559.
13601         * m4/trunc-ieee.m4: New file.
13602         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13604         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13605         * modules/trunc-ieee-tests: New file.
13606         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13607         * tests/test-trunc1.c (main): Remove signbit tests.
13608         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13609         * doc/posix-functions/trunc.texi: Mention the new module.
13610
13611 2010-12-21  Bruno Haible  <bruno@clisp.org>
13612
13613         New module 'ceil-ieee'.
13614         * modules/ceil-ieee: New file.
13615         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13616         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13617         ISO C 99 with IEC 60559.
13618         * m4/ceil-ieee.m4: New file.
13619         * modules/ceil (Files): Add lib/ceil.c.
13620         (Depends-on): Add 'float'.
13621         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13622         * lib/math.in.h (ceil): New declaration.
13623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13624         REPLACE_CEIL.
13625         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13626         * modules/ceil-ieee-tests: New file.
13627         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13628         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13629         * doc/posix-functions/ceil.texi: Mention the new module.
13630
13631 2010-12-21  Bruno Haible  <bruno@clisp.org>
13632
13633         New module 'floor-ieee'.
13634         * modules/floor-ieee: New file.
13635         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13636         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13637         ISO C 99 with IEC 60559.
13638         * m4/floor-ieee.m4: New file.
13639         * modules/floor (Files): Add lib/floor.c.
13640         (Depends-on): Add 'float'.
13641         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13642         * lib/math.in.h (floor): New declaration.
13643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13644         REPLACE_FLOOR.
13645         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13646         * modules/floor-ieee-tests: New file.
13647         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13648         * tests/test-math-c++.cc: Check the signature of 'floor'.
13649         * doc/posix-functions/floor.texi: Mention the new module.
13650
13651 2010-12-21  Bruno Haible  <bruno@clisp.org>
13652
13653         New module 'roundf-ieee'.
13654         * modules/roundf-ieee: New file.
13655         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13656         test whether roundf works according to ISO C 99 with IEC 60559.
13657         * m4/roundf-ieee.m4: New file.
13658         * modules/roundf-ieee-tests: New file.
13659         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13660         * tests/test-roundf1.c (main): Remove signbit tests.
13661         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13662         * doc/posix-functions/roundf.texi: Mention the new module.
13663
13664 2010-12-21  Bruno Haible  <bruno@clisp.org>
13665
13666         New module 'truncf-ieee'.
13667         * modules/truncf-ieee: New file.
13668         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13669         test whether truncf works according to ISO C 99 with IEC 60559.
13670         * m4/truncf-ieee.m4: New file.
13671         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13673         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13674         * modules/truncf-ieee-tests: New file.
13675         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13676         * tests/test-truncf1.c (main): Remove signbit tests.
13677         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13678         * doc/posix-functions/truncf.texi: Mention the new module.
13679
13680 2010-12-21  Bruno Haible  <bruno@clisp.org>
13681
13682         New module 'ceilf-ieee'.
13683         * modules/ceilf-ieee: New file.
13684         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13685         test whether ceilf works according to ISO C 99 with IEC 60559.
13686         * m4/ceilf-ieee.m4: New file.
13687         * modules/ceilf-ieee-tests: New file.
13688         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13689         * tests/test-ceilf1.c (main): Remove signbit tests.
13690         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13691         * doc/posix-functions/ceilf.texi: Mention the new module.
13692
13693 2010-12-21  Bruno Haible  <bruno@clisp.org>
13694
13695         New module 'floorf-ieee'.
13696         * modules/floorf-ieee: New file.
13697         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13698         test whether floorf works according to ISO C 99 with IEC 60559.
13699         * m4/floorf-ieee.m4: New file.
13700         * modules/floorf-ieee-tests: New file.
13701         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13702         * tests/test-floorf1.c (main): Remove signbit tests.
13703         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13704         * doc/posix-functions/floorf.texi: Mention the new module.
13705
13706 2010-12-21  Bruno Haible  <bruno@clisp.org>
13707
13708         Support for minus zero in autoconf macros.
13709         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13710         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13711         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13712         * tests/minus-zero.h: Update comments.
13713
13714 2010-12-21  Bruno Haible  <bruno@clisp.org>
13715
13716         Tests for module 'ceil'.
13717         * modules/ceil-tests: New file.
13718         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13719         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13720
13721 2010-12-21  Bruno Haible  <bruno@clisp.org>
13722
13723         Tests for module 'floor'.
13724         * modules/floor-tests: New file.
13725         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13726         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13727
13728 2010-12-21  Bruno Haible  <bruno@clisp.org>
13729
13730         math: Fix indentation.
13731         * lib/math.in.h (floorf): Fix indentation.
13732
13733 2010-12-21  Bruno Haible  <bruno@clisp.org>
13734
13735         Fix cross-compilation guesses on Solaris.
13736         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13737         not match "solaris2.10".
13738         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13739         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13740         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13741
13742 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13743
13744         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13745         This fixes a problem observed with the latest coreutils snapshot
13746         that caused a test to fail on Solaris 8.  src/csplit.c's call
13747         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13748         earlier, instead of returning the number of bytes that would have
13749         been generated; this causes csplit to incorrectly report memory
13750         exhaustion.
13751         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13752         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13753         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13754         comments to match.
13755         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13756         Fix typo in matching older versions of Solaris: "solaris2.10"
13757         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13758         only for guessing while cross-compiling.
13759         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13760
13761 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13762
13763         ftoastr: fix comment again
13764         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13765         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13766         Also, simplify example a bit by using flags = 0.
13767
13768 2010-12-20  Bruno Haible  <bruno@clisp.org>
13769
13770         round*, trunc*: Update documentation regarding glibc.
13771         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13772         * doc/posix-functions/round.texi: Likewise.
13773         * doc/posix-functions/roundl.texi: Likewise.
13774         * doc/posix-functions/truncf.texi: Likewise.
13775         * doc/posix-functions/trunc.texi: Likewise.
13776         * doc/posix-functions/truncl.texi: Likewise.
13777
13778 2010-12-20  Bruno Haible  <bruno@clisp.org>
13779
13780         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13781         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13782         * doc/posix-functions/round.texi: Likewise.
13783         * doc/posix-functions/roundl.texi: Likewise.
13784
13785 2010-12-20  Bruno Haible  <bruno@clisp.org>
13786
13787         ttyname_r: Add missing declaration on HP-UX 11.
13788         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13789         HAVE_TTYNAME_R.
13790         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13791         declared. Set HAVE_TTYNAME_R always.
13792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13793         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13794         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13795         HAVE_TTYNAME_R.
13796         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13797
13798 2010-12-20  Bruno Haible  <bruno@clisp.org>
13799
13800         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13801         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13802         * doc/posix-functions/getlogin_r.texi: Likewise.
13803         * tests/test-getlogin.c: Include <errno.h>.
13804         (main): Avoid test failure on HP-UX 11.11.
13805         * tests/test-getlogin_r.c (main): Likewise.
13806
13807 2010-12-20  Bruno Haible  <bruno@clisp.org>
13808
13809         getlogin_r: Add missing declaration on HP-UX 11.
13810         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13811         declared also when it exists as a function.
13812         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13813
13814 2010-12-20  Bruno Haible  <bruno@clisp.org>
13815
13816         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13817         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13818         through wcrtomb.
13819
13820 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         ftoastr: fix comment
13823         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13825
13826 2010-12-19  Bruno Haible  <bruno@clisp.org>
13827
13828         isnan: Ensure it is a macro.
13829         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13830         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13831         Solaris.
13832
13833 2010-12-19  Bruno Haible  <bruno@clisp.org>
13834
13835         ldexpl test: Fix link error on OSF/1 5.1.
13836         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13837
13838 2010-12-19  Bruno Haible  <bruno@clisp.org>
13839
13840         wctype: Make it work in C++ mode on OSF/1 5.1.
13841         * lib/wctype.in.h (iswblank): Declare but not define here.
13842         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13843         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13844         * modules/wctype (Files): Add lib/iswblank.c.
13845
13846 2010-12-19  Bruno Haible  <bruno@clisp.org>
13847
13848         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13849         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13850         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13851
13852 2010-12-19  Bruno Haible  <bruno@clisp.org>
13853
13854         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13855         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13856         _POSIX_PII_SOCKET.
13857         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13858         * doc/posix-functions/recvfrom.texi: Likewise.
13859         * doc/posix-functions/send.texi: Likewise.
13860         * doc/posix-functions/sendto.texi: Likewise.
13861
13862 2010-12-19  Bruno Haible  <bruno@clisp.org>
13863
13864         tcgetsid: Add missing declaration on OSF/1 5.1.
13865         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13866         HAVE_TCGETSID.
13867         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13868         Don't set HAVE_TCGETSID.
13869         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13870         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13871         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13872         HAVE_TCGETSID.
13873         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13874
13875 2010-12-19  Bruno Haible  <bruno@clisp.org>
13876
13877         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13878         * lib/stdio.in.h: During the include_next statement, let recursive
13879         includes of this file include only the system header file.
13880
13881 2010-12-19  Bruno Haible  <bruno@clisp.org>
13882
13883         iconv_open: Fix regression from 2010-12-04.
13884         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13885         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13886
13887 2010-12-19  Bruno Haible  <bruno@clisp.org>
13888
13889         stdbool test: Avoid a gcc warning.
13890         * tests/test-stdbool.c (main): Fail if e1 is false.
13891         Reported by Jim Meyering.
13892
13893 2010-12-19  Jim Meyering  <meyering@redhat.com>
13894
13895         setenv: restore to working order
13896         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13897         mistakenly removed.
13898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13899         HAVE_SETENV.
13900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13901         HAVE_SETENV.
13902
13903 2010-12-19  Bruno Haible  <bruno@clisp.org>
13904
13905         Document some different function declarations on OSF/1 5.1.
13906         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13907         * doc/posix-functions/inet_ntop.texi: Likewise.
13908         * doc/posix-functions/gethostname.texi: Likewise.
13909         * lib/unistd.in.h (gethostname): Update comment.
13910
13911 2010-12-19  Bruno Haible  <bruno@clisp.org>
13912
13913         doc: Mention vasprintf-posix module.
13914         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13915         the 'vasprintf-posix' module.
13916         * doc/glibc-functions/vasprintf.texi: Likewise.
13917
13918 2010-12-19  Bruno Haible  <bruno@clisp.org>
13919
13920         unsetenv: Add missing declaration on OSF/1 5.1.
13921         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13922         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13923         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13925         not HAVE_UNSETENV.
13926         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13927         HAVE_UNSETENV.
13928         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13929
13930 2010-12-19  Bruno Haible  <bruno@clisp.org>
13931
13932         setenv: Add missing declaration on OSF/1 5.1.
13933         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13935         declared. Don't set HAVE_SETENV.
13936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13937         not HAVE_SETENV.
13938         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13939         HAVE_SETENV.
13940         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13941
13942 2010-12-19  Bruno Haible  <bruno@clisp.org>
13943
13944         nl_langinfo tests: Avoid gcc warning.
13945         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13946
13947 2010-12-19  Bruno Haible  <bruno@clisp.org>
13948
13949         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13950         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13951         _GL_CXXALIAS_SYS.
13952
13953 2010-12-19  Bruno Haible  <bruno@clisp.org>
13954
13955         stdbool: Relax test.
13956         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13957         address to 'bool' work in static initializer, for compilers other than
13958         GCC.
13959
13960 2010-12-19  Bruno Haible  <bruno@clisp.org>
13961
13962         ftello: Add missing declaration on OSF/1 5.1.
13963         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13964         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13966         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13967         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13968
13969 2010-12-19  Bruno Haible  <bruno@clisp.org>
13970
13971         fseeko: Add missing declaration on OSF/1 5.1.
13972         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13975         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13976         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13977
13978 2010-12-19  Bruno Haible  <bruno@clisp.org>
13979
13980         fchdir: Add missing declaration on OSF/1 5.1.
13981         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13984         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13985         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13986
13987 2010-12-19  Bruno Haible  <bruno@clisp.org>
13988
13989         relocatable-prog-wrapper: Separate from relocatable-prog.
13990         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13991         uninstall-relocwrapper rule here.
13992         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13993         Reported by Ian Beckwith <ianb@erislabs.net>.
13994
13995 2010-12-19  Bruno Haible  <bruno@clisp.org>
13996
13997         unistr/u8-mbsnlen: Add missing dependency.
13998         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13999         Reported by Ian Beckwith <ianb@erislabs.net>.
14000
14001 2010-12-19  Bruno Haible  <bruno@clisp.org>
14002
14003         iconv: Make it possible again to use this module without 'iconv-h'.
14004         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14005         if it is not defined.
14006         Reported by Ian Beckwith <ianb@erislabs.net>.
14007
14008 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14009
14010         acl: port to Solaris 8 when copying from tmpfs to ufs
14011         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14012         error number.  Problem observed on Solaris 8 with latest
14013         coreutils, with "mv A B", where A is on a tmpfs file system and B
14014         is on a ufs file system.  This caused coreutils' mv/part-symlink
14015         test to fail.
14016
14017         tests: set fail=0 at start
14018         * tests/init.sh (setup_): Move fail=0 initialization here ...
14019         (mktempd_): ... from here, so that tests can rely on fail being
14020         set to 0 initially.  This fixes a problem in coreutils; see:
14021         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14022
14023 2010-12-18  Bruno Haible  <bruno@clisp.org>
14024
14025         memmem-simple: Stylistic changes.
14026         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14027         Fix preprocessor directive indentation.
14028
14029 2010-12-15  Pádraig Brady <P@draigBrady.com>
14030
14031         memmem, memmem-simple: reorganize and expand empty needle check
14032         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14033         functional checks to memmem-simple so that one has a fully functional
14034         memmem by using just this module.
14035         Restrict the performance only check to the memmem module.
14036         Also expand the empty needle check to ensure the correct
14037         pointer is returned, not just a non NULL pointer.
14038         * doc/glibc-functions/memmem.texi: Rearrange the portability
14039         documentation to correlate with the rearranged checks.
14040         Clarify exactly how the memmem and memmem-simple modules
14041         relate to each other.
14042
14043 2010-12-15  Pádraig Brady <P@draigBrady.com>
14044             Bruno Haible  <bruno@clisp.org>
14045
14046         Improve cross-compilation guesses for uClibc.
14047         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14048         that uClibc does not have the glibc bug.
14049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14050         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14051
14052 2010-12-14  Eric Blake  <eblake@redhat.com>
14053
14054         configmake: provide fallbacks for oldest supported autotools
14055         * m4/configmake.m4: New file.
14056         * modules/configmake (Files): Ship it.
14057         (configure.ac): Use it to guarantee fallbacks.
14058
14059 2010-12-13  Pádraig Brady <P@draigBrady.com>
14060
14061         read-file: Improve handling of large files
14062         * lib/read-file.c (fread_file): Minimize realloc()s
14063         for regular files, and better manage sizes around SIZE_MAX.
14064
14065 2010-12-13  Eric Blake  <eblake@redhat.com>
14066
14067         cloexec, fcntl: relax license
14068         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14069         consent from all contributors.
14070         * modules/fcntl (License): Likewise.
14071
14072 2010-12-10  Bruno Haible  <bruno@clisp.org>
14073
14074         Tests for module 'pipe-posix'.
14075         * modules/pipe-posix-tests: New file.
14076         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14077
14078 2010-12-10  Bruno Haible  <bruno@clisp.org>
14079
14080         pipe-posix: Make it work in C++ mode.
14081         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14082         (pipe): Use common idiom, not a macro definition.
14083         * lib/pipe.c: New file.
14084         * m4/pipe.m4: New file.
14085         * modules/pipe-posix (Description): Enhance.
14086         (Files): Add lib/pipe.c, m4/pipe.m4.
14087         (configure.ac): Invoke gl_FUNC_PIPE.
14088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14089         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14090         * tests/test-unistd-c++.cc: Check the signature of pipe.
14091
14092 2010-12-10  Bruno Haible  <bruno@clisp.org>
14093
14094         Rename module 'pipe' to 'spawn-pipe'.
14095         * modules/spawn-pipe: New file, renamed from modules/pipe.
14096         (Files, configure.ac, Makefile.am): Update.
14097         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14098         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14099         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14100         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14101         "spawn-pipe.h" instead of "pipe.h".
14102         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14103         to gl_SPAWN_PIPE.
14104         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14105         (Files, Makefile.am): Update.
14106         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14107         Update.
14108         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14109         Include "spawn-pipe.h" instead of "pipe.h".
14110         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14111         * lib/javacomp.c: Likewise.
14112         * lib/javaversion.c: Likewise.
14113         * lib/pipe-filter-gi.c: Likewise.
14114         * lib/pipe-filter-ii.c: Likewise.
14115         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14116         * modules/javacomp (Depends-on): Likewise.
14117         * modules/javaversion (Depends-on): Likewise.
14118         * modules/pipe-filter-gi (Depends-on): Likewise.
14119         * modules/pipe-filter-ii (Depends-on): Likewise.
14120         * MODULES.html.sh (Executing programs): Update.
14121         * NEWS: Mention the change.
14122
14123 2010-12-10  Eric Blake  <eblake@redhat.com>
14124
14125         pipe-posix: new module
14126         * modules/pipe-posix: New file.
14127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14128         (gl_UNISTD_H): Check for declaration.
14129         * modules/unistd (Makefile.am): Substitute it.
14130         * lib/unistd.in.h (pipe): Provide it for mingw.
14131         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14132         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14133
14134 2010-12-07  Bruno Haible  <bruno@clisp.org>
14135
14136         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14137         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14138         u8_strcmp_gnu.
14139         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14140
14141 2010-12-06  Bruno Haible  <bruno@clisp.org>
14142
14143         Update internal documentation.
14144         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14145
14146 2010-12-04  Bruno Haible  <bruno@clisp.org>
14147
14148         Put more information about failed tests into the test return codes.
14149         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14150         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14151         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14153         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14156         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14157         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14159         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14160         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14161         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14162         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14163         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14164         returns a bit mask.
14165         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14166         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14167         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14168         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14169         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14173         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14174         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14175         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14176         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14177         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14178         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14179         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14180         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14181         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14182         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14183         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14184         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14186         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14188         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14189         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14190         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14191         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14192         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14193         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14194         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14195         gl_PRINTF_PRECISION): Likewise.
14196         * m4/regex.m4 (gl_REGEX): Likewise.
14197         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14198         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14199         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14200         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14203         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14204         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14205         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14206         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14207         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14208         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14209         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14211         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14212         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14213         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14215         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14217         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14218         enumerated value.
14219         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14220
14221 2010-12-04  Bruno Haible  <bruno@clisp.org>
14222
14223         Update for Solaris 11 2010-11.
14224         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14225         Express, released in November 2010.
14226
14227 2010-12-04  Bruno Haible  <bruno@clisp.org>
14228
14229         nproc: Relax license.
14230         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14231         and Paul Eggert.
14232         Requested by Ludovic Courtès <ludo@gnu.org>.
14233
14234 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14235
14236         utimecmp: fine-grained src to nearby coarse-grained dest
14237
14238         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14239         and the source is on a file system with higher-resolution time
14240         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14241         not work, and the time stamps are close together, the algorithm to
14242         determine the exact resolution from the read-back mtime was buggy:
14243         it had a "!=" where it should have had an "==".  This bug has been
14244         in the code ever since it was introduced to gnulib.
14245         Problem reported by Dan Jacobson in
14246         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14247
14248 2010-11-30  Bruno Haible  <bruno@clisp.org>
14249
14250         strerror_r-posix: Fix autoconf test.
14251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14252
14253 2010-11-28  Bruno Haible  <bruno@clisp.org>
14254             Paul Eggert  <eggert@cs.ucla.edu>
14255
14256         Tests for module 'getdomainname'.
14257         * modules/getdomainname-tests: New file.
14258         * tests/test-getdomainname.c: New file, based on
14259         tests/test-gethostname.c.
14260
14261 2010-11-28  Bruno Haible  <bruno@clisp.org>
14262             Paul Eggert  <eggert@cs.ucla.edu>
14263
14264         getdomainname: Use the system function when possible.
14265         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14266         (getdomainname): Replace if needed. Provide the declaration if it is
14267         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14268         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14269         (getdomainname): When the system has getdomainname, call the system
14270         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14272         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14273         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14274         the function if its second argument is of type 'int' or if it is found
14275         in libnsl.
14276         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14277         <sys/systeminfo.h> and sysinfo().
14278         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14280         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14281         HAVE_GETDOMAINNAME.
14282         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14283         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14284         * doc/glibc-functions/getdomainname.texi: Document the problems with
14285         the getdomainname declaration.
14286
14287 2010-11-28  Bruno Haible  <bruno@clisp.org>
14288
14289         sys_socket: Ensure ss_family field on AIX.
14290         * lib/sys_socket.in.h (ss_family): New macro definition.
14291         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14292         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14293         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14294         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14295         * modules/sys_socket (Makefile.am): Substitute
14296         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14297         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14298
14299 2010-11-27  Bruno Haible  <bruno@clisp.org>
14300
14301         readline: Improve configure output.
14302         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14303         "checking for readline..." result understandable.
14304
14305 2010-11-27  Bruno Haible  <bruno@clisp.org>
14306
14307         *printf-posix: Detect a bug on Solaris 10/x86.
14308         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14309         for floating-point output.
14310         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14311         directive.
14312         * tests/test-snprintf-posix.h (test_function): Likewise.
14313         * tests/test-sprintf-posix.h (test_function): Likewise.
14314         * tests/test-vasprintf-posix.c (test_function): Likewise.
14315         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14316         * doc/posix-functions/printf.texi: Likewise.
14317         * doc/posix-functions/snprintf.texi: Likewise.
14318         * doc/posix-functions/sprintf.texi: Likewise.
14319         * doc/posix-functions/vfprintf.texi: Likewise.
14320         * doc/posix-functions/vprintf.texi: Likewise.
14321         * doc/posix-functions/vsnprintf.texi: Likewise.
14322         * doc/posix-functions/vsprintf.texi: Likewise.
14323         * doc/glibc-functions/obstack_printf.texi: Likewise.
14324         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14325
14326 2010-11-27  Bruno Haible  <bruno@clisp.org>
14327
14328         Fix link error when module libunistring-optional is in use.
14329         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14330         * modules/striconveha-tests (Makefile.am): Likewise.
14331
14332 2010-11-27  Bruno Haible  <bruno@clisp.org>
14333
14334         regex: Mention link dependencies.
14335         * modules/regex (Link): New section.
14336         * modules/rpmatch (Link): Likewise.
14337         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14338
14339 2010-11-27  Bruno Haible  <bruno@clisp.org>
14340
14341         ftoastr: Fix compilation error on Solaris.
14342         * lib/ftoastr.c: Include <config.h>.
14343
14344 2010-11-27  Bruno Haible  <bruno@clisp.org>
14345
14346         getloadavg: Update documentation.
14347         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14348
14349 2010-11-27  Bruno Haible  <bruno@clisp.org>
14350
14351         sys_socket: Fix test whether the functions are declared.
14352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14353         not <sys/select.h>.
14354
14355 2010-11-27  Bruno Haible  <bruno@clisp.org>
14356
14357         getpass: Make sure to get system declaration on some platforms.
14358         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14359         gl_USE_SYSTEM_EXTENSIONS.
14360         * modules/getpass (Depends-on): Add extensions.
14361
14362 2010-11-26  Bruno Haible  <bruno@clisp.org>
14363
14364         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14365         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14366         'iconv' module is present.
14367         (ICONV_CONST): New macro.
14368         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14369         ICONV_CONST.
14370         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14371         set ICONV_CONST.
14372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14373         here.
14374         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14375         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14376         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14377         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14378         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14379         present.
14380
14381 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         ftoastr: comment fix
14384         * lib/ftoastr.c: "little" -> "little or no" in comment
14385
14386 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14387
14388         stdint: port to GCC 4.3 + OSX + Octave
14389         On this platform, stdint.h is buggy and defines int64_t to long
14390         long int.  The replacement defined it to long int, causing
14391         problems with C++ style name mangling.  Instead, trust the system
14392         definition if INT64_MAX is defined, and likewise for the unsigned
14393         variant.   Problem reported by Jarno Rajahalme in
14394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14395         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14396         and don't mess with int64_t and INT64_MAX in this case.
14397         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14398
14399 2010-11-24  Bruno Haible  <bruno@clisp.org>
14400
14401         doc: Corrections regarding MacOS X 10.4 and 10.5.
14402         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14403         MacOS X.
14404         Reported by Simon Josefsson.
14405
14406 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14407
14408         Uninstall ".bin" files installed by relocwrapper.
14409         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14410         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14411         unless it is already there.
14412
14413 2010-11-21  Bruno Haible  <bruno@clisp.org>
14414
14415         Update for NetBSD 5.0.
14416         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14417         NetBSD; the test fails on NetBSD 5.0.
14418         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14419         about NetBSD.
14420
14421 2010-11-21  Bruno Haible  <bruno@clisp.org>
14422
14423         Update for HP-UX 11.23 and HP-UX 11.31.
14424         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14425         HP-UX.
14426
14427 2010-11-21  Bruno Haible  <bruno@clisp.org>
14428
14429         Update for MacOS X 10.5.
14430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14431         MacOS X; the test fails on MacOS X 10.5.8.
14432         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14433         about MacOS X.
14434
14435 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14436
14437         bootstrap: add bootstrap_sync option.
14438         See discussion at
14439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14441         * build-aux/bootstrap: Accept --bootstrap-sync to update
14442         bootstrap if it is not identical to the local gnulib's
14443         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14444         enable this by default.  Accept --no-bootstrap-sync to disable
14445         it.
14446
14447 2010-11-20  Bruno Haible  <bruno@clisp.org>
14448
14449         Ensure that <features.h> is included before __GLIBC__ is tested.
14450         * lib/printf-parse.h: Include <features.h>.
14451         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14452         Reported by Mike Frysinger <vapier@gentoo.org>.
14453
14454         Ensure that <features.h> is included before __GLIBC__ is tested.
14455         * lib/wchar.in.h: Include <features.h>.
14456         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14457         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14458         Reported by Mike Frysinger <vapier@gentoo.org>.
14459
14460         Ensure that <features.h> is included before __GLIBC__ is tested.
14461         * lib/arpa_inet.in.h: Include <features.h>.
14462         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14463         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14464         Reported by Mike Frysinger <vapier@gentoo.org>.
14465
14466         Ensure that <features.h> is included before __GLIBC__ is tested.
14467         * build-aux/link-warning.h: Include <features.h>.
14468         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14469         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14470         Reported by Mike Frysinger <vapier@gentoo.org>.
14471
14472         Ensure that <features.h> is included before __GLIBC__ is tested.
14473         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14474         Reported by Mike Frysinger <vapier@gentoo.org>.
14475
14476 2010-11-20  Bruno Haible  <bruno@clisp.org>
14477
14478         memmem: Fix autoconf test.
14479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14480
14481 2010-11-20  Bruno Haible  <bruno@clisp.org>
14482
14483         Port to uClibc.
14484         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14485         * lib/fcntl.in.h: Likewise.
14486         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14487         * lib/mbrtowc.c (mbrtowc): Likewise.
14488         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14489         * lib/strerror_r.c: Likewise.
14490         * lib/unistr/u8-strnlen.c: Likewise.
14491         * lib/vasnprintf.c (decimal_point_char): Likewise.
14492         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14493         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14495         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14496         * tests/test-sigaction.c (handler, main): Likewise.
14497         * lib/freading.h: Treat uClibc like a non-glibc platform.
14498         * lib/freading.c: Likewise.
14499         * lib/gettext.h: Likewise.
14500         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14501         Likewise.
14502         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14503         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14504         * lib/propername.c (proper_name_utf8): Likewise.
14505         * lib/spawn.in.h: Likewise.
14506         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14507         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14508         mem_cd_iconveh_internal): Likewise.
14509         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14510         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14511         strstr, strcasestr): Likewise.
14512         * lib/unicodeio.c (unicode_to_mb): Likewise.
14513         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14514         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14515         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14516         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14517         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14518         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14519         * lib/unistr/u8-stpncpy.c: Likewise.
14520         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14521         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14523         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14524         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14525         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14526         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14529         Likewise.
14530         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14531         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14532         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14535         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14536         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14537         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14538         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14539         * tests/test-striconveha.c (main): Likewise.
14540         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14541         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14542         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14543         * doc/posix-functions/getline.texi: Likewise.
14544         Reported by Mike Frysinger <vapier@gentoo.org>.
14545
14546 2010-11-20  Bruno Haible  <bruno@clisp.org>
14547
14548         nproc: Fix condition.
14549         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14550         HAVE_PTHREAD_AFFINITY_NP.
14551
14552 2010-11-20  Bruno Haible  <bruno@clisp.org>
14553
14554         Fix a comment.
14555         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14556
14557 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14558
14559         ftoastr: don't assume snprintf
14560         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14561         Implement a subset of snprintf here, by using sprintf safely.
14562         * modules/ftoastr (Depends-on): Remove snprintf.
14563
14564 2010-11-19  Jim Meyering  <meyering@redhat.com>
14565
14566         test-rename.h: fix compilation failure
14567         * tests/test-rename.h (test_rename): Add omitted "}".
14568
14569 2010-11-17  Jim Meyering  <meyering@redhat.com>
14570
14571         maint.mk: add a URL discussing the no-@acronym policy
14572         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14573
14574 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14575
14576         ftoastr: depend on snprintf, improve comments
14577         * lib/ftoastr.c: Also mention Loitsch's draft.
14578         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14579         needed in the current implementation, but it might simplify
14580         speeding up the code later.
14581         * modules/ftoastr: Depend on snprintf; this improves portability.
14582         Suggested by Bruno Haible in the same email.
14583
14584         ftoastr: port to hosts lacking strtof and strtold
14585         Problem reported by Bruno Haible in
14586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14587         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14588         environment and strtold (and presumably strtof) are not available.
14589         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14590         (configure.ac): Require gl_C99_STRTOLD.
14591
14592 2010-11-18  Bruno Haible  <bruno@clisp.org>
14593
14594         c-strtold: Avoid link error on AIX 7.
14595         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14596         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14597         (gl_C_STRTOLD): Test whether strtold_l exists.
14598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14599
14600 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14601
14602         intprops: new macro INT_BITS_STRLEN_BOUND
14603         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14604         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14605         not exposed.  Also, it uses a slightly tighter bound than before;
14606         though this makes no practical difference, we might as well be as
14607         tight as we easily can.
14608
14609         ftoastr: new module, for lossless conversion of floats to short strings
14610         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14611         * modules/ftoastr: New files.
14612
14613 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14614
14615         bootstrap: port to Solaris sed
14616         * build-aux/bootstrap (get_version): Port to Solaris sed.
14617         See Ralf Wildenhues's note in
14618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14619
14620 2010-11-14  Jim Meyering  <meyering@redhat.com>
14621
14622         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14623         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14624         and move definition closer to sole use.
14625
14626 2010-11-13  Jim Meyering  <meyering@redhat.com>
14627
14628         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14629         Now we require at least autoconf-2.59, which means the work-around
14630         is no longer needed.
14631         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14632         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14633         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14634         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14635         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14636
14637 2010-11-13  Bruno Haible  <bruno@clisp.org>
14638
14639         rename, renameat: Avoid test failures at NFS mounted locations.
14640         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14641         functions.
14642         (test_rename): Use assert_nonexistent.
14643         * tests/test-rename.c: Include <dirent.h>.
14644         * tests/test-renameat.c: Likewise.
14645         Reported by Gary V. Vaughan <gary@gnu.org>.
14646
14647         rename, renameat: Document Linux bug with NFS
14648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14649         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14650         * doc/posix-functions/renameat.texi: Likewise.
14651         Suggested by Eric Blake.
14652
14653 2010-11-13  Bruno Haible  <bruno@clisp.org>
14654
14655         rename test: Add comments.
14656         * tests/test-rename.h (test_rename): Add structure and comments.
14657
14658 2010-11-13  Eric Blake  <eblake@redhat.com>
14659
14660         maintainer-makefile: cover a few more files
14661         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14662         scripts generated within C files, for libvirt.
14663
14664 2010-11-13  Bruno Haible  <bruno@clisp.org>
14665
14666         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14667         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14668         character, return the number of bytes that belong together, not always
14669         1.
14670         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14671         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14672         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14673         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14674         number of bytes of an invalid character.
14675         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14676         (main): Invoke it.
14677         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14678         results.
14679         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14680         malformed byte sequences.
14681         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14682         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14683         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14684         Reported by Ben Pfaff and Paolo Bonzini.
14685
14686 2010-11-13  Bruno Haible  <bruno@clisp.org>
14687
14688         openat: Work around glibc bug with fchownat() and empty file names.
14689         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14690         (gl_FUNC_FCHOWNAT): Invoke it.
14691         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14692         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14693         Reported by Gary V. Vaughan <gary@gnu.org>.
14694
14695 2010-11-13  Bruno Haible  <bruno@clisp.org>
14696
14697         openat: Ensure autoconf macro ordering.
14698         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14699         gl_USE_SYSTEM_EXTENSIONS.
14700         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14701
14702 2010-11-13  Bruno Haible  <bruno@clisp.org>
14703
14704         Update comments.
14705         * lib/unistr/u8-check.c: Update file name in comments.
14706         * lib/unistr/u8-mblen.c: Likewise.
14707         * lib/unistr/u8-prev.c: Likewise.
14708         * lib/unistr/u8-strmblen.c: Likewise.
14709         * lib/unistr/u8-strmbtouc.c: Likewise.
14710
14711 2010-11-13  Jim Meyering  <meyering@redhat.com>
14712
14713         tests: avoid test failure on Solaris 10 due to lack of PATH export
14714         * tests/test-update-copyright.sh: Don't forget to export PATH.
14715
14716         init.sh: ensure that IFS is defined, just in case...
14717         * tests/init.sh (setup_): Ensure that IFS is defined,
14718         so that saving and restoring it works as expected.  This
14719         appears to be useful at least for an old version of dash
14720         from a long time ago (RH 6).  See here for details:
14721         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14722
14723         maint.mk: tighten "test a == b" check
14724         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14725         test to files that contain something like #!/bin/sh.
14726         Without this, coreutils would get two false positives in
14727         the comments of C source files.
14728
14729 2010-11-12  Eric Blake  <eblake@redhat.com>
14730
14731         bootstrap: fix typo in previous attempt
14732         * build-aux/bootstrap (buildreq): Correct the grouping.
14733         Reported by Paul Eggert.
14734
14735         maintainer-makefile: prohibit test x == x
14736         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14737         Based on a report by Matthias Bolte.
14738
14739         bootstrap: allow FreeBSD gzip
14740         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14741         which has no '.' and goes to stderr.
14742         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14743         Reported by Matthias Bolte.
14744
14745         maintainer-makefile: check for i18n setup
14746         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14747         will likely work.
14748
14749 2010-11-12  Bruno Haible  <bruno@clisp.org>
14750
14751         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14752         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14753         * lib/nanosleep.c (nanosleep): Likewise.
14754
14755 2010-11-11  Bruno Haible  <bruno@clisp.org>
14756
14757         fcntl-h: Fix for use of C++ on glibc systems.
14758         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14759         also on glibc systems in C++ mode.
14760         Reported by Gary V. Vaughan <gary@gnu.org>.
14761
14762 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14763
14764         mknod: avoid false failure with dash
14765         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14766
14767 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14768
14769         unlink: Fix "is it should" typo in diagnostic.
14770         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14772
14773 2010-11-11  Bruno Haible  <bruno@clisp.org>
14774
14775         Tests for module 'strerror_r-posix'.
14776         * modules/strerror_r-posix-tests: New file.
14777         * tests/test-strerror_r.c: New file.
14778         * tests/test-string-c++.cc: Check the signature of strerror_r.
14779
14780         New module 'strerror_r-posix'.
14781         * lib/string.in.h (strerror_r): New declaration.
14782         * lib/strerror_r.c: New file.
14783         * m4/strerror_r.m4: New file.
14784         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14785         of strerror_r.
14786         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14787         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14788         * modules/strerror_r-posix: New file.
14789         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14790         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14791         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14792         portability problems.
14793
14794 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14795
14796         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14797         line is also considered for output. Quoted function name in shell
14798         command, so temporary files for functions like MyClass::operator()
14799         are removed correctly without errors.
14800
14801 2010-11-09  Bruno Haible  <bruno@clisp.org>
14802
14803         * doc/posix-functions/strerror.texi: List more failing platforms.
14804
14805         * doc/posix-functions/strerror.texi: Add a comment.
14806
14807 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14808
14809         fdopendir: fix bug on MacOS X when low on file descriptors
14810
14811         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14812         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14813         All callers changed.
14814         (fdopendir): Invoke save_cwd at the top level, not after using
14815         multiple dup() calls to use up file descriptors.  Then retry
14816         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14817         less than the maximum number of open file descriptors, because
14818         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14819         on Mac OS X 10.6.4 for tar 1.24
14820         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14821         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14822         and for tar 1.25
14823         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14824
14825 2010-11-07  Bruno Haible  <bruno@clisp.org>
14826
14827         vasnprintf: Support I flag on glibc systems.
14828         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14829         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14830         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14831         snprintf function.
14832         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14833         glibc systems.
14834         * tests/test-vasnprintf-posix3.c: New file.
14835         * modules/vasnprintf-posix-tests (Files): Add it.
14836         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14837
14838 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14839
14840         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14841         * MODULES.html.sh: For compiler warnings, use name
14842         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14843
14844 2010-11-05  Eric Blake  <eblake@redhat.com>
14845
14846         ceil, floor: avoid spurious failure with icc
14847         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14848         [denormals-as-zero] when optimizing without -mieee-fp option.
14849         * tests/test-floorf2.c (floorf_reference): Likewise.
14850         * tests/test-ceilf1.c (dummy): New function.
14851         (main): Use it to outsmart icc's optimization.
14852         * tests/test-floorf1.c (dummy, main): Likewise.
14853
14854         tests: require working signbit
14855         * modules/ceilf-tests (Depends-on): Add signbit.
14856         * modules/ceill-tests (Depends-on): Likewise.
14857         * modules/floorf-tests (Depends-on): Likewise.
14858         * modules/floorl-tests (Depends-on): Likewise.
14859         * modules/round-tests (Depends-on): Likewise.
14860         * modules/roundf-tests (Depends-on): Likewise.
14861         * modules/roundl-tests (Depends-on): Likewise.
14862         * modules/trunc-tests (Depends-on): Likewise.
14863         * modules/truncf-tests (Depends-on): Likewise.
14864         * modules/truncl-tests (Depends-on): Likewise.
14865
14866         strtod: work around icc bug
14867         * lib/strtod.c (minus_zero): Define to working value.
14868         (strtod): Use it to avoid icc bug.
14869
14870         copysign: enhance tests
14871         * modules/copysign-tests (Files): Add minus-zero.h.
14872         * tests/test-copysign.c (main): Also test zeros.
14873
14874 2010-11-04  Eric Blake  <eblake@redhat.com>
14875
14876         ceil, floor, round, trunc: enhance tests of -0
14877         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14878         * tests/test-ceill.c (main): Likewise.
14879         * tests/test-floorf1.c (main): Likewise.
14880         * tests/test-floorl.c (main): Likewise.
14881         * tests/test-round1.c (main): Likewise.
14882         * tests/test-roundf1.c (main): Likewise.
14883         * tests/test-roundl.c (main): Likewise.
14884         * tests/test-trunc1.c (main): Likewise.
14885         * tests/test-truncf1.c (main): Likewise.
14886         * tests/test-truncl.c (main): Likewise.
14887
14888 2010-11-04  Eric Blake  <eblake@redhat.com>
14889
14890         frexp, tests: work around ICC bug with -zero
14891         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14892         works with more compilers.
14893         * tests/minus-zero.h: New file.
14894         * modules/ceilf-tests (Files): Include it.
14895         * modules/ceill-tests (Files): Likewise.
14896         * modules/floorf-tests (Files): Likewise.
14897         * modules/floorl-tests (Files): Likewise.
14898         * modules/frexp-nolibm-tests (Files): Likewise.
14899         * modules/frexp-tests (Files): Likewise.
14900         * modules/frexpl-nolibm-tests (Files): Likewise.
14901         * modules/frexpl-tests (Files): Likewise.
14902         * modules/isnan-tests (Files): Likewise.
14903         * modules/isnand-nolibm-tests (Files): Likewise.
14904         * modules/isnand-tests (Files): Likewise.
14905         * modules/isnanf-nolibm-tests (Files): Likewise.
14906         * modules/isnanf-tests (Files): Likewise.
14907         * modules/isnanl-nolibm-tests (Files): Likewise.
14908         * modules/isnanl-tests (Files): Likewise.
14909         * modules/round-tests (Files): Likewise.
14910         * modules/roundf-tests (Files): Likewise.
14911         * modules/roundl-tests (Files): Likewise.
14912         * modules/ldexpl-tests (Files): Likewise.
14913         * modules/signbit-tests (Files): Likewise.
14914         * modules/snprintf-posix-tests (Files): Likewise.
14915         * modules/sprintf-posix-tests (Files): Likewise.
14916         * modules/strtod-tests (Files): Likewise.
14917         * modules/trunc-tests (Files): Likewise.
14918         * modules/truncf-tests (Files): Likewise.
14919         * modules/truncl-tests (Files): Likewise.
14920         * modules/vsnprintf-posix-tests (Files): Likewise.
14921         * modules/vsprintf-posix-tests (Files): Likewise.
14922         * modules/vasnprintf-posix-tests (Files): Likewise.
14923         * modules/vasprintf-posix-tests (Files): Likewise.
14924         * tests/test-ceilf1.c (main): Use it.
14925         * tests/test-ceill.c (main): Likewise.
14926         * tests/test-floorf1.c (main): Likewise.
14927         * tests/test-floorl.c (main): Likewise.
14928         * tests/test-frexp.c (main): Likewise.
14929         * tests/test-frexpl.c (main): Likewise.
14930         * tests/test-isnan.c (main): Likewise.
14931         * tests/test-isnand.h (main): Likewise.
14932         * tests/test-isnanf.h (main): Likewise.
14933         * tests/test-isnanl.h (main): Likewise.
14934         * tests/test-ldexpl.c (main): Likewise.
14935         * tests/test-round.c (main): Likewise.
14936         * tests/test-roundf.c (main): Likewise.
14937         * tests/test-roundl.c (main): Likewise.
14938         * tests/test-signbit.c (test_signbitf, test_signbitd)
14939         (test_signbitl): Likewise.
14940         * tests/test-snprintf-posix.h (test_function): Likewise.
14941         * tests/test-sprintf-posix.h (test_function): Likewise.
14942         * tests/test-strtod.c (main): Likewise.
14943         * tests/test-trunc1.c (main): Likewise.
14944         * tests/test-truncf1.c (main): Likewise.
14945         * tests/test-truncl.c (main): Likewise.
14946
14947         isnanl: work around icc bug
14948         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14949
14950 2010-11-03  Eric Blake  <eblake@redhat.com>
14951
14952         tests: fix compiler warnings
14953         * tests/test-getopt.h (test_getopt): Fix condition.
14954         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14955         * tests/test-pipe2.c (main): Likewise.
14956         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14957
14958         utimens: fix broken m4 test
14959         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14960
14961 2010-10-28  Bruno Haible  <bruno@clisp.org>
14962
14963         posix_spawn*, getdtablesize: Relax license.
14964         * modules/posix_spawn (License): Change to LGPLv2+.
14965         * modules/posix_spawnp (License): Likewise.
14966         * modules/posix_spawn-internal (License): Likewise.
14967         * modules/posix_spawnattr_init (License): Likewise.
14968         * modules/posix_spawnattr_getflags (License): Likewise.
14969         * modules/posix_spawnattr_setflags (License): Likewise.
14970         * modules/posix_spawnattr_getpgroup (License): Likewise.
14971         * modules/posix_spawnattr_setpgroup (License): Likewise.
14972         * modules/posix_spawnattr_getschedparam (License): Likewise.
14973         * modules/posix_spawnattr_setschedparam (License): Likewise.
14974         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14975         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14976         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14977         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14978         * modules/posix_spawnattr_getsigmask (License): Likewise.
14979         * modules/posix_spawnattr_setsigmask (License): Likewise.
14980         * modules/posix_spawnattr_destroy (License): Likewise.
14981         * modules/posix_spawn_file_actions_init (License): Likewise.
14982         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14983         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14984         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14985         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14986         * modules/getdtablesize (License): Likewise.
14987         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14988
14989 2010-10-26  Bruno Haible  <bruno@clisp.org>
14990
14991         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14992         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14993         Cygwin and mingw.
14994         Suggested by Eric Blake.
14995
14996 2010-10-26  Bruno Haible  <bruno@clisp.org>
14997
14998         stdio: Work around compilation error due to renameat() on Solaris 10.
14999         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15000         * lib/renameat.c: Don't include <unistd.h> here.
15001         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15002         Reported by Paul Eggert and Eric Blake.
15003
15004 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15005
15006         renameat: port to Solaris 10, which declares renameat in unistd.h
15007
15008         * lib/renameat.c: Include unistd.h before stdio.h, because
15009         Solaris 10 declares renameat in unistd.h.  Problem encountered
15010         when building GNU tar 1.24 on Solaris 10.
15011
15012 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15013
15014         fdopendir: fix C89 compilation
15015         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15016         compilers.
15017
15018 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15019
15020         inttostr: simplify by removing unnecessary redundancy
15021         * lib/anytostr.c: Don't include verify.h.
15022         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15023         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15024         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15025         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15026         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15027         Likewise.
15028         * modules/inttostr (Depends-on): Remove 'verify'.
15029
15030 2010-10-23  Bruno Haible  <bruno@clisp.org>
15031
15032         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15033         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15034         Reported by Eric Blake.
15035
15036 2010-10-23  Bruno Haible  <bruno@clisp.org>
15037
15038         Tests: Fix LOCALE_JA on MirBSD 10.
15039         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15040         to an UTF-8 locale.
15041         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15042         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15043         Reported by Eric Blake.
15044
15045 2010-10-21  Bruno Haible  <bruno@clisp.org>
15046
15047         nl_langinfo test: Avoid test failure on NetBSD 5.
15048         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15049         Reported by Eric Blake.
15050
15051 2010-10-21  Eric Blake  <eblake@redhat.com>
15052
15053         c-stack: work around libsigsegv 2.8 bug
15054         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15055         overflow on at least PowerPC64.
15056
15057 2010-10-17  Bruno Haible  <bruno@clisp.org>
15058
15059         userspec: Drop redundant file.
15060         * modules/userspec (Files): Remove lib/inttostr.h.
15061
15062 2010-10-17  Bruno Haible  <bruno@clisp.org>
15063
15064         nl_langinfo tests: Silence some warnings.
15065         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15066         Reported by Jim Meyering.
15067
15068 2010-10-17  Bruno Haible  <bruno@clisp.org>
15069
15070         Make use of GCC's attribute __alloc_size__.
15071         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15072         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15073         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15074         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15075         __alloc_size__.
15076         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15077         Suggested by Jim Meyering.
15078
15079 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15080
15081         bootstrap: anchor .gitignore entries.
15082         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15083         with...
15084         (insert_vc_ignore): ... this new function, which prepends `/' to
15085         all .gitignore entries before passing them to
15086         insert_sorted_if_absent.
15087
15088 2010-10-16  Bruno Haible  <bruno@clisp.org>
15089
15090         nextafter: Fix configure check.
15091         * modules/nextafter (configure.ac): Correct expected prototype.
15092
15093 2010-10-16  Bruno Haible  <bruno@clisp.org>
15094
15095         termios: Update documentation.
15096         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15097
15098 2010-10-16  Bruno Haible  <bruno@clisp.org>
15099
15100         tests: Make them compile with TinyCC.
15101         * tests/test-strstr.c (main): Remove parentheses around array
15102         initializer.
15103
15104 2010-10-15  Eric Blake  <eblake@redhat.com>
15105
15106         ignore-value: make header idempotent
15107         * lib/ignore-value.h: Add double-inclusion guards.
15108         Reported by Stefan Berger.
15109
15110 2010-10-15  Jim Meyering  <meyering@redhat.com>
15111
15112         GNUmakefile: handle "stable" target, not "major"
15113         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15114         lists in maint.mk and announce-gen.  Without this, "make stable"
15115         would fail to ensure that $(VERSION) is up to date.
15116
15117 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15118
15119         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15120         & co.
15121
15122 2010-10-14  Bruno Haible  <bruno@clisp.org>
15123
15124         vasnprintf: Don't set errno to 0.
15125         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15126         block that sets it to 0.
15127         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15128
15129 2010-10-14  Bruno Haible  <bruno@clisp.org>
15130
15131         socketlib: Fix.
15132         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15133         gl_PREREQ_SYS_H_WINSOCK2.
15134         Reported by Ian Beckwith <ianb@erislabs.net>.
15135
15136 2010-10-13  Jim Meyering  <meyering@redhat.com>
15137
15138         test-select-stdin.c: avoid warn_unused_result warnings
15139         * tests/test-select-stdin.c: Include "macros.h".
15140         ASSERT that read and fflush succeed.
15141
15142 2010-10-13  Jim Meyering  <meyering@redhat.com>
15143
15144         git-version-gen: do require git-VC'd files in cwd
15145         * build-aux/git-version-gen: Reject a git version string
15146         if there are no commits associated with the current directory.
15147         This avoids an unlikely false-positive (unrelated dir whose parent
15148         repository also contains a tag matching v*), as pointed out
15149         by Giuseppe Scrivano in
15150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15151
15152 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         argv-iter: omit nonconforming declaration
15155         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15156         enum arg_iter_err declaration, which doesn't conform to C99.
15157         Solaris 10 cc warns about this.
15158
15159 2010-10-13  Eric Blake  <eblake@redhat.com>
15160
15161         termios: fix compilation on mingw
15162         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15163         (gl_TERMIOS_H): Adjust it on mingw.
15164         * modules/termios (Makefile.am): Substitute new key.
15165         * lib/termios.in.h (includes): Make include_next conditional.
15166         * doc/posix-headers/termios.texi (termios.h): Update
15167         documentation.
15168         Reported by Daniel P. Berrange.
15169
15170 2010-10-13  Jim Meyering  <meyering@redhat.com>
15171
15172         git-version-gen: don't require that .git/ be in the current dir
15173         * build-aux/git-version-gen: Adjust this script so that it works
15174         when run from any working directory beneath the top-level .git/-
15175         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15176         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15177
15178         test-select: avoid warn_unused_result warnings
15179         * tests/test-select.c: Include "macros.h".
15180         ASSERT that each call to read, write, and pipe succeeds.
15181         While not technically required, also check each "close".
15182         * modules/select-tests (Files): Add tests/macros.h.
15183
15184         test-symlinkat: remove declaration of unused local
15185         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15186
15187         test-inttostr: avoid shadowing warnings
15188         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15189         and use malloc rather than the stack for the same reason as
15190         mentioned in the comment justifying the other allocation.
15191
15192 2010-10-11  Bruno Haible  <bruno@clisp.org>
15193
15194         stdlib: Allow multiple gnulib generated replacements to coexist.
15195         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15196         Reported by Sam Steingold <sds@gnu.org>.
15197
15198 2010-10-11  Jim Meyering  <meyering@redhat.com>
15199
15200         fix a documentation typo
15201         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15202
15203 2010-10-11  Eric Blake  <eblake@redhat.com>
15204
15205         futimens: work around Solaris 11 bug
15206         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15207         * tests/test-futimens.h (test_futimens): Enhance, rather than
15208         weaken test.
15209         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15210
15211 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15212
15213         Indentation.
15214         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15215         higher-level operators more to the left.
15216
15217 2010-10-11  Jim Meyering  <meyering@redhat.com>
15218
15219         test-futimens: avoid unwarranted test failure on Solaris 5.11
15220         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15221         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15222         because it tries to dereference the NULL name argument.
15223
15224 2010-10-11  Bruno Haible  <bruno@clisp.org>
15225
15226         Indentation.
15227         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15228         indentation.
15229
15230 2010-10-11  Jim Meyering  <meyering@redhat.com>
15231
15232         spawn.in.h: make indentation consistent with parentheses
15233         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15234         Make indentation consistent with parentheses.
15235
15236 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15237
15238         Fix mismatched parens in previous commit
15239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15240         parens.
15241
15242 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15243
15244         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15245
15246         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15247         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15248         * lib/malloca.c: Include "verify.h".
15249         (verify1): Remove, replacing with a verify call.
15250         * lib/relocwrapper.c (verify1): Likewise.
15251         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15252         Likewise.
15253         * modules/malloca (Depends-on): Add 'verify'.
15254         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15255         * modules/vasnprintf (Depends-on): Add 'verify'.
15256         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15257         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15258         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15259         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15260         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15261         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15262         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15263
15264         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15265
15266         Formerly the style was sometimes 2*X - 1, because the C standard
15267         was wrongly thought to disallow ?: in integral constant expressions.
15268         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15269         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15270         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15271         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15272         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15273         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15274         verify that time_t cannot be floating.
15275
15276 2010-10-08  Eric Blake  <eblake@redhat.com>
15277
15278         time: enforce recent POSIX ruling that time_t is integral
15279         * lib/time.in.h (__time_t_must_be_integral): Detect any
15280         problematic systems, allowing the rest of gnulib to assume POSIX.
15281
15282 2010-10-08  Jim Meyering  <meyering@redhat.com>
15283
15284         fdopendir: fix a bug on systems lacking openat and /proc support
15285         OpenBSD 4.7 is one such system.  The most noticeable effect was
15286         failure of any application making nontrivial use of fts: rm, du,
15287         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15288           ./rm: traversal failed: `a': Bad file descriptor
15289         Debugging that, you see that even though FD 6 was closed just
15290         prior to the opendir call in fd_clone_opendir, its resulting
15291         dir->dd_fd was 8, rather than the expected value of 6:
15292
15293         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15294         93                close (fd);
15295         (gdb) n
15296         94                dir = fd_clone_opendir (dupfd);
15297         (gdb) n
15298         95                saved_errno = errno;
15299         (gdb) p dir->dd_fd
15300         $11 = 8
15301
15302         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15303         The problem is that on OpenBSD, fd_clone_opendir has to resort
15304         to using the old-style save/restore CWD mechanism, due to its
15305         lack of openat/proc support, and *that* would steal the FD (6)
15306         that opendir was supposed to use.
15307
15308         The fix is to squirrel away the desired FD so that save_cwd uses a
15309         different one, and then free the dest FD right before calling opendir.
15310         That guarantees opendir will use the required file descriptor.
15311
15312         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15313
15314 2010-10-08  Bruno Haible  <bruno@clisp.org>
15315
15316         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15317         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15318
15319 2010-10-08  Bruno Haible  <bruno@clisp.org>
15320
15321         nanosleep: Make replacement POSIX compliant.
15322         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15323         is out of range.
15324         Reported by Jim Meyering.
15325
15326 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         bootstrap: add hook for altering gnulib.mk, for Bison
15329         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15330         the Bison bootstrapping process can rewrite file names and variables
15331         in this file before later parts of 'bootstrap' use the file.
15332         Bison wants to include lib/gnulib.mk from the top-level makefile,
15333         so it needs the file names in this file to be relative to the top
15334         level, not relative to lib; plus it needs variable names to be
15335         rewritten.
15336         (slurp): Use the new function.
15337
15338         bootstrap: reformat for readability
15339         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15340
15341 2010-10-08  Eric Blake  <eblake@redhat.com>
15342
15343         docs: update cygwin progress
15344         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15345         1.7.7.
15346         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15347         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15348         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15349         * doc/posix-functions/carg.texi (carg): Likewise.
15350         * doc/posix-functions/cargf.texi (cargf): Likewise.
15351         * doc/posix-functions/casin.texi (casin): Likewise.
15352         * doc/posix-functions/casinf.texi (casinf): Likewise.
15353         * doc/posix-functions/casinh.texi (casinh): Likewise.
15354         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15355         * doc/posix-functions/catan.texi (catan): Likewise.
15356         * doc/posix-functions/catanf.texi (catanf): Likewise.
15357         * doc/posix-functions/catanh.texi (catanh): Likewise.
15358         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15359         * doc/posix-functions/ccos.texi (ccos): Likewise.
15360         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15361         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15362         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15363         * doc/posix-functions/cexp.texi (cexp): Likewise.
15364         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15365         * doc/posix-functions/cimag.texi (cimag): Likewise.
15366         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15367         * doc/posix-functions/clog.texi (clog): Likewise.
15368         * doc/posix-functions/clogf.texi (clogf): Likewise.
15369         * doc/posix-functions/conj.texi (conj): Likewise.
15370         * doc/posix-functions/conjf.texi (conjf): Likewise.
15371         * doc/posix-functions/cpow.texi (cpow): Likewise.
15372         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15373         * doc/posix-functions/cproj.texi (cproj): Likewise.
15374         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15375         * doc/posix-functions/creal.texi (creal): Likewise.
15376         * doc/posix-functions/crealf.texi (crealf): Likewise.
15377         * doc/posix-functions/csin.texi (csin): Likewise.
15378         * doc/posix-functions/csinf.texi (csinf): Likewise.
15379         * doc/posix-functions/csinh.texi (csinh): Likewise.
15380         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15381         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15382         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15383         * doc/posix-functions/ctan.texi (ctan): Likewise.
15384         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15385         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15386         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15387         * doc/posix-headers/complex.texi (complex.h): Likewise.
15388
15389 2010-10-07  Jim Meyering  <meyering@redhat.com>
15390
15391         parse-datetime: avoid compilation failure on OpenBSD 4.7
15392         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15393         This works around a compilation failure on OpenBSD 4.7:
15394         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15395
15396 2010-10-07  Eric Blake  <eblake@redhat.com>
15397
15398         docs: update cygwin progress
15399         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15400         1.7.6.
15401         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15402         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15403         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15404         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15405         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15406         Likewise.
15407         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15408         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15409         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15410         Likewise.
15411         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15412         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15413         Likewise.
15414         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15415         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15416         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15417         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15418         Likewise.
15419         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15420         Likewise.
15421         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15422
15423         docs: update parse-datetime history
15424         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15425         documentation of this function's history and alternatives.
15426
15427         cygwin: use more robust version check
15428         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15429         exclude an eventual cygwin 1.9.1.
15430         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15432         (gl_FUNC_STRCASESTR): Likewise.
15433         Reported by Bruno Haible.
15434
15435 2010-10-06  Bruno Haible  <bruno@clisp.org>
15436
15437         string, sys_select: Avoid #including large headers unless necessary.
15438         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15439         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15440         OSF/1, BeOS, Haiku.
15441         Reported by Jim Meyering.
15442
15443 2010-10-05  Eric Blake  <eblake@redhat.com>
15444
15445         memmem, strstr, strcasestr: fix bug with long periodic needle
15446         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15447         periodic needle having false positive.
15448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15449         and cygwin 1.7.7.
15450         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15452         (gl_FUNC_STRCASESTR): Likewise.
15453         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15454         * tests/test-memmem.c (main): Expose the bug.
15455         * tests/test-strcasestr.c (main): Likewise.
15456         * tests/test-strstr.c (main): Likewise.
15457         * tests/test-c-strcasestr.c (main): Likewise.
15458         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15459         * doc/posix-functions/strstr.texi (strstr): Likewise.
15460         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15461         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15462
15463 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         parse-datetime: do some more renaming
15466         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15467         parse_datetime, not get_date.  Mention the renaming.
15468         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15469         in comments.
15470         * m4/bison.m4: Likewise.
15471
15472 2010-10-05  Eric Blake  <eblake@redhat.com>
15473
15474         parse-datetime: better name than get_date
15475         * NEWS: Reword the deprecation notice.
15476         * modules/get_date: Rename to modules/parse-datetime.
15477         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15478         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15479         * lib/get_date.y: Rename to lib/parse-datetime.y.
15480         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15481         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15482         * doc/getdate.texi: Provide fallback wrapper.
15483         * lib/getdate.h: Move guts, and wrap...
15484         * lib/parse-datetime.h: ...new file.
15485         * lib/parse-datetime.y (get_date): Rename...
15486         (parse_datetime): ...to this.
15487         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15488         (gl_PARSE_DATETIME): ...to this.
15489         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15490         documentation.
15491         * modules/getdate (Files): Provide fallback docs and header.
15492         (Notice, Depends-on): Update references.
15493         * tests/test-parse-datetime.c: Likewise.
15494         * DEPENDENCIES: Likewise.
15495         * MODULES.html.sh (Date and time <time.h>): Likewise.
15496         * doc/parse-datetime.texi (Date input formats)
15497         (Authors of parse_datetime): Likewise.
15498         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15499         (Include): Likewise.
15500         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15501         * gnulib-tool: Likewise.
15502         * m4/bison.m4 (gl_BISON): Likewise.
15503         Suggested by Bruno Haible.
15504
15505 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15506
15507         more ports to Solaris tr, which needs [] around ranges
15508         * gnulib-tool: Solaris tr needs [] around ranges.
15509         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15510         * tests/test-pipe-filter-gi1.c (main): Likewise.
15511         * tests/test-pipe-filter-ii1.c (main): Likewise.
15512
15513 2010-10-05  Eric Blake  <eblake@redhat.com>
15514
15515         bootstrap: fix Solaris regression
15516         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15517         around ranges.
15518         Reported by Pádraig Brady.
15519
15520         bootstrap: work with pkg-config
15521         * build-aux/bootstrap (check_versions): Also transliterate - in
15522         prerequisite name.
15523         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15524         prerequisites that were already found, to avoid confusion.
15525         Reported by Justin Clift.
15526
15527         faccessat: remove unused wrappers
15528         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15529         presence of these wrappers dragged in -lgen on Solaris.
15530         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15531
15532 2010-10-05  Jim Meyering  <meyering@redhat.com>
15533
15534         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15535         * Makefile (sc_pragma_columns): New syntax-check rule.
15536
15537 2010-10-04  Bruno Haible  <bruno@clisp.org>
15538
15539         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15540         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15541         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15542         Reported by Bruce Korb and Eric Blake.
15543
15544 2010-10-04  Bruno Haible  <bruno@clisp.org>
15545
15546         threadlib: Make option --with-libpth-prefix work.
15547         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15548         use $LIBPTH, not just -lpth.
15549
15550 2010-10-04  Bruno Haible  <bruno@clisp.org>
15551
15552         Avoid line length limitation from HP NonStop system header files.
15553         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15554         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15555         * lib/ctype.in.h: Likewise.
15556         * lib/dirent.in.h: Likewise.
15557         * lib/errno.in.h: Likewise.
15558         * lib/fcntl.in.h: Likewise.
15559         * lib/float.in.h: Likewise.
15560         * lib/getopt.in.h: Likewise.
15561         * lib/iconv.in.h: Likewise.
15562         * lib/inttypes.in.h: Likewise.
15563         * lib/langinfo.in.h: Likewise.
15564         * lib/locale.in.h: Likewise.
15565         * lib/math.in.h: Likewise.
15566         * lib/netdb.in.h: Likewise.
15567         * lib/netinet_in.in.h: Likewise.
15568         * lib/poll.in.h: Likewise.
15569         * lib/pthread.in.h: Likewise.
15570         * lib/pty.in.h: Likewise.
15571         * lib/sched.in.h: Likewise.
15572         * lib/se-selinux.in.h: Likewise.
15573         * lib/search.in.h: Likewise.
15574         * lib/signal.in.h: Likewise.
15575         * lib/spawn.in.h: Likewise.
15576         * lib/stdarg.in.h: Likewise.
15577         * lib/stddef.in.h: Likewise.
15578         * lib/stdint.in.h: Likewise.
15579         * lib/stdio.in.h: Likewise.
15580         * lib/stdlib.in.h: Likewise.
15581         * lib/string.in.h: Likewise.
15582         * lib/strings.in.h: Likewise.
15583         * lib/sys_file.in.h: Likewise.
15584         * lib/sys_ioctl.in.h: Likewise.
15585         * lib/sys_select.in.h: Likewise.
15586         * lib/sys_socket.in.h: Likewise.
15587         * lib/sys_stat.in.h: Likewise.
15588         * lib/sys_time.in.h: Likewise.
15589         * lib/sys_times.in.h: Likewise.
15590         * lib/sys_utsname.in.h: Likewise.
15591         * lib/sys_wait.in.h: Likewise.
15592         * lib/sysexits.in.h: Likewise.
15593         * lib/termios.in.h: Likewise.
15594         * lib/time.in.h: Likewise.
15595         * lib/unistd.in.h: Likewise.
15596         * lib/wchar.in.h: Likewise.
15597         * lib/wctype.in.h: Likewise.
15598         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15599         * modules/ctype (Makefile.am): Likewise.
15600         * modules/dirent (Makefile.am): Likewise.
15601         * modules/errno (Makefile.am): Likewise.
15602         * modules/fcntl-h (Makefile.am): Likewise.
15603         * modules/float (Makefile.am): Likewise.
15604         * modules/getopt-posix (Makefile.am): Likewise.
15605         * modules/iconv-h (Makefile.am): Likewise.
15606         * modules/inttypes (Makefile.am): Likewise.
15607         * modules/langinfo (Makefile.am): Likewise.
15608         * modules/locale (Makefile.am): Likewise.
15609         * modules/math (Makefile.am): Likewise.
15610         * modules/netdb (Makefile.am): Likewise.
15611         * modules/netinet_in (Makefile.am): Likewise.
15612         * modules/poll-h (Makefile.am): Likewise.
15613         * modules/pthread (Makefile.am): Likewise.
15614         * modules/pty (Makefile.am): Likewise.
15615         * modules/sched (Makefile.am): Likewise.
15616         * modules/search (Makefile.am): Likewise.
15617         * modules/selinux-h (Makefile.am): Likewise.
15618         * modules/signal (Makefile.am): Likewise.
15619         * modules/spawn (Makefile.am): Likewise.
15620         * modules/stdarg (Makefile.am): Likewise.
15621         * modules/stddef (Makefile.am): Likewise.
15622         * modules/stdint (Makefile.am): Likewise.
15623         * modules/stdio (Makefile.am): Likewise.
15624         * modules/stdlib (Makefile.am): Likewise.
15625         * modules/string (Makefile.am): Likewise.
15626         * modules/strings (Makefile.am): Likewise.
15627         * modules/sys_file (Makefile.am): Likewise.
15628         * modules/sys_ioctl (Makefile.am): Likewise.
15629         * modules/sys_select (Makefile.am): Likewise.
15630         * modules/sys_socket (Makefile.am): Likewise.
15631         * modules/sys_stat (Makefile.am): Likewise.
15632         * modules/sys_time (Makefile.am): Likewise.
15633         * modules/sys_times (Makefile.am): Likewise.
15634         * modules/sys_utsname (Makefile.am): Likewise.
15635         * modules/sys_wait (Makefile.am): Likewise.
15636         * modules/sysexits (Makefile.am): Likewise.
15637         * modules/termios (Makefile.am): Likewise.
15638         * modules/time (Makefile.am): Likewise.
15639         * modules/unistd (Makefile.am): Likewise.
15640         * modules/wchar (Makefile.am): Likewise.
15641         * modules/wctype (Makefile.am): Likewise.
15642
15643 2010-10-04  Bruno Haible  <bruno@clisp.org>
15644
15645         read-file tests: Avoid a test failure on NonStop Kernel.
15646         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15647         a regular file.
15648         Reported by Joachim Schmitz <schmitz@hp.com>.
15649
15650 2010-10-03  Bruno Haible  <bruno@clisp.org>
15651
15652         gnulib-tool: Fixes for --create-testdir with --libtool.
15653         * gnulib-tool (func_get_automake_snippet): Don't augment
15654         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15655         an executable.
15656         (func_create_testdir): Handle module 'alloca' like func_import.
15657         Reported by Bruce Korb <bruce.korb@gmail.com>.
15658
15659 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15660
15661         Avoid some lines longer than 80 characters.
15662         * lib/stdint.in.h: Break long comment lines.
15663         * lib/math.in.h: Likewise.
15664         (_GL_NUM_UINT_WORDS): New macro, for readability.
15665         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15666         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15667         * lib/stdlib.in.h: Likewise.
15668         * lib/spawn.in.h: Likewise.
15669         * lib/sys_socket.in.h: Update an URL.
15670         * lib/sys_stat.in.h: Break long line.
15671
15672 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15673
15674         Improve pmccabe2html.
15675         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15676         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15677         when the sources change. Remove the line in the HTML about "Used
15678         ranges" (which implied that there might be other unused ranges),
15679         rename "Resume" to "Summary" (easier to understand for more users).
15680         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15681         styles, and some unnecessary blank lines.
15682
15683 2010-10-03  Bruno Haible  <bruno@clisp.org>
15684             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15685
15686         acl: Add support for ACLs on NonStop Kernel.
15687         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15688         Check whether the function aclsort() exists.
15689         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15690         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15691         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15692         (acl_nontrivial [HAVE_ACLSORT]: New function.
15693         (file_has_acl): Implement for NonStop Kernel.
15694         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15695         (qset_acl): Implement for NonStop Kernel.
15696         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15697         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15698         (main): Implement for NonStop Kernel.
15699         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15700         Kernel. Handle this flavor.
15701         * tests/test-set-mode-acl.sh: Likewise.
15702         * tests/test-copy-acl.sh: Likewise.
15703         * tests/test-copy-file.sh: Likewise.
15704
15705 2010-10-03  Bruno Haible  <bruno@clisp.org>
15706
15707         Info about ACLs on NonStop Kernel.
15708         * doc/acl-resources.txt: Add info about NonStop Kernel.
15709         References by Joachim Schmitz <schmitz@hp.com>.
15710
15711 2010-10-02  Bruno Haible  <bruno@clisp.org>
15712
15713         Define missing EDQUOT on NonStop Kernel.
15714         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15715         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15716         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15717         missing.
15718         * doc/posix-headers/errno.texi: Mention the NSK bug.
15719         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15720         Reported by Joachim Schmitz <schmitz@hp.com>.
15721
15722 2010-10-02  Bruno Haible  <bruno@clisp.org>
15723
15724         Update doc for POSIX:2008.
15725         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15726         Update URL of POSIX specification.
15727
15728 2010-10-02  Bruno Haible  <bruno@clisp.org>
15729
15730         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15731         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15732         from gnulib, not from Automake.
15733
15734 2010-10-02  Bruno Haible  <bruno@clisp.org>
15735
15736         New module 'system-posix'.
15737         * modules/system-posix: New file.
15738         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15739         module is present.
15740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15741         GNULIB_SYSTEM_POSIX.
15742         * modules/stdlib (Depends-on): Remove sys_wait.
15743         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15744         * doc/posix-functions/system.texi: Mention the new module.
15745         * doc/posix-headers/stdlib.texi: Likewise.
15746         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15747         define test_sys_wait_macros to a no-op.
15748         Reported by Sam Steingold <sds@gnu.org>.
15749
15750 2010-09-30  Bruno Haible  <bruno@clisp.org>
15751
15752         More renaming from 'getdate' to 'get_date'.
15753         * doc/get_date.texi: Renamed from doc/getdate.texi.
15754         * modules/get_date (Files): Update.
15755         * MODULES.html.sh (Date and time <time.h>): Update.
15756         * DEPENDENCIES: Update.
15757         * gnulib-tool: Update comment.
15758         * m4/bison.m4 (gl_BISON): Likewise.
15759         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15760
15761 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15762
15763         bootstrap: support ACLOCAL_FLAGS during aclocal
15764         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15765         can add additional -I dir for third-party .m4 files.
15766
15767 2010-09-30  Eric Blake  <eblake@redhat.com>
15768
15769         bootstrap: use glibtoolize on MacOS
15770         * build-aux/bootstrap (check_versions): Convert libtool into
15771         libtoolize.
15772         (tool search): Move libtool check earlier, and look for
15773         glibtoolize for MacOS.
15774         (gnulib_tool_options): Auto-add --libtool when appropriate.
15775         Reported by Justin Clift.
15776
15777         poll: fix typo that broke test on MacOS
15778         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15779         Reported by Justin Clift.
15780
15781         getdate: rename to get_date
15782         Note: getdate.h is not renamed, to minimize client impact.
15783         * modules/getdate: Mark obsolete.  Move old contents...
15784         * modules/get_date: ...to new module name.
15785         * modules/getdate-tests: Move...
15786         * modules/get_date-tests: ...here.
15787         * m4/getdate.m4: Move...
15788         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15789         * lib/getdate.y: Move...
15790         * lib/get_date.y: ...here.
15791         * tests/test-getdate.c: Move...
15792         * tests/test-get_date.c: ...here.
15793         * doc/posix-functions/getdate.texi (getdate): Update name.
15794         * NEWS: Mention the change.
15795
15796 2010-09-29  Bruno Haible  <bruno@clisp.org>
15797
15798         Separate the module 'waitpid' from the module 'sys_wait'.
15799         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15800         present.
15801         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15802         gl_MODULE_INDICATOR_FOR_TESTS.
15803         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15804         * modules/sys_wait (Depends-on): Remove waitpid.
15805         (Makefile.am): Substitute GNULIB_WAITPID.
15806         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15807         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15808         signature only if the 'waitpid' module is present.
15809         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15810         * NEWS: Mention the change.
15811         * modules/grantpt (Depends-on): Add waitpid.
15812         * modules/wait-process (Depends-on): Likewise.
15813
15814 2010-09-29  Bruno Haible  <bruno@clisp.org>
15815
15816         More tests for module 'sys_wait'.
15817         * modules/sys_wait-c++-tests: New file.
15818         * tests/test-sys_wait-c++.cc: New file.
15819         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15820         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15821
15822 2010-09-29  Bruno Haible  <bruno@clisp.org>
15823
15824         New module 'waitpid'.
15825         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15826         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15827         Don't include <process.h>.
15828         (waitpid): Declare only, using modern idiom.
15829         * m4/waitpid.m4: New file.
15830         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15831         * modules/waitpid: New file.
15832         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15833         (Makefile.am): Update.
15834         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15835
15836 2010-09-28  Bruno Haible  <bruno@clisp.org>
15837
15838         poll: Assume ANSI C.
15839         * lib/poll.c (poll): Use an ANSI C declaration.
15840
15841 2010-09-28  Bruno Haible  <bruno@clisp.org>
15842
15843         poll-h: Create poll.h on all platforms.
15844         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15845         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15846         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15847         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15848         (gl_REPLACE_POLL_H): Don't set POLL_H.
15849         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15850         * modules/poll-h (Depends-on): Add include_next.
15851         (Makefile.am): Create poll.h unconditionally. Substitute also
15852         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15853
15854 2010-09-28  Bruno Haible  <bruno@clisp.org>
15855
15856         Tests for module 'poll-h'.
15857         * modules/poll-h-c++-tests: New file.
15858         * tests/test-poll-h-c++.cc: New file.
15859
15860         Tests for module 'poll-h'.
15861         * modules/poll-h-tests: New file.
15862         * tests/test-poll-h.c: New file.
15863
15864 2010-09-28  Bruno Haible  <bruno@clisp.org>
15865
15866         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15867         * modules/poll-h (Depends-on): Add 'extensions'.
15868
15869 2010-09-28  Bruno Haible  <bruno@clisp.org>
15870
15871         New module 'poll-h'.
15872         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15873         (poll): Use modern idiom.
15874         * modules/poll-h: New file.
15875         * modules/poll (Files): Remove lib/poll.in.h.
15876         (Depends-on): Add poll-h.
15877         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15878         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15879         * m4/poll_h.m4: New file.
15880         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15881         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15882         and invoke gl_REPLACE_POLL_H.
15883         * lib/poll.c: Use common idiom.
15884         * tests/test-poll.c: Likewise.
15885         * doc/posix-headers/poll.texi: Mention the poll-h module.
15886         Suggested by Eric Blake.
15887
15888 2010-09-26  Bruno Haible  <bruno@clisp.org>
15889
15890         sys_wait: Implement WSTOPSIG.
15891         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15892         Reported by Simon Josefsson.
15893
15894 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15895
15896         stdlib, sys_wait: Avoid compilation error on mingw.
15897         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15898
15899 2010-09-26  Bruno Haible  <bruno@clisp.org>
15900
15901         stdlib tests: Avoid code duplication.
15902         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15903         * modules/sys_wait-tests (Files): Likewise.
15904         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15905         * tests/test-stdlib.c: Include test-sys_wait.h.
15906         (main): Invoke test_sys_wait_macros.
15907         * tests/test-sys_wait.c: Include test-sys_wait.h.
15908         (main): Invoke test_sys_wait_macros.
15909
15910 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15911
15912         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15913         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15914         sure Windows sockets are working before calling getaddrinfo.
15915         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15916         * doc/gnulib.texi (Windows sockets): Fix typo.
15917
15918 2010-09-25  Bruno Haible  <bruno@clisp.org>
15919
15920         Tests for module 'regex-quote'.
15921         * modules/regex-quote-tests: New file.
15922         * tests/test-regex-quote.c: New file.
15923
15924         New module 'regex-quote'.
15925         * lib/regex-quote.h: New file.
15926         * lib/regex-quote.c: New file.
15927         * modules/regex-quote: New file.
15928         Suggested by Reuben Thomas <rrt@sc3d.org>.
15929
15930 2010-09-24  Bruno Haible  <bruno@clisp.org>
15931
15932         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15933         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15934
15935 2010-09-23  Bruno Haible  <bruno@clisp.org>
15936
15937         setenv: Relax license.
15938         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15939         Blake.
15940         Requested by Eric Blake.
15941
15942 2010-09-22  Bruno Haible  <bruno@clisp.org>
15943
15944         termios: Relax license.
15945         * modules/termios (License): Change to LGPLv2+.
15946         Requested by Eric Blake.
15947
15948 2010-09-22  Bruno Haible  <bruno@clisp.org>
15949
15950         threadlib: Allow the package to change the default to 'no'.
15951         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15952         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15953         Reported by Paul Eggert.
15954
15955 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15956             Bruno Haible  <bruno@clisp.org>
15957
15958         Fix endless loop in mbmemcasecoll.
15959         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15960         byte.
15961         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15962
15963 2010-09-22  Bruno Haible  <bruno@clisp.org>
15964
15965         Tests for module 'memcoll'.
15966         * modules/memcoll-tests: New file.
15967         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15968
15969         memcoll, xmemcoll: Clarify size vs. length.
15970         * modules/memcoll.c (memcoll0): Clarify specification.
15971         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15972         passed to collate_error.
15973
15974 2010-09-22  Bruno Haible  <bruno@clisp.org>
15975
15976         Tests for module 'memcasecmp'.
15977         * modules/memcasecmp-tests: New file.
15978         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15979
15980 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15981
15982         * lib/pthread.in.h: Add split double-inclusion guard, and include
15983         system <pthread.h> if there is one.  Use @@-style as in other
15984         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15985         pthread.h doesn't.
15986         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15987         (pthread_mutexattr_settype, pthread_mutex_trylock):
15988         New static inline functions, if there's no system <pthread.h>.
15989         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15990         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15991         Approximate with mutexes if the system lacks spinlocks, as in
15992         MacOS.
15993         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15994         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15995         @@-style.  Check for spinlocks separately.
15996         (gl_PTHREAD_DEFAULTS): New macro.
15997         * modules/pthread: Redo to use a more typical style for in.h files.
15998
15999 2010-09-21  Eric Blake  <eblake@redhat.com>
16000
16001         net_if: enhance tests
16002         * tests/test-net_if.c (main): Move signature checks earlier.
16003         Print failures to stderr.
16004         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16005         Document the bug that we do not yet fix.
16006
16007 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16008
16009         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16010         about gnulib, not GSS.
16011
16012 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16013
16014         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16015         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16016         for Emacs.
16017         * build-aux/pmccabe2html: Make Makefile.am example code more
16018         cut-and-paste friendly.
16019
16020 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16021
16022         * tests/test-net_if.c: New file.
16023         * modules/net_if-tests: New file.
16024
16025 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16026
16027         pthread: add pthread_spin_destroy
16028         * lib/pthread.in.h (pthread_spin_destroy): New function.
16029
16030 2010-09-19  Bruno Haible  <bruno@clisp.org>
16031
16032         gnulib-tool: Fix --help output.
16033         * gnulib-tool (func_usage): Fix help message.
16034         Reported by Reuben Thomas <rrt@sc3d.org>.
16035
16036 2010-09-18  Jim Meyering  <meyering@redhat.com>
16037
16038         maint.mk: avoid unexpanded \n in two diagnostics
16039         * top/maint.mk (sc_prohibit_always_true_header_tests):
16040         Don't use a literal \n in a halt=... assignment.  It would not be
16041         expanded, and the two \n bytes would appear in the diagnostic output
16042         rather than the desired newline.  Use halt=$$(printf ... instead.
16043         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16044
16045 2010-09-18  Bruno Haible  <bruno@clisp.org>
16046
16047         netinet_in: Doc tweak.
16048         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16049         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16050
16051 2010-09-18  Jim Meyering  <meyering@redhat.com>
16052
16053         init.sh: correct an outdated comment
16054         * tests/init.sh (create_exe_shims_):  s/function/alias/
16055
16056         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16057         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16058         a file named "*.exe" is removed between the glob expansion and the
16059         processing of that oddly named file.
16060
16061 2010-09-17  Eric Blake  <eblake@redhat.com>
16062
16063         mirbsd: add some more support
16064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16065         in BSD family.
16066         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16067         devices as OpenBSD.
16068         * m4/host-os.m4 (mirbsd): Add MirBSD.
16069
16070         tests: fix unportable assumption on sys/wait.h
16071         * tests/test-sys_wait.c (main): Relax test.
16072         * tests/test-stdlib.c (main): Likewise.
16073
16074         init.sh: accomodate directory with no .exes
16075         * tests/init.sh: Accomodate directory containing only scripts.
16076
16077         tests: avoid compiler warning
16078         * tests/test-stdlib.c (main): Use the variable.
16079
16080         fdutimens, fdutimensat: update signature, again
16081         * lib/utimens.h (gl_futimens): Delete, and move signature...
16082         (fdutimens): ...here.
16083         (fdutimensat): Rearrange signature.
16084         (lutimensat): Rename variable for clarity.
16085         * lib/fdutimensat.c (fdutimensat): Update signature.
16086         * lib/utimens.c (fdutimens): Likewise.
16087         (gl_futimens): Delete.
16088         (utimens, lutimens): Update callers.
16089         * lib/futimens.c (futimens): Likewise.
16090         * tests/test-fdutimensat.c: Likewise.
16091         * tests/test-utimens.c: Likewise.
16092         * tests/test-futimens.h: Update comment.
16093         * NEWS: Mention this.
16094         Suggested by Paul Eggert.
16095
16096 2010-09-17  Bruno Haible  <bruno@clisp.org>
16097
16098         Take over the maintenance of some older macros from Autoconf.
16099         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16100         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16101         GNU Autoconf.
16102         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16103         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16104
16105 2010-09-17  Eric Blake  <eblake@redhat.com>
16106
16107         fdutimensat: drop atflag validation
16108         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16109         with valid fd, to close a race scenario where futimens is
16110         unsupported and FILE was replaced by a symlink.
16111         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16112         accordingly.
16113         Suggested by Paul Eggert.
16114
16115 2010-09-16  Bruno Haible  <bruno@clisp.org>
16116
16117         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16118         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16119
16120 2010-09-16  Bruno Haible  <bruno@clisp.org>
16121
16122         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16123         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16124         login_tty exists.
16125         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16126
16127 2010-09-16  Bruno Haible  <bruno@clisp.org>
16128
16129         login_tty: Make the replacement code work on BSD systems.
16130         * lib/login_tty.c: Include <sys/ioctl.h>.
16131         (login_tty): Use ioctl TIOCSCTTY when available.
16132         * modules/login_tty (Depends-on): Add sys_ioctl.
16133         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16134
16135 2010-09-16  Bruno Haible  <bruno@clisp.org>
16136
16137         login_tty: Stricter unit test.
16138         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16139         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16140         and tcgetsid() after login_tty.
16141         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16142
16143 2010-09-16  Bruno Haible  <bruno@clisp.org>
16144
16145         New module 'tcgetsid'.
16146         * lib/tcgetsid.c: New file.
16147         * m4/tcgetsid.m4: New file.
16148         * modules/tcgetsid: New file.
16149         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16150         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16151         GNULIB_TCGETSID, HAVE_TCGETSID.
16152         * lib/termios.in.h: Include <sys/types.h>.
16153         (tcgetsid): New declaration.
16154         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16155         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16156         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16157         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16158
16159 2010-09-16  Bruno Haible  <bruno@clisp.org>
16160
16161         Tests for module 'termios'.
16162         * modules/termios-c++-tests: New file.
16163         * modules/termios-tests: New file.
16164         * tests/test-termios-c++.cc: New file.
16165         * tests/test-termios.c: New file.
16166
16167         New module 'termios'.
16168         * modules/termios: New file.
16169         * lib/termios.in.h: New file.
16170         * m4/termios_h.m4: New file.
16171         * doc/posix-headers/termios.texi: Mention the new module.
16172
16173 2010-09-16  Eric Blake  <eblake@redhat.com>
16174
16175         fdutimensat: add an atflag parameter
16176         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16177         * lib/utimens.h (fdutimensat): Update prototype.
16178         * tests/test-fdutimensat.c: Adjust test to match.
16179         * NEWS: Document the change.
16180         Suggested by Paul Eggert.
16181
16182 2010-09-16  Bruno Haible  <bruno@clisp.org>
16183
16184         Fix typos in comments.
16185         * lib/striconveh.h: Fix typo in comment.
16186         * lib/login_tty.c (login_tty): Likewise.
16187
16188 2010-09-15  Bruno Haible  <bruno@clisp.org>
16189
16190         stdlib: clarify MirBSD WEXITSTATUS bug
16191         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16192         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16193
16194 2010-09-15  Eric Blake  <eblake@redhat.com>
16195
16196         stdlib: work around MirBSD WEXITSTATUS bug
16197         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16198         * modules/stdlib (Depends-on): Add sys_wait.
16199         * tests/test-sys_wait.c (main): Enhance test.
16200         * tests/test-stdlib.c (main): Likewise.
16201         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16202
16203         docs: mention MacOS issue with WEXITSTATUS(constant)
16204         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16205         issue.
16206         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16207
16208         strnlen: add tests
16209         * modules/strnlen-tests: New file.
16210         * tests/test-strnlen.c: Likewise.
16211
16212 2010-09-14  Bruno Haible  <bruno@clisp.org>
16213
16214         unistr/base: Avoid link errors when module 'libunistring' is also used.
16215         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16216         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16217         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16218         Declare also when HAVE_LIBUNISTRING is set.
16219         Reported by Pádraig Brady <P@draigbrady.com>.
16220
16221 2010-09-14  Eric Blake  <eblake@redhat.com>
16222
16223         test-rawmemchr: make more robust
16224         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16225         (Depends-on, configure.ac): Add needed prerequisites to use it.
16226         * modules/memchr-tests (Files, Depends-on, configure.ac):
16227         Likewise, to avoid implicit reliance on memchr module prereqs.
16228         * tests/test-memchr.c (main): Ensure proper masking.
16229         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16230         reads.
16231
16232         memchr: detect glibc Alpha bug
16233         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16234         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16235         Alpha.
16236         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16237         * tests/test-memchr.c (main): Enhance test.
16238         Reported by Nelson H. F. Beebe.
16239
16240 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16241
16242         fts, getcwd, glob: audit for dirfd returning -1
16243         * lib/fts.c (opendir): Remove #define; no longer used.
16244         (opendirat): New arg PDIR_FD.  All callers changed.
16245         (fts_build, _opendir2): Use new opendirat to avoid the need for
16246         dirfd, or for checking whether dirfd returns a negative value.
16247         Don't use opendir; always use openat followed by fdopendir.
16248         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16249         it.
16250         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16251         returns -1 here.
16252         * modules/fts (Depends-on): Remove dirfd.
16253         * modules/getcwd (Depends-on): Likewise.
16254
16255 2010-09-13  Eric Blake  <eblake@redhat.com>
16256
16257         float: fix broken MirBSD header
16258         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16259         * doc/posix-headers/float.texi (float.h): Document it.
16260
16261 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16264         * lib/fts.c (opendirat): New arg extra_flags.
16265         (__opendir2): Use it to avoid following symlinks when opening
16266         a directory, if symlinks are not supposed to be followed.  See
16267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16268
16269         fdopendir: preserve argument fd before returning
16270         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16271         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16272         (fdopendir): Use them, arranging for FD to be open to the same
16273         directory that it was when it started.  (It might be temporarily
16274         closed while fdopendir is running, so this not thread- or
16275         signal-safe.)  Be careful to do the right thing even when file
16276         descriptors are scarce and dup fails with errno == EMFILE.  See
16277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16278
16279 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16280
16281         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16282         * NEWS: Document change.
16283         * m4/regex.m4: Disable test for regoff_t size.
16284
16285 2010-09-13  Jim Meyering  <meyering@redhat.com>
16286
16287         fts: don't operate on an invalid file descriptor after failed dup
16288         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16289         negative file descriptor.
16290
16291 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16292
16293         savedir: add streamsavedir, deprecate fdsavedir
16294         * NEWS: Mention deprecation of fdsavedir.
16295         * lib/savedir.c (streamsavedir): New extern function, whose name
16296         ends in "savedir" to be consistent with the others.  This differs
16297         from savedirstream in that it doesn't close its argument.  The
16298         next version of GNU tar will use this instead of fdsavedir, to
16299         avoid some race conditions and conserve file descriptors.
16300         (savedirstream): Reimplement as a wrapper around streamsavedir.
16301         (fdsavedir): Add a comment deprecating this function.  As far as
16302         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16303         * lib/savedir.h (streamsavedir): New decl.
16304         (fdsavedir): Add a comment deprecating this.
16305
16306 2010-09-10  Bruno Haible  <bruno@clisp.org>
16307
16308         langinfo: Fix last commit.
16309         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16310         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16312
16313 2010-09-10  Bruno Haible  <bruno@clisp.org>
16314
16315         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16316         * lib/progreloc.c (O_EXEC): Define fallback.
16317
16318 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16319
16320         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16321         * NEWS: Document recent changes to fcntl-h.
16322         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16323         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16324         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16325         Similarly for O_SEARCH; this last was already true, but not documented.
16326         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16327         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16328         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16329         Likewise.
16330         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16331         is zero, not whether it is defined.
16332         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16333         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16334         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16335
16336 2010-09-10  Bruno Haible  <bruno@clisp.org>
16337
16338         langinfo, nl_langinfo: Fix for IRIX 5.3.
16339         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16340         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16341         HAVE_LANGINFO_YESEXPR.
16342         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16343         HAVE_LANGINFO_YESEXPR.
16344         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16345         HAVE_LANGINFO_T_FMT_AMPM is 0.
16346         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16347         HAVE_LANGINFO_YESEXPR is 0.
16348         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16349         NOEXPR.
16350         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16351         * doc/posix-functions/nl_langinfo.texi: Likewise.
16352         Reported by Eric Blake.
16353
16354 2010-09-10  Bruno Haible  <bruno@clisp.org>
16355
16356         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16357         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16358         on FreeBSD 8.0 and OpenBSD 4.6.
16359         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16360         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16361         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16362         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16363         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16364         ac_includes_default.
16365         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16366
16367 2010-09-09  Eric Blake  <eblake@redhat.com>
16368
16369         strsignal: work around NetBSD bug
16370         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16371         * lib/string.in.h (includes): Likewise.
16372         * doc/posix-functions/strsignal.texi (strsignal): Document the
16373         bug.
16374         Reported by Nelson H. F. Beebe.
16375
16376         gnulib-tool: work with NetBSD /bin/sh
16377         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16378         (func_get_description, func_get_comment, func_get_status)
16379         (func_get_notice, func_get_applicability, func_get_filelist)
16380         (func_get_dependencies, func_get_autoconf_early_snippet)
16381         (func_get_autoconf_snippet, func_get_automake_snippet)
16382         (func_get_include_directive, func_get_link_directive)
16383         (func_get_license, func_get_maintainer, func_import): Avoid
16384         shell syntax errors from parsing syntax extensions.
16385
16386 2010-09-09  Bruno Haible  <bruno@clisp.org>
16387
16388         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16389         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16390         a reliable way to determine whether the 'alias' command works.
16391
16392 2010-09-08  Jim Meyering  <meyering@redhat.com>
16393
16394         init.sh: penalize a set-x-impaired shell; don't disqualify it
16395         * tests/init.sh: Too many shells corrupt application stderr when
16396         you set -x, so we can't afford to disqualify them, since at least
16397         on Irix-6.5, that would disqualify all bourne shells.
16398         Instead, use a two-pass approach.
16399         On the first pass, try to find a shell that meets the stricter
16400         condition that set -x does not corrupt stderr.
16401         If no shell meets the stricter condition, retest each candidate
16402         shell, but without that extra condition.  Finally, when
16403         VERBOSE=yes is requested and set -x might cause trouble, simply
16404         issue a warning and refrain from enabling debug output.
16405
16406 2010-09-08  Eric Blake  <eblake@redhat.com>
16407
16408         unsetenv: fix OpenBSD bug
16409         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16410         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16411         documentation.
16412         Reported by Jim Meyering.
16413
16414         strtod: work around IRIX 6.5 bug
16415         * lib/strtod.c (strtod): Reparse number on shorter string if
16416         exponent parse was invalid.
16417         * tests/test-strtod.c (main): Add check for "0x1p 2".
16418         Reported by Tom G. Christensen.
16419
16420         getopt: optimize previous patch
16421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16422         empty variable.  Speed up awk script.
16423         Reported by Paolo Bonzini.
16424
16425 2010-09-08  Jim Meyering  <meyering@redhat.com>
16426
16427         test.sh: disqualify shells for which set -x corrupts stderr
16428         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16429         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16430         appear in stderr output.  For example, this command:
16431             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16432         prints "P=1" on those two systems:
16433
16434 2010-09-08  Bruno Haible  <bruno@clisp.org>
16435
16436         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16437         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16438         commands, because some shells ignore redirections when there is an
16439         error in the command lookup.
16440         Reported by Eric Blake.
16441
16442 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16443
16444         * lib/regex.h: Fix a mention of `regex_compile' (should be
16445         `re_compile_pattern').
16446         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16447         (re_set_registers): Correct name of parameter in comment.
16448
16449         * doc/regex.texi: Add documentation for missing syntax flags.
16450         Remove commented-out documentation of defunct syntax option
16451         RE_NO_EMPTY_ALTS.
16452         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16453         Add documentation of re_set_registers.
16454         Document trick to re-use a pattern buffer by setting fastmap manually.
16455         Update documentation of struct re_pattern_buffer per public members.
16456         Uncomment documentation of equivalence class operators and
16457         collating symbol operators, since they are now implemented,
16458         Explain leftmost-longest matching in relation to alternatives.
16459         Tidy documentation of substring matching.
16460         Remove POSIX documentation, which is done better in
16461         glibc, and refer the reader there. Keep BSD API documentation, as
16462         that is not readily available elsewhere.
16463
16464 2010-09-07  Eric Blake  <eblake@redhat.com>
16465
16466         getopt: handle POSIXLY_CORRECT set but not exported
16467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16468         export state of POSIXLY_CORRECT, due to bash set -o posix.
16469         Reported by Dustin J. Mitchell.
16470
16471 2010-09-05  Bruno Haible  <bruno@clisp.org>
16472
16473         gnulib-tool: Highlight the changed options.
16474         * gnulib-tool (func_usage): Display the --import, --add-import,
16475         --remove-import explanations in bold font.
16476
16477 2010-09-06  Karl Berry  <karl@gnu.org>
16478
16479         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16480
16481 2010-09-05  Bruno Haible  <bruno@clisp.org>
16482
16483         uniwidth/width: Update comment.
16484         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16485         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16486
16487 2010-09-05  Bruno Haible  <bruno@clisp.org>
16488
16489         isinf, isnan: Relax license.
16490         * modules/isinf (License): Change from GPL to LGPL, with consent from
16491         Ben Pfaff.
16492         * modules/isnan (License): Likewise.
16493         Requested by Ludovic Courtès.
16494
16495 2010-09-04  Bruno Haible  <bruno@clisp.org>
16496
16497         gnulib-tool: Help migration from --import to --add-import or --update.
16498         * gnulib-tool: Emit a verbose error message when --import is used
16499         without any module name.
16500
16501 2010-09-04  Bruno Haible  <bruno@clisp.org>
16502
16503         Update doc about gnulib-tool.
16504         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16505         'gnulib-tool --update' in more detail.
16506         Reported by Eric Blake.
16507
16508 2010-09-04  Bruno Haible  <bruno@clisp.org>
16509
16510         gnulib-tool: Change --import. New options --add/remove-import.
16511         * gnulib-tool: New options --add-import, --remove-import.
16512         (func_usage): Document them.
16513         (have_associative): Define always.
16514         (func_import): In import mode, don't merge the specified settings with
16515         the cached settings. Implement remove-import mode.
16516         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16517         Explain when to use them versus --import.
16518         (Simple update): Use --add-import instead of --import.
16519         * NEWS: Mention the change.
16520
16521 2010-09-04  Bruno Haible  <bruno@clisp.org>
16522
16523         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16524         separate gnulib.mk.
16525
16526 2010-09-04  Bruno Haible  <bruno@clisp.org>
16527
16528         gnulib-tool: Don't talk about CVS any more.
16529         * gnulib-tool (func_usage, func_import): Write "version control"
16530         instead of CVS.
16531
16532 2010-09-04  Jim Meyering  <meyering@redhat.com>
16533
16534         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16535         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16536         false positives (whose names may be ill-chosen) when searching
16537         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16538         would cause a false-positive.
16539
16540         avoid coreutils "make distcheck" failure
16541         Coreutils tests with an absolute build directory name that contains
16542         a space.  Not quoting this directory name caused a failure.
16543         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16544         * tests/test-vc-list-files-cvs.sh: Likewise.
16545
16546 2010-09-04  Bruno Haible  <bruno@clisp.org>
16547
16548         gnulib-tool: Avoid error when run in a package without Makefile.am.
16549         * gnulib-tool: When collecting the m4dirs in a package that does not
16550         have a Makefile.am, eliminate those directories that contain no
16551         gnulib-cache.m4. Fix expression that counts these directories.
16552
16553 2010-09-04  Bruno Haible  <bruno@clisp.org>
16554
16555         update-copyright test: Improve output when perl is missing or too old.
16556         * tests/test-update-copyright.sh: Move test of Perl version down after
16557         the test whether Perl exists. Provide an explanation relating Perl's
16558         error message to Automake's SKIP: message.
16559
16560 2010-09-04  Bruno Haible  <bruno@clisp.org>
16561
16562         Don't augment PATH in TESTS_ENVIRONMENT.
16563         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16564         set abs_aux_dir instead of augmenting PATH.
16565         * modules/vc-list-files-tests (Makefile.am): Likewise.
16566         * tests/test-update-copyright.sh: Augment PATH here.
16567         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16568         path_prepend_.
16569         * tests/test-vc-list-files-git.sh: Likewise.
16570
16571 2010-09-04  Jim Meyering  <meyering@redhat.com>
16572
16573         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16574         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16575
16576 2010-09-04  Bruno Haible  <bruno@clisp.org>
16577
16578         strdup: Fix compilation error in C++ mode.
16579         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16580         the macro.
16581
16582 2010-09-04  Bruno Haible  <bruno@clisp.org>
16583
16584         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16585         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16586         macro into a function.
16587         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16588
16589 2010-09-04  Bruno Haible  <bruno@clisp.org>
16590
16591         Set PATH_SEPARATOR the same way autoconf does.
16592         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16593         the value of PATH_SEPARATOR the same way autoconf-generated configure
16594         scripts do.
16595         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16596         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16597
16598 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16599
16600         Set PATH_SEPARATOR the same way autoconf does.
16601         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16602         the same way autoconf-generated configure scripts do.
16603         * posix-modules: Likewise.
16604
16605 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         hash: fix safe_hasher const typo
16608         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16609         const; otherwise, there is a type error later.
16610
16611 2010-09-02  Jim Meyering  <meyering@redhat.com>
16612
16613         test-update-copyright.sh: require perl 5.8.0
16614         * tests/test-update-copyright.sh: Require 5.8.0,
16615         which Tom G. Christensen has confirmed is adequate,
16616         while 5.6.1 is not.
16617
16618 2010-09-02  Eric Blake  <eblake@redhat.com>
16619
16620         tests: init.sh improvements for re-exec'ing with zsh
16621         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16622         -vx through shell re-exec.
16623         Reported by Tom G. Christensen.
16624
16625         wctype: fix typo in previous commit
16626         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16627         Reported by Ludovic Courtès.
16628
16629 2010-09-02  Jim Meyering  <meyering@redhat.com>
16630
16631         test-update-copyright.sh: skip test if Perl is too old
16632         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16633         Reported by Tom G. Christensen.
16634
16635 2010-09-02  Bruno Haible  <bruno@clisp.org>
16636
16637         wctype: Avoid compilation error on IRIX 6.5.30.
16638         * lib/wctype.in.h (iswblank): Declare with a replacement if
16639         REPLACE_ISWBLANK is set.
16640         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16641         declared. Set REPLACE_ISWBLANK.
16642         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16643         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16644         * doc/posix-headers/wctype.texi: Likewise.
16645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16646
16647 2010-09-01  Bruno Haible  <bruno@clisp.org>
16648
16649         New module 'socketlib'.
16650         * modules/socketlib: New file.
16651         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16652         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16653         * modules/sockets (Depends-on): Add socketlib.
16654         Suggested by Sam Steingold <sds@gnu.org>.
16655
16656 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16657
16658         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16659
16660         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16661         when one needs search access to a directory but not read access.
16662         On systems where it is available, it works in some cases where
16663         O_RDONLY does not, namely on directories that are searchable but
16664         not readable, and which need only to be searchable.  If O_SEARCH
16665         is not available, fall back to the traditional method of using
16666         O_RDONLY.
16667
16668         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16669         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16670         when opening a directory that needs only to be searchable.
16671         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16672         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16673         * lib/openat-proc.c (openat_proc_name): Likewise.
16674         * lib/openat.c (openat_needs_fchdir): Likewise.
16675         * lib/save-cwd.c (save_cwd): Likewise.
16676         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16677
16678 2010-08-28  Bruno Haible  <bruno@clisp.org>
16679
16680         New module 'host-cpu-c-abi'.
16681         * modules/host-cpu-c-abi: New file.
16682         * m4/host-cpu-c-abi.m4: New file, based on part of
16683         clisp/src/m4/general.m4.
16684         Requested by Sam Steingold <sds@gnu.org>.
16685
16686 2010-08-31  Eric Blake  <eblake@redhat.com>
16687         and Jim Meyering  <meyering@redhat.com>
16688
16689         hash: factor, and guard against misbehaving hasher function
16690         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16691         of table->hasher's return value.  Also protect against a hash value
16692         so large that adding it to table->bucket results in a NULL pointer.
16693         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16694         Use it in place of open-coded check-and-abort.
16695
16696 2010-08-30  Bruno Haible  <bruno@clisp.org>
16697
16698         hash: silence spurious clang warning
16699         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16700         Reported by Eric Blake.
16701
16702 2010-08-30  Eric Blake  <eblake@redhat.com>
16703
16704         strstr, memmem, strcasestr: avoid leaked shell message
16705         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16706         FreeBSD.
16707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16709
16710         tests: silence clang warning
16711         * tests/test-malloca.c (do_allocation): Avoid dead store.
16712
16713 2010-08-29  Bruno Haible  <bruno@clisp.org>
16714
16715         gettext: Fix recent mistake.
16716         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16717
16718 2010-08-29  Bruno Haible  <bruno@clisp.org>
16719
16720         selinux-h: Offer a --without-selinux option.
16721         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16722         --without-selinux was specified, skip all tests and define
16723         HAVE_SELINUX_SELINUX_H to 0.
16724         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16725         set LIB_SELINUX to empty.
16726         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16727         gl_LIBSELINUX. If --without-selinux was specified, replace
16728         selinux/context.h.
16729         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16730
16731 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16732             Bruno Haible  <bruno@clisp.org>
16733
16734         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16735         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16736         of HAVE_REALLOC.
16737         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16738         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16739         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16740         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16741
16742 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16743             Bruno Haible  <bruno@clisp.org>
16744
16745         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16746         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16747         HAVE_CALLOC.
16748         * lib/xmalloc.c: Update accordingly.
16749         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16750         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16751         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16752
16753 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16754             Bruno Haible  <bruno@clisp.org>
16755
16756         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16757         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16758         HAVE_MALLOC.
16759         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16760         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16761         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16762
16763 2010-08-29  Bruno Haible  <bruno@clisp.org>
16764
16765         Update modules list.
16766         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16767         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16768         (String handling <string.h>): Add astrxfrm.
16769         (File system functions): Add readlinkat.
16770
16771 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16772
16773         Tests for module 'realloc-gnu'.
16774         * modules/realloc-gnu-tests: New file.
16775         * tests/test-realloc-gnu.c: New file.
16776
16777         Tests for module 'calloc-gnu'.
16778         * modules/calloc-gnu-tests: New file.
16779         * tests/test-calloc-gnu.c: New file.
16780
16781         Tests for module 'malloc-gnu'.
16782         * modules/malloc-gnu-tests: New file.
16783         * tests/test-malloc-gnu.c: New file.
16784
16785 2010-08-28  Bruno Haible  <bruno@clisp.org>
16786
16787         Rename module 'realloc' -> 'realloc-gnu'.
16788         * modules/realloc-gnu: New file, copied from modules/realloc.
16789         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16790         obsolete.
16791         * modules/mgetgroups (Depends-on): Update.
16792         * doc/posix-functions/realloc.texi: Update.
16793         * NEWS: Mention the change.
16794
16795         Rename module 'calloc' -> 'calloc-gnu'.
16796         * modules/calloc-gnu: New file, copied from modules/calloc.
16797         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16798         obsolete.
16799         * doc/posix-functions/calloc.texi: Update.
16800         * NEWS: Mention the change.
16801
16802         Rename module 'malloc' -> 'malloc-gnu'.
16803         * modules/malloc-gnu: New file, copied from modules/malloc.
16804         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16805         obsolete.
16806         * modules/argp (Depends-on): Update.
16807         * modules/regex (Depends-on): Update.
16808         * doc/posix-functions/malloc.texi: Update.
16809         * NEWS: Mention the change.
16810
16811 2010-08-28  Eric Blake  <eblake@redhat.com>
16812
16813         pread, pwrite: add missing dependency
16814         * modules/pread (Depends-on): Add extensions.
16815         * modules/pwrite (Depends-on): Likewise.
16816
16817 2010-08-28  Bruno Haible  <bruno@clisp.org>
16818
16819         unistr/u*-strchr: Fix tests dependencies.
16820         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16821         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16822         Reported by Ian Beckwith <ianb@erislabs.net>.
16823
16824 2010-08-28  Bruno Haible  <bruno@clisp.org>
16825
16826         read-file: Don't occupy too much unused memory.
16827         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16828
16829 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16830             Eric Blake  <eblake@redhat.com>
16831             Bruno Haible  <bruno@clisp.org>
16832
16833         read-file: Avoid memory reallocations with regular files.
16834         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16835         (fread_file): With regular files, use the remaining length as the
16836         initial buffer size.  Check against overflow.
16837         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16838         sys_stat.
16839
16840 2010-08-28  Bruno Haible  <bruno@clisp.org>
16841
16842         ftello: Relax license.
16843         * modules/ftello (License): Relax to LGPLv2+.
16844         Reported by Eric Blake.
16845
16846 2010-08-28  Bruno Haible  <bruno@clisp.org>
16847
16848         Avoid relocwrapper link errors due to gnulib replacement functions.
16849         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16850         function.
16851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16852
16853 2010-08-28  Bruno Haible  <bruno@clisp.org>
16854
16855         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16856         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16857         defined.
16858         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16859         Suggested by Eric Blake.
16860
16861 2010-08-28  Bruno Haible  <bruno@clisp.org>
16862
16863         sys_socket, netdb: Ensure socklen_t gets defined.
16864         * modules/sys_socket (Depends-on): Add socklen.
16865         * modules/netdb (Depends-on): Likewise.
16866         * modules/getaddrinfo (Depends-on): Remove socklen.
16867         * modules/getsockopt (Depends-on): Likewise.
16868         * modules/setsockopt (Depends-on): Likewise.
16869         * tests/test-sys_socket.c: Check that socklen_t is defined.
16870         * tests/test-netdb.c: Likewise.
16871         * m4/socklen.m4: Update comments.
16872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16873
16874 2010-08-27  Eric Blake  <eblake@redhat.com>
16875
16876         login_tty: add missing dependency
16877         * modules/login_tty (Depends-on): Add pty.
16878
16879 2010-08-26  Eric Blake  <eblake@redhat.com>
16880
16881         lib-symbol-versions: fix m4 quoting
16882         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16883         format for AC_LINK_IFELSE.
16884
16885         glob: fix compile test
16886         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16887
16888         btowc: fix missing file
16889         * modules/btowc (Files): Also ship locale-fr.m4.
16890
16891         lseek: fix link test
16892         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16893         AC_LINK_IFELSE.
16894
16895         include_next: silence autoconf 2.68 warning
16896         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16897         AC_COMPILE_IFELSE as special.
16898         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16899         autoconf < 2.68.
16900
16901         acl: fix compilation test
16902         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16903         AC_COMPILE_IFELSE.
16904
16905 2010-08-26  Bruno Haible  <bruno@clisp.org>
16906
16907         Modernize AC_TRY_RUN invocations.
16908         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16909         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16910         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16911         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16912         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16913         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16914         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16916         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16917         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16918         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16919         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16920         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16921         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16923         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16924         gl_MBRLEN_NUL_RETVAL): Likewise.
16925         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16926         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16927         Likewise.
16928         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16929         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16930         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16931         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16932         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16933         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16934         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16935         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16936         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16937         Likewise.
16938         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16939         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16941         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16942         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16943         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16945         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16946         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16948
16949 2010-08-26  Bruno Haible  <bruno@clisp.org>
16950
16951         Modernize AC_TRY_LINK invocations.
16952         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16953         AC_TRY_LINK.
16954         * m4/argp.m4 (gl_ARGP): Likewise.
16955         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16956         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16957         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16959         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16960         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16961         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16962         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16963         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16964         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16965         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16966         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16967         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16968         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16969         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16970         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16971         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16972         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16973         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16974         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16975         Likewise.
16976         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16977         Likewise.
16978         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16979         Likewise.
16980         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16982         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16983         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16984         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16985         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16986         * m4/servent.m4 (gl_SERVENT): Likewise.
16987         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16988         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16989         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16990         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16991         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16992         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16993         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16994         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16995         * modules/tsearch-tests (configure.ac): Likewise.
16996
16997 2010-08-26  Bruno Haible  <bruno@clisp.org>
16998
16999         Modernize AC_TRY_COMPILE invocations.
17000         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17001         AC_TRY_COMPILE.
17002         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17003         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17004         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17005         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17006         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17007         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17008         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17009         * m4/lock.m4 (gl_LOCK): Likewise.
17010         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17011         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17012         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17013         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17014         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17015         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17016         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17018         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17019         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17020         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17021         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17022         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17023         extraneous semicolon.
17024
17025 2010-08-26  Jim Meyering  <meyering@redhat.com>
17026
17027         stat-time: relax license LGPL
17028         * modules/stat-time (License): Change from GPL to LGPL,
17029         with consent from all contributors, for use in libguile.
17030         Requested by Ludovic Courtès.
17031
17032 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17033
17034         poll: return immediately on POLLHUP.
17035         * lib/poll.c (poll): Always set timeout before wait_timeout is
17036         computed.
17037
17038 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17039
17040         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17041         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17042         rmdir ("dir/.//"), unlinkat.
17043
17044 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17045
17046         stdbool: avoid spurious failure with modern xlc
17047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17048
17049 2010-08-24  Bruno Haible  <bruno@clisp.org>
17050
17051         getloadavg: simplify code
17052         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17053         gl_have_func. Update comments.
17054
17055 2010-08-24  Eric Blake  <eblake@redhat.com>
17056
17057         getloadavg: don't define SVR4 on cygwin
17058         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17059         only define SVR4 when -lkvm is required.
17060         Reported by Yaakov Selkowitz.
17061
17062 2010-08-24  Bruno Haible  <bruno@clisp.org>
17063
17064         priv-set: fix comment
17065         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17066
17067 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         priv-set: fix comments
17070         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17071         to match code, as suggested by David Bartley in:
17072         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17073
17074 2010-08-23  Eric Blake  <eblake@redhat.com>
17075
17076         stdbool: avoid rejecting clang
17077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17078         * tests/test-stdbool.c: Enable more tests if using the system
17079         <stdbool.h> instead of the gnulib replacement.
17080         (main): Move xlc bug test to a runtime test for all compilers.
17081         Reported by Anders Kaseorg.
17082
17083         argz: fix shell quoting issue
17084         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17085         Reported by Charles Wilson.
17086
17087 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17088             Erik Faye-Lund <kusmabite@gmail.com>
17089
17090         poll, select: handle ERROR_BROKEN_PIPE.
17091         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17092         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17093         * lib/select.c (win32_compute_revents): Do not mark a pipe
17094         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17095
17096 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17097
17098         fts: allow compilation with C++
17099         * lib/fts_.h: Specify extern "C" linkage with C++.
17100
17101 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17102
17103         Fix gnulib-tool sed script de-commentation for AIX sed.
17104         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17105         sed.
17106
17107 2010-08-17  Eric Blake  <eblake@redhat.com>
17108
17109         test-stddef: test for (some) offsetof bugs
17110         * tests/test-stddef.c: Enhance test to ensure correct type of
17111         offsetof.
17112         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17113         that we are not fixing at this time.
17114
17115 2010-08-15  Bruno Haible  <bruno@clisp.org>
17116
17117         stpncpy: Allow stpncpy to be defined as a macro.
17118         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17119         if it's already correctly declared.
17120         * lib/string.in.h (stpncpy): Undefine before redefining.
17121         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17122
17123 2010-08-14  Bruno Haible  <bruno@clisp.org>
17124
17125         Rename module 'memxfrm' to 'amemxfrm'.
17126         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17127         (amemxfrm): Renamed from memxfrm.
17128         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17129         (amemxfrm): Renamed from memxfrm.
17130         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17131         * NEWS: Mention the change.
17132         * MODULES.html.sh (String handling <string.h>): Update.
17133         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17134         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17135         * lib/unicase/u16-casexfrm.c: Likewise.
17136         * lib/unicase/u32-casexfrm.c: Likewise.
17137         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17138         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17139         * lib/uninorm/u16-normxfrm.c: Likewise.
17140         * lib/uninorm/u32-normxfrm.c: Likewise.
17141         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17142         memxfrm.
17143         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17144         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17145         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17146         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17147         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17148         Suggested by Paul Eggert.
17149
17150 2010-08-14  Bruno Haible  <bruno@clisp.org>
17151
17152         Tests for module 'astrxfrm'.
17153         * modules/astrxfrm-tests: New file.
17154         * tests/test-astrxfrm.c: New file.
17155
17156         New module 'astrxfrm'.
17157         * lib/astrxfrm.h: New file.
17158         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17159         * modules/astrxfrm: New file.
17160
17161 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17162
17163         regex: Tweak doc.
17164         * doc/regex.texi (Overview): Don't mention regex.c.
17165         (GNU Regular Expression Compiling): Likewise.
17166         (Match-end-of-line Operator): Mention 'not_eol'.
17167
17168 2010-08-14  Brian Gough  <bjg@gnu.org>
17169             Bruno Haible  <bruno@clisp.org>
17170
17171         git-merge-changelog: add doc relating to use with bzr and hg.
17172         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17173
17174 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17175
17176         pthread: fix pthread.h creation for srcdir != builddir
17177         * modules/pthread (Makefile.am): Fix the rule to work also in a
17178         non-srcdir build.
17179
17180 2010-08-13  Karl Berry  <karl@gnu.org>
17181
17182         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17183         * doc/posix-*/*: force line break before @url of POSIX
17184         specifications.
17185         Suggested by Werner Lemberg.
17186
17187 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17188
17189         strtod: fix const diagnostic
17190         * lib/strtod.c (strtod): Don't assign const char * to char *,
17191         as this elicits a warning from GCC when warnings are enabled.
17192
17193 2010-08-10  Pádraig Brady <P@draigbrady.com>
17194         and Eric Blake  <eblake@redhat.com>
17195
17196         copy-acl: ignore ENOTSUP on HP-UX
17197         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17198         so that it is available for HP-UX.
17199         * lib/copy-acl.c (qcopy_acl): Use it.
17200         Reported by Patrick M. Callahan.
17201
17202 2010-08-10  Eric Blake  <eblake@redhat.com>
17203
17204         open, chown: relax license
17205         * modules/open (License): Change to LGPLv2+, with consent by all
17206         authors, for use in augeas.
17207         * modules/chown (License): Likewise.
17208         * modules/lchown (Likewise): Likewise.
17209         Requested by Adam Stokes.
17210
17211 2010-08-09  Karl Berry  <karl@gnu.org>
17212
17213         * build-aux/ar-lib: new file, import from Automake.
17214         * config/srclist.txt: autocheck for updates.
17215
17216 2010-08-09  Eric Blake  <eblake@redhat.com>
17217
17218         readlinkat: adjust client modules
17219         * modules/areadlinkat (Depends-on): Use readlinkat, not
17220         symlinkat.
17221         * modules/areadlinkat-with-size (Depends-on): Likewise.
17222
17223         mknod: be more vocal about danger of running tests as root
17224         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17225         root, since that is just asking for problems.
17226         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17227
17228         readlinkat: split into its own module
17229         * modules/symlinkat: Split readlinkat...
17230         * modules/readlinkat: ...into separate module.
17231         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17232         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17233         * lib/symlinkat.c (readlinkat): Move...
17234         * lib/readlinkat.c: ...into new file.
17235         * modules/symlinkat-tests: Split readlinkat test...
17236         * modules/readlinkat-tests: ...into separate module.
17237         * tests/test-symlinkat.c: Split...
17238         * tests/test-readlinkat.c: ...into new file.
17239         * NEWS: Document the split.
17240         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17241         * lib/unistd.in.h (readlinkat): Likewise.
17242         Suggested by Bruno Haible.
17243
17244 2010-08-08  Bruno Haible  <bruno@clisp.org>
17245
17246         memxfrm: Speed up.
17247         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17248         that usually only one call to strxfrm is necessary for each string
17249         part.
17250         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17251
17252 2010-08-07  Karl Berry  <karl@gnu.org>
17253
17254         * doc/posix-headers/limits.texi,
17255         * doc/posix-functions/malloc.texi,
17256         * doc/posix-functions/strsignal.texi: missing @item.
17257         * doc/ld-version-script.texi: spurious leading i.
17258         * doc/regex.texi (Interval Operators): no commas inside @var.
17259
17260 2010-08-01  Bruno Haible  <bruno@clisp.org>
17261
17262         Integrate the regex documentation.
17263         * doc/gnulib.texi: Define 'cn' index.
17264         (Regular expressions): New a chapter that includes regex.texi and
17265         regexprops-generic.texi.
17266         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17267         syntax.
17268
17269         Whitespace cleanup.
17270         * doc/regex.texi: Remove trailing spaces.
17271
17272         Add regex documentation.
17273         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17274         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17275         Written by Kathy A. Hargreaves and Karl Berry.
17276
17277 2010-08-01  Bruno Haible  <bruno@clisp.org>
17278
17279         link: Update documentation.
17280         * doc/posix-functions/link.texi: Update regarding Solaris.
17281
17282 2010-07-31  Bruno Haible  <bruno@clisp.org>
17283
17284         Update modules list.
17285         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17286         (String handling <string.h>): Add memcmp2, memxfrm.
17287         (Container data structures): Add xlist, xsublist, xoset.
17288         (Core language properties): Add alignof, unused-parameter.
17289         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17290         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17291         (Unibyte characters <ctype.h>): New section.
17292         (String handling <string.h>): New section.
17293         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17294         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17295         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17296         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17297         tan, tanh, tanl, y0, y1, yn.
17298         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17299         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17300         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17301         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17302         unlockpt, vdprintf, vdprintf-posix.
17303         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17304         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17305         xconcat-filename.
17306         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17307         getdtablesize, pipe2, pipe2-safer.
17308         (Security): New section.
17309         (Networking functions): Add accept4.
17310         (Signal handling): Add sigpipe.
17311         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17312         mbmemcasecoll.
17313         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17314         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17315         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17316         pipe-filter-ii.
17317         (Misc): Add argp-version-etc, login_tty, parse-duration.
17318
17319 2010-07-31  Bruno Haible  <bruno@clisp.org>
17320
17321         Improve doc in MODULES.html.
17322         * modules/linkat (Description): Add the word "function".
17323         * modules/mkfifo (Description): Likewise.
17324         * modules/mknod (Description): Likewise.
17325         * modules/remove (Description): Likewise.
17326         * modules/renameat (Description): Likewise.
17327         * modules/stat (Description): Likewise.
17328         * modules/symlink (Description): Likewise.
17329         * modules/unlink (Description): Likewise.
17330
17331 2010-07-31  Bruno Haible  <bruno@clisp.org>
17332
17333         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17334         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17335         option --enable/disable-c++ instead of --enable/disable-cxx.
17336         * NEWS: Mention the change.
17337
17338 2010-07-31  Bruno Haible  <bruno@clisp.org>
17339
17340         readlink, areadlink: Relax test a bit.
17341         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17342         alternative to ENOTDIR.
17343         * tests/test-areadlink.h (test_areadlink): Likewise.
17344         Reported by Rainer Tammer.
17345
17346 2010-07-31  Bruno Haible  <bruno@clisp.org>
17347
17348         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17349         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17350         character, perform the search using U_STRCHR.
17351         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17352         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17353         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17354         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17355         Suggested by Paolo Bonzini.
17356
17357 2010-07-31  Bruno Haible  <bruno@clisp.org>
17358
17359         unistr/u*-strstr: Fix dependencies.
17360         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17361         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17362         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17363
17364 2010-07-31  Bruno Haible  <bruno@clisp.org>
17365
17366         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17367         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17368         the beginning of the loop.
17369         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17370         cases in 'switch' statement.
17371
17372         unistr/u8-strchr: Fix several bugs.
17373         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17374         the string. When not found, return NULL, not a pointer near the end.
17375
17376         More tests for unistr/u8-strchr.
17377         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17378         that the function does not read past the first occurrence of the byte
17379         being searched.
17380         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17381         * tests/unistr/test-u16-strchr.c (main): New function.
17382         * tests/unistr/test-u32-strchr.c (main): New function.
17383
17384 2010-07-31  Bruno Haible  <bruno@clisp.org>
17385
17386         posix-modules: Ignore backup files of documentation files.
17387         * posix-modules: grep only through files named *.texi.
17388
17389 2010-07-31  Bruno Haible  <bruno@clisp.org>
17390
17391         symlinkat: Fix documentation.
17392         * doc/posix-functions/readlinkat.texi: Fix module name.
17393
17394 2010-07-31  Bruno Haible  <bruno@clisp.org>
17395
17396         fchownat: Replace also when chown has the trailing slash bug.
17397         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17398         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17399         introduced on 2010-04-10.
17400         Reported by Rainer Tammer.
17401
17402 2010-07-31  Bruno Haible  <bruno@clisp.org>
17403
17404         linkat: Work around AIX 7.1 bug.
17405         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17406         whether linkat handles trailing slash correctly. If not, replace linkat
17407         and define LINKAT_TRAILING_SLASH_BUG.
17408         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17409         check whether (fd1,file1) points to a directory if file1 or file2 ends
17410         in a slash. Code taken from lib/link.c.
17411         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17412         Reported by Rainer Tammer.
17413
17414 2010-07-31  Bruno Haible  <bruno@clisp.org>
17415
17416         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17417         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17418         This disables an xlc optimization that was causing wrong test results.
17419         Reported by Rainer Tammer.
17420
17421 2010-07-31  Bruno Haible  <bruno@clisp.org>
17422
17423         iconv: Work around AIX 6.1..7.1 bug.
17424         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17425         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17426         cross-compiling, guess no on all versions of AIX.
17427         Reported by Rainer Tammer.
17428
17429 2010-07-31  Bruno Haible  <bruno@clisp.org>
17430
17431         readlink: Relax test a bit.
17432         * tests/test-readlink.h (test_readlink): Allow different errno value
17433         when readlink is called with a file name that ends in / and refers to
17434         a file.
17435         Suggested by Eric Blake.
17436         Reported by Rainer Tammer.
17437
17438 2010-07-31  Bruno Haible  <bruno@clisp.org>
17439
17440         copysign: Does not require -lm on glibc systems.
17441         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17442         gl_COMMON_DOUBLE_MATHFUNC.
17443         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17444
17445 2010-07-31  Bruno Haible  <bruno@clisp.org>
17446
17447         duplocale: Work around AIX 7.1 bug.
17448         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17449         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17450         * lib/duplocale.c (rpl_duplocale): Update comment.
17451         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17452         Reported by Rainer Tammer.
17453
17454 2010-07-30  Bruno Haible  <bruno@clisp.org>
17455
17456         dirfd: Avoid link error on AIX 7.1.
17457         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17458         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17459         exist, set REPLACE_DIRFD.
17460         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17461         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17462         * doc/posix-functions/dirfd.texi: Update.
17463         Reported by Rainer Tammer.
17464
17465 2010-07-30  Eric Blake  <eblake@redhat.com>
17466
17467         strtod: next round of AIX fixes
17468         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17469         exponent.
17470         * tests/test-strtod.c (main): Enhance tests.
17471         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17472         Reported by Rainer Tammer.
17473
17474         futimens: fix configure check
17475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17476         Reported by Bruno Haible.
17477
17478 2010-07-30  Bruno Haible  <bruno@clisp.org>
17479
17480         getline: Update regarding AIX.
17481         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17482         Reported by Rainer Tammer.
17483
17484 2010-07-30  Bruno Haible  <bruno@clisp.org>
17485
17486         wcwidth: Drop replacement on AIX 7.
17487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17488         AIX 7.
17489         Reported by Rainer Tammer.
17490
17491 2010-07-30  Bruno Haible  <bruno@clisp.org>
17492
17493         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17495         a 'char *'.
17496         Reported by Rainer Tammer.
17497
17498 2010-07-30  Bruno Haible  <bruno@clisp.org>
17499
17500         unlink: Update regarding AIX.
17501         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17502         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17503         Reported by Rainer Tammer.
17504
17505 2010-07-30  Bruno Haible  <bruno@clisp.org>
17506
17507         symlink: Update regarding AIX.
17508         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17509         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17510         Reported by Rainer Tammer.
17511
17512 2010-07-30  Bruno Haible  <bruno@clisp.org>
17513
17514         strndup: Update regarding AIX.
17515         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17516         AIX 7.
17517         Reported by Rainer Tammer.
17518
17519 2010-07-30  Bruno Haible  <bruno@clisp.org>
17520
17521         stat: Update regarding AIX.
17522         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17523         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17524         Reported by Rainer Tammer.
17525
17526 2010-07-30  Bruno Haible  <bruno@clisp.org>
17527
17528         truncl: Fix autoconf test.
17529         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17530         whether truncl works.
17531         Reported by Rainer Tammer.
17532
17533 2010-07-30  Bruno Haible  <bruno@clisp.org>
17534
17535         round: Update regarding AIX.
17536         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17537         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17538         Reported by Rainer Tammer.
17539
17540 2010-07-30  Bruno Haible  <bruno@clisp.org>
17541
17542         rename: Update regarding AIX.
17543         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17544         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17545         Reported by Rainer Tammer.
17546
17547 2010-07-30  Bruno Haible  <bruno@clisp.org>
17548
17549         printf.m4: Update regarding AIX.
17550         * m4/printf.m4: Update comments regarding AIX.
17551         Reported by Rainer Tammer.
17552
17553 2010-07-30  Bruno Haible  <bruno@clisp.org>
17554
17555         iconv: Update regarding AIX.
17556         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17557         AIX 7.
17558         Reported by Rainer Tammer.
17559
17560 2010-07-30  Bruno Haible  <bruno@clisp.org>
17561
17562         getopt: Update regarding AIX.
17563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17564         no on AIX.
17565         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17566         Reported by Rainer Tammer.
17567
17568 2010-07-30  Bruno Haible  <bruno@clisp.org>
17569
17570         ldexpl; Update regarding AIX.
17571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17572         on AIX 7.
17573         Reported by Rainer Tammer.
17574
17575 2010-07-30  Bruno Haible  <bruno@clisp.org>
17576
17577         frexpl: Update regarding AIX.
17578         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17579         on AIX 7.
17580         Reported by Rainer Tammer.
17581
17582 2010-07-30  Bruno Haible  <bruno@clisp.org>
17583
17584         open, fopen: Update regarding AIX.
17585         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17586         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17587         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17588         * doc/posix-functions/fopen.texi: Likewise.
17589         Reported by Rainer Tammer.
17590
17591 2010-07-30  Bruno Haible  <bruno@clisp.org>
17592
17593         chown: Update doc regarding AIX.
17594         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17595         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17596         Reported by Rainer Tammer.
17597
17598 2010-07-30  Eric Blake  <eblake@redhat.com>
17599
17600         strtod: fix bug in replacement function on AIX
17601         * lib/strtod.c (strtod): Special case broken "0x" parse in
17602         underlying strtod.
17603         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17604         * doc/posix-functions/strtod.texi (strtod): Likewise.
17605         Reported by Rainer Tammer.
17606
17607 2010-07-30  Bruno Haible  <bruno@clisp.org>
17608
17609         mbrlen: Fix cross-compilation guess for AIX.
17610         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17611         guess. Leftover from 2008-12-22.
17612
17613 2010-07-30  Bruno Haible  <bruno@clisp.org>
17614
17615         mbrtowc: Fix cross-compilation guess for AIX.
17616         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17617         guess. Leftover from 2008-12-21.
17618
17619 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17620
17621         init.sh: work around trap limitation of some shells
17622         * tests/init.sh (setup_): Move exit trap outside of shell function.
17623
17624 2010-07-29  Eric Blake  <eblake@redhat.com>
17625
17626         strtod: aid debugging
17627         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17628         understanding why strtod is rejected.
17629
17630 2010-07-28  Bruno Haible  <bruno@clisp.org>
17631
17632         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17633         * lib/unistr/u8-chr.c: Include <string.h>.
17634         * tests/unistr/test-u8-chr.c: Likewise.
17635         * tests/unistr/test-u16-chr.c: Likewise.
17636         * tests/unistr/test-u32-chr.c: Likewise.
17637         * tests/unistr/test-u8-strchr.c: Likewise.
17638         * tests/unistr/test-u16-strchr.c: Likewise.
17639         * tests/unistr/test-u32-strchr.c: Likewise.
17640         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17641         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17642         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17643         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17644
17645 2010-07-28  Bruno Haible  <bruno@clisp.org>
17646
17647         Use spaces for indentation, not tabs.
17648         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17649
17650 2010-07-27  Bruno Haible  <bruno@clisp.org>
17651
17652         mbspcasecmp: Fix function specification.
17653         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17654         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17655         Reported by Eric Blake <eblake@redhat.com>.
17656
17657 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17658
17659         timespec: use cast and not conditional, as truncation isn't possible
17660         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17661         instead of a conditional.  Comment about the situation in more detail.
17662         This undoes most of the 2009-10-29 patch.
17663
17664 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17665
17666         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17667         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17668         * lib/unistr/u8-strchr.c: Likewise.
17669         * modules/unistr/u8-chr: Depend on memchr.
17670
17671         unistr/u*-strchr: add tests
17672         * modules/unistr/u8-strchr-tests: New file.
17673         * modules/unistr/u16-strchr-tests: New file.
17674         * modules/unistr/u32-strchr-tests: New file.
17675         * tests/unistr/test-strchr.h: New file.
17676         * tests/unistr/test-u8-strchr.c: New file.
17677         * tests/unistr/test-u16-strchr.c: New file.
17678         * tests/unistr/test-u32-strchr.c: New file.
17679
17680         unistr/u*-chr: test multibyte sequences more
17681         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17682         test vector.
17683         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17684         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17685         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17686
17687         unistr/u*-chr: test multibyte sequences
17688         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17689
17690         unistr/u*-chr: prepare for multibyte tests
17691         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17692         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17693         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17694         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17695         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17696         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17697
17698 2010-07-18  Bruno Haible  <bruno@clisp.org>
17699
17700         unistr/u8-strchr: Optimize non-ASCII argument case.
17701         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17702         because the first byte often matches anyway.
17703         Reported by Pádraig Brady <P@draigbrady.com>.
17704
17705 2010-07-15  Karl Berry  <karl@gnu.org>
17706
17707         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17708
17709 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17710
17711         getcwd: on Solaris, work better if ancestors are inaccessible
17712         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17713         buffer and size, try again with a large buffer.  This works better
17714         on Solaris, since its getcwd succeeds even if the path to the root
17715         is inaccessible, and this is helpful in common cases such as .zfs
17716         hidden directories.  Problem reported by J Chapman Flack in
17717         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17718         Use system getcwd if it's declared, not merely if it's partly
17719         working; use the partly-working test only to avoid needless effort
17720         if the system getcwd fails.
17721         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17722         comment that was already obsolete and is now even more obsolete.
17723         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17724         now might call strdup.
17725
17726 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17727
17728         pthread: Add enough so that coreutils/src/sort.c compiles.
17729         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17730         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17731         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17732         Include <sys/types.h>, in case it defines pthread_t.
17733         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17734         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17735         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17736         (pthread_rwlockattr_t, pthread_spinlock_t):
17737         New typedefs, if HAVE_PTHREAD_T is not defined.
17738         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17739         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17740         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17741         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17742         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17743         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17744         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17745         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17746         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17747         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17748         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17749         New macros.
17750         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17751         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17752         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17753         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17754         (pthread_spin_unlock): New dummy functions.
17755         (pthread_create): Return EAGAIN; don't set errno.
17756         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17757         require AC_C_INLINE.
17758         * modules/pthread (Depends-on): Add sched, time.
17759         (pthread.h): Use AM_V_GEN.
17760
17761 2010-07-13  Bruno Haible  <bruno@clisp.org>
17762
17763         striconveh: Don't malloc memory if the result buffer is sufficient.
17764         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17765         buffer if its size is sufficient.
17766         Reported by Ludovic Courtès <ludo@gnu.org>.
17767
17768 2010-07-13  Bruno Haible  <bruno@clisp.org>
17769
17770         strtod: Add safety check.
17771         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17772
17773 2010-07-12  Bruno Haible  <bruno@clisp.org>
17774
17775         Unify tests that set gl_cv_func_ldexpl_no_libm.
17776         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17777         gl_FUNC_LDEXPL.
17778         (gl_FUNC_LDEXPL): Invoke it.
17779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17780
17781 2010-07-12  Bruno Haible  <bruno@clisp.org>
17782
17783         Unify tests that set gl_cv_func_ldexp_no_libm.
17784         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17785         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17786         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17787         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17788         * modules/strtod (Files): Add m4/ldexp.m4.
17789
17790 2010-07-12  Bruno Haible  <bruno@clisp.org>
17791
17792         Unify tests that set gl_cv_func_frexpl_no_libm.
17793         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17794         gl_FUNC_FREXPL_NO_LIBM.
17795         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17796         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17797
17798 2010-07-12  Bruno Haible  <bruno@clisp.org>
17799
17800         Unify tests that set gl_cv_func_frexp_no_libm.
17801         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17802         gl_FUNC_FREXP_NO_LIBM.
17803         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17804         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17805
17806 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17807
17808         memcoll: clarify sizes versus lengths, document better, and tweak perf
17809         * lib/memcoll.c (strcoll_loop, memcoll0):
17810         Improve quality of descriptive comments.  Name variables
17811         consistently as to whether they are lengths (which do not include
17812         terminating null) versus sizes (which do).
17813         * lib/xmemcoll.c (xmemcoll0): Likewise.
17814         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17815         returned when s1size == 0; this is easier to compile and saves
17816         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17817
17818 2010-07-12  Bruno Haible  <bruno@clisp.org>
17819
17820         Tests for module '_Exit'.
17821         * modules/_Exit-tests: New file.
17822         * tests/test-_Exit.sh: New file.
17823         * tests/test-_Exit.c: New file.
17824
17825         New module '_Exit'.
17826         * lib/stdlib.in.h (__attribute__): New macro.
17827         (_Exit): New declaration.
17828         * lib/_Exit.c: New file.
17829         * m4/_Exit.m4: New file.
17830         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17831         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17832         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17833         * modules/_Exit: New file.
17834         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17835         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17836
17837 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17838
17839         strtod: make it more-accurate typically, and don't require libm
17840         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17841         Include limits.h.  Don't include string.h.
17842         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17843         (locale_isspace): New function, so that no casts are needed to
17844         check whether *s is a space.
17845         (ldexp): Provide an unused dummy if not available.
17846         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17847         (strtod): Use them.  This implementation prefers to use the
17848         underlying strtod if available, falling back on our own code
17849         only to fix known bugs.  This is more likely to produce an
17850         accurate result.  Also, it avoids the use of libm functions.
17851         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17852         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17853         was absent, but it caused a test failure with coreutils.
17854         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17855         with libm.
17856         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17857         * modules/strtod-tests (Makefile.am): Likewise.
17858
17859 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17860             Bruno Haible  <bruno@clisp.org>
17861
17862         unistr/u8-strchr: Optimize ASCII argument case.
17863         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17864
17865 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17866
17867         (x)memcoll: minor tweaks
17868         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17869         is after the type that it qualifies.
17870         (memcoll0): Likewise.
17871         * lib/memcoll.h (memcoll0): Likewise.
17872         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17873         * lib/xmemcoll.h (xmemcoll0): Likewise.
17874         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17875         differs from memcoll in that the NUL byte is part of the argument.
17876         Omit the abort-checks, as performance is a real issue here.  Plus,
17877         the checks were wrong anyway (an off-by-one error).  Omit local
17878         variable 'diff', as it's a bit clearer that way.
17879         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17880         no longer needed.
17881
17882 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17883
17884         (x)memcoll: speedup when input is known to be NUL delimited
17885         * lib/memcoll.c: Include stdlib.
17886         (memcoll0): New function.
17887         (strcoll_loop): New function, refactored for use in both memcoll
17888         and memcoll0.
17889         * lib/memcoll.h (memcoll0): Add prototype.
17890         * lib/xmemcoll.c (xmemcoll0): New function.
17891         (collate_error): New function, refactored for use in both xmemcoll
17892         and xmemcoll0.
17893         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17894         * m4/memcoll.m4: add inline invocation.
17895
17896 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17897
17898         * build-aux/bootstrap: Remove any local translations
17899         from the translation project synchronization directory,
17900         so that local only translations are not distributed.
17901
17902 2010-07-04  Bruno Haible  <bruno@clisp.org>
17903
17904         fsusage: Clarify which code applies to which platforms.
17905         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17906         platform.
17907         * lib/fsusage.c (get_fs_usage): Likewise.
17908
17909 2010-07-04  Bruno Haible  <bruno@clisp.org>
17910
17911         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17912         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17913         Reported by Martin Lambers <marlam@marlam.de>.
17914
17915 2010-07-04  Jim Meyering  <meyering@redhat.com>
17916
17917         hash: once again explicitly disallow insertion of NULL
17918         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17919         inserting a NULL pointer cannot work with these functions.
17920         Add a comment with details.
17921         This reverts part of the 2010-07-01 commit, 5bef1a35
17922         "hash: extend module to deal with non-pointer keys".
17923
17924 2010-07-01  Bruno Haible  <bruno@clisp.org>
17925
17926         stdbool: Update doc.
17927         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17928         Info from Christian Weisgerber <naddy@mips.inka.de>.
17929
17930 2010-07-01  Jim Meyering  <meyering@redhat.com>
17931
17932         hash: extend module to deal with non-pointer keys
17933         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17934         but that allows insertion of non-pointer entries.
17935         Do not disallow an ENTRY value of NULL.
17936         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17937         * lib/hash.h (hash_insert0): Declare.
17938
17939 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17940
17941         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17942         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17943         not present (i.e. with autoconf 2.59 and when using gettextize, not
17944         gnulib), require AC_GNU_SOURCE instead.
17945
17946 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17947
17948         idpriv-drop: Fix tests.
17949         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17950         not to the test-idpriv-droptemp program.
17951
17952 2010-06-29  Bruno Haible  <bruno@clisp.org>
17953
17954         string: Fix syntax error with g++ 2.96.
17955         * lib/string.in.h (__pure__): Remove definition.
17956         (_GL_ATTRIBUTE_PURE): New macro.
17957         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17958         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17959         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17960
17961 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17962
17963         unitypes: Fix bug introduced on 2010-05-18.
17964         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17965
17966 2010-06-22  Eric Blake  <eblake@redhat.com>
17967
17968         memmem: slight optimization
17969         * lib/str-two-way.h (critical_factorization): Update comments.
17970         Reduce work during factorization phase.
17971         Reported by Carlos Bueno <carlos@bueno.org>.
17972
17973 2010-06-21  Bruno Haible  <bruno@clisp.org>
17974
17975         Fix HAVE_CALLOC_POSIX misnomer.
17976         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17977         !HAVE_CALLOC_POSIX.
17978         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17979         HAVE_CALLOC_POSIX.
17980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17981         instead of HAVE_CALLOC_POSIX.
17982         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17983         HAVE_CALLOC_POSIX.
17984
17985         Use modern idiom for calloc() replacement.
17986         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17987         AC_FUNC_CALLOC.
17988         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17989         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17990         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17991         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17992         (gl_REPLACE_CALLOC): New macro.
17993
17994 2010-06-21  Bruno Haible  <bruno@clisp.org>
17995
17996         Fix HAVE_REALLOC_POSIX misnomer.
17997         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17998         !HAVE_REALLOC_POSIX.
17999         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18000         HAVE_REALLOC_POSIX.
18001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18002         instead of HAVE_REALLOC_POSIX.
18003         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18004         HAVE_REALLOC_POSIX.
18005
18006         Use modern idiom for realloc() replacement.
18007         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18008         AC_FUNC_REALLOC.
18009         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18010         Autoconf's AC_FUNC_REALLOC.
18011         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18012         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18013         (gl_REPLACE_REALLOC): New macro.
18014         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18015
18016 2010-06-21  Bruno Haible  <bruno@clisp.org>
18017
18018         Fix HAVE_MALLOC_POSIX misnomer.
18019         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18020         !HAVE_MALLOC_POSIX.
18021         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18022         HAVE_MALLOC_POSIX.
18023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18024         instead of HAVE_MALLOC_POSIX.
18025         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18026         HAVE_MALLOC_POSIX.
18027
18028         Use modern idiom for malloc() replacement.
18029         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18030         AC_FUNC_MALLOC.
18031         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18032         Autoconf's AC_FUNC_MALLOC.
18033         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18034         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18035         (gl_REPLACE_MALLOC): New macro.
18036         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18037
18038 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18039
18040         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18041         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18042         This macro takes 3 arguments, not 4.
18043
18044 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18045
18046         ipv6: fix detection under mingw
18047         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18048         in6_addr.
18049
18050 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18051
18052         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18053         that strtod() works when cross-compiling to a glibc version known
18054         to work.
18055
18056 2010-06-15  Bruno Haible  <bruno@clisp.org>
18057
18058         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18059
18060 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18061
18062         select: Correct timeout.
18063         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18064
18065 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18066
18067         git-version-gen: init shell var to avoid env var influence
18068         * build-aux/git-version-gen (v): Init shell var to empty.
18069
18070 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18071
18072         priv-set: Don't assume that priv.h exists merely because getppriv does.
18073         See Jan Andersen's bug report about AIX 5L in
18074         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18075         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18076         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18077         * lib/priv-set.h: Likewise.
18078         * tests/test-priv-set.c: Likewise.
18079
18080 2010-06-13  Bruno Haible  <bruno@clisp.org>
18081
18082         relocatable: Make it easier to test whether to install wrappers.
18083         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18084         RELOCATABLE_VIA_WRAPPER.
18085
18086 2010-06-13  Bruno Haible  <bruno@clisp.org>
18087
18088         gnulib-tool: Display specified modules and dependencies differently.
18089         * gnulib-tool (func_show_module_list): New function.
18090         (func_import, func_create_testdir): Invoke it.
18091         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18092
18093 2010-06-13  Bruno Haible  <bruno@clisp.org>
18094
18095         gnulib-tool: Align code of func_import and func_create_testdir.
18096         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18097         specified_modules.
18098
18099 2010-06-12  Jim Meyering  <meyering@redhat.com>
18100
18101         test-inttostr: avoid spurious failure on Solaris 9
18102         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18103         to accept "%ju".  Reported by Bruno Haible.
18104
18105 2010-06-11  Jim Meyering  <meyering@redhat.com>
18106
18107         test-sys_socket: mark variables as used more readably
18108         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18109         as "used" explicitly via (void) statement casts.  This is more
18110         readable than using them in an artificial return expression.
18111         Suggestion from Bruno Haible.
18112
18113 2010-06-11  Bruno Haible  <bruno@clisp.org>
18114
18115         Avoid some more warnings from "gcc -Wwrite-strings".
18116         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18117         to 'const char *'.
18118         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18119         * tests/test-c-strcasestr.c (main): Likewise.
18120         * tests/test-mbscasestr1.c (main): Likewise.
18121         * tests/test-mbscasestr2.c (main): Likewise.
18122         * tests/test-memmem.c (main): Likewise.
18123         * tests/test-strstr.c (main): Likewise.
18124         * tests/test-strcasestr.c (main): Likewise.
18125
18126 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18127
18128         init.sh: change framework_failure_ to fail with status 99, not 1
18129         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18130         automake's parallel-tests rule that this is an unexpected failure,
18131         even if the test is listed in XFAIL_TESTS.
18132
18133 2010-06-11  Jim Meyering  <meyering@redhat.com>
18134
18135         test-inttostr: avoid warnings about 4-6KB literal strings
18136         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18137         Include "macros.h", for its definition of ASSERT.
18138         (CK): s/assert/ASSERT/
18139         * modules/inttostr-tests (Files): Add macros.h.
18140
18141         init.sh: don't use $ME_ or skip_ before they are defined
18142         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18143         their first uses.  Also hoist their companions: warn_, fail_,
18144         framework_failure_, $stderr_fileno.  Prompted by a patch from
18145         Stefano Lattarini.
18146
18147         test-sys_socket: avoid set-but-not-used warnings from gcc
18148         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18149         avoid warning about set-but-not-used variables.
18150
18151         test-xvasprintf: avoid 'const' discard warnings
18152         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18153         "const" when assigning from literal strings.
18154         (test_xasprintf): Add "void" in function argument list to placate
18155         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18156
18157         tests: avoid compilation warnings in argmatch and exclude tests...
18158         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18159         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18160         Since it always exits, declare with the "noreturn" attribute.
18161         * tests/test-argmatch.c: Likewise.
18162
18163         tests: avoid 'const' discard warnings in mbsstr tests
18164         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18165         * tests/test-mbsstr2.c (main): Likewise.
18166
18167         test-verify: avoid warning from gcc's -Wmissing-declarations
18168         * tests/test-verify.c (function): Declare to be static.
18169
18170         test-inttostr.c: include <string.h> for use of strcmp
18171         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18172
18173         test-linkat: avoid failed assertion on "other" architectures
18174         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18175         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18176         sparc: https://bugs.launchpad.net/bugs/591968
18177
18178 2010-06-11  Jim Meyering  <meyering@redhat.com>
18179
18180         printf.m4: avoid autoconf's "Expanded Before Required" warning
18181         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18182         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18183         autoconf warning.
18184
18185 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18186
18187         Replacement header templates are now named with ".in", not "_".
18188         * doc/gnulib-intro.texi: Correct.
18189
18190 2010-06-10  Jim Meyering  <meyering@redhat.com>
18191
18192         inttostr-tests: depend on snprintf, not snprintf-posix
18193         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18194         snprintf-posix, to avoid this aclocal failure:
18195           missing file gnulib-tests/vasnprintf.c
18196           configure.ac:45: error: expected source file, required through \
18197           AC_LIBSOURCES, not found
18198
18199 2010-06-10  Jim Meyering  <meyering@redhat.com>
18200
18201         inttostr: add a new function, inttostr, and tests
18202         The namesake function was not available.  The existence of the
18203         template file, inttostr.c makes its addition nontrivial.
18204         * lib/anytostr.c: Rename from inttostr.c.
18205         (anytostr): Rename from inttostr.
18206         * lib/inttostr.c: New file.
18207         * modules/inttostr (Files): Add anytostr.c.
18208         (Makefile.am): Set lib_SOURCES instead of ...
18209         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18210         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18211         * lib/offtostr.c: Likewise.
18212         * lib/uinttostr.c: Likewise.
18213         * lib/umaxtostr.c: Likewise.
18214         * modules/inttostr-tests: New file.
18215         * tests/test-inttostr.c: New file.  Test these functions.
18216
18217 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18218             Bruno Haible  <bruno@clisp.org>
18219
18220         Add "Extending Gnulib" chapter to manual.
18221         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18222         chapter.
18223         (Extending Gnulib): New chapter.
18224         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18225         chapter.
18226
18227 2010-06-09  Bruno Haible  <bruno@clisp.org>
18228
18229         Avoid relocwrapper link errors due to gnulib replacement functions.
18230         * lib/areadlink.c: Use the system's malloc, realloc functions.
18231         (areadlink): Set errno to ENOMEM explicitly.
18232         * modules/areadlink (Depends-on): Remove malloc-posix.
18233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18234
18235 2010-06-09  Bruno Haible  <bruno@clisp.org>
18236
18237         Avoid relocwrapper link errors due to gnulib replacement functions.
18238         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18239         * lib/malloca.c: Likewise.
18240         * lib/relocatable.c: Likewise.
18241         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18242         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18243         * lib/setenv.c: Use the system's malloc, realloc functions.
18244         * lib/strerror.c: Use the system's sprintf function.
18245         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18246
18247 2010-06-04  Bruno Haible  <bruno@clisp.org>
18248
18249         Prefer documented low-level autoconf macro names.
18250         * m4/lib-link.m4: Use m4_translit instead of translit.
18251         * m4/environ.m4: Likewise.
18252         * m4/mathfunc.m4: Likewise.
18253         * m4/onceonly.m4: Likewise.
18254         * m4/stdint.m4: Likewise.
18255         Suggested by Eric Blake.
18256
18257 2010-06-04  Martin Lambers  <marlam@marlam.de>
18258             Bruno Haible  <bruno@clisp.org>
18259
18260         havelib: Allow library names with '+' characters.
18261         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18262         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18263
18264 2010-06-09  Bruno Haible  <bruno@clisp.org>
18265
18266         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18267         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18268         realloc failed.
18269
18270 2010-06-08  Peter Simons  <simons@cryp.to>
18271
18272         maint.mk: make the news-check rule more configurable
18273         * top/maint.mk (news-check-lines-spec): New variable.
18274         (news-check): Use "sed -n 1,10p" in place of "head".
18275
18276 2010-06-07  Jim Meyering  <meyering@redhat.com>
18277
18278         do-release-commit-and-tag: fix typo in --help
18279         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18280
18281         regex: avoid new dead-code warning with gcc-4.6.0
18282         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18283         if-block containing a while-loop.  It's been unused for at least
18284         5 years.
18285
18286 2010-06-05  Bruno Haible  <bruno@clisp.org>
18287
18288         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18289         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18290
18291 2010-06-04  Bruno Haible  <bruno@clisp.org>
18292
18293         Update to GNU gettext 0.18.1.
18294         * modules/gettext (configure.ac): Require gettext infrastructure from
18295         version 0.18.1.
18296
18297 2010-06-03  Bruno Haible  <bruno@clisp.org>
18298
18299         Don't use AC_LIBOBJ with file names in subdirectories.
18300         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18301         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18302         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18303         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18304         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18305         gl_LIBUNISTRING_LIBSOURCE.
18306         (Makefile.am): Augment lib_SOURCES here, conditionally.
18307         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18308
18309 2010-06-03  Bruno Haible  <bruno@clisp.org>
18310
18311         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18312         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18313         expansion does not end with a newline.
18314         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18315         unnecessary newline.
18316
18317 2010-06-03  Bruno Haible  <bruno@clisp.org>
18318
18319         Reduce dependencies.
18320         * tests/test-quotearg.h: New file, extracted from
18321         tests/test-quotearg.c.
18322         * tests/test-quotearg-simple.c: New file, extracted from
18323         tests/test-quotearg.c.
18324         * tests/test-quotearg.c: Don't include <ctype.h>.
18325         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18326         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18327         use_quote_double_quotes, use_quotearg_colon): Moved to
18328         tests/test-quotearg.h.
18329         (results_g, flag_results, custom_quotes, custom_results): Moved
18330         to tests/test-quotearg-simple.c.
18331         (main): Moved the part that does not depend on gettext to
18332         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18333         performed.
18334         * modules/quotearg-simple: New file.
18335         * modules/quotearg-simple-tests: New file.
18336         * modules/quotearg (Depends-on): Add quotearg-simple.
18337         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18338         (Files): Add tests/test-quotearg.h.
18339         Reported by Paolo Bonzini.
18340
18341 2010-06-03  Bruno Haible  <bruno@clisp.org>
18342
18343         Reduce dependencies.
18344         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18345
18346 2010-06-03  Bruno Haible  <bruno@clisp.org>
18347
18348         time: Undefine more broken macros.
18349         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18350         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18351         Reported by Eric Blake.
18352
18353 2010-06-03  Bruno Haible  <bruno@clisp.org>
18354
18355         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18356         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18357         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18358         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18359         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18360         Reported by Ludovic Courtès <ludo@gnu.org>.
18361
18362 2010-06-02  Eric Blake  <eblake@redhat.com>
18363
18364         time: work with mingw + pthreads-win32 library
18365         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18366         if timespec is defined only in pthread.h.
18367         * modules/time (Makefile.am): Substitute it.
18368         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18369         <pthread.h>, when needed.
18370         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18371         from the library.
18372
18373 2010-05-31  Bruno Haible  <bruno@clisp.org>
18374
18375         Avoid expanding two macros in the wrong order.
18376         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18377         gl_LIBUNISTRING if it is defined.
18378         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18379         autoconf >= 2.64.
18380         Reported by Ludovic Courtès <ludo@gnu.org>.
18381
18382 2010-05-27  Jim Meyering  <meyering@redhat.com>
18383
18384         maint.mk: also prohibit "#undef" of always-defined symbols
18385         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18386         Allow more than one space before the symbol name.
18387         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18388         the regexp uses alternation.
18389
18390 2010-05-26  Eric Blake  <eblake@redhat.com>
18391
18392         maint.mk: avoid echo -e
18393         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18394         Convert all uses of echo -* to printf.
18395         Reported by Matthias Bolte.
18396
18397 2010-05-25  Bruno Haible  <bruno@clisp.org>
18398
18399         Update to GNU gettext 0.18, part 2.
18400         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18401         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18402
18403 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18404
18405         Add missing include in test-pwrite.c.
18406         * tests/test-pwrite.c: Include string.h, for strcmp.
18407
18408 2010-05-24  Bruno Haible  <bruno@clisp.org>
18409
18410         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18411
18412 2010-05-24  Bruno Haible  <bruno@clisp.org>
18413
18414         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18415         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18416         iconveh_error argument.
18417         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18418         U_STRCONV_TO_LOCALE.
18419         * lib/unistr/u16-strcoll.c: Likewise.
18420         * lib/unistr/u32-strcoll.c: Likewise.
18421         * modules/unistr/u8-strcoll (Depends-on): Add
18422         uniconv/u8-strconv-to-enc, localcharset. Remove
18423         uniconv/u8-strconv-to-locale.
18424         (configure.ac): Bump version number.
18425         * modules/unistr/u16-strcoll (Depends-on): Add
18426         uniconv/u16-strconv-to-enc, localcharset. Remove
18427         uniconv/u16-strconv-to-locale.
18428         (configure.ac): Bump version number.
18429         * modules/unistr/u32-strcoll (Depends-on): Add
18430         uniconv/u32-strconv-to-enc, localcharset. Remove
18431         uniconv/u32-strconv-to-locale.
18432         (configure.ac): Bump version number.
18433
18434 2010-05-24  Bruno Haible  <bruno@clisp.org>
18435
18436         Avoid a test failure on NetBSD 5.0.
18437         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18438         an iconv() bug.
18439
18440 2010-05-24  Bruno Haible  <bruno@clisp.org>
18441
18442         Adjust #include directive style.
18443         * modules/regex (Includes): Recommend to write <regex.h>.
18444
18445 2010-05-24  Bruno Haible  <bruno@clisp.org>
18446
18447         regex: Don't require alloca.
18448         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18449         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18450         only inside if (0).
18451
18452 2010-05-23  Jim Meyering  <meyering@redhat.com>
18453
18454         test-renameat.c: include <sys/stat.h>
18455         * tests/test-renameat.c: Include <sys/stat.h>; required for
18456         definition of S_IS* macros.
18457
18458 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18459
18460         Update maintainer documentation for 'relocatable-prog' module.
18461         * doc/relocatable-maint.texi: Update.
18462         Comments by Bruno Haible.
18463
18464 2010-05-23  Bruno Haible  <bruno@clisp.org>
18465
18466         git-merge-changelog: Enable --split-merged-entry by default.
18467         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18468         (usage): Don't mention this option any more.
18469         Reported by Ralf Wildenhues.
18470
18471 2010-05-23  Jim Meyering  <meyering@redhat.com>
18472
18473         test-pwrite: do not leave behind a test file named "out"
18474         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18475         The trivial-looking use of init.sh is really necessary.
18476         It ensures that the temporary file, "out", is created in
18477         a temporary directory, and removed upon termination.
18478         * tests/test-pwrite.sh: Re-add file.
18479         * modules/pwrite-tests: Reference it.
18480
18481 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18482
18483         Fix output redirection buglet in init.sh.
18484         * tests/init.sh: Fix redirection of stderr.
18485
18486 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18487
18488         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18489
18490 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18491
18492         * modules/valgrind-tests: New file.
18493         * m4/valgrind-tests.m4: New file.
18494         * doc/valgrind-tests.texi: New file.
18495         * doc/gnulib.texi (Running self-tests under valgrind): New
18496         section.
18497
18498 2010-05-19  Bruno Haible  <bruno@clisp.org>
18499
18500         Clean up dead code in recent commit.
18501         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18502         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18503         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18504         Suggested by Paolo Bonzini.
18505
18506 2010-05-19  Bruno Haible  <bruno@clisp.org>
18507
18508         Avoid valgrind error reports from libunistring.
18509         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18510         * modules/libunistring (Files): Add it.
18511         * modules/libunistring-optional (Files): Likewise.
18512
18513 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18514             Bruno Haible  <bruno@clisp.org>
18515
18516         New module 'libunistring-optional'.
18517         * modules/libunistring-optional: New file.
18518         * m4/libunistring-base.m4: New file.
18519         * m4/libunistring-optional.m4: New file.
18520         * lib/unicase.in.h: Renamed from lib/unicase.h.
18521         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18522         * lib/unictype.in.h: Renamed from lib/unictype.h.
18523         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18524         * lib/uniname.in.h: Renamed from lib/uniname.h.
18525         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18526         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18527         * lib/unistr.in.h: Renamed from lib/unistr.h.
18528         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18529         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18530         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18531         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18532         gl_LIBUNISTRING. If the library was found, determine the installed
18533         version and set LIBUNISTRING_VERSION.
18534         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18535         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18536         handle a configuration option --with-included-libunistring.
18537         * modules/libunistring (Files): Add m4/absolute-header.m4.
18538         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18539         Add m4/libunistring-base.m4.
18540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18541         (Makefile.am): Build unicase.h from unicase.in.h.
18542         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18543         Add m4/libunistring-base.m4.
18544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18545         (Makefile.am): Build uniconv.h from uniconv.in.h.
18546         * modules/unictype/base (Files): Use unictype.in.h instead of
18547         unictype.h. Add m4/libunistring-base.m4.
18548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18549         (Makefile.am): Build unictype.h from unictype.in.h.
18550         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18551         Add m4/libunistring-base.m4.
18552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18553         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18554         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18555         Add m4/libunistring-base.m4.
18556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18557         (Makefile.am): Build uniname.h from uniname.in.h.
18558         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18559         Add m4/libunistring-base.m4.
18560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18561         (Makefile.am): Build uninorm.h from uninorm.in.h.
18562         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18563         unistdio.h. Add m4/libunistring-base.m4.
18564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18565         (Makefile.am): Build unistdio.h from unistdio.in.h.
18566         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18567         Add m4/libunistring-base.m4.
18568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18569         (Makefile.am): Build unistr.h from unistr.in.h.
18570         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18571         Add m4/libunistring-base.m4.
18572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18573         (Makefile.am): Build unitypes.h from unitypes.in.h.
18574         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18575         Add m4/libunistring-base.m4.
18576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18577         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18578         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18579         uniwidth.h. Add m4/libunistring-base.m4.
18580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18581         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18582         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18583         instead of augmenting lib_SOURCES.
18584         * modules/unicase/empty-suffix-context: Likewise.
18585         * modules/unicase/locale-language: Likewise.
18586         * modules/unicase/tolower: Likewise.
18587         * modules/unicase/totitle: Likewise.
18588         * modules/unicase/toupper: Likewise.
18589         * modules/unicase/u8-casecmp: Likewise.
18590         * modules/unicase/u8-casecoll: Likewise.
18591         * modules/unicase/u8-casefold: Likewise.
18592         * modules/unicase/u8-casexfrm: Likewise.
18593         * modules/unicase/u8-ct-casefold: Likewise.
18594         * modules/unicase/u8-ct-tolower: Likewise.
18595         * modules/unicase/u8-ct-totitle: Likewise.
18596         * modules/unicase/u8-ct-toupper: Likewise.
18597         * modules/unicase/u8-is-cased: Likewise.
18598         * modules/unicase/u8-is-casefolded: Likewise.
18599         * modules/unicase/u8-is-lowercase: Likewise.
18600         * modules/unicase/u8-is-titlecase: Likewise.
18601         * modules/unicase/u8-is-uppercase: Likewise.
18602         * modules/unicase/u8-prefix-context: Likewise.
18603         * modules/unicase/u8-suffix-context: Likewise.
18604         * modules/unicase/u8-tolower: Likewise.
18605         * modules/unicase/u8-totitle: Likewise.
18606         * modules/unicase/u8-toupper: Likewise.
18607         * modules/unicase/u16-casecmp: Likewise.
18608         * modules/unicase/u16-casecoll: Likewise.
18609         * modules/unicase/u16-casefold: Likewise.
18610         * modules/unicase/u16-casexfrm: Likewise.
18611         * modules/unicase/u16-ct-casefold: Likewise.
18612         * modules/unicase/u16-ct-tolower: Likewise.
18613         * modules/unicase/u16-ct-totitle: Likewise.
18614         * modules/unicase/u16-ct-toupper: Likewise.
18615         * modules/unicase/u16-is-cased: Likewise.
18616         * modules/unicase/u16-is-casefolded: Likewise.
18617         * modules/unicase/u16-is-lowercase: Likewise.
18618         * modules/unicase/u16-is-titlecase: Likewise.
18619         * modules/unicase/u16-is-uppercase: Likewise.
18620         * modules/unicase/u16-prefix-context: Likewise.
18621         * modules/unicase/u16-suffix-context: Likewise.
18622         * modules/unicase/u16-tolower: Likewise.
18623         * modules/unicase/u16-totitle: Likewise.
18624         * modules/unicase/u16-toupper: Likewise.
18625         * modules/unicase/u32-casecmp: Likewise.
18626         * modules/unicase/u32-casecoll: Likewise.
18627         * modules/unicase/u32-casefold: Likewise.
18628         * modules/unicase/u32-casexfrm: Likewise.
18629         * modules/unicase/u32-ct-casefold: Likewise.
18630         * modules/unicase/u32-ct-tolower: Likewise.
18631         * modules/unicase/u32-ct-totitle: Likewise.
18632         * modules/unicase/u32-ct-toupper: Likewise.
18633         * modules/unicase/u32-is-cased: Likewise.
18634         * modules/unicase/u32-is-casefolded: Likewise.
18635         * modules/unicase/u32-is-lowercase: Likewise.
18636         * modules/unicase/u32-is-titlecase: Likewise.
18637         * modules/unicase/u32-is-uppercase: Likewise.
18638         * modules/unicase/u32-prefix-context: Likewise.
18639         * modules/unicase/u32-suffix-context: Likewise.
18640         * modules/unicase/u32-tolower: Likewise.
18641         * modules/unicase/u32-totitle: Likewise.
18642         * modules/unicase/u32-toupper: Likewise.
18643         * modules/unicase/ulc-casecmp: Likewise.
18644         * modules/unicase/ulc-casecoll: Likewise.
18645         * modules/unicase/ulc-casexfrm: Likewise.
18646         * modules/uniconv/u8-conv-from-enc: Likewise.
18647         * modules/uniconv/u8-conv-to-enc: Likewise.
18648         * modules/uniconv/u8-strconv-from-enc: Likewise.
18649         * modules/uniconv/u8-strconv-from-locale: Likewise.
18650         * modules/uniconv/u8-strconv-to-enc: Likewise.
18651         * modules/uniconv/u8-strconv-to-locale: Likewise.
18652         * modules/uniconv/u16-conv-from-enc: Likewise.
18653         * modules/uniconv/u16-conv-to-enc: Likewise.
18654         * modules/uniconv/u16-strconv-from-enc: Likewise.
18655         * modules/uniconv/u16-strconv-from-locale: Likewise.
18656         * modules/uniconv/u16-strconv-to-enc: Likewise.
18657         * modules/uniconv/u16-strconv-to-locale: Likewise.
18658         * modules/uniconv/u32-conv-from-enc: Likewise.
18659         * modules/uniconv/u32-conv-to-enc: Likewise.
18660         * modules/uniconv/u32-strconv-from-enc: Likewise.
18661         * modules/uniconv/u32-strconv-from-locale: Likewise.
18662         * modules/uniconv/u32-strconv-to-enc: Likewise.
18663         * modules/uniconv/u32-strconv-to-locale: Likewise.
18664         * modules/unictype/bidicategory-byname: Likewise.
18665         * modules/unictype/bidicategory-name: Likewise.
18666         * modules/unictype/bidicategory-of: Likewise.
18667         * modules/unictype/bidicategory-test: Likewise.
18668         * modules/unictype/block-list: Likewise.
18669         * modules/unictype/block-test: Likewise.
18670         * modules/unictype/category-C: Likewise.
18671         * modules/unictype/category-Cc: Likewise.
18672         * modules/unictype/category-Cf: Likewise.
18673         * modules/unictype/category-Cn: Likewise.
18674         * modules/unictype/category-Co: Likewise.
18675         * modules/unictype/category-Cs: Likewise.
18676         * modules/unictype/category-L: Likewise.
18677         * modules/unictype/category-Ll: Likewise.
18678         * modules/unictype/category-Lm: Likewise.
18679         * modules/unictype/category-Lo: Likewise.
18680         * modules/unictype/category-Lt: Likewise.
18681         * modules/unictype/category-Lu: Likewise.
18682         * modules/unictype/category-M: Likewise.
18683         * modules/unictype/category-Mc: Likewise.
18684         * modules/unictype/category-Me: Likewise.
18685         * modules/unictype/category-Mn: Likewise.
18686         * modules/unictype/category-N: Likewise.
18687         * modules/unictype/category-Nd: Likewise.
18688         * modules/unictype/category-Nl: Likewise.
18689         * modules/unictype/category-No: Likewise.
18690         * modules/unictype/category-P: Likewise.
18691         * modules/unictype/category-Pc: Likewise.
18692         * modules/unictype/category-Pd: Likewise.
18693         * modules/unictype/category-Pe: Likewise.
18694         * modules/unictype/category-Pf: Likewise.
18695         * modules/unictype/category-Pi: Likewise.
18696         * modules/unictype/category-Po: Likewise.
18697         * modules/unictype/category-Ps: Likewise.
18698         * modules/unictype/category-S: Likewise.
18699         * modules/unictype/category-Sc: Likewise.
18700         * modules/unictype/category-Sk: Likewise.
18701         * modules/unictype/category-Sm: Likewise.
18702         * modules/unictype/category-So: Likewise.
18703         * modules/unictype/category-Z: Likewise.
18704         * modules/unictype/category-Zl: Likewise.
18705         * modules/unictype/category-Zp: Likewise.
18706         * modules/unictype/category-Zs: Likewise.
18707         * modules/unictype/category-and: Likewise.
18708         * modules/unictype/category-and-not: Likewise.
18709         * modules/unictype/category-byname: Likewise.
18710         * modules/unictype/category-name: Likewise.
18711         * modules/unictype/category-none: Likewise.
18712         * modules/unictype/category-of: Likewise.
18713         * modules/unictype/category-or: Likewise.
18714         * modules/unictype/category-test: Likewise.
18715         * modules/unictype/combining-class: Likewise.
18716         * modules/unictype/ctype-alnum: Likewise.
18717         * modules/unictype/ctype-alpha: Likewise.
18718         * modules/unictype/ctype-blank: Likewise.
18719         * modules/unictype/ctype-cntrl: Likewise.
18720         * modules/unictype/ctype-digit: Likewise.
18721         * modules/unictype/ctype-graph: Likewise.
18722         * modules/unictype/ctype-lower: Likewise.
18723         * modules/unictype/ctype-print: Likewise.
18724         * modules/unictype/ctype-punct: Likewise.
18725         * modules/unictype/ctype-space: Likewise.
18726         * modules/unictype/ctype-upper: Likewise.
18727         * modules/unictype/ctype-xdigit: Likewise.
18728         * modules/unictype/decimal-digit: Likewise.
18729         * modules/unictype/digit: Likewise.
18730         * modules/unictype/mirror: Likewise.
18731         * modules/unictype/numeric: Likewise.
18732         * modules/unictype/property-alphabetic: Likewise.
18733         * modules/unictype/property-ascii-hex-digit: Likewise.
18734         * modules/unictype/property-bidi-arabic-digit: Likewise.
18735         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18736         * modules/unictype/property-bidi-block-separator: Likewise.
18737         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18738         * modules/unictype/property-bidi-common-separator: Likewise.
18739         * modules/unictype/property-bidi-control: Likewise.
18740         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18741         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18742         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18743         * modules/unictype/property-bidi-european-digit: Likewise.
18744         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18745         * modules/unictype/property-bidi-left-to-right: Likewise.
18746         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18747         * modules/unictype/property-bidi-other-neutral: Likewise.
18748         * modules/unictype/property-bidi-pdf: Likewise.
18749         * modules/unictype/property-bidi-segment-separator: Likewise.
18750         * modules/unictype/property-bidi-whitespace: Likewise.
18751         * modules/unictype/property-byname: Likewise.
18752         * modules/unictype/property-combining: Likewise.
18753         * modules/unictype/property-composite: Likewise.
18754         * modules/unictype/property-currency-symbol: Likewise.
18755         * modules/unictype/property-dash: Likewise.
18756         * modules/unictype/property-decimal-digit: Likewise.
18757         * modules/unictype/property-default-ignorable-code-point: Likewise.
18758         * modules/unictype/property-deprecated: Likewise.
18759         * modules/unictype/property-diacritic: Likewise.
18760         * modules/unictype/property-extender: Likewise.
18761         * modules/unictype/property-format-control: Likewise.
18762         * modules/unictype/property-grapheme-base: Likewise.
18763         * modules/unictype/property-grapheme-extend: Likewise.
18764         * modules/unictype/property-grapheme-link: Likewise.
18765         * modules/unictype/property-hex-digit: Likewise.
18766         * modules/unictype/property-hyphen: Likewise.
18767         * modules/unictype/property-id-continue: Likewise.
18768         * modules/unictype/property-id-start: Likewise.
18769         * modules/unictype/property-ideographic: Likewise.
18770         * modules/unictype/property-ids-binary-operator: Likewise.
18771         * modules/unictype/property-ids-trinary-operator: Likewise.
18772         * modules/unictype/property-ignorable-control: Likewise.
18773         * modules/unictype/property-iso-control: Likewise.
18774         * modules/unictype/property-join-control: Likewise.
18775         * modules/unictype/property-left-of-pair: Likewise.
18776         * modules/unictype/property-line-separator: Likewise.
18777         * modules/unictype/property-logical-order-exception: Likewise.
18778         * modules/unictype/property-lowercase: Likewise.
18779         * modules/unictype/property-math: Likewise.
18780         * modules/unictype/property-non-break: Likewise.
18781         * modules/unictype/property-not-a-character: Likewise.
18782         * modules/unictype/property-numeric: Likewise.
18783         * modules/unictype/property-other-alphabetic: Likewise.
18784         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18785         * modules/unictype/property-other-grapheme-extend: Likewise.
18786         * modules/unictype/property-other-id-continue: Likewise.
18787         * modules/unictype/property-other-id-start: Likewise.
18788         * modules/unictype/property-other-lowercase: Likewise.
18789         * modules/unictype/property-other-math: Likewise.
18790         * modules/unictype/property-other-uppercase: Likewise.
18791         * modules/unictype/property-paired-punctuation: Likewise.
18792         * modules/unictype/property-paragraph-separator: Likewise.
18793         * modules/unictype/property-pattern-syntax: Likewise.
18794         * modules/unictype/property-pattern-white-space: Likewise.
18795         * modules/unictype/property-private-use: Likewise.
18796         * modules/unictype/property-punctuation: Likewise.
18797         * modules/unictype/property-quotation-mark: Likewise.
18798         * modules/unictype/property-radical: Likewise.
18799         * modules/unictype/property-sentence-terminal: Likewise.
18800         * modules/unictype/property-soft-dotted: Likewise.
18801         * modules/unictype/property-space: Likewise.
18802         * modules/unictype/property-terminal-punctuation: Likewise.
18803         * modules/unictype/property-test: Likewise.
18804         * modules/unictype/property-titlecase: Likewise.
18805         * modules/unictype/property-unassigned-code-value: Likewise.
18806         * modules/unictype/property-unified-ideograph: Likewise.
18807         * modules/unictype/property-uppercase: Likewise.
18808         * modules/unictype/property-variation-selector: Likewise.
18809         * modules/unictype/property-white-space: Likewise.
18810         * modules/unictype/property-xid-continue: Likewise.
18811         * modules/unictype/property-xid-start: Likewise.
18812         * modules/unictype/property-zero-width: Likewise.
18813         * modules/unictype/scripts: Likewise.
18814         * modules/unictype/syntax-c-ident: Likewise.
18815         * modules/unictype/syntax-c-whitespace: Likewise.
18816         * modules/unictype/syntax-java-ident: Likewise.
18817         * modules/unictype/syntax-java-whitespace: Likewise.
18818         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18819         * modules/unilbrk/u8-width-linebreaks: Likewise.
18820         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18821         * modules/unilbrk/u16-width-linebreaks: Likewise.
18822         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18823         * modules/unilbrk/u32-width-linebreaks: Likewise.
18824         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18825         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18826         * modules/uniname/uniname: Likewise.
18827         * modules/uninorm/canonical-decomposition: Likewise.
18828         * modules/uninorm/composition: Likewise.
18829         * modules/uninorm/decomposing-form: Likewise.
18830         * modules/uninorm/decomposition: Likewise.
18831         * modules/uninorm/filter: Likewise.
18832         * modules/uninorm/nfc: Likewise.
18833         * modules/uninorm/nfd: Likewise.
18834         * modules/uninorm/nfkc: Likewise.
18835         * modules/uninorm/nfkd: Likewise.
18836         * modules/uninorm/u8-normalize: Likewise.
18837         * modules/uninorm/u8-normcmp: Likewise.
18838         * modules/uninorm/u8-normcoll: Likewise.
18839         * modules/uninorm/u8-normxfrm: Likewise.
18840         * modules/uninorm/u16-normalize: Likewise.
18841         * modules/uninorm/u16-normcmp: Likewise.
18842         * modules/uninorm/u16-normcoll: Likewise.
18843         * modules/uninorm/u16-normxfrm: Likewise.
18844         * modules/uninorm/u32-normalize: Likewise.
18845         * modules/uninorm/u32-normcmp: Likewise.
18846         * modules/uninorm/u32-normcoll: Likewise.
18847         * modules/uninorm/u32-normxfrm: Likewise.
18848         * modules/unistdio/u8-asnprintf: Likewise.
18849         * modules/unistdio/u8-asprintf: Likewise.
18850         * modules/unistdio/u8-snprintf: Likewise.
18851         * modules/unistdio/u8-sprintf: Likewise.
18852         * modules/unistdio/u8-u8-asnprintf: Likewise.
18853         * modules/unistdio/u8-u8-asprintf: Likewise.
18854         * modules/unistdio/u8-u8-snprintf: Likewise.
18855         * modules/unistdio/u8-u8-sprintf: Likewise.
18856         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18857         * modules/unistdio/u8-u8-vasprintf: Likewise.
18858         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18859         * modules/unistdio/u8-u8-vsprintf: Likewise.
18860         * modules/unistdio/u8-vasnprintf: Likewise.
18861         * modules/unistdio/u8-vasprintf: Likewise.
18862         * modules/unistdio/u8-vsnprintf: Likewise.
18863         * modules/unistdio/u8-vsprintf: Likewise.
18864         * modules/unistdio/u16-asnprintf: Likewise.
18865         * modules/unistdio/u16-asprintf: Likewise.
18866         * modules/unistdio/u16-snprintf: Likewise.
18867         * modules/unistdio/u16-sprintf: Likewise.
18868         * modules/unistdio/u16-u16-asnprintf: Likewise.
18869         * modules/unistdio/u16-u16-asprintf: Likewise.
18870         * modules/unistdio/u16-u16-snprintf: Likewise.
18871         * modules/unistdio/u16-u16-sprintf: Likewise.
18872         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18873         * modules/unistdio/u16-u16-vasprintf: Likewise.
18874         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18875         * modules/unistdio/u16-u16-vsprintf: Likewise.
18876         * modules/unistdio/u16-vasnprintf: Likewise.
18877         * modules/unistdio/u16-vasprintf: Likewise.
18878         * modules/unistdio/u16-vsnprintf: Likewise.
18879         * modules/unistdio/u16-vsprintf: Likewise.
18880         * modules/unistdio/u32-asnprintf: Likewise.
18881         * modules/unistdio/u32-asprintf: Likewise.
18882         * modules/unistdio/u32-snprintf: Likewise.
18883         * modules/unistdio/u32-sprintf: Likewise.
18884         * modules/unistdio/u32-u32-asnprintf: Likewise.
18885         * modules/unistdio/u32-u32-asprintf: Likewise.
18886         * modules/unistdio/u32-u32-snprintf: Likewise.
18887         * modules/unistdio/u32-u32-sprintf: Likewise.
18888         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18889         * modules/unistdio/u32-u32-vasprintf: Likewise.
18890         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18891         * modules/unistdio/u32-u32-vsprintf: Likewise.
18892         * modules/unistdio/u32-vasnprintf: Likewise.
18893         * modules/unistdio/u32-vasprintf: Likewise.
18894         * modules/unistdio/u32-vsnprintf: Likewise.
18895         * modules/unistdio/u32-vsprintf: Likewise.
18896         * modules/unistdio/ulc-asnprintf: Likewise.
18897         * modules/unistdio/ulc-asprintf: Likewise.
18898         * modules/unistdio/ulc-fprintf: Likewise.
18899         * modules/unistdio/ulc-snprintf: Likewise.
18900         * modules/unistdio/ulc-sprintf: Likewise.
18901         * modules/unistdio/ulc-vasnprintf: Likewise.
18902         * modules/unistdio/ulc-vasprintf: Likewise.
18903         * modules/unistdio/ulc-vfprintf: Likewise.
18904         * modules/unistdio/ulc-vsnprintf: Likewise.
18905         * modules/unistdio/ulc-vsprintf: Likewise.
18906         * modules/unistr/u8-check: Likewise.
18907         * modules/unistr/u8-chr: Likewise.
18908         * modules/unistr/u8-cmp: Likewise.
18909         * modules/unistr/u8-cmp2: Likewise.
18910         * modules/unistr/u8-cpy: Likewise.
18911         * modules/unistr/u8-cpy-alloc: Likewise.
18912         * modules/unistr/u8-endswith: Likewise.
18913         * modules/unistr/u8-mblen: Likewise.
18914         * modules/unistr/u8-mbsnlen: Likewise.
18915         * modules/unistr/u8-mbtouc: Likewise.
18916         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18917         * modules/unistr/u8-mbtoucr: Likewise.
18918         * modules/unistr/u8-move: Likewise.
18919         * modules/unistr/u8-next: Likewise.
18920         * modules/unistr/u8-prev: Likewise.
18921         * modules/unistr/u8-set: Likewise.
18922         * modules/unistr/u8-startswith: Likewise.
18923         * modules/unistr/u8-stpcpy: Likewise.
18924         * modules/unistr/u8-stpncpy: Likewise.
18925         * modules/unistr/u8-strcat: Likewise.
18926         * modules/unistr/u8-strchr: Likewise.
18927         * modules/unistr/u8-strcmp: Likewise.
18928         * modules/unistr/u8-strcoll: Likewise.
18929         * modules/unistr/u8-strcpy: Likewise.
18930         * modules/unistr/u8-strcspn: Likewise.
18931         * modules/unistr/u8-strdup: Likewise.
18932         * modules/unistr/u8-strlen: Likewise.
18933         * modules/unistr/u8-strmblen: Likewise.
18934         * modules/unistr/u8-strmbtouc: Likewise.
18935         * modules/unistr/u8-strncat: Likewise.
18936         * modules/unistr/u8-strncmp: Likewise.
18937         * modules/unistr/u8-strncpy: Likewise.
18938         * modules/unistr/u8-strnlen: Likewise.
18939         * modules/unistr/u8-strpbrk: Likewise.
18940         * modules/unistr/u8-strrchr: Likewise.
18941         * modules/unistr/u8-strspn: Likewise.
18942         * modules/unistr/u8-strstr: Likewise.
18943         * modules/unistr/u8-strtok: Likewise.
18944         * modules/unistr/u8-to-u16: Likewise.
18945         * modules/unistr/u8-to-u32: Likewise.
18946         * modules/unistr/u8-uctomb: Likewise.
18947         * modules/unistr/u16-check: Likewise.
18948         * modules/unistr/u16-chr: Likewise.
18949         * modules/unistr/u16-cmp: Likewise.
18950         * modules/unistr/u16-cmp2: Likewise.
18951         * modules/unistr/u16-cpy: Likewise.
18952         * modules/unistr/u16-cpy-alloc: Likewise.
18953         * modules/unistr/u16-endswith: Likewise.
18954         * modules/unistr/u16-mblen: Likewise.
18955         * modules/unistr/u16-mbsnlen: Likewise.
18956         * modules/unistr/u16-mbtouc: Likewise.
18957         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18958         * modules/unistr/u16-mbtoucr: Likewise.
18959         * modules/unistr/u16-move: Likewise.
18960         * modules/unistr/u16-next: Likewise.
18961         * modules/unistr/u16-prev: Likewise.
18962         * modules/unistr/u16-set: Likewise.
18963         * modules/unistr/u16-startswith: Likewise.
18964         * modules/unistr/u16-stpcpy: Likewise.
18965         * modules/unistr/u16-stpncpy: Likewise.
18966         * modules/unistr/u16-strcat: Likewise.
18967         * modules/unistr/u16-strchr: Likewise.
18968         * modules/unistr/u16-strcmp: Likewise.
18969         * modules/unistr/u16-strcoll: Likewise.
18970         * modules/unistr/u16-strcpy: Likewise.
18971         * modules/unistr/u16-strcspn: Likewise.
18972         * modules/unistr/u16-strdup: Likewise.
18973         * modules/unistr/u16-strlen: Likewise.
18974         * modules/unistr/u16-strmblen: Likewise.
18975         * modules/unistr/u16-strmbtouc: Likewise.
18976         * modules/unistr/u16-strncat: Likewise.
18977         * modules/unistr/u16-strncmp: Likewise.
18978         * modules/unistr/u16-strncpy: Likewise.
18979         * modules/unistr/u16-strnlen: Likewise.
18980         * modules/unistr/u16-strpbrk: Likewise.
18981         * modules/unistr/u16-strrchr: Likewise.
18982         * modules/unistr/u16-strspn: Likewise.
18983         * modules/unistr/u16-strstr: Likewise.
18984         * modules/unistr/u16-strtok: Likewise.
18985         * modules/unistr/u16-to-u32: Likewise.
18986         * modules/unistr/u16-to-u8: Likewise.
18987         * modules/unistr/u16-uctomb: Likewise.
18988         * modules/unistr/u32-check: Likewise.
18989         * modules/unistr/u32-chr: Likewise.
18990         * modules/unistr/u32-cmp: Likewise.
18991         * modules/unistr/u32-cmp2: Likewise.
18992         * modules/unistr/u32-cpy: Likewise.
18993         * modules/unistr/u32-cpy-alloc: Likewise.
18994         * modules/unistr/u32-endswith: Likewise.
18995         * modules/unistr/u32-mblen: Likewise.
18996         * modules/unistr/u32-mbsnlen: Likewise.
18997         * modules/unistr/u32-mbtouc: Likewise.
18998         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18999         * modules/unistr/u32-mbtoucr: Likewise.
19000         * modules/unistr/u32-move: Likewise.
19001         * modules/unistr/u32-next: Likewise.
19002         * modules/unistr/u32-prev: Likewise.
19003         * modules/unistr/u32-set: Likewise.
19004         * modules/unistr/u32-startswith: Likewise.
19005         * modules/unistr/u32-stpcpy: Likewise.
19006         * modules/unistr/u32-stpncpy: Likewise.
19007         * modules/unistr/u32-strcat: Likewise.
19008         * modules/unistr/u32-strchr: Likewise.
19009         * modules/unistr/u32-strcmp: Likewise.
19010         * modules/unistr/u32-strcoll: Likewise.
19011         * modules/unistr/u32-strcpy: Likewise.
19012         * modules/unistr/u32-strcspn: Likewise.
19013         * modules/unistr/u32-strdup: Likewise.
19014         * modules/unistr/u32-strlen: Likewise.
19015         * modules/unistr/u32-strmblen: Likewise.
19016         * modules/unistr/u32-strmbtouc: Likewise.
19017         * modules/unistr/u32-strncat: Likewise.
19018         * modules/unistr/u32-strncmp: Likewise.
19019         * modules/unistr/u32-strncpy: Likewise.
19020         * modules/unistr/u32-strnlen: Likewise.
19021         * modules/unistr/u32-strpbrk: Likewise.
19022         * modules/unistr/u32-strrchr: Likewise.
19023         * modules/unistr/u32-strspn: Likewise.
19024         * modules/unistr/u32-strstr: Likewise.
19025         * modules/unistr/u32-strtok: Likewise.
19026         * modules/unistr/u32-to-u16: Likewise.
19027         * modules/unistr/u32-to-u8: Likewise.
19028         * modules/unistr/u32-uctomb: Likewise.
19029         * modules/uniwbrk/u8-wordbreaks: Likewise.
19030         * modules/uniwbrk/u16-wordbreaks: Likewise.
19031         * modules/uniwbrk/u32-wordbreaks: Likewise.
19032         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19033         * modules/uniwbrk/wordbreak-property: Likewise.
19034         * modules/uniwidth/u8-strwidth: Likewise.
19035         * modules/uniwidth/u8-width: Likewise.
19036         * modules/uniwidth/u16-strwidth: Likewise.
19037         * modules/uniwidth/u16-width: Likewise.
19038         * modules/uniwidth/u32-strwidth: Likewise.
19039         * modules/uniwidth/u32-width: Likewise.
19040         * modules/uniwidth/width: Likewise.
19041         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19042         with $(LIBUNISTRING).
19043         * modules/unicase/ignorable-tests: Likewise.
19044         * modules/unicase/locale-language-tests: Likewise.
19045         * modules/unicase/tolower-tests: Likewise.
19046         * modules/unicase/totitle-tests: Likewise.
19047         * modules/unicase/toupper-tests: Likewise.
19048         * modules/unicase/u8-casecmp-tests: Likewise.
19049         * modules/unicase/u8-casecoll-tests: Likewise.
19050         * modules/unicase/u8-casefold-tests: Likewise.
19051         * modules/unicase/u8-is-cased-tests: Likewise.
19052         * modules/unicase/u8-is-casefolded-tests: Likewise.
19053         * modules/unicase/u8-is-lowercase-tests: Likewise.
19054         * modules/unicase/u8-is-titlecase-tests: Likewise.
19055         * modules/unicase/u8-is-uppercase-tests: Likewise.
19056         * modules/unicase/u8-tolower-tests: Likewise.
19057         * modules/unicase/u8-totitle-tests: Likewise.
19058         * modules/unicase/u8-toupper-tests: Likewise.
19059         * modules/unicase/u16-casecmp-tests: Likewise.
19060         * modules/unicase/u16-casecoll-tests: Likewise.
19061         * modules/unicase/u16-casefold-tests: Likewise.
19062         * modules/unicase/u16-is-cased-tests: Likewise.
19063         * modules/unicase/u16-is-casefolded-tests: Likewise.
19064         * modules/unicase/u16-is-lowercase-tests: Likewise.
19065         * modules/unicase/u16-is-titlecase-tests: Likewise.
19066         * modules/unicase/u16-is-uppercase-tests: Likewise.
19067         * modules/unicase/u16-tolower-tests: Likewise.
19068         * modules/unicase/u16-totitle-tests: Likewise.
19069         * modules/unicase/u16-toupper-tests: Likewise.
19070         * modules/unicase/u32-casecmp-tests: Likewise.
19071         * modules/unicase/u32-casecoll-tests: Likewise.
19072         * modules/unicase/u32-casefold-tests: Likewise.
19073         * modules/unicase/u32-is-cased-tests: Likewise.
19074         * modules/unicase/u32-is-casefolded-tests: Likewise.
19075         * modules/unicase/u32-is-lowercase-tests: Likewise.
19076         * modules/unicase/u32-is-titlecase-tests: Likewise.
19077         * modules/unicase/u32-is-uppercase-tests: Likewise.
19078         * modules/unicase/u32-tolower-tests: Likewise.
19079         * modules/unicase/u32-totitle-tests: Likewise.
19080         * modules/unicase/u32-toupper-tests: Likewise.
19081         * modules/unicase/ulc-casecmp-tests: Likewise.
19082         * modules/unicase/ulc-casecoll-tests: Likewise.
19083         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19084         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19085         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19086         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19087         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19088         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19089         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19090         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19091         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19092         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19093         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19094         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19095         * modules/unictype/bidicategory-byname-tests: Likewise.
19096         * modules/unictype/bidicategory-name-tests: Likewise.
19097         * modules/unictype/bidicategory-of-tests: Likewise.
19098         * modules/unictype/bidicategory-test-tests: Likewise.
19099         * modules/unictype/block-list-tests: Likewise.
19100         * modules/unictype/block-of-tests: Likewise.
19101         * modules/unictype/block-test-tests: Likewise.
19102         * modules/unictype/category-C-tests: Likewise.
19103         * modules/unictype/category-Cc-tests: Likewise.
19104         * modules/unictype/category-Cf-tests: Likewise.
19105         * modules/unictype/category-Cn-tests: Likewise.
19106         * modules/unictype/category-Co-tests: Likewise.
19107         * modules/unictype/category-Cs-tests: Likewise.
19108         * modules/unictype/category-L-tests: Likewise.
19109         * modules/unictype/category-Ll-tests: Likewise.
19110         * modules/unictype/category-Lm-tests: Likewise.
19111         * modules/unictype/category-Lo-tests: Likewise.
19112         * modules/unictype/category-Lt-tests: Likewise.
19113         * modules/unictype/category-Lu-tests: Likewise.
19114         * modules/unictype/category-M-tests: Likewise.
19115         * modules/unictype/category-Mc-tests: Likewise.
19116         * modules/unictype/category-Me-tests: Likewise.
19117         * modules/unictype/category-Mn-tests: Likewise.
19118         * modules/unictype/category-N-tests: Likewise.
19119         * modules/unictype/category-Nd-tests: Likewise.
19120         * modules/unictype/category-Nl-tests: Likewise.
19121         * modules/unictype/category-No-tests: Likewise.
19122         * modules/unictype/category-P-tests: Likewise.
19123         * modules/unictype/category-Pc-tests: Likewise.
19124         * modules/unictype/category-Pd-tests: Likewise.
19125         * modules/unictype/category-Pe-tests: Likewise.
19126         * modules/unictype/category-Pf-tests: Likewise.
19127         * modules/unictype/category-Pi-tests: Likewise.
19128         * modules/unictype/category-Po-tests: Likewise.
19129         * modules/unictype/category-Ps-tests: Likewise.
19130         * modules/unictype/category-S-tests: Likewise.
19131         * modules/unictype/category-Sc-tests: Likewise.
19132         * modules/unictype/category-Sk-tests: Likewise.
19133         * modules/unictype/category-Sm-tests: Likewise.
19134         * modules/unictype/category-So-tests: Likewise.
19135         * modules/unictype/category-Z-tests: Likewise.
19136         * modules/unictype/category-Zl-tests: Likewise.
19137         * modules/unictype/category-Zp-tests: Likewise.
19138         * modules/unictype/category-Zs-tests: Likewise.
19139         * modules/unictype/category-and-not-tests: Likewise.
19140         * modules/unictype/category-and-tests: Likewise.
19141         * modules/unictype/category-byname-tests: Likewise.
19142         * modules/unictype/category-name-tests: Likewise.
19143         * modules/unictype/category-none-tests: Likewise.
19144         * modules/unictype/category-of-tests: Likewise.
19145         * modules/unictype/category-or-tests: Likewise.
19146         * modules/unictype/category-test-withtable-tests: Likewise.
19147         * modules/unictype/combining-class-tests: Likewise.
19148         * modules/unictype/ctype-alnum-tests: Likewise.
19149         * modules/unictype/ctype-alpha-tests: Likewise.
19150         * modules/unictype/ctype-blank-tests: Likewise.
19151         * modules/unictype/ctype-cntrl-tests: Likewise.
19152         * modules/unictype/ctype-digit-tests: Likewise.
19153         * modules/unictype/ctype-graph-tests: Likewise.
19154         * modules/unictype/ctype-lower-tests: Likewise.
19155         * modules/unictype/ctype-print-tests: Likewise.
19156         * modules/unictype/ctype-punct-tests: Likewise.
19157         * modules/unictype/ctype-space-tests: Likewise.
19158         * modules/unictype/ctype-upper-tests: Likewise.
19159         * modules/unictype/ctype-xdigit-tests: Likewise.
19160         * modules/unictype/decimal-digit-tests: Likewise.
19161         * modules/unictype/digit-tests: Likewise.
19162         * modules/unictype/mirror-tests: Likewise.
19163         * modules/unictype/numeric-tests: Likewise.
19164         * modules/unictype/property-alphabetic-tests: Likewise.
19165         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19166         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19167         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19168         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19169         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19170         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19171         * modules/unictype/property-bidi-control-tests: Likewise.
19172         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19173         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19174         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19175         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19176         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19177         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19178         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19179         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19180         * modules/unictype/property-bidi-pdf-tests: Likewise.
19181         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19182         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19183         * modules/unictype/property-byname-tests: Likewise.
19184         * modules/unictype/property-combining-tests: Likewise.
19185         * modules/unictype/property-composite-tests: Likewise.
19186         * modules/unictype/property-currency-symbol-tests: Likewise.
19187         * modules/unictype/property-dash-tests: Likewise.
19188         * modules/unictype/property-decimal-digit-tests: Likewise.
19189         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19190         * modules/unictype/property-deprecated-tests: Likewise.
19191         * modules/unictype/property-diacritic-tests: Likewise.
19192         * modules/unictype/property-extender-tests: Likewise.
19193         * modules/unictype/property-format-control-tests: Likewise.
19194         * modules/unictype/property-grapheme-base-tests: Likewise.
19195         * modules/unictype/property-grapheme-extend-tests: Likewise.
19196         * modules/unictype/property-grapheme-link-tests: Likewise.
19197         * modules/unictype/property-hex-digit-tests: Likewise.
19198         * modules/unictype/property-hyphen-tests: Likewise.
19199         * modules/unictype/property-id-continue-tests: Likewise.
19200         * modules/unictype/property-id-start-tests: Likewise.
19201         * modules/unictype/property-ideographic-tests: Likewise.
19202         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19203         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19204         * modules/unictype/property-ignorable-control-tests: Likewise.
19205         * modules/unictype/property-iso-control-tests: Likewise.
19206         * modules/unictype/property-join-control-tests: Likewise.
19207         * modules/unictype/property-left-of-pair-tests: Likewise.
19208         * modules/unictype/property-line-separator-tests: Likewise.
19209         * modules/unictype/property-logical-order-exception-tests: Likewise.
19210         * modules/unictype/property-lowercase-tests: Likewise.
19211         * modules/unictype/property-math-tests: Likewise.
19212         * modules/unictype/property-non-break-tests: Likewise.
19213         * modules/unictype/property-not-a-character-tests: Likewise.
19214         * modules/unictype/property-numeric-tests: Likewise.
19215         * modules/unictype/property-other-alphabetic-tests: Likewise.
19216         * modules/unictype/property-other-default-ignorable-code-point-tests:
19217         Likewise.
19218         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19219         * modules/unictype/property-other-id-continue-tests: Likewise.
19220         * modules/unictype/property-other-id-start-tests: Likewise.
19221         * modules/unictype/property-other-lowercase-tests: Likewise.
19222         * modules/unictype/property-other-math-tests: Likewise.
19223         * modules/unictype/property-other-uppercase-tests: Likewise.
19224         * modules/unictype/property-paired-punctuation-tests: Likewise.
19225         * modules/unictype/property-paragraph-separator-tests: Likewise.
19226         * modules/unictype/property-pattern-syntax-tests: Likewise.
19227         * modules/unictype/property-pattern-white-space-tests: Likewise.
19228         * modules/unictype/property-private-use-tests: Likewise.
19229         * modules/unictype/property-punctuation-tests: Likewise.
19230         * modules/unictype/property-quotation-mark-tests: Likewise.
19231         * modules/unictype/property-radical-tests: Likewise.
19232         * modules/unictype/property-sentence-terminal-tests: Likewise.
19233         * modules/unictype/property-soft-dotted-tests: Likewise.
19234         * modules/unictype/property-space-tests: Likewise.
19235         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19236         * modules/unictype/property-test-tests: Likewise.
19237         * modules/unictype/property-titlecase-tests: Likewise.
19238         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19239         * modules/unictype/property-unified-ideograph-tests: Likewise.
19240         * modules/unictype/property-uppercase-tests: Likewise.
19241         * modules/unictype/property-variation-selector-tests: Likewise.
19242         * modules/unictype/property-white-space-tests: Likewise.
19243         * modules/unictype/property-xid-continue-tests: Likewise.
19244         * modules/unictype/property-xid-start-tests: Likewise.
19245         * modules/unictype/property-zero-width-tests: Likewise.
19246         * modules/unictype/scripts-tests: Likewise.
19247         * modules/unictype/syntax-c-ident-tests: Likewise.
19248         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19249         * modules/unictype/syntax-java-ident-tests: Likewise.
19250         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19251         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19252         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19253         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19254         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19255         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19256         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19257         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19258         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19259         * modules/uniname/uniname-tests: Likewise.
19260         * modules/uninorm/canonical-decomposition-tests: Likewise.
19261         * modules/uninorm/compat-decomposition-tests: Likewise.
19262         * modules/uninorm/composition-tests: Likewise.
19263         * modules/uninorm/decomposing-form-tests: Likewise.
19264         * modules/uninorm/decomposition-tests: Likewise.
19265         * modules/uninorm/filter-tests: Likewise.
19266         * modules/uninorm/nfc-tests: Likewise.
19267         * modules/uninorm/nfd-tests: Likewise.
19268         * modules/uninorm/nfkc-tests: Likewise.
19269         * modules/uninorm/nfkd-tests: Likewise.
19270         * modules/uninorm/u8-normcmp-tests: Likewise.
19271         * modules/uninorm/u8-normcoll-tests: Likewise.
19272         * modules/uninorm/u16-normcmp-tests: Likewise.
19273         * modules/uninorm/u16-normcoll-tests: Likewise.
19274         * modules/uninorm/u32-normcmp-tests: Likewise.
19275         * modules/uninorm/u32-normcoll-tests: Likewise.
19276         * modules/unistdio/u8-asnprintf-tests: Likewise.
19277         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19278         * modules/unistdio/u8-vasprintf-tests: Likewise.
19279         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19280         * modules/unistdio/u8-vsprintf-tests: Likewise.
19281         * modules/unistdio/u16-asnprintf-tests: Likewise.
19282         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19283         * modules/unistdio/u16-vasprintf-tests: Likewise.
19284         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19285         * modules/unistdio/u16-vsprintf-tests: Likewise.
19286         * modules/unistdio/u32-asnprintf-tests: Likewise.
19287         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19288         * modules/unistdio/u32-vasprintf-tests: Likewise.
19289         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19290         * modules/unistdio/u32-vsprintf-tests: Likewise.
19291         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19292         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19293         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19294         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19295         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19296         * modules/unistr/u8-check-tests: Likewise.
19297         * modules/unistr/u8-chr-tests: Likewise.
19298         * modules/unistr/u8-cmp-tests: Likewise.
19299         * modules/unistr/u8-cmp2-tests: Likewise.
19300         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19301         * modules/unistr/u8-cpy-tests: Likewise.
19302         * modules/unistr/u8-mblen-tests: Likewise.
19303         * modules/unistr/u8-mbsnlen-tests: Likewise.
19304         * modules/unistr/u8-mbtouc-tests: Likewise.
19305         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19306         * modules/unistr/u8-mbtoucr-tests: Likewise.
19307         * modules/unistr/u8-move-tests: Likewise.
19308         * modules/unistr/u8-next-tests: Likewise.
19309         * modules/unistr/u8-prev-tests: Likewise.
19310         * modules/unistr/u8-set-tests: Likewise.
19311         * modules/unistr/u8-stpcpy-tests: Likewise.
19312         * modules/unistr/u8-stpncpy-tests: Likewise.
19313         * modules/unistr/u8-strcat-tests: Likewise.
19314         * modules/unistr/u8-strcmp-tests: Likewise.
19315         * modules/unistr/u8-strcoll-tests: Likewise.
19316         * modules/unistr/u8-strcpy-tests: Likewise.
19317         * modules/unistr/u8-strdup-tests: Likewise.
19318         * modules/unistr/u8-strlen-tests: Likewise.
19319         * modules/unistr/u8-strmblen-tests: Likewise.
19320         * modules/unistr/u8-strmbtouc-tests: Likewise.
19321         * modules/unistr/u8-strncat-tests: Likewise.
19322         * modules/unistr/u8-strncmp-tests: Likewise.
19323         * modules/unistr/u8-strncpy-tests: Likewise.
19324         * modules/unistr/u8-strnlen-tests: Likewise.
19325         * modules/unistr/u8-to-u16-tests: Likewise.
19326         * modules/unistr/u8-to-u32-tests: Likewise.
19327         * modules/unistr/u8-uctomb-tests: Likewise.
19328         * modules/unistr/u16-check-tests: Likewise.
19329         * modules/unistr/u16-chr-tests: Likewise.
19330         * modules/unistr/u16-cmp-tests: Likewise.
19331         * modules/unistr/u16-cmp2-tests: Likewise.
19332         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19333         * modules/unistr/u16-cpy-tests: Likewise.
19334         * modules/unistr/u16-mblen-tests: Likewise.
19335         * modules/unistr/u16-mbsnlen-tests: Likewise.
19336         * modules/unistr/u16-mbtouc-tests: Likewise.
19337         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19338         * modules/unistr/u16-mbtoucr-tests: Likewise.
19339         * modules/unistr/u16-move-tests: Likewise.
19340         * modules/unistr/u16-next-tests: Likewise.
19341         * modules/unistr/u16-prev-tests: Likewise.
19342         * modules/unistr/u16-set-tests: Likewise.
19343         * modules/unistr/u16-stpcpy-tests: Likewise.
19344         * modules/unistr/u16-stpncpy-tests: Likewise.
19345         * modules/unistr/u16-strcat-tests: Likewise.
19346         * modules/unistr/u16-strcmp-tests: Likewise.
19347         * modules/unistr/u16-strcoll-tests: Likewise.
19348         * modules/unistr/u16-strcpy-tests: Likewise.
19349         * modules/unistr/u16-strdup-tests: Likewise.
19350         * modules/unistr/u16-strlen-tests: Likewise.
19351         * modules/unistr/u16-strmblen-tests: Likewise.
19352         * modules/unistr/u16-strmbtouc-tests: Likewise.
19353         * modules/unistr/u16-strncat-tests: Likewise.
19354         * modules/unistr/u16-strncmp-tests: Likewise.
19355         * modules/unistr/u16-strncpy-tests: Likewise.
19356         * modules/unistr/u16-strnlen-tests: Likewise.
19357         * modules/unistr/u16-to-u32-tests: Likewise.
19358         * modules/unistr/u16-to-u8-tests: Likewise.
19359         * modules/unistr/u16-uctomb-tests: Likewise.
19360         * modules/unistr/u32-check-tests: Likewise.
19361         * modules/unistr/u32-chr-tests: Likewise.
19362         * modules/unistr/u32-cmp-tests: Likewise.
19363         * modules/unistr/u32-cmp2-tests: Likewise.
19364         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19365         * modules/unistr/u32-cpy-tests: Likewise.
19366         * modules/unistr/u32-mblen-tests: Likewise.
19367         * modules/unistr/u32-mbsnlen-tests: Likewise.
19368         * modules/unistr/u32-mbtouc-tests: Likewise.
19369         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19370         * modules/unistr/u32-mbtoucr-tests: Likewise.
19371         * modules/unistr/u32-move-tests: Likewise.
19372         * modules/unistr/u32-next-tests: Likewise.
19373         * modules/unistr/u32-prev-tests: Likewise.
19374         * modules/unistr/u32-set-tests: Likewise.
19375         * modules/unistr/u32-stpcpy-tests: Likewise.
19376         * modules/unistr/u32-stpncpy-tests: Likewise.
19377         * modules/unistr/u32-strcat-tests: Likewise.
19378         * modules/unistr/u32-strcmp-tests: Likewise.
19379         * modules/unistr/u32-strcoll-tests: Likewise.
19380         * modules/unistr/u32-strcpy-tests: Likewise.
19381         * modules/unistr/u32-strdup-tests: Likewise.
19382         * modules/unistr/u32-strlen-tests: Likewise.
19383         * modules/unistr/u32-strmblen-tests: Likewise.
19384         * modules/unistr/u32-strmbtouc-tests: Likewise.
19385         * modules/unistr/u32-strncat-tests: Likewise.
19386         * modules/unistr/u32-strncmp-tests: Likewise.
19387         * modules/unistr/u32-strncpy-tests: Likewise.
19388         * modules/unistr/u32-strnlen-tests: Likewise.
19389         * modules/unistr/u32-to-u16-tests: Likewise.
19390         * modules/unistr/u32-to-u8-tests: Likewise.
19391         * modules/unistr/u32-uctomb-tests: Likewise.
19392         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19393         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19394         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19395         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19396         * modules/uniwidth/u8-strwidth-tests: Likewise.
19397         * modules/uniwidth/u8-width-tests: Likewise.
19398         * modules/uniwidth/u16-strwidth-tests: Likewise.
19399         * modules/uniwidth/u16-width-tests: Likewise.
19400         * modules/uniwidth/u32-strwidth-tests: Likewise.
19401         * modules/uniwidth/u32-width-tests: Likewise.
19402         * modules/uniwidth/width-tests: Likewise.
19403
19404 2010-05-18  Richard Jones  <rjones@redhat.com>
19405
19406         doc: users.txt: list hivex
19407         * users.txt: Add hivex.
19408
19409 2010-05-18  Richard Jones  <rjones@redhat.com>
19410
19411         doc: users.txt: list febootstrap
19412         * users.txt: Add febootstrap.
19413
19414 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19415
19416         bootstrap: fix an error when gnulib is not used as a git submodule
19417         * build-aux/bootstrap (gnulib_path): If its length is zero then
19418         assign "gnulib" to it.
19419         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19420
19421 2010-05-16  Bruno Haible  <bruno@clisp.org>
19422
19423         Avoid autoconf warnings about AM_ICONV.
19424         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19425         2.64.
19426
19427 2010-05-16  Bruno Haible  <bruno@clisp.org>
19428
19429         absolute-header: Make the macro usable in more situations.
19430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19431         from gl_ABSOLUTE_HEADER.
19432         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19433
19434 2010-05-16  James Youngman  <jay@gnu.org>
19435
19436         doc: update users.txt
19437         * users.txt: Add CSSC.
19438
19439 2010-05-16  Jim Meyering  <meyering@redhat.com>
19440
19441         init.sh: fix an error in the previous change; add more comments
19442         * tests/init.sh: Compare exit code in loop against 9, not 2.
19443         Patch by Bruno Haible.
19444         Make the two tests more similar by adding an empty "then" clause.
19445         Add comments.
19446
19447         init.sh: avoid unnecessary shell re-exec
19448         * tests/init.sh: Improve the re-exec-required check to first test the
19449         current shell.  If it passes the test, do not search for a shell that
19450         does pass, and do not re-exec.  This test is particularly contorted to
19451         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19452         of $(...) evokes a syntax error and causes immediate shell exit with
19453         status 2.  Bruno Haible reported that the re-exec made it impossible
19454         to single-step through any init.sh-using script.
19455
19456 2010-05-16  Bruno Haible  <bruno@clisp.org>
19457
19458         Fix collision between gnulib's and libintl's printf replacements.
19459         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19460         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19461         (printf): When using GNU C, map the __printf__ function to rpl_printf
19462         via __asm__. When not using GNU C, define rpl_printf instead of
19463         __printf__.
19464         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19465         commit.
19466         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19467         commit.
19468         * m4/asm-underscore.m4: New file.
19469         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19470         * modules/stdio (Files): Add m4/asm-underscore.m4.
19471         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19472         Reported by Ben Pfaff.
19473
19474 2010-05-16  Bruno Haible  <bruno@clisp.org>
19475
19476         verify: Avoid skipping the test on openSUSE 11.0.
19477         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19478
19479 2010-05-13  Bruno Haible  <bruno@clisp.org>
19480
19481         Avoid useless warnings from G++.
19482         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19483         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19484         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19485
19486 2010-05-11  Jim Meyering  <meyering@redhat.com>
19487
19488         maint.mk: tweak preceding change
19489         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19490         regexps tighter by anchoring at EOL, and make the new group "shy"
19491         for slightly decreased overhead.
19492
19493 2010-05-11  Eric Blake  <eblake@redhat.com>
19494
19495         maint.mk: gnulib doesn't guarantee NSIG
19496         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19497
19498 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19499
19500         test-pwrite.c: Remove unused variable declaration.
19501         * tests/test-pwrite.c (main): Remove read_buf declaration.
19502
19503         Remove useless test-pwrite.sh file.
19504         * tests/test-pwrite.sh: Delete file.
19505         * modules/pwrite-tests: Remove references.
19506         Reported by Bruno Haible.
19507
19508 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19509
19510         init.sh: fix a typo
19511         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19512
19513 2010-05-10  Jim Meyering  <meyering@redhat.com>
19514
19515         maint.mk: avoid using a temporary file in the always-defined-macros check
19516         * top/maint.mk (.re-defmac): Remove rule.
19517         (gl_trap_): Remove definition.
19518         (sc_prohibit_always-defined_macros): Rewrite not to create and
19519         depend on a temporary file.  Instead, depend on GNU grep's ability
19520         to read a list of regular expressions from stdin when given "-f -".
19521
19522 2010-05-09  Bruno Haible  <bruno@clisp.org>
19523
19524         Update to GNU gettext 0.18, part 1.
19525         * m4/gettext.m4: Update to GNU gettext 0.18.
19526         * m4/intl.m4: Likewise.
19527         * m4/po.m4: Likewise.
19528         * modules/gettext (Files): Add m4/fcntl-o.m4.
19529         (configure.ac): Require gettext infrastructure from version 0.18.
19530
19531 2010-05-09  Jim Meyering  <meyering@redhat.com>
19532
19533         init.sh: enable MALLOC_PERTURB_
19534         * tests/init.sh: Enable glibc's malloc-perturbing option.
19535
19536         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19537         With my recent change in init.sh from the two-line form:
19538             -#   : ${srcdir=.}
19539             -#   . "$srcdir/init.sh"; path_prepend_ .
19540             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19541         I noticed that using the one-line form would cause this test
19542         to fail with a false-positive, or to stop working altogether,
19543         depending on whether help-version changed or all the tests did.
19544         * top/maint.mk (_hv_regex): Remove this definition.
19545         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19546         (_hv_regex_strong): Use a stronger regex to check for conformance.
19547         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19548         Give a separate diagnostic for lack of conforming use.
19549
19550         maint.mk: prohibit definition of symbols defined by gnulib
19551         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19552         definition of symbols defined by gnulib.
19553
19554 2010-05-09  Bruno Haible  <bruno@clisp.org>
19555
19556         acl: Avoid test failure on Cygwin-hosted mingw.
19557         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19558
19559 2010-05-09  Bruno Haible  <bruno@clisp.org>
19560
19561         error: Use system's fcntl function.
19562         * lib/error.c (fcntl): Undefine.
19563
19564 2010-05-09  Jim Meyering  <meyering@redhat.com>
19565
19566         verify: adjust formatting to be more consistent
19567         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19568         argument-list '('s, and after one comma.
19569
19570 2010-05-09  Bruno Haible  <bruno@clisp.org>
19571
19572         error: More reliable output on mingw.
19573         * lib/error.c: Include <windows.h>.
19574         (is_open): New function.
19575         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19576         defined.
19577
19578 2010-05-09  Bruno Haible  <bruno@clisp.org>
19579
19580         vasnprintf: Fix syntax errors in libintl build on mingw.
19581         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19582         pad_ourselves and prec_ourselves after use.
19583
19584 2010-05-08  Bruno Haible  <bruno@clisp.org>
19585
19586         * lib/config.charset: Update comments for Cygwin 1.7.
19587         * lib/localcharset.c: Likewise.
19588
19589 2010-05-07  Jim Meyering  <meyering@redhat.com>
19590
19591         init.sh: improve comments
19592         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19593         . "${srcdir=.}/init.sh"; path_prepend_ .
19594         Add a note about path_prepend_ and the alternative of using
19595         TESTS_ENVIRONMENT.
19596
19597 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19598
19599         exclude: Unescape hashed patterns in wildcard mode.
19600         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19601         to the hash list.
19602         * tests/test-exclude8.sh: New test case.
19603         * modules/exclude-tests: Add new test.
19604
19605 2010-05-05  Eric Blake  <eblake@redhat.com>
19606
19607         verify: automate tests
19608         * modules/verify-tests: New module.
19609         * tests/test-verify.sh: New file.
19610         * tests/test-verify.c: Guard each negative test with a unique id.
19611         Also avoid warning about unused left hand of comma expressions.
19612
19613 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19614
19615         Further improvements to verify.h, suggested by Eric Blake.
19616         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19617         the GL_* versions, to avoid collision with OpenGL.
19618         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19619         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19620         than testing merely whether it's defined.
19621
19622         Modify verify.h to pacify gcc -Wredundant_decls.
19623         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19624         These use the prefix "GL_" since they're likely to be useful elsewhere.
19625         We may need to break them out into a different .h file.
19626         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19627         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19628         of verify_function__.
19629
19630 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19631
19632         Tests for module pwrite.
19633         * modules/pwrite-tests: New file.
19634         * tests/test-pwrite.sh: New file.
19635         * tests/test-pwrite.c: New file.
19636
19637         New module pwrite.
19638         * lib/unistd.in.h (pwrite): New declaration.
19639         * lib/pwrite.c: New file, from glibc with modifications.
19640         * m4/pwrite.m4: New file.
19641         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19642         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19643         REPLACE_PWRITE.
19644         * modules/pwrite: New file.
19645         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19646         REPLACE_PWRITE.
19647         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19648         * doc/posix-functions/pwrite.texi: Mention the new module.
19649
19650 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19651
19652         pread: Update documentation.
19653         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19654
19655 2010-05-04  Eric Blake  <eblake@redhat.com>
19656
19657         docs: update cygwin progress
19658         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19659         this bug.
19660         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19661         Added in cygwin 1.7.2.
19662         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19663         Likewise.
19664         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19665         Likewise.
19666         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19667         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19668         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19669         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19670         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19671         Mention nproc module.
19672         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19673         bug in cygwin 1.7.5 addition.
19674         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19675         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19676         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19677         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19678         1.7.5.
19679         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19680         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19681         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19682         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19683         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19684         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19685         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19686         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19687         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19688         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19689         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19690         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19691         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19692         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19693         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19694         Likewise.
19695         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19696         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19697         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19698         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19699         Likewise.
19700         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19701         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19702         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19703         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19704         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19705         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19706         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19707         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19708         Likewise.
19709         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19710         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19711         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19712         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19713         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19714         Likewise.
19715         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19716         Likewise.
19717         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19718         Likewise.
19719         * doc/glibc-functions/xdrrec_endofrecord.texi
19720         (xdrrec_endofrecord): Likewise.
19721         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19722         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19723         Likewise.
19724         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19725         Likewise.
19726
19727 2010-05-04  Jim Meyering  <meyering@redhat.com>
19728
19729         gendocs.sh: make its "-s FILE" option more useful
19730         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19731         $PACKAGE to reflect the probably-different basename of "FILE".
19732
19733 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19734
19735         bootstrap: don't ignore download_po_files failure
19736         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19737         failure.
19738
19739 2010-05-03  Jim Meyering  <meyering@redhat.com>
19740
19741         maint.mk: allow to pass options to gendocs.sh
19742         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19743         (gendocs_options_): New overridable variable.
19744
19745         gnu-web-doc-update: don't ignore configure or build failure
19746         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19747
19748         announce-gen: backslash-escape '@'s in --help output
19749         * build-aux/announce-gen: Fix syntax errors.
19750
19751         maint.mk, announce-gen: allow project-specific announcement mail headers
19752         * top/maint.mk (translation_project_): Define default.
19753         (announcement_Cc_, announcement_mail_headers_): Likewise.
19754         (announcement): Invoke announce-gen with new --mail-headers option.
19755         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19756
19757         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19758         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19759         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19760         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19761         line in the "err2" output file when running "make check" in verbose
19762         mode (i.e., with set -x enabled).
19763
19764 2010-05-03  Bruno Haible  <bruno@clisp.org>
19765
19766         wctob: Fix for weird platforms.
19767         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19768         argument value.
19769
19770 2010-05-03  Jim Meyering  <meyering@redhat.com>
19771
19772         maint.mk: prohibit unwarranted use of <strings.h>
19773         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19774         strings.h in a file that does not also use strcasecmp, strncasecmp,
19775         ffs or ffsll.
19776
19777         maint.mk: remove obsolete comments
19778         * top/maint.mk: Remove stale, commented-out rules.
19779
19780 2010-05-02  Bruno Haible  <bruno@clisp.org>
19781
19782         wcwidth: Declare also when it's aliased.
19783         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19784         macro.
19785
19786 2010-05-02  Bruno Haible  <bruno@clisp.org>
19787
19788         Fix regression from 2010-04-25.
19789         * gnulib-tool (func_modules_transitive_closure): Check the status of
19790         all modules, not only of the tests that are of the form foo-tests where
19791         foo is a module.
19792
19793 2010-05-02  Bruno Haible  <bruno@clisp.org>
19794
19795         wctob: Work around nasty Cygwin 1.7.2 bug.
19796         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19797         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19798
19799 2010-05-01  Bruno Haible  <bruno@clisp.org>
19800
19801         fpurge: Sharper test.
19802         * tests/test-fpurge.c (main): Add one more ftell check.
19803         * modules/fpurge-tests (Depends-on): Add ftell.
19804         Suggested by Eric Blake.
19805
19806 2010-05-01  Bruno Haible  <bruno@clisp.org>
19807
19808         ftello: Another test.
19809         * tests/test-ftello3.c: New file.
19810         * modules/ftello-tests (Files): Add it.
19811         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19812         MOSTLYCLEANFILES.
19813
19814         ftell: Another test.
19815         * tests/test-ftell3.c: New file.
19816         * modules/ftell-tests (Files): Add it.
19817         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19818         MOSTLYCLEANFILES.
19819
19820 2010-05-01  Bruno Haible  <bruno@clisp.org>
19821
19822         ftell, ftello: Work around Solaris bug.
19823         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19824         * lib/ftello.c: Include stdio-impl.h.
19825         (ftello): On Solaris, when _IOWRT is set, compute the result without
19826         looking at _IOREAD.
19827         * modules/ftello (Files): Add lib/stdio-impl.h.
19828         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19829         * doc/posix-functions/ftello.texi: Likewise.
19830         Reported by Eric Blake.
19831
19832 2010-05-01  Bruno Haible  <bruno@clisp.org>
19833
19834         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19835         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19836         the _IOWRT flag is also set.
19837
19838 2010-05-01  Bruno Haible  <bruno@clisp.org>
19839
19840         Fix doc about a HP-UX stdio bug.
19841         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19842         * doc/posix-functions/ftello.texi: Likewise.
19843
19844 2010-05-01  Bruno Haible  <bruno@clisp.org>
19845
19846         lseek test: Fix failure on Solaris.
19847         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19848         output.
19849
19850 2010-04-30  Jim Meyering  <meyering@redhat.com>
19851
19852         bootstrap: don't ignore failure to generate po*/Makevars
19853         * build-aux/bootstrap (with_gettext): Don't ignore failure
19854         to create po/Makevars or runtime-po/Makevars.
19855
19856 2010-04-29  Eric Blake  <eblake@redhat.com>
19857
19858         headers: relax license to LGPLv2+
19859         * modules/fcntl-h (License): Relax license.
19860         * modules/getopt-posix (License): Likewise.
19861         * modules/locale (License): Likewise.
19862         * modules/math (License): Likewise.
19863         * modules/pty (License): Likewise.
19864         * modules/sched (License): Likewise.
19865         * modules/search (License): Likewise.
19866         * modules/spawn (License): Likewise.
19867         * modules/stdarg (License): Likewise.
19868         * modules/sysexits (License): Likewise.
19869
19870 2010-04-29  Jim Meyering  <meyering@redhat.com>
19871
19872         inttypes: relax license to LGPLv2+
19873         * modules/inttypes (License): Relax license.
19874
19875 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19876
19877         * top/maint.mk (indent): Run twice to produce idempotent results.
19878
19879 2010-04-28  Bruno Haible  <bruno@clisp.org>
19880
19881         getdate: Generate getdate.c in the source directory.
19882         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19883         MOSTLYCLEANFILES.
19884         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19885
19886 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19887
19888         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19889         is not declared as a const *; avoid warnings in that case.
19890
19891 2010-04-28  Eric Blake  <eblake@redhat.com>
19892
19893         canonicalize-lgpl: avoid compiler warning
19894         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19895         declaration' / 'extraneous semicolon' warning with some compilers.
19896         Reported by Andreas Gruenbacher.
19897
19898 2010-04-28  Jim Meyering  <meyering@redhat.com>
19899
19900         init.sh: ensure a more reliable exit status when exiting via trap
19901         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19902         Inspired by patches from Dmitry V. Levin.
19903         Also trap on signal 3 (SIGQUIT).
19904
19905 2010-04-27  Bruno Haible  <bruno@clisp.org>
19906
19907         Update doc about utimes().
19908         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19909         'utimens' module.
19910         Reported by Andreas Gruenbacher <agruen@suse.de>.
19911
19912 2010-04-27  Eric Blake  <eblake@redhat.com>
19913
19914         full-read, full-write: relax license
19915         * modules/full-read (License): Drop to LGPLv2+.
19916         * modules/full-write (License): Likewise.
19917         * modules/safe-read (License): Likewise.
19918         * modules/safe-write (License): Likewise.
19919
19920         pthread: mention library for linking
19921         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19922
19923 2010-04-27  Jim Meyering  <meyering@redhat.com>
19924
19925         maint.mk: fix a bug introduced in last change
19926         * top/maint.mk (gl_assured_headers_): Now that all names are on
19927         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19928         is not anchored to end of word, it should be adequate.
19929
19930         maint.mk: avoid side-effect in latest syntax-check
19931         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19932         to run commands via $(shell...), and hence to incur cost only when
19933         the new rule is actually run.
19934
19935         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19936         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19937         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19938         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19939         (gl_assured_headers_, az_, AZ_): Define.
19940         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19941
19942 2010-04-26  Jim Meyering  <jim@meyering.net>
19943             Bruno Haible  <bruno@clisp.org>
19944
19945         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19946         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19947         Prompted by an exchange with Gilles Espinasse.
19948
19949 2010-04-26  Jim Meyering  <meyering@redhat.com>
19950
19951         git-version-gen: aesthetic tweak
19952         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19953         so that the command remains on a single line.
19954
19955 2010-04-26  Eric Blake  <eblake@redhat.com>
19956
19957         git-version-gen: allow use on EBCDIC hosts
19958         * build-aux/git-version-gen (dirty): Use literal rather than tying
19959         ourselves to ascii.
19960         Reported by Steve Goetze.
19961
19962 2010-04-25  Bruno Haible  <bruno@clisp.org>
19963
19964         netdb: Add support for GNULIB_POSIXCHECK.
19965         * lib/netdb.in.h: Include warn-on-use.h.
19966         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19967         functions are used when GNULIB_POSIXCHECK is defined and the
19968         getaddrinfo module is not in use.
19969         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19970         freeaddrinfo, gai_strerror, getnameinfo are declared.
19971         * modules/netdb (Depends-on): Add warn-on-use.
19972         (Makefile.am): Include warn-on-use.h in netdb.h.
19973
19974 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19975
19976         build: avoid "make check" failure without .git/ directory
19977         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19978         there is no .git/ directory.
19979
19980 2010-04-25  Bruno Haible  <bruno@clisp.org>
19981
19982         ptsname: Fix misuse of ttyname_r.
19983         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19984         of errno.
19985
19986 2010-04-25  Bruno Haible  <bruno@clisp.org>
19987
19988         ttyname_r: Make it work on Solaris 10.
19989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19990         if the system function has the POSIX declaration. Test whether the
19991         function fails if the buffer is less than 128 bytes large.
19992         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19993         system's ttyname_r function. Provide a reasonably large buffer.
19994         * modules/ttyname_r (Depends-on): Add extensions.
19995         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19996
19997 2010-04-25  Bruno Haible  <bruno@clisp.org>
19998
19999         Use the 'extensions' module for some more functions on Solaris.
20000         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20001         module.
20002         * doc/posix-functions/ctime_r.texi: Likewise.
20003         * doc/posix-functions/getgrgid_r.texi: Likewise.
20004         * doc/posix-functions/getgrnam_r.texi: Likewise.
20005         * doc/posix-functions/getpwnam_r.texi: Likewise.
20006         * doc/posix-functions/getpwuid_r.texi: Likewise.
20007         * doc/posix-functions/readdir_r.texi: Likewise.
20008         * doc/posix-functions/sigwait.texi: Likewise.
20009         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20010         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20011
20012 2010-04-25  Bruno Haible  <bruno@clisp.org>
20013
20014         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20015         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20016         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20017         * lib/ttyname_r.c: Include <limits.h>.
20018         (ttyname_r): Define using the system's ttyname_r function, if it exists
20019         and not on Solaris.
20020         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20021         set.
20022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20023         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20024         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20025         Reported by Simon Josefsson.
20026
20027 2010-04-25  Bruno Haible  <bruno@clisp.org>
20028
20029         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20030         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20031         * doc/posix-functions/ctime_r.texi: Likewise.
20032         * doc/posix-functions/getgrgid_r.texi: Likewise.
20033         * doc/posix-functions/getgrnam_r.texi: Likewise.
20034         * doc/posix-functions/getlogin_r.texi: Likewise.
20035         * doc/posix-functions/getpwnam_r.texi: Likewise.
20036         * doc/posix-functions/getpwuid_r.texi: Likewise.
20037         * doc/posix-functions/readdir_r.texi: Likewise.
20038         * doc/posix-functions/sigwait.texi: Likewise.
20039         * doc/posix-functions/ttyname_r.texi: Likewise.
20040         Reported by Simon Josefsson.
20041
20042 2010-04-25  Bruno Haible  <bruno@clisp.org>
20043
20044         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20045         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20046         also to --create-testdir.
20047         (func_acceptable): Don't consider the status of *-tests modules here.
20048         (func_modules_transitive_closure): Consider it here, before including a
20049         test module.
20050         (func_import, func_create_testdir): Set inc_all_direct_tests,
20051         inc_all_indirect_tests.
20052         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20053         --create-testdir and --create-megatestdir.
20054
20055 2010-04-25  Bruno Haible  <bruno@clisp.org>
20056
20057         gnulib-tool: Add --without-*-tests options.
20058         * gnulib-tool (func_usage): Document the --without-*-tests options.
20059         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20060         excl_unportable_tests): New variables.
20061         Fail if they are specified with --import or --update.
20062         (func_acceptable): Respect the excl_*_tests variables.
20063         (func_import): Set the excl_*_tests variables to empty.
20064
20065 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20066             Bruno Haible  <bruno@clisp.org>
20067
20068         Work around a MacOS X 10.4 bug with openpty.
20069         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20070         * tests/test-openpty.c (main): Close the master side explicitly.
20071
20072 2010-04-25  Bruno Haible  <bruno@clisp.org>
20073
20074         strnlen: Fix a C++ test error on MacOS X and Solaris.
20075         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20076         the function is not declared.
20077         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20078         Simon Josefsson.
20079
20080 2010-04-24  Bruno Haible  <bruno@clisp.org>
20081
20082         Avoid a gcc warning.
20083         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20084         of correct type for %08lx directive.
20085         Reported by Eric Blake.
20086
20087 2010-04-24  Bruno Haible  <bruno@clisp.org>
20088
20089         vasnprintf: Correct errno value in case of out-of-memory.
20090         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20091         or sprintf. Use the errno value from SNPRINTF or sprintf.
20092         Reported by Ian Beckwith <ianb@erislabs.net>.
20093
20094 2010-04-24  Bruno Haible  <bruno@clisp.org>
20095
20096         ansi-c++-opt: Find correct compiler when cross-compiling.
20097         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20098         AC_CHECK_PROGS.
20099         Reported by Simon Josefsson.
20100
20101 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20102
20103         vc-list-files: Add support for subversion
20104         * build-aux/vc-list-files: Use "svn list" to generate the list of
20105         files controlled by subversion.
20106
20107 2010-04-23  Jim Meyering  <meyering@redhat.com>
20108
20109         vc-list-files tests: convert to use init.sh
20110         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20111         path_prepend_.
20112         Use Exit, not exit.
20113         Use skip_ rather than open coding it.
20114         Remove trap set-up and compare definitions.
20115         * tests/test-vc-list-files-git.sh: Likewise.
20116         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20117
20118 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20119
20120         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20121         backup files.
20122
20123 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20124
20125         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20126
20127 2010-04-20  Eric Blake  <eblake@redhat.com>
20128
20129         tests: be robust to ignored SIGPIPE
20130         * tests/test-select-in.sh: Consume all output.
20131         * tests/test-lseek.sh: Check correct exit status, while avoiding
20132         EPIPE.
20133
20134 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20135             Bruno Haible  <bruno@clisp.org>
20136
20137         visibility: Don't use -fvisibility if it leads to a warning.
20138         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20139         yes, don't pretend that visibility works if it leads to a warning.
20140         Reported by Mike Gran <spk121@yahoo.com>.
20141
20142 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20143
20144         * build-aux/bootstrap: Use "git -h" for testing for supported options
20145         instead of "git --help".  The short-form option only shows a summary,
20146         and doesn't layout the full man page.  Grep for the full option name
20147         in the summary, too.
20148
20149 2010-04-19  Bruno Haible  <bruno@clisp.org>
20150
20151         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20152         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20153         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20154         mention of RELOCATABLE_STRIP.
20155         Reported by Sylvain Beucler <beuc@beuc.net>.
20156
20157 2010-04-19  Bruno Haible  <bruno@clisp.org>
20158
20159         * lib/diffseq.h: Fix typo in comment.
20160         Reported by Eric Blake.
20161
20162 2010-04-19  Bruno Haible  <bruno@clisp.org>
20163
20164         ioctl: Move autoconf macro to a .m4 file.
20165         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20166         * modules/ioctl (Files): Add it.
20167         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20168         Reported by Ian Beckwith <ianb@erislabs.net>.
20169
20170 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20171             Bruno Haible  <bruno@clisp.org>
20172
20173         diffseq: Accommodate use-case with abstract arrays.
20174         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20175         is not defined.
20176         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20177         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20178
20179 2010-04-18  Bruno Haible  <bruno@clisp.org>
20180
20181         * doc/posix-headers/stdbool.texi: More precise wording.
20182
20183 2010-04-17  Jim Meyering  <meyering@redhat.com>
20184
20185         maint.mk: use gnu-style indentation in an embedded perl script
20186         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20187         Rename variable: s/two/last_two_bytes/
20188
20189 2010-04-16  Eric Blake  <eblake@redhat.com>
20190
20191         test-stdbool: skip test that fails with Solaris CC
20192         * tests/test-stdbool.c (f): Skip test that causes compilation
20193         error under buggy C++ compiler.
20194         * lib/stdbool.in.h: Document the limitation.
20195         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20196
20197         setenv: allow compilation with C++
20198         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20199         register keyword.
20200
20201         stdint: allow test to pass with C++
20202         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20203
20204         getopt: allow compilation with C++
20205         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20206         struct.
20207         * lib/getopt.c (_getopt_internal_r): Use correct type.
20208         Reported by Dagobert Michelson, via Joel E. Denny.
20209
20210 2010-04-16  Bruno Haible  <bruno@clisp.org>
20211
20212         Override netdb.h always.
20213         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20214         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20215         Reported by Ludovic Courtès <ludo@gnu.org>.
20216
20217 2010-04-15  Bruno Haible  <bruno@clisp.org>
20218
20219         openpty: Fix mistake from 2010-03-21.
20220         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20221         Reported by Simon Josefsson.
20222
20223 2010-04-15  Eric Blake  <eblake@redhat.com>
20224
20225         test-forkpty: fix expected signature
20226         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20227         Reported by Simon Josefsson.
20228
20229 2010-04-15  Jim Meyering  <meyering@redhat.com>
20230
20231         maint.mk: texinfo_suffix_re_: correct the default regexp
20232         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20233
20234         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20235         make it configurable via texinfo_suffix_re_.
20236
20237 2010-04-14  Eric Blake  <eblake@redhat.com>
20238
20239         strtok_r: relax license to LGPLv2+
20240         * modules/strtok_r (License): Relax license.
20241         Reported by Matthias Bolte.
20242
20243 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20244
20245         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20246         version 1.4.4 by default instead of requiring the libgcrypt
20247         version used during build.  This makes it possible to use the
20248         application with older but still binary compatible libgcrypt
20249         versions.
20250
20251 2010-04-13  Eric Blake  <eblake@redhat.com>
20252
20253         getopt-gnu: match recent glibc fixes and posix ruling
20254         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20255         '+' handling, when requesting extensions.
20256         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20257         'W;' handling.
20258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20259         * doc/posix-functions/getopt.texi (getopt): Document this.
20260         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20261         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20262         Likewise.
20263
20264         getopt: merge bug fixes from glibc
20265         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20266         diagnostics.  Honor '+:' correctly.  Reject ';'.
20267
20268         getopt-posix: detect MacOS bug
20269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20270         optind when missing a required argument.
20271         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20272         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20273         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20274         Likewise.
20275
20276         getopt-posix: avoid spurious failure on Solaris
20277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20278         an indicator that setting optind=1 is sufficient for reset.
20279
20280         getopt-posix: avoid spurious failure on FreeBSD
20281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20282         in POSIX mode, since the m4 test uses it.
20283
20284         gnulib-tool: silence warning on BSD sh
20285         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20286
20287 2010-04-13  Jim Meyering  <meyering@redhat.com>
20288
20289         doc: users.txt: GNU patch now uses gnulib
20290         * users.txt: Add patch.
20291
20292 2010-04-12  Jim Meyering  <meyering@redhat.com>
20293
20294         maint.mk: generate more concise timing data for syntax-check rules
20295         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20296         " done" from each line that reports a syntax-check test duration.
20297
20298 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20299
20300         git-version-gen: use "git update-index..." rather than "git status"
20301         * build-aux/git-version-gen: Use git update-index --refresh, not
20302         "git status".  With some versions of git, "git status" would fail
20303         to update the index and result in an unwarranted "-dirty" suffix.
20304
20305 2010-04-11  Jim Meyering  <meyering@redhat.com>
20306
20307         openat: correct formatting (no semantic change)
20308         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20309         Suggested by Bruno Haible.
20310
20311 2010-04-11  Bruno Haible  <bruno@clisp.org>
20312
20313         Stricter declaration checking in testdirs.
20314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20315         If for_tests is true, augment AM_CPPFLAGS to define
20316         GNULIB_STRICT_CHECKING.
20317         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20318         GNULIB_STRICT_CHECKING is defined, verify that the function is
20319         declared.
20320
20321 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20322             Bruno Haible  <bruno@clisp.org>
20323
20324         libunistring: Improve configure output.
20325         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20326         Don't say "consider installing GNU libunistring" when checking again
20327         with libiconv.
20328
20329 2010-04-11  Bruno Haible  <bruno@clisp.org>
20330
20331         libunistring: Correct value of $LTLIBUNISTRING.
20332         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20333         correct the value of $LTLIBUNISTRING.
20334
20335 2010-04-11  Bruno Haible  <bruno@clisp.org>
20336
20337         havelib: Add static libraries to LIBS in the right order.
20338         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20339         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20340
20341 2010-04-11  Bruno Haible  <bruno@clisp.org>
20342
20343         libunistring: Detect libunistring also when it depends on libiconv.
20344         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20345         the second AC_LIB_HAVE_LINKFLAGS invocation.
20346
20347 2010-04-11  James Youngman  <jay@gnu.org>
20348
20349         close-stream: declare local scalars to be "const"
20350         * lib/close-stream.c (close_stream): Make boolean variables const
20351         to document the fact that we set but do not change them.
20352
20353 2010-04-11  Bruno Haible  <bruno@clisp.org>
20354
20355         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20356
20357 2010-04-11  Jim Meyering  <meyering@redhat.com>
20358
20359         maint.mk: don't include dist-check.mk
20360         * top/maint.mk: Remove bogus include directive.
20361
20362         maint.mk: improve empty-line-at-EOF check
20363         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20364         solution, rather than tail+Perl-based one.  The latter would read
20365         a few kilobytes from the end of each file, and did not handle empty
20366         files properly.
20367
20368         maint.mk: print the elapsed time for each syntax-check rule
20369         * top/maint.mk (sc_m_rules_): Save start time in a file.
20370         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20371         (local-check): Interpose the .z rules
20372
20373 2010-04-11  Jim Meyering  <meyering@redhat.com>
20374
20375         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20376         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20377         empty file with one that ends in an empty line.
20378
20379 2010-04-10  Bruno Haible  <bruno@clisp.org>
20380
20381         mkdir: Make it work on mingw64.
20382         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20383         * lib/mkdir.c: Update comment.
20384         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20385
20386 2010-04-10  Bruno Haible  <bruno@clisp.org>
20387
20388         Don't override improved macro from newer autoconf.
20389         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20390         autoconf >= 2.62.
20391         Reported by Joel E. Denny <jdenny@clemson.edu>.
20392
20393 2010-04-10  Jim Meyering  <meyering@redhat.com>
20394
20395         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20396         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20397
20398         maint.mk: correct a diagnostic
20399         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20400         in diagnostic; now use $prohibit.
20401
20402 2010-04-10  Bruno Haible  <address@hidden>
20403
20404         fchownat: Fix a C++ test error on Solaris 8.
20405         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20406         the function does not exist.
20407
20408 2010-04-10  Bruno Haible  <bruno@clisp.org>
20409
20410         vasnprintf: Add more tests.
20411         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20412         (test_function): Test converting an invalid wide string.
20413
20414         vasnprintf: Correct handling of unconvertible wide string arguments.
20415         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20416         VASNPRINTF.
20417         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20418         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20419         smaller than the expected maximum need for the directive. Set errno to
20420         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20421         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20423         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20424         * modules/vasnprintf (Files): Add m4/printf.m4.
20425         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20426
20427 2010-04-10  Bruno Haible  <bruno@clisp.org>
20428
20429         vasnprintf: Fix crash in %ls directive.
20430         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20431         string is passed as argument to %ls, with no precision and no width.
20432         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20433
20434 2010-04-10  Bruno Haible  <bruno@clisp.org>
20435
20436         vasnprintf: Fix multiple test failures on mingw.
20437         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20438         _snprintf, or snwprintf, not _snwprintf.
20439
20440 2010-04-10  Bruno Haible  <bruno@clisp.org>
20441
20442         write: Fix a C++ test error on mingw.
20443         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20444
20445 2010-04-10  Bruno Haible  <bruno@clisp.org>
20446
20447         vasnprintf test: Reduce code duplication.
20448         * tests/test-vasnprintf.c (test_function): New function, extracted from
20449         test_vasnprintf.
20450         (test_vasnprintf, test_asnprintf): Invoke it.
20451
20452 2010-04-10  Bruno Haible  <bruno@clisp.org>
20453
20454         strnlen: Fix warning in C++ mode on MacOS X.
20455         * lib/string.in.h (strnlen): Use the modern idiom.
20456         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20457         defining strnlen as a macro already in <config.h>.
20458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20459         REPLACE_STRNLEN.
20460         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20462
20463 2010-04-08  James Youngman  <jay@gnu.org>
20464
20465         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20466         the example.
20467
20468 2010-04-09  Jim Meyering  <meyering@redhat.com>
20469
20470         maint.mk: print better diagnostic when there is no $(_hv_file)
20471         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20472         announce that when $(_hv_file) (aka help-version) does not exist.
20473
20474         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20475         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20476         not try to interpret its random input bytes.  Jarno Rajahalme reported
20477         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20478         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20479         (mktempd_): Likewise, just in case.
20480
20481         ftruncate: add two years to projected module removal date: 2012
20482         * m4/ftruncate.m4: Adjust comments.
20483
20484         ftruncate: mark module as obsolete; even MinGW provides it, now
20485         * modules/ftruncate (Status): Obsolete.
20486         (Notice): Say that.
20487         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20489
20490 2010-04-08  Bruno Haible  <bruno@clisp.org>
20491
20492         Fix side effects from tests-related modules.
20493         * modules/dprintf-posix (Comment): New section.
20494         * modules/fprintf-posix (Comment): Likewise.
20495         * modules/obstack-printf-posix (Comment): Likewise.
20496         * modules/printf-posix (Comment): Likewise.
20497         * modules/snprintf-posix (Comment): Likewise.
20498         * modules/sprintf-posix (Comment): Likewise.
20499         * modules/vasnprintf-posix (Comment): Likewise.
20500         * modules/vasprintf-posix (Comment): Likewise.
20501         * modules/vdprintf-posix (Comment): Likewise.
20502         * modules/vfprintf-posix (Comment): Likewise.
20503         * modules/vprintf-posix (Comment): Likewise.
20504         * modules/vsnprintf-posix (Comment): Likewise.
20505         * modules/vsprintf-posix (Comment): Likewise.
20506         * modules/xprintf-posix (Comment): Likewise.
20507         * modules/xvasprintf-posix (Comment): Likewise.
20508         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20509         * modules/floorf-tests (Depends-on): Likewise.
20510         * modules/round-tests (Depends-on): Likewise.
20511         * modules/roundf-tests (Depends-on): Likewise.
20512         * modules/trunc-tests (Depends-on): Likewise.
20513         * modules/truncf-tests (Depends-on): Likewise.
20514         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20515         'fprintf-posix' module is not present.
20516         * tests/test-floorf2.c (check): Likewise.
20517         * tests/test-trunc2.c (check): Likewise.
20518         * tests/test-truncf2.c (check): Likewise.
20519         * tests/test-round2.c (equal): Likewise.
20520         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20521
20522 2010-04-07  Karl Berry  <karl@gnu.org>
20523
20524         * config/srclist.txt,
20525         * config/srclistvars.sh,
20526         * config/srclist-update: doc fixes.
20527
20528 2010-04-07  Jim Meyering  <meyering@redhat.com>
20529
20530         maint.mk: add a PATH crosschecking syntax-check rule
20531         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20532         Useful if you use a test like the one in help-version (coreutils,
20533         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20534         printed by prog --version.
20535
20536 2010-04-06  Bruno Haible  <bruno@clisp.org>
20537
20538         Fix link error on mingw.
20539         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20540         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20541
20542 2010-04-06  Bruno Haible  <bruno@clisp.org>
20543
20544         Assume rmdir exists.
20545         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20546
20547 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20548
20549         doc: update users.txt
20550         * users.txt: Add gcal.
20551
20552 2010-04-06  Jim Meyering  <meyering@redhat.com>
20553
20554         init.sh: simply unset TMPDIR rather than risking env -i
20555         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20556         although it probably works fine on all Unix-based systems, some
20557         systems (Cygwin?) cannot tolerate a totally cleared environment.
20558         Suggestion from Eric Blake.
20559
20560 2010-04-06  Jim Meyering  <meyering@redhat.com>
20561
20562         init.sh: portability fix: use env's POSIX-specified -i option not -u
20563         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20564         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20565
20566 2010-04-05  Bruno Haible  <bruno@clisp.org>
20567
20568         btowc: Work around Cygwin 1.7.2 bug.
20569         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20570         does not map NUL to 0.
20571         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20572
20573 2010-04-05  Bruno Haible  <bruno@clisp.org>
20574
20575         Make the multithread modules work on Cygwin 1.7.2.
20576         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20577         imported symbols can be declared weak, so that it returns "no" on
20578         Cygwin 1.7.2.
20579
20580 2010-04-05  Bruno Haible  <bruno@clisp.org>
20581
20582         Use the module 'strncat'.
20583         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20584
20585         Tests for module 'strncat'.
20586         * modules/strncat-tests: New file.
20587         * tests/test-strncat.c: New file.
20588
20589         New module 'strncat'.
20590         * lib/string.in.h (strncat): New declaration.
20591         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20592         * m4/strncat.m4: New file, based on m4/memchr.m4.
20593         * modules/strncat: New file.
20594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20595         is declared.
20596         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20597         REPLACE_STRNCAT.
20598         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20599         REPLACE_STRNCAT.
20600         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20601         module.
20602         * tests/test-string-c++.cc: Check signature of strncat.
20603
20604 2010-04-05  Jim Meyering  <meyering@redhat.com>
20605
20606         xstrtoumax-tests: convert to use init.sh
20607         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20608         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20609         Use Exit, not exit.
20610         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20611
20612         xstrtoimax-tests: convert to use init.sh
20613         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20614         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20615         Use Exit, not exit.
20616         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20617
20618 2010-04-05  Bruno Haible  <bruno@clisp.org>
20619
20620         sys_socket: Avoid #define replacements in C++ mode.
20621         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20622         warning to the function if possible, rather than #defining the symbol
20623         to a dysfunctional alias.
20624
20625 2010-04-05  Bruno Haible  <bruno@clisp.org>
20626
20627         fseeko: Fix C++ test error on mingw.
20628         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20629         gl_FUNC_FSEEKO.
20630         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20631         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20632         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20633         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20634
20635 2010-04-05  Bruno Haible  <bruno@clisp.org>
20636
20637         duplocale: Improve test output.
20638         * tests/test-duplocale.c (main): Print reason for skipped test.
20639
20640 2010-04-05  Bruno Haible  <bruno@clisp.org>
20641
20642         Assume rmdir exists.
20643         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20644         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20645
20646 2010-04-05  Bruno Haible  <bruno@clisp.org>
20647
20648         Fix link error on Solaris 8 with cc.
20649         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20650
20651 2010-04-05  Bruno Haible  <bruno@clisp.org>
20652
20653         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20654         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20655
20656 2010-04-05  Bruno Haible  <bruno@clisp.org>
20657
20658         vasprintf: Update documentation.
20659         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20660
20661 2010-04-05  Bruno Haible  <bruno@clisp.org>
20662
20663         ptsname: Improve test.
20664         * tests/test-ptsname.c (main): Also try the various master names of BSD
20665         systems.
20666
20667 2010-04-05  Bruno Haible  <bruno@clisp.org>
20668
20669         memchr: Avoid a possible C++ test error.
20670         * lib/string.in.h (memchr): Provide declaration if function is missing.
20671         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20672         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20674         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20675
20676 2010-04-05  Bruno Haible  <bruno@clisp.org>
20677
20678         strtok_r: Improve idiom.
20679         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20680         AC_LIBOBJ is used.
20681
20682 2010-04-05  Bruno Haible  <bruno@clisp.org>
20683
20684         strdup: Improve idiom.
20685         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20686         AC_LIBOBJ is used.
20687         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20688         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20689         when AC_LIBOBJ is used.
20690
20691 2010-04-05  Bruno Haible  <bruno@clisp.org>
20692
20693         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20694         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20695         don't set REPLACE_MBSINIT to 1.
20696         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20697         don't set REPLACE_MBRTOWC to 1.
20698         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20699         exist, don't set REPLACE_MBSRTOWCS to 1.
20700         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20701         exist, don't set REPLACE_MBSNRTOWCS to 1.
20702         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20703         don't set REPLACE_WCRTOMB to 1.
20704         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20705         exist, don't set REPLACE_WCSRTOMBS to 1.
20706         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20707         exist, don't set REPLACE_WCSNRTOMBS to 1.
20708
20709 2010-04-05  Bruno Haible  <bruno@clisp.org>
20710
20711         ldexpl: Improve idiom.
20712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20713         make sure to set HAVE_DECL_LDEXPL to 0.
20714
20715 2010-04-05  Jim Meyering  <meyering@redhat.com>
20716
20717         xstrtol-tests: convert to use init.sh
20718         * modules/xstrtol-tests (Files): Add tests/init.sh.
20719         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20720         Use Exit, not exit.
20721         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20722
20723         atexit-tests: convert to use init.sh
20724         * modules/atexit-tests (Files): Add tests/init.sh.
20725         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20726         Use Exit, not exit.
20727         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20728
20729         init.sh: fix typo
20730         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20731
20732         init.sh: make it easier for a test script to write to the tty, ...
20733         when using automake's parallel-tests mode.
20734         * tests/init.sh (stderr_fileno_): Define overridable variable.
20735         (warn_): New function, to use it.
20736         (fail_, skip_, framework_failure_): Use warn_.
20737
20738 2010-04-04  Bruno Haible  <bruno@clisp.org>
20739
20740         btowc: Avoid warning.
20741         * lib/btowc.c: Include <stdlib.h>.
20742         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20743
20744 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20745             Bruno Haible  <bruno@clisp.org>
20746
20747         wchar: Port to NetBSD 1.5.
20748         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20749         * lib/wctype.in.h (WEOF): Likewise.
20750
20751 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20752             Bruno Haible  <bruno@clisp.org>
20753
20754         Port extended stdio to NetBSD 1.5.
20755         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20756         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20757         older.
20758
20759 2010-04-04  Bruno Haible  <bruno@clisp.org>
20760
20761         string: Remove unused substitution.
20762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20763         HAVE_DECL_STRERROR.
20764         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20765
20766 2010-04-04  Bruno Haible  <bruno@clisp.org>
20767
20768         strtod: Avoid a possible C++ test error.
20769         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20770         set REPLACE_STRTOD.
20771
20772 2010-04-04  Bruno Haible  <bruno@clisp.org>
20773
20774         strerror: Update documentation.
20775         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20776
20777 2010-04-04  Bruno Haible  <bruno@clisp.org>
20778
20779         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20780         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20781         _GL_CXXALIAS_SYS_CAST.
20782
20783 2010-04-04  Bruno Haible  <bruno@clisp.org>
20784
20785         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20786         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20787         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20788         REPLACE_FREXPL to 1.
20789         * doc/posix-functions/frexpl.texi: Update documentation.
20790
20791 2010-04-04  Bruno Haible  <bruno@clisp.org>
20792
20793         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20794         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20795
20796 2010-04-04  Bruno Haible  <bruno@clisp.org>
20797
20798         Implement nanosleep for native Windows.
20799         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20800
20801 2010-04-04  Bruno Haible  <bruno@clisp.org>
20802
20803         math: Fix some C++ test errors on Solaris 8.
20804         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20805
20806 2010-04-04  Bruno Haible  <bruno@clisp.org>
20807
20808         math: Fix some C++ test errors on Cygwin.
20809         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20810         truncl): Provide declaration if the system does not have it.
20811         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20812         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20813         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20814         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20815         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20816         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20817         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20818         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20819         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20820         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20821         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20822         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20823         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20824         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20825         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20826         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20828         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20829         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20830         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20831         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20832         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20833
20834 2010-04-04  Bruno Haible  <bruno@clisp.org>
20835
20836         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20837         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20838         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20839         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20840         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20841         * m4/isinf.m4 (gl_ISINF): Likewise.
20842         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20843
20844 2010-04-04  Bruno Haible  <bruno@clisp.org>
20845
20846         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20847         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20848
20849 2010-04-04  Bruno Haible  <bruno@clisp.org>
20850
20851         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20852         * modules/tmpfile (configure.ac): Update.
20853
20854         tmpfile: Fix C++ test error on mingw.
20855         * lib/stdio.in.h (tmpfile): New declaration.
20856         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20857         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20858         * modules/tmpfile (Depends-on): Add stdio.
20859         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20860         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20862         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20863         REPLACE_TMPFILE.
20864         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20865
20866 2010-04-04  Bruno Haible  <bruno@clisp.org>
20867
20868         ioctl: Fix C++ test error on mingw.
20869         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20870         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20871         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20872
20873 2010-04-03  Bruno Haible  <bruno@clisp.org>
20874
20875         wcwidth: Fix C++ test error on mingw.
20876         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20878         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20879
20880 2010-04-03  Bruno Haible  <bruno@clisp.org>
20881
20882         nanosleep: Fix C++ test error on mingw.
20883         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20884         * lib/time.in.h (nanosleep): Use modern idiom.
20885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20886         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20887         REPLACE_NANOSLEEP to 1.
20888         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20889         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20890
20891 2010-04-03  Bruno Haible  <bruno@clisp.org>
20892
20893         strptime: Fix C++ test error on mingw.
20894         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20895         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20896         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20897         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20898         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20899         not REPLACE_STRPTIME.
20900         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20901         REPLACE_STRPTIME.
20902
20903 2010-04-03  Bruno Haible  <bruno@clisp.org>
20904
20905         timegm: Fix C++ test error on mingw.
20906         * lib/time.in.h (timegm): Use modern idiom.
20907         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20908         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20909         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20910         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20911
20912 2010-04-03  Bruno Haible  <bruno@clisp.org>
20913
20914         timegm: Assume declaration if function exists.
20915         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20916         if it exists. Don't clobber ac_cv_func_timegm.
20917
20918 2010-04-03  Bruno Haible  <bruno@clisp.org>
20919
20920         time_r: Fix C++ test error on mingw.
20921         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20922         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20923         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20924         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20925         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20926
20927 2010-04-03  Bruno Haible  <bruno@clisp.org>
20928
20929         time_r: Minor updates.
20930         * modules/time_r (Description): Mention the provided functions.
20931         * lib/time_r.c: Don't include <string.h>.
20932         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20933         * doc/posix-functions/localtime_r.texi: Likewise.
20934
20935 2010-04-03  Bruno Haible  <bruno@clisp.org>
20936
20937         time: Fix regression introduced on 2010-03-08.
20938         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20939         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20940
20941 2010-04-03  Jim Meyering  <meyering@redhat.com>
20942
20943         maint.mk: don't silently disable project-specific syntax-check rules
20944         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20945         that they need to convert their project-specific syntax-check rules
20946         to use the new _sc_search_regexp.
20947
20948 2010-04-03  Bruno Haible  <bruno@clisp.org>
20949
20950         fchdir: Fix regression introduced on 2010-03-08.
20951         * lib/unistd.in.h (fchdir): Fix declaration.
20952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20954         REPLACE_FCHDIR.
20955         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20956         REPLACE_FCHDIR.
20957
20958 2010-04-03  Bruno Haible  <bruno@clisp.org>
20959
20960         getpagesize: Fix C++ test error on mingw.
20961         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20962         system does not declare the function.
20963         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20964         declared.
20965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20966         HAVE_DECL_GETPAGESIZE.
20967         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20968
20969 2010-04-03  Bruno Haible  <bruno@clisp.org>
20970
20971         stdio: Make C++ tests work on mingw.
20972         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20973         does not declare the function.
20974
20975 2010-04-03  Bruno Haible  <bruno@clisp.org>
20976
20977         ftello: Fix C++ test error on mingw.
20978         * lib/stdio.in.h (ftello): Use modern idiom.
20979         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20980         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20981         is missing and that it needs to be replaced.
20982         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20984         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20985
20986 2010-04-03  Bruno Haible  <bruno@clisp.org>
20987
20988         fseeko: Fix C++ test error on mingw.
20989         * lib/stdio.in.h (fseeko): Use modern idiom.
20990         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20991         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20992         is missing and that it needs to be replaced.
20993         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20995         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20996
20997 2010-04-03  Bruno Haible  <bruno@clisp.org>
20998
20999         mkstemp: Fix C++ test error on mingw.
21000         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21001         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21002         function is missing and that it needs to be replaced.
21003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21004         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21005
21006 2010-04-03  Bruno Haible  <bruno@clisp.org>
21007
21008         stpncpy: Fix C++ test error on mingw.
21009         * lib/string.in.h (stpncpy): Use modern idiom.
21010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21011         function is missing and that it needs to be replaced.
21012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21013         REPLACE_STPNCPY.
21014         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21015
21016 2010-04-03  Bruno Haible  <bruno@clisp.org>
21017
21018         sys_stat: Fix C++ test error on mingw.
21019         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21020         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21021
21022 2010-04-03  Bruno Haible  <bruno@clisp.org>
21023
21024         pty: Update doc.
21025         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21026
21027 2010-04-03  Bruno Haible  <bruno@clisp.org>
21028
21029         unistd: Fix C++ test error on mingw.
21030         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21031
21032 2010-04-03  Bruno Haible  <bruno@clisp.org>
21033
21034         Update doc regarding mingw.
21035         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21036         * doc/glibc-functions/login_tty.texi: Likewise.
21037         * doc/glibc-functions/forkpty.texi: Likewise.
21038
21039 2010-04-03  Bruno Haible  <bruno@clisp.org>
21040
21041         stdlib: Avoid compilation failure of c-strtold on mingw.
21042         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21043
21044 2010-04-03  Bruno Haible  <bruno@clisp.org>
21045
21046         locale: Make C++ tests work on Cygwin and mingw.
21047         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21048         cannot provide the function.
21049         Reported by Simon Josefsson.
21050
21051 2010-04-03  Bruno Haible  <bruno@clisp.org>
21052
21053         localename: Port to MacOS X 10.6.
21054         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21055         memory layout of the locales in MacOS X 10.6 as well.
21056         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21057
21058 2010-04-02  Bruno Haible  <bruno@clisp.org>
21059
21060         gnulib-tool: Ensure that long-running tests are executed last.
21061         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21062         running tests after the one for the other tests.
21063
21064 2010-04-02  Bruno Haible  <bruno@clisp.org>
21065
21066         gnulib-tool: Ensure the tests in the main directory are executed first.
21067         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21068         start with the current directory.
21069
21070 2010-04-02  Bruno Haible  <bruno@clisp.org>
21071
21072         Tests for module 'havelib', moved here from GNU gettext.
21073         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21074         modifications.
21075         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21076         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21077         with modifications.
21078         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21079         modifications.
21080         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21081         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21082         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21083         with modifications.
21084         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21085         with modifications.
21086         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21087         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21088         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21089         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21090         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21091         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21092         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21093         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21094         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21095         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21096         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21097         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21098         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21099         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21100         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21101         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21102         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21103         with modifications.
21104         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21105         with modifications.
21106         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21107         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21108         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21109         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21110         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21111         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21112         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21113         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21114         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21115         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21116         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21117         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21118         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21119         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21120         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21121         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21122         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21123         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21124         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21125         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21126         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21127         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21128         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21129         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21130         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21131         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21132         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21133         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21134         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21135         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21136         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21137         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21138         * tests/havelib/rpathx/rpathx.c: New file, from
21139         gettext/autoconf-lib-link.
21140         * tests/havelib/rpathx/Makefile.am: New file, from
21141         gettext/autoconf-lib-link.
21142         * tests/havelib/rpathx/configure.ac: New file, from
21143         gettext/autoconf-lib-link with modifications.
21144         * tests/havelib/rpathy/rpathy.c: New file, from
21145         gettext/autoconf-lib-link.
21146         * tests/havelib/rpathy/Makefile.am: New file, from
21147         gettext/autoconf-lib-link.
21148         * tests/havelib/rpathy/configure.ac: New file, from
21149         gettext/autoconf-lib-link with modifications.
21150         * tests/havelib/rpathz/rpathz.c: New file, from
21151         gettext/autoconf-lib-link.
21152         * tests/havelib/rpathz/Makefile.am: New file, from
21153         gettext/autoconf-lib-link.
21154         * tests/havelib/rpathz/configure.ac: New file, from
21155         gettext/autoconf-lib-link with modifications.
21156         * tests/havelib/rpathlx/usex.c: New file, from
21157         gettext/autoconf-lib-link.
21158         * tests/havelib/rpathlx/Makefile.am: New file, from
21159         gettext/autoconf-lib-link.
21160         * tests/havelib/rpathlx/configure.ac: New file, from
21161         gettext/autoconf-lib-link with modifications.
21162         * tests/havelib/rpathly/usey.c: New file, from
21163         gettext/autoconf-lib-link.
21164         * tests/havelib/rpathly/Makefile.am: New file, from
21165         gettext/autoconf-lib-link.
21166         * tests/havelib/rpathly/configure.ac: New file, from
21167         gettext/autoconf-lib-link with modifications.
21168         * tests/havelib/rpathlz/usez.c: New file, from
21169         gettext/autoconf-lib-link.
21170         * tests/havelib/rpathlz/Makefile.am: New file, from
21171         gettext/autoconf-lib-link.
21172         * tests/havelib/rpathlz/configure.ac: New file, from
21173         gettext/autoconf-lib-link with modifications.
21174         * tests/havelib/rpathlyx/usey.c: New file, from
21175         gettext/autoconf-lib-link.
21176         * tests/havelib/rpathlyx/Makefile.am: New file, from
21177         gettext/autoconf-lib-link.
21178         * tests/havelib/rpathlyx/configure.ac: New file, from
21179         gettext/autoconf-lib-link with modifications.
21180         * tests/havelib/rpathlzyx/usez.c: New file, from
21181         gettext/autoconf-lib-link.
21182         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21183         gettext/autoconf-lib-link.
21184         * tests/havelib/rpathlzyx/configure.ac: New file, from
21185         gettext/autoconf-lib-link with modifications.
21186         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21187         with modifications.
21188
21189 2010-04-02  Bruno Haible  <bruno@clisp.org>
21190
21191         gnulib-tool: Create distributed built sources also for the tests.
21192         * gnulib-tool (func_create_testdir): Also generate distributed built
21193         sources in the tests directory.
21194
21195 2010-04-02  Bruno Haible  <bruno@clisp.org>
21196
21197         gnulib-tool: Obey user's environment variables.
21198         * gnulib-tool (func_create_testdir): When creating built sources,
21199         respect the environment variables for autoconf, automake, etc. given by
21200         the user.
21201
21202 2010-04-02  Bruno Haible  <bruno@clisp.org>
21203
21204         gnulib-tool: Provide the value of --m4-base to modules.
21205         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21206         of gl_m4_base.
21207
21208 2010-04-02  Eric Blake  <eblake@redhat.com>
21209
21210         maint.mk: fix some fallout
21211         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21212         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21213
21214 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21215
21216         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21217         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21218         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21219         (sc_cast_of_x_alloc_return_value): Likewise.
21220         (sc_cast_of_alloca_return_value): Likewise.
21221         (sc_space_tab): Likewise.
21222         (sc_prohibit_atoi_atof): Likewise.
21223         (sc_prohibit_magic_number_exit): Likewise.
21224         (sc_error_exit_success): Likewise.
21225         (sc_file_system): Likewise.
21226         (sc_prohibit_have_config_h): Likewise.
21227         (sc_require_config_h): Likewise.
21228         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21229         (sc_obsolete_symbols): Likewise.
21230         (sc_changelog): Likewise.
21231         (sc_program_name): Likewise.
21232         (sc_the_the): Likewise.
21233         (sc_trailing_blank): Likewise.
21234         (sc_two_space_separator_in_usage): Likewise.
21235         (sc_useless_cpp_parens): Likewise.
21236         (sc_GPL_version): Likewise.
21237         (sc_GFDL_version): Likewise.
21238         (sc_texinfo_acronym): Likewise.
21239         (sc_prohibit_cvs_keyword): Likewise.
21240         (sc_prohibit_stat_st_blocks): Likewise.
21241         (sc_prohibit_S_IS_definition): Likewise.
21242         (sc_redundant_const): Likewise.
21243         (sc_makefile_TAB_only_indentation): Likewise.
21244         (sc_m4_quote_check): Likewise.
21245         (sc_makefile_path_separator_check): Likewise.
21246         (sc_copyright_check): Likewise.
21247         (sc_Wundef_boolean): Likewise.
21248         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21249
21250         maint.mk: match 0 or more whitespace-before-function-call '('
21251         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21252         that have zero or two-and-more spaces between the function name
21253         and the open parenthesis.
21254         (sc_error_message_warn_fatal): Likewise.
21255         (sc_error_message_uppercase): Likewise.
21256         (sc_error_message_period): Likewise.
21257
21258 2010-03-31  Eric Blake  <eblake@redhat.com>
21259
21260         maint.mk: check for [ as well as test
21261         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21262         Based on a libvirt report by Matthias Bolte.
21263
21264         gnumakefile: don't squelch _version output
21265         * top/GNUmakefile (_version): Create one-shot dependency rather
21266         than using $(shell) when version must be regenerated.
21267         (_autoreconf): Run verbosely, by default.
21268
21269         sys_time: avoid compiler warnings
21270         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21271         unconditional, fixing regression from 2010-03-29.
21272         Reported by Simon Josefsson.
21273
21274 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21275
21276         maint.mk: s/_header_without_use/_sc_header_without_use/
21277         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21278         (sc_prohibit_assert_without_use): Use the new name.
21279         (sc_prohibit_close_stream_without_use): Likewise.
21280         (sc_prohibit_getopt_without_use): Likewise.
21281         (sc_prohibit_quotearg_without_use): Likewise.
21282         (sc_prohibit_quote_without_use): Likewise.
21283         (sc_prohibit_long_options_without_use): Likewise.
21284         (sc_prohibit_inttostr_without_use): Likewise.
21285         (sc_prohibit_ignore_value_without_use): Likewise.
21286         (sc_prohibit_error_without_use): Likewise.
21287         (sc_prohibit_xalloc_without_use): Likewise.
21288         (sc_prohibit_hash_without_use): Likewise.
21289         (sc_prohibit_hash_pjw_without_use): Likewise.
21290         (sc_prohibit_safe_read_without_use): Likewise.
21291         (sc_prohibit_argmatch_without_use): Likewise.
21292         (sc_prohibit_canonicalize_without_use): Likewise.
21293         (sc_prohibit_root_dev_ino_without_use): Likewise.
21294         (sc_prohibit_openat_without_use): Likewise.
21295         (sc_prohibit_c_ctype_without_use): Likewise.
21296         (sc_prohibit_signal_without_use): Likewise.
21297         (sc_prohibit_intprops_without_use): Likewise.
21298
21299 2010-03-30  Eric Blake  <eblake@redhat.com>
21300
21301         maint: improve module indicators
21302         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21303         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21304         columns, and avoid extra macro expansion.
21305
21306         fdopendir: work around FreeBSD bug
21307         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21308         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21309         * modules/dirent (Makefile.am): Substitute it.
21310         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21311         declaration.
21312         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21313         fix.
21314         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21315
21316 2010-03-29  Bruno Haible  <bruno@clisp.org>
21317
21318         Emit #pragma system_header after the inclusion guard, not before.
21319         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21320         guard that spans the entire file, not before. This enables an
21321         optimization in GCC's preprocessor.
21322         * lib/ctype.in.h: Likewise.
21323         * lib/dirent.in.h: Likewise.
21324         * lib/errno.in.h: Likewise.
21325         * lib/float.in.h: Likewise.
21326         * lib/getopt.in.h: Likewise.
21327         * lib/iconv.in.h: Likewise.
21328         * lib/langinfo.in.h: Likewise.
21329         * lib/locale.in.h: Likewise.
21330         * lib/math.in.h: Likewise.
21331         * lib/netdb.in.h: Likewise.
21332         * lib/netinet_in.in.h: Likewise.
21333         * lib/pty.in.h: Likewise.
21334         * lib/sched.in.h: Likewise.
21335         * lib/se-selinux.in.h: Likewise.
21336         * lib/search.in.h: Likewise.
21337         * lib/spawn.in.h: Likewise.
21338         * lib/stdarg.in.h: Likewise.
21339         * lib/stdint.in.h: Likewise.
21340         * lib/string.in.h: Likewise.
21341         * lib/strings.in.h: Likewise.
21342         * lib/sys_file.in.h: Likewise.
21343         * lib/sys_ioctl.in.h: Likewise.
21344         * lib/sys_time.in.h: Likewise.
21345         * lib/sys_times.in.h: Likewise.
21346         * lib/sys_utsname.in.h: Likewise.
21347         * lib/sys_wait.in.h: Likewise.
21348         * lib/sysexits.in.h: Likewise.
21349         * lib/wctype.in.h: Likewise.
21350
21351 2010-03-28  James Youngman  <jay@gnu.org>
21352
21353         save-cwd: don't leak a file descriptor when the caller execs.
21354         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21355         saved file descriptor.
21356         * modules/save-cwd (Depends-on): Depend on cloexec.
21357
21358 2010-03-29  Bruno Haible  <bruno@clisp.org>
21359
21360         Remove vestiges of fts-lgpl module.
21361         * lib/fts_.h: Assume GNULIB_FTS is 1.
21362         * lib/fts.c: Likewise.
21363         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21364
21365 2010-03-28  Bruno Haible  <bruno@clisp.org>
21366
21367         Fix definition of tests witness macro.
21368         * gnulib-tool (func_import): Fix definition of witness macro.
21369
21370 2010-03-28  Bruno Haible  <bruno@clisp.org>
21371
21372         Fix ioctl's protoype on glibc systems.
21373         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21374         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21375         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21376         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21377         signature. If not, arrange to replace the ioctl function.
21378         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21379         REPLACE_IOCTL.
21380         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21381         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21382         Reported by Ludovic Courtès <ludo@gnu.org>.
21383
21384 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21385
21386         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21387         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21388         made it so grep -r --include=GLOB* ... did not work.
21389
21390 2010-03-26  Jim Meyering  <meyering@redhat.com>
21391             Eric Blake  <eblake@redhat.com>
21392
21393         maint.mk: prohibit use of test's -o and -a operators
21394         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21395
21396 2010-03-28  Bruno Haible  <bruno@clisp.org>
21397
21398         Remove unused GNULIB_XYZ macro definitions.
21399         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21400         invocation.
21401
21402 2010-03-28  Bruno Haible  <bruno@clisp.org>
21403
21404         Mark privileged tests modules.
21405         * modules/idpriv-drop-tests (Status): New section.
21406         * modules/idpriv-droptemp-tests (Status): New section.
21407
21408 2010-03-28  Bruno Haible  <bruno@clisp.org>
21409
21410         Split C++ tests into separate tests modules.
21411         * modules/dirent-c++-tests: New file, extracted from
21412         modules/dirent-tests.
21413         * modules/dirent-tests: Depend on it.
21414         * modules/fcntl-h-c++-tests: New file, extracted from
21415         modules/fcntl-h-tests.
21416         * modules/fcntl-h-tests: Depend on it.
21417         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21418         * modules/glob-tests: Depend on it.
21419         * modules/iconv-h-c++-tests: New file, extracted from
21420         modules/iconv-h-tests.
21421         * modules/iconv-h-tests: Depend on it.
21422         * modules/langinfo-c++-tests: New file, extracted from
21423         modules/langinfo-tests.
21424         * modules/langinfo-tests: Depend on it.
21425         * modules/locale-c++-tests: New file, extracted from
21426         modules/locale-tests.
21427         * modules/locale-tests: Depend on it.
21428         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21429         * modules/math-tests: Depend on it.
21430         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21431         * modules/pty-tests: Depend on it.
21432         * modules/search-c++-tests: New file, extracted from
21433         modules/search-tests.
21434         * modules/search-tests: Depend on it.
21435         * modules/signal-c++-tests: New file, extracted from
21436         modules/signal-tests.
21437         * modules/signal-tests: Depend on it.
21438         * modules/spawn-c++-tests: New file, extracted from
21439         modules/spawn-tests.
21440         * modules/spawn-tests: Depend on it.
21441         * modules/stdio-c++-tests: New file, extracted from
21442         modules/stdio-tests.
21443         * modules/stdio-tests: Depend on it.
21444         * modules/stdlib-c++-tests: New file, extracted from
21445         modules/stdlib-tests.
21446         * modules/stdlib-tests: Depend on it.
21447         * modules/string-c++-tests: New file, extracted from
21448         modules/string-tests.
21449         * modules/string-tests: Depend on it.
21450         * modules/sys_ioctl-c++-tests: New file, extracted from
21451         modules/sys_ioctl-tests.
21452         * modules/sys_ioctl-tests: Depend on it.
21453         * modules/sys_select-c++-tests: New file, extracted from
21454         modules/sys_select-tests.
21455         * modules/sys_select-tests: Depend on it.
21456         * modules/sys_socket-c++-tests: New file, extracted from
21457         modules/sys_socket-tests.
21458         * modules/sys_socket-tests: Depend on it.
21459         * modules/sys_stat-c++-tests: New file, extracted from
21460         modules/sys_stat-tests.
21461         * modules/sys_stat-tests: Depend on it.
21462         * modules/sys_time-c++-tests: New file, extracted from
21463         modules/sys_time-tests.
21464         * modules/sys_time-tests: Depend on it.
21465         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21466         * modules/time-tests: Depend on it.
21467         * modules/unistd-c++-tests: New file, extracted from
21468         modules/unistd-tests.
21469         * modules/unistd-tests: Depend on it.
21470         * modules/wchar-c++-tests: New file, extracted from
21471         modules/wchar-tests.
21472         * modules/wchar-tests: Depend on it.
21473         * modules/wctype-c++-tests: New file, extracted from
21474         modules/wctype-tests.
21475         * modules/wctype-tests: Depend on it.
21476         Reported by Simon Josefsson.
21477
21478 2010-03-28  Bruno Haible  <bruno@clisp.org>
21479
21480         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21481         * gnulib-tool (func_exists_module): New function, extracted from
21482         func_verify_module.
21483         (func_verify_module): Use it.
21484         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21485         'foo' only if 'foo' exists.
21486         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21487         module.
21488
21489 2010-03-28  Bruno Haible  <bruno@clisp.org>
21490
21491         gnulib-tool: Add support for special categories of tests.
21492         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21493         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21494         (func_usage): Document them.
21495         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21496         inc_unportable_tests, inc_all_tests): New variables.
21497         (func_acceptable): Consider these variables.
21498         (func_modules_transitive_closure): Make it work when the 'Status' field
21499         consists of multiple words.
21500         (func_import): Store and restore the values of inc_cxx_tests,
21501         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21502         inc_all_tests in gnulib-comp.m4.
21503         (func_create_testdir): Set inc_all_tests to true.
21504         * doc/gnulib.texi (Extra tests modules): New section.
21505         Suggested by Jim Meyering.
21506
21507 2010-03-28  Bruno Haible  <bruno@clisp.org>
21508
21509         ansi-c++-opt: Allow turning off the C++ build by default.
21510         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21511         gl_CXX_CHOICE_DEFAULT_NO is defined.
21512         Requested by Eric Blake.
21513
21514 2010-03-28  Bruno Haible  <bruno@clisp.org>
21515
21516         unistd: Avoid #define replacements in C++ mode.
21517         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21518         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21519         setsockopt, shutdown, select): In C++, attach a warning to the function
21520         if possible, rather than #defining the symbol to a dysfunctional alias.
21521         Reported by John W. Eaton <jwe@gnu.org>.
21522
21523 2010-03-28  Bruno Haible  <bruno@clisp.org>
21524
21525         Fix link errors on mingw.
21526         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21527         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21528         $(LIBSOCKET).
21529         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21530         $(LIBSOCKET).
21531
21532 2010-03-28  Bruno Haible  <bruno@clisp.org>
21533             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21534
21535         lib-ignore: Determine different options for different compilers.
21536         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21537         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21538         Add comments.
21539         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21540         * NEWS: Mention the change.
21541
21542 2010-03-27  Bruno Haible  <bruno@clisp.org>
21543
21544         Remove unused GNULIB_XYZ macro definitions.
21545         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21546         * modules/fseek (configure.ac): Likewise.
21547         * modules/ioctl (configure.ac): Likewise.
21548         * modules/open (configure.ac): Likewise.
21549         * modules/stdlib-safer (configure.ac): Likewise.
21550
21551 2010-03-27  Bruno Haible  <bruno@clisp.org>
21552
21553         Add a remark about certain modules.
21554         * modules/malloc (Comment): New section.
21555         * modules/realloc (Comment): Likewise.
21556         * modules/sigpipe (Comment): Likewise.
21557
21558 2010-03-27  Bruno Haible  <bruno@clisp.org>
21559
21560         Resolve conflict between the two kinds of module indicators.
21561         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21562         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21563         * modules/canonicalize (configure.ac): Invoke
21564         gl_MODULE_INDICATOR_FOR_TESTS.
21565         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21566         GNULIB_XYZ.
21567         * tests/test-dirent-c++.cc: Likewise.
21568         * tests/test-dirent-safer.c: Likewise.
21569         * tests/test-dup2.c: Likewise.
21570         * tests/test-fchdir.c: Likewise.
21571         * tests/test-fcntl-h-c++.cc: Likewise.
21572         * tests/test-getopt.c: Likewise.
21573         * tests/test-getopt.h: Likewise.
21574         * tests/test-langinfo-c++.cc: Likewise.
21575         * tests/test-locale-c++.cc: Likewise.
21576         * tests/test-math-c++.cc: Likewise.
21577         * tests/test-pty-c++.cc: Likewise.
21578         * tests/test-search-c++.cc: Likewise.
21579         * tests/test-signal-c++.cc: Likewise.
21580         * tests/test-spawn-c++.cc: Likewise.
21581         * tests/test-stdio-c++.cc: Likewise.
21582         * tests/test-stdlib-c++.cc: Likewise.
21583         * tests/test-string-c++.cc: Likewise.
21584         * tests/test-sys_ioctl-c++.cc: Likewise.
21585         * tests/test-sys_select-c++.cc: Likewise.
21586         * tests/test-sys_socket-c++.cc: Likewise.
21587         * tests/test-sys_stat-c++.cc: Likewise.
21588         * tests/test-sys_time-c++.cc: Likewise.
21589         * tests/test-time-c++.cc: Likewise.
21590         * tests/test-unistd-c++.cc: Likewise.
21591         * tests/test-wchar-c++.cc: Likewise.
21592         * tests/uninorm/test-u8-nfc.c: Likewise.
21593         * tests/uninorm/test-u8-nfd.c: Likewise.
21594         * tests/uninorm/test-u8-nfkc.c: Likewise.
21595         * tests/uninorm/test-u8-nfkd.c: Likewise.
21596         * tests/uninorm/test-u16-nfc.c: Likewise.
21597         * tests/uninorm/test-u16-nfd.c: Likewise.
21598         * tests/uninorm/test-u16-nfkc.c: Likewise.
21599         * tests/uninorm/test-u16-nfkd.c: Likewise.
21600         * tests/uninorm/test-u32-nfc.c: Likewise.
21601         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21602         * tests/uninorm/test-u32-nfd.c: Likewise.
21603         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21604         * tests/uninorm/test-u32-nfkc.c: Likewise.
21605         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21606         * tests/uninorm/test-u32-nfkd.c: Likewise.
21607         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21608         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21609
21610 2010-03-27  Bruno Haible  <bruno@clisp.org>
21611
21612         Distinguish two kinds of module indicators.
21613         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21614         gl_MODULE_INDICATOR.
21615         (gl_MODULE_INDICATOR): New macro.
21616         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21617         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21618         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21619         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21620         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21621         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21622         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21623         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21624         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21625         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21626         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21627         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21629         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21630         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21631         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21632         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21633         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21634         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21635         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21636         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21637         * modules/cloexec (configure.ac): Likewise.
21638         * modules/getopt-gnu (configure.ac): Likewise.
21639         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21640         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21641         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21642         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21643
21644 2010-03-27  Bruno Haible  <bruno@clisp.org>
21645
21646         New module description field 'Comment'.
21647         * gnulib-tool: New option --extract-comment.
21648         (func_usage): Document it.
21649         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21650         (func_get_comment): New function.
21651         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21652
21653 2010-03-27  Bruno Haible  <bruno@clisp.org>
21654
21655         Addendum to 2010-02-07 commit.
21656         * gnulib-tool (func_usage): Document --extract-applicability option.
21657
21658 2010-03-27  Bruno Haible  <bruno@clisp.org>
21659
21660         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21661         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21662         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21663         rather than link errors.
21664
21665 2010-03-27  Bruno Haible  <bruno@clisp.org>
21666
21667         Avoid side effects from tests-related modules on the compilation of lib.
21668         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21669         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21670         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21671         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21672         macro.
21673         (func_import): Define a witness macro. Assign it a value that depends
21674         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21675         tests-related modules.
21676         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21677         Reported by Jim Meyering.
21678
21679 2010-03-27  Bruno Haible  <bruno@clisp.org>
21680
21681         Factorize common .m4 code.
21682         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21683         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21684         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21685         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21686         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21687         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21688         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21689         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21690         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21691         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21692         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21693         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21694         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21695         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21696         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21697         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21698         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21699         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21701         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21704         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21705         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21706         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21707         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21708         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21709         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21710         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21711         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21712         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21713         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21714
21715 2010-03-27  Bruno Haible  <bruno@clisp.org>
21716
21717         Fix a compilation error on Cygwin with g++ >= 4.3.
21718         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21719         if it is undefined or if we alias it to chmod.
21720         (lstat): Don't warn about the use of this function if it is undefined
21721         or if we alias it to stat.
21722         Reported by Simon Josefsson.
21723
21724 2010-03-27  Bruno Haible  <bruno@clisp.org>
21725
21726         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21727         * modules/getlogin (configure.ac): Update.
21728
21729         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21730         * modules/getlogin_r (configure.ac): Update.
21731
21732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21734         * modules/inet_ntop (configure.ac): Update.
21735
21736         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21737         * modules/inet_pton (configure.ac): Update.
21738
21739         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21740         * modules/mbslen (configure.ac): Update.
21741
21742         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21743         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21744         * modules/forkpty (configure.ac): Update.
21745         * modules/openpty (configure.ac): Update.
21746
21747 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21748
21749         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21750         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21751
21752 2010-03-25  Eric Blake  <eblake@redhat.com>
21753
21754         maint: use pragma consistently across replacement headers
21755         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21756         * lib/dirent.in.h (system_header): Likewise.
21757         * lib/errno.in.h (system_header): Likewise.
21758         * lib/float.in.h (system_header): Likewise.
21759         * lib/getopt.in.h (system_header): Likewise.
21760         * lib/iconv.in.h (system_header): Likewise.
21761         * lib/inttypes.in.h (system_header): Likewise.
21762         * lib/langinfo.in.h (system_header): Likewise.
21763         * lib/locale.in.h (system_header): Likewise.
21764         * lib/math.in.h (system_header): Likewise.
21765         * lib/netdb.in.h (system_header): Likewise.
21766         * lib/netinet_in.in.h (system_header): Likewise.
21767         * lib/pty.in.h (system_header): Likewise.
21768         * lib/sched.in.h (system_header): Likewise.
21769         * lib/se-selinux.in.h (system_header): Likewise.
21770         * lib/search.in.h (system_header): Likewise.
21771         * lib/spawn.in.h (system_header): Likewise.
21772         * lib/stdarg.in.h (system_header): Likewise.
21773         * lib/stdint.in.h (system_header): Likewise.
21774         * lib/string.in.h (system_header): Likewise.
21775         * lib/strings.in.h (system_header): Likewise.
21776         * lib/sys_file.in.h (system_header): Likewise.
21777         * lib/sys_ioctl.in.h (system_header): Likewise.
21778         * lib/sys_socket.in.h (system_header): Likewise.
21779         * lib/sys_times.in.h (system_header): Likewise.
21780         * lib/sys_utsname.in.h (system_header): Likewise.
21781         * lib/sys_wait.in.h (system_header): Likewise.
21782         * lib/sysexits.in.h (system_header): Likewise.
21783         * lib/unistd.in.h (system_header): Likewise.
21784         * lib/wctype.in.h (system_header): Likewise.
21785
21786         arpa/inet: fix mingw compilation warning
21787         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21788         Reported by Matthew Bolte.
21789
21790 2010-03-25  Bruno Haible  <bruno@clisp.org>
21791
21792         Avoid collision between gnulib wrapper and libintl wrapper.
21793         * lib/printf.c (printf): Don't define if a printf wrapper is already
21794         defined in intl/printf.c.
21795         Reported by Michel Boaventura <michel@michelboaventura.com>.
21796
21797 2010-03-25  Bruno Haible  <bruno@clisp.org>
21798
21799         Use ANSI C.
21800         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21801
21802 2010-03-25  Bruno Haible  <bruno@clisp.org>
21803
21804         Minor formatting changes.
21805         * lib/acosl.c: Insert space before function argument list.
21806         * lib/argz.c: Likewise.
21807         * lib/asinl.c: Likewise.
21808         * lib/expl.c: Likewise.
21809         * lib/gen-uni-tables.c: Likewise.
21810         * lib/gettext.h: Likewise.
21811         * lib/glthread/lock.h: Likewise.
21812         * lib/tanl.c: Likewise.
21813         * lib/uniname/uniname.c: Likewise.
21814         * tests/test-idpriv-drop.c: Likewise.
21815         * tests/test-idpriv-droptemp.c: Likewise.
21816         * tests/test-lock.c: Likewise.
21817         * tests/test-tls.c: Likewise.
21818         * lib/argp-help.c: Insert space before function-like macro argument
21819         list.
21820         * lib/memcmp.c: Likewise.
21821         * tests/test-base64.c: Likewise.
21822         * lib/localename.c: Insert space before sizeof's argument list.
21823         * lib/safe-alloc.h: Likewise.
21824         * lib/file-set.h: Insert space before macro argument list.
21825         * tests/test-argp.c: Likewise.
21826         * lib/argp-namefrob.h: Insert space before function parameter list.
21827         * lib/getaddrinfo.c: Likewise.
21828         * lib/netdb.in.h: Likewise.
21829         * lib/parse-duration.h: Likewise.
21830         * lib/parse-duration.c: Likewise.
21831         * lib/poll.c: Likewise.
21832         * lib/select.c: Likewise.
21833         * lib/trim.h: Likewise.
21834         * tests/test-usleep.c: Likewise.
21835         * lib/ldexpl.c: Insert space before function parameter list and before
21836         function argument list.
21837         * lib/logl.c: Likewise.
21838         * lib/sqrtl.c: Likewise.
21839         * lib/trim.c: Likewise.
21840         * lib/cosl.c: Use GNU style indentation. Insert space before function
21841         argument list.
21842         * lib/sinl.c: Likewise.
21843         * lib/tsearch.c: Insert space after 'for'.
21844         Reported by Jim Meyering.
21845
21846 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21847
21848         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21849         config header before grepping, as it's not present before
21850         autoreconf/configure are run.  Reported by Simon Josefsson.
21851
21852 2010-03-23  Bruno Haible  <bruno@clisp.org>
21853
21854         pt_chown: Make it work with automake < 1.11.
21855         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21856         Reported by Simon Josefsson.
21857
21858 2010-03-23  Bruno Haible  <bruno@clisp.org>
21859
21860         pt_chown: Don't depend on GPLed modules.
21861         * lib/pt_chown.c: Don't include idpriv.h.
21862         (main): Don't drop privileges.
21863         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21864         Reported by Simon Josefsson.
21865
21866 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21867
21868         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21869         suggestions from karl@freefriends.org (Karl Berry).
21870
21871 2010-03-22  Eric Blake  <eblake@redhat.com>
21872
21873         gethostname: further tweaks
21874         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21875         are overriding gethostname.
21876         Suggested by Bruno Haible.
21877
21878 2010-03-21  Bruno Haible  <bruno@clisp.org>
21879
21880         Fix comments.
21881         * lib/forkpty.c (rpl_forkpty): Fix comment.
21882         * lib/openpty.c (rpl_openpty): Likewise.
21883         Reported by Eric Blake.
21884
21885 2010-03-22  Eric Blake  <eblake@redhat.com>
21886
21887         gethostname: fix build on mingw
21888         * lib/unistd.in.h (includes): Work around fact that mingw
21889         <winsock2.h> re-includes <unistd.h>, by avoiding any
21890         redeclarations if we are being included by <winsock2.h>.
21891         Reported by Matthias Bolte.
21892
21893 2010-03-21  Bruno Haible  <bruno@clisp.org>
21894
21895         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21896         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21897         modifications.
21898         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21899         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21900         provide the replacement.
21901         * modules/forkpty (Depends-on): Add openpty, login_tty.
21902         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21903         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21904         * doc/glibc-functions/forkpty.texi: More supported platforms.
21905         * config/srclist.txt: Add forkpty.c (commented).
21906
21907 2010-03-21  Bruno Haible  <bruno@clisp.org>
21908
21909         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21910         (Makefile.am): Verify that PTY_LIB is defined.
21911
21912         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21913
21914 2010-03-21  Bruno Haible  <bruno@clisp.org>
21915
21916         Tests for module 'login_tty'.
21917         * modules/login_tty-tests: New file.
21918         * tests/test-login_tty.c: New file.
21919
21920         New module 'login_tty'.
21921         * lib/login_tty.c: New file.
21922         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21923         * modules/login_tty: New file.
21924         * doc/glibc-functions/login_tty.texi: Mention the new module.
21925
21926 2010-03-21  Bruno Haible  <bruno@clisp.org>
21927
21928         login_tty: Documentation.
21929         * doc/glibc-functions/login_tty.texi: New file.
21930         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21931
21932 2010-03-21  Bruno Haible  <bruno@clisp.org>
21933
21934         pty: Consistent macro naming.
21935         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21936         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21937         * modules/pty (configure.ac): Update.
21938
21939 2010-03-21  Bruno Haible  <bruno@clisp.org>
21940
21941         Tests for openpty: Make stricter.
21942         * tests/test-openpty.c (main): Add test of canonical processing and
21943         erase.
21944         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21945
21946         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21947         * lib/openpty.c (openpty): New replacement function.
21948         * lib/pty.in.h: Include <termios.h>.
21949         (openpty): Update declaration. Add comments.
21950         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21951         is not declared, arrange to provide the replacement. Check for _getpty
21952         and posix_openpt.
21953         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21954         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21955         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21956         * modules/pty-tests (test_pty_c___LDADD): New variable.
21957         * doc/glibc-functions/openpty.texi: More supported platforms.
21958
21959 2010-03-21  Bruno Haible  <bruno@clisp.org>
21960
21961         setenv: Tweaks.
21962         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21963         the test program.
21964         * doc/posix-functions/setenv.texi: Update platforms list.
21965
21966 2010-03-21  Bruno Haible  <bruno@clisp.org>
21967
21968         New module 'unlockpt'.
21969         * lib/unlockpt.c: New file, from glibc with modifications.
21970         * m4/unlockpt.m4: New file.
21971         * modules/unlockpt: New file.
21972         * lib/stdlib.in.h (unlockpt): New declaration.
21973         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21974         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21975         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21976         HAVE_UNLOCKPT.
21977         * doc/posix-functions/unlockpt.texi: Mention the new module.
21978         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21979         * config/srclist.txt: Add unlockpt.c (commented).
21980
21981 2010-03-21  Jim Meyering  <meyering@redhat.com>
21982
21983         maint.mk: prohibit inclusion of "intprops.h" without use
21984         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21985
21986 2010-03-21  Bruno Haible  <bruno@clisp.org>
21987
21988         New module 'grantpt'.
21989         * lib/grantpt.c: New file, from glibc with modifications.
21990         * m4/grantpt.m4: New file.
21991         * modules/grantpt: New file.
21992         * lib/stdlib.in.h (grantpt): New declaration.
21993         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21994         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21995         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21996         HAVE_GRANTPT.
21997         * doc/posix-functions/grantpt.texi: Mention the new module.
21998         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21999         * config/srclist.txt: Add grantpt.c (commented).
22000
22001 2010-03-21  Bruno Haible  <bruno@clisp.org>
22002
22003         New module 'pt_chown'.
22004         * lib/pt_chown.c: New file, from glibc with modifications.
22005         * lib/pty-private.h: New file, from glibc with modifications.
22006         * modules/pt_chown: New file.
22007         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22008
22009 2010-03-21  Bruno Haible  <bruno@clisp.org>
22010
22011         Tests for module 'ptsname'.
22012         * modules/ptsname-tests: New file.
22013         * tests/test-ptsname.c: New file.
22014
22015         New module 'ptsname'.
22016         * lib/ptsname.c: New file, from glibc with modifications.
22017         * m4/ptsname.m4: New file.
22018         * modules/ptsname: New file.
22019         * lib/stdlib.in.h (ptsname): New declaration.
22020         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22021         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22022         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22023         HAVE_PTSNAME.
22024         * doc/posix-functions/ptsname.texi: Mention the new module.
22025         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22026         * config/srclist.txt: Add ptsname.c (commented).
22027
22028 2010-03-21  Bruno Haible  <bruno@clisp.org>
22029
22030         Tests for module 'ttyname_r'.
22031         * modules/ttyname_r-tests: New file.
22032         * tests/test-ttyname_r.c: New file.
22033
22034         New module 'ttyname_r'.
22035         * lib/ttyname_r.c: New file.
22036         * m4/ttyname_r.m4: New file.
22037         * modules/ttyname_r: New file.
22038         * lib/unistd.in.h (ttyname_r): New declaration.
22039         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22040         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22041         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22042         HAVE_TTYNAME_R.
22043         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22044         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22045
22046 2010-03-20  Bruno Haible  <bruno@clisp.org>
22047
22048         signal: Undefine macro definitions in C++ mode.
22049         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22050         sigfillset): Undefine macro definitions from the system header in C++
22051         mode.
22052         Reported by John W. Eaton <jwe@gnu.org>.
22053
22054 2010-03-20  Bruno Haible  <bruno@clisp.org>
22055
22056         Ensure no #include statements inside extern "C" { ... }.
22057         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22058         contain #include statements.
22059         * lib/time.in.h: Likewise.
22060
22061 2010-03-20  Bruno Haible  <bruno@clisp.org>
22062
22063         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22064         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22065         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22066         Reported by John W. Eaton <jwe@gnu.org>.
22067
22068 2010-03-20  Bruno Haible  <bruno@clisp.org>
22069
22070         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22071         Reported by Jim Meyering.
22072
22073 2010-03-20  Bruno Haible  <bruno@clisp.org>
22074
22075         pipe: Set errno upon failure.
22076         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22077         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22078         errno value in error message.
22079
22080 2010-03-20  Bruno Haible  <bruno@clisp.org>
22081             Jim Meyering  <meyering@redhat.com>
22082
22083         lchown: Avoid "unused variable" warning.
22084         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22085
22086 2010-03-20  Bruno Haible  <bruno@clisp.org>
22087
22088         Work around unlink() bug on MacOS X 10.5.6.
22089         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22090         attempting to unlink a parent directory.
22091         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22092         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22093         activate for the replacement function.
22094         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22095
22096 2010-03-20  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix link errors on Solaris 8.
22099         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22100         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22101
22102 2010-03-19  Jim Meyering  <meyering@redhat.com>
22103
22104         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22105         The _LIBC implementation of build_range_exp correctly honors the
22106         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22107         However, the non-_LIBC implementation would ignore that syntax-bit
22108         flag and return REG_ERANGE unconditionally.
22109         This change makes it honor that flag.
22110         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22111         Make two pointer parameters "const".
22112         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22113         (parse_bracket_exp): Update caller.
22114
22115         regex.m4: correct the reversed range endpoint ([b-a]) test
22116         * m4/regex.m4: When requiring that [b-a] evoke failure,
22117         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22118         test pass once again for x86-based systems.
22119
22120 2010-03-19  Bruno Haible  <bruno@clisp.org>
22121
22122         scandir: Fix link error on Solaris 8.
22123         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22124         macros.
22125
22126 2010-03-19  Bruno Haible  <bruno@clisp.org>
22127
22128         getusershell: Fix documentation.
22129         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22130         module.
22131         * doc/glibc-functions/setusershell.texi: Likewise.
22132
22133         getusershell: Provide declaration, missing on Solaris 9.
22134         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22135         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22136         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22137         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22139         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22140         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22141         HAVE_GETUSERSHELL.
22142         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22143
22144 2010-03-19  Bruno Haible  <bruno@clisp.org>
22145
22146         wctype: Provide iswblank function.
22147         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22148         exists and is fine.
22149         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22150         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22151         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22152         * doc/posix-functions/iswblank.texi: Update.
22153
22154 2010-03-19  Bruno Haible  <bruno@clisp.org>
22155
22156         Tests of module 'pty' in C++ mode.
22157         * modules/pty-tests: New file.
22158         * tests/test-pty-c++.cc: New file.
22159         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22160
22161 2010-03-19  Eric Blake  <eblake@redhat.com>
22162
22163         logb: fix documentation
22164         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22165         1.5 declaration bug.
22166
22167         forkpty, openpty: prefer glibc's const-safe prototype
22168         * lib/forkpty.c (rpl_forkpty): New file.
22169         * lib/openpty.c (rpl_openpty): Likewise.
22170         * modules/forkpty (Files): Distribute it.
22171         * modules/openpty (Files): Likewise.
22172         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22173         check...
22174         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22175         replacement for for non-const BSD signature.
22176         * modules/pty (Makefile.am): Substitute witnesses.
22177         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22178         * tests/test-forkpty.c: Update signature check.
22179         * tests/test-openpty.c: Likewise.
22180         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22181         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22182
22183         forkpty, openpty: split functions into new modules
22184         * modules/pty (Makefile.am): Substitute new witnesses.
22185         (Libraries): Move library detection...
22186         * modules/forkpty: ...into new module.
22187         * modules/openpty: Another new module.
22188         * modules/pty-tests: Rename and split...
22189         * modules/forkpty-tests: ...to this...
22190         * modules/openpty-tests: ...and this.
22191         * tests/test-pty.c: Rename and split...
22192         * tests/test-forkpty.c: ...to this...
22193         * tests/test-openpty.c: ...and this.
22194         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22195         (gl_PTY): Split library searching...
22196         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22197         (gl_FORKPTY, gl_OPENPTY): New macros.
22198         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22199         * NEWS: Mention the split.
22200         * MODULES.html.sh (Misc): Document the modules.
22201         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22202         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22203
22204         pty: improve replacement header
22205         * lib/pty.in.h: New file.
22206         * modules/pty (Files): Ship it.
22207         (Makefile.am): Always build replacement.
22208         * m4/pty.m4: Rename...
22209         * m4/pty_h.m4: ...to this.
22210         (gl_PTY): Modernize setting of witness macros; update check of
22211         forkpty to take proper advantage of cache.
22212         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22213
22214         getopt: avoid compiler warning
22215         * lib/getopt.c (attribute_hidden): Remove unused macro.
22216
22217 2010-03-18  Bruno Haible  <bruno@clisp.org>
22218
22219         Fix link errors on Solaris 8.
22220         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22221         * modules/search-tests (test_search_c___LDADD): Likewise.
22222         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22223         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22224         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22225         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22226         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22227         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22228         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22229
22230 2010-03-18  Bruno Haible  <bruno@clisp.org>
22231
22232         Fix bug introduced on 2010-03-14.
22233         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22234         (gl_SPAWN_H): Require it.
22235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22236         Reported by Simon Josefsson.
22237
22238 2010-03-18  Bruno Haible  <bruno@clisp.org>
22239
22240         Fix typo introduced on 2009-12-31.
22241         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22242         posix_spawn_file_actions_adddup2.
22243
22244 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22245         and Eric Blake  <eblake@redhat.com>
22246
22247         test-vc-list-files-git: make more robust
22248         * tests/test-vc-list-files-git.sh: Unset problematic environment
22249         variables.  Chain commands together.
22250
22251 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22252
22253         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22254         `AC_CHECK_DECL' invocation.
22255
22256 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22257
22258         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22259         appears before executable statements. Suggested by Petr Sumbera
22260         <Petr.Sumbera@Sun.COM>.
22261
22262 2010-03-14  Bruno Haible  <bruno@clisp.org>
22263
22264         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22265         portability problems. Instead use a simpler test.
22266         (main): Check that invalid arguments are rejected only on Linux.
22267
22268 2010-03-14  Bruno Haible  <bruno@clisp.org>
22269
22270         Fix bug introduced on 2009-12-31.
22271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22272         gl_PREREQ_SYS_H_WINSOCK2 always.
22273         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22274         SYS_SOCKET_H variable.
22275         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22276         Update comments.
22277         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22278         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22279         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22280         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22281         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22282
22283 2010-03-14  Bruno Haible  <bruno@clisp.org>
22284
22285         Fix values returned by sinl, cosl.
22286         * lib/trigl.h: Add specification comments.
22287         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22288         that combines the values from the precomputed table with the values of
22289         the Chebyshev polynomials.
22290
22291 2010-03-14  Bruno Haible  <bruno@clisp.org>
22292
22293         Fix compilation error when modules 'posix_spawn[p]' are not used.
22294         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22295         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22296
22297 2010-03-14  Bruno Haible  <bruno@clisp.org>
22298
22299         Fix compilation error on mingw when module 'time_r' is not used.
22300         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22301         is 1.
22302         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22303         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22304         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22306
22307 2010-03-14  Bruno Haible  <bruno@clisp.org>
22308
22309         Fix compilation error with Sun C.
22310         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22311         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22312         instead of GCC specific ULONG_LONG_MAX.
22313         * lib/xstrtoll.c: Likewise.
22314         * lib/xstrtoull.c: Likewise.
22315
22316 2010-03-13  Bruno Haible  <bruno@clisp.org>
22317
22318         Allow the user to disable C++ code and tests.
22319         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22320         (gl_PROG_ANSI_CXX): Require it.
22321
22322 2010-03-13  Bruno Haible  <bruno@clisp.org>
22323
22324         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22325         cases.
22326
22327 2010-03-13  Bruno Haible  <bruno@clisp.org>
22328
22329         Test that gnulib does not break the standard C++ headers.
22330         * tests/test-locale-c++2.cc: New file.
22331         * modules/locale-tests (Files): Add it.
22332         (Makefile.am): Compile it for test-locale-c++.
22333         * tests/test-math-c++2.cc: New file.
22334         * modules/math-tests (Files): Add it.
22335         (Makefile.am): Compile it for test-math-c++.
22336         * tests/test-signal-c++2.cc: New file.
22337         * modules/signal-tests (Files): Add it.
22338         (Makefile.am): Compile it for test-signal-c++.
22339         * tests/test-stdio-c++2.cc: New file.
22340         * modules/stdio-tests (Files): Add it.
22341         (Makefile.am): Compile it for test-stdio-c++.
22342         * tests/test-stdlib-c++2.cc: New file.
22343         * modules/stdlib-tests (Files): Add it.
22344         (Makefile.am): Compile it for test-stdlib-c++.
22345         * tests/test-string-c++2.cc: New file.
22346         * modules/string-tests (Files): Add it.
22347         (Makefile.am): Compile it for test-string-c++.
22348         * tests/test-time-c++2.cc: New file.
22349         * modules/time-tests (Files): Add it.
22350         (Makefile.am): Compile it for test-time-c++.
22351         Reported by John W. Eaton <jwe@gnu.org>.
22352
22353 2010-03-13  Bruno Haible  <bruno@clisp.org>
22354
22355         * gnulib-tool (func_usage): Clarify which options are available for
22356         --create-testdir and --create-megatestdir.
22357
22358 2010-03-13  Bruno Haible  <bruno@clisp.org>
22359
22360         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22361         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22362         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22363         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22364         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22365         when appropriate.
22366         Reported by Jim Meyering.
22367
22368 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22369
22370         * gnulib-tool (func_import): Explain origin of code.
22371
22372 2010-03-12  Bruno Haible  <bruno@clisp.org>
22373
22374         Fix problem with automake's definition of CXXLINK.
22375         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22376         Reported by Simon Josefsson and Ludovic Courtès.
22377
22378 2010-03-12  Bruno Haible  <bruno@clisp.org>
22379
22380         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22381         stable releases.
22382
22383 2010-03-11  Bruno Haible  <bruno@clisp.org>
22384
22385         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22386         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22387         whether the system provides one variant or multiple variants of the
22388         function.
22389         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22390         C++ compilers.
22391         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22392         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22393         Reported by Jim Meyering.
22394
22395 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22396
22397         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22398
22399 2010-03-08  Bruno Haible  <bruno@clisp.org>
22400
22401         gnulib-tool: Add support for --libtool in --create-testdir.
22402         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22403         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22404
22405 2010-03-08  Eric Blake  <eblake@redhat.com>
22406
22407         gnulib-tool.texi: mention possibility of git submodule
22408         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22409         submodules.
22410         * doc/.gitignore: Ignore another generated file.
22411
22412 2010-03-08  Karl Berry  <karl@gnu.org>
22413
22414         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22415         of committing gnulib files while skipping others.
22416
22417 2010-03-07  Bruno Haible  <bruno@clisp.org>
22418
22419         Tests of module 'wctype' in C++ mode.
22420         * tests/test-wctype-c++.cc: New file.
22421         * modules/wctype-tests (Files): Add it and tests/signature.h.
22422         (Depends-on): Add ansi-c++-opt.
22423         (Makefile.am): Arrange to compile and run test-wctype-c++.
22424
22425         Tests of module 'wchar' in C++ mode.
22426         * tests/test-wchar-c++.cc: New file.
22427         * modules/wchar-tests (Files): Add it and tests/signature.h.
22428         (Depends-on): Add ansi-c++-opt.
22429         (Makefile.am): Arrange to compile and run test-wchar-c++.
22430         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22431         gl_MODULE_INDICATOR.
22432
22433         Tests of module 'unistd' in C++ mode.
22434         * tests/test-unistd-c++.cc: New file.
22435         * modules/unistd-tests (Files): Add it and tests/signature.h.
22436         (Depends-on): Add ansi-c++-opt.
22437         (Makefile.am): Arrange to compile and run test-unistd-c++.
22438         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22439         gl_MODULE_INDICATOR.
22440
22441         Tests of module 'time' in C++ mode.
22442         * tests/test-time-c++.cc: New file.
22443         * modules/time-tests (Files): Add it and tests/signature.h.
22444         (Depends-on): Add ansi-c++-opt.
22445         (Makefile.am): Arrange to compile and run test-time-c++.
22446         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22447
22448         Tests of module 'sys_time' in C++ mode.
22449         * tests/test-sys_time-c++.cc: New file.
22450         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22451         (Depends-on): Add ansi-c++-opt.
22452         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22453         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22454         gl_MODULE_INDICATOR.
22455
22456         Tests of module 'sys_stat' in C++ mode.
22457         * tests/test-sys_stat-c++.cc: New file.
22458         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22459         (Depends-on): Add ansi-c++-opt.
22460         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22461         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22462         gl_MODULE_INDICATOR.
22463
22464         Tests of module 'sys_socket' in C++ mode.
22465         * tests/test-sys_socket-c++.cc: New file.
22466         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22467         (Depends-on): Add ansi-c++-opt.
22468         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22469         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22470         gl_MODULE_INDICATOR.
22471
22472         Tests of module 'sys_select' in C++ mode.
22473         * tests/test-sys_select-c++.cc: New file.
22474         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22475         (Depends-on): Add ansi-c++-opt.
22476         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22477         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22478         gl_MODULE_INDICATOR.
22479
22480         Tests of module 'sys_ioctl' in C++ mode.
22481         * tests/test-sys_ioctl-c++.cc: New file.
22482         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22483         (Depends-on): Add ansi-c++-opt.
22484         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22486         gl_MODULE_INDICATOR.
22487
22488         Tests of module 'string' in C++ mode.
22489         * tests/test-string-c++.cc: New file.
22490         * modules/string-tests (Files): Add it and tests/signature.h.
22491         (Depends-on): Add ansi-c++-opt.
22492         (Makefile.am): Arrange to compile and run test-string-c++.
22493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22494         gl_MODULE_INDICATOR.
22495
22496         Tests of module 'stdlib' in C++ mode.
22497         * tests/test-stdlib-c++.cc: New file.
22498         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22499         (Depends-on): Add ansi-c++-opt.
22500         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22501         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22502         gl_MODULE_INDICATOR.
22503
22504         Tests of module 'stdio' in C++ mode.
22505         * tests/test-stdio-c++.cc: New file.
22506         * modules/stdio-tests (Files): Add it and tests/signature.h.
22507         (Depends-on): Add ansi-c++-opt.
22508         (Makefile.am): Arrange to compile and run test-stdio-c++.
22509         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22510         gl_MODULE_INDICATOR.
22511
22512         Tests of module 'spawn' in C++ mode.
22513         * tests/test-spawn-c++.cc: New file.
22514         * modules/spawn-tests (Files): Add it and tests/signature.h.
22515         (Depends-on): Add ansi-c++-opt.
22516         (Makefile.am): Arrange to compile and run test-spawn-c++.
22517         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22518         gl_MODULE_INDICATOR.
22519
22520         Tests of module 'signal' in C++ mode.
22521         * tests/test-signal-c++.cc: New file.
22522         * modules/signal-tests (Files): Add it and tests/signature.h.
22523         (Depends-on): Add ansi-c++-opt.
22524         (Makefile.am): Arrange to compile and run test-signal-c++.
22525         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22526         gl_MODULE_INDICATOR.
22527
22528         Tests of module 'search' in C++ mode.
22529         * tests/test-search-c++.cc: New file.
22530         * modules/search-tests (Files): Add it and tests/signature.h.
22531         (Depends-on): Add ansi-c++-opt.
22532         (Makefile.am): Arrange to compile and run test-search-c++.
22533         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22534         gl_MODULE_INDICATOR.
22535
22536         Tests of module 'math' in C++ mode.
22537         * tests/test-math-c++.cc: New file.
22538         * modules/math-tests (Files): Add it and tests/signature.h.
22539         (Depends-on): Add ansi-c++-opt.
22540         (Makefile.am): Arrange to compile and run test-math-c++.
22541         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22542
22543         Tests of module 'locale' in C++ mode.
22544         * tests/test-locale-c++.cc: New file.
22545         * modules/locale-tests (Files): Add it and tests/signature.h.
22546         (Depends-on): Add ansi-c++-opt.
22547         (Makefile.am): Arrange to compile and run test-locale-c++.
22548         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22549         gl_MODULE_INDICATOR.
22550
22551         Tests of module 'langinfo' in C++ mode.
22552         * tests/test-langinfo-c++.cc: New file.
22553         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22554         (Depends-on): Add ansi-c++-opt.
22555         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22556         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22557         gl_MODULE_INDICATOR.
22558
22559         Tests of module 'iconv-h' in C++ mode.
22560         * tests/test-iconv-h-c++.cc: New file.
22561         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22562         (Depends-on): Add ansi-c++-opt.
22563         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22564
22565         Tests of module 'glob' in C++ mode.
22566         * tests/test-glob-c++.cc: New file.
22567         * modules/glob-tests (Files): Add it.
22568         (Depends-on): Add ansi-c++-opt.
22569         (Makefile.am): Arrange to compile and run test-glob-c++.
22570
22571         Tests of module 'fcntl-h' in C++ mode.
22572         * tests/test-fcntl-h-c++.cc: New file.
22573         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22574         (Depends-on): Add ansi-c++-opt.
22575         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22576         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22577         gl_MODULE_INDICATOR.
22578
22579         Tests of module 'dirent' in C++ mode.
22580         * tests/test-dirent-c++.cc: New file.
22581         * modules/dirent-tests (Files): Add it and tests/signature.h.
22582         (Depends-on): Add ansi-c++-opt.
22583         (Makefile.am): Arrange to compile and run test-dirent-c++.
22584         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22585         gl_MODULE_INDICATOR.
22586
22587         New module 'ansi-c++-opt'.
22588         * modules/ansi-c++-opt: New file.
22589         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22590
22591         Document C++ namespace mode.
22592         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22593
22594         wctype: Avoid #define replacements in C++ mode.
22595         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22596         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22597         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22598         In C++, define a namespaced alias symbol.
22599         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22600         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22601         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22602         rule.
22603
22604         wchar: Avoid #define replacements in C++ mode.
22605         * lib/wchar.in.h: Include c++defs.h.
22606         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22607         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22608         symbol.
22609         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22610         * modules/wchar (Depends-on): Add c++defs.
22611         (Makefile.am): Update wchar.h rule.
22612
22613         unistd: Avoid #define replacements in C++ mode.
22614         * lib/unistd.in.h: Include c++defs.h.
22615         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22616         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22617         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22618         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22619         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22620         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22621         symbol.
22622         (environ): Update.
22623         * modules/unistd (Depends-on): Add c++defs.
22624         (Makefile.am): Update unistd.h rule.
22625
22626         time: Avoid #define replacements in C++ mode.
22627         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22628         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22629         define a namespaced alias symbol.
22630         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22631         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22632         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22633         * modules/time (Depends-on): Add c++defs, warn-on-use.
22634         (Makefile.am): Update time.h rule.
22635         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22636         * modules/nanosleep (configure.ac): Likewise.
22637         * modules/strptime (configure.ac): Likewise.
22638         * modules/timegm (configure.ac): Likewise.
22639
22640         sys_time: Avoid #define replacements in C++ mode.
22641         * lib/sys_time.in.h: Include c++defs.h.
22642         (gettimeofday): In C++, define a namespaced alias symbol.
22643         * modules/sys_time (Depends-on): Add c++defs.
22644         (Makefile.am): Update sys/time.h rule.
22645
22646         sys_stat: Avoid #define replacements in C++ mode.
22647         * lib/sys_stat.in.h: Include c++defs.h.
22648         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22649         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22650         namespaced alias symbol.
22651         In C++, define a namespaced alias symbol.
22652         * modules/sys_stat (Depends-on): Add c++defs.
22653         (Makefile.am): Update sys/stat.h rule.
22654
22655         sys_socket: Avoid #define replacements in C++ mode.
22656         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22657         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22658         definitions also when the system has a <sys/socket.h>.
22659         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22660         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22661         In C++, define a namespaced alias symbol.
22662         * modules/sys_socket (Depends-on): Add c++defs.
22663         (Makefile.am): Update sys/socket.h rule.
22664
22665         sys_select: Avoid #define replacements in C++ mode.
22666         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22667         definitions also when the system has a <sys/select.h>.
22668         (select): In C++, define a namespaced alias symbol.
22669         * modules/sys_select (Depends-on): Add c++defs.
22670         (Makefile.am): Update sys/select.h rule.
22671
22672         sys_ioctl: Avoid #define replacements in C++ mode.
22673         * lib/sys_ioctl.in.h: Include c++defs.h.
22674         (ioctl): In C++, define a namespaced alias symbol.
22675         * modules/sys_ioctl (Depends-on): Add c++defs.
22676         (Makefile.am): Update sys/ioctl.h rule.
22677
22678         string: Avoid #define replacements in C++ mode.
22679         * lib/string.in.h: Include c++defs.h.
22680         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22681         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22682         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22683         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22684         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22685         * modules/string (Depends-on): Add c++defs.
22686         (Makefile.am): Update string.h rule.
22687
22688         stdlib: Avoid #define replacements in C++ mode.
22689         * lib/stdlib.in.h: Include c++defs.h.
22690         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22691         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22692         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22693         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22694         symbol.
22695         * modules/stdlib (Depends-on): Add c++defs.
22696         (Makefile.am): Update stdlib.h rule.
22697
22698         stdio: Avoid #define replacements in C++ mode.
22699         * lib/stdio.in.h: Include c++defs.h.
22700         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22701         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22702         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22703         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22704         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22705         namespaced alias symbol.
22706         * modules/stdio (Depends-on): Add c++defs.
22707         (Makefile.am): Update stdio.h rule.
22708
22709         spawn: Avoid #define replacements in C++ mode.
22710         * lib/spawn.in.h: Include c++defs.h.
22711         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22712         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22713         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22714         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22715         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22716         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22717         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22718         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22719         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22720         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22721         In C++, define a namespaced alias symbol.
22722         * modules/spawn (Depends-on): Add c++defs.
22723         (Makefile.am): Update spawn.h rule.
22724
22725         signal: Avoid #define replacements in C++ mode.
22726         * lib/signal.in.h: Include c++defs.h.
22727         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22728         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22729         namespaced alias symbol.
22730         * modules/signal (Depends-on): Add c++defs.
22731         (Makefile.am): Update signal.h rule.
22732
22733         search: Avoid #define replacements in C++ mode.
22734         * lib/search.in.h: Include c++defs.h.
22735         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22736         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22737         symbol.
22738         * modules/search (Depends-on): Add c++defs.
22739         (Makefile.am): Update search.h rule.
22740
22741         math: Avoid #define replacements in C++ mode.
22742         * lib/math.in.h: Include c++defs.h.
22743         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22744         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22745         trunc, truncl): In C++, define a namespaced alias symbol.
22746         * modules/math (Depends-on): Add c++defs.
22747         (Makefile.am): Update math.h rule.
22748
22749         locale: Avoid #define replacements in C++ mode.
22750         * lib/locale.in.h: Include c++defs.h.
22751         (duplocale): In C++, define a namespaced alias symbol.
22752         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22753         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22754         * modules/locale (Depends-on): Add c++defs.
22755         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22756
22757         langinfo: Avoid #define replacements in C++ mode.
22758         * lib/langinfo.in.h: Include c++defs.h.
22759         (nl_langinfo): In C++, define a namespaced alias symbol.
22760         * modules/langinfo (Depends-on): Add c++defs.
22761         (Makefile.am): Update langinfo.h rule.
22762
22763         iconv-h: Avoid #define replacements in C++ mode.
22764         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22765         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22766         symbol.
22767         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22768         whenever iconv is present.
22769         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22770         (Makefile.am): Update iconv.h rule.
22771
22772         glob: Avoid #define replacements in C++ mode.
22773         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22774         (_gl_glob_errfunc_fn): New type.
22775         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22776         symbol.
22777         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22778         (Makefile.am): Update glob.h rule.
22779
22780         fcntl-h: Avoid #define replacements in C++ mode.
22781         * lib/fcntl.in.h: Include c++defs.h.
22782         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22783         * modules/fcntl-h (Depends-on): Add c++defs.
22784         (Makefile.am): Update fcntl.h rule.
22785
22786         dirent: Avoid #define replacements in C++ mode.
22787         * lib/dirent.in.h: Include c++defs.h.
22788         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22789         namespaced alias symbol.
22790         (dirfd): Update declaration.
22791         * modules/dirent (Depends-on): Add c++defs.
22792         (Makefile.am): Update dirent.h rule.
22793
22794         ctype: Make it usable in C++ code.
22795         * lib/ctype.in.h: Include c++defs.h.
22796         (isblank): Declare as extern "C".
22797         * modules/ctype (Depends-on): Add c++defs.
22798         (Makefile.am): Update ctype.h rule.
22799
22800         New module 'c++defs'.
22801         * modules/c++defs: New file.
22802         * build-aux/c++defs.h: New file.
22803         Reported by John W. Eaton <jwe@gnu.org>.
22804
22805 2010-03-07  Bruno Haible  <bruno@clisp.org>
22806
22807         logb: Provide missing declaration for Cygwin.
22808         * lib/math.in.h (logb): New declaration.
22809         * m4/logb.m4: New file.
22810         * modules/logb (Files): Add m4/logb.m4.
22811         (Depends-on): Add math.
22812         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22813         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22815         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22816         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22817
22818 2010-03-07  Bruno Haible  <bruno@clisp.org>
22819
22820         Fix test-cond link error.
22821         * tests/test-cond.c: Include <stdio.h>.
22822
22823 2010-03-07  Bruno Haible  <bruno@clisp.org>
22824
22825         Fix test-dirent-safer link error.
22826         * modules/dirent-safer-tests (Makefile.am): Define
22827         test_dirent_safer_LDADD.
22828
22829 2010-03-07  Bruno Haible  <bruno@clisp.org>
22830
22831         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22832         among default module list.
22833
22834 2010-03-07  Bruno Haible  <bruno@clisp.org>
22835
22836         Fix link error on platforms with GNU libiconv.
22837         * modules/unistr/u8-strcoll-tests (Makefile): Define
22838         test_u8_strcoll_LDADD.
22839         * modules/unistr/u16-strcoll-tests (Makefile): Define
22840         test_u16_strcoll_LDADD.
22841         * modules/unistr/u32-strcoll-tests (Makefile): Define
22842         test_u32_strcoll_LDADD.
22843
22844 2010-03-07  Bruno Haible  <bruno@clisp.org>
22845
22846         Use POSIX declarations for socket functions.
22847         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22848         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22849         rpl_sendto): Change declaration to match POSIX.
22850         * lib/connect.c (rpl_connect): Likewise.
22851         * lib/accept.c (rpl_accept): Likewise.
22852         * lib/bind.c (rpl_bind): Likewise.
22853         * lib/getpeername.c (rpl_getpeername): Likewise.
22854         * lib/getsockname.c (rpl_getsockname): Likewise.
22855         * lib/recv.c (rpl_recv): Likewise.
22856         * lib/send.c (rpl_send): Likewise.
22857         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22858         * lib/sendto.c (rpl_sendto): Likewise.
22859
22860 2010-03-06  Bruno Haible  <bruno@clisp.org>
22861
22862         Clarify access, euidaccess, faccessat.
22863         * doc/posix-functions/faccessat.texi: Mention security problem under
22864         "Other problems", not "Portability problems".
22865         * doc/posix-functions/access.texi: Likewise. Mention a related security
22866         problem.
22867         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22868         * lib/euidaccess.c: Add comments about platforms.
22869         * lib/unistd.in.h (access, euidaccess): Add warnings.
22870
22871 2010-03-07  Bruno Haible  <bruno@clisp.org>
22872
22873         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22874         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22875         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22876         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22877         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22878         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22879         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22880         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22881         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22882         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22883         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22884         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22885         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22886         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22887         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22888         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22889         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22890         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22891         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22892         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22893         Likewise.
22894         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22895         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22896         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22897         Likewise.
22898         * tests/test-spawn.c (main): Make it work when
22899         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22900
22901 2010-03-07  Bruno Haible  <bruno@clisp.org>
22902
22903         Fix incorrect Makefile.am generation in German locale.
22904         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22905         Execute sed command with character range in C locale.
22906
22907 2010-03-06  Bruno Haible  <bruno@clisp.org>
22908
22909         Tests for module 'iconv-h'.
22910         * modules/iconv-h-tests: New file.
22911         * tests/test-iconv-h.c: New file.
22912
22913         New module 'iconv-h'.
22914         * modules/iconv-h: New file.
22915         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22916         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22917         (configure.ac): Remove gl_ICONV_H.
22918         (Makefile.am): Remove rule for iconv.h.
22919
22920 2010-03-06  Bruno Haible  <bruno@clisp.org>
22921
22922         More consistent naming of *.m4 files.
22923         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22924         * modules/wctype (Files): Update.
22925
22926         More consistent naming of *.m4 files.
22927         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22928         * modules/wchar (Files): Update.
22929
22930 2010-03-06  Jim Meyering  <meyering@redhat.com>
22931
22932         euidaccess: relax license to LGPLv2+
22933         * modules/euidaccess (License): Relax to LGPLv2+.
22934
22935 2010-03-06  Bruno Haible  <bruno@clisp.org>
22936
22937         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22938         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22939         (Makefile.am): Augment lib_SOURCES instead.
22940
22941 2010-03-04  Jim Meyering  <meyering@redhat.com>
22942
22943         utime: remove obsolete module
22944         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22945         unnecessary for years, and has been marked as obsolete for 10 months.
22946         * modules/utime: Remove file.
22947         * lib/utime.c: Remove file.
22948         * m4/utime.m4: Remove file.
22949         * m4/utimes-null.m4: Remove file.
22950         * doc/posix-functions/utime.texi (utime): Remove reference to
22951         the module.  Move the sole "fixed by gnulib" item into the
22952         "problems not fixed by Gnulib" list.
22953         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22954
22955 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22956
22957         * modules/exit (License): Relax license to LGPLv2+.
22958         (Status): Mark as obsolete.
22959         * NEWS: Mention deprecated 'exit' module.
22960         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22961         of now obsolete 'exit'.
22962
22963 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22964
22965         fts-lgpl: remove unused module
22966         * modules/fts-lgpl: Remove.
22967         * MODULES.html.sh (func_all_modules): Adjust.
22968         * check-module (find_included_lib_files): Adjust.
22969         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22970
22971 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22972
22973         copy-acl: enhance Solaris ACL error handling
22974         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22975         * lib/set-mode-acl.c (qset_acl): Likewise.
22976
22977 2010-03-02  Bruno Haible  <bruno@clisp.org>
22978
22979         spawn: Don't override the system defined values on FreeBSD 8.
22980         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22981         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22982         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22983         if HAVE_POSIX_SPAWN is 1.
22984         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22985
22986 2010-03-01  Bruno Haible  <bruno@clisp.org>
22987
22988         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22989         regarding Automake.
22990
22991 2010-02-25  Bruno Haible  <bruno@clisp.org>
22992
22993         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22994         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22995         setting, not afterwards.
22996         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22997
22998 2010-02-24  Eric Blake  <eblake@redhat.com>
22999
23000         bootstrap, git-version-gen: use timestamp
23001         * build-aux/git-version-gen (scriptversion): Force UTC.
23002         * build-aux/bootstrap (scriptversion): New variable.
23003
23004         bootstrap: allow older git
23005         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23006         older than 1.6.4.  Requested by the libvirt project.
23007
23008 2010-02-23  Eric Blake  <eblake@redhat.com>
23009
23010         warn-on-use: work with old autoconf
23011         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23012         AS_VAR semantics of autoconf 2.60.
23013         Reported by Bruno Haible.
23014
23015         bootstrap: improve some comments
23016         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23017         clarification comments.
23018
23019         gettimeofday: provide correct function
23020         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23021         when replacement is declared, otherwise provide gettimeofday.
23022         Reported by Michael Goffioul.
23023
23024 2010-02-23  Jim Meyering  <meyering@redhat.com>
23025
23026         lib-ignore: relax license to "unlimited", not LGPLv2+
23027         * modules/lib-ignore (License): Relax to "unlimited".
23028
23029 2010-02-23  Jim Meyering  <meyering@redhat.com>
23030
23031         lib-ignore: relax license to LGPLv2+
23032         * modules/lib-ignore (License): Relax to LGPLv2+.
23033
23034 2010-02-22  Eric Blake  <eblake@redhat.com>
23035
23036         lseek: avoid bash 3.2 broken pipe bug
23037         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23038         warning from bash 3.2.
23039         Reported by Ben Pfaff, with analysis from Bruno Haible.
23040
23041         bootstrap: support non-FSF copyright holder
23042         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23043         bootstrap.conf override of COPYRIGHT_HOLDER.
23044         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23045
23046         bootstrap: interoperate with gettext 0.14.1
23047         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23048
23049         bootstrap: allow for alternate submodule location
23050         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23051         hardcoding submodule location.
23052         (gnulib_mk): Allow direct use of Makefile.am.
23053
23054         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23055         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23056         rather than reconfiguring where the submodule points.
23057
23058         gettimeofday: restore support for platforms that lack function
23059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23060         replacement if function is missing.
23061         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23062         * modules/sys_time (Makefile.am): Substitute it.
23063         * lib/sys_time.in.h (gettimeofday): Check it.
23064         Reported by Michael Goffioul.
23065
23066 2010-02-21  Bruno Haible  <bruno@clisp.org>
23067
23068         * lib/stdio.in.h (obstack_printf): Fix typo.
23069
23070 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23071
23072         vc-list-files: use bzr ls's -R option
23073         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23074         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23075
23076 2010-02-21  Jim Meyering  <meyering@redhat.com>
23077
23078         init.sh: fix EXEEXT shims to work also for names like test-prog
23079         * tests/init.sh: Re-exec a better shell, when needed.
23080         If the current shell lacks support for posix $(...), an init.sh-using
23081         test will now try to find a shell that supports that.  If EXEEXT is
23082         nonempty, we also require support for hyphen-in-alias-name and shell
23083         substitutions like ${var#glob}.  Failure to find such a shell results
23084         in a skipped test.
23085
23086 2010-02-21  Bruno Haible  <bruno@clisp.org>
23087
23088         Really work around around "broken pipe" error message from bash 3.2.
23089         * gnulib-tool (func_reset_sigpipe): Remove function.
23090         (echo): In bash 3.2, define to a function that uses printf.
23091         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23092
23093 2010-02-20  Bruno Haible  <bruno@clisp.org>
23094
23095         Restore support for automake 1.9.6 with autoconf 2.61.
23096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23097         Reported by James Youngman <jay@gnu.org>.
23098
23099 2010-02-20  Bruno Haible  <bruno@clisp.org>
23100
23101         Improve *printf warning condition.
23102         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23103         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23104         and the function is overridden due to SIGPIPE emulation.
23105
23106 2010-02-20  Bruno Haible  <bruno@clisp.org>
23107
23108         * lib/stdio.in.h: Tweak comments.
23109
23110 2010-02-19  Bruno Haible  <bruno@clisp.org>
23111
23112         Make it easier to find modules. New gnulib-tool option '--find'.
23113         * gnulib-tool: New option --find.
23114         (func_usage): Document it.
23115         (func_sanitize_modulelist): New function, extracted from
23116         func_all_modules.
23117         (func_all_modules): Invoke it.
23118         * doc/gnulib-tool.texi (Which modules?): New node.
23119
23120 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23121
23122         * lib/sys_select.in.h: Provide select replacement even if
23123         sys/select.h exists on a system, for Interix.
23124
23125 2010-02-18  Jim Meyering  <meyering@redhat.com>
23126
23127         init.sh: don't use $(...) just yet
23128         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23129         to accommodate e.g., Solaris' /bin/sh.
23130
23131 2010-02-17  Bruno Haible  <bruno@clisp.org>
23132
23133         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23134         Reported by Ludovic Courtès <ludo@gnu.org>.
23135
23136 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23137
23138         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23139         linking with -lintl.
23140
23141 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23142
23143         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23144         if not provided by the system's netdb.h.  Reported by
23145         ludo@gnu.org (Ludovic Courtès).
23146
23147 2010-02-15  Jim Meyering  <meyering@redhat.com>
23148
23149         init.sh: improve portability and efficiency
23150         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23151         "dummy" in a for loop.
23152         Use '!', not '^' to select the complement of a character set used
23153         in a "case" statement.
23154         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23155         Suggestions from Eric Blake.
23156
23157         init.sh: automatically accommodate programs with the .exe suffix
23158         Automatically arrange for an invocation of "prog" to execute the
23159         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23160         may use the simpler "prog", yet still work when built on a system
23161         that requires specifying the added suffix.
23162         Do this by constructing a function named "prog" that invokes
23163         "prog.exe" for each .exe file in selected directories.
23164         * tests/init.sh (find_exe_basenames_): New function.
23165         (create_exe_shim_functions_): New function.
23166         (path_prepend_): Use it.
23167
23168         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23169         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23170         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23171
23172 2010-02-14  Jim Meyering  <meyering@redhat.com>
23173
23174         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23175         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23176         (sc_prohibit_hash_pjw_without_use): New rule.
23177
23178         maint.mk: allow the default upload destination dir to be overridden
23179         * top/maint.mk (upload_dest_dir_): Define with a default that
23180         preserves the status quo.
23181         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23182         Reported by Peter Simons.
23183
23184         maint.mk: prohibit inclusion of "hash.h" without_use
23185         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23186
23187 2010-02-10  Jim Meyering  <meyering@redhat.com>
23188
23189         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23190         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23191
23192 2010-02-09  Eric Blake  <ebb9@byu.net>
23193         and Bruno Haible  <bruno@clisp.org>
23194
23195         obstack-printf-posix: ensure declaration
23196         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23197         extracted from gl_FUNC_OBSTACK_PRINTF.
23198         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23199         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23200         Likewise.
23201         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23202         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23203         0.
23204
23205 2010-02-08  Bruno Haible  <bruno@clisp.org>
23206
23207         gnulib-tool: Fix typo in 2010-02-07 commit.
23208         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23209         Reported by Eric Blake.
23210
23211 2010-02-07  Bruno Haible  <bruno@clisp.org>
23212
23213         gnulib-tool: Fix up caching patches.
23214         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23215         option --no-cache. Use associative arrays when supported by the shell.
23216         (sed_comments): New variable.
23217         (modcache): Renamed from do_cache.
23218         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23219         abbreviate unnecessarily.
23220         (have_associative): New variable.
23221         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23222         way also for ksh and zsh.
23223         (func_init_sed_convert_to_cache_statements): New function, extracted
23224         from func_cache_lookup_module. Add support for associative arrays.
23225         Don't set the c_MODULE_cached variable here. Ignore all lines before
23226         the first field header. Remove only the final newline, not all trailing
23227         newlines. Support empty fields correctly. Limit the use of 'eval' to
23228         assignments.
23229         (func_get_description, func_get_status, func_get_notice,
23230         func_get_applicability, func_get_filelist, func_get_dependencies,
23231         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23232         func_get_automake_snippet, func_get_include_directive,
23233         func_get_link_directive, func_get_license, func_get_maintainer):
23234         Update documentation. List the unoptimized code first. Add support for
23235         associative arrays. Limit the use of 'eval' to assignments.
23236         (func_get_applicability): Undo stylistic pessimisations.
23237         (func_get_automake_snippet, func_get_include_directive): Reduce code
23238         duplication.
23239         (func_modules_transitive_closure, func_modules_add_dummy,
23240         func_modules_notice, func_modules_to_filelist, func_add_file,
23241         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23242         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23243         func_create_testdir, func_create_megatestdir): Update documentation.
23244
23245 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23246
23247         * gnulib-tool (func_cache_lookup_module): Store the module name
23248         belonging to the cache variable; error out if two different
23249         module names map to the same cache variable name.
23250
23251 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23252
23253         gnulib-tool: Make caching optional.
23254         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23255         Update matching short versions of --no-changelog.
23256         (func_usage): Update.
23257         (sed_extract_cache_prog): Renamed from ...
23258         (sed_extract_prog): ... this; revert to old extraction script.
23259         (func_get_description, func_get_status)
23260         (func_get_notice, func_get_applicability, func_get_filelist)
23261         (func_get_dependencies, func_get_autoconf_early_snippet)
23262         (func_get_autoconf_snippet, func_get_automake_snippet)
23263         (func_get_include_directive, func_get_link_directive)
23264         (func_get_license, func_get_maintainer): If $do_cache is false,
23265         use old, non-caching extraction scripts.
23266         Suggestion by Bruno Haible.
23267
23268 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23269
23270         gnulib-tool: cache module metainformation.
23271         * gnulib-tool (sed_extract_prog): Match newline before each
23272         header, and rewrite header to a shell variable suffix.
23273         (func_cache_var, func_cache_lookup_module): New functions,
23274         to turn a module name into a cache variable prefix, and to
23275         look up and cache module metainformation.
23276         (func_get_description, func_get_status)
23277         (func_get_notice, func_get_applicability, func_get_filelist)
23278         (func_get_dependencies, func_get_autoconf_early_snippet)
23279         (func_get_autoconf_snippet, func_get_automake_snippet)
23280         (func_get_include_directive, func_get_link_directive)
23281         (func_get_license, func_get_maintainer): Use
23282         func_cache_lookup_module.
23283
23284 2010-02-07  Bruno Haible  <bruno@clisp.org>
23285
23286         fnctl: Fix missing dependency.
23287         * modules/fcntl (Depends-on): Add getdtablesize.
23288         Reported by John W. Eaton <jwe@gnu.org>.
23289
23290 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23291
23292         Argp: fix recognition of short alias options.
23293
23294         * lib/argp-parse.c (convert_options): Fix improper use of
23295         `|' between character values.
23296         * tests/test-argp.c (group1_option): New alias option
23297         --read (-r).
23298         (group1_parser): Special handling for 'r'.
23299         (test15): New test case.
23300         (test_fun): Add test15.
23301         * tests/test-argp-2.sh: Update expected --help and --usage
23302         outputs.
23303
23304 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23305
23306         * tests/test-argp.c: Fix indentation.
23307
23308 2010-02-04  Eric Blake  <ebb9@byu.net>
23309
23310         gettimeofday: expose type of second argument
23311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23312         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23313         * tests/test-gettimeofday.c: Use it to silence warning.
23314         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23315         the issue.
23316
23317 2010-02-03  Jim Meyering  <meyering@redhat.com>
23318
23319         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23320         * lib/regcomp.c (TYPE_SIGNED): Define.
23321         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23322
23323         regcomp.c: avoid a new -Wshadow warning
23324         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23325
23326 2010-02-01  Jim Meyering  <meyering@redhat.com>
23327
23328         removing useless parentheses in cpp #define directives
23329         For motivation, see commit c0221df4, "define STREQ(a,b)
23330         consistently, removing useless parentheses"
23331         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23332         * lib/mountlist.c (MNT_IGNORE): Likewise.
23333         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23334
23335 2010-02-01  Eric Blake  <ebb9@byu.net>
23336
23337         sys_time: use link-warning
23338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23339         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23340         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23341         * modules/sys_time (Depends-on): Add warn-on-use.
23342         (Makefile.am): Always build replacement.
23343         (configure.ac): Update substitutions.
23344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23345         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23346         bother with SYS_TIME_H.
23347         * modules/gettimeofday (configure.ac): Declare indicator.
23348         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23349         in use.
23350
23351         closein-tests: silence compiler warning
23352         * tests/test-closein.c (main): Ignore fread result.
23353         * modules/closein-tests (Depends-on): Add ignore-value.
23354
23355         tests: silence warning about system return
23356         * tests/test-areadlink-with-size.c (main): Ignore system result.
23357         * tests/test-areadlink.c (main): Likewise.
23358         * tests/test-areadlinkat-with-size.c (main): Likewise.
23359         * tests/test-areadlinkat.c (main): Likewise.
23360         * tests/test-canonicalize-lgpl.c (main): Likewise.
23361         * tests/test-canonicalize.c (main): Likewise.
23362         * tests/test-chown.c (main): Likewise.
23363         * tests/test-fchownat.c (main): Likewise.
23364         * tests/test-fdutimensat.c (main): Likewise.
23365         * tests/test-fstatat.c (main): Likewise.
23366         * tests/test-futimens.c (main): Likewise.
23367         * tests/test-lchown.c (main): Likewise.
23368         * tests/test-link.c (main): Likewise.
23369         * tests/test-linkat.c (main): Likewise.
23370         * tests/test-lstat.c (main): Likewise.
23371         * tests/test-mkdir.c (main): Likewise.
23372         * tests/test-mkdirat.c (main): Likewise.
23373         * tests/test-mkfifo.c (main): Likewise.
23374         * tests/test-mkfifoat.c (main): Likewise.
23375         * tests/test-mknod.c (main): Likewise.
23376         * tests/test-readlink.c (main): Likewise.
23377         * tests/test-remove.c (main): Likewise.
23378         * tests/test-rename.c (main): Likewise.
23379         * tests/test-renameat.c (main): Likewise.
23380         * tests/test-rmdir.c (main): Likewise.
23381         * tests/test-symlink.c (main): Likewise.
23382         * tests/test-symlinkat.c (main): Likewise.
23383         * tests/test-unlink.c (main): Likewise.
23384         * tests/test-unlinkat.c (main): Likewise.
23385         * tests/test-utimens.c (main): Likewise.
23386         * tests/test-utimensat.c (main): Likewise.
23387         * modules/areadlink-tests (Depends-on): Add ignore-value.
23388         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23389         * modules/areadlinkat-tests (Depends-on): Likewise.
23390         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23391         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23392         * modules/canonicalize-tests (Depends-on): Likewise.
23393         * modules/chown-tests (Depends-on): Likewise.
23394         * modules/fdutimensat-tests (Depends-on): Likewise.
23395         * modules/futimens-tests (Depends-on): Likewise.
23396         * modules/lchown-tests (Depends-on): Likewise.
23397         * modules/link-tests (Depends-on): Likewise.
23398         * modules/linkat-tests (Depends-on): Likewise.
23399         * modules/lstat-tests (Depends-on): Likewise.
23400         * modules/mkdir-tests (Depends-on): Likewise.
23401         * modules/mkfifo-tests (Depends-on): Likewise.
23402         * modules/mkfifoat-tests (Depends-on): Likewise.
23403         * modules/mknod-tests (Depends-on): Likewise.
23404         * modules/openat-tests (Depends-on): Likewise.
23405         * modules/readlink-tests (Depends-on): Likewise.
23406         * modules/remove-tests (Depends-on): Likewise.
23407         * modules/rename-tests (Depends-on): Likewise.
23408         * modules/renameat-tests (Depends-on): Likewise.
23409         * modules/rmdir-tests (Depends-on): Likewise.
23410         * modules/symlink-tests (Depends-on): Likewise.
23411         * modules/symlinkat-tests (Depends-on): Likewise.
23412         * modules/unlink-tests (Depends-on): Likewise.
23413         * modules/utimens-tests (Depends-on): Likewise.
23414         * modules/utimensat-tests (Depends-on): Likewise.
23415
23416 2010-01-31  Bruno Haible  <bruno@clisp.org>
23417
23418         Perform the same test for many <math.h> functions.
23419         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23420         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23421         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23422         of gl_MATHFUNC.
23423         * modules/acos (configure.ac): Likewise.
23424         * modules/asin (configure.ac): Likewise.
23425         * modules/atan (configure.ac): Likewise.
23426         * modules/atan2 (configure.ac): Likewise.
23427         * modules/cbrt (configure.ac): Likewise.
23428         * modules/copysign (configure.ac): Likewise.
23429         * modules/cos (configure.ac): Likewise.
23430         * modules/cosh (configure.ac): Likewise.
23431         * modules/erf (configure.ac): Likewise.
23432         * modules/erfc (configure.ac): Likewise.
23433         * modules/exp (configure.ac): Likewise.
23434         * modules/fmod (configure.ac): Likewise.
23435         * modules/hypot (configure.ac): Likewise.
23436         * modules/j0 (configure.ac): Likewise.
23437         * modules/j1 (configure.ac): Likewise.
23438         * modules/jn (configure.ac): Likewise.
23439         * modules/lgamma (configure.ac): Likewise.
23440         * modules/log (configure.ac): Likewise.
23441         * modules/log10 (configure.ac): Likewise.
23442         * modules/log1p (configure.ac): Likewise.
23443         * modules/pow (configure.ac): Likewise.
23444         * modules/remainder (configure.ac): Likewise.
23445         * modules/sin (configure.ac): Likewise.
23446         * modules/sinh (configure.ac): Likewise.
23447         * modules/tan (configure.ac): Likewise.
23448         * modules/tanh (configure.ac): Likewise.
23449         * modules/y0 (configure.ac): Likewise.
23450         * modules/y1 (configure.ac): Likewise.
23451         * modules/yn (configure.ac): Likewise.
23452         Suggested by Paolo Bonzini.
23453
23454 2010-01-31  Bruno Haible  <bruno@clisp.org>
23455
23456         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23457
23458 2010-01-31  Bruno Haible  <bruno@clisp.org>
23459
23460         Work around getdelim() bug on FreeBSD 8.0.
23461         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23462         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23463         not work.
23464         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23465         is 1.
23466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23467         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23468         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23469         a non-zero size.
23470         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23471
23472 2010-01-31  Bruno Haible  <bruno@clisp.org>
23473
23474         Work around getline() bug on FreeBSD 8.0.
23475         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23476         and a non-zero size.
23477         * tests/test-getline.c (main): Likewise.
23478         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23479         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23480
23481 2010-01-28  Eric Blake  <ebb9@byu.net>
23482
23483         regex: fix build failure
23484         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23485         platforms.
23486
23487 2010-01-28  Jim Meyering  <meyering@redhat.com>
23488
23489         regex: do not ignore memory allocation failure
23490         * lib/regex_internal.c (create_cd_newstate): Detect
23491         re_node_set_init_copy failure.   Extracted from glibc commit
23492         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23493
23494         regex: sync more white-space changes from libc
23495         * lib/regex_internal.c: White-space only changes.
23496         * lib/regexec.c: Likewise.
23497
23498         regex: add many uses of __attribute_warn_unused_result__
23499         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23500         * lib/regexec.c: Likewise.
23501         Extracted from a messy glibc commit.
23502
23503         regcomp.c: spelling and merge-artifact from glibc
23504         * lib/regcomp.c: Merge remainder of glibc's
23505         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23506
23507         regcomp.c: sync white-space changes from glibc
23508         * lib/regcomp.c: Merge to accommodate white space
23509         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23510
23511         regcomp.c: do not ignore internal return values
23512         * lib/regcomp.c: Do not ignore internal return values.
23513         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23514         but without its white-space changes and spelling fixes.
23515
23516         regex_internal.h: define __attribute_warn_unused_result__
23517         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23518
23519         maint: add a syntax-check rule to check for vulnerable Makefile.in
23520         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23521
23522 2010-01-27  Jim Meyering  <meyering@redhat.com>
23523
23524         ncftpput-ftp: clean up spaces
23525         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23526         Remove trailing blanks.
23527
23528 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23529
23530         * build-aux/git-version-gen: Fix copyright statement.
23531         * build-aux/gnupload: Likewise.
23532         * tests/test-arcfour.c: Likewise.
23533         * tests/test-arctwo.c: Likewise.
23534         * tests/test-count-one-bits.c: Likewise.
23535         * tests/test-crc.c: Likewise.
23536         * tests/test-des.c: Likewise.
23537         * tests/test-gc-arcfour.c: Likewise.
23538         * tests/test-gc-arctwo.c: Likewise.
23539         * tests/test-gc-des.c: Likewise.
23540         * tests/test-gc-hmac-md5.c: Likewise.
23541         * tests/test-gc-hmac-sha1.c: Likewise.
23542         * tests/test-gc-md2.c: Likewise.
23543         * tests/test-gc-md4.c: Likewise.
23544         * tests/test-gc-md5.c: Likewise.
23545         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23546         * tests/test-gc-rijndael.c: Likewise.
23547         * tests/test-gc-sha1.c: Likewise.
23548         * tests/test-gc.c: Likewise.
23549         * tests/test-gethostname.c: Likewise.
23550         * tests/test-gettimeofday.c: Likewise.
23551         * tests/test-hash.c: Likewise.
23552         * tests/test-hmac-md5.c: Likewise.
23553         * tests/test-hmac-sha1.c: Likewise.
23554         * tests/test-md2.c: Likewise.
23555         * tests/test-md4.c: Likewise.
23556         * tests/test-md5.c: Likewise.
23557         * tests/test-memchr.c: Likewise.
23558         * tests/test-memchr2.c: Likewise.
23559         * tests/test-memcmp.c: Likewise.
23560         * tests/test-memmem.c: Likewise.
23561         * tests/test-memrchr.c: Likewise.
23562         * tests/test-rawmemchr.c: Likewise.
23563         * tests/test-read-file.c: Likewise.
23564         * tests/test-rijndael.c: Likewise.
23565         * tests/test-sockets.c: Likewise.
23566         * tests/test-strchrnul.c: Likewise.
23567         * tests/test-strstr.c: Likewise.
23568         * tests/test-strtod.c: Likewise.
23569         * build-aux/ncftpput-ftp: Likewise.
23570
23571 2010-01-26  Eric Blake  <ebb9@byu.net>
23572
23573         ignore-value: update recommended header name
23574         * modules/ignore-value (Include): Only use <> for headers that
23575         exist in glibc.
23576
23577 2010-01-26  Jim Meyering  <meyering@redhat.com>
23578
23579         test-userspec.c: avoid compiler warnings
23580         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23581         and "initialization discards qualifiers..." warnings.
23582         Put the first "uid" in its own scope, and make char* members "const".
23583
23584 2010-01-25  Bruno Haible  <bruno@clisp.org>
23585
23586         gnulib-tool: Make warning diagnostics consistent.
23587         * gnulib-tool (func_warning): New function.
23588         Use it everywhere where gnulib-tool produces output to stderr and it is
23589         not a fatal error.
23590
23591 2010-01-25  Bruno Haible  <bruno@clisp.org>
23592
23593         Fix test dependencies.
23594         * modules/xstrtol-tests (Depends-on): Add inttypes.
23595         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23596
23597 2010-01-25 Pádraig Brady <P@draigBrady.com>
23598
23599         syntax-check: detect incorrect boolean macro values in config.h
23600         * modules/maintainer-makefile (configure.ac): Parameterize the location
23601         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23602         The logic is from Eric Blake and the location indicated by Jim Meyering.
23603         Note the more natural CONFIG_HEADER name is prohibited by automake
23604         for backwards compatibility reasons.
23605         * top/maint.mk (sc_Wundef_boolean): New rule.
23606
23607 2010-01-25  Jim Meyering  <meyering@redhat.com>
23608
23609         bootstrap: detect MacOS 10.6's shasum, too
23610         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23611         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23612
23613 2010-01-23  Jim Meyering  <meyering@redhat.com>
23614
23615         xstrtoll: new module
23616         * modules/xstrtoll: New file.
23617         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23618         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23619         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23620         ./configure fails if you use this module and lack "long long".
23621         * modules/xstrtoll-tests: New module.
23622         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23623         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23624         new init.sh-based test framework.
23625
23626 2010-01-24  Bruno Haible  <bruno@clisp.org>
23627
23628         Tests for module 'yn'.
23629         * modules/yn-tests: New file.
23630         * tests/test-yn.c: New file.
23631
23632         Tests for module 'y1'.
23633         * modules/y1-tests: New file.
23634         * tests/test-y1.c: New file.
23635
23636         Tests for module 'y0'.
23637         * modules/y0-tests: New file.
23638         * tests/test-y0.c: New file.
23639
23640         Tests for module 'tanh'.
23641         * modules/tanh-tests: New file.
23642         * tests/test-tanh.c: New file.
23643
23644         Tests for module 'tan'.
23645         * modules/tan-tests: New file.
23646         * tests/test-tan.c: New file.
23647
23648         Tests for module 'sqrt'.
23649         * modules/sqrt-tests: New file.
23650         * tests/test-sqrt.c: New file.
23651
23652         Tests for module 'sinh'.
23653         * modules/sinh-tests: New file.
23654         * tests/test-sinh.c: New file.
23655
23656         Tests for module 'sin'.
23657         * modules/sin-tests: New file.
23658         * tests/test-sin.c: New file.
23659
23660         Tests for module 'rint'.
23661         * modules/rint-tests: New file.
23662         * tests/test-rint.c: New file.
23663
23664         Tests for module 'remainder'.
23665         * modules/remainder-tests: New file.
23666         * tests/test-remainder.c: New file.
23667
23668         Tests for module 'pow'.
23669         * modules/pow-tests: New file.
23670         * tests/test-pow.c: New file.
23671
23672         Tests for module 'nextafter'.
23673         * modules/nextafter-tests: New file.
23674         * tests/test-nextafter.c: New file.
23675
23676         Tests for module 'modf'.
23677         * modules/modf-tests: New file.
23678         * tests/test-modf.c: New file.
23679
23680         Tests for module 'logb'.
23681         * modules/logb-tests: New file.
23682         * tests/test-logb.c: New file.
23683
23684         Tests for module 'log1p'.
23685         * modules/log1p-tests: New file.
23686         * tests/test-log1p.c: New file.
23687
23688         Tests for module 'log10'.
23689         * modules/log10-tests: New file.
23690         * tests/test-log10.c: New file.
23691
23692         Tests for module 'log'.
23693         * modules/log-tests: New file.
23694         * tests/test-log.c: New file.
23695
23696         Tests for module 'lgamma'.
23697         * modules/lgamma-tests: New file.
23698         * tests/test-lgamma.c: New file.
23699
23700         Tests for module 'ldexp'.
23701         * modules/ldexp-tests: New file.
23702         * tests/test-ldexp.c: New file.
23703
23704         Tests for module 'jn'.
23705         * modules/jn-tests: New file.
23706         * tests/test-jn.c: New file.
23707
23708         Tests for module 'j1'.
23709         * modules/j1-tests: New file.
23710         * tests/test-j1.c: New file.
23711
23712         Tests for module 'j0'.
23713         * modules/j0-tests: New file.
23714         * tests/test-j0.c: New file.
23715
23716         Tests for module 'hypot'.
23717         * modules/hypot-tests: New file.
23718         * tests/test-hypot.c: New file.
23719
23720         Tests for module 'fmod'.
23721         * modules/fmod-tests: New file.
23722         * tests/test-fmod.c: New file.
23723
23724         Tests for module 'fabs'.
23725         * modules/fabs-tests: New file.
23726         * tests/test-fabs.c: New file.
23727
23728         Tests for module 'exp'.
23729         * modules/exp-tests: New file.
23730         * tests/test-exp.c: New file.
23731
23732         Tests for module 'erfc'.
23733         * modules/erfc-tests: New file.
23734         * tests/test-erfc.c: New file.
23735
23736         Tests for module 'erf'.
23737         * modules/erf-tests: New file.
23738         * tests/test-erf.c: New file.
23739
23740         Tests for module 'cosh'.
23741         * modules/cosh-tests: New file.
23742         * tests/test-cosh.c: New file.
23743
23744         Tests for module 'cos'.
23745         * modules/cos-tests: New file.
23746         * tests/test-cos.c: New file.
23747
23748         Tests for module 'copysign'.
23749         * modules/copysign-tests: New file.
23750         * tests/test-copysign.c: New file.
23751
23752         Tests for module 'cbrt'.
23753         * modules/cbrt-tests: New file.
23754         * tests/test-cbrt.c: New file.
23755
23756         Tests for module 'atan2'.
23757         * modules/atan2-tests: New file.
23758         * tests/test-atan2.c: New file.
23759
23760         Tests for module 'atan'.
23761         * modules/atan-tests: New file.
23762         * tests/test-atan.c: New file.
23763
23764         Tests for module 'asin'.
23765         * modules/asin-tests: New file.
23766         * tests/test-asin.c: New file.
23767
23768         Tests for module 'acos'.
23769         * modules/acos-tests: New file.
23770         * tests/test-acos.c: New file.
23771
23772 2010-01-24  Bruno Haible  <bruno@clisp.org>
23773
23774         Fix tests for common <math.h> functions.
23775         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23776         code snippet that references the function pointer, rather than merely
23777         calling the function. Substitute the FUNC_LIBM variable.
23778         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23779         * modules/acos (configure.ac): Likewise.
23780         * modules/asin (configure.ac): Likewise.
23781         * modules/atan (configure.ac): Likewise.
23782         * modules/atan2 (configure.ac): Likewise.
23783         * modules/cbrt (configure.ac): Likewise.
23784         * modules/copysign (configure.ac): Likewise.
23785         * modules/cos (configure.ac): Likewise.
23786         * modules/cosh (configure.ac): Likewise.
23787         * modules/erf (configure.ac): Likewise.
23788         * modules/erfc (configure.ac): Likewise.
23789         * modules/exp (configure.ac): Likewise.
23790         * modules/fabs (configure.ac): Likewise.
23791         * modules/fmod (configure.ac): Likewise.
23792         * modules/hypot (configure.ac): Likewise.
23793         * modules/j0 (configure.ac): Likewise.
23794         * modules/j1 (configure.ac): Likewise.
23795         * modules/jn (configure.ac): Likewise.
23796         * modules/ldexp (configure.ac): Likewise.
23797         * modules/lgamma (configure.ac): Likewise.
23798         * modules/log (configure.ac): Likewise.
23799         * modules/log10 (configure.ac): Likewise.
23800         * modules/log1p (configure.ac): Likewise.
23801         * modules/logb (configure.ac): Likewise.
23802         * modules/modf (configure.ac): Likewise.
23803         * modules/nextafter (configure.ac): Likewise.
23804         * modules/pow (configure.ac): Likewise.
23805         * modules/remainder (configure.ac): Likewise.
23806         * modules/rint (configure.ac): Likewise.
23807         * modules/sin (configure.ac): Likewise.
23808         * modules/sinh (configure.ac): Likewise.
23809         * modules/tan (configure.ac): Likewise.
23810         * modules/tanh (configure.ac): Likewise.
23811         * modules/y0 (configure.ac): Likewise.
23812         * modules/y1 (configure.ac): Likewise.
23813         * modules/yn (configure.ac): Likewise.
23814
23815 2010-01-24  Bruno Haible  <bruno@clisp.org>
23816
23817         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23818         * tests/test-acosl.c (x): New variable.
23819         (main): Store argument in x and fetch it from x.
23820         * tests/test-asinl.c (x): New variable.
23821         (main): Store argument in x and fetch it from x.
23822         * tests/test-atanl.c (x): New variable.
23823         (main): Store argument in x and fetch it from x.
23824         * tests/test-cosl.c (x): New variable.
23825         (main): Store argument in x and fetch it from x.
23826         * tests/test-expl.c (x): New variable.
23827         (main): Store argument in x and fetch it from x.
23828         * tests/test-logl.c (x): New variable.
23829         (main): Store argument in x and fetch it from x.
23830         * tests/test-sinl.c (x): New variable.
23831         (main): Store argument in x and fetch it from x.
23832         * tests/test-sqrtl.c (x): New variable.
23833         (main): Store argument in x and fetch it from x.
23834         * tests/test-tanl.c (x): New variable.
23835         (main): Store argument in x and fetch it from x.
23836
23837 2010-01-24  Bruno Haible  <bruno@clisp.org>
23838
23839         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23840         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23841         assignments to the initial TESTS_ENVIRONMENT.
23842         * doc/gnulib.texi (Unit test modules): Document it.
23843         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23844         TESTS_ENVIRONMENT.
23845         * modules/btowc-tests (Makefile.am): Likewise.
23846         * modules/c-stack-tests (Makefile.am): Likewise.
23847         * modules/c-strcase-tests (Makefile.am): Likewise.
23848         * modules/copy-file-tests (Makefile.am): Likewise.
23849         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23850         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23851         * modules/mbrtowc-tests (Makefile.am): Likewise.
23852         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23853         * modules/mbscasestr-tests (Makefile.am): Likewise.
23854         * modules/mbschr-tests (Makefile.am): Likewise.
23855         * modules/mbscspn-tests (Makefile.am): Likewise.
23856         * modules/mbsinit-tests (Makefile.am): Likewise.
23857         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23858         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23859         * modules/mbspbrk-tests (Makefile.am): Likewise.
23860         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23861         * modules/mbsrchr-tests (Makefile.am): Likewise.
23862         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23863         * modules/mbsspn-tests (Makefile.am): Likewise.
23864         * modules/mbsstr-tests (Makefile.am): Likewise.
23865         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23866         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23867         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23868         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23869         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23870         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23871         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23872         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23873         * modules/wcrtomb-tests (Makefile.am): Likewise.
23874         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23875         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23876         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23877         assignments from TESTS_ENVIRONMENT.
23878         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23879         augmentation.
23880         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23881         * modules/atexit-tests (Makefile.am): Likewise.
23882         * modules/binary-io-tests (Makefile.am): Likewise.
23883         * modules/closein-tests (Makefile.am): Likewise.
23884         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23885         * modules/exclude-tests (Makefile.am): Likewise.
23886         * modules/fflush-tests (Makefile.am): Likewise.
23887         * modules/fpending-tests (Makefile.am): Likewise.
23888         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23889         * modules/freadahead-tests (Makefile.am): Likewise.
23890         * modules/freadptr-tests (Makefile.am): Likewise.
23891         * modules/freadseek-tests (Makefile.am): Likewise.
23892         * modules/fseek-tests (Makefile.am): Likewise.
23893         * modules/fseeko-tests (Makefile.am): Likewise.
23894         * modules/ftell-tests (Makefile.am): Likewise.
23895         * modules/ftello-tests (Makefile.am): Likewise.
23896         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23897         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23898         * modules/lseek-tests (Makefile.am): Likewise.
23899         * modules/parse-duration-tests (Makefile.am): Likewise.
23900         * modules/perror-tests (Makefile.am): Likewise.
23901         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23902         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23903         * modules/pipe-tests (Makefile.am): Likewise.
23904         * modules/pread-tests (Makefile.am): Likewise.
23905         * modules/printf-posix-tests (Makefile.am): Likewise.
23906         * modules/select-tests (Makefile.am): Likewise.
23907         * modules/sigpipe-tests (Makefile.am): Likewise.
23908         * modules/tsearch-tests (Makefile.am): Likewise.
23909         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23910         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23911         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23912         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23913         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23914         * modules/version-etc-tests (Makefile.am): Likewise.
23915         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23916         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23917         * modules/xalloc-die-tests (Makefile.am): Likewise.
23918         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23919         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23920         * modules/xstrtol-tests (Makefile.am): Likewise.
23921         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23922         * modules/yesno-tests (Makefile.am): Likewise.
23923         Suggested by Jim Meyering.
23924
23925 2010-01-24  Bruno Haible  <bruno@clisp.org>
23926
23927         More documentation.
23928         * doc/gnulib.texi (Writing modules): New chapter.
23929         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23930         the new chapter.
23931
23932 2010-01-24  Jim Meyering  <meyering@redhat.com>
23933
23934         maint.mk: do not prepend "./" after filtering
23935         * top/maint.mk (_prepend_srcdir_prefix): New variable
23936         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23937         "./" when $(srcdir) is ".".
23938
23939         define STREQ(a,b) consistently, removing useless parentheses
23940         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23941         since the only risk is that "a" or "b" contains an unparenthesized
23942         comma, but if either did that, STREQ would have 3 or more arguments.
23943         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23944         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23945         * lib/hash-triple.c (STREQ): Likewise.
23946         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23947         * lib/getugroups.c (STREQ): Likewise.
23948
23949 2010-01-23  Jim Meyering  <meyering@redhat.com>
23950
23951         maint.mk: fix syntax-check in a non-srcdir build directory
23952         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23953         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23954
23955 2010-01-22  Jim Meyering  <meyering@redhat.com>
23956
23957         userspec: add unit tests
23958         * tests/test-userspec.c: New file.
23959         * modules/userspec-tests: Likewise.
23960
23961 2010-01-21  Jim Meyering  <meyering@redhat.com>
23962
23963         maint.mk: handle source file names containing "." robustly
23964         * top/maint.mk (_dot_escaped_srcdir): Define.
23965         (VC_LIST): Use it in LHS of sed substitution.
23966
23967 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23968
23969         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23970         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23971         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23972         from a non-srcdir build.
23973
23974 2010-01-20  Eric Blake  <ebb9@byu.net>
23975
23976         warn-on-use: use instead of link-warning
23977         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23978         * modules/unistd (Depends-on, Makefile.am): Likewise.
23979         * modules/arpa_inet (Depends-on): Replace link-warning with
23980         warn-on-use.
23981         (Makefile.am): Update rules accordingly.
23982         * modules/ctype (Depends-on, Makefile.am): Likewise.
23983         * modules/dirent (Depends-on, Makefile.am): Likewise.
23984         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23985         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23986         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23987         * modules/locale (Depends-on, Makefile.am): Likewise.
23988         * modules/math (Depends-on, Makefile.am): Likewise.
23989         * modules/search (Depends-on, Makefile.am): Likewise.
23990         * modules/signal (Depends-on, Makefile.am): Likewise.
23991         * modules/spawn (Depends-on, Makefile.am): Likewise.
23992         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23993         * modules/string (Depends-on, Makefile.am): Likewise.
23994         * modules/strings (Depends-on, Makefile.am): Likewise.
23995         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23996         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23997         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23998         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23999         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24000         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24001         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24002         * modules/wchar (Depends-on, Makefile.am): Likewise.
24003         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24004         should be poisoned.
24005         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24006         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24007         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24009         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24010         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24011         * m4/math_h.m4 (gl_MATH_H): Likewise.
24012         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24013         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24014         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24015         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24016         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24017         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24018         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24019         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24021         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24024         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24025         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24026         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24027         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24028         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24029         GL_LINK_WARNING.
24030         * lib/ctype.in.h: Likewise.
24031         * lib/dirent.in.h: Likewise.
24032         * lib/fcntl.in.h: Likewise.
24033         * lib/inttypes.in.h: Likewise.
24034         * lib/langinfo.in.h: Likewise.
24035         * lib/locale.in.h: Likewise.
24036         * lib/math.in.h: Likewise.
24037         * lib/search.in.h: Likewise.
24038         * lib/signal.in.h: Likewise.
24039         * lib/spawn.in.h: Likewise.
24040         * lib/stdio.in.h: Likewise.
24041         * lib/stdlib.in.h: Likewise.
24042         * lib/string.in.h: Likewise.
24043         * lib/strings.in.h: Likewise.
24044         * lib/sys_file.in.h: Likewise.
24045         * lib/sys_ioctl.in.h: Likewise.
24046         * lib/sys_select.in.h: Likewise.
24047         * lib/sys_socket.in.h: Likewise.
24048         * lib/sys_stat.in.h: Likewise.
24049         * lib/sys_times.in.h: Likewise.
24050         * lib/sys_utsname.in.h: Likewise.
24051         * lib/unistd.in.h: Likewise.
24052         * lib/wchar.in.h: Likewise.
24053
24054 2010-01-20  Bruno Haible  <bruno@clisp.org>
24055
24056         Avoid duplicate -lm.
24057         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24058         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24061         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24062         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24063         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24064         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24065         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24066         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24067         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24068         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24069         Reported by Paolo Bonzini.
24070
24071 2010-01-19  Bruno Haible  <bruno@clisp.org>
24072
24073         langinfo, nl_langinfo: Relicense under LGPLv2+.
24074         * modules/langinfo (License): Change to LGPLv2+.
24075         * modules/nl_langinfo (License): Likewise.
24076         Patch by David Lutterkort <lutter@redhat.com>.
24077
24078 2010-01-19  Bruno Haible  <bruno@clisp.org>
24079
24080         Avoid compilation error with cc on OSF/1 5.1.
24081         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24082         statement, not before.
24083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24084
24085 2010-01-18  Bruno Haible  <bruno@clisp.org>
24086
24087         Avoid a link error due to the __printf__ symbol.
24088         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24089         and 2.6.x.
24090         (__format__, __printf__): Remove definitions.
24091         * lib/argp-fmtstream.h: Likewise.
24092         * lib/argp.h: Likewise.
24093         * lib/error.h: Likewise.
24094         * lib/vasnprintf.h: Likewise.
24095         * lib/xprintf.h: Likewise.
24096         * lib/xvasprintf.h: Likewise.
24097         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24098
24099 2010-01-18  Bruno Haible  <bruno@clisp.org>
24100
24101         Tests for module 'tanl'.
24102         * modules/tanl-tests: New file.
24103         * tests/test-tanl.c: New file.
24104
24105         Tests for module 'sqrtl'.
24106         * modules/sqrtl-tests: New file.
24107         * tests/test-sqrtl.c: New file.
24108
24109         Tests for module 'sinl'.
24110         * modules/sinl-tests: New file.
24111         * tests/test-sinl.c: New file.
24112
24113         Tests for module 'logl'.
24114         * modules/logl-tests: New file.
24115         * tests/test-logl.c: New file.
24116
24117         Tests for module 'expl'.
24118         * modules/expl-tests: New file.
24119         * tests/test-expl.c: New file.
24120
24121         Tests for module 'cosl'.
24122         * modules/cosl-tests: New file.
24123         * tests/test-cosl.c: New file.
24124
24125         Tests for module 'atanl'.
24126         * modules/atanl-tests: New file.
24127         * tests/test-atanl.c: New file.
24128
24129         Tests for module 'asinl'.
24130         * modules/asinl-tests: New file.
24131         * tests/test-asinl.c: New file.
24132
24133         Tests for module 'acosl'.
24134         * modules/acosl-tests: New file.
24135         * tests/test-acosl.c: New file.
24136
24137         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24138         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24139         tanl): Use the standard gnulib idiom.
24140         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24141         * lib/sinl.c: Likewise.
24142         * lib/tanl.c: Don't include trigl.c.
24143         (kernel_tanl): Make static.
24144         * lib/sincosl.c: Include trigl.h first.
24145         * lib/trigl.c: Likewise.
24146         * m4/acosl.m4: New file.
24147         * m4/asinl.m4: New file.
24148         * m4/atanl.m4: New file.
24149         * m4/cosl.m4: New file.
24150         * m4/expl.m4: New file.
24151         * m4/logl.m4: New file.
24152         * m4/sinl.m4: New file.
24153         * m4/sqrtl.m4: New file.
24154         * m4/tanl.m4: New file.
24155         * m4/mathl.m4: Remove file.
24156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24157         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24158         Don't initialize GNULIB_MATHL.
24159         * modules/acosl: New file.
24160         * modules/asinl: New file.
24161         * modules/atanl: New file.
24162         * modules/cosl: New file.
24163         * modules/expl: New file.
24164         * modules/logl: New file.
24165         * modules/sinl: New file.
24166         * modules/sqrtl: New file.
24167         * modules/tanl: New file.
24168         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24169         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24170         substitute GNULIB_MATHL.
24171         * modules/mathl: Rewritten.
24172         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24173         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24174         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24175         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24176         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24177         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24178         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24179         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24180         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24181
24182 2010-01-18  Bruno Haible  <bruno@clisp.org>
24183
24184         sqrt: Make gl_FUNC_SQRT requirable.
24185         * m4/sqrt.m4: New file.
24186         * modules/sqrt (Files): Add it.
24187         (configure.ac): Invoke gl_FUNC_SQRT.
24188
24189 2010-01-18  Bruno Haible  <bruno@clisp.org>
24190
24191         New modules for common <math.h> functions.
24192         * m4/mathfunc.m4: New file.
24193         * modules/acos: New file.
24194         * modules/asin: New file.
24195         * modules/atan: New file.
24196         * modules/atan2: New file.
24197         * modules/cbrt: New file.
24198         * modules/copysign: New file.
24199         * modules/cos: New file.
24200         * modules/cosh: New file.
24201         * modules/erf: New file.
24202         * modules/erfc: New file.
24203         * modules/exp: New file.
24204         * modules/fabs: New file.
24205         * modules/fmod: New file.
24206         * modules/hypot: New file.
24207         * modules/j0: New file.
24208         * modules/j1: New file.
24209         * modules/jn: New file.
24210         * modules/ldexp: New file.
24211         * modules/lgamma: New file.
24212         * modules/log: New file.
24213         * modules/log10: New file.
24214         * modules/log1p: New file.
24215         * modules/logb: New file.
24216         * modules/modf: New file.
24217         * modules/nextafter: New file.
24218         * modules/pow: New file.
24219         * modules/remainder: New file.
24220         * modules/rint: New file.
24221         * modules/sin: New file.
24222         * modules/sinh: New file.
24223         * modules/sqrt: New file.
24224         * modules/tan: New file.
24225         * modules/tanh: New file.
24226         * modules/y0: New file.
24227         * modules/y1: New file.
24228         * modules/yn: New file.
24229         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24230         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24231         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24232         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24233         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24234         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24235         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24236         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24237         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24238         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24239         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24240         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24241         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24242         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24243         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24244         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24245         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24246         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24247         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24248         * doc/posix-functions/log.texi: Mention the 'log' module.
24249         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24250         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24251         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24252         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24253         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24254         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24255         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24256         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24257         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24258         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24259         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24260         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24261         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24262         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24263         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24264         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24265
24266 2010-01-18  Jim Meyering  <meyering@redhat.com>
24267
24268         ignore-value: relax license to LGPLv2+
24269         * modules/ignore-value (License): Relax to LGPLv2+.
24270
24271         getdate: don't leak when TZ contains two or more '"'s
24272         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24273         double quote in TZ after the first one.
24274
24275         readtokens: do not leak internal token_lengths buffer
24276         * lib/readtokens.c (readtokens): Free the local, lengths,
24277         when the supplied "token_lengths" parameter is NULL.
24278
24279 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24280
24281         Fix a couple of missing LIBTHREAD link failures on AIX.
24282         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24283         $(LIBTHREAD).
24284         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24285
24286         Link test-poll against INET_PTON_LIB.
24287         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24288         for inet_pton on Solaris 10.
24289
24290 2010-01-17  Bruno Haible  <bruno@clisp.org>
24291
24292         unistdio/*-sprintf: Fix typo in module description.
24293         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24294         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24295         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24296         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24297         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24298         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24299         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24300         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24301
24302 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24303
24304         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24305         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24306         variables in shell case patterns, for AIX and HP-UX ksh.
24307
24308         Split large sed scripts, for HP-UX sed.
24309         * modules/stdio: Split sed scripts around 50 sed commands,
24310         to avoid HP-UX limit of 99 commands, in the near future.
24311         * modules/string: Likewise.
24312         * modules/unistd: Likewise.
24313
24314         gnulib-tool: avoid writing in the current directory.
24315         * gnulib-tool (func_emit_lib_Makefile_am)
24316         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24317         not in the current directory, so concurrent gnulib-tool
24318         instances do not interfere.
24319
24320 2010-01-16  Jim Meyering  <meyering@redhat.com>
24321
24322         doc: update users.txt
24323         * users.txt: Add grep.
24324         (diffutils, gzip): Update URLs.
24325
24326 2010-01-12  Bruno Haible  <bruno@clisp.org>
24327
24328         posix_spawn: Avoid test failure on Cygwin.
24329         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24330         characters.
24331         Reported by Simon Josefsson.
24332
24333 2010-01-12  Bruno Haible  <bruno@clisp.org>
24334
24335         * tests/test-cond.c (main): When skipping the test, show the reason.
24336
24337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24338
24339         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24340
24341 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24342
24343         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24344         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24345
24346 2010-01-12  Eric Blake  <ebb9@byu.net>
24347
24348         build: guarantee AS_VAR_IF
24349         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24350         (gl_AS_VAR_IF): Move...
24351         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24352         Reported by Simon Josefsson.
24353
24354 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24355
24356         * lib/stdio.in.h: Fix typo.
24357
24358 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24359
24360         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24361         libgpg-error.
24362
24363 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24364
24365         * tests/test-xalloc-die.sh: Use $EXEEXT.
24366
24367 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24368             Bruno Haible  <bruno@clisp.org>
24369
24370         getlogin, getlogin_r: Avoid test failure.
24371         * tests/test-getlogin.c: Include <stdio.h>.
24372         (main): Skip the test when the function fails because stdin is not a
24373         tty.
24374         * tests/test-getlogin_r.c: Include <stdio.h>.
24375         (main): Skip the test when the function fails because stdin is not a
24376         tty.
24377
24378 2010-01-11  Eric Blake  <ebb9@byu.net>
24379
24380         tests: avoid more large file warnings
24381         * tests/test-fflush.c: Avoid warning about ftell use.
24382         * tests/test-fseek.c: Avoid warning about fseek use.
24383
24384 2010-01-10  Bruno Haible  <bruno@clisp.org>
24385
24386         nproc: Work better on Linux when /proc and /sys are not mounted.
24387         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24388         as lower bound when, on glibc/Linux systems,
24389         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24390         Suggested by Pádraig Brady <P@draigbrady.com>.
24391         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24392
24393         nproc: Refactor.
24394         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24395         extracted from num_processors.
24396         (num_processors): Call it.
24397
24398 2010-01-11  Jim Meyering  <meyering@redhat.com>
24399
24400         utimecmp: avoid new warning from upcoming gcc-4.5.0
24401         * lib/utimecmp.c (BILLION): Define using #define rather than an
24402         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24403
24404 2010-01-11  Eric Blake  <ebb9@byu.net>
24405
24406         math: add portability warnings for classification macros
24407         * modules/math (Depends-on): Add warn-on-use.
24408         (Makefile.am): Provide new substitutions.
24409         * m4/math_h.m4 (gl_MATH_H): Require inline.
24410         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24411         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24412         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24413         implement warnings.
24414
24415         unistd: warn on use of environ without module
24416         * modules/unistd (Depends-on): Add warn-on-use.
24417         (Makefile.am): Provide new substitutions.
24418         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24419         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24420
24421         stdio: warn on suspicious uses
24422         * modules/stdio (Depends-on): Add warn-on-use.
24423         (Makefile.am): Provide new substitutions.
24424         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24425         fseeko.
24426         * lib/stdio.in.h (gets): Always warn on use.
24427         (fseek, ftell): Adjust when warnings are issued, and honor
24428         _GL_NO_LARGE_FILES as a way to silence the warning.
24429         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24430         any warning about large file offsets.
24431         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24432         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24433         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24434         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24435         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24436         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24437         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24438         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24439
24440         warn-on-use: new module
24441         * modules/warn-on-use: New file.
24442         * build-aux/warn-on-use.h: Likewise.
24443         * m4/warn-on-use.m4: Likewise.
24444         * MODULES.html.sh (Support for building): Mention it.
24445
24446 2010-01-10  Bruno Haible  <bruno@clisp.org>
24447
24448         Tests for module 'unistr/u32-strdup'.
24449         * modules/unistr/u32-strdup-tests: New file.
24450         * tests/unistr/test-u32-strdup.c: New file.
24451
24452         Tests for module 'unistr/u16-strdup'.
24453         * modules/unistr/u16-strdup-tests: New file.
24454         * tests/unistr/test-u16-strdup.c: New file.
24455
24456         Tests for module 'unistr/u8-strdup'.
24457         * modules/unistr/u8-strdup-tests: New file.
24458         * tests/unistr/test-u8-strdup.c: New file.
24459         * tests/unistr/test-strdup.h: New file.
24460
24461         Tests for module 'unistr/u32-strncmp'.
24462         * modules/unistr/u32-strncmp-tests: New file.
24463         * tests/unistr/test-u32-strncmp.c: New file.
24464
24465         Tests for module 'unistr/u16-strncmp'.
24466         * modules/unistr/u16-strncmp-tests: New file.
24467         * tests/unistr/test-u16-strncmp.c: New file.
24468
24469         Tests for module 'unistr/u8-strncmp'.
24470         * modules/unistr/u8-strncmp-tests: New file.
24471         * tests/unistr/test-u8-strncmp.c: New file.
24472         * tests/unistr/test-strncmp.h: New file.
24473
24474         Tests for module 'unistr/u32-strcoll'.
24475         * modules/unistr/u32-strcoll-tests: New file.
24476         * tests/unistr/test-u32-strcoll.c: New file.
24477
24478         Tests for module 'unistr/u16-strcoll'.
24479         * modules/unistr/u16-strcoll-tests: New file.
24480         * tests/unistr/test-u16-strcoll.c: New file.
24481
24482         Tests for module 'unistr/u8-strcoll'.
24483         * modules/unistr/u8-strcoll-tests: New file.
24484         * tests/unistr/test-u8-strcoll.c: New file.
24485
24486         Tests for module 'unistr/u32-strcmp'.
24487         * modules/unistr/u32-strcmp-tests: New file.
24488         * tests/unistr/test-u32-strcmp.c: New file.
24489         * tests/unistr/test-u32-strcmp.h: New file.
24490
24491         Tests for module 'unistr/u16-strcmp'.
24492         * modules/unistr/u16-strcmp-tests: New file.
24493         * tests/unistr/test-u16-strcmp.c: New file.
24494         * tests/unistr/test-u16-strcmp.h: New file.
24495
24496         Tests for module 'unistr/u8-strcmp'.
24497         * modules/unistr/u8-strcmp-tests: New file.
24498         * tests/unistr/test-u8-strcmp.c: New file.
24499         * tests/unistr/test-u8-strcmp.h: New file.
24500         * tests/unistr/test-strcmp.h: New file.
24501
24502         Tests for module 'unistr/u32-strncat'.
24503         * modules/unistr/u32-strncat-tests: New file.
24504         * tests/unistr/test-u32-strncat.c: New file.
24505
24506         Tests for module 'unistr/u16-strncat'.
24507         * modules/unistr/u16-strncat-tests: New file.
24508         * tests/unistr/test-u16-strncat.c: New file.
24509
24510         Tests for module 'unistr/u8-strncat'.
24511         * modules/unistr/u8-strncat-tests: New file.
24512         * tests/unistr/test-u8-strncat.c: New file.
24513         * tests/unistr/test-strncat.h: New file.
24514
24515         Tests for module 'unistr/u32-strcat'.
24516         * modules/unistr/u32-strcat-tests: New file.
24517         * tests/unistr/test-u32-strcat.c: New file.
24518
24519         Tests for module 'unistr/u16-strcat'.
24520         * modules/unistr/u16-strcat-tests: New file.
24521         * tests/unistr/test-u16-strcat.c: New file.
24522
24523         Tests for module 'unistr/u8-strcat'.
24524         * modules/unistr/u8-strcat-tests: New file.
24525         * tests/unistr/test-u8-strcat.c: New file.
24526         * tests/unistr/test-strcat.h: New file.
24527
24528         Tests for module 'unistr/u32-stpncpy'.
24529         * modules/unistr/u32-stpncpy-tests: New file.
24530         * tests/unistr/test-u32-stpncpy.c: New file.
24531
24532         Tests for module 'unistr/u16-stpncpy'.
24533         * modules/unistr/u16-stpncpy-tests: New file.
24534         * tests/unistr/test-u16-stpncpy.c: New file.
24535
24536         Tests for module 'unistr/u8-stpncpy'.
24537         * modules/unistr/u8-stpncpy-tests: New file.
24538         * tests/unistr/test-u8-stpncpy.c: New file.
24539         * tests/unistr/test-stpncpy.h: New file.
24540
24541         Tests for module 'unistr/u32-strncpy'.
24542         * modules/unistr/u32-strncpy-tests: New file.
24543         * tests/unistr/test-u32-strncpy.c: New file.
24544
24545         Tests for module 'unistr/u16-strncpy'.
24546         * modules/unistr/u16-strncpy-tests: New file.
24547         * tests/unistr/test-u16-strncpy.c: New file.
24548
24549         Tests for module 'unistr/u8-strncpy'.
24550         * modules/unistr/u8-strncpy-tests: New file.
24551         * tests/unistr/test-u8-strncpy.c: New file.
24552         * tests/unistr/test-strncpy.h: New file.
24553
24554         Tests for module 'unistr/u32-stpcpy'.
24555         * modules/unistr/u32-stpcpy-tests: New file.
24556         * tests/unistr/test-u32-stpcpy.c: New file.
24557
24558         Tests for module 'unistr/u16-stpcpy'.
24559         * modules/unistr/u16-stpcpy-tests: New file.
24560         * tests/unistr/test-u16-stpcpy.c: New file.
24561
24562         Tests for module 'unistr/u8-stpcpy'.
24563         * modules/unistr/u8-stpcpy-tests: New file.
24564         * tests/unistr/test-u8-stpcpy.c: New file.
24565         * tests/unistr/test-stpcpy.h: New file.
24566
24567         Tests for module 'unistr/u32-strcpy'.
24568         * modules/unistr/u32-strcpy-tests: New file.
24569         * tests/unistr/test-u32-strcpy.c: New file.
24570
24571         Tests for module 'unistr/u16-strcpy'.
24572         * modules/unistr/u16-strcpy-tests: New file.
24573         * tests/unistr/test-u16-strcpy.c: New file.
24574
24575         Tests for module 'unistr/u8-strcpy'.
24576         * modules/unistr/u8-strcpy-tests: New file.
24577         * tests/unistr/test-u8-strcpy.c: New file.
24578         * tests/unistr/test-strcpy.h: New file.
24579
24580         Tests for module 'unistr/u32-strnlen'.
24581         * modules/unistr/u32-strnlen-tests: New file.
24582         * tests/unistr/test-u32-strnlen.c: New file.
24583
24584         Tests for module 'unistr/u16-strnlen'.
24585         * modules/unistr/u16-strnlen-tests: New file.
24586         * tests/unistr/test-u16-strnlen.c: New file.
24587
24588         Tests for module 'unistr/u8-strnlen'.
24589         * modules/unistr/u8-strnlen-tests: New file.
24590         * tests/unistr/test-u8-strnlen.c: New file.
24591         * tests/unistr/test-strnlen.h: New file.
24592
24593         Tests for module 'unistr/u32-strlen'.
24594         * modules/unistr/u32-strlen-tests: New file.
24595         * tests/unistr/test-u32-strlen.c: New file.
24596
24597         Tests for module 'unistr/u16-strlen'.
24598         * modules/unistr/u16-strlen-tests: New file.
24599         * tests/unistr/test-u16-strlen.c: New file.
24600
24601         Tests for module 'unistr/u8-strlen'.
24602         * modules/unistr/u8-strlen-tests: New file.
24603         * tests/unistr/test-u8-strlen.c: New file.
24604
24605         Tests for module 'unistr/u32-prev'.
24606         * modules/unistr/u32-prev-tests: New file.
24607         * tests/unistr/test-u32-prev.c: New file.
24608
24609         Tests for module 'unistr/u16-prev'.
24610         * modules/unistr/u16-prev-tests: New file.
24611         * tests/unistr/test-u16-prev.c: New file.
24612
24613         Tests for module 'unistr/u8-prev'.
24614         * modules/unistr/u8-prev-tests: New file.
24615         * tests/unistr/test-u8-prev.c: New file.
24616
24617         Tests for module 'unistr/u32-next'.
24618         * modules/unistr/u32-next-tests: New file.
24619         * tests/unistr/test-u32-next.c: New file.
24620
24621         Tests for module 'unistr/u16-next'.
24622         * modules/unistr/u16-next-tests: New file.
24623         * tests/unistr/test-u16-next.c: New file.
24624
24625         Tests for module 'unistr/u8-next'.
24626         * modules/unistr/u8-next-tests: New file.
24627         * tests/unistr/test-u8-next.c: New file.
24628
24629         Tests for module 'unistr/u32-strmbtouc'.
24630         * modules/unistr/u32-strmbtouc-tests: New file.
24631         * tests/unistr/test-u32-strmbtouc.c: New file.
24632
24633         Tests for module 'unistr/u16-strmbtouc'.
24634         * modules/unistr/u16-strmbtouc-tests: New file.
24635         * tests/unistr/test-u16-strmbtouc.c: New file.
24636
24637         Tests for module 'unistr/u8-strmbtouc'.
24638         * modules/unistr/u8-strmbtouc-tests: New file.
24639         * tests/unistr/test-u8-strmbtouc.c: New file.
24640
24641         Tests for module 'unistr/u32-strmblen'.
24642         * modules/unistr/u32-strmblen-tests: New file.
24643         * tests/unistr/test-u32-strmblen.c: New file.
24644
24645         Tests for module 'unistr/u16-strmblen'.
24646         * modules/unistr/u16-strmblen-tests: New file.
24647         * tests/unistr/test-u16-strmblen.c: New file.
24648
24649         Tests for module 'unistr/u8-strmblen'.
24650         * modules/unistr/u8-strmblen-tests: New file.
24651         * tests/unistr/test-u8-strmblen.c: New file.
24652
24653         Tests for module 'unistr/u32-cpy-alloc'.
24654         * modules/unistr/u32-cpy-alloc-tests: New file.
24655         * tests/unistr/test-u32-cpy-alloc.c: New file.
24656
24657         Tests for module 'unistr/u16-cpy-alloc'.
24658         * modules/unistr/u16-cpy-alloc-tests: New file.
24659         * tests/unistr/test-u16-cpy-alloc.c: New file.
24660
24661         Tests for module 'unistr/u8-cpy-alloc'.
24662         * modules/unistr/u8-cpy-alloc-tests: New file.
24663         * tests/unistr/test-u8-cpy-alloc.c: New file.
24664         * tests/unistr/test-cpy-alloc.h: New file.
24665
24666         Tests for module 'unistr/u32-mbsnlen'.
24667         * modules/unistr/u32-mbsnlen-tests: New file.
24668         * tests/unistr/test-u32-mbsnlen.c: New file.
24669
24670         Tests for module 'unistr/u16-mbsnlen'.
24671         * modules/unistr/u16-mbsnlen-tests: New file.
24672         * tests/unistr/test-u16-mbsnlen.c: New file.
24673
24674         Tests for module 'unistr/u8-mbsnlen'.
24675         * modules/unistr/u8-mbsnlen-tests: New file.
24676         * tests/unistr/test-u8-mbsnlen.c: New file.
24677
24678         Tests for module 'unistr/u32-chr'.
24679         * modules/unistr/u32-chr-tests: New file.
24680         * tests/unistr/test-u32-chr.c: New file.
24681
24682         Tests for module 'unistr/u16-chr'.
24683         * modules/unistr/u16-chr-tests: New file.
24684         * tests/unistr/test-u16-chr.c: New file.
24685
24686         Tests for module 'unistr/u8-chr'.
24687         * modules/unistr/u8-chr-tests: New file.
24688         * tests/unistr/test-u8-chr.c: New file.
24689         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24690
24691         Tests for module 'unistr/u32-cmp2'.
24692         * modules/unistr/u32-cmp2-tests: New file.
24693         * tests/unistr/test-u32-cmp2.c: New file.
24694
24695         Tests for module 'unistr/u16-cmp2'.
24696         * modules/unistr/u16-cmp2-tests: New file.
24697         * tests/unistr/test-u16-cmp2.c: New file.
24698
24699         Tests for module 'unistr/u8-cmp2'.
24700         * modules/unistr/u8-cmp2-tests: New file.
24701         * tests/unistr/test-u8-cmp2.c: New file.
24702         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24703
24704         Tests for module 'unistr/u32-cmp'.
24705         * modules/unistr/u32-cmp-tests: New file.
24706         * tests/unistr/test-u32-cmp.c: New file.
24707
24708         Tests for module 'unistr/u16-cmp'.
24709         * modules/unistr/u16-cmp-tests: New file.
24710         * tests/unistr/test-u16-cmp.c: New file.
24711
24712         Tests for module 'unistr/u8-cmp'.
24713         * modules/unistr/u8-cmp-tests: New file.
24714         * tests/unistr/test-u8-cmp.c: New file.
24715         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24716
24717         Tests for module 'unistr/u32-set'.
24718         * modules/unistr/u32-set-tests: New file.
24719         * tests/unistr/test-u32-set.c: New file.
24720
24721         Tests for module 'unistr/u16-set'.
24722         * modules/unistr/u16-set-tests: New file.
24723         * tests/unistr/test-u16-set.c: New file.
24724
24725         Tests for module 'unistr/u8-set'.
24726         * modules/unistr/u8-set-tests: New file.
24727         * tests/unistr/test-u8-set.c: New file.
24728         * tests/unistr/test-set.h: New file.
24729
24730         Tests for module 'unistr/u32-move'.
24731         * modules/unistr/u32-move-tests: New file.
24732         * tests/unistr/test-u32-move.c: New file.
24733
24734         Tests for module 'unistr/u16-move'.
24735         * modules/unistr/u16-move-tests: New file.
24736         * tests/unistr/test-u16-move.c: New file.
24737
24738         Tests for module 'unistr/u8-move'.
24739         * modules/unistr/u8-move-tests: New file.
24740         * tests/unistr/test-u8-move.c: New file.
24741         * tests/unistr/test-move.h: New file.
24742
24743         Tests for module 'unistr/u32-cpy'.
24744         * modules/unistr/u32-cpy-tests: New file.
24745         * tests/unistr/test-u32-cpy.c: New file.
24746
24747         Tests for module 'unistr/u16-cpy'.
24748         * modules/unistr/u16-cpy-tests: New file.
24749         * tests/unistr/test-u16-cpy.c: New file.
24750
24751         Tests for module 'unistr/u8-cpy'.
24752         * modules/unistr/u8-cpy-tests: New file.
24753         * tests/unistr/test-u8-cpy.c: New file.
24754         * tests/unistr/test-cpy.h: New file.
24755
24756 2010-01-09  Bruno Haible  <bruno@clisp.org>
24757
24758         Tests for module 'unistr/u32-uctomb'.
24759         * modules/unistr/u32-uctomb-tests: New file.
24760         * tests/unistr/test-u32-uctomb.c: New file.
24761
24762         Tests for module 'unistr/u16-uctomb'.
24763         * modules/unistr/u16-uctomb-tests: New file.
24764         * tests/unistr/test-u16-uctomb.c: New file.
24765
24766         Tests for module 'unistr/u8-uctomb'.
24767         * modules/unistr/u8-uctomb-tests: New file.
24768         * tests/unistr/test-u8-uctomb.c: New file.
24769
24770         Tests for module 'unistr/u32-mbtoucr'.
24771         * modules/unistr/u32-mbtoucr-tests: New file.
24772         * tests/unistr/test-u32-mbtoucr.c: New file.
24773
24774         Tests for module 'unistr/u16-mbtoucr'.
24775         * modules/unistr/u16-mbtoucr-tests: New file.
24776         * tests/unistr/test-u16-mbtoucr.c: New file.
24777
24778         Tests for module 'unistr/u8-mbtoucr'.
24779         * modules/unistr/u8-mbtoucr-tests: New file.
24780         * tests/unistr/test-u8-mbtoucr.c: New file.
24781
24782         Tests for module 'unistr/u32-mbtouc'.
24783         * modules/unistr/u32-mbtouc-tests: New file.
24784         * tests/unistr/test-u32-mbtouc.c: New file.
24785
24786         Tests for module 'unistr/u16-mbtouc'.
24787         * modules/unistr/u16-mbtouc-tests: New file.
24788         * tests/unistr/test-u16-mbtouc.c: New file.
24789
24790         Tests for module 'unistr/u8-mbtouc'.
24791         * modules/unistr/u8-mbtouc-tests: New file.
24792         * tests/unistr/test-u8-mbtouc.c: New file.
24793
24794         Tests for module 'unistr/u32-mbtouc-unsafe'.
24795         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24796         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24797         * tests/unistr/test-u32-mbtouc.h: New file.
24798
24799         Tests for module 'unistr/u16-mbtouc-unsafe'.
24800         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24801         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24802         * tests/unistr/test-u16-mbtouc.h: New file.
24803
24804         Tests for module 'unistr/u8-mbtouc-unsafe'.
24805         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24806         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24807         * tests/unistr/test-u8-mbtouc.h: New file.
24808
24809         Tests for module 'unistr/u32-mblen'.
24810         * modules/unistr/u32-mblen-tests: New file.
24811         * tests/unistr/test-u32-mblen.c: New file.
24812
24813         Tests for module 'unistr/u16-mblen'.
24814         * modules/unistr/u16-mblen-tests: New file.
24815         * tests/unistr/test-u16-mblen.c: New file.
24816
24817         Tests for module 'unistr/u8-mblen'.
24818         * modules/unistr/u8-mblen-tests: New file.
24819         * tests/unistr/test-u8-mblen.c: New file.
24820
24821         Tests for module 'unistr/u32-to-u16'.
24822         * modules/unistr/u32-to-u16-tests: New file.
24823         * tests/unistr/test-u32-to-u16.c: New file.
24824
24825         Tests for module 'unistr/u32-to-u8'.
24826         * modules/unistr/u32-to-u8-tests: New file.
24827         * tests/unistr/test-u32-to-u8.c: New file.
24828
24829         Tests for module 'unistr/u16-to-u32'.
24830         * modules/unistr/u16-to-u32-tests: New file.
24831         * tests/unistr/test-u16-to-u32.c: New file.
24832
24833         Tests for module 'unistr/u16-to-u8'.
24834         * modules/unistr/u16-to-u8-tests: New file.
24835         * tests/unistr/test-u16-to-u8.c: New file.
24836
24837         Tests for module 'unistr/u8-to-u32'.
24838         * modules/unistr/u8-to-u32-tests: New file.
24839         * tests/unistr/test-u8-to-u32.c: New file.
24840
24841         Tests for module 'unistr/u8-to-u16'.
24842         * modules/unistr/u8-to-u16-tests: New file.
24843         * tests/unistr/test-u8-to-u16.c: New file.
24844
24845         Tests for module 'unistr/u32-check'.
24846         * modules/unistr/u32-check-tests: New file.
24847         * tests/unistr/test-u32-check.c: New file.
24848
24849         Tests for module 'unistr/u16-check'.
24850         * modules/unistr/u16-check-tests: New file.
24851         * tests/unistr/test-u16-check.c: New file.
24852
24853         Tests for module 'unistr/u8-check'.
24854         * modules/unistr/u8-check-tests: New file.
24855         * tests/unistr/test-u8-check.c: New file.
24856
24857         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24858         (category_equals): New function.
24859         (main): Add more tests.
24860         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24861
24862         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24863
24864 2010-01-10  Bruno Haible  <bruno@clisp.org>
24865
24866         unistr/u*-strcoll: Try harder to distinguish different strings.
24867         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24868         compare s1 and s2 to see if they are different.
24869
24870 2010-01-10  Bruno Haible  <bruno@clisp.org>
24871
24872         unistr/u*-stpncpy: Fix the return value.
24873         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24874         description of the return value consistent with stpncpy in glibc.
24875         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24876         written non-NUL unit.
24877
24878 2010-01-10  Bruno Haible  <bruno@clisp.org>
24879
24880         unistr/u*-next: Add missing dependencies.
24881         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24882         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24883         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24884
24885 2010-01-10  Bruno Haible  <bruno@clisp.org>
24886
24887         unistr/u8-mbsnlen: Fix return value for incomplete character.
24888         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24889         u8_mblen.
24890         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24891         Remove unistr/u8-mblen.
24892         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24893         u16_mblen.
24894         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24895         Remove unistr/u16-mblen.
24896
24897 2010-01-10  Bruno Haible  <bruno@clisp.org>
24898
24899         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24900         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24901         Reported by Brian Gough <bjg@gnu.org> and
24902         Chris Clayton <chris2553@googlemail.com> via
24903         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24904
24905 2010-01-09  Bruno Haible  <bruno@clisp.org>
24906
24907         unistr/u16-to-u32: Reject invalid input.
24908         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24909         u16_mbtouc.
24910         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24911         Remove unistr/u16-mbtouc.
24912
24913         unistr/u16-to-u8: Reject invalid input.
24914         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24915         u16_mbtouc.
24916         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24917         Remove unistr/u16-mbtouc.
24918
24919         unistr/u8-to-u32: Reject invalid input.
24920         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24921         u8_mbtouc.
24922         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24923         Remove unistr/u8-mbtouc.
24924
24925         unistr/u8-to-u16: Reject invalid input.
24926         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24927         u8_mbtouc.
24928         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24929         Remove unistr/u8-mbtouc.
24930
24931 2010-01-09  Bruno Haible  <bruno@clisp.org>
24932
24933         Tests for module 'getlogin'.
24934         * modules/getlogin-tests: New file.
24935         * tests/test-getlogin.c: New file.
24936
24937         New module 'getlogin'.
24938         * lib/unistd.in.h (getlogin): New declaration.
24939         * lib/getlogin.c: New file.
24940         * m4/getlogin.m4: New file.
24941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24942         HAVE_GETLOGIN.
24943         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24944         HAVE_GETLOGIN.
24945         * modules/getlogin: New file.
24946         * doc/posix-functions/getlogin.texi: Mention the new module.
24947         Reported by John W. Eaton <jwe@gnu.org>.
24948
24949 2010-01-09  Bruno Haible  <bruno@clisp.org>
24950
24951         getlogin_r: Support for native Windows.
24952         * lib/getlogin_r.c: Include <windows.h>
24953         (getlogin_r): Implement for native Windows.
24954         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24955         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24956         via John W. Eaton <jwe@gnu.org>.
24957
24958 2010-01-09  Bruno Haible  <bruno@clisp.org>
24959
24960         getlogin_r: Small fixes.
24961         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24962         succeeds.
24963         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24964         before testing whether getlogin_r is declared. No need to set
24965         HAVE_DECL_GETLOGIN_R to 1.
24966         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24967
24968 2010-01-09  Bruno Haible  <bruno@clisp.org>
24969
24970         * lib/unistd.in.h (getlogin_r): Add comment.
24971
24972 2010-01-09  Bruno Haible  <bruno@clisp.org>
24973
24974         Tests for module 'getlogin_r'.
24975         * modules/getlogin_r-tests: New file.
24976         * tests/test-getlogin_r.c: New file.
24977
24978 2010-01-09  Jim Meyering  <meyering@redhat.com>
24979
24980         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24981         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24982         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24983
24984 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24985
24986         * lib/dup2.c (rpl_dup2): Improve comment.
24987
24988 2010-01-08  Eric Blake  <ebb9@byu.net>
24989
24990         maint.mk: allow packages to add makefile @@ exceptions
24991         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24992         (sc_makefile_check): Rename...
24993         (sc_makefile_at_at_check): ...to this, and use hook.
24994
24995         dup2: work around mingw bug
24996         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24997         Reported by Simon Josefsson.
24998
24999 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25000
25001         glob: Fix C++ compilation.
25002         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25003         C++.
25004
25005 2010-01-07  Bruno Haible  <bruno@clisp.org>
25006
25007         Fix indentation of wctype.in.h, broken since 2007-01-06.
25008         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25009
25010 2010-01-07  Bruno Haible  <bruno@clisp.org>
25011
25012         mbslen: Avoid collision with system function.
25013         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25014         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25015         * m4/mbslen.m4: New file.
25016         * modules/mbslen (Files): Add it.
25017         (configure.ac): Invoke gl_MBSLEN.
25018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25019         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25020         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25021         via Ian Beckwith <ianb@erislabs.net>.
25022
25023 2010-01-07  Bruno Haible  <bruno@clisp.org>
25024
25025         dirent: Document the last fix.
25026         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25027
25028 2010-01-07  Bruno Haible  <bruno@clisp.org>
25029
25030         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25031         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25032         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25033         va_list are defined.
25034         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25035         Reported by Eric Blake.
25036
25037 2010-01-07  Bruno Haible  <bruno@clisp.org>
25038
25039         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25040         * modules/xlist (Depends-on): Add 'list',
25041         * modules/xoset (Depends-on): Add 'oset'.
25042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25043
25044 2010-01-07  Bruno Haible  <bruno@clisp.org>
25045
25046         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25047         * doc/posix-functions/strncasecmp.texi: Likewise.
25048
25049 2010-01-07  Bruno Haible  <bruno@clisp.org>
25050
25051         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25052
25053 2010-01-07  John W. Eaton  <jwe@octave.org>
25054
25055         wctype: allow C++ use
25056         * lib/wctype.in.h: Add extern "C" block for C++.
25057
25058 2010-01-06  Eric Blake  <ebb9@byu.net>
25059
25060         maint.mk: detect incorrect GFDL usage
25061         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25062
25063 2010-01-06  Jim Meyering  <meyering@redhat.com>
25064         and Eric Blake  <ebb9@byu.net>
25065
25066         maint.mk: ignore multi-line copyright in NEWS
25067         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25068
25069 2010-01-06  Eric Blake  <ebb9@byu.net>
25070
25071         select: add missing dependency
25072         * modules/select-tests (Depends-on): Move sockets dependency...
25073         * modules/select (Depends-on): ...here.
25074         Reported by Ian Beckwith.
25075
25076         doc: regenerate INSTALL
25077         * doc/INSTALL: Reflect recent autoconf update.
25078         * doc/INSTALL.ISO: Likewise.
25079         * doc/INSTALL.UTF-8: Likewise.
25080
25081         pread: fix compilation on glibc
25082         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25083         Reported by Ralf Wildenhues.
25084
25085         dirent: fix test failure
25086         * lib/dirent.in.h (includes): Guarantee ino_t.
25087         Reported by Ralf Wildenhues.
25088
25089 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25090
25091         linkat, renameat: avoid bad free
25092         * lib/at-func2.c (at_func2): Fix typo.
25093         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25094
25095 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25096
25097         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25098         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25099         to avoid failure of symlink test later.
25100
25101 2010-01-06  Eric Blake  <ebb9@byu.net>
25102
25103         stdio, unistd: guarantee ssize_t
25104         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25105         2008 are exposed when needed.
25106         * lib/stdio.in.h (includes): Likewise.
25107         Reported by Ralf Wildenhues.
25108
25109 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25110
25111         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25112         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25113         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25114
25115 2010-01-06  Jim Meyering  <meyering@redhat.com>
25116
25117         readtokens: this module *does* require xalloc.h
25118         It uses only functions that were omitted by the old syntax-check rule.
25119         * lib/readtokens.c: Include "xalloc.h" once again.
25120         * modules/readtokens (Depends-on): Add xalloc.
25121         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25122
25123 2010-01-05  Eric Blake  <ebb9@byu.net>
25124
25125         maint: support 'make announcement' from a VPATH build
25126         * top/maint.mk (announcement): Look for correct NEWS file.
25127
25128 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25129
25130         utimens (fdutimens): ignore a negative FD, per contract
25131         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25132         when we have a valid file descriptor.  Otherwise, using a brand
25133         new glibc (with just-patched futimens that now fails with EBADF)
25134         would cause this function to fail with ENOSYS.
25135         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25136         See also http://bugzilla.redhat.com/552320.
25137
25138 2010-01-05  Eric Blake  <ebb9@byu.net>
25139
25140         strcase: document what it provides
25141         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25142         gnulib module.
25143         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25144         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25145
25146 2010-01-05  Jim Meyering  <meyering@redhat.com>
25147
25148         maint: remove useless inclusions of "xalloc.h"
25149         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25150         * lib/readtokens.c: Likewise.
25151         * lib/same.c: Likewise.
25152         * modules/getloadavg (Depends-on): Remove xalloc.
25153         * modules/readtokens: Likewise.
25154         * modules/same: Likewise.
25155
25156         maint.mk: include 4 more function names in alloca.h-checking regexp
25157         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25158         regexp.  Before, we would give a false-positive (saying alloca.h
25159         is included unnecessarily) when the only uses involved omitted symbols.
25160
25161         xalloc.h: use consistent formatting
25162         * lib/xalloc.h: Move declarations to start in the first column.
25163
25164 2010-01-05  Eric Blake  <ebb9@byu.net>
25165
25166         mkdir: avoid xalloc
25167         * lib/mkdir.c (includes): Drop unused header.
25168         Reported by John W. Eaton.
25169
25170 2010-01-04  Jim Meyering  <meyering@redhat.com>
25171
25172         nl_langinfo: avoid configure-time syntax error
25173         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25174         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25175         the empty string.  Don't let that provoke a shell syntax error.
25176
25177         regcomp, regexec, fnmatch: avoid array bounds read error
25178         * lib/regcomp.c (build_equiv_class): From glibc:
25179         Use only the low 24 bits of a findidx return value as an index
25180         into the weights array.  Patch by Ulrich Drepper:
25181         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25182         * lib/regexec.c (check_node_accept_bytes): Likewise.
25183         * lib/fnmatch_loop.c (FCT): Likewise.
25184
25185         regcomp: skip collseq lookup when there are no rules
25186         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25187         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25188
25189         regcomp: recognize ill-formed { } expressions
25190         * lib/regcomp.c (parse_dup_op): From glibc:
25191         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25192
25193         regcomp: fix typo in comment
25194         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25195         s/satisfy/satisfies/.
25196
25197         regcomp: sync from glibc: remove dead store
25198         * lib/regcomp.c (duplicate_node_closure): Remove useless
25199         search_duplicated_node call and dead store.
25200
25201         regcomp: sync from glibc; always use nl_langinfo
25202         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25203         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25204         * modules/regex (Depends-on): Add nl_langinfo.
25205
25206 2010-01-04  Eric Blake  <ebb9@byu.net>
25207
25208         fdopendir: fix configure test
25209         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25210
25211 2010-01-01  Bruno Haible  <bruno@clisp.org>
25212
25213         wchar: Remove unused configure check.
25214         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25215
25216 2010-01-01  Eric Blake  <ebb9@byu.net>
25217
25218         headers: make check of system header explicit
25219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25220         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25221         ourselves.
25222         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25225         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25226         internals.
25227         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25228         missing.
25229         Suggested by Bruno Haible.
25230
25231 2010-01-01  Jim Meyering  <meyering@redhat.com>
25232
25233         ChangeLog: tweak to eliminate unnecessary copyright line
25234         * ChangeLog: Remove a copyright line that was mistakenly updated
25235         by today's update-copyright run.  Reported by Eric Blake.
25236
25237         test-update-copyright: don't let envvar setting cause test failure
25238         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25239
25240 2010-01-01  Bruno Haible  <bruno@clisp.org>
25241
25242         localename: Avoid gcc warning.
25243         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25244         function if it is not used.
25245
25246 2010-01-01  Jim Meyering  <meyering@redhat.com>
25247
25248         update nearly all FSF copyright year lists to include 2010
25249         Use the same procedure as for 2009, outlined in
25250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25251
25252         version-etc: set COPYRIGHT_YEAR to 2010
25253         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25254
25255 2009-12-31  Eric Blake  <ebb9@byu.net>
25256
25257         doc: correct availability of cygwin 1.5.x getopt
25258         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25259         variables.
25260         * doc/posix-functions/opterr.texi (opterr): Likewise.
25261         * doc/posix-functions/optind.texi (optind): Likewise.
25262         * doc/posix-functions/optopt.texi (optopt): Likewise.
25263         * doc/posix-functions/tzname.texi (tzname): Likewise.
25264
25265         openat: update maintainer
25266         * modules/openat (Maintainer): Add myself.
25267
25268         utimens: avoid shadowing warning
25269         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25270         buffers into one, to avoid shadowing, as well as avoiding a
25271         redundant stat.
25272         Reported by Jim Meyering.
25273
25274         test-dup2: avoid compiler warning
25275         * tests/test-dup2.c (is_inheritable): Only define if used.
25276
25277 2010-01-01  Bruno Haible  <bruno@clisp.org>
25278
25279         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25280         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25281         defined, use wctomb instead of wcrtomb.
25282
25283 2010-01-01  Bruno Haible  <bruno@clisp.org>
25284
25285         iconv: Reject native Solaris iconv.
25286         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25287         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25288
25289 2009-12-31  Bruno Haible  <bruno@clisp.org>
25290
25291         * tests/test-signal.c (main): Remove test of 'SIG'.
25292
25293 2009-12-31  Bruno Haible  <bruno@clisp.org>
25294
25295         spawn: Fix incomplete fix.
25296         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25297         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25298         warnings for GNULIB_POSIXCHECK again.
25299         Reported by Eric Blake.
25300
25301 2009-12-31  Bruno Haible  <bruno@clisp.org>
25302
25303         Avoid namespace pollution on glibc systems.
25304         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25305         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25306         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25307         glibc systems.
25308
25309 2009-12-31  Bruno Haible  <bruno@clisp.org>
25310
25311         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25312         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25313         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25314         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25315         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25316         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25317         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25318
25319 2009-12-31  Bruno Haible  <bruno@clisp.org>
25320
25321         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25322         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25323         afterwards.
25324
25325 2009-12-31  Bruno Haible  <bruno@clisp.org>
25326
25327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25328         SYS_UTSNAME_H.
25329
25330 2009-12-31  Bruno Haible  <bruno@clisp.org>
25331
25332         spawn: Fix misapplied patch.
25333         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25334         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25335         warnings for GNULIB_POSIXCHECK.
25336
25337 2009-12-31  Bruno Haible  <bruno@clisp.org>
25338
25339         times: Update after sys_times changed.
25340         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25341         * modules/times (Files): Add it.
25342         (configure.ac): Invoke gl_FUNC_TIMES.
25343
25344 2009-12-31  Bruno Haible  <bruno@clisp.org>
25345
25346         Use AC_C_INLINE where necessary.
25347         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25350         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25351         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25352         * m4/mbiter.m4 (gl_MBITER): Likewise.
25353         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25354         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25355         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25356         * modules/u64 (configure.ac): Likewise.
25357
25358 2009-12-31  Bruno Haible  <bruno@clisp.org>
25359
25360         Use AC_C_INLINE instead of module 'inline' where possible.
25361         * modules/inline (Description): Clarify purpose.
25362         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25363         * modules/count-one-bits (Depends-on): Remove inline.
25364         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25365         * modules/openat (Depends-on): Remove inline.
25366         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25367         instead of depending on module 'inline'.
25368         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25369         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25370         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25371         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25372         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25373         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25374         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25375         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25376         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25377         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25378         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25379         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25380         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25381         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25382         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25383         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25384         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25385         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25386         Likewise.
25387         * modules/unictype/property-ascii-hex-digit (Depends-on,
25388         configure.ac): Likewise.
25389         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25390         configure.ac): Likewise.
25391         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25392         configure.ac): Likewise.
25393         * modules/unictype/property-bidi-block-separator (Depends-on,
25394         configure.ac): Likewise.
25395         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25396         configure.ac): Likewise.
25397         * modules/unictype/property-bidi-common-separator (Depends-on,
25398         configure.ac): Likewise.
25399         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25400         Likewise.
25401         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25402         configure.ac): Likewise.
25403         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25404         configure.ac): Likewise.
25405         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25406         configure.ac): Likewise.
25407         * modules/unictype/property-bidi-european-digit (Depends-on,
25408         configure.ac): Likewise.
25409         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25410         configure.ac): Likewise.
25411         * modules/unictype/property-bidi-left-to-right (Depends-on,
25412         configure.ac): Likewise.
25413         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25414         configure.ac): Likewise.
25415         * modules/unictype/property-bidi-other-neutral (Depends-on,
25416         configure.ac): Likewise.
25417         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25418         Likewise.
25419         * modules/unictype/property-bidi-segment-separator (Depends-on,
25420         configure.ac): Likewise.
25421         * modules/unictype/property-bidi-whitespace (Depends-on,
25422         configure.ac): Likewise.
25423         * modules/unictype/property-combining (Depends-on, configure.ac):
25424         Likewise.
25425         * modules/unictype/property-composite (Depends-on, configure.ac):
25426         Likewise.
25427         * modules/unictype/property-currency-symbol (Depends-on,
25428         configure.ac): Likewise.
25429         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25430         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25431         Likewise.
25432         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25433         configure.ac): Likewise.
25434         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25435         Likewise.
25436         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25437         Likewise.
25438         * modules/unictype/property-extender (Depends-on, configure.ac):
25439         Likewise.
25440         * modules/unictype/property-format-control (Depends-on, configure.ac):
25441         Likewise.
25442         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25443         Likewise.
25444         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25445         Likewise.
25446         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25447         Likewise.
25448         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25449         Likewise.
25450         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25451         Likewise.
25452         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25453         Likewise.
25454         * modules/unictype/property-id-start (Depends-on, configure.ac):
25455         Likewise.
25456         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25457         Likewise.
25458         * modules/unictype/property-ids-binary-operator (Depends-on,
25459         configure.ac): Likewise.
25460         * modules/unictype/property-ids-trinary-operator (Depends-on,
25461         configure.ac): Likewise.
25462         * modules/unictype/property-ignorable-control (Depends-on,
25463         configure.ac): Likewise.
25464         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25465         Likewise.
25466         * modules/unictype/property-join-control (Depends-on, configure.ac):
25467         Likewise.
25468         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25469         Likewise.
25470         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25471         Likewise.
25472         * modules/unictype/property-logical-order-exception (Depends-on,
25473         configure.ac): Likewise.
25474         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25475         Likewise.
25476         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25477         * modules/unictype/property-non-break (Depends-on, configure.ac):
25478         Likewise.
25479         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25480         Likewise.
25481         * modules/unictype/property-numeric (Depends-on, configure.ac):
25482         Likewise.
25483         * modules/unictype/property-other-alphabetic (Depends-on,
25484         configure.ac): Likewise.
25485         * modules/unictype/property-other-default-ignorable-code-point
25486         (Depends-on, configure.ac): Likewise.
25487         * modules/unictype/property-other-grapheme-extend (Depends-on,
25488         configure.ac): Likewise.
25489         * modules/unictype/property-other-id-continue (Depends-on,
25490         configure.ac): Likewise.
25491         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25492         Likewise.
25493         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25494         Likewise.
25495         * modules/unictype/property-other-math (Depends-on, configure.ac):
25496         Likewise.
25497         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25498         Likewise.
25499         * modules/unictype/property-paired-punctuation (Depends-on,
25500         configure.ac): Likewise.
25501         * modules/unictype/property-paragraph-separator (Depends-on,
25502         configure.ac): Likewise.
25503         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25504         Likewise.
25505         * modules/unictype/property-pattern-white-space (Depends-on,
25506         configure.ac): Likewise.
25507         * modules/unictype/property-private-use (Depends-on, configure.ac):
25508         Likewise.
25509         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25510         Likewise.
25511         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25512         Likewise.
25513         * modules/unictype/property-radical (Depends-on, configure.ac):
25514         Likewise.
25515         * modules/unictype/property-sentence-terminal (Depends-on,
25516         configure.ac): Likewise.
25517         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25518         Likewise.
25519         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25520         * modules/unictype/property-terminal-punctuation (Depends-on,
25521         configure.ac): Likewise.
25522         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25523         Likewise.
25524         * modules/unictype/property-unassigned-code-value (Depends-on,
25525         configure.ac): Likewise.
25526         * modules/unictype/property-unified-ideograph (Depends-on,
25527         configure.ac): Likewise.
25528         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25529         Likewise.
25530         * modules/unictype/property-variation-selector (Depends-on,
25531         configure.ac): Likewise.
25532         * modules/unictype/property-white-space (Depends-on, configure.ac):
25533         Likewise.
25534         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25535         Likewise.
25536         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25537         Likewise.
25538         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25539         Likewise.
25540         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25541         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25542         Likewise.
25543
25544 2009-12-31  Bruno Haible  <bruno@clisp.org>
25545
25546         Remove unnecessary AC_C_INLINE invocation.
25547         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25548         since 2009-08-21.
25549
25550 2009-12-31  Jim Meyering  <meyering@redhat.com>
25551
25552         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25553         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25554         With this change, we can all remove the gpg_key_ID = ... definition
25555         from our respective cfg.mk files.
25556
25557         maint.mk: create announcement template in ~/, not in /tmp
25558         * top/maint.mk (emit_upload_commands): Adjust.
25559         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25560         Remove temporary file, .ci-msg.
25561
25562 2009-12-31  Eric Blake  <ebb9@byu.net>
25563
25564         link-warning: always build headers with link warnings
25565         * modules/arpa_inet (Makefile.am): Always build replacement
25566         header.
25567         * modules/ctype (Makefile.am): Likewise.
25568         * modules/dirent (Makefile.am): Likewise.
25569         * modules/inttypes (Makefile.am): Likewise.
25570         * modules/langinfo (Makefile.am): Likewise.
25571         * modules/locale (Makefile.am): Likewise.
25572         * modules/spawn (Makefile.am): Likewise.
25573         * modules/sys_file (Makefile.am): Likewise.
25574         * modules/sys_ioctl (Makefile.am): Likewise.
25575         * modules/sys_select (Makefile.am): Likewise.
25576         * modules/sys_socket (Makefile.am): Likewise.
25577         * modules/sys_times (Makefile.am): Likewise.
25578         * modules/sys_utsname (Makefile.am): Likewise.
25579         * modules/sys_wait (Makefile.am): Likewise.
25580         * modules/wchar (Makefile.am): Likewise.
25581         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25582         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25583         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25584         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25585         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25586         Likewise.
25587         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25588         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25589         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25590         Likewise.
25591         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25592         Likewise.
25593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25594         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25595         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25596         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25597         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25598         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25599         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25600         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25601         (gl_WCHAR_H_DEFAULTS): Likewise.
25602
25603 2009-12-31  Eric Blake  <ebb9@byu.net>
25604
25605         signal, spawn: use link warnings
25606         * lib/signal.in.h (sigset_t): Make unconditional.
25607         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25608         (sigpending, sigprocmask, sigaction): Add link warnings.
25609         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25610         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25611         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25612         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25613         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25614         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25615         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25616         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25617         (posix_spawn_file_actions_destroy)
25618         (posix_spawn_file_actions_addopen)
25619         (posix_spawn_file_actions_addclose)
25620         (posix_spawn_file_actions_adddup2): Likewise.
25621         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25622         * tests/test-signal.c (main): Enhance test.
25623
25624         spawn: improve wrapper support
25625         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25626         (gl_SPAWN_H_DEFAULTS): New defaults.
25627         * modules/spawn (Makefile.am): Substitute them.
25628         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25629         Only declare if missing or broken.
25630
25631         sys_times, sys_utsname: use include_next
25632         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25633         header.
25634         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25635         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25636         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25637         * modules/sys_times (Depends-on): Add include_next.
25638         (Makefile.am): Substitute additional values.
25639         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25640         * lib/sys_times.in.h (includes): Include native header, if
25641         available.
25642         * lib/sys_utsname.in.h (includes): Likewise.
25643         * tests/test-sys_times.c (main): Enhance test.
25644
25645         fdutimensat: revert prior patch
25646         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25647         utimens.h.
25648         Reported by Bruno Haible.
25649
25650 2009-12-30  Eric Blake  <ebb9@byu.net>
25651
25652         sys_wait: drop link-warning dependency
25653         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25654         link-warning efforts.
25655         * lib/sys_wait.in.h: Likewise.
25656
25657         fdutimensat: remove bogus dependency
25658         * modules/fdutimensat (Depends-on): Drop inline.
25659
25660         unistd: fix typo
25661         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25662
25663 2009-12-30  Bruno Haible  <bruno@clisp.org>
25664
25665         Fix compilation error with Solaris cc.
25666         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25667         * lib/unicase/u16-is-invariant.c: Likewise.
25668         * lib/unicase/u32-is-invariant.c: Likewise.
25669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25670
25671 2009-12-30  Bruno Haible  <bruno@clisp.org>
25672
25673         Fix test crash.
25674         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25675         locales.
25676         Reported by Simon Josefsson <simon@josefsson.org>.
25677
25678 2009-12-30  Bruno Haible  <bruno@clisp.org>
25679
25680         Fix compilation error on most platforms.
25681         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25682         Reported by Simon Josefsson <simon@josefsson.org>
25683         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25684
25685 2009-12-30  Eric Blake  <ebb9@byu.net>
25686
25687         futimens, utimensat: work around ntfs-3g bug
25688         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25689         a ctime bug is present, and expand workaround to cover ntfs-3g.
25690         * lib/utimens.c (fdutimens, lutimens): Likewise.
25691         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25692         (validate_timespec): Adjust return value.
25693         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25694         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25695         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25696
25697 2009-12-29  Eric Blake  <ebb9@byu.net>
25698
25699         link-warning: make usage consistent
25700         * modules/ctype (Depends-on): Add link-warning.
25701         (Makefile.am): Update rules accordingly.
25702         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25703         * modules/locale (Depends-on, Makefile.am): Likewise.
25704         * modules/sys_file (Makefile.am): Likewise.
25705         * modules/getopt-posix (Makefile.am): Delete unused link warning
25706         efforts.
25707         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25708         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25709         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25710         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25711
25712         stdio: remove unused variables
25713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25714         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25715         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25716
25717         tests: test more substitute headers
25718         * modules/ctype-tests: New file.
25719         * modules/dirent-tests: Likewise.
25720         * modules/spawn-tests: Likewise.
25721         * modules/sys_file-tests: Likewise.
25722         * modules/sys_ioctl-tests: Likewise.
25723         * modules/sys_wait-tests: Likewise.
25724         * tests/test-ctype.c: Likewise.
25725         * tests/test-dirent.c: Likewise.
25726         * tests/test-spawn.c: Likewise.
25727         * tests/test-sys_file.c: Likewise.
25728         * tests/test-sys_ioctl.c: Likewise.
25729         * tests/test-sys_wait.c: Likewise.
25730         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25731         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25732         whether or not flock is in use.
25733
25734         tests: remove License section from module
25735         * modules/arpa_inet-tests: Remove unneeded section.
25736         * modules/byteswap-tests: Likewise.
25737         * modules/ceilf-tests: Likewise.
25738         * modules/ceill-tests: Likewise.
25739         * modules/crypto/des-tests: Likewise.
25740         * modules/crypto/gc-arcfour-tests: Likewise.
25741         * modules/crypto/gc-arctwo-tests: Likewise.
25742         * modules/crypto/gc-des-tests: Likewise.
25743         * modules/crypto/gc-hmac-md5-tests: Likewise.
25744         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25745         * modules/crypto/gc-md2-tests: Likewise.
25746         * modules/crypto/gc-md4-tests: Likewise.
25747         * modules/crypto/gc-md5-tests: Likewise.
25748         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25749         * modules/crypto/gc-rijndael-tests: Likewise.
25750         * modules/crypto/gc-sha1-tests: Likewise.
25751         * modules/crypto/gc-tests: Likewise.
25752         * modules/crypto/md2-tests: Likewise.
25753         * modules/crypto/md4-tests: Likewise.
25754         * modules/fcntl-h-tests: Likewise.
25755         * modules/floorf-tests: Likewise.
25756         * modules/floorl-tests: Likewise.
25757         * modules/frexp-nolibm-tests: Likewise.
25758         * modules/frexp-tests: Likewise.
25759         * modules/frexpl-nolibm-tests: Likewise.
25760         * modules/frexpl-tests: Likewise.
25761         * modules/getaddrinfo-tests: Likewise.
25762         * modules/inttypes-tests: Likewise.
25763         * modules/isfinite-tests: Likewise.
25764         * modules/isinf-tests: Likewise.
25765         * modules/ldexpl-tests: Likewise.
25766         * modules/locale-tests: Likewise.
25767         * modules/math-tests: Likewise.
25768         * modules/netdb-tests: Likewise.
25769         * modules/netinet_in-tests: Likewise.
25770         * modules/printf-frexp-tests: Likewise.
25771         * modules/printf-frexpl-tests: Likewise.
25772         * modules/priv-set-tests: Likewise.
25773         * modules/random_r-tests: Likewise.
25774         * modules/round-tests: Likewise.
25775         * modules/roundf-tests: Likewise.
25776         * modules/roundl-tests: Likewise.
25777         * modules/search-tests: Likewise.
25778         * modules/select-tests: Likewise.
25779         * modules/signal-tests: Likewise.
25780         * modules/stdbool-tests: Likewise.
25781         * modules/stddef-tests: Likewise.
25782         * modules/stdint-tests: Likewise.
25783         * modules/stdio-tests: Likewise.
25784         * modules/stdlib-tests: Likewise.
25785         * modules/string-tests: Likewise.
25786         * modules/strings-tests: Likewise.
25787         * modules/sys_select-tests: Likewise.
25788         * modules/sys_socket-tests: Likewise.
25789         * modules/sys_stat-tests: Likewise.
25790         * modules/sys_time-tests: Likewise.
25791         * modules/sys_utsname-tests: Likewise.
25792         * modules/sysexits-tests: Likewise.
25793         * modules/time-tests: Likewise.
25794         * modules/trunc-tests: Likewise.
25795         * modules/truncf-tests: Likewise.
25796         * modules/truncl-tests: Likewise.
25797         * modules/tsearch-tests: Likewise.
25798         * modules/unistd-tests: Likewise.
25799         * modules/wchar-tests: Likewise.
25800         * modules/wctype-tests: Likewise.
25801
25802         tests: fix license on several tests
25803         * tests/test-des.c: Update to GPLv3+.
25804         * tests/test-flock.c: Likewise.
25805         * tests/test-fsync.c: Likewise.
25806         * tests/test-futimens.h: Likewise.
25807         * tests/test-gc-arcfour.c: Likewise.
25808         * tests/test-gc-arctwo.c: Likewise.
25809         * tests/test-gc-des.c: Likewise.
25810         * tests/test-gc-hmac-md5.c: Likewise.
25811         * tests/test-gc-hmac-sha1.c: Likewise.
25812         * tests/test-gc-md2.c: Likewise.
25813         * tests/test-gc-md4.c: Likewise.
25814         * tests/test-gc-md5.c: Likewise.
25815         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25816         * tests/test-gc-rijndael.c: Likewise.
25817         * tests/test-gc-sha1.c: Likewise.
25818         * tests/test-gc.c: Likewise.
25819         * tests/test-getcwd.c: Likewise.
25820         * tests/test-link.c: Likewise.
25821         * tests/test-link.h: Likewise.
25822         * tests/test-lutimens.h: Likewise.
25823         * tests/test-md2.c: Likewise.
25824         * tests/test-md4.c: Likewise.
25825         * tests/test-mkdir.h: Likewise.
25826         * tests/test-rename.c: Likewise.
25827         * tests/test-rename.h: Likewise.
25828         * tests/test-safe-alloc.c: Likewise.
25829         * tests/test-utimens-common.h: Likewise.
25830         * tests/test-utimens.h: Likewise.
25831
25832         maint: sync license texts
25833         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25834         * doc/gpl-3.0.texi: Revert copyright year update.
25835         * doc/lgpl-3.0.texi: Likewise.
25836
25837 2009-12-29  Jim Meyering  <meyering@redhat.com>
25838
25839         update nearly all FSF copyright year lists to include 2009
25840         The files named by the following are exempted:
25841             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25842               test -f "$dst" && { echo "$dst"; continue; }
25843               test -d "$dst" || continue
25844               echo "$dst"/$(basename "$src")
25845             done > exempt
25846             git ls-files tests/unictype >> exempt
25847         In the remaining files, convert to all-interval notation if
25848         - there is already at least one year interval like 2000-2003
25849         - the file is maintained by me
25850         - the file is in lib/uni*/, where that style already prevails
25851         Otherwise, use update-copyright's default.
25852
25853 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25854         and Eric Blake  <ebb9@byu.net>
25855
25856         tests: don't require debug system() to pass
25857         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25858         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25859         * tests/test-unlink.h (test_unlink_func): Likewise.
25860         * tests/test-fstatat.c (main): ...into callers.
25861         * tests/test-lstat.c (main): Likewise.
25862         * tests/test-rmdir.c (main): Likewise.
25863         * tests/test-unlink.c (main): Likewise.
25864         * tests/test-unlinkat.c (main): Likewise.
25865         * tests/test-areadlink-with-size.c (main): Don't require a
25866         debug-only system call to pass, aiding cross-testing to mingw.
25867         * tests/test-areadlink.c (main): Likewise.
25868         * tests/test-areadlinkat-with-size.c (main): Likewise.
25869         * tests/test-areadlinkat.c (main): Likewise.
25870         * tests/test-canonicalize-lgpl.c (main): Likewise.
25871         * tests/test-canonicalize.c (main): Likewise.
25872         * tests/test-chown.c (main): Likewise.
25873         * tests/test-fchownat.c (main): Likewise.
25874         * tests/test-lchown.c (main): Likewise.
25875         * tests/test-fdutimensat.c (main): Likewise.
25876         * tests/test-futimens.c (main): Likewise.
25877         * tests/test-link.c (main): Likewise.
25878         * tests/test-linkat.c (main): Likewise.
25879         * tests/test-mkdir.c (main): Likewise.
25880         * tests/test-mkdirat.c (main): Likewise.
25881         * tests/test-mkfifo.c (main): Likewise.
25882         * tests/test-mkfifoat.c (main): Likewise.
25883         * tests/test-mknod.c (main): Likewise.
25884         * tests/test-readlink.c (main): Likewise.
25885         * tests/test-remove.c (main): Likewise.
25886         * tests/test-rename.c (main): Likewise.
25887         * tests/test-renameat.c (main): Likewise.
25888         * tests/test-symlink.c (main): Likewise.
25889         * tests/test-symlinkat.c (main): Likewise.
25890         * tests/test-utimens.c (main): Likewise.
25891         * tests/test-utimensat.c (main): Likewise.
25892
25893 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25894
25895         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25896         on $(UNUSED_PARAMETER_H) to avoid build failure.
25897
25898 2009-12-28  Jim Meyering  <meyering@redhat.com>
25899
25900         update-copyright: you may specify a max. line length other than 72
25901         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25902
25903         maint: use consistent FSF copyright line syntax
25904         * lib/posixtm.c: Add missing comma in FSF copyright line.
25905         * lib/posixtm.h: Likewise.
25906         * lib/getugroups.c: Add missing ", Inc.".
25907
25908         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25909         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25910         FSF copyright line.  Remove trailing blanks.
25911
25912 2009-12-28  Eric Blake  <ebb9@byu.net>
25913
25914         test-dup2: reduce dependencies
25915         * modules/cloexec (Configure.ac): Set witness.
25916         * modules/dup2-tests (Depends-on): Drop cloexec.
25917         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25918         not present.
25919         Suggested by Bruno Haible.
25920
25921 2009-12-26  Bruno Haible  <bruno@clisp.org>
25922
25923         Remove an unneeded dependency.
25924         * modules/fseterr (Depends-on): Remove dup2.
25925
25926 2009-12-26  Eric Blake  <ebb9@byu.net>
25927
25928         tests: use macros.h in more places
25929         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25930         (ASSERT_STREAM): Provide default of stderr.
25931         * tests/test-dirent-safer.c: Include macros.h, using alternate
25932         stream for assertions.
25933         * tests/test-dup-safer.c: Likewise.
25934         * tests/test-freopen-safer.c: Likewise.
25935         * tests/test-getopt.c: Likewise.
25936         * tests/test-openat-safer.c: Likewise.
25937         * tests/test-pipe.c: Likewise.
25938         * tests/test-popen-safer.c: Likewise.
25939         * modules/dirent-safer-tests (Files): Include macros.h.
25940         * modules/unistd-safer-tests (Files): Likewise.
25941         * modules/freopen-safer-tests (Files): Likewise.
25942         * modules/getopt-posix-tests (Files): Likewise.
25943         * modules/openat-safer-tests (Files): Likewise.
25944         * modules/pipe-tests (Files): Likewise.
25945
25946 2009-12-26  Bruno Haible  <bruno@clisp.org>
25947
25948         javacomp: Portability fix.
25949         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25950         that it also works on Solaris.
25951
25952 2009-12-26  Bruno Haible  <bruno@clisp.org>
25953
25954         localename: Fix storage allocation of gl_locale_name_thread's result.
25955         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25956         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25957         all platforms that have 'uselocale'.
25958         (gl_locale_name_thread_unsafe): New function, extracted from
25959         gl_locale_name_thread.
25960         (gl_locale_name_thread): Call struniq on all platforms that have
25961         'uselocale'.
25962         * tests/test-localename.c (test_locale_name_thread): Check that the
25963         resulting strings are permanently allocated.
25964         * modules/localename-tests (Depends-on): Add strdup.
25965
25966 2009-12-26  Bruno Haible  <bruno@clisp.org>
25967
25968         * tests/test-localename.c (categories): Fill in the strings.
25969
25970 2009-12-26  Jim Meyering  <meyering@redhat.com>
25971
25972         isdir: complete the removal of m4/isdir.m4
25973         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25974
25975         isdir: clean up, since at least grep still uses it
25976         * lib/isdir.c: Include "isdir.h".
25977         (S_ISDIR): Remove now-unneeded definition.
25978         * modules/isdir (Files): Add lib/isdir.h.
25979         * lib/isdir.h: New file, with declaration.
25980         * m4/isdir.m4: Remove file -- unneeded.
25981
25982 2009-12-25  Bruno Haible  <bruno@clisp.org>
25983
25984         selinux-h: Make generated .h files standalone.
25985         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25986         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25987         * lib/se-selinux.in.h: Likewise.
25988         * modules/selinux-h (Depends-on): Add unused-parameter.
25989         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25990         selinux/selinux.h and selinux/context.h.
25991         Suggested by Eric Blake.
25992
25993 2009-12-25  Bruno Haible  <bruno@clisp.org>
25994
25995         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25996         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25997         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25998         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25999         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26000
26001 2009-12-24  Bruno Haible  <bruno@clisp.org>
26002
26003         openat: Fix warning.
26004         * lib/openat-proc.c: Include <unistd.h>.
26005
26006 2009-12-24  Bruno Haible  <bruno@clisp.org>
26007
26008         New module 'unused-parameter'.
26009         * build-aux/unused-parameter.h: New file, extracted from earlier
26010         gnulib-common.m4.
26011         * modules/unused-parameter: New file.
26012         * lib/unistr.h: Include unused-parameter.h.
26013         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26014         _GL_UNUSED.
26015         * modules/unistr/base (Depends-on): Add unused-parameter.
26016
26017 2009-12-24  Bruno Haible  <bruno@clisp.org>
26018
26019         Add missing dependencies to 'extensions' module.
26020         * m4/extensions.m4: Add comment.
26021         * modules/accept4 (Depends-on): Add extensions.
26022         * modules/dup3 (Depends-on): Likewise.
26023         * modules/fcntl (Depends-on): Likewise.
26024         * modules/futimens (Depends-on): Likewise.
26025         * modules/mknod (Depends-on): Likewise.
26026         * modules/pipe2 (Depends-on): Likewise.
26027         * modules/stat-time (Depends-on): Likewise.
26028         * modules/strcasestr-simple (Depends-on): Likewise.
26029         * modules/strsignal (Depends-on): Likewise.
26030         * modules/utimensat (Depends-on): Likewise.
26031         * modules/localcharset (Depends-on): Likewise. Needed because of
26032         gl_FCNTL_O_FLAGS.
26033         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26034         AC_TYPE_MBSTATE_T.
26035         * modules/wcsnrtombs (Depends-on): Likewise.
26036         * modules/wcsrtombs (Depends-on): Likewise.
26037
26038 2009-12-24  Bruno Haible  <bruno@clisp.org>
26039
26040         binary-io: Avoid gcc warning due to SET_BINARY.
26041         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26042         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26043
26044 2009-12-24  Bruno Haible  <bruno@clisp.org>
26045
26046         Avoid future namespace pollution on glibc systems.
26047         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26048         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26049         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26050         glibc systems.
26051
26052 2009-12-24  Bruno Haible  <bruno@clisp.org>
26053
26054         Refactor common macros used in tests.
26055         * tests/macros.h: New file.
26056         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26057         and/or <stdlib.h>, if appropriate.
26058         (ASSERT, SIZEOF): Remove macros.
26059         * tests/test-areadlink-with-size.c: Likewise.
26060         * tests/test-areadlinkat.c: Likewise.
26061         * tests/test-areadlinkat-with-size.c: Likewise.
26062         * tests/test-argmatch.c: Likewise.
26063         * tests/test-argv-iter.c: Likewise.
26064         * tests/test-array-mergesort.c: Likewise.
26065         * tests/test-array_list.c: Likewise.
26066         * tests/test-array_oset.c: Likewise.
26067         * tests/test-avltree_list.c: Likewise.
26068         * tests/test-avltree_oset.c: Likewise.
26069         * tests/test-avltreehash_list.c: Likewise.
26070         * tests/test-base64.c: Likewise.
26071         * tests/test-binary-io.c: Likewise.
26072         * tests/test-bitrotate.c: Likewise.
26073         * tests/test-btowc.c: Likewise.
26074         * tests/test-byteswap.c: Likewise.
26075         * tests/test-c-ctype.c: Likewise.
26076         * tests/test-c-stack.c: Likewise.
26077         * tests/test-c-strcasecmp.c: Likewise.
26078         * tests/test-c-strcasestr.c: Likewise.
26079         * tests/test-c-strncasecmp.c: Likewise.
26080         * tests/test-c-strstr.c: Likewise.
26081         * tests/test-canonicalize-lgpl.c: Likewise.
26082         * tests/test-canonicalize.c: Likewise.
26083         * tests/test-carray_list.c: Likewise.
26084         * tests/test-ceilf1.c: Likewise.
26085         * tests/test-ceilf2.c: Likewise.
26086         * tests/test-ceill.c: Likewise.
26087         * tests/test-chown.c: Likewise.
26088         * tests/test-cloexec.c: Likewise.
26089         * tests/test-copy-acl.c: Likewise.
26090         * tests/test-copy-file.c: Likewise.
26091         * tests/test-count-one-bits.c: Likewise.
26092         * tests/test-dprintf-posix.c: Likewise.
26093         * tests/test-dup2.c: Likewise.
26094         * tests/test-dup3.c: Likewise.
26095         * tests/test-duplocale.c: Likewise.
26096         * tests/test-fbufmode.c: Likewise.
26097         * tests/test-fchdir.c: Likewise.
26098         * tests/test-fchownat.c: Likewise.
26099         * tests/test-fcntl-safer.c: Likewise.
26100         * tests/test-fcntl.c: Likewise.
26101         * tests/test-fdopendir.c: Likewise.
26102         * tests/test-fdutimensat.c: Likewise.
26103         * tests/test-fflush2.c: Likewise.
26104         * tests/test-file-has-acl.c: Likewise.
26105         * tests/test-filevercmp.c: Likewise.
26106         * tests/test-flock.c: Likewise.
26107         * tests/test-floorf1.c: Likewise.
26108         * tests/test-floorf2.c: Likewise.
26109         * tests/test-floorl.c: Likewise.
26110         * tests/test-fnmatch.c: Likewise.
26111         * tests/test-fopen.h: Likewise.
26112         * tests/test-fpending.c: Likewise.
26113         * tests/test-fprintf-posix.c: Likewise.
26114         * tests/test-fpurge.c: Likewise.
26115         * tests/test-freadable.c: Likewise.
26116         * tests/test-freadahead.c: Likewise.
26117         * tests/test-freading.c: Likewise.
26118         * tests/test-freadptr.c: Likewise.
26119         * tests/test-freadptr2.c: Likewise.
26120         * tests/test-freadseek.c: Likewise.
26121         * tests/test-freopen.c: Likewise.
26122         * tests/test-frexp.c: Likewise.
26123         * tests/test-frexpl.c: Likewise.
26124         * tests/test-fseek.c: Likewise.
26125         * tests/test-fseeko.c: Likewise.
26126         * tests/test-fstatat.c: Likewise.
26127         * tests/test-fstrcmp.c: Likewise.
26128         * tests/test-fsync.c: Likewise.
26129         * tests/test-ftell.c: Likewise.
26130         * tests/test-ftello.c: Likewise.
26131         * tests/test-func.c: Likewise.
26132         * tests/test-futimens.c: Likewise.
26133         * tests/test-fwritable.c: Likewise.
26134         * tests/test-fwriting.c: Likewise.
26135         * tests/test-getcwd.c: Likewise.
26136         * tests/test-getdate.c: Likewise.
26137         * tests/test-getdelim.c: Likewise.
26138         * tests/test-getdtablesize.c: Likewise.
26139         * tests/test-getgroups.c: Likewise.
26140         * tests/test-getline.c: Likewise.
26141         * tests/test-getndelim2.c: Likewise.
26142         * tests/test-glob.c: Likewise.
26143         * tests/test-hash.c: Likewise.
26144         * tests/test-i-ring.c: Likewise.
26145         * tests/test-iconv-utf.c: Likewise.
26146         * tests/test-iconv.c: Likewise.
26147         * tests/test-idpriv-drop.c: Likewise.
26148         * tests/test-idpriv-droptemp.c: Likewise.
26149         * tests/test-inet_ntop.c: Likewise.
26150         * tests/test-inet_pton.c: Likewise.
26151         * tests/test-isblank.c: Likewise.
26152         * tests/test-isfinite.c: Likewise.
26153         * tests/test-isinf.c: Likewise.
26154         * tests/test-isnan.c: Likewise.
26155         * tests/test-isnand.h: Likewise.
26156         * tests/test-isnanf.h: Likewise.
26157         * tests/test-isnanl.h: Likewise.
26158         * tests/test-lchown.c: Likewise.
26159         * tests/test-ldexpl.c: Likewise.
26160         * tests/test-link.c: Likewise.
26161         * tests/test-linkat.c: Likewise.
26162         * tests/test-linked_list.c: Likewise.
26163         * tests/test-linkedhash_list.c: Likewise.
26164         * tests/test-localename.c: Likewise.
26165         * tests/test-lseek.c: Likewise.
26166         * tests/test-lstat.c: Likewise.
26167         * tests/test-mbmemcasecmp.c: Likewise.
26168         * tests/test-mbmemcasecoll.c: Likewise.
26169         * tests/test-mbrtowc.c: Likewise.
26170         * tests/test-mbscasecmp.c: Likewise.
26171         * tests/test-mbscasestr1.c: Likewise.
26172         * tests/test-mbscasestr2.c: Likewise.
26173         * tests/test-mbscasestr3.c: Likewise.
26174         * tests/test-mbscasestr4.c: Likewise.
26175         * tests/test-mbschr.c: Likewise.
26176         * tests/test-mbscspn.c: Likewise.
26177         * tests/test-mbsinit.c: Likewise.
26178         * tests/test-mbsncasecmp.c: Likewise.
26179         * tests/test-mbsnrtowcs.c: Likewise.
26180         * tests/test-mbspbrk.c: Likewise.
26181         * tests/test-mbspcasecmp.c: Likewise.
26182         * tests/test-mbsrchr.c: Likewise.
26183         * tests/test-mbsrtowcs.c: Likewise.
26184         * tests/test-mbsspn.c: Likewise.
26185         * tests/test-mbsstr1.c: Likewise.
26186         * tests/test-mbsstr2.c: Likewise.
26187         * tests/test-mbsstr3.c: Likewise.
26188         * tests/test-memchr.c: Likewise.
26189         * tests/test-memchr2.c: Likewise.
26190         * tests/test-memcmp.c: Likewise.
26191         * tests/test-memmem.c: Likewise.
26192         * tests/test-memrchr.c: Likewise.
26193         * tests/test-mkdir.c: Likewise.
26194         * tests/test-mkdirat.c: Likewise.
26195         * tests/test-mkfifo.c: Likewise.
26196         * tests/test-mkfifoat.c: Likewise.
26197         * tests/test-mknod.c: Likewise.
26198         * tests/test-nanosleep.c: Likewise.
26199         * tests/test-nl_langinfo.c: Likewise.
26200         * tests/test-obstack-printf.c: Likewise.
26201         * tests/test-open.c: Likewise.
26202         * tests/test-openat.c: Likewise.
26203         * tests/test-pipe-filter-gi1.c: Likewise.
26204         * tests/test-pipe-filter-gi2-main.c: Likewise.
26205         * tests/test-pipe-filter-ii1.c: Likewise.
26206         * tests/test-pipe-filter-ii2-main.c: Likewise.
26207         * tests/test-pipe2.c: Likewise.
26208         * tests/test-popen.h: Likewise.
26209         * tests/test-posixtm.c: Likewise.
26210         * tests/test-pread.c: Likewise.
26211         * tests/test-printf-frexp.c: Likewise.
26212         * tests/test-printf-frexpl.c: Likewise.
26213         * tests/test-printf-posix.c: Likewise.
26214         * tests/test-priv-set.c: Likewise.
26215         * tests/test-quotearg.c: Likewise.
26216         * tests/test-random_r.c: Likewise.
26217         * tests/test-rawmemchr.c: Likewise.
26218         * tests/test-rbtree_list.c: Likewise.
26219         * tests/test-rbtree_oset.c: Likewise.
26220         * tests/test-rbtreehash_list.c: Likewise.
26221         * tests/test-readlink.c: Likewise.
26222         * tests/test-remove.c: Likewise.
26223         * tests/test-rename.c: Likewise.
26224         * tests/test-renameat.c: Likewise.
26225         * tests/test-rmdir.c: Likewise.
26226         * tests/test-round1.c: Likewise.
26227         * tests/test-roundf1.c: Likewise.
26228         * tests/test-roundl.c: Likewise.
26229         * tests/test-safe-alloc.c: Likewise.
26230         * tests/test-sameacls.c: Likewise.
26231         * tests/test-set-mode-acl.c: Likewise.
26232         * tests/test-setenv.c: Likewise.
26233         * tests/test-sigaction.c: Likewise.
26234         * tests/test-signbit.c: Likewise.
26235         * tests/test-sleep.c: Likewise.
26236         * tests/test-snprintf-posix.c: Likewise.
26237         * tests/test-snprintf.c: Likewise.
26238         * tests/test-sprintf-posix.c: Likewise.
26239         * tests/test-stat-time.c: Likewise.
26240         * tests/test-stat.c: Likewise.
26241         * tests/test-strcasestr.c: Likewise.
26242         * tests/test-strchrnul.c: Likewise.
26243         * tests/test-strerror.c: Likewise.
26244         * tests/test-striconv.c: Likewise.
26245         * tests/test-striconveh.c: Likewise.
26246         * tests/test-striconveha.c: Likewise.
26247         * tests/test-strsignal.c: Likewise.
26248         * tests/test-strstr.c: Likewise.
26249         * tests/test-strtod.c: Likewise.
26250         * tests/test-strverscmp.c: Likewise.
26251         * tests/test-symlink.c: Likewise.
26252         * tests/test-symlinkat.c: Likewise.
26253         * tests/test-trunc1.c: Likewise.
26254         * tests/test-trunc2.c: Likewise.
26255         * tests/test-truncf1.c: Likewise.
26256         * tests/test-truncf2.c: Likewise.
26257         * tests/test-truncl.c: Likewise.
26258         * tests/test-uname.c: Likewise.
26259         * tests/test-unlink.c: Likewise.
26260         * tests/test-unlinkat.c: Likewise.
26261         * tests/test-unsetenv.c: Likewise.
26262         * tests/test-usleep.c: Likewise.
26263         * tests/test-utimens.c: Likewise.
26264         * tests/test-utimensat.c: Likewise.
26265         * tests/test-vasnprintf-posix.c: Likewise.
26266         * tests/test-vasnprintf-posix2.c: Likewise.
26267         * tests/test-vasnprintf.c: Likewise.
26268         * tests/test-vasprintf-posix.c: Likewise.
26269         * tests/test-vasprintf.c: Likewise.
26270         * tests/test-vdprintf-posix.c: Likewise.
26271         * tests/test-vfprintf-posix.c: Likewise.
26272         * tests/test-vprintf-posix.c: Likewise.
26273         * tests/test-vsnprintf-posix.c: Likewise.
26274         * tests/test-vsnprintf.c: Likewise.
26275         * tests/test-vsprintf-posix.c: Likewise.
26276         * tests/test-wcrtomb.c: Likewise.
26277         * tests/test-wcsnrtombs.c: Likewise.
26278         * tests/test-wcsrtombs.c: Likewise.
26279         * tests/test-wctype.c: Likewise.
26280         * tests/test-wcwidth.c: Likewise.
26281         * tests/test-xfprintf-posix.c: Likewise.
26282         * tests/test-xmemdup0.c: Likewise.
26283         * tests/test-xprintf-posix.c: Likewise.
26284         * tests/test-xvasprintf.c: Likewise.
26285         * tests/unicase/test-locale-language.c: Likewise.
26286         * tests/unicase/test-mapping-part1.h: Likewise.
26287         * tests/unicase/test-predicate-part1.h: Likewise.
26288         * tests/unicase/test-u8-casecmp.c: Likewise.
26289         * tests/unicase/test-u8-casecoll.c: Likewise.
26290         * tests/unicase/test-u8-casefold.c: Likewise.
26291         * tests/unicase/test-u8-is-cased.c: Likewise.
26292         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26293         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26294         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26295         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26296         * tests/unicase/test-u8-tolower.c: Likewise.
26297         * tests/unicase/test-u8-totitle.c: Likewise.
26298         * tests/unicase/test-u8-toupper.c: Likewise.
26299         * tests/unicase/test-u16-casecmp.c: Likewise.
26300         * tests/unicase/test-u16-casecoll.c: Likewise.
26301         * tests/unicase/test-u16-casefold.c: Likewise.
26302         * tests/unicase/test-u16-is-cased.c: Likewise.
26303         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26304         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26305         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26306         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26307         * tests/unicase/test-u16-tolower.c: Likewise.
26308         * tests/unicase/test-u16-totitle.c: Likewise.
26309         * tests/unicase/test-u16-toupper.c: Likewise.
26310         * tests/unicase/test-u32-casecmp.c: Likewise.
26311         * tests/unicase/test-u32-casecoll.c: Likewise.
26312         * tests/unicase/test-u32-casefold.c: Likewise.
26313         * tests/unicase/test-u32-is-cased.c: Likewise.
26314         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26315         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26316         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26317         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26318         * tests/unicase/test-u32-tolower.c: Likewise.
26319         * tests/unicase/test-u32-totitle.c: Likewise.
26320         * tests/unicase/test-u32-toupper.c: Likewise.
26321         * tests/unicase/test-ulc-casecmp.c: Likewise.
26322         * tests/unicase/test-ulc-casecoll.c: Likewise.
26323         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26324         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26325         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26326         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26327         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26328         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26329         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26330         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26331         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26332         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26333         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26334         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26335         * tests/unictype/test-bidi_byname.c: Likewise.
26336         * tests/unictype/test-bidi_name.c: Likewise.
26337         * tests/unictype/test-bidi_of.c: Likewise.
26338         * tests/unictype/test-bidi_test.c: Likewise.
26339         * tests/unictype/test-block_list.c: Likewise.
26340         * tests/unictype/test-block_of.c: Likewise.
26341         * tests/unictype/test-block_test.c: Likewise.
26342         * tests/unictype/test-categ_and.c: Likewise.
26343         * tests/unictype/test-categ_and_not.c: Likewise.
26344         * tests/unictype/test-categ_byname.c: Likewise.
26345         * tests/unictype/test-categ_name.c: Likewise.
26346         * tests/unictype/test-categ_none.c: Likewise.
26347         * tests/unictype/test-categ_of.c: Likewise.
26348         * tests/unictype/test-categ_or.c: Likewise.
26349         * tests/unictype/test-categ_test_withtable.c: Likewise.
26350         * tests/unictype/test-combining.c: Likewise.
26351         * tests/unictype/test-decdigit.c: Likewise.
26352         * tests/unictype/test-digit.c: Likewise.
26353         * tests/unictype/test-mirror.c: Likewise.
26354         * tests/unictype/test-numeric.c: Likewise.
26355         * tests/unictype/test-pr_byname.c: Likewise.
26356         * tests/unictype/test-pr_test.c: Likewise.
26357         * tests/unictype/test-predicate-part1.h: Likewise.
26358         * tests/unictype/test-scripts.c: Likewise.
26359         * tests/unictype/test-sy_c_ident.c: Likewise.
26360         * tests/unictype/test-sy_java_ident.c: Likewise.
26361         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26362         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26363         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26364         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26365         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26366         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26367         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26368         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26369         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26370         * tests/uninorm/test-compat-decomposition.c: Likewise.
26371         * tests/uninorm/test-composition.c: Likewise.
26372         * tests/uninorm/test-decomposing-form.c: Likewise.
26373         * tests/uninorm/test-decomposition.c: Likewise.
26374         * tests/uninorm/test-u8-nfc.c: Likewise.
26375         * tests/uninorm/test-u8-nfd.c: Likewise.
26376         * tests/uninorm/test-u8-nfkc.c: Likewise.
26377         * tests/uninorm/test-u8-nfkd.c: Likewise.
26378         * tests/uninorm/test-u8-normcmp.c: Likewise.
26379         * tests/uninorm/test-u8-normcoll.c: Likewise.
26380         * tests/uninorm/test-u16-nfc.c: Likewise.
26381         * tests/uninorm/test-u16-nfd.c: Likewise.
26382         * tests/uninorm/test-u16-nfkc.c: Likewise.
26383         * tests/uninorm/test-u16-nfkd.c: Likewise.
26384         * tests/uninorm/test-u16-normcmp.c: Likewise.
26385         * tests/uninorm/test-u16-normcoll.c: Likewise.
26386         * tests/uninorm/test-u32-nfc.c: Likewise.
26387         * tests/uninorm/test-u32-nfd.c: Likewise.
26388         * tests/uninorm/test-u32-nfkc.c: Likewise.
26389         * tests/uninorm/test-u32-nfkd.c: Likewise.
26390         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26391         * tests/uninorm/test-u32-normcmp.c: Likewise.
26392         * tests/uninorm/test-u32-normcoll.c: Likewise.
26393         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26394         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26395         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26396         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26397         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26398         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26399         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26400         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26401         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26402         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26403         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26404         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26405         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26406         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26407         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26408         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26409         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26410         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26411         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26412         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26413         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26414         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26415         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26416         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26417         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26418         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26419         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26420         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26421         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26422         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26423         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26424         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26425         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26426         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26427         * tests/uniwidth/test-u8-width.c: Likewise.
26428         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26429         * tests/uniwidth/test-u16-width.c: Likewise.
26430         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26431         * tests/uniwidth/test-u32-width.c: Likewise.
26432         * tests/uniwidth/test-uc_width.c: Likewise.
26433         * tests/uniwidth/test-uc_width2.c: Likewise.
26434         * modules/acl-tests (Files): Add tests/macros.h.
26435         * modules/areadlink-tests (Files): Likewise.
26436         * modules/areadlink-with-size-tests (Files): Likewise.
26437         * modules/areadlinkat-tests (Files): Likewise.
26438         * modules/areadlinkat-with-size-tests (Files): Likewise.
26439         * modules/argmatch-tests (Files): Likewise.
26440         * modules/argv-iter-tests (Files): Likewise.
26441         * modules/array-list-tests (Files): Likewise.
26442         * modules/array-mergesort-tests (Files): Likewise.
26443         * modules/array-oset-tests (Files): Likewise.
26444         * modules/avltree-list-tests (Files): Likewise.
26445         * modules/avltree-oset-tests (Files): Likewise.
26446         * modules/avltreehash-list-tests (Files): Likewise.
26447         * modules/base64-tests (Files): Likewise.
26448         * modules/binary-io-tests (Files): Likewise.
26449         * modules/bitrotate-tests (Files): Likewise.
26450         * modules/btowc-tests (Files): Likewise.
26451         * modules/byteswap-tests (Files): Likewise.
26452         * modules/c-ctype-tests (Files): Likewise.
26453         * modules/c-stack-tests (Files): Likewise.
26454         * modules/c-strcase-tests (Files): Likewise.
26455         * modules/c-strcasestr-tests (Files): Likewise.
26456         * modules/c-strstr-tests (Files): Likewise.
26457         * modules/canonicalize-lgpl-tests (Files): Likewise.
26458         * modules/canonicalize-tests (Files): Likewise.
26459         * modules/carray-list-tests (Files): Likewise.
26460         * modules/ceilf-tests (Files): Likewise.
26461         * modules/ceill-tests (Files): Likewise.
26462         * modules/chown-tests (Files): Likewise.
26463         * modules/cloexec-tests (Files): Likewise.
26464         * modules/copy-file-tests (Files): Likewise.
26465         * modules/count-one-bits-tests (Files): Likewise.
26466         * modules/dprintf-posix-tests (Files): Likewise.
26467         * modules/dup2-tests (Files): Likewise.
26468         * modules/dup3-tests (Files): Likewise.
26469         * modules/duplocale-tests (Files): Likewise.
26470         * modules/fbufmode-tests (Files): Likewise.
26471         * modules/fchdir-tests (Files): Likewise.
26472         * modules/fcntl-safer-tests (Files): Likewise.
26473         * modules/fcntl-tests (Files): Likewise.
26474         * modules/fdopendir-tests (Files): Likewise.
26475         * modules/fdutimensat-tests (Files): Likewise.
26476         * modules/fflush-tests (Files): Likewise.
26477         * modules/filevercmp-tests (Files): Likewise.
26478         * modules/flock-tests (Files): Likewise.
26479         * modules/floorf-tests (Files): Likewise.
26480         * modules/floorl-tests (Files): Likewise.
26481         * modules/fnmatch-tests (Files): Likewise.
26482         * modules/fopen-safer-tests (Files): Likewise.
26483         * modules/fopen-tests (Files): Likewise.
26484         * modules/fpending-tests (Files): Likewise.
26485         * modules/fprintf-posix-tests (Files): Likewise.
26486         * modules/fpurge-tests (Files): Likewise.
26487         * modules/freadable-tests (Files): Likewise.
26488         * modules/freadahead-tests (Files): Likewise.
26489         * modules/freading-tests (Files): Likewise.
26490         * modules/freadptr-tests (Files): Likewise.
26491         * modules/freadseek-tests (Files): Likewise.
26492         * modules/freopen-tests (Files): Likewise.
26493         * modules/frexp-nolibm-tests (Files): Likewise.
26494         * modules/frexp-tests (Files): Likewise.
26495         * modules/frexpl-nolibm-tests (Files): Likewise.
26496         * modules/frexpl-tests (Files): Likewise.
26497         * modules/fseek-tests (Files): Likewise.
26498         * modules/fseeko-tests (Files): Likewise.
26499         * modules/fstrcmp-tests (Files): Likewise.
26500         * modules/fsync-tests (Files): Likewise.
26501         * modules/ftell-tests (Files): Likewise.
26502         * modules/ftello-tests (Files): Likewise.
26503         * modules/func-tests (Files): Likewise.
26504         * modules/futimens-tests (Files): Likewise.
26505         * modules/fwritable-tests (Files): Likewise.
26506         * modules/fwriting-tests (Files): Likewise.
26507         * modules/getcwd-tests (Files): Likewise.
26508         * modules/getdate-tests (Files): Likewise.
26509         * modules/getdelim-tests (Files): Likewise.
26510         * modules/getdtablesize-tests (Files): Likewise.
26511         * modules/getgroups-tests (Files): Likewise.
26512         * modules/getline-tests (Files): Likewise.
26513         * modules/getndelim2-tests (Files): Likewise.
26514         * modules/glob-tests (Files): Likewise.
26515         * modules/hash-tests (Files): Likewise.
26516         * modules/i-ring-tests (Files): Likewise.
26517         * modules/iconv-tests (Files): Likewise.
26518         * modules/iconv_open-utf-tests (Files): Likewise.
26519         * modules/idpriv-drop-tests (Files): Likewise.
26520         * modules/idpriv-droptemp-tests (Files): Likewise.
26521         * modules/inet_ntop-tests (Files): Likewise.
26522         * modules/inet_pton-tests (Files): Likewise.
26523         * modules/isblank-tests (Files): Likewise.
26524         * modules/isfinite-tests (Files): Likewise.
26525         * modules/isinf-tests (Files): Likewise.
26526         * modules/isnan-tests (Files): Likewise.
26527         * modules/isnand-nolibm-tests (Files): Likewise.
26528         * modules/isnand-tests (Files): Likewise.
26529         * modules/isnanf-nolibm-tests (Files): Likewise.
26530         * modules/isnanf-tests (Files): Likewise.
26531         * modules/isnanl-nolibm-tests (Files): Likewise.
26532         * modules/isnanl-tests (Files): Likewise.
26533         * modules/lchown-tests (Files): Likewise.
26534         * modules/ldexpl-tests (Files): Likewise.
26535         * modules/link-tests (Files): Likewise.
26536         * modules/linkat-tests (Files): Likewise.
26537         * modules/linked-list-tests (Files): Likewise.
26538         * modules/linkedhash-list-tests (Files): Likewise.
26539         * modules/localename-tests (Files): Likewise.
26540         * modules/lseek-tests (Files): Likewise.
26541         * modules/lstat-tests (Files): Likewise.
26542         * modules/mbmemcasecmp-tests (Files): Likewise.
26543         * modules/mbmemcasecoll-tests (Files): Likewise.
26544         * modules/mbrtowc-tests (Files): Likewise.
26545         * modules/mbscasecmp-tests (Files): Likewise.
26546         * modules/mbscasestr-tests (Files): Likewise.
26547         * modules/mbschr-tests (Files): Likewise.
26548         * modules/mbscspn-tests (Files): Likewise.
26549         * modules/mbsinit-tests (Files): Likewise.
26550         * modules/mbsncasecmp-tests (Files): Likewise.
26551         * modules/mbsnrtowcs-tests (Files): Likewise.
26552         * modules/mbspbrk-tests (Files): Likewise.
26553         * modules/mbspcasecmp-tests (Files): Likewise.
26554         * modules/mbsrchr-tests (Files): Likewise.
26555         * modules/mbsrtowcs-tests (Files): Likewise.
26556         * modules/mbsspn-tests (Files): Likewise.
26557         * modules/mbsstr-tests (Files): Likewise.
26558         * modules/memchr-tests (Files): Likewise.
26559         * modules/memchr2-tests (Files): Likewise.
26560         * modules/memcmp-tests (Files): Likewise.
26561         * modules/memmem-tests (Files): Likewise.
26562         * modules/memrchr-tests (Files): Likewise.
26563         * modules/mkdir-tests (Files): Likewise.
26564         * modules/mkfifo-tests (Files): Likewise.
26565         * modules/mkfifoat-tests (Files): Likewise.
26566         * modules/mknod-tests (Files): Likewise.
26567         * modules/nanosleep-tests (Files): Likewise.
26568         * modules/nl_langinfo-tests (Files): Likewise.
26569         * modules/obstack-printf-tests (Files): Likewise.
26570         * modules/open-tests (Files): Likewise.
26571         * modules/openat-tests (Files): Likewise.
26572         * modules/pipe-filter-gi-tests (Files): Likewise.
26573         * modules/pipe-filter-ii-tests (Files): Likewise.
26574         * modules/pipe2-tests (Files): Likewise.
26575         * modules/popen-safer-tests (Files): Likewise.
26576         * modules/popen-tests (Files): Likewise.
26577         * modules/posixtm-tests (Files): Likewise.
26578         * modules/pread-tests (Files): Likewise.
26579         * modules/printf-frexp-tests (Files): Likewise.
26580         * modules/printf-frexpl-tests (Files): Likewise.
26581         * modules/printf-posix-tests (Files): Likewise.
26582         * modules/priv-set-tests (Files): Likewise.
26583         * modules/quotearg-tests (Files): Likewise.
26584         * modules/random_r-tests (Files): Likewise.
26585         * modules/rawmemchr-tests (Files): Likewise.
26586         * modules/rbtree-list-tests (Files): Likewise.
26587         * modules/rbtree-oset-tests (Files): Likewise.
26588         * modules/rbtreehash-list-tests (Files): Likewise.
26589         * modules/readlink-tests (Files): Likewise.
26590         * modules/remove-tests (Files): Likewise.
26591         * modules/rename-tests (Files): Likewise.
26592         * modules/renameat-tests (Files): Likewise.
26593         * modules/rmdir-tests (Files): Likewise.
26594         * modules/round-tests (Files): Likewise.
26595         * modules/roundf-tests (Files): Likewise.
26596         * modules/roundl-tests (Files): Likewise.
26597         * modules/safe-alloc-tests (Files): Likewise.
26598         * modules/setenv-tests (Files): Likewise.
26599         * modules/sigaction-tests (Files): Likewise.
26600         * modules/signbit-tests (Files): Likewise.
26601         * modules/sleep-tests (Files): Likewise.
26602         * modules/snprintf-posix-tests (Files): Likewise.
26603         * modules/snprintf-tests (Files): Likewise.
26604         * modules/sprintf-posix-tests (Files): Likewise.
26605         * modules/stat-tests (Files): Likewise.
26606         * modules/stat-time-tests (Files): Likewise.
26607         * modules/strcasestr-tests (Files): Likewise.
26608         * modules/strchrnul-tests (Files): Likewise.
26609         * modules/strerror-tests (Files): Likewise.
26610         * modules/striconv-tests (Files): Likewise.
26611         * modules/striconveh-tests (Files): Likewise.
26612         * modules/striconveha-tests (Files): Likewise.
26613         * modules/strsignal-tests (Files): Likewise.
26614         * modules/strstr-tests (Files): Likewise.
26615         * modules/strtod-tests (Files): Likewise.
26616         * modules/strverscmp-tests (Files): Likewise.
26617         * modules/symlink-tests (Files): Likewise.
26618         * modules/symlinkat-tests (Files): Likewise.
26619         * modules/trunc-tests (Files): Likewise.
26620         * modules/truncf-tests (Files): Likewise.
26621         * modules/truncl-tests (Files): Likewise.
26622         * modules/uname-tests (Files): Likewise.
26623         * modules/unicase/cased-tests (Files): Likewise.
26624         * modules/unicase/ignorable-tests (Files): Likewise.
26625         * modules/unicase/locale-language-tests (Files): Likewise.
26626         * modules/unicase/tolower-tests (Files): Likewise.
26627         * modules/unicase/totitle-tests (Files): Likewise.
26628         * modules/unicase/toupper-tests (Files): Likewise.
26629         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26630         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26631         * modules/unicase/u8-casefold-tests (Files): Likewise.
26632         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26633         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26634         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26635         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26636         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26637         * modules/unicase/u8-tolower-tests (Files): Likewise.
26638         * modules/unicase/u8-totitle-tests (Files): Likewise.
26639         * modules/unicase/u8-toupper-tests (Files): Likewise.
26640         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26641         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26642         * modules/unicase/u16-casefold-tests (Files): Likewise.
26643         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26644         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26645         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26646         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26647         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26648         * modules/unicase/u16-tolower-tests (Files): Likewise.
26649         * modules/unicase/u16-totitle-tests (Files): Likewise.
26650         * modules/unicase/u16-toupper-tests (Files): Likewise.
26651         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26652         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26653         * modules/unicase/u32-casefold-tests (Files): Likewise.
26654         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26655         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26656         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26657         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26658         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26659         * modules/unicase/u32-tolower-tests (Files): Likewise.
26660         * modules/unicase/u32-totitle-tests (Files): Likewise.
26661         * modules/unicase/u32-toupper-tests (Files): Likewise.
26662         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26663         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26664         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26665         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26666         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26667         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26668         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26669         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26670         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26671         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26672         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26673         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26674         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26675         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26676         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26677         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26678         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26679         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26680         * modules/unictype/block-list-tests (Files): Likewise.
26681         * modules/unictype/block-of-tests (Files): Likewise.
26682         * modules/unictype/block-test-tests (Files): Likewise.
26683         * modules/unictype/category-C-tests (Files): Likewise.
26684         * modules/unictype/category-Cc-tests (Files): Likewise.
26685         * modules/unictype/category-Cf-tests (Files): Likewise.
26686         * modules/unictype/category-Cn-tests (Files): Likewise.
26687         * modules/unictype/category-Co-tests (Files): Likewise.
26688         * modules/unictype/category-Cs-tests (Files): Likewise.
26689         * modules/unictype/category-L-tests (Files): Likewise.
26690         * modules/unictype/category-Ll-tests (Files): Likewise.
26691         * modules/unictype/category-Lm-tests (Files): Likewise.
26692         * modules/unictype/category-Lo-tests (Files): Likewise.
26693         * modules/unictype/category-Lt-tests (Files): Likewise.
26694         * modules/unictype/category-Lu-tests (Files): Likewise.
26695         * modules/unictype/category-M-tests (Files): Likewise.
26696         * modules/unictype/category-Mc-tests (Files): Likewise.
26697         * modules/unictype/category-Me-tests (Files): Likewise.
26698         * modules/unictype/category-Mn-tests (Files): Likewise.
26699         * modules/unictype/category-N-tests (Files): Likewise.
26700         * modules/unictype/category-Nd-tests (Files): Likewise.
26701         * modules/unictype/category-Nl-tests (Files): Likewise.
26702         * modules/unictype/category-No-tests (Files): Likewise.
26703         * modules/unictype/category-P-tests (Files): Likewise.
26704         * modules/unictype/category-Pc-tests (Files): Likewise.
26705         * modules/unictype/category-Pd-tests (Files): Likewise.
26706         * modules/unictype/category-Pe-tests (Files): Likewise.
26707         * modules/unictype/category-Pf-tests (Files): Likewise.
26708         * modules/unictype/category-Pi-tests (Files): Likewise.
26709         * modules/unictype/category-Po-tests (Files): Likewise.
26710         * modules/unictype/category-Ps-tests (Files): Likewise.
26711         * modules/unictype/category-S-tests (Files): Likewise.
26712         * modules/unictype/category-Sc-tests (Files): Likewise.
26713         * modules/unictype/category-Sk-tests (Files): Likewise.
26714         * modules/unictype/category-Sm-tests (Files): Likewise.
26715         * modules/unictype/category-So-tests (Files): Likewise.
26716         * modules/unictype/category-Z-tests (Files): Likewise.
26717         * modules/unictype/category-Zl-tests (Files): Likewise.
26718         * modules/unictype/category-Zp-tests (Files): Likewise.
26719         * modules/unictype/category-Zs-tests (Files): Likewise.
26720         * modules/unictype/category-and-not-tests (Files): Likewise.
26721         * modules/unictype/category-and-tests (Files): Likewise.
26722         * modules/unictype/category-byname-tests (Files): Likewise.
26723         * modules/unictype/category-name-tests (Files): Likewise.
26724         * modules/unictype/category-none-tests (Files): Likewise.
26725         * modules/unictype/category-of-tests (Files): Likewise.
26726         * modules/unictype/category-or-tests (Files): Likewise.
26727         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26728         * modules/unictype/combining-class-tests (Files): Likewise.
26729         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26730         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26731         * modules/unictype/ctype-blank-tests (Files): Likewise.
26732         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26733         * modules/unictype/ctype-digit-tests (Files): Likewise.
26734         * modules/unictype/ctype-graph-tests (Files): Likewise.
26735         * modules/unictype/ctype-lower-tests (Files): Likewise.
26736         * modules/unictype/ctype-print-tests (Files): Likewise.
26737         * modules/unictype/ctype-punct-tests (Files): Likewise.
26738         * modules/unictype/ctype-space-tests (Files): Likewise.
26739         * modules/unictype/ctype-upper-tests (Files): Likewise.
26740         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26741         * modules/unictype/decimal-digit-tests (Files): Likewise.
26742         * modules/unictype/digit-tests (Files): Likewise.
26743         * modules/unictype/mirror-tests (Files): Likewise.
26744         * modules/unictype/numeric-tests (Files): Likewise.
26745         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26746         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26747         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26748         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26749         Likewise.
26750         * modules/unictype/property-bidi-block-separator-tests (Files):
26751         Likewise.
26752         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26753         Likewise.
26754         * modules/unictype/property-bidi-common-separator-tests (Files):
26755         Likewise.
26756         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26757         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26758         Likewise.
26759         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26760         Likewise.
26761         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26762         Likewise.
26763         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26764         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26765         Likewise.
26766         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26767         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26768         Likewise.
26769         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26770         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26771         * modules/unictype/property-bidi-segment-separator-tests (Files):
26772         Likewise.
26773         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26774         * modules/unictype/property-byname-tests (Files): Likewise.
26775         * modules/unictype/property-combining-tests (Files): Likewise.
26776         * modules/unictype/property-composite-tests (Files): Likewise.
26777         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26778         * modules/unictype/property-dash-tests (Files): Likewise.
26779         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26780         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26781         Likewise.
26782         * modules/unictype/property-deprecated-tests (Files): Likewise.
26783         * modules/unictype/property-diacritic-tests (Files): Likewise.
26784         * modules/unictype/property-extender-tests (Files): Likewise.
26785         * modules/unictype/property-format-control-tests (Files): Likewise.
26786         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26787         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26788         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26789         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26790         * modules/unictype/property-hyphen-tests (Files): Likewise.
26791         * modules/unictype/property-id-continue-tests (Files): Likewise.
26792         * modules/unictype/property-id-start-tests (Files): Likewise.
26793         * modules/unictype/property-ideographic-tests (Files): Likewise.
26794         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26795         * modules/unictype/property-ids-trinary-operator-tests (Files):
26796         Likewise.
26797         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26798         * modules/unictype/property-iso-control-tests (Files): Likewise.
26799         * modules/unictype/property-join-control-tests (Files): Likewise.
26800         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26801         * modules/unictype/property-line-separator-tests (Files): Likewise.
26802         * modules/unictype/property-logical-order-exception-tests (Files):
26803         Likewise.
26804         * modules/unictype/property-lowercase-tests (Files): Likewise.
26805         * modules/unictype/property-math-tests (Files): Likewise.
26806         * modules/unictype/property-non-break-tests (Files): Likewise.
26807         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26808         * modules/unictype/property-numeric-tests (Files): Likewise.
26809         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26810         * modules/unictype/property-other-default-ignorable-code-point-tests
26811         (Files): Likewise.
26812         * modules/unictype/property-other-grapheme-extend-tests (Files):
26813         Likewise.
26814         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26815         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26816         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26817         * modules/unictype/property-other-math-tests (Files): Likewise.
26818         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26819         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26820         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26821         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26822         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26823         * modules/unictype/property-private-use-tests (Files): Likewise.
26824         * modules/unictype/property-punctuation-tests (Files): Likewise.
26825         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26826         * modules/unictype/property-radical-tests (Files): Likewise.
26827         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26828         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26829         * modules/unictype/property-space-tests (Files): Likewise.
26830         * modules/unictype/property-terminal-punctuation-tests (Files):
26831         Likewise.
26832         * modules/unictype/property-test-tests (Files): Likewise.
26833         * modules/unictype/property-titlecase-tests (Files): Likewise.
26834         * modules/unictype/property-unassigned-code-value-tests (Files):
26835         Likewise.
26836         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26837         * modules/unictype/property-uppercase-tests (Files): Likewise.
26838         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26839         * modules/unictype/property-white-space-tests (Files): Likewise.
26840         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26841         * modules/unictype/property-xid-start-tests (Files): Likewise.
26842         * modules/unictype/property-zero-width-tests (Files): Likewise.
26843         * modules/unictype/scripts-tests (Files): Likewise.
26844         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26845         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26846         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26847         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26848         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26849         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26850         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26851         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26852         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26853         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26854         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26855         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26856         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26857         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26858         * modules/uninorm/composition-tests (Files): Likewise.
26859         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26860         * modules/uninorm/decomposition-tests (Files): Likewise.
26861         * modules/uninorm/filter-tests (Files): Likewise.
26862         * modules/uninorm/nfc-tests (Files): Likewise.
26863         * modules/uninorm/nfd-tests (Files): Likewise.
26864         * modules/uninorm/nfkc-tests (Files): Likewise.
26865         * modules/uninorm/nfkd-tests (Files): Likewise.
26866         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26867         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26868         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26869         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26870         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26871         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26872         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26873         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26874         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26875         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26876         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26877         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26878         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26879         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26880         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26881         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26882         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26883         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26884         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26885         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26886         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26887         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26888         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26889         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26890         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26891         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26892         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26893         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26894         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26895         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26896         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26897         * modules/uniwidth/u8-width-tests (Files): Likewise.
26898         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26899         * modules/uniwidth/u16-width-tests (Files): Likewise.
26900         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26901         * modules/uniwidth/u32-width-tests (Files): Likewise.
26902         * modules/uniwidth/width-tests (Files): Likewise.
26903         * modules/unlink-tests (Files): Likewise.
26904         * modules/unsetenv-tests (Files): Likewise.
26905         * modules/usleep-tests (Files): Likewise.
26906         * modules/utimens-tests (Files): Likewise.
26907         * modules/utimensat-tests (Files): Likewise.
26908         * modules/vasnprintf-posix-tests (Files): Likewise.
26909         * modules/vasnprintf-tests (Files): Likewise.
26910         * modules/vasprintf-posix-tests (Files): Likewise.
26911         * modules/vasprintf-tests (Files): Likewise.
26912         * modules/vdprintf-posix-tests (Files): Likewise.
26913         * modules/vfprintf-posix-tests (Files): Likewise.
26914         * modules/vprintf-posix-tests (Files): Likewise.
26915         * modules/vsnprintf-posix-tests (Files): Likewise.
26916         * modules/vsnprintf-tests (Files): Likewise.
26917         * modules/vsprintf-posix-tests (Files): Likewise.
26918         * modules/wcrtomb-tests (Files): Likewise.
26919         * modules/wcsnrtombs-tests (Files): Likewise.
26920         * modules/wcsrtombs-tests (Files): Likewise.
26921         * modules/wctype-tests (Files): Likewise.
26922         * modules/wcwidth-tests (Files): Likewise.
26923         * modules/xmemdup0-tests (Files): Likewise.
26924         * modules/xprintf-posix-tests (Files): Likewise.
26925         * modules/xvasprintf-tests (Files): Likewise.
26926
26927 2009-12-24  Eric Blake  <ebb9@byu.net>
26928
26929         test-nanosleep: fix typo
26930         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26931         patch.
26932         Reported by Bruno Haible.
26933
26934 2009-12-24  Bruno Haible  <bruno@clisp.org>
26935
26936         Reduce namespace pollution on glibc systems.
26937         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26938         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26939         systems.
26940         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26941         <getopt.h> on glibc systems.
26942         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26943         systems.
26944         * lib/fcntl.c: Include <unistd.h> here instead.
26945
26946 2009-12-24  Bruno Haible  <bruno@clisp.org>
26947
26948         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26949
26950 2009-12-24  Eric Blake  <ebb9@byu.net>
26951
26952         tests: add signature checks
26953         * tests/signature.h (SIGNATURE_CHECK): New file.
26954         * modules/atexit-tests (Files): Use it.
26955         * modules/btowc-tests (Files): Likewise.
26956         * modules/canonicalize-lgpl-tests (Files): Likewise.
26957         * modules/ceilf-tests (Files): Likewise.
26958         * modules/ceill-tests (Files): Likewise.
26959         * modules/chown-tests (Files): Likewise.
26960         * modules/dprintf-posix-tests (Files): Likewise.
26961         * modules/dup2-tests (Files): Likewise.
26962         * modules/dup3-tests (Files): Likewise.
26963         * modules/duplocale-tests (Files): Likewise.
26964         * modules/fchdir-tests (Files): Likewise.
26965         * modules/fcntl-tests (Files): Likewise.
26966         * modules/fdopendir-tests (Files): Likewise.
26967         * modules/fflush-tests (Files): Likewise.
26968         * modules/flock-tests (Files): Likewise.
26969         * modules/floorf-tests (Files): Likewise.
26970         * modules/floorl-tests (Files): Likewise.
26971         * modules/fnmatch-tests (Files): Likewise.
26972         * modules/fopen-tests (Files): Likewise.
26973         * modules/fprintf-posix-tests (Files): Likewise.
26974         * modules/freopen-tests (Files): Likewise.
26975         * modules/frexp-nolibm-tests (Files): Likewise.
26976         * modules/frexp-tests (Files): Likewise.
26977         * modules/frexpl-nolibm-tests (Files): Likewise.
26978         * modules/frexpl-tests (Files): Likewise.
26979         * modules/fseek-tests (Files): Likewise.
26980         * modules/fseeko-tests (Files): Likewise.
26981         * modules/fsync-tests (Files): Likewise.
26982         * modules/ftell-tests (Files): Likewise.
26983         * modules/ftello-tests (Files): Likewise.
26984         * modules/futimens-tests (Files): Likewise.
26985         * modules/getaddrinfo-tests (Files): Likewise.
26986         * modules/getcwd-tests (Files): Likewise.
26987         * modules/getdelim-tests (Files): Likewise.
26988         * modules/getdtablesize-tests (Files): Likewise.
26989         * modules/getgroups-tests (Files): Likewise.
26990         * modules/gethostname-tests (Files): Likewise.
26991         * modules/getline-tests (Files): Likewise.
26992         * modules/getopt-posix-tests (Files): Likewise.
26993         * modules/gettimeofday-tests (Files): Likewise.
26994         * modules/glob-tests (Files): Likewise.
26995         * modules/iconv-tests (Files): Likewise.
26996         * modules/inet_ntop-tests (Files): Likewise.
26997         * modules/inet_pton-tests (Files): Likewise.
26998         * modules/isblank-tests (Files): Likewise.
26999         * modules/lchown-tests (Files): Likewise.
27000         * modules/ldexpl-tests (Files): Likewise.
27001         * modules/link-tests (Files): Likewise.
27002         * modules/linkat-tests (Files): Likewise.
27003         * modules/lseek-tests (Files): Likewise.
27004         * modules/lstat-tests (Files): Likewise.
27005         * modules/mbrtowc-tests (Files): Likewise.
27006         * modules/mbsinit-tests (Files): Likewise.
27007         * modules/mbsnrtowcs-tests (Files): Likewise.
27008         * modules/mbsrtowcs-tests (Files): Likewise.
27009         * modules/memchr-tests (Files): Likewise.
27010         * modules/memcmp-tests (Files): Likewise.
27011         * modules/memmem-tests (Files): Likewise.
27012         * modules/memrchr-tests (Files): Likewise.
27013         * modules/mkdir-tests (Files): Likewise.
27014         * modules/mkfifo-tests (Files): Likewise.
27015         * modules/mkfifoat-tests (Files): Likewise.
27016         * modules/mknod-tests (Files): Likewise.
27017         * modules/nanosleep-tests (Files): Likewise.
27018         * modules/nl_langinfo-tests (Files): Likewise.
27019         * modules/obstack-printf-tests (Files): Likewise.
27020         * modules/open-tests (Files): Likewise.
27021         * modules/openat-tests (Files): Likewise.
27022         * modules/perror-tests (Files): Likewise.
27023         * modules/pipe2-tests (Files): Likewise.
27024         * modules/poll-tests (Files): Likewise.
27025         * modules/popen-tests (Files): Likewise.
27026         * modules/posix_spawn-tests (Files): Likewise.
27027         * modules/posix_spawnp-tests (Files): Likewise.
27028         * modules/pread-tests (Files): Likewise.
27029         * modules/printf-posix-tests (Files): Likewise.
27030         * modules/pty-tests (Files): Likewise.
27031         * modules/random_r-tests (Files): Likewise.
27032         * modules/rawmemchr-tests (Files): Likewise.
27033         * modules/readlink-tests (Files): Likewise.
27034         * modules/remove-tests (Files): Likewise.
27035         * modules/rename-tests (Files): Likewise.
27036         * modules/renameat-tests (Files): Likewise.
27037         * modules/rmdir-tests (Files): Likewise.
27038         * modules/round-tests (Files): Likewise.
27039         * modules/roundf-tests (Files): Likewise.
27040         * modules/roundl-tests (Files): Likewise.
27041         * modules/select-tests (Files): Likewise.
27042         * modules/setenv-tests (Files): Likewise.
27043         * modules/sigaction-tests (Files): Likewise.
27044         * modules/sleep-tests (Files): Likewise.
27045         * modules/snprintf-posix-tests (Files): Likewise.
27046         * modules/snprintf-tests (Files): Likewise.
27047         * modules/sprintf-posix-tests (Files): Likewise.
27048         * modules/stat-tests (Files): Likewise.
27049         * modules/strcasestr-tests (Files): Likewise.
27050         * modules/strchrnul-tests (Files): Likewise.
27051         * modules/strerror-tests (Files): Likewise.
27052         * modules/strsignal-tests (Files): Likewise.
27053         * modules/strstr-tests (Files): Likewise.
27054         * modules/strtod-tests (Files): Likewise.
27055         * modules/strverscmp-tests (Files): Likewise.
27056         * modules/symlink-tests (Files): Likewise.
27057         * modules/symlinkat-tests (Files): Likewise.
27058         * modules/times-tests (Files): Likewise.
27059         * modules/trunc-tests (Files): Likewise.
27060         * modules/truncf-tests (Files): Likewise.
27061         * modules/truncl-tests (Files): Likewise.
27062         * modules/tsearch-tests (Files): Likewise.
27063         * modules/uname-tests (Files): Likewise.
27064         * modules/unlink-tests (Files): Likewise.
27065         * modules/unsetenv-tests (Files): Likewise.
27066         * modules/usleep-tests (Files): Likewise.
27067         * modules/utimensat-tests (Files): Likewise.
27068         * modules/vasprintf-tests (Files): Likewise.
27069         * modules/vdprintf-posix-tests (Files): Likewise.
27070         * modules/vfprintf-posix-tests (Files): Likewise.
27071         * modules/vprintf-posix-tests (Files): Likewise.
27072         * modules/vsnprintf-posix-tests (Files): Likewise.
27073         * modules/vsnprintf-tests (Files): Likewise.
27074         * modules/vsprintf-posix-tests (Files): Likewise.
27075         * modules/wcrtomb-tests (Files): Likewise.
27076         * modules/wcsnrtombs-tests (Files): Likewise.
27077         * modules/wcsrtombs-tests (Files): Likewise.
27078         * modules/wcwidth-tests (Files): Likewise.
27079         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27080         * tests/test-isinf.c (isinf): Likewise.
27081         * tests/test-isnan.c (isnan): Likewise.
27082         * tests/test-signbit.c (signbit): Likewise.
27083         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27084         declaration, either as macro or with correct signature.
27085         (select): Ensure function under test is declared with correct
27086         signature in correct header.
27087         * tests/test-atexit.c (atexit): Likewise.
27088         * tests/test-btowc.c (btowc): Likewise.
27089         * tests/test-canonicalize-lgpl.c (realpath)
27090         (canonicalize_file_name): Likewise.
27091         * tests/test-ceilf1.c (ceilf): Likewise.
27092         * tests/test-ceill.c (ceill): Likewise.
27093         * tests/test-chown.c (chown): Likewise.
27094         * tests/test-dprintf-posix.c (dprintf): Likewise.
27095         * tests/test-dup2.c (dup2): Likewise.
27096         * tests/test-dup3.c (dup3): Likewise.
27097         * tests/test-duplocale.c (duplocale): Likewise.
27098         * tests/test-fchdir.c (fchdir): Likewise.
27099         * tests/test-fchownat.c (fchownat): Likewise.
27100         * tests/test-fcntl.c (fcntl): Likewise.
27101         * tests/test-fdopendir.c (fdopendir): Likewise.
27102         * tests/test-fflush.c (fflush): Likewise.
27103         * tests/test-flock.c (flock): Likewise.
27104         * tests/test-floorf1.c (floorf): Likewise.
27105         * tests/test-floorl.c (floorl): Likewise.
27106         * tests/test-fnmatch.c (fnmatch): Likewise.
27107         * tests/test-fopen.c (fopen): Likewise.
27108         * tests/test-fprintf-posix.c (fprintf): Likewise.
27109         * tests/test-freopen.c (freopen): Likewise.
27110         * tests/test-frexp.c (frexp): Likewise.
27111         * tests/test-frexpl.c (frexpl): Likewise.
27112         * tests/test-fseek.c (fseek): Likewise.
27113         * tests/test-fseeko.c (fseeko): Likewise.
27114         * tests/test-fstatat.c (fstatat): Likewise.
27115         * tests/test-fsync.c (fsync): Likewise.
27116         * tests/test-ftell.c (ftell): Likewise.
27117         * tests/test-ftello.c (ftello): Likewise.
27118         * tests/test-futimens.c (futimens): Likewise.
27119         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27120         (gai_strerror): Likewise.
27121         * tests/test-getcwd.c (getcwd): Likewise.
27122         * tests/test-getdelim.c (getdelim): Likewise.
27123         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27124         * tests/test-getgroups.c (getgroups): Likewise.
27125         * tests/test-gethostname.c (gethostname): Likewise.
27126         * tests/test-getline.c (getline): Likewise.
27127         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27128         Likewise.
27129         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27130         * tests/test-glob.c (glob, globfree): Likewise.
27131         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27132         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27133         * tests/test-inet_pton.c (inet_pton): Likewise.
27134         * tests/test-isblank.c (isblank): Likewise.
27135         * tests/test-lchown.c (lchown): Likewise.
27136         * tests/test-ldexpl.c (ldexpl): Likewise.
27137         * tests/test-link.c (link): Likewise.
27138         * tests/test-linkat.c (linkat): Likewise.
27139         * tests/test-lseek.c (lseek): Likewise.
27140         * tests/test-lstat.c (lstat): Likewise.
27141         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27142         * tests/test-mbsinit.c (mbsinit): Likewise.
27143         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27144         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27145         * tests/test-memchr.c (memchr): Likewise.
27146         * tests/test-memcmp.c (memcmp): Likewise.
27147         * tests/test-memmem.c (memmem): Likewise.
27148         * tests/test-memrchr.c (memrchr): Likewise.
27149         * tests/test-mkdir.c (mkdir): Likewise.
27150         * tests/test-mkdirat.c (mkdirat): Likewise.
27151         * tests/test-mkfifo.c (mkfifo): Likewise.
27152         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27153         * tests/test-mknod.c (mknod): Likewise.
27154         * tests/test-nanosleep.c (nanosleep): Likewise.
27155         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27156         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27157         Likewise.
27158         * tests/test-open.c (open): Likewise.
27159         * tests/test-openat.c (openat): Likewise.
27160         * tests/test-perror.c (perror): Likewise.
27161         * tests/test-pipe2.c (pipe2): Likewise.
27162         * tests/test-poll.c (poll): Likewise.
27163         * tests/test-popen.c (popen, pclose): Likewise.
27164         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27165         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27166         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27167         (posix_spawn_file_actions_destroy)
27168         (posix_spawn_file_actions_addclose)
27169         (posix_spawn_file_actions_addopen)
27170         (posix_spawn_file_actions_adddup2): Likewise.
27171         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27172         * tests/test-pread.c (pread): Likewise.
27173         * tests/test-printf-posix.c (printf): Likewise.
27174         * tests/test-pty.c (openpty, forkpty): Likewise.
27175         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27176         (random_r): Likewise.
27177         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27178         * tests/test-readlink.c (readlink): Likewise.
27179         * tests/test-remove.c (remove): Likewise.
27180         * tests/test-rename.c (rename): Likewise.
27181         * tests/test-renameat.c (renameat): Likewise.
27182         * tests/test-rmdir.c (rmdir): Likewise.
27183         * tests/test-round1.c (round): Likewise.
27184         * tests/test-roundf1.c (roundf): Likewise.
27185         * tests/test-roundl.c (roundl): Likewise.
27186         * tests/test-setenv.c (setenv): Likewise.
27187         * tests/test-sigaction.c (sigaction): Likewise.
27188         * tests/test-sleep.c (sleep): Likewise.
27189         * tests/test-snprintf.c (snprintf): Likewise.
27190         * tests/test-sprintf-posix.c (sprintf): Likewise.
27191         * tests/test-stat.c (stat): Likewise.
27192         * tests/test-stpncpy.c (stpncpy): Likewise.
27193         * tests/test-strcasestr.c (strcasestr): Likewise.
27194         * tests/test-strchrnul.c (strchrnul): Likewise.
27195         * tests/test-strerror.c (strerror): Likewise.
27196         * tests/test-strsignal.c (strsignal): Likewise.
27197         * tests/test-strstr.c (strstr): Likewise.
27198         * tests/test-strtod.c (strtod): Likewise.
27199         * tests/test-strverscmp.c (strverscmp): Likewise.
27200         * tests/test-symlink.c (symlink): Likewise.
27201         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27202         * tests/test-times.c (times): Likewise.
27203         * tests/test-trunc1.c (trunc): Likewise.
27204         * tests/test-truncf1.c (truncf): Likewise.
27205         * tests/test-truncl.c (truncl): Likewise.
27206         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27207         Likewise.
27208         * tests/test-uname.c (uname): Likewise.
27209         * tests/test-unlink.c (unlink): Likewise.
27210         * tests/test-unlinkat.c (unlinkat): Likewise.
27211         * tests/test-unsetenv.c (unsetenv): Likewise.
27212         * tests/test-usleep.c (usleep): Likewise.
27213         * tests/test-utimensat.c (utimensat): Likewise.
27214         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27215         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27216         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27217         * tests/test-vprintf-posix.c (vprintf): Likewise.
27218         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27219         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27220         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27221         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27222         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27223         * tests/test-wcwidth.c (wcwidth): Likewise.
27224
27225         build: pull in conditional headers during GNULIB_POSIXCHECK
27226         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27227         definitions from any conditionally-included headers.
27228         * lib/stdlib.in.h (includes): Likewise.
27229         * lib/unistd.in.h (includes): Likewise.
27230
27231 2009-12-24  Bruno Haible  <bruno@clisp.org>
27232
27233         * tests/test-argv-iter.c: Include header file being tested immediately
27234         after config.h.
27235         * tests/test-base64.c: Likewise.
27236         * tests/test-flock.c: Likewise.
27237         * tests/test-fsync.c: Likewise.
27238         * tests/test-getdate.c: Likewise.
27239         * tests/test-getndelim2.c: Likewise.
27240         * tests/test-isfinite.c: Likewise.
27241         * tests/test-isinf.c: Likewise.
27242         * tests/test-strerror.c: Likewise.
27243         * tests/test-strsignal.c: Likewise.
27244
27245 2009-12-23  Eric Blake  <ebb9@byu.net>
27246
27247         unistd: work around cygwin bug
27248         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27249         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27250         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27251
27252 2009-12-23  Bruno Haible  <bruno@clisp.org>
27253
27254         localename: More tests.
27255         * tests/test-localename.c (SIZEOF): New macro.
27256         (categories): New variable.
27257         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27258         test_locale_name_default): Add test w.r.t. thread locale.
27259         (test_locale_name_thread): New function.
27260         (main): Invoke it.
27261
27262         localename: Make aware of thread locale.
27263         * lib/localename.h (gl_locale_name_thread): New declaration.
27264         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27265         behaviour with respect to thread locale.
27266         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27267         <langinfo.h>, glthread/lock.h.
27268         (SIZE_BITS): New macro.
27269         (string_hash): New function.
27270         (struct hash_node): New type.
27271         (HASH_TABLE_SIZE): New macro.
27272         (struniq_hash_table, struniq_lock): New variables.
27273         (struniq): New function.
27274         (gl_locale_name_thread): New function.
27275         (gl_locale_name): Invoke it.
27276         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27277         * modules/localename (Depends-on): Add lock.
27278         Reported by Mike Gran <spk121@yahoo.com>.
27279
27280 2009-12-23  Eric Blake  <ebb9@byu.net>
27281
27282         va-args: new module
27283         * modules/va-args: New file.
27284         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27285         * MODULES.html.sh (Core language properties): Mention it.
27286
27287         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27288         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27289         named alias for __attribute__((__unused__)).
27290         * lib/chown.c: Update client.
27291         * lib/fchmodat.c: Likewise.
27292         * lib/fts.c: Likewise.
27293         * lib/getdate.y: Likewise.
27294         * lib/getgroups.c: Likewise.
27295         * lib/getopt.c: Likewise.
27296         * lib/getugroups.c: Likewise.
27297         * lib/mkdir.c: Likewise.
27298         * lib/mkfifo.c: Likewise.
27299         * lib/mkfifoat.c: Likewise.
27300         * lib/mknod.c: Likewise.
27301         * lib/mknodat.c: Likewise.
27302         * lib/readlink.c: Likewise.
27303         * lib/se-context.in.h: Likewise.
27304         * lib/se-selinux.in.h: Likewise.
27305         * lib/sockets.c: Likewise.
27306         * lib/symlink.c: Likewise.
27307         * lib/symlinkat.c: Likewise.
27308         * lib/unicodeio.c: Likewise.
27309         * lib/unistr.h: Likewise.
27310         * tests/test-areadlink.c: Likewise.
27311         * tests/test-areadlinkat.c: Likewise.
27312         * tests/test-filenamecat.c: Likewise.
27313         * tests/test-fseeko.c: Likewise.
27314         * tests/test-ftello.c: Likewise.
27315         * tests/test-getdate.c: Likewise.
27316         * tests/test-getgroups.c: Likewise.
27317         * tests/test-gethostname.c: Likewise.
27318         * tests/test-quotearg.c: Likewise.
27319         * tests/test-version-etc.c: Likewise.
27320         * tests/test-xalloc-die.c: Likewise.
27321         * tests/test-xfprintf-posix.c: Likewise.
27322         * tests/test-xprintf-posix.c: Likewise.
27323         * tests/test-xvasprintf.c: Likewise.
27324
27325         tests: avoid compiler warnings
27326         * tests/test-fcntl.c (main): Delete unused parameters.
27327         * tests/test-freopen-safer.c (main): Likewise.
27328         * tests/test-xalloc-die.c (main): Mark unused parameters.
27329         * tests/test-fseeko.c (main): Likewise.
27330         * tests/test-ftello.c (main): Likewise.
27331         * tests/test-nanosleep.c (main): Avoid declaration warning.
27332         * tests/test-sleep.c (main): Likewise.
27333         * tests/test-unsetenv.c (main): Silence warning about string
27334         literal.
27335         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27336
27337 2009-12-23  Bruno Haible  <bruno@clisp.org>
27338
27339         * tests/test-localename.c (test_locale_name): New function, extracted
27340         from main. Also test mixed situations.
27341         (test_locale_name_posix, test_locale_name_environ,
27342         test_locale_name_default): New functions.
27343         (main): Invoke them all.
27344         * modules/localename-tests (configure.ac): Test for newlocale.
27345
27346 2009-12-23  Bruno Haible  <bruno@clisp.org>
27347
27348         unistd: Ensure getcwd gets declared before being overridden.
27349         * lib/unistd.in.h: Conditionally include <io.h>.
27350
27351 2009-12-22  Bruno Haible  <bruno@clisp.org>
27352
27353         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27354         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27355         (gl_WCHAR_H): Invoke it.
27356         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27357         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27358         Reported by Karl Berry <karl@freefriends.org>.
27359
27360 2009-12-22  Eric Blake  <ebb9@byu.net>
27361
27362         math, unistd: avoid redundant includes
27363         * lib/math.in.h (isnan): No need to re-include <math.h>.
27364         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27365
27366         getsubopt: work around cygwin bug
27367         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27368         avoid conflicting with system getsubopt.
27369         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27370         bug.
27371
27372         getopt: synchronize from glibc
27373         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27374         parameter order.  Adjust all callers.
27375         (_getopt_internal_r, main): Adjust quoting in error messages.
27376         Drop considerations for outdated POSIX 1003.2 error message.
27377         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27378         callers.
27379         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27380
27381         test-getopt: test stderr behavior
27382         * modules/getopt-posix-tests (Depends-on): Add dup2.
27383         * tests/test-getopt.c (ASSERT): Avoid stderr.
27384         (main): Move stderr to a temporary file.
27385         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27386         Instead, add parameter to inform caller if output occurred.
27387         (test_getopt): Adjust all existing tests to expect silence, and
27388         add new tests of leading ":".
27389         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27390         glibc shortcomings with leading "-:" or "+:" in optstring.
27391         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27392         Likewise.
27393         * doc/posix-functions/getopt.texi (getopt): Likewise.
27394
27395         test-getopt: enhance test
27396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27397         supports optind=0.
27398         * tests/test-getopt.c (OPTIND_MIN): Move...
27399         * tests/test-getopt.h (OPTIND_MIN): ...here.
27400         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27401         Require that optind=0 works, since modern BSD supports it in
27402         addition to optreset, and since coreutils expects it.
27403         (test_getopt_long_only): New test.
27404         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27405         glibc shortcomings with 'W;', and enforcement of optind=0.
27406         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27407         Likewise.
27408
27409 2009-12-21  Bruno Haible  <bruno@clisp.org>
27410
27411         localename: Improvements for MacOS X and Cygwin.
27412         * lib/localename.h (gl_locale_name_environ): New declaration.
27413         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27414         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27415         (gl_locale_name_posix): Invoke it.
27416         (gl_locale_name_default): Add comments. Use Windows native API also on
27417         Cygwin.
27418
27419 2009-12-21  Bruno Haible  <bruno@clisp.org>
27420
27421         Update list of Win32 locale ids.
27422         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27423         (LANG_SAMI): Renamed from LANG_SAAMI.
27424         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27425         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27426         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27427         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27428         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27429         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27430         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27431         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27432         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27433         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27434         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27435         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27436         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27437         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27438         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27439         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27440         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27441         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27442         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27443         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27444         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27445         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27446         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27447         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27448         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27449         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27450         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27451         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27452         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27453         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27454         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27455         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27456         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27457         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27458         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27459         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27460         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27461         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27462         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27463         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27464         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27465         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27466         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27467         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27468         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27469         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27470         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27471         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27472         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27473         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27474         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27475         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27476         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27477         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27478         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27479         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27480         Add more languages and countries for Sami, Sorbian. Add more countries
27481         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27482         for Pashto. Change country for Syriac, Tswana.
27483
27484 2009-12-21  Eric Blake  <ebb9@byu.net>
27485
27486         test-utimens: avoid spurious failure
27487         * tests/test-chown.h (nap): Factor...
27488         * tests/nap.h: ...into new file.
27489         * tests/test-lchown.h (nap): Avoid duplication.
27490         * tests/test-utimens-common.h (nap): Use shared implementation,
27491         necessary on file systems with 1-second resolution.
27492         * modules/chown-tests (Files): Include new file.
27493         * modules/fdutimensat-tests (Files): Likewise.
27494         * modules/futimens-tests (Files): Likewise.
27495         * modules/lchown-tests (Files): Likewise.
27496         * modules/openat-tests (Files): Likewise.
27497         * modules/utimens-tests (Files): Likewise.
27498         * modules/utimensat-tests (Files): Likewise.
27499
27500 2009-12-19  Eric Blake  <ebb9@byu.net>
27501
27502         futimens, utimensat: work around Linux bug
27503         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27504         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27505         * lib/utimensat.c (rpl_utimensat): Work around it.
27506         * lib/futimens.c (rpl_futimens): Adjust comment.
27507
27508         utimens: work around Linux ctime bug
27509         * lib/utimens.c (detect_ctime_bug): New helper function.
27510         (update_timespec): Differentiate between workaround needed for
27511         this bug vs. what is needed for systems that lack utimensat.
27512         (fdutimens, lutimens): Work around bug.
27513
27514         utimens: check for ctime update
27515         * tests/test-utimens-common.h (check_ctime): Define.
27516         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27517         * tests/test-futimens.h (test_futimens): Likewise.
27518         * tests/test-lutimens.h (test_lutimens): Likewise.
27519         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27520         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27521
27522 2009-12-19  Bruno Haible  <bruno@clisp.org>
27523
27524         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27525         * tests/test-dprintf-posix2.sh: New file.
27526         * tests/test-dprintf-posix2.c: New file.
27527         * modules/dprintf-posix-tests (Files): Add them.
27528         (configure.ac): Check for getrlimit and setrlimit.
27529         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27530
27531 2009-12-19  Bruno Haible  <bruno@clisp.org>
27532
27533         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27534         * tests/test-fprintf-posix3.sh: New file.
27535         * tests/test-fprintf-posix3.c: New file.
27536         * modules/fprintf-posix-tests (Files): Add them.
27537         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27538
27539 2009-12-19  Eric Blake  <ebb9@byu.net>
27540
27541         dirfd: fix prototype
27542         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27543         * lib/dirfd.c (dirfd): Likewise.
27544
27545         canonicalize: reduce memory usage
27546         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27547         allocation to size.
27548         Reported by Solar Designer <solar@openwall.com>.
27549
27550 2009-12-19  Bruno Haible  <bruno@clisp.org>
27551
27552         New module attribute 'Applicability'.
27553         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27554         * gnulib-tool: New option --extract-applicability.
27555         (func_usage): Document it.
27556         (sed_extract_prog): Recognize it.
27557         (func_get_applicability): New function.
27558         (func_import): Generalize handling of 'link-warning' module.
27559         * modules/link-warning (Applicability): New section.
27560         * modules/arg-nonnull (Applicability): New section.
27561         Repoted by Simon Josefsson <simon@josefsson.org>.
27562
27563 2009-12-19  Bruno Haible  <bruno@clisp.org>
27564
27565         fflush: tweak
27566         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27567         * lib/fseeko.c (rpl_fseeko): Likewise.
27568
27569 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27570
27571         * lib/gl_list.h: Fix typo in comment.
27572
27573 2009-12-16  Eric Blake  <ebb9@byu.net>
27574
27575         fcntl: use to simplify other modules
27576         * modules/cloexec (Depends-on): Add fcntl.
27577         * modules/fchdir (Depends-on): Likewise.
27578         * modules/fd-safer-flag (Depends-on): Likewise.
27579         * modules/unistd-safer (Depends-on): Likewise.
27580         * modules/dup3 (configure.ac): Set module indicator.
27581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27582         missing.
27583         * lib/fchdir.c (_gl_register_dup): Fix comment.
27584         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27585         * lib/dup-safer.c (dup_safer): Likewise.
27586         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27587         * lib/dup3.c (dup3): Likewise.
27588         * tests/test-fchdir.c (main): Enhance test.
27589         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27590
27591         fcntl: port portions of fcntl to mingw
27592         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27593         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27594         replacement for mingw.
27595         * modules/fcntl (Description): Update.
27596         (Depends-on): Add dup2.
27597         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27598         * modules/fcntl-h (Makefile.am): Substitute it.
27599         * lib/fcntl.in.h (fcntl): Update declaration.
27600         (F_DUPFD, F_GETFD): New macros, when needed.
27601         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27602         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27603         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27604         we now guarantee.
27605
27606         fcntl: work around cygwin bug in F_DUPFD
27607         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27608         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27609         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27610         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27611         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27612
27613         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27614         * modules/fcntl (Files): List new files.
27615         (configure.ac): Run a test.
27616         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27617         * lib/fcntl.c (rpl_fcntl): Likewise.
27618         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27619         (gl_FCNTL_H): Always replace fcntl.h.
27620         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27621         * lib/fcntl.in.h (fcntl): Declare replacement.
27622         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27623         needed, plus a witness.
27624         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27625         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27626         * tests/test-fcntl.c: New file.
27627         * modules/fcntl-tests: Likewise.
27628
27629         binary-io: avoid potential compilation warning
27630         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27631         directives.
27632
27633         fflush: avoid compilation error on NetBSD
27634         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27635         between off_t and fpos_t, since the latter is sometimes a struct.
27636         * lib/fseeko.c (rpl_fseeko): Likewise.
27637         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27638
27639 2009-12-15  Eric Blake  <ebb9@byu.net>
27640
27641         fcntl-h, stdio, sys_ioctl: fix declarations
27642         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27643         function must not take arguments.
27644         * lib/sys_ioctl.in.h (ioctl): Likewise.
27645         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27646         (open): Add a link warning.
27647
27648 2009-12-15  Jim Meyering  <meyering@redhat.com>
27649
27650         areadlink, areadlink-with-size: relax license to LGPLv2+
27651         * modules/areadlink (License): Relax to LGPLv2+.
27652         * modules/areadlink-with-size (License): Likewise.
27653
27654 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27655             Bruno Haible  <bruno@clisp.org>
27656
27657         *printf: Fix memory leak.
27658         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27659         * lib/vfprintf.c (vfprintf): Likewise.
27660         * lib/dprintf.c (dprintf): Likewise.
27661         * lib/vdprintf.c (vdprintf): Likewise.
27662
27663 2009-12-14  Eric Blake  <ebb9@byu.net>
27664
27665         accept4: adjust module dependencies
27666         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27667
27668         utimens: one more try at avoiding compiler warning
27669         * lib/utimens.c (lutimens): Lower scope of result.
27670
27671 2009-12-13  Bruno Haible  <bruno@clisp.org>
27672
27673         Move the malloc checking from module 'list' to new module 'xlist'.
27674         * modules/xlist: New file.
27675         * lib/gl_xlist.h: New file.
27676         * lib/gl_xlist.c: New file.
27677         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27678         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27679         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27680         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27681         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27682         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27683         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27684         gl_sortedlist_nx_add): New declarations.
27685         (struct gl_list_implementation): Rename and change methods accordingly.
27686         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27687         (gl_list_nx_create): Renamed from gl_list_create.
27688         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27689         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27690         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27691         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27692         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27693         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27694         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27695         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27696         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27697         gl_list_create_empty.
27698         (gl_list_nx_create): Renamed from gl_list_create.
27699         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27700         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27701         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27702         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27703         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27704         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27705         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27706         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27707         * lib/gl_array_list.c: Don't include xalloc.h.
27708         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27709         NULL upon out-of-memory.
27710         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27711         out-of-memory.
27712         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27713         Change return type to 'int'.
27714         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27715         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27716         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27717         upon out-of-memory.
27718         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27719         upon out-of-memory.
27720         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27721         upon out-of-memory.
27722         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27723         upon out-of-memory.
27724         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27725         out-of-memory.
27726         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27727         Update.
27728         (gl_array_list_implementation): Update.
27729         * lib/gl_carray_list.c: Don't include xalloc.h.
27730         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27731         Return NULL upon out-of-memory.
27732         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27733         out-of-memory.
27734         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27735         Change return type to 'int'.
27736         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27737         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27738         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27739         upon out-of-memory.
27740         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27741         upon out-of-memory.
27742         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27743         out-of-memory.
27744         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27745         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27746         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27747         Update.
27748         (gl_carray_list_implementation): Update.
27749         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27750         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27751         gl_linked_create_empty. Return NULL upon out-of-memory.
27752         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27753         out-of-memory.
27754         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27755         Change return type to 'int'. Return -1 upon out-of-memory.
27756         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27757         out-of-memory.
27758         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27759         upon out-of-memory.
27760         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27761         upon out-of-memory.
27762         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27763         NULL upon out-of-memory.
27764         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27765         upon out-of-memory.
27766         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27767         out-of-memory.
27768         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27769         Update.
27770         * lib/gl_linked_list.c: Don't include xalloc.h.
27771         (gl_linked_list_implementation): Update.
27772         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27773         (add_to_bucket): Change return type to 'int'.
27774         (gl_linkedhash_list_implementation): Update.
27775         * lib/gl_anytree_list1.h (free_subtree): New function.
27776         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27777         gl_tree_create_empty. Return NULL upon out-of-memory.
27778         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27779         Change return type to 'int'. Return -1 upon out-of-memory.
27780         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27781         out-of-memory.
27782         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27783         (gl_tree_remove_node): New function, moved here from
27784         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27785         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27786         Update.
27787         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27788         malloc, not xmalloc. Return NULL upon out-of-memory.
27789         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27790         out-of-memory.
27791         (gl_tree_remove_node_from_tree): New function, extracted from
27792         gl_tree_remove_node.
27793         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27794         upon out-of-memory.
27795         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27796         out-of-memory.
27797         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27798         upon out-of-memory.
27799         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27800         upon out-of-memory.
27801         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27802         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27803         not xmalloc. Return NULL upon out-of-memory.
27804         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27805         out-of-memory.
27806         (gl_tree_remove_node_from_tree): New function, extracted from
27807         gl_tree_remove_node.
27808         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27809         upon out-of-memory.
27810         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27811         out-of-memory.
27812         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27813         upon out-of-memory.
27814         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27815         upon out-of-memory.
27816         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27817         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27818         gl_anytree_list1.h before gl_anyavltree_list2.h.
27819         (gl_avltree_list_implementation): Update.
27820         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27821         gl_anytree_list1.h before gl_anyavltree_list2.h.
27822         (gl_rbtree_list_implementation): Update.
27823         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27824         Change return type to 'int'. Return -1 upon out-of-memory. Use
27825         __builtin_expect.
27826         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27827         (gl_avltreehash_list_implementation): Update.
27828         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27829         (gl_rbtreehash_list_implementation): Update.
27830         * modules/array-list (Depends-on): Remove xalloc.
27831         * modules/carray-list (Depends-on): Likewise.
27832         * modules/linked-list (Depends-on): Likewise.
27833         * modules/linkedhash-list (Depends-on): Likewise.
27834         * modules/avltree-list (Depends-on): Likewise.
27835         * modules/rbtree-list (Depends-on): Likewise.
27836         * modules/avltreehash-list (Depends-on): Likewise.
27837         * modules/rbtreehash-list (Depends-on): Likewise.
27838
27839         * modules/xsublist: New file.
27840         * lib/gl_xsublist.h: New file.
27841         * lib/gl_xsublist.c: New file.
27842         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27843         (gl_sublist_nx_create): New declaration.
27844         * lib/gl_sublist.c: Don't include xalloc.h.
27845         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27846         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27847         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27848         Change return type to 'int'. Return -1 upon out-of-memory.
27849         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27850         upon out-of-memory.
27851         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27852         NULL upon out-of-memory.
27853         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27854         upon out-of-memory.
27855         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27856         NULL upon out-of-memory.
27857         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27858         NULL upon out-of-memory.
27859         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27860         upon out-of-memory.
27861         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27862         (gl_sublist_list_implementation): Update.
27863         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27864         upon out-of-memory.
27865         * modules/sublist (Depends-on): Remove xalloc.
27866
27867         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27868         * tests/test-carray_list.c: Likewise.
27869         * tests/test-linked_list.c: Likewise.
27870         * tests/test-linkedhash_list.c: Likewise.
27871         * tests/test-avltree_list.c: Likewise.
27872         * tests/test-rbtree_list.c: Likewise.
27873         * tests/test-avltreehash_list.c: Likewise.
27874         * tests/test-rbtreehash_list.c: Likewise.
27875         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27876         * modules/carray-list-tests (Makefile.am): Likewise.
27877         * modules/linked-list-tests (Makefile.am): Likewise.
27878         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27879         * modules/avltree-list-tests (Makefile.am): Likewise.
27880         * modules/rbtree-list-tests (Makefile.am): Likewise.
27881         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27882         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27883
27884         * NEWS: Mention the changes.
27885
27886         * lib/clean-temp.c: Include gl_xlist.h.
27887         * modules/clean-temp (Depends-on): Add xlist.
27888
27889         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27890         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27891
27892         * tests/test-array_oset.c: Include gl_xlist.h.
27893         * modules/array-oset-tests (Depends-on): Add xlist.
27894
27895         Reported by José E. Marchesi <jemarch@gnu.org>.
27896
27897 2009-12-13  Bruno Haible  <bruno@clisp.org>
27898
27899         Move the malloc checking from module 'oset' to new module 'xoset'.
27900         * modules/xoset: New file.
27901         * lib/gl_xoset.h: New file.
27902         * lib/gl_xoset.c: New file.
27903         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27904         declarations.
27905         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27906         (struct gl_oset_implementation): Rename and change methods accordingly.
27907         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27908         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27909         'int'. Mark as __warn_unused_result__.
27910         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27911         gl_oset_create_empty.
27912         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27913         'int'.
27914         * lib/gl_array_oset.c: Don't include xalloc.h.
27915         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27916         malloc, not xmalloc.
27917         (grow): Change return type to 'int'. Don't call xalloc_die.
27918         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27919         to 'int'.
27920         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27921         'int'.
27922         (gl_array_oset_implementation): Update.
27923         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27924         gl_tree_create_empty.
27925         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27926         'int'.
27927         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27928         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27929         xmalloc.
27930         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27931         not xmalloc.
27932         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27933         xmalloc.
27934         (gl_avltree_oset_implementation): Update.
27935         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27936         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27937         xmalloc.
27938         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27939         not xmalloc.
27940         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27941         xmalloc.
27942         (gl_rbtree_oset_implementation): Update.
27943         * modules/array-oset (Depends-on): Remove xalloc.
27944         * modules/avltree-oset (Depends-on): Likewise.
27945         * modules/rbtree-oset (Depends-on): Likewise.
27946         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27947         * tests/test-avltree_oset.c: Likewise.
27948         * tests/test-rbtree_oset.c: Likewise.
27949         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27950         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27951         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27952         * NEWS: Mention the change.
27953
27954 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27955
27956         maint.mk: allow a project to override release-prep commands
27957         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27958         commands into a new rule.
27959         (release-prep): New rule.
27960         (release-prep-hook): New overridable variable.
27961
27962 2009-12-13  Bruno Haible  <bruno@clisp.org>
27963
27964         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27965
27966 2009-12-13  Jim Meyering  <meyering@redhat.com>
27967
27968         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27969         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27970
27971 2009-12-12  Bruno Haible  <bruno@clisp.org>
27972
27973         duplocale: Tweak.
27974         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27975
27976 2009-12-12  Karl Berry  <karl@gnu.org>
27977
27978         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27979
27980 2009-12-12  Bruno Haible  <bruno@clisp.org>
27981
27982         * m4/po.m4: Undo incorrect untabification.
27983
27984 2009-12-12  Bruno Haible  <bruno@clisp.org>
27985
27986         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27987         * modules/c-strtod (Depends-on): Add locale.
27988         * modules/c-strtold (Depends-on): Likewise.
27989
27990 2009-12-12  Bruno Haible  <bruno@clisp.org>
27991
27992         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27993
27994 2009-12-11  Eric Blake  <ebb9@byu.net>
27995
27996         setenv: relax requirement in light of POSIX ruling
27997         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27998         not NULL.
27999         * tests/test-setenv.c (main): Relax test.
28000         * tests/test-unsetenv.c (main): Likewise.
28001         * doc/posix-functions/setenv.texi (setenv): Document this.
28002         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28003
28004 2009-12-11  Bruno Haible  <bruno@clisp.org>
28005
28006         New module 'fd-safer-flag'.
28007         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28008         * lib/dup-safer.c (dup_safer_flag): Remove function.
28009         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28010         * lib/fd-safer.c (fd_safer_flag): Remove function.
28011         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28012         * modules/cloexec (configure.ac): Drop indicator macro.
28013         * modules/fd-safer-flag: New file.
28014         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28015         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28016         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28017
28018 2009-12-11  Bruno Haible  <bruno@clisp.org>
28019
28020         Tests for module 'nl_langinfo'.
28021         * modules/nl_langinfo-tests: New file.
28022         * tests/test-nl_langinfo.sh: New file.
28023         * tests/test-nl_langinfo.c: New file.
28024
28025         New module 'nl_langinfo'.
28026         * lib/nl_langinfo.c: New file.
28027         * m4/nl_langinfo.m4: New file.
28028         * modules/nl_langinfo: New file.
28029         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28030
28031 2009-12-11  Bruno Haible  <bruno@clisp.org>
28032
28033         Tests for module 'langinfo'.
28034         * modules/langinfo-tests: New file.
28035         * tests/test-langinfo.c: New file.
28036
28037         New module 'langinfo'.
28038         * lib/langinfo.in.h: New file.
28039         * m4/langinfo_h.m4: New file.
28040         * modules/langinfo: New file.
28041         * doc/posix-headers/langinfo.texi: Mention the new module.
28042
28043 2009-12-11  Bruno Haible  <bruno@clisp.org>
28044
28045         * lib/config.charset: Untabify.
28046
28047 2009-12-11  Bruno Haible  <bruno@clisp.org>
28048
28049         * modules/unistd-safer (configure.ac): Drop indicator macro.
28050
28051 2009-12-11  Bruno Haible  <bruno@clisp.org>
28052
28053         Move pipe2-safer code to its own file.
28054         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28055         * lib/pipe-safer.c (pipe2_safer): Remove function.
28056         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28057         (Makefile.am): Add it to lib_SOURCES.
28058
28059 2009-12-10  Bruno Haible  <bruno@clisp.org>
28060
28061         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28062
28063 2009-12-10  Bruno Haible  <bruno@clisp.org>
28064
28065         Declare which arguments expect non-NULL values, for GCC and clang.
28066         * build-aux/arg-nonnull.h: New file.
28067         * modules/arg-nonnull: New file.
28068         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28069         (inet_ntop, inet_pton): Use it.
28070         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28071         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28072         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28073         (open, openat): Use it.
28074         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28075         (fnmatch): Use it.
28076         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28077         (getopt, getopt_long, getopt_long_only): Use it.
28078         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28079         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28080         Use it.
28081         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28082         (iconv_open): Use it.
28083         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28084         (strtoimax, strtoumax): Use it.
28085         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28086         (duplocale): Use it.
28087         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28088         (frexp, frexpl): Use it.
28089         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28090         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28091         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28092         (tsearch, tfind, tdelete, twalk): Use it.
28093         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28094         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28095         sigpending): Use it.
28096         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28097         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28098         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28099         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28100         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28101         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28102         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28103         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28104         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28105         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28106         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28107         Use it.
28108         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28109         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28110         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28111         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28112         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28113         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28114         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28115         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28116         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28117         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28118         strtoull, unsetenv): Use it.
28119         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28120         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28121         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28122         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28123         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28124         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28125         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28126         (strcasecmp, strncasecmp): Use it.
28127         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28128         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28129         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28130         rpl_setsockopt): Use it.
28131         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28132         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28133         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28134         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28135         (gettimeofday): Use it.
28136         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28137         (times): Use it.
28138         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28139         (uname): Use it.
28140         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28141         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28142         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28143         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28144         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28145         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28146         unlinkat, write): Use it.
28147         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28148         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28149         * lib/argv-iter.h: Include arg-nonnull.h.
28150         (_ATTRIBUTE_NONNULL_): Remove macro.
28151         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28152         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28153         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28154         optimization.
28155         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28156         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28157         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28158         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28159         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28160         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28161         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28162         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28163         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28164         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28165         * modules/dirent (Depends-on): Add arg-nonnull.
28166         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28167         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28168         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28169         * modules/fnmatch (Depends-on): Add arg-nonnull.
28170         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28171         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28172         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28173         * modules/glob (Depends-on): Add arg-nonnull.
28174         (Makefile.am): Insert arg-nonnull.h into glob.h.
28175         * modules/iconv_open (Depends-on): Add arg-nonnull.
28176         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28177         * modules/inttypes (Depends-on): Add arg-nonnull.
28178         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28179         * modules/locale (Depends-on): Add arg-nonnull.
28180         (Makefile.am): Insert arg-nonnull.h into locale.h.
28181         * modules/math (Depends-on): Add arg-nonnull.
28182         (Makefile.am): Insert arg-nonnull.h into math.h.
28183         * modules/netdb (Depends-on): Add arg-nonnull.
28184         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28185         * modules/search (Depends-on): Add arg-nonnull.
28186         (Makefile.am): Insert arg-nonnull.h into search.h.
28187         * modules/signal (Depends-on): Add arg-nonnull.
28188         (Makefile.am): Insert arg-nonnull.h into signal.h.
28189         * modules/spawn (Depends-on): Add arg-nonnull.
28190         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28191         * modules/stdio (Depends-on): Add arg-nonnull.
28192         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28193         * modules/stdlib (Depends-on): Add arg-nonnull.
28194         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28195         * modules/string (Depends-on): Add arg-nonnull.
28196         (Makefile.am): Insert arg-nonnull.h into string.h.
28197         * modules/strings (Depends-on): Add arg-nonnull.
28198         (Makefile.am): Insert arg-nonnull.h into strings.h.
28199         * modules/sys_socket (Depends-on): Add arg-nonnull.
28200         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28201         * modules/sys_stat (Depends-on): Add arg-nonnull.
28202         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28203         * modules/sys_time (Depends-on): Add arg-nonnull.
28204         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28205         * modules/sys_times (Depends-on): Add arg-nonnull.
28206         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28207         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28208         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28209         * modules/time (Depends-on): Add arg-nonnull.
28210         (Makefile.am): Insert arg-nonnull.h into time.h.
28211         * modules/unistd (Depends-on): Add arg-nonnull.
28212         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28213         * modules/wchar (Depends-on): Add arg-nonnull.
28214         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28215         * modules/argv-iter (Depends-on): Add arg-nonnull.
28216         * tests/test-canonicalize.c (null_ptr): New function.
28217         (main): Use it.
28218         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28219         (main): Use it.
28220         * tests/test-memmem.c (null_ptr): New function.
28221         (main): Use it.
28222         Reported by Jim Meyering.
28223
28224 2009-12-10  Bruno Haible  <bruno@clisp.org>
28225
28226         Use spaces for indentation, not tabs.
28227         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28228         * m4/*.m4: Untabify.
28229         * build-aux/*.h: Untabify.
28230         * tests/**/*.[hc]: Untabify.
28231         * README: New section "Indent with spaces, not TABs", based on
28232         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28233         * NEWS: Mention the change.
28234
28235 2009-12-10  Bruno Haible  <bruno@clisp.org>
28236
28237         pty test: Fix link error.
28238         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28239         test_pty_LDADD.
28240
28241 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28242
28243         * modules/pty: New file.
28244         * modules/pty-tests: New file.
28245         * m4/pty.m4: New file.
28246         * tests/test-pty.c: New file.
28247         * doc/glibc-headers/pty.texi: Modified.
28248         * doc/glibc-functions/forkpty.texi: Modified.
28249         * doc/glibc-functions/openpty.texi: Modified.
28250
28251 2009-12-10  Bruno Haible  <bruno@clisp.org>
28252
28253         Avoid syntax error in C++ mode.
28254         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28255
28256 2009-12-10  Bruno Haible  <bruno@clisp.org>
28257
28258         Use sed with option -e.
28259         * gnulib-tool (func_version, func_emit_copyright_notice,
28260         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28261         option -e to sed.
28262         * modules/link-warning (Makefile.am): Likewise.
28263
28264 2009-12-10  Jim Meyering  <meyering@redhat.com>
28265
28266         mgetgroups: do not write bytes beyond end of malloc'd buffer
28267         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28268         username, we call getgroups with a one-element-shorter buffer,
28269         but still told it the length was original, max_n_groups.
28270
28271 2009-12-09  Eric Blake  <ebb9@byu.net>
28272
28273         cloexec: relax license
28274         * modules/cloexec (Maintainer): Add myself.
28275         (License): Use LGPL, not GPL.
28276
28277         link-warning: optimize generation
28278         * modules/link-warning (Makefile.am): Reduce process usage.
28279
28280 2009-12-09  Bruno Haible  <bruno@clisp.org>
28281
28282         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28283         workaround was added on 2009-11-17.
28284
28285 2009-12-09  Jim Meyering  <meyering@redhat.com>
28286             Bruno Haible  <bruno@clisp.org>
28287
28288         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28289         * modules/link-warning (Makefile.am): Make the comment-removing sed
28290         command more robust in the face of bootstrap-prepended comment lines.
28291
28292 2009-12-09  Bruno Haible  <bruno@clisp.org>
28293
28294         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28295         most one group.
28296
28297 2009-12-09  Simon Josefsson <simon@josefsson.org>
28298             Bruno Haible  <bruno@clisp.org>
28299
28300         * build-aux/link-warning.h: Add copyright notice.
28301         * modules/link-warning (Makefile.am): Generate link-warning.h from
28302         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28303         * NEWS: Mention change in link-warning module.
28304         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28305         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28306         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28307         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28308         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28309         * modules/math (Makefile.am): Add dependency to math.h.
28310         * modules/search (Makefile.am): Add dependency to search.h.
28311         * modules/signal (Makefile.am): Add dependency to signal.h.
28312         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28313         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28314         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28315         * modules/string (Makefile.am): Add dependency to string.h.
28316         * modules/strings (Makefile.am): Add dependency to strings.h.
28317         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28318         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28319         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28320         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28321         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28322         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28323         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28324         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28325         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28326
28327 2009-12-09  Bruno Haible  <bruno@clisp.org>
28328
28329         fchdir: Optimize away rpl_fstat when possible.
28330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28331         REPLACE_OPEN_DIRECTORY.
28332         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28333
28334 2009-12-09  Bruno Haible  <bruno@clisp.org>
28335
28336         * lib/fchdir.c: Update comment.
28337
28338 2009-12-09  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28341
28342 2009-12-08  Eric Blake  <ebb9@byu.net>
28343
28344         fchdir: avoid memory leak on re-registration.
28345         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28346
28347 2009-12-08  Jim Meyering  <meyering@redhat.com>
28348
28349         init.sh: avoid Solaris 10 /bin/sh portability problem
28350         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28351         sourced script:
28352           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28353           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28354           bar
28355         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28356         and two tests used that idiom.
28357         * tests/init.sh: Update suggested usage comments.
28358         (path_prepend_): New function, to be used in place
28359         of the --src-path=DIR option.
28360         (setup_): Move PATH-prepending code into path_prepend_.
28361         * tests/test-pread.sh: Adapt to new usage.
28362         * tests/test-xalloc-die.sh: Likewise.
28363
28364 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28365
28366         * doc/gnulib.texi (Glibc pty.h): Add.
28367         * doc/glibc-functions/forkpty.texi: Add.
28368         * doc/glibc-functions/openpty.texi: Add.
28369         Suggested by Bruno Haible.
28370
28371 2009-12-08  Eric Blake  <ebb9@byu.net>
28372
28373         fchdir: fix logic bugs
28374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28375         * tests/test-fchdir.c (main): Enhance test.
28376         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28377         is in use.
28378
28379         dup2: fix logic bugs
28380         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28381         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28382         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28383         exists.
28384         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28385
28386 2009-12-07  Eric Blake  <ebb9@byu.net>
28387
28388         unlink: fix m4 detection
28389         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28390
28391         unistd-safer: add unit test
28392         * modules/unistd-safer-tests: New file.
28393         * tests/test-dup-safer.c: Likewise.
28394         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28395         * tests/test-dup2.c (setmode): Likewise.
28396         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28397
28398         cloexec: preserve text vs. binary across dup_cloexec
28399         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28400         mode.
28401         * modules/dup2-tests (Depends-on): Add binary-io.
28402         * modules/cloexec-tests (Depends-on): Likewise.
28403         * tests/test-dup2.c (setmode, is_mode): New helpers.
28404         (main): Add tests that translation mode is preserved.
28405         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28406         Reported by Bruno Haible.
28407
28408         mgetgroups: reduce duplicate listings
28409         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28410         resulting array.
28411         * tests/test-chown.h (test_chown): Simplify client.
28412         * tests/test-lchown.h (test_lchown): Likewise.
28413
28414 2009-12-06  Bruno Haible  <bruno@clisp.org>
28415
28416         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28417         value.
28418
28419 2009-12-06  Bruno Haible  <bruno@clisp.org>
28420
28421         * lib/progname.c: Include stdio.h, stdlib.h.
28422         (set_program_name): Reject a NULL argument.
28423
28424 2009-12-05  Eric Blake  <ebb9@byu.net>
28425
28426         pipe2-safer: new module
28427         * modules/pipe2-safer: New file.
28428         * lib/unistd-safer.h (pipe2_safer): New prototype.
28429         * lib/unistd--.h (pipe2): New wrapper.
28430         * lib/pipe-safer.c (pipe2_safer): New function.
28431         * modules/pipe (Depends-on): Add pipe2-safer.
28432         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28433
28434         stdlib-safer: preserve cloexec flag for mkostemp[s]
28435         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28436         fd_safer_flag.
28437
28438         unistd-safer: allow preservation of cloexec status via flag
28439         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28440         prototypes.
28441         * lib/dup-safer.c (dup_safer_flag): New function.
28442         * lib/fd-safer.c (fd_safer_flag): Likewise.
28443         * modules/cloexec (configure.ac): Set witness.
28444
28445         test-dup2: enhance test
28446         * modules/dup2-tests (Depends-on): Add cloexec.
28447         * tests/test-dup2.c (main): Enhance test.
28448
28449         cloexec: add dup_cloexec
28450         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28451         header and comments.
28452         * lib/cloexec.c (set_cloexec_flag): Add comments.
28453         (dup_cloexec): New function, with mingw implementation borrowed
28454         from...
28455         * lib/w32spawn.h (dup_noinherit): ...here.
28456         * modules/execute (Depends-on): Add cloexec.
28457         * modules/pipe (Depends-on): Likewise.
28458         * modules/cloexec (Depends-on): Add dup2.
28459         * modules/cloexec-tests (Files): New file.
28460         * tests/test-cloexec.c: Likewise.
28461
28462         test-xalloc-die: fix test for mingw
28463         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28464         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28465         directory and .exe suffix off argv[0] output.
28466
28467         test-fseeko: fix test for mingw
28468         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28469         than undefining fseek, so test will pass on mingw.
28470
28471 2009-12-05  Bruno Haible  <bruno@clisp.org>
28472
28473         * lib/progname.h (set_program_name): Clarify specification.
28474         * lib/progname.c (set_program_name): Likewise.
28475         Reported by Jim Meyering.
28476
28477 2009-12-05  Jim Meyering  <meyering@redhat.com>
28478
28479         maint.mk: backslash-escape parens in default regexp
28480         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28481         backslash-escape the literal parentheses.
28482
28483         maint.mk: news-date-check: use grep -E
28484         * top/maint.mk (today): Define a Make variable, not a...
28485         (news-date-check): ...shell variable.
28486         (news-date-regexp): Use the Make variable.
28487         Use grep's -E option.  Change the failing diagnostic to mention
28488         the variable, $(news-date-regexp).
28489
28490 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28491
28492         maintainer-makefile: allow customization of NEWS entry format
28493         * top/maint.mk (news-date-regexp): New overridable variable.
28494         (news-date-check): Use it.
28495
28496 2009-12-04  Eric Blake  <ebb9@byu.net>
28497
28498         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28499         * lib/mgetgroups.h (xgetgroups): New prototype.
28500         * lib/mgetgroups.c (xgetgroups): New wrapper.
28501         (mgetgroups): Handle ENOSYS.
28502         * modules/mgetgroups (Depends-on): Add realloc.
28503         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28504
28505         mgetgroups: avoid argument promotion issues with -1
28506         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28507         for invalid gid_t.
28508         * tests/test-chown.h (getegid, test_chown): Likewise.
28509         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28510
28511 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28512
28513         exclude: Fix header file problems.
28514         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28515
28516 2009-12-01  Jim Meyering  <meyering@redhat.com>
28517
28518         fts: fts_open: do not let an empty string cause immediate failure
28519         This is required in support of GNU rm, for which the command
28520         "rm A '' B" must process and remove both A and B, in spite of
28521         the empty string argument.
28522         * lib/fts.c (fts_open): Do not let the presence of an empty string
28523         cause fts_open to fail immediately.  Most fts-using tools must be
28524         able to process all arguments, in order, and can be expected to
28525         diagnose such arguments themselves.
28526
28527 2009-11-30  Eric Blake  <ebb9@byu.net>
28528
28529         utimens: fix compilation error
28530         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28531         Declare variable at right scope.
28532
28533 2009-11-29  Jim Meyering  <meyering@redhat.com>
28534
28535         bootstrap: handle perl-5.11's changed --version output
28536         * build-aux/bootstrap (get_version): Handle perl separately,
28537         since perl-5.11's --version output is different.
28538
28539 2009-11-28  Jim Meyering  <meyering@redhat.com>
28540
28541         userspec: depend on the inttostr module, too
28542         * modules/userspec (Depends-on): Add inttostr.
28543
28544         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28545         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28546         number of MAXUID when it evaluates to (uid_t) -1.
28547         Likewise for group ID.  Reported by Matt McCutchen in
28548         <http://savannah.gnu.org/bugs/?28113>
28549
28550         userspec: reformat to use spaces, not TABs
28551         * lib/userspec.c: Expand TABs to spaces.
28552         Add Emacs' "indent-tabs-mode: nil" hint.
28553
28554 2009-11-27  Eric Blake  <ebb9@byu.net>
28555
28556         getopt-gnu: flush out another BSD bug
28557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28558         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28559         flush out BSD bug.
28560         * tests/test-getopt.h (test_getopt): End lists with NULL.
28561         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28562         (test_getopt_long_posix): Enhance test.
28563         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28564         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28565         getopt-gnu.
28566         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28567         Likewise.
28568
28569 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28570
28571         * modules/idpriv-droptemp-tests (Notice): Fix text.
28572
28573 2009-11-27  Jim Meyering  <meyering@redhat.com>
28574
28575         test-xalloc-die: avoid spurious failure due to libtool argv difference
28576         In a libtool-enabled project, this test would fail due to a difference
28577         in the emitted program name, e.g.,
28578         -test-xalloc-die: memory exhausted
28579         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28580         Use program to avoid that.
28581         * modules/xalloc-die-tests (Depends-on): Add progname.
28582         * tests/test-xalloc-die.c: Include progname.h".
28583         (program_name): Remove decl.
28584         (main): Call set_program_name.
28585         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28586
28587 2009-11-26  Richard Jones  <rjones@redhat.com>
28588
28589         w32sock: leave win32 error in place.
28590         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28591
28592 2009-11-26  Eric Blake  <ebb9@byu.net>
28593
28594         init.sh: suggest to use skip_ and fail_ functions in comments
28595         * tests/init.sh: Add a sentence.
28596
28597 2009-11-25  Bruno Haible  <bruno@clisp.org>
28598
28599         init.sh: add documentation in comments
28600         * tests/init.sh: Add some developer and user documentation.
28601
28602 2009-11-26  Jim Meyering  <meyering@redhat.com>
28603
28604         init.sh: accommodate even those who specify bogus srcdir manually
28605         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28606         configure-time tests to be sanitized, so that there is no need to
28607         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28608         (with no double quotes) suffices.  However, since tests may be
28609         invoked manually, and since you may explicitly set srcdir to the
28610         name of a directory containing spaces, do quote its uses here.
28611         * tests/test-pread.sh: Likewise.
28612         Suggested by Bruno Haible.
28613
28614         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28615         * tests/test-pread.sh: Write no data into the pipe, because
28616         test-pread actually reads none.  This avoids a diagnostic,
28617         "bash: echo: write error: Broken pipe", that arises in the unusual
28618         event something is ignoring SIGPIPE, and might be interpreted
28619         as some sort of failure.  Reported by Bruno Haible.
28620
28621 2009-11-25  Jim Meyering  <meyering@redhat.com>
28622
28623         test-pread: cover failure with ESPIPE and EINVAL
28624         * tests/test-pread.c (main): Test for failure, too.
28625         * tests/test-pread.sh: Invoke with stdin on a pipe.
28626         Suggested by Eric Blake.
28627
28628         pread: improvement and fix
28629         * modules/pread (Depends-on): Depend on lseek, for portability to
28630         e.g., mingw.  Suggested by Eric Blake.
28631         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28632
28633         unistd.in.h: correct declaration of pread
28634         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28635         Reported by Richard W.M. Jones.
28636
28637         test-pread.sh: distribute the test script
28638         * modules/pread-tests (Files): Include test-pread.sh.
28639
28640         test-pread.sh: clean up
28641         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28642         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28643         That is unnecessary, since it's always ".".
28644         Suggestion from Eric Blake.
28645
28646         test-pread.sh: make executable
28647         * tests/test-pread.sh: Set executable bit.
28648         Reported by Eric Blake.
28649
28650         correct typo in test-pread.sh
28651         * tests/test-pread.sh: Add #! line.
28652
28653         test pread
28654         * tests/test-pread.c: New file.
28655         * tests/test-pread.sh: Likewise.
28656         * modules/pread-tests: Likewise.
28657
28658         pread: new module
28659         * modules/pread: New file.
28660         * lib/unistd.in.h (pread): Define/declare.
28661         * lib/pread.c (pread): New file.
28662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28663         * modules/unistd (Makefile.am): Substitute witnesses.
28664         * doc/posix-functions/pread.texi (pread): Update.
28665         * MODULES.html.sh: Add pread.
28666
28667 2009-11-25  Jim Meyering  <meyering@redhat.com>
28668
28669         tests/init.sh: new file to be used via most *.sh tests
28670         * tests/init.sh: New file.
28671
28672 2009-11-25  Eric Blake  <ebb9@byu.net>
28673
28674         utimens: work around older Linux failure with symlinks
28675         * lib/utimens.c (lutimensat_works_really): New variable.
28676         (fdutimens, lutimens): Use it to manage kernels that support
28677         nanosecond times on files, but not on symlinks.
28678         Reported by OndÅ™ej Vašík.
28679
28680         utimes: fix configure grammar
28681         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28682
28683 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28684
28685         regex: Fix fastmap for multibyte character ranges.
28686         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28687         characters when a multibyte character range is included.
28688
28689 2009-11-22  Andy Wingo  <wingo@pobox.com>
28690
28691         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28692         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28693
28694 2009-11-24  Bruno Haible  <bruno@clisp.org>
28695
28696         doc: Most *_l functions exist in MacOS X 10.5.
28697         * doc/posix-functions/duplocale.texi: Update platforms list.
28698         * doc/posix-functions/freelocale.texi: Likewise.
28699         * doc/posix-functions/newlocale.texi: Likewise.
28700         * doc/posix-functions/uselocale.texi: Likewise.
28701         * doc/posix-functions/isalnum_l.texi: Likewise.
28702         * doc/posix-functions/isalpha_l.texi: Likewise.
28703         * doc/posix-functions/isblank_l.texi: Likewise.
28704         * doc/posix-functions/iscntrl_l.texi: Likewise.
28705         * doc/posix-functions/isdigit_l.texi: Likewise.
28706         * doc/posix-functions/isgraph_l.texi: Likewise.
28707         * doc/posix-functions/islower_l.texi: Likewise.
28708         * doc/posix-functions/isprint_l.texi: Likewise.
28709         * doc/posix-functions/ispunct_l.texi: Likewise.
28710         * doc/posix-functions/isspace_l.texi: Likewise.
28711         * doc/posix-functions/isupper_l.texi: Likewise.
28712         * doc/posix-functions/iswalnum_l.texi: Likewise.
28713         * doc/posix-functions/iswalpha_l.texi: Likewise.
28714         * doc/posix-functions/iswblank_l.texi: Likewise.
28715         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28716         * doc/posix-functions/iswctype_l.texi: Likewise.
28717         * doc/posix-functions/iswdigit_l.texi: Likewise.
28718         * doc/posix-functions/iswgraph_l.texi: Likewise.
28719         * doc/posix-functions/iswlower_l.texi: Likewise.
28720         * doc/posix-functions/iswprint_l.texi: Likewise.
28721         * doc/posix-functions/iswpunct_l.texi: Likewise.
28722         * doc/posix-functions/iswspace_l.texi: Likewise.
28723         * doc/posix-functions/iswupper_l.texi: Likewise.
28724         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28725         * doc/posix-functions/isxdigit_l.texi: Likewise.
28726         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28727         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28728         * doc/posix-functions/strcoll_l.texi: Likewise.
28729         * doc/posix-functions/strfmon_l.texi: Likewise.
28730         * doc/posix-functions/strftime_l.texi: Likewise.
28731         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28732         * doc/posix-functions/strxfrm_l.texi: Likewise.
28733         * doc/posix-functions/tolower_l.texi: Likewise.
28734         * doc/posix-functions/toupper_l.texi: Likewise.
28735         * doc/posix-functions/towctrans_l.texi: Likewise.
28736         * doc/posix-functions/towlower_l.texi: Likewise.
28737         * doc/posix-functions/towupper_l.texi: Likewise.
28738         * doc/posix-functions/wcscoll_l.texi: Likewise.
28739         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28740         * doc/posix-functions/wctrans_l.texi: Likewise.
28741         * doc/posix-functions/wctype_l.texi: Likewise.
28742         * doc/glibc-functions/strptime_l.texi: Likewise.
28743         * doc/glibc-functions/strtod_l.texi: Likewise.
28744         * doc/glibc-functions/strtof_l.texi: Likewise.
28745         * doc/glibc-functions/strtol_l.texi: Likewise.
28746         * doc/glibc-functions/strtold_l.texi: Likewise.
28747         * doc/glibc-functions/strtoll_l.texi: Likewise.
28748         * doc/glibc-functions/strtoul_l.texi: Likewise.
28749         * doc/glibc-functions/strtoull_l.texi: Likewise.
28750         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28751         * doc/glibc-functions/wcstod_l.texi: Likewise.
28752         * doc/glibc-functions/wcstof_l.texi: Likewise.
28753         * doc/glibc-functions/wcstol_l.texi: Likewise.
28754         * doc/glibc-functions/wcstold_l.texi: Likewise.
28755         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28756         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28757         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28758
28759 2009-11-24  Bruno Haible  <bruno@clisp.org>
28760
28761         duplocale: Fix logic bug.
28762         * lib/duplocale.c: Don't include <langinfo.h>.
28763         (_NL_LOCALE_NAME): Remove macro.
28764         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28765         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28766
28767 2009-11-23  Jim Meyering  <meyering@redhat.com>
28768
28769         test-update-copyright: don't hard-code /usr/bin/perl
28770         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28771         perl to print the current year.  Gilles Espinasse reported that
28772         the replaced use of perl was hard-coded as /usr/bin/perl.
28773
28774 2009-11-23  Bruno Haible  <bruno@clisp.org>
28775
28776         duplocale: Add support for glibc 2.3.x.
28777         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28778
28779 2009-11-22  Bruno Haible  <bruno@clisp.org>
28780
28781         vasnprintf: Tiny optimization.
28782         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28783         MacOS X.
28784
28785 2009-11-22  Bruno Haible  <bruno@clisp.org>
28786
28787         Tests for module 'duplocale'.
28788         * modules/duplocale-tests: New file.
28789         * tests/test-duplocale.c: New file.
28790
28791         New module 'duplocale'.
28792         * m4/duplocale.m4: New file.
28793         * lib/locale.in.h (duplocale): New declaration.
28794         * lib/duplocale.c: New file.
28795         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28796         gl_LOCALE_H_DEFAULTS): New macros.
28797         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28798         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28799         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28800         REPLACE_DUPLOCALE.
28801         * modules/duplocale: New file.
28802         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28803
28804 2009-11-22  Bruno Haible  <bruno@clisp.org>
28805
28806         * modules/locale-tests (configure.ac): Test for newlocale function.
28807         * tests/test-locale.c: When the system has extended locale functions,
28808         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28809
28810         locale: Make locale_t available when possible.
28811         * lib/locale.in.h: Include <xlocale.h> when it exists.
28812         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28813         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28814         * modules/locale (Depends-on): Add extensions.
28815         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28816         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28817
28818 2009-11-22  Bruno Haible  <bruno@clisp.org>
28819
28820         Add comments.
28821         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28822         invocation.
28823         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28824         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28825         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28826
28827 2009-11-22  Bruno Haible  <bruno@clisp.org>
28828
28829         error: account for the possibility of freopen (stdout).
28830         * lib/error.c: Include <unistd.h>.
28831         (flush_stdout): New function, extracted from error and error_at_line.
28832         Determine stdout's fd dynamically.
28833         (error, error_at_line): Invoke flush_stdout.
28834         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28835         * modules/error (Depends-on): Add unistd.
28836
28837 2009-11-22  Bruno Haible  <bruno@clisp.org>
28838
28839         diffseq: Add comment.
28840         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28841
28842 2009-11-22  Jim Meyering  <meyering@redhat.com>
28843
28844         c-stack: avoid defining an unused static function
28845         * lib/c-stack.c (find_stack_direction): Do not define this function
28846         when it will not be used.
28847
28848         diffseq: avoid spurious gcc warnings
28849         * lib/diffseq.h (IF_LINT2): Define.
28850         (compareseq): Use it to initialize two members of "part".
28851         This avoids two used-uninitialized warnings.
28852
28853 2009-11-21  Jim Meyering  <meyering@redhat.com>
28854
28855         c-stack: avoid "ignoring return value of `write'" warning
28856         * lib/c-stack.c: Include "ignore-value.h".
28857         (die): Explicitly ignore each write return value.
28858         * modules/c-stack (Depends-on): Add ignore-value.
28859
28860 2009-11-21  Bruno Haible  <bruno@clisp.org>
28861
28862         diffseq: reduce scope of variable 'best'.
28863         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28864         variable, earlier used for two different purposes.
28865
28866 2009-11-21  Jim Meyering  <meyering@redhat.com>
28867
28868         diffseq: remove useless assignment to "best"
28869         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28870         assignment.  At that point "best" is already guaranteed to be zero.
28871
28872 2009-11-20  Eric Blake  <ebb9@byu.net>
28873
28874         build: mention ftp redirector in release announcements
28875         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28876         values that used to come from cfg.mk; mention FTP redirect URL.
28877         * build-aux/announce-gen: Mention the mirror list.
28878         Suggested by Karl Berry.
28879
28880         nanosleep: improve port to mingw
28881         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28883         LIB_NANOSLEEP, but only when needed.
28884         * modules/select (Link): Document LIBSOCKET.
28885         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28886         enough.
28887
28888         nanosleep: work around cygwin bug
28889         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28890         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28891         bug.
28892         (getnow): Delete, not needed.
28893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28894         LIB_CLOCK_GETTIME.
28895         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28896         clock-time, gettime.
28897         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28898         bug.
28899         * modules/nanosleep-tests: New test.
28900         * tests/test-nanosleep.c: New file.
28901
28902         sleep: work around cygwin bug
28903         * lib/sleep.c (rpl_sleep): Work around the bug.
28904         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28905         (gl_PREREQ_SLEEP): Delete unused macro.
28906         * modules/sleep (Depends-on): Add verify.
28907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28908         * modules/unistd (Makefile.am): Substitute witness.
28909         * lib/unistd.in.h (sleep): Update prototype.
28910         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28911         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28912         * modules/sleep-tests (Depends-on): Check for alarm.
28913
28914 2009-11-20  Jim Meyering  <meyering@redhat.com>
28915
28916         maint.mk: improve sc_prohibit_magic_number_exit
28917         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28918         so it does not match uses like System.exit(1).
28919         Add comments showing how to correct all offenders.
28920
28921 2009-11-19  Eric Blake  <ebb9@byu.net>
28922
28923         xalloc-die-tests: add missing library
28924         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28925
28926         test-xvasprintf: silence compiler warnings
28927         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28928         empty string from gcc.
28929
28930 2009-11-19  Jim Meyering  <meyering@redhat.com>
28931
28932         xfreopen: new module, from coreutils
28933         * modules/xfreopen: New module.
28934         * lib/xfreopen.c: New file.
28935         * lib/xfreopen.h: New file.
28936         * MODULES.html.sh (File stream based Input/Output"): Add it.
28937
28938 2009-11-19  Eric Blake  <ebb9@byu.net>
28939
28940         manywarnings: depend on warnings
28941         * modules/manywarnings (Depends-on): Add warnings.
28942
28943         build: avoid compiler warnings
28944         * lib/select.c (rpl_select): Delete unused variable.
28945         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28946
28947 2009-11-18  Eric Blake  <ebb9@byu.net>
28948
28949         tests: avoid false negative with --with-packager
28950         * tests/test-version-etc.sh: Discard packager information.
28951         * tests/test-argp-version-etc-1.sh: Likewise.
28952         Reported by Mike Frysinger.
28953
28954         utimens: fix regression on Solaris
28955         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28956         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28957         can only change fd timestamps via futimesat.  Instead, use an
28958         additional witness macro to avoid BSD bug.
28959         Reported by Jim Meyering.
28960
28961 2009-11-17  Eric Blake  <ebb9@byu.net>
28962
28963         usleep: use it to simplify tests
28964         * modules/stat-time-tests (Depends-on): Add usleep.
28965         (configure.ac): Drop usleep check.
28966         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28967         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28968         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28969         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28970         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28971         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28972         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28973         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28974         Likewise.
28975         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28976         * tests/test-lchown.h (nap): Likewise.
28977         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28978         * tests/test-stat-time.c (nap): Likewise.
28979         * tests/test-utimens-common.h (nap): Update comments.
28980
28981         usleep: new module
28982         * modules/usleep: New file.
28983         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28984         * lib/usleep.c (usleep): Likewise.
28985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28986         * modules/unistd (Makefile.am): Substitute witnesses.
28987         * lib/unistd.in.h (usleep): Add declaration.
28988         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28989         * MODULES.html.sh (Date and time): Likewise.
28990         * modules/usleep-tests (Depends-on): New test.
28991         * tests/test-usleep.c: New file.
28992
28993         chown: work around OpenBSD bug
28994         * lib/chown.c (rpl_chown): Work around the bug.
28995         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28996         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28997         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28998         * modules/chown (Depends-on): Add stdbool.
28999         * modules/lchown (Depends-on): Likewise.
29000         * doc/posix-functions/chown.texi (chown): Document the bug.
29001         * doc/posix-functions/lchown.texi (lchown): Likewise.
29002         * tests/test-lchown.h (test_chown): Relax test.
29003
29004         mkstemp: avoid conflict with C++ keyword template
29005         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29006         * lib/mkostemp.c (mkostemp): Likewise.
29007         * lib/mkostemps.c (mkostemps): Likewise.
29008         * lib/mkstemp.c (mkstemp): Likewise.
29009         * lib/mkstemps.c (mkstemps): Likewise.
29010
29011         xalloc-die-tests: optimize
29012         * tests/test-xalloc-die.sh: Reduce number of processes.
29013
29014 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29015
29016         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29017         patch from ludo@gnu.org (Ludovic Courtès).
29018
29019 2009-11-17  Jim Meyering  <meyering@redhat.com>
29020
29021         version-etc: use proper license string
29022         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29023         * modules/version-etc-fsf: Likewise.
29024
29025 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29026
29027         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29028         printed to stdout.  Deal with EOL differences.
29029
29030 2009-11-17  Eric Blake  <ebb9@byu.net>
29031
29032         unsetenv: work around Solaris bug
29033         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29034         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29035         Reported by Jim Meyering.
29036
29037         vasnprintf: avoid compiler warnings
29038         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29039         variables.
29040         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29041
29042 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29043
29044         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29045         settings since xalloc-die is no longer the self test,
29046         xalloc-die.sh is.
29047
29048 2009-11-17  Jim Meyering  <meyering@redhat.com>
29049
29050         test-xalloc-die.sh: make the code agree with the commit log
29051         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29052         at the end, just in case you happen to have a test-xalloc-die
29053         program in some other PATH directory.
29054
29055         test-xalloc-die.sh: fix a portability bug
29056         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29057         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29058         Otherwise, argv[0] (as often seen in diagnostics) would be too
29059         system-dependent, sometimes with, and sometimes without the leading "./".
29060
29061         version-etc-fsf: relax license to LGPLv3+
29062         * modules/version-etc-fsf (License): Relax license.
29063
29064 2009-11-16  Eric Blake  <ebb9@byu.net>
29065
29066         xalloc-die-tests: avoid printing null pointer
29067         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29068         shell script.
29069         * tests/test-xalloc-die.c (program_name): Declare.
29070         * tests/test-xalloc-die.sh (tmpfiles): New file.
29071
29072         setenv, unsetenv: work around various bugs
29073         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29074         (setenv) [HAVE_SETENV]: Work around bugs.
29075         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29076         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29077         for bugs.
29078         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29079         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29081         * modules/stdlib (Makefile.am): Update substitutions.
29082         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29083         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29084         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29085         * modules/setenv-tests: New test.
29086         * modules/unsetenv-tests: Likewise.
29087         * tests/test-setenv.c: New file.
29088         * tests/test-unsetenv.c: Likewise.
29089
29090 2009-11-16  Jim Meyering  <meyering@redhat.com>
29091
29092         version-etc: relax license to LGPLv3+
29093         * modules/version-etc (License): Relax license.
29094
29095         better AC_REQUIRE expanded-before-required-warning avoidance
29096         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29097         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29098         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29099         which is no longer needed.
29100
29101 2009-11-16  Eric Blake  <ebb9@byu.net>
29102
29103         test-freading: clean up temporary file
29104         * tests/test-freading.c (main): Remove file on success, and use
29105         ASSERT more liberally.
29106         Reported by Jim Meyering.
29107
29108 2009-11-16  Jim Meyering  <meyering@redhat.com>
29109
29110         avoid new AC_REQUIRE expanded-before-required warnings
29111         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29112         merely using it.
29113         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29114         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29115
29116 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29117
29118         * tests/test-xalloc-die.c: New file.
29119         * modules/xalloc-die-tests: New file.
29120         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29121         XFAIL_TESTS so it can be appended by modules.
29122
29123 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29124
29125         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29126         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29127
29128 2009-11-14  Eric Blake  <ebb9@byu.net>
29129
29130         fnmatch: avoid compiler warning
29131         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29132         to silence compiler warning about mismatch signedness in ?:.
29133         Reported by Robert Millan.
29134
29135         intprops: add double-inclusion guard
29136         * lib/intprops.h: Allow idempotent includes.
29137         Suggested by Bruce Korb.
29138
29139         openat: detect Solaris fchownat bug
29140         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29141         penalizing glibc chownat when only lchownat is broken.
29142         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29143         trailing slash bugs.
29144         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29145         * modules/openat-tests (Files): Include more files.
29146         (Depends-on): Add mgetgroups, sleep, stat-time.
29147         (configure.ac): Add additional checks.
29148         (Makefile.am): Build new test.
29149         * tests/test-fchownat.c: New file.
29150
29151         lchown: detect Solaris and FreeBSD bug
29152         * lib/lchown.c (rpl_lchown): Work around bug.
29153         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29155         * modules/unistd (Makefile.am): Populate it.
29156         * lib/unistd.in.h (lchown): Update declaration.
29157         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29158         * modules/lchown-tests: New file.
29159         * tests/test-lchown.h (test_lchown): Likewise.
29160         * tests/test-lchown.c (main): Likewise.
29161
29162         chown: detect Solaris and FreeBSD bug
29163         * lib/chown.c (rpl_chown): Work around bug.
29164         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29165         (gl_PREREQ_CHOWN): Delete.
29166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29167         * modules/unistd (Makefile.am): Populate it.
29168         * lib/unistd.in.h (chown): Update declaration.
29169         * lib/lchown.c (chown): Update client.
29170         * modules/lchown (Depends-on): Add lstat.
29171         * doc/posix-functions/chown.texi (chown): Document the bug.
29172         * doc/posix-functions/getgroups.texi (getgroups): Document
29173         getgroups pitfall.
29174         * modules/chown-tests: New file.
29175         * tests/test-chown.h (test_chown): Likewise.
29176         * tests/test-chown.c (main): Likewise.
29177
29178 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29179
29180         gnulib-tool: correctly detect absence of m4 directories
29181         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29182
29183 2009-11-14  Jim Meyering  <meyering@redhat.com>
29184
29185         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29186         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29187
29188 2009-11-14  John W. Eaton  <jwe@gnu.org>
29189
29190         strftime.h: wrap funtion declaration in extern "C" block
29191         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29192
29193 2009-11-13  Eric Blake  <ebb9@byu.net>
29194
29195         getgroups: avoid compiler warning
29196         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29197
29198         getgroups: work around FreeBSD bug
29199         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29200         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29201         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29202         * tests/test-getgroups.c (main): Fix buffer overrun.
29203
29204         getgroups: avoid compilation failure
29205         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29206         * modules/getgroups (Depends-on): Add stdint.
29207
29208 2009-11-13  Jim Meyering  <meyering@redhat.com>
29209
29210         test-getgroups: avoid compilation failure
29211         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29212
29213 2009-11-13  Eric Blake  <ebb9@byu.net>
29214
29215         mgetgroups: new module, taken from coreutils
29216         * modules/mgetgroups: New file.
29217         * lib/mgetgroups.h: Likewise.
29218         * lib/mgetgroups.c (mgetgroups): Likewise.
29219         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29220         * MODULES.html.sh (Users and groups): Mention it.
29221
29222         getgroups: don't expose GETGROUPS_T to user
29223         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29224         an element at a time if GETGROUPS_T is wrong size.
29225         * lib/getugroups.h (getugroups): Change signature.
29226         * lib/unistd.in.h (getgroups): Likewise.
29227         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29228         signature needs fixing.
29229         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29230         AC_TYPE_GETGROUPS.
29231         * modules/group-member (Depends-on): Add getgroups.
29232         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29233         (group_member): Rely on getgroups replacement.
29234         * lib/getugroups.c (getugroups): Use gid_t.
29235         * tests/test-getgroups.c (main): Likewise.
29236         * NEWS: Mention the signature change.
29237         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29238         problem with signature.
29239         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29240         GETGROUPS_T is still useful for setgroups.
29241
29242         getgroups, getugroups: provide stubs for mingw
29243         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29244         * lib/getugroups.c (getugroups): Likewise.
29245         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29246         function.  Modernize replacement scheme.
29247         (gl_PREREQ_GETGROUPS): Delete.
29248         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29249         * modules/getgroups (configure.ac): Declare witness.
29250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29251         * modules/unistd (Depends-on): Substitute witness.
29252         * lib/unistd.in.h (getgroups): Declare replacement.
29253
29254         getgroups: avoid calling exit
29255         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29256         drop xalloc.
29257         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29258         dependencies.
29259         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29260         exiting, in the rare case of malloc failure.
29261
29262         getgroups: fix logic error
29263         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29264         has more than 20 groups.
29265         * modules/getgroups-tests: New test.
29266         * tests/test-getgroups.c: New file.
29267
29268 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29269
29270         * tests/test-base64.c: Improve.
29271
29272 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29273
29274         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29275         Blake <ebb9@byu.net>.
29276
29277 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29278
29279         * tests/test-xvasprintf.c: Add %s%s related checks.
29280
29281 2009-11-12  Eric Blake  <ebb9@byu.net>
29282
29283         version-etc: match standards.texi style
29284         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29285         and use <> only for URLs.
29286
29287 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29288
29289         fts: do not fail on a submount during traversal
29290         * lib/fts.c (fts_build): Read the stat info again after opening
29291         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29292         Original report at http://bugzilla.redhat.com/501848.
29293
29294 2009-11-12  Jim Meyering  <meyering@redhat.com>
29295
29296         bootstrap: sync from coreutils
29297         * build-aux/bootstrap (bootstrap_epilogue): New function.
29298         Use git_modules_config in one more place.  This make bootstrap's
29299         --gnulib-srcdir option more useful for testing.
29300
29301         bootstrap: generalize autoheader check
29302         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29303         AC_CONFIG_HEADERS.
29304
29305 2009-11-11  Eric Blake  <ebb9@byu.net>
29306
29307         mkfifoat: use new modules for Solaris and BSD bugs
29308         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29309         * lib/mkfifoat.c (mknodat): Split...
29310         * lib/mknodat.c (mknodat): ...into new file.
29311         * modules/mkfifoat (Files): Ship new file.
29312         (Depends-on): Add mkfifo, mknod.
29313         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29314         (Depends-on): Add symlink.
29315         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29316         redundant with test_mkfifo.h.
29317         (do_mkfifoat, do_mknodat): New helpers.
29318
29319         mknod: new module
29320         * modules/mknod: New file.
29321         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29322         * lib/mknod.c (mknod): Likewise.
29323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29324         defaults.
29325         * modules/sys_stat (Makefile.am): Substitute them.
29326         * lib/sys_stat.in.h (mknod): Declare replacement.
29327         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29328         Document it.
29329         * doc/posix-functions/mknod.texi (mknod): Likewise.
29330         * modules/mknod-tests: New test.
29331         * tests/test-mknod.c: Likewise.
29332
29333         mkfifo: new module
29334         * modules/mkfifo: New file.
29335         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29336         * lib/mkfifo.c (mkfifo): Likewise.
29337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29338         defaults.
29339         * modules/sys_stat (Makefile.am): Substitute them.
29340         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29341         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29342         Document it.
29343         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29344         * modules/mkfifo-tests: New test.
29345         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29346         from test-mkfifoat.c.
29347         * tests/test-mkfifo.c: New file.
29348
29349         readlink: detect FreeBSD bug
29350         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29351         slash on symlink.
29352         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29353         * tests/test-readlink.h (test_readlink): Enhance test.
29354
29355         symlink: detect FreeBSD bug
29356         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29357         slash on symlink.
29358         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29359         * tests/test-symlink.h (test_symlink): Enhance test.
29360
29361 2009-11-10  Eric Blake  <ebb9@byu.net>
29362
29363         link: detect FreeBSD bug
29364         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29365         symlink.
29366         * doc/posix-functions/link.texi (link): Document the bug.
29367         * tests/test-link.h (test_link): Enhance test.
29368         * tests/test-linkat.c (main): Update caller.
29369
29370         unlink, remove: detect FreeBSD bug
29371         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29372         slash on symlink.
29373         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29374         * doc/posix-functions/remove.texi (remove): Likewise.
29375         * tests/test-unlink.h (test_unlink): Enhance test.
29376         * tests/test-remove.c (main): Likewise.
29377
29378 2009-11-09  Eric Blake  <ebb9@byu.net>
29379
29380         rename: detect FreeBSD bug
29381         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29382         slash on symlink.
29383         * modules/renameat-tests (Depends-on): Add filenamecat.
29384         * tests/test-rename.h (test_rename): Allow one more errno.
29385         * tests/test-renameat.c (main): Likewise.
29386         * doc/posix-functions/rename.texi (rename): Document the bug.
29387
29388         open: detect FreeBSD bug
29389         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29390         symlink.
29391         * doc/posix-functions/open.texi (open): Document the bug.
29392         * doc/posix-functions/utimes.texi (utimes): Likewise.
29393         * tests/test-open.h (test_open): Add parameters, and test symlink
29394         handling.
29395         * tests/test-open.c (main): Adjust caller.
29396         * tests/test-fcntl-safer.c (main): Likewise.
29397         * modules/open-tests (Depends-on): Add stdbool, symlink.
29398         * modules/fcntl-safer-tests (Depends-on): Likewise.
29399         * tests/test-openat.c (main): Add test-open tests.
29400
29401         stat: detect FreeBSD bug
29402         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29403         symlink.
29404         * doc/posix-functions/stat.texi (stat): Document the bug.
29405         * tests/test-stat.h (test_stat_func): Add argument.
29406         * tests/test-stat.c (main): Adjust caller.
29407         * tests/test-fstatat.c (main): Likewise.
29408         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29409         Reported by Jim Meyering.
29410
29411 2009-11-09  James Youngman  <jay@gnu.org>
29412
29413         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29414         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29415
29416 2009-11-08  Jim Meyering  <meyering@redhat.com>
29417
29418         utimens: remove invalid futimesat call
29419         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29420         It used the file descriptor of the target file as the DIR_FD
29421         parameter and NULL as the file name.  That caused failure with
29422         errno == EFAULT on FreeBSD-8.0-rc2
29423
29424 2009-11-07  Eric Blake  <ebb9@byu.net>
29425
29426         fflush, freadseek: use fseeko, not fseek
29427         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29428         (clear_ungetc_buffer): Avoid potential problems on large files.
29429         * lib/freadseek.c (freadseek): Likewise.
29430         * modules/freadseek (Depends-on): Add fseeko.
29431         * modules/fseek (configure.ac): Set a witness.
29432         * tests/test-fflush.c (main): Use fseeko.
29433         * tests/test-fpurge.c (fseek): Disable link warning.
29434         * tests/test-freadable.c (fseek): Likewise.
29435         * tests/test-freading.c (fseek): Likewise.
29436         * tests/test-fseeko.c (fseek): Likewise.
29437         * tests/test-ftell.c (fseek): Likewise.
29438         * tests/test-ftello.c (fseek): Likewise.
29439         * tests/test-fwritable.c (fseek): Likewise.
29440         * tests/test-fwriting.c (fseek): Likewise.
29441
29442 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29443
29444         * modules/memchr (Depends-on): Drop getpagesize dependency.
29445
29446 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29447
29448         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29449         Reported by Ludovic Courtès.
29450         * build-aux/pmccabe2html: Improve example usage.
29451         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29452
29453 2009-11-06  Jim Meyering  <meyering@redhat.com>
29454
29455         do-release-commit-and-tag: New module.
29456         Automate the release-commit and tag process.
29457         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29458         * modules/do-release-commit-and-tag: New file.
29459         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29460
29461 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29462
29463         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29464         because test-select.c uses inet_pton.
29465
29466 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29467
29468         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29469         GETADDRINFO_LIB.  Bump serial number.
29470         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29471         Suggested by Eric Blake <ebb9@byu.net>.
29472
29473 2009-11-05  Eric Blake  <ebb9@byu.net>
29474
29475         strtod: detect darwin bug
29476         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29477         Reported by Leo Davis.
29478
29479         freopen-safer: new module
29480         * modules/freopen-safer: New module.
29481         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29482         * lib/freopen-safer.c (freopen_safer): New file.
29483         * lib/stdio-safer.h (freopen_safer): New declaration.
29484         * lib/stdio--.h (freopen): New override.
29485         * MODULES.html.sh (File stream based Input/Output): Mention it.
29486         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29487         freopen-safer module.
29488         * doc/posix-functions/stderr.texi (stderr): Likewise.
29489         * doc/posix-functions/stdin.texi (stdin): Likewise.
29490         * doc/posix-functions/stdout.texi (stdout): Likewise.
29491         * modules/freopen-safer-tests: New test.
29492         * tests/test-reopen-safer.c: New file.
29493
29494 2009-11-05  Jim Meyering  <meyering@redhat.com>
29495
29496         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29497         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29498
29499 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29500
29501         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29502
29503 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29504
29505         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29506
29507 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29508
29509         Fix link error.
29510         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29511         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29512
29513 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29514
29515         * tests/test-func.c: Also test value of __func__.
29516
29517 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29518
29519         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29520         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29521
29522 2009-11-05  Bruno Haible  <bruno@clisp.org>
29523
29524         Fix link error.
29525         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29526         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29527         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29528
29529 2009-11-05  Bruno Haible  <bruno@clisp.org>
29530
29531         Tests for module 'inet_pton'.
29532         * modules/inet_pton-tests: New file.
29533         * tests/test-inet_pton.c: New file.
29534
29535 2009-11-05  Bruno Haible  <bruno@clisp.org>
29536
29537         Tests for module 'inet_ntop'.
29538         * modules/inet_ntop-tests: New file.
29539         * tests/test-inet_ntop.c: New file.
29540
29541 2009-11-04  Eric Blake  <ebb9@byu.net>
29542
29543         stdlib-safer: wrap all mkstemp variants
29544         * modules/mkostemp (configure.ac): Set witness.
29545         * modules/mkostemps (configure.ac): Likewise.
29546         * modules/mkstemps (configure.ac): Likewise.
29547         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29548         (mkstemps_safer): Wrap more functions.
29549         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29550         wrapping.
29551         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29552         (mkstemps_safer): Implement the wrappers.
29553
29554         mkstemps, mkostemps: new modules
29555         * modules/mkostemps: New module.
29556         * modules/mkstemps: Likewise.
29557         * lib/mkostemps.c (mkostemps): New file.
29558         * lib/mkstemps.c (mkstemps): Likewise.
29559         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29560         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29562         * modules/stdlib (Makefile.am): Substitute them.
29563         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29564         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29565         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29566         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29567         * MODULES.html.sh (File system functions): Mention them.
29568
29569         tempname: resync from glibc
29570         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29571         same values for __GT_FILE as glibc.  Abort even when assertions
29572         are disabled.
29573         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29574         match its value otherwise.  Allow idempotent inclusion.
29575         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29576         * lib/mkostemp.c (mkostemp): Likewise.
29577         * lib/mkstemp.c (mkstemp): Likewise.
29578         * lib/tmpfile.c (tmpfile): Likewise.
29579         * NEWS: Document this.
29580
29581         utimens: fix use of futimens on older Linux
29582         * lib/utimens.c (fdutimens): Use updated, rather than original,
29583         timespec to avoid bug in older Linux kernel.
29584         Reported by Simon Josefsson.
29585
29586 2009-11-04  Bruno Haible  <bruno@clisp.org>
29587
29588         Make num_processors more flexible and consistent.
29589         * lib/nproc.h (enum nproc_query): New type.
29590         (num_processors): Add a 'query' argument.
29591         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29592         (num_processors): Add a 'query' argument. Test the value of the
29593         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29594         mingw, count the number of CPUs available for the current process.
29595         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29596         Check for sched_getaffinity and sched_getaffinity_np.
29597         * modules/nproc (Depends-on): Add c-ctype, extensions.
29598         * NEWS: Mention the change.
29599
29600 2009-11-03  Bruno Haible  <bruno@clisp.org>
29601
29602         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29603
29604 2009-11-03  Jim Meyering  <meyering@redhat.com>
29605
29606         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29607         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29608         if it is defined.
29609
29610 2009-11-02  Eric Blake  <ebb9@byu.net>
29611
29612         mktime, timegm: share common declaration
29613         * lib/mktime-internal.h: New file.
29614         * lib/mktime.c: Use it rather than open-coding a declaration.
29615         * lib/timegm.c: Likewise.
29616         * modules/mktime (Files): Ship it.
29617         * modules/timegm (Files): Likewise.
29618         Suggested by Bruno Haible.
29619
29620         test-update-copyright: update test to match script changes
29621         * tests/test-update-copyright.sh: Avoid hard-coding perl
29622         location.  Don't update *.bak created by earlier runs.
29623
29624 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29625             Simon Josefsson  <simon@josefsson.org>
29626             Bruno Haible  <bruno@clisp.org>
29627
29628         Fix link error on Solaris 8.
29629         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29630         also in libnsl. Define also INET_PTON_LIB.
29631         * modules/inet_pton (Link): New section.
29632
29633 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29634             Bruno Haible  <bruno@clisp.org>
29635
29636         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29637         * modules/inet_ntop (Link): New section.
29638         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29639
29640 2009-11-02  Eric Blake  <ebb9@byu.net>
29641
29642         maint: avoid compiler warnings in m4 macros
29643         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29644         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29645
29646 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29647
29648         * m4/pmccabe2html.m4: Remove file.
29649         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29650         function.  Change maintainer.
29651         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29652         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29653         Courtès).
29654
29655 2009-10-31  Eric Blake  <ebb9@byu.net>
29656
29657         fseeko: fix m4 regression
29658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29659         regression from 2009-10-27.
29660         Reported by Ralf Wildenhues.
29661
29662 2009-10-31  Jim Meyering  <meyering@redhat.com>
29663
29664         inttostr: aesthetics and improved (compile-time) safety
29665         Define inttype_is_signed rather than inttype_is_unsigned,
29666         since the sole use is via "#if inttype_is_signed".
29667         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29668         inttype_is_unsigned.
29669         * lib/offtostr.c (inttype_is_signed): Likewise.
29670         * lib/uinttostr.c (inttype_is_signed): Likewise.
29671         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29672         * lib/inttostr.c (inttostr): Use verify to cross-check the
29673         inttype_is_signed value and the signedness of the actual type.
29674         * modules/inttostr (Depends-on): Add verify.
29675
29676 2009-10-30  Eric Blake  <ebb9@byu.net>
29677
29678         build: avoid compiler warnings
29679         * lib/fchmodat.c (lchmod): Mark unused variables.
29680         * lib/getopt.c (_getopt_initialize): Likewise.
29681         * lib/mktime.c (__mktime_internal): Provide prototype.
29682         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29683         older gcc that do not understand #pragma GCC diagnostic.
29684         * lib/uinttostr.c (inttype_is_unsigned): Define.
29685         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29686
29687 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29688
29689         stat: fix compilation on AIX
29690         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29691         only see struct stat64.
29692
29693 2009-10-30  Eric Blake  <ebb9@byu.net>
29694
29695         exclude: make more robust
29696         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29697         rather than masking a coding bug.
29698         Suggested by Bruno Haible.
29699
29700 2009-10-30  Jim Meyering  <meyering@redhat.com>
29701
29702         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29703         Rather than putting #!/usr/bin/perl on the first line,
29704         start with a variant of what's recommended by "man perlrun" that
29705         invokes the first "perl" program from your shell's search path.
29706         * build-aux/gitlog-to-changelog: Replace #!... as above.
29707         Add a "Local Variables" perl mode setting.
29708         Prompted by a patch from Ludovic Courtès.
29709         Improved by Eric Blake.
29710         * build-aux/useless-if-before-free: Likewise.
29711         * build-aux/announce-gen: Likewise.
29712         * build-aux/update-copyright: Likewise.
29713
29714 2009-10-29  Eric Blake  <ebb9@byu.net>
29715
29716         filenamecat-lgpl: adjust clients
29717         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29718         filenamecat.
29719         * modules/renameat (Depends-on): Likewise.
29720
29721         filenamecat: split into filenamecat-lgpl
29722         * modules/filenamecat-lgpl: New module.
29723         * modules/filenamecat (Files): Move library-safe files into
29724         filenamecat-lgpl.
29725         (Depends-on): Add filenamecat-lgpl.
29726         (configure.ac): Declare witness.
29727         * lib/filenamecat.h (file_name_concat): Only declare when using
29728         GPL module.
29729         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29730         Move...
29731         * lib/filenamecat-lgpl.c: ...into new file.
29732         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29733         (gl_FILE_NAME_CONCAT): Use it.
29734         * MODULES.html.sh (File system functions): Mention new module.
29735
29736         argp: avoid memory leak
29737         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29738         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29739         base_name, since the latter malloc()s and can call exit().
29740         Leak introduced 2006-07-03.
29741
29742         dirname-lgpl: adjust clients that don't need full dirname
29743         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29744         * modules/filenamecat (Depends-on): Likewise.
29745         * modules/linkat (Depends-on): Likewise.
29746         * modules/mkancesdirs (Depends-on): Likewise.
29747         * modules/mkdir (Depends-on): Likewise.
29748         * modules/openat (Depends-on): Likewise.
29749         * modules/savewd (Depends-on): Likewise.
29750         * modules/rename (Depends-on): Likewise.
29751         (License): Relax license.
29752         * modules/mkdir-tests (Depends-on): Drop progname.
29753         (Makefile.am): Delete unneeded LDADD.
29754         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29755
29756         dirname: split into dirname-lgpl
29757         * modules/dirname-lgpl: New module.
29758         * modules/dirname (Files): Move library-safe files into
29759         dirname-lgpl.
29760         (Depends-on): Add dirname-lgpl.
29761         (configure.ac): Declare witness.
29762         * modules/double-slash-root (License): Relax license.
29763         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29764         module.
29765         * lib/dirname.c (dir_len, mdir_name): Move...
29766         * lib/dirname-lgpl.c: ...into new file.
29767         * lib/basename.c (last_component, base_len): Move...
29768         * lib/basename-lgpl.c: ...into new file.
29769         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29770         (gl_DIRNAME): Use it.
29771         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29772         Mention new module.
29773         * modules/dirname-tests (Depends-on): Add progname.
29774         * tests/test-dirname.c (program_name): Delete.
29775
29776         mkdir: make safe for libraries
29777         * modules/mkdir (Depends-on): Drop xalloc.
29778         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29779         exit.
29780
29781         tests: avoid some compiler warnings
29782         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29783         literals.
29784         * tests/test-memchr.c (main): Avoid type mismatch.
29785         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29786         * tests/test-base64.c (main): Likewise.
29787         * tests/test-getdelim.c (main): Likewise.
29788         * tests/test-gethostname.c (main): Likewise.
29789         * tests/test-getline.c (main): Likewise.
29790         * tests/test-netinet_in.c (main): Likewise.
29791         * tests/test-select.c (open_server_socket, main): Likewise.
29792         * tests/test-select-stdin.c (main): Likewise.
29793         * tests/test-sockets.c (main): Likewise.
29794         * tests/test-strsignal.c (main): Likewise.
29795         * tests/test-sys_select.c (main): Likewise.
29796         * tests/test-sys_socket.c (main): Likewise.
29797         * tests/test-u64.c (main): Likewise.
29798         * tests/test-xfprintf-posix.c (main): Likewise.
29799         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29800
29801         sockets: avoid compiler warning
29802         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29803
29804         maint: detect usage(1) and other suspicious exits
29805         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29806
29807 2009-10-29  Jim Meyering  <meyering@redhat.com>
29808
29809         timespec: long-to-int truncation could make timespec_cmp malfunction
29810         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29811         a multiple of 2^32 nanoseconds as no difference.
29812
29813 2009-10-28  Jim Meyering  <meyering@redhat.com>
29814
29815         fprintftime: wrap macro code argument in "do {...} while(0)"
29816         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29817         cpy macro must be a statement that can be followed by a semicolon.
29818         Now that the else clause contains a comment and is hence longer
29819         than one line, I require curly braces.  That in turn requires
29820         that we wrap this code block in the standard do...while(0).
29821
29822         fprintftime: remove stray semicolon from previous change
29823         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29824
29825         fprintftime: avoid a warning about ignored fwrite return value
29826         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29827         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29828         that is unsafe.
29829         * modules/fprintftime (Depends-on): Add ignore-value.
29830
29831         exclude: avoid an unwarranted warning
29832         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29833
29834 2009-10-27  Eric Blake  <ebb9@byu.net>
29835
29836         fseek: avoid compilation failure when fflush is replaced
29837         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29838         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29839         module is in use.
29840         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29841         module is not in use; since REPLACE_FSEEK worked otherwise.
29842         (GNULIB_FTELLO): Likewise for ftell.
29843         Reported by Ian Beckwith and others.
29844
29845 2009-10-27  Bruno Haible  <bruno@clisp.org>
29846
29847         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29848         Reported by Jim Meyering.
29849
29850 2009-10-27  Jim Meyering  <jim@meyering.net>
29851             Bruno Haible  <bruno@clisp.org>
29852
29853         Avoid warning despite dropping the return value of fwrite.
29854         * lib/unicodeio.c: Include ignore-value.h.
29855         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29856         * modules/unicodeio (Depends-on): Add ignore-value.
29857
29858 2009-10-26  Eric Blake  <ebb9@byu.net>
29859
29860         areadlinkat: fix fallback path
29861         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29862         pointer and zero.
29863
29864 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29865
29866         Use a better IO block size for modern systems
29867         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29868         * lib/md2.c: Likewise.
29869         * lib/md4.c: Likewise.
29870         * lib/md5.c: Likewise.
29871         * lib/sha1.c: Likewise.
29872         * lib/sha256.c: Likewise.
29873         * lib/sha512.c: Likewise.
29874
29875 2009-10-22  Eric Blake  <ebb9@byu.net>
29876
29877         tests: avoid several compiler warnings
29878         * tests/test-getcwd.c (main): Avoid buffer underflow.
29879         * tests/test-getdate.c (main): String literals are not safe with
29880         putenv, so use setenv.  Declare unused argument.
29881         * modules/getdate-tests (Depends-on): Add setenv.
29882         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29883         problems with string literals in char *.
29884         * tests/test-hash.c (main): Avoid shadowing declaration.
29885         (insert_new): Treat string literals as char const *.
29886         * tests/test-getopt.h (test_getopt): Likewise.
29887         (getopt_loop): Alter types to minimize casting elsewhere.
29888         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29889         (test_getopt_long_posix): Likewise.
29890         (do_getopt_long): Add wrapper to minimize casting.
29891         * tests/test-atexit.c (clear_temp_file): Use void.
29892         * tests/test-areadlink-with-size.c (main): Declare unused
29893         arguments.
29894         * tests/test-areadlink.c (main): Likewise.
29895         * tests/test-areadlinkat-with-size.c (main): Likewise.
29896         * tests/test-areadlinkat.c (main): Likewise.
29897         * tests/test-canonicalize-lgpl.c (main): Likewise.
29898         * tests/test-canonicalize.c (main): Likewise.
29899         * tests/test-dirent-safer.c (main): Likewise.
29900         * tests/test-dirname.c (main): Likewise.
29901         * tests/test-dup2.c (main): Likewise.
29902         * tests/test-fchdir.c (main): Likewise.
29903         * tests/test-fcntl-h.c (main): Likewise.
29904         * tests/test-fcntl-safer.c (main): Likewise.
29905         * tests/test-fdopendir.c (main): Likewise.
29906         * tests/test-fdutimensat.c (main): Likewise.
29907         * tests/test-fflush.c (main): Likewise.
29908         * tests/test-filenamecat.c (main): Likewise.
29909         * tests/test-filevercmp.c (main): Likewise.
29910         * tests/test-fopen-safer.c (main): Likewise.
29911         * tests/test-fopen.c (main): Likewise.
29912         * tests/test-fpending.c (main): Likewise.
29913         * tests/test-fpurge.c (main): Likewise.
29914         * tests/test-freading.c (main): Likewise.
29915         * tests/test-fstatat.c (main): Likewise.
29916         * tests/test-fsync.c (main): Likewise.
29917         * tests/test-futimens.c (main): Likewise.
29918         * tests/test-getndelim2.c (main): Likewise.
29919         * tests/test-gettimeofday.c (main): Likewise.
29920         * tests/test-getopt.c (main): Likewise.
29921         * tests/test-i-ring.c (main): Likewise.
29922         * tests/test-inttypes.c (main): Likewise.
29923         * tests/test-link.c (main): Likewise.
29924         * tests/test-lstat.c (main): Likewise.
29925         * tests/test-math.c (main): Likewise.
29926         * tests/test-md5.c (main): Likewise.
29927         * tests/test-memchr2.c (main): Likewise.
29928         * tests/test-memrchr.c (main): Likewise.
29929         * tests/test-mkdir.c (main): Likewise.
29930         * tests/test-mkdirat.c (main): Likewise.
29931         * tests/test-mkfifoat.c (main): Likewise.
29932         * tests/test-open.c (main): Likewise.
29933         * tests/test-openat-safer.c (main): Likewise.
29934         * tests/test-openat.c (main): Likewise.
29935         * tests/test-quotearg.c (main): Likewise.
29936         * tests/test-rawmemchr.c (main): Likewise.
29937         * tests/test-readlink.c (main): Likewise.
29938         * tests/test-remove.c (main): Likewise.
29939         * tests/test-rename.c (main): Likewise.
29940         * tests/test-renameat.c (main): Likewise.
29941         * tests/test-rmdir.c (main): Likewise.
29942         * tests/test-sha1.c (main): Likewise.
29943         * tests/test-signal.c (main): Likewise.
29944         * tests/test-sigaction.c (main): Likewise.
29945         * tests/test-stat.c (main): Likewise.
29946         * tests/test-stat-time.c (main): Likewise.
29947         * tests/test-stddef.c (main): Likewise.
29948         * tests/test-stdint.c (main): Likewise.
29949         * tests/test-stdio.c (main): Likewise.
29950         * tests/test-stdlib.c (main): Likewise.
29951         * tests/test-strchrnul.c (main): Likewise.
29952         * tests/test-strerror.c (main): Likewise.
29953         * tests/test-string.c (main): Likewise.
29954         * tests/test-strtod.c (main): Likewise.
29955         * tests/test-strverscmp.c (main): Likewise.
29956         * tests/test-symlink.c (main): Likewise.
29957         * tests/test-symlinkat.c (main): Likewise.
29958         * tests/test-sys_stat.c (main): Likewise.
29959         * tests/test-sys_time.c (main): Likewise.
29960         * tests/test-time.c (main): Likewise.
29961         * tests/test-unistd.c (main): Likewise.
29962         * tests/test-unlink.c (main): Likewise.
29963         * tests/test-unlinkat.c (main): Likewise.
29964         * tests/test-utimens.c (main): Likewise.
29965         * tests/test-utimensat.c (main): Likewise.
29966         * tests/test-version-etc.c (main): Likewise.
29967         * tests/test-wchar.c (main): Likewise.
29968         * tests/test-wctype.c (main): Likewise.
29969         * tests/test-xprintf-posix.c (main): Likewise.
29970         * tests/test-posixtm.c (main): Likewise.
29971         (STREQ): Delete unused macro.
29972         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29973         shadowed variables.
29974         * tests/test-memchr.c (main): Likewise.
29975
29976 2009-10-21  Eric Blake  <ebb9@byu.net>
29977
29978         areadlinkat: avoid failure on older glibc
29979         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29980         rather than mis-comparing 0 against FUNC_RESULT of char*.
29981
29982 2009-10-21  Bruno Haible  <bruno@clisp.org>
29983
29984         * modules/stpncpy (License): Relicense under LGPLv2+.
29985         Reported by David Lutterkort <lutter@redhat.com>.
29986
29987 2009-10-20  Eric Blake  <ebb9@byu.net>
29988
29989         utimensat: work around Solaris 9 bug
29990         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29991         has trailing slash bugs.
29992         * tests/test-lutimens.h (test_lutimens): Enhance test.
29993         * tests/test-utimens.h (test_utimens): Likewise.
29994         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29995         * doc/posix-functions/utimes.texi (utimes): Likewise.
29996         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29997         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29998         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29999         * doc/posix-functions/futimens.texi (futimens): Likewise.
30000
30001         fdutimensat: new module
30002         * modules/fdutimensat: New file.
30003         * lib/fdutimensat.c (fdutimensat): Likewise.
30004         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30005         * MODULES.html.sh (File system functions): Mention module.
30006         * modules/fdutimensat-tests: New test.
30007         * tests/test-fdutimensat.c: Likewise.
30008
30009         doc: regenerate INSTALL
30010         * doc/INSTALL: Reflect recent autoconf update.
30011         * doc/INSTALL.ISO: Likewise.
30012         * doc/INSTALL.UTF-8: Likewise.
30013
30014 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30015
30016         acl: warn if ACL support is not detected
30017         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30018
30019 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30020
30021         * lib/nproc.h: Add extern "C" block for C++.
30022
30023 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30024             Bruno Haible  <bruno@clisp.org>
30025
30026         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30027         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30028         * doc/posix-functions/isalpha.texi: Likewise.
30029         * doc/posix-functions/isblank.texi: Likewise.
30030         * doc/posix-functions/iscntrl.texi: Likewise.
30031         * doc/posix-functions/isdigit.texi: Likewise.
30032         * doc/posix-functions/isgraph.texi: Likewise.
30033         * doc/posix-functions/islower.texi: Likewise.
30034         * doc/posix-functions/isprint.texi: Likewise.
30035         * doc/posix-functions/ispunct.texi: Likewise.
30036         * doc/posix-functions/isspace.texi: Likewise.
30037         * doc/posix-functions/isupper.texi: Likewise.
30038         * doc/posix-functions/isxdigit.texi: Likewise.
30039
30040 2009-10-18  Bruno Haible  <bruno@clisp.org>
30041
30042         Tests for module 'isblank'.
30043         * modules/isblank-tests: New file.
30044         * tests/test-isblank.c: New file.
30045
30046         New module 'isblank'.
30047         * lib/isblank.c: New file.
30048         * m4/isblank.m4: New file.
30049         * modules/isblank: New file.
30050         * doc/posix-functions/isblank.texi: Mention the new module.
30051
30052 2009-10-18  Bruno Haible  <bruno@clisp.org>
30053
30054         New module 'ctype'.
30055         * lib/ctype.in.h: New file.
30056         * m4/ctype.m4: New file.
30057         * modules/ctype: New file.
30058         * doc/posix-headers/ctype.texi: Mention the new module.
30059
30060 2009-10-18  Jim Meyering  <meyering@redhat.com>
30061
30062         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30063         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30064         right after its initialization, rather than farther down.
30065         Keeping these in close proximity makes it easier to ensure
30066         that each such variable is initialized.  E.g.,
30067
30068             LIB_CLOCK_GETTIME=
30069             AC_SUBST([LIB_CLOCK_GETTIME])
30070
30071         This change also increments these serial numbers.
30072         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30073         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30074         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30075
30076 2009-10-18  Bruno Haible  <bruno@clisp.org>
30077
30078         Don't let environment variables perturb build.
30079         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30080         (gl_PREREQ_GETHRXTIME): ... not here.
30081
30082 2009-10-18  Bruno Haible  <bruno@clisp.org>
30083
30084         Avoid symlink attack in localcharset module.
30085         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30086         (O_NOFOLLOW): Define fallback.
30087         (get_charset_aliases): Don't open the file if it is a symbolic link.
30088         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30089         gl_FCNTL_H.
30090         (gl_FCNTL_H): Require it.
30091         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30092         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30093         Reported by Fergal Glynn <fglynn@veracode.com>.
30094
30095 2009-10-18  Bruno Haible  <bruno@clisp.org>
30096
30097         Implement nproc for mingw.
30098         * lib/nproc.c: Include <windows.h>
30099         (num_processors): On native Windows platforms, try GetSystemInfo.
30100
30101 2009-10-18  Bruno Haible  <bruno@clisp.org>
30102
30103         Implement nproc for IRIX.
30104         * lib/nproc.c: Include <sys/sysmp.h>.
30105         (num_processors): On IRIX systems, try sysmp.
30106         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30107
30108 2009-10-18  Bruno Haible  <bruno@clisp.org>
30109
30110         Implement nproc for HP-UX.
30111         * lib/nproc.c: Include <sys/pstat.h>
30112         (num_processors): On HP-UX systems, try pstat_getdynamic.
30113         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30114         pstat_getdynamic.
30115
30116 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30117             Bruno Haible  <bruno@clisp.org>
30118
30119         Implement nproc for NetBSD, OpenBSD.
30120         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30121         (ARRAY_SIZE): New macro.
30122         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30123         * m4/nproc.m4: New file.
30124         * modules/nproc (Files): Add m4/nproc.m4.
30125         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30126         (Makefile.am): Instead, augment lib_SOURCES.
30127
30128 2009-10-18  Bruno Haible  <bruno@clisp.org>
30129
30130         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30131         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30132         sys/param.h.
30133
30134 2009-10-16  Eric Blake  <ebb9@byu.net>
30135
30136         utimensat: new module
30137         * modules/utimensat: New file.
30138         * lib/utimensat.c (utimensat): Likewise.
30139         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30140         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30141         so we can work around Linux bugs.
30142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30143         * modules/sys_stat (Makefile.am): Substitute them.
30144         * lib/sys_stat.in.h (utimensat): Declare it.
30145         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30146         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30147         * modules/utimensat-tests: New test.
30148         * tests/test-utimensat.c: Likewise.
30149
30150         utimens: let lutimens work on non-symlinks
30151         * lib/utimens.c (lutimens): Fall back to utimens rather than
30152         failing with ENOSYS, when file is not a symlink.
30153         (utimens): Reduce redirection.
30154         * tests/test-lutimens.h (test_lutimens): Update test to cover
30155         non-symlinks.
30156         * tests/test-utimens.h (test_utimens): Update test to cover
30157         symlinks.
30158         * tests/test-utimens.c (main): Update caller.
30159
30160         utimens: cache whether utimensat syscall works
30161         * lib/utimens.c (utimensat_works_really): New cache variable.
30162         (fdutimens, lutimens): Use it to avoid failing syscall.
30163
30164         test-stat-time, test-utimens: improve portability
30165         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30166         ext4 on alpha, and for cygwin.
30167         * tests/test-utimens-common.h: New file.
30168         (nap): Factor delays into single function.
30169         * tests/test-lutimens.h (test_lutimens): Use new header.
30170         * tests/test-futimens.h (test_futimens): Likewise.
30171         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30172         timestamps to occur from same machine, as was done previously for
30173         test_utimens.
30174         * modules/utimens-tests (Files): Ship new file.
30175         * modules/futimens-tests (Files): Likewise.
30176         Reported in part by Jim Meyering.
30177
30178         sys_stat: sort replacement declarations
30179         * lib/sys_stat.in.h: Sort declarations.
30180         * lib/futimens.c (futimens): Fix typo.
30181
30182 2009-10-15  Jim Meyering  <meyering@redhat.com>
30183
30184         don't let environment settings perturb build
30185         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30186         could cause a configure-time and/or build-time malfunction.
30187         Typically, a configure-time function-in-library test is performed
30188         via code like this:
30189
30190           LIB_VAR=
30191           AC_SUBST([LIB_VAR])
30192           prefix_saved_LIBS=$LIBS
30193             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30194                        [test "$ac_cv_search_FUNC" = "none required" ||
30195                         LIB_VAR=$ac_cv_search_FUNC])
30196           LIBS=$prefix_saved_LIBS
30197
30198         However, in each of the files affected by this change, the LIB_VAR=
30199         initialization was omitted.  Thus, when set in the environment, its
30200         value would propagate into generated Makefiles when FUNC is not found
30201         in LIB_NAME.
30202         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30203         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30205
30206 2009-10-14  Eric Blake  <ebb9@byu.net>
30207
30208         fchdir: avoid infinite recursion in mingw
30209         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30210         recursing.
30211
30212         test-stat-time: port to mingw
30213         * tests/test-stat-time.c (force_unlink): Return a value.
30214         (test_ctime) [W32]: Fix compilation error.
30215         (nap): Don't call usleep with too large an argument.  Use
30216         force_unlink.
30217         * doc/pastposix-functions/usleep.texi (usleep): Document the
30218         portability issue.
30219
30220 2009-10-13  Jim Meyering  <meyering@redhat.com>
30221
30222         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30223         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30224         * modules/pipe-filter-ii: Likewise.
30225         * modules/sys_socket-tests: Likewise.
30226         * modules/tsearch-tests: Likewise.
30227         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30228         (check): Depend on it.
30229
30230 2009-10-12  Eric Blake  <ebb9@byu.net>
30231
30232         utimens-tests: port to NFS file systems
30233         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30234         comparisons to avoid spurious failures from timestamp drift
30235         between NFS machines.
30236
30237 2009-10-12  Eric Blake  <ebb9@byu.net>
30238
30239         stat-time-tests: minor cleanups
30240         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30241         * tests/test-stat-time.c (nap): Separate assignment from call.
30242         Suggested by Paolo Bonzini and Bruno Haible.
30243
30244         sys_stat: guarantee struct timespec
30245         * lib/sys_stat.in.h (includes): Always include <time.h>
30246         * modules/sys_stat (Depends-on): Add time.
30247         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30248         mode_t permission values.
30249         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30250         get at subsecond timestamps.
30251
30252 2009-10-10  Eric Blake  <ebb9@byu.net>
30253
30254         futimens: new module
30255         * modules/futimens: New file.
30256         * lib/futimens.c (futimens): Likewise.
30257         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30258         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30259         we can work around Linux bugs.
30260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30261         * modules/sys_stat (Makefile.am): Substitute them.
30262         * lib/sys_stat.in.h (futimens): Declare it.
30263         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30264         * doc/posix-functions/futimens.texi (futimens): Likewise.
30265         * modules/futimens-tests: New test.
30266         * tests/test-futimens.c: Likewise.
30267
30268         utimens: introduce fdutimens
30269         * lib/utimens.h (fdutimens): New prototype.
30270         * lib/utimens.c (gl_futimens): Move guts...
30271         (fdutimens): ...to new interface.
30272         * tests/test-utimens.c (do_fdutimens): Use it.
30273
30274         utimens: add UTIME_NOW and UTIME_OMIT support
30275         * lib/utimens.c (validate_timespec, update_timespec): New helper
30276         functions.
30277         (gl_futimens, lutimens): Use them.
30278         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30279         stdbool, sys_stat.
30280         (Link): Mention resulting library dependency.
30281         * modules/utimecmp (Link): Likewise.
30282         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30283         (Makefile.am): Pick up library dependency.
30284         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30285         definition.
30286         * tests/test-sys_stat.c: Test the definitions.
30287         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30288         * NEWS: Document library dependency.
30289
30290         utimecmp: support symlink timestamps
30291         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30292         hashing when possible.  Use pathconf when available.
30293         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30294         * modules/utimecmp (Depends-on): Add lstat.
30295
30296         utimens: add lutimens interface
30297         * lib/utimens.c (lutimens): New function.
30298         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30299         * lib/utimens.h (lutimens): Declare new interface.
30300         * tests/test-utimens.c (main): Enhance test.
30301         * tests/test-lutimens.h (test_lutimens): New file.
30302         * modules/utimens-tests (Files): Distribute it.
30303         (Depends-on): Add symlink.
30304         (configure.ac): Check for usleep.
30305
30306         utimens: validate futimens usage
30307         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30308         fewer syscalls on failure later on.  Avoid compiler warning on
30309         mingw.
30310         * modules/utimens (Depends-on): Add dup2.
30311
30312         utimens: add test
30313         * modules/utimens-tests: New test.
30314         * tests/test-utimens.h: New file.
30315         * tests/test-futimens.h: Likewise.
30316         * tests/test-utimens.c: Likewise.
30317
30318         doc: mention timestamp portability issues
30319         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30320         instead.
30321         * doc/posix-functions/utime.texi (utime): Likewise.
30322         * doc/posix-functions/utimes.texi (utimes): Likewise.
30323         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30324         instead.
30325         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30326         module.
30327         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30328         Mention weakness with symlink timestamps.
30329         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30330         to utimensat/futimens instead.
30331         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30332
30333         test-dup2: enhance test
30334         * tests/test-dup2.c (main): Also check AT_FDCWD.
30335
30336         test-stat-time: avoid more spurious failures
30337         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30338         xfs; and avoid race if the two timestamps cross quantization edge.
30339
30340         relocatable: prefer 'file system' over 'filesystem'
30341         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30342         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30343         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30344         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30345         * lib/relocatable.c (compute_curr_prefix): Likewise.
30346
30347 2009-10-10  Jim Meyering  <meyering@redhat.com>
30348
30349         stat-time-tests: check for the usleep function
30350         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30351
30352 2009-10-10  Bruno Haible  <bruno@clisp.org>
30353
30354         * modules/xnanosleep: Put the Link section after the Include section.
30355
30356 2009-10-09  Eric Blake  <ebb9@byu.net>
30357
30358         dup2: work around FreeBSD 6.1 bug
30359         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30360         * doc/posix-functions/dup2.texi (dup2): Document it.
30361         Reported by Nelson H. F. Beebe and Jim Meyering.
30362
30363         test-stat-time: port to buggy NFS clients
30364         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30365         (test_ctime): Also skip test if mtime and ctime are skewed.
30366
30367         maint: prefer 'file system' over 'filesystem'
30368         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30369         * doc/posix-functions/lstat.texi (lstat): Likewise.
30370         * lib/file-has-acl.c (file_has_acl): Likewise.
30371         * lib/fwriteerror.c [TEST]: Likewise.
30372         * tests/test-areadlink.h (test_areadlink): Likewise.
30373         * tests/test-areadlinkat-with-size.c (main): Likewise.
30374         * tests/test-areadlinkat.c (main): Likewise.
30375         * tests/test-canonicalize-lgpl.c (main): Likewise.
30376         * tests/test-canonicalize.c (main): Likewise.
30377         * tests/test-fstatat.c (main): Likewise.
30378         * tests/test-linkat.c (main): Likewise.
30379         * tests/test-lstat.h (test_lstat_func): Likewise.
30380         * tests/test-mkdir.h (test_mkdir): Likewise.
30381         * tests/test-readlink.h (test_readlink): Likewise.
30382         * tests/test-remove.c (main): Likewise.
30383         * tests/test-rename.h (test_rename): Likewise.
30384         * tests/test-renameat.c (main): Likewise.
30385         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30386         * tests/test-symlink.h (test_symlink): Likewise.
30387         * tests/test-symlinkat.c (main): Likewise.
30388         * tests/test-unlink.h (test_unlink_func): Likewise.
30389         * tests/test-unlinkat.c (main): Likewise.
30390
30391         maint: make realtime library usage explicit
30392         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30393         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30394         * modules/settime (Link): Likewise.
30395         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30396
30397         test-stat-time: speed up execution
30398         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30399         warning on mingw.
30400         (nap): New helper function.
30401         (prepare_test): Use it to reduce sleep time.
30402         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30403         execution.
30404         * modules/stat-time-tests (configure.ac): Check for usleep.
30405
30406 2009-10-09  Jim Meyering  <meyering@redhat.com>
30407
30408         selinux-h: always use getfilecon wrappers
30409         * lib/getfilecon.c: New file.
30410         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30411         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30412         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30413         (fgetfilecon): Provide a stub.
30414         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30415         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30416         file unconditionally.
30417         When <selinux/selinux.h> is found, arrange to use wrappers.
30418         * modules/selinux-h (Files): Add getfilecon.c.
30419         (Makefile.am): Substitute include-next-related bits
30420         into the now-always-generated selinux/selinux.h file.
30421         * doc/glibc-functions/lgetfilecon.texi: New file.
30422         * doc/glibc-functions/fgetfilecon.texi: New file.
30423         * doc/glibc-functions/getfilecon.texi: New file.
30424         * doc/glibc-functions/getfilecon-desc.texi: New file.
30425         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30426         which to pull in the new files.
30427         * MODULES.html.sh (Misc): Add selinux-h.
30428
30429 2009-10-08  Jim Meyering  <meyering@redhat.com>
30430
30431         unistd: fix comment typo
30432         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30433
30434 2009-10-08  Eric Blake  <ebb9@byu.net>
30435
30436         areadlink: use SIZE_MAX consistently
30437         * modules/areadlink (Depends-on): Add stdint.
30438         * modules/areadlink-with-size (Depends-on): Likewise.
30439         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30440         gives NULL; drop sys/types, since unistd gives size_t; and add
30441         stdint for SIZE_MAX.
30442         (SIZE_MAX): Rely on headers.
30443         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30444         and add stdint.
30445         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30446         (SIZE_MAX): Likewise.
30447         (INITIAL_BUF_SIZE): Turn into enum.
30448         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30449
30450 2009-10-08  Jim Meyering  <meyering@redhat.com>
30451
30452         areadlinkat: avoid compilation failure
30453         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30454         Fix typo in comment.
30455
30456 2009-10-07  Eric Blake  <ebb9@byu.net>
30457
30458         areadlinkat-with-size: new module
30459         * modules/areadlinkat-with-size: New module.
30460         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30461         * lib/areadlink.h (areadlinkat): Declare it.
30462         * MODULES.html.sh (File system functions): Mention it.
30463         * modules/areadlinkat-with-size-tests: New test.
30464         * tests/test-areadlinkat-with-size.c: New file.
30465
30466         xreadlinkat: new module
30467         * modules/xreadlinkat: New module.
30468         * lib/xreadlinkat.c (xreadlinkat): New file.
30469         * lib/xreadlink.h (xreadlinkat): Declare it.
30470         * MODULES.html.sh (File system functions): Mention it.
30471
30472         areadlinkat: new module
30473         * lib/at-func.c (FUNC_FAIL): New define.
30474         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30475         * modules/areadlinkat: New module.
30476         * lib/linkat.c (areadlinkat): Move...
30477         * lib/areadlinkat.c (areadlinkat): ...to new file.
30478         * lib/areadlink.h (areadlinkat): Declare it.
30479         * modules/linkat (Depends-on): Add areadlinkat.
30480         * MODULES.html.sh (File system functions): Mention it.
30481         * modules/areadlinkat-tests: New test.
30482         * tests/test-areadlinkat.c: New file.
30483
30484         areadlink, areadlink-with-size: add tests
30485         * modules/areadlink-tests: New test.
30486         * modules/areadlink-with-size-tests: Likewise.
30487         * tests/test-areadlink.h: New file.
30488         * tests/test-areadlink.c: Likewise.
30489         * tests/test-areadlink-with-size.c: Likewise.
30490
30491         maint: minor cleanups
30492         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30493         _UNUSED_PARAMETER_ instead.
30494         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30495         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30496         * modules/linkat-tests (Files): Distribute test-link.h.
30497
30498         openat, utimens: whitespace cleanup
30499         * lib/openat.c: Prefer space throughout, rather than mix of 8
30500         spaces vs. tabs.
30501         * lib/at-func.c: Likewise.
30502         * lib/utimens.c: Likewise.
30503
30504         openat: avoid using wrong fd
30505         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30506         working directory chooses same fd.
30507         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30508
30509         mkdir, mkdirat: fix cygwin 1.5.x bug
30510         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30511         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30512         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30513         bug.
30514         (gl_PREREQ_MKDIR): Delete unused macro.
30515         * modules/mkdir (Files): Track file rename.
30516         (configure.ac): Update macro name.
30517         * modules/openat (Depends-on): Add mkdir.
30518         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30519
30520         mkdir, mkdirat: add tests
30521         * modules/mkdir-tests: New test.
30522         * tests/test-mkdir.h: New file.
30523         * tests/test-mkdir.c: Likewise.
30524         * tests/test-mkdirat.c: Likewise.
30525         * modules/openat-tests (Files): Add new files.
30526         (Makefile.am): Run new test.
30527
30528 2009-10-06  Eric Blake  <ebb9@byu.net>
30529
30530         doc: tweak *at function documentation
30531         * doc/posix-functions/faccessat.texi (faccessat): Mention
30532         known issue with replacement.
30533         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30534         * doc/posix-functions/linkat.texi (linkat): Likewise.
30535         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30536         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30537         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30538         * doc/posix-functions/renameat.texi (renameat): Likewise.
30539         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30540
30541         openat: fix GNU/Hurd bug in unlinkat
30542         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30543         broken.
30544         * doc/posix-functions/unlink.texi (unlink): Document this.
30545         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30546
30547         fdopendir: fix GNU/Hurd bug
30548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30549         allowing non-directory fds.
30550         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30552         * modules/dirent (Makefile.am): Substitute it.
30553         * lib/dirent.in.h (fdopendir): Declare replacement.
30554         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30555         * tests/test-fdopendir.c (main): Test something other than
30556         /dev/null, since on Hurd that behaves like a directory.
30557
30558         test-symlink: port to GNU/Hurd
30559         * tests/test-symlink.h (test_symlink): Relax expected errno.
30560
30561         doc: tweak more cygwin information
30562         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30563         now compatible with glibc.
30564         * doc/posix-functions/getopt.texi (getopt): Likewise.
30565
30566         getopt-gnu: add another test
30567         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30568         guarantee behavior relied on by m4.
30569         * tests/test-getopt.c (main): Use it.
30570         * modules/getopt-posix-tests (Depends-on): Add setenv.
30571         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30572
30573         getopt: fix compilation on darwin
30574         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30575         include.
30576         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30577         Reported by Ludovic Courtès.
30578
30579 2009-10-06  Bruno Haible  <bruno@clisp.org>
30580
30581         * modules/size_max (Description): Discourage its use.
30582         Reported by Simon Josefsson.
30583
30584 2009-10-06  Jim Meyering  <meyering@redhat.com>
30585
30586         linkat: avoid compilation failure
30587         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30588
30589 2009-10-05  Eric Blake  <ebb9@byu.net>
30590
30591         linkat: support Linux 2.6.17
30592         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30593         linkat on Linux, but allow cache variable override.
30594         * lib/linkat.c (rpl_linkat): Define override.
30595         * modules/linkat (Depends-on): Add symlinkat.
30596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30597         * modules/unistd (Makefile.am): Substitute it.
30598         * lib/unistd.in.h (linkat): Declare replacement.
30599         Reported by Pádraig Brady.
30600
30601         quotearg: port test to systems with C.UTF-8 locale
30602         * tests/test-quotearg.c (struct result_strings): Add another
30603         member, differentiating between C.ASCII and C.UTF-8 handling.
30604         (compare_strings): Add parameter.
30605         (main): Adjust all callers.
30606
30607         getopt: avoid clash with FreeBSD _getopt_internal
30608         * lib/getopt.in.h (_getopt_internal): Override the name.
30609         * lib/getopt_int.h (includes): Pick up any overrides.
30610         Reported by Reuben Thomas.
30611
30612         hash: allow C89 compilation
30613         * lib/hash.c (check_tuning): Move declaration before statement.
30614         Reported by Reuben Thomas.
30615
30616 2009-10-05  Karl Berry  <karl@gnu.org>
30617
30618         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30619
30620 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30621             Bruno Haible  <bruno@clisp.org>
30622
30623         * lib/uname.c (uname): Use a table-driven algorithm to compute
30624         Windows NT versions.
30625
30626 2009-10-04  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30629         program_invocation_short_name.
30630         * modules/progname (configure.ac): Test for presence of
30631         program_invocation_short_name.
30632         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30633
30634 2009-10-04  Bruno Haible  <bruno@clisp.org>
30635
30636         * lib/progname.c (set_program_name): Fix comment.
30637         Reported by Jim Meyering.
30638
30639 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30640             Bruno Haible  <bruno@clisp.org>
30641
30642         * lib/uname.c: Include <string.h>.
30643         (uname): Do only one call to GetVersionEx in the common case.
30644
30645 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30646             Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30649         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30650         (uname): Add support for Windows CE and various non-x86 CPU types.
30651
30652 2009-10-03  Bruno Haible  <bruno@clisp.org>
30653
30654         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30655         invocation to tests/configure.ac.
30656         Reported by Ian Beckwith <ianb@erislabs.net>.
30657
30658 2009-10-02  Eric Blake  <ebb9@byu.net>
30659
30660         fchdir: avoid compiler warning
30661         * lib/fchdir.c (canonicalize_file_name)
30662         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30663
30664         test-open: support mingw errno values
30665         * tests/test-open.h (test_open): Relax test.
30666         * tests/test-fopen.h (test_fopen): Likewise.
30667         * tests/test-openat-safer.c (main): Likewise.
30668
30669         open: fix opening directory on mingw
30670         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30671
30672         test-open: on GNU/Hurd, /dev/null is a directory
30673         * tests/test-fopen.h (main): Rename...
30674         (test_fopen): ...to this.  Use a guaranteed non-directory when
30675         confirming open behavior on trailing slash.
30676         * tests/test-openat-safer.c (main): Likewise.
30677         * tests/test-open.h (main): Likewise....
30678         (test_open): ...to this.
30679         * tests/test-fopen.c (main): Adjust caller.
30680         * tests/test-fopen-safer.c (main): Likewise.
30681         * tests/test-open.c (main): Likewise.
30682         * tests/test-fcntl-safer.c (main): Likewise.
30683         Reported by Samuel Thibault.
30684
30685         rename, fchdir: don't ignore chdir failure
30686         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30687         * lib/rename.c (rpl_rename) [W32]: Likewise.
30688         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30689         an empty destination directory if source cannot be renamed,
30690         although there is still possibility for failure.
30691         * doc/posix-functions/rename.texi (rename): Document the race.
30692         Reported by Jim Meyering.
30693
30694         maint: cleanup whitespace in recent commits
30695         * lib/rename.c (rpl_rename): Remove tabs.
30696         * tests/test-link.h (test_link): Likewise.
30697         * lib/fchdir.c (get_name): Likewise.
30698         Reported by Jim Meyering.
30699
30700 2009-10-02  Ben Pfaff  <blp@gnu.org>
30701
30702         relocatable-prog-wrapper: Add missing dependency on
30703         double-slash-root.
30704         * modules/relocatable-prog-wrapper: Add dependency.
30705         Reported by Ian Beckwith <ianb@erislabs.net>.
30706
30707 2009-10-02  Eric Blake  <ebb9@byu.net>
30708
30709         renameat: fix Solaris bugs
30710         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30711         needed fixing.
30712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30713         * modules/stdio (Makefile.am): Substitute it.
30714         * lib/stdio.in.h (renameat): Declare replacement.
30715         * lib/renameat.c (rpl_renameat): Implement fix.
30716
30717         renameat: new module
30718         * modules/renameat: New file.
30719         * lib/renameat.c (renameat): Likewise.
30720         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30722         * modules/stdio (Makefile.am): Substitute them.
30723         * lib/stdio.in.h (renameat): Declare it.
30724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30725         * doc/posix-functions/renameat.texi (renameat): Likewise.
30726         * modules/renameat-tests: New test.
30727         * tests/test-renameat.c: Likewise.
30728
30729         rename: fix mingw bugs
30730         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30731         directory overwrite bugs.
30732
30733         rename: fix another cygwin 1.5 bug
30734         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30735         checks.
30736         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30737         unnecessary cygwin workarounds.  Also work around bug with moving
30738         full directory onto an empty one.
30739         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30740
30741         rename-dest-slash: merge into rename module
30742         * modules/rename-dest-slash (Status): Mark obsolete.
30743         (Depends-on): Add rename.
30744         (Files): Let rename do it all.
30745         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30746         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30747         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30748         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30749         * lib/rename.c (rpl_rename): Update comments.
30750
30751         rename: fix cygwin 1.5.x bugs
30752         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30753         * lib/rename.c (rpl_rename): Work around them.
30754         * modules/rename (Depends-on): Add same-inode.
30755
30756         rename: fix Solaris 10 bug
30757         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30758         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30759         was the only bug.
30760
30761         rename: fix Solaris 9 bug
30762         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30763         on non-directory.  Avoid calling exit.
30764         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30765         strdup.
30766         * modules/rename-tests (Depends-on): Drop lstat.
30767         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30768         (gl_PREREQ_RENAME): Delete unused macro.
30769
30770         rename-dest-slash: fix NetBSD bug
30771         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30772         links.
30773         * modules/rename-dest-slash (Depends-on): Add same-inode.
30774
30775         rename-tests: new test, exposes several platform bugs
30776         * modules/rename-tests: New file.
30777         * tests/test-rename.h: Likewise.
30778         * tests/test-rename.c: Likewise.
30779         * doc/posix-functions/rename.texi (rename): Improve documentation,
30780         including bugs that will eventually be fixed in gnulib.
30781
30782 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30783
30784         * lib/uname.c: Include <stdlib.h>
30785         (uname): Assume version info is available.
30786
30787 2009-10-02  Jim Meyering  <meyering@redhat.com>
30788
30789         gnu-web-doc-update: correct --help output
30790         * build-aux/gnu-web-doc-update: Make --help output relevant.
30791
30792         gnu-web-doc-update: add standard options
30793         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30794
30795         gnu-web-doc-update: New module.
30796         Use this script to automatically update the on-line web documentation
30797         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30798         * modules/gnu-web-doc-update: New file, from coreutils.
30799         * build-aux/gnu-web-doc-update: New script.
30800
30801 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30802
30803         link: LoadLibrary is not needed.
30804         * lib/link.c: Use GetModuleHandle.
30805
30806 2009-10-01  Eric Blake  <ebb9@byu.net>
30807
30808         getopt: bump serial number
30809         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30810         change.
30811
30812         tests: tighten link, rmdir, and remove tests
30813         * tests/test-link.h (includes): No need to use <config.h> here.
30814         Clean up if directory hard link was created, otherwise test for
30815         trailing '.'.
30816         * tests/test-linkat.c (main): Simplify.
30817         * tests/test-remove.c (main): Enhance test for trailing '.'.
30818         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30819
30820 2009-10-01  Jim Meyering  <meyering@redhat.com>
30821
30822         maint.mk: requiring "make major" was annoying, for a "minor" release.
30823         What is intended is "stable", to contrast with alpha and beta,
30824         so require "make stable", not "make major".
30825         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30826         (get_tool_versions): Likewise.
30827         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30828
30829 2009-09-30  Ben Pfaff  <blp@gnu.org>
30830
30831         Fix broken build of replacement for Windows tmpfile().
30832         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30833         flags argument added along with the 'mkostemp' module.
30834
30835 2009-09-28  Bruno Haible  <bruno@clisp.org>
30836
30837         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30838         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30839         to 'remove_elt'.
30840         (gl_list_remove): Update.
30841         * lib/gl_list.c (gl_list_remove): Update.
30842         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30843         to 'remove_elt'.
30844         (gl_oset_remove): Update.
30845         * lib/gl_list.c (gl_oset_remove): Update.
30846         Reported by Eric Blake.
30847
30848 2009-09-28  Eric Blake  <ebb9@byu.net>
30849
30850         doc: mention yet more cygwin 1.7 status
30851         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30852         cygwin.
30853         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30854         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30855
30856         argp: fix test failure
30857         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30858         that are not upper-case.  Pass correct range to tolower.
30859
30860 2009-09-27  Jim Meyering  <meyering@redhat.com>
30861
30862         test-yesno: work around sparc-dash here-document infelicity
30863         Without this change, the literal \177 byte in a here document
30864         would make dash 0.5.5.1-3 access uninitialized memory.
30865         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30866         Instead, use a marker, "@", and filter through tr to create the desired
30867         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30868
30869 2009-09-27  Bruno Haible  <bruno@clisp.org>
30870
30871         Disable untested support for new flavours of ACLs on AIX.
30872         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30873         progress.
30874         * lib/set-mode-acl.c (qset_acl): Likewise.
30875
30876 2008-12-07  Bruno Haible  <bruno@clisp.org>
30877
30878         Add support for new flavours of ACLs on AIX. (Untested.)
30879         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30880         (file_has_acl): Add support for newer AIX.
30881         * lib/set-mode-acl.c (qset_acl): Likewise.
30882         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30883         Rainer Tammer <tammer@tammer.net>.
30884
30885 2009-09-26  Eric Blake  <ebb9@byu.net>
30886
30887         argp: fix compilation of getopt
30888         * lib/getopt.in.h (includes): Use different guard than glibc.
30889         Reported by Sergey Poznyakoff.
30890
30891         doc: mention more cygwin 1.7 status
30892         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30893         bug.
30894         * doc/posix-functions/execl.texi (execl): Likewise.
30895         * doc/posix-functions/execle.texi (execle): Likewise.
30896         * doc/posix-functions/execlp.texi (execlp): Likewise.
30897         * doc/posix-functions/execv.texi (execv): Likewise.
30898         * doc/posix-functions/execve.texi (execve): Likewise.
30899         * doc/posix-functions/execvp.texi (execvp): Likewise.
30900         * doc/glibc-functions/canonicalize_file_name.texi
30901         (canonicalize_file_name): Cygwin 1.7 now provides this.
30902         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30903         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30904         on AT_SYMLINK_NOFOLLOW.
30905
30906 2009-09-24  Eric Blake  <ebb9@byu.net>
30907
30908         test-linkat: make test more robust
30909         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30910
30911         getopt: fix inclusion guards for cygwin
30912         * modules/getopt-posix (Depends-on): Add include-next.
30913         (Makefile.am): Substitute more items in replacement header.
30914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30915         <getopt.h>.
30916         * lib/getopt.in.h (includes): Use split inclusion guard, and
30917         prefer <getopt.h> over include <unistd.h> when one is present.
30918         (option): Also override name of 'struct option'.
30919
30920         same-inode: revert prior change; it is not yet ready
30921         * NEWS: Undo mention of this change.
30922         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30923         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30924         * lib/cycle-check.c (cycle_check): Likewise.
30925         * lib/same.c (same_name): Likewise.
30926         * lib/at-func2.c (at_func2): Likewise.
30927
30928 2009-09-23  Eric Blake  <ebb9@byu.net>
30929
30930         linkat: new module
30931         * modules/linkat: New file.
30932         * lib/at-func2.c (at_func2): Likewise.
30933         * lib/linkat.c (linkat): Likewise.
30934         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30935         * lib/openat-priv.h (at_func2): Add declaration.
30936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30937         * modules/unistd (Makefile.am): Substitute them.
30938         * lib/unistd.in.h (linkat): Declare it.
30939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30940         * doc/posix-functions/linkat.texi (linkat): Likewise.
30941         * doc/posix-functions/link.texi (link): Tweak wording.
30942         * tests/test-link.c (main): Move guts...
30943         * tests/test-link.h (test_link): ...into new file.
30944         * modules/linkat-tests: New test.
30945         * tests/test-linkat.c: Likewise.
30946         * modules/link-tests (Files): Ship new file.
30947         (Depends-on): Add stdbool.
30948
30949         dirname: add library-safe mdir_name
30950         * lib/dirname.h (mdir_name): New prototype.
30951         * lib/dirname.c (dir_name): Move guts...
30952         (mdir_name): ...to new function that avoids xalloc_die.
30953
30954         fchdir: another mingw fix
30955         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30956         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30957         on mingw (where it has not yet been ported), and make it optional
30958         elsewhere.
30959         (_gl_register_fd): Use it.
30960
30961         same-inode: make SAME_INODE tri-state, to port to mingw
30962         * NEWS: Mention this change.
30963         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30964         st_ino always being 0.
30965         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30966         * lib/cycle-check.c (cycle_check): Likewise.
30967         * lib/same.c (same_name): Likewise.
30968
30969         lstat: avoid mingw compilation error
30970         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30971         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30972         lstat ourselves.
30973         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30974         was adequate.
30975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30976         the checks for lstat.
30977         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30978
30979         link: fix test failure on Solaris 9
30980         * lib/link.c (rpl_link): Don't assume link will catch bogus
30981         trailing slash on source.
30982
30983         test-symlinkat: enhance test
30984         * tests/test-readlink.c (main): Move guts...
30985         * tests/test-readlink.h (test_readlink): ...into new file.
30986         * tests/test-symlink.c (main): Move guts...
30987         * tests/test-symlink.h (test_symlink): ...into new file.
30988         * tests/test-symlinkat.c (main): Use new files for further
30989         coverage.
30990         (do_symlink, do_readlink): New helper functions.
30991         * modules/symlink-tests (Files): Ship new file.
30992         (Depends-on): Add stdbool.
30993         * modules/readlink-tests (Files): Ship new file.
30994         (Depends-on): Add stdbool.
30995         * modules/symlinkat-tests (Files): Use new files.
30996
30997 2009-09-23  Eric Blake  <ebb9@byu.net>
30998
30999         readlink: document portability issue with symlink length
31000         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31001         systems have bogus st_size on symlinks, and mention the
31002         areadlink-with-size module.
31003         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31004         * doc/posix-functions/readlink.texi (readlink): Mention the
31005         areadlink module, and ERANGE failure.
31006         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31007         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31008
31009         readlink: fix Solaris 9 bug with trailing slash
31010         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31011         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31012         * doc/posix-functions/readlink.texi (readlink): Document this.
31013         * modules/readlink-tests: New test.
31014         * tests/test-readlink.c: Likewise.
31015
31016         readlink: fix cygwin 1.5.x bug with return type
31017         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31018         * lib/unistd.in.h (readlink): Use ssize_t.
31019         * lib/readlink.c (readlink): Likewise.
31020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31021         * modules/unistd (Makefile.am): Substitute it.
31022         * lib/unistd.in.h (readlink): Declare replacement.
31023         * doc/posix-functions/readlink.texi (readlink): Document this.
31024
31025         symlink: use throughout gnulib
31026         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31027         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31028         symlink is not used.
31029         * modules/symlinkat (Depends-on): Add symlink.
31030         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31031         * modules/canonicalize-tests (Depends-on): Likewise.
31032         * modules/lstat-tests (Depends-on): Likewise.
31033         * modules/openat-tests (Depends-on): Likewise.
31034         * modules/remove-tests (Depends-on): Likewise.
31035         * modules/rmdir-tests (Depends-on): Likewise.
31036         * modules/unlink-tests (Depends-on): Likewise.
31037         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31038         * tests/test-canonicalize.c (symlink): Likewise.
31039         * tests/test-fstatat.c (symlink): Likewise.
31040         * tests/test-lstat.c (symlink): Likewise.
31041         * tests/test-remove.c (symlink): Likewise.
31042         * tests/test-rmdir.c (symlink): Likewise.
31043         * tests/test-unlink.c (symlink): Likewise.
31044         * tests/test-unlinkat.c (symlink): Likewise.
31045
31046         symlink: new module, for Solaris 9 bug
31047         * modules/symlink: New file.
31048         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31049         * lib/symlink.c: Likewise.
31050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31051         * modules/unistd (Makefile.am): Substitute them.
31052         * lib/unistd.in.h (symlink): Declare replacement.
31053         * MODULES.html.sh (File system functions): Mention it.
31054         * doc/posix-functions/symlink.texi (symlink): Likewise.
31055         * modules/symlink-tests: New test.
31056         * tests/test-symlink.c: Likewise.
31057
31058 2009-09-23  Bruno Haible  <bruno@clisp.org>
31059
31060         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31061         when needed.
31062         Test case: gnulib-tool --import --with-tests atexit inttypes.
31063         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31064
31065 2009-09-23  Bruno Haible  <bruno@clisp.org>
31066
31067         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31068         subcommand, not in a subshell.
31069
31070 2009-09-22  Eric Blake  <ebb9@byu.net>
31071
31072         unistd: sort replacement declarations
31073         * lib/unistd.in.h: Sort declarations.
31074
31075         open, openat: minor optimization
31076         * lib/open.c (open): If open succeeded, len is non-zero.
31077         * lib/openat.c (rpl_openat): Likewise.
31078
31079         link-follow: ensure correct result
31080         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31081         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31082         distinguish between possible failures.
31083
31084 2009-09-21  Eric Blake  <ebb9@byu.net>
31085
31086         fts: avoid compiler warning
31087         * lib/fts.c (dirent_inode_sort_may_be_useful)
31088         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31089
31090 2009-09-19  Bruno Haible  <bruno@clisp.org>
31091
31092         * lib/progreloc.c (canonicalize_file_name): New declaration.
31093
31094 2009-09-19  Eric Blake  <ebb9@byu.net>
31095
31096         link: fix quoting
31097         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31098
31099         openat: fix openat bugs on Solaris 9
31100         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31101         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31102         * modules/openat (Depends-on): Add open.
31103         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31104         * modules/fcntl-h (Makefile.am): Substitute it.
31105         * lib/fcntl.in.h (openat): Declare replacement.
31106         * doc/posix-functions/openat.texi (openat): Document this.
31107
31108         openat: move fstatat and unlinkat into correct files
31109         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31110         compiled.
31111         * lib/openat.c (fstatat, unlinkat): Move...
31112         * lib/fstatat.c (fstatat): ...into correct files.
31113         * lib/unlinkat.c (unlinkat): Likewise.
31114
31115         openat: fix unlinkat bugs on Solaris 9
31116         * lib/unlinkat.c (unlinkat): New file.
31117         * modules/openat (Depends-on): Add unlink.
31118         (Files): Distribute it.
31119         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31120         trailing slash behavior is broken.
31121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31122         * modules/unistd (Makefile.am): Substitute it.
31123         * lib/unistd.in.h (unlinkat): Declare replacement.
31124         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31125
31126         openat: fix fstatat bugs on Solaris 9
31127         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31128         stat.
31129         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31130
31131         test-unlinkat: enhance test, to expose Solaris 9 bug
31132         * tests/test-unlink.c (main): Factor guts...
31133         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31134         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31135         * tests/test-rmdir.c (main): Adjust caller.
31136         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31137         (unlinker): New helper function.
31138         (rmdirat): Enhance check.
31139         * modules/rmdir-tests (Depends-on): Add stdbool.
31140         * modules/unlink-tests (Depends-on): Likewise.
31141         (Files): Add test-unlink.h.
31142         * modules/openat-tests (Files): Likewise.
31143         (Depends-on): Add unlinkdir.
31144
31145         test-fstatat: new test, to expose Solaris 9 bugs
31146         * tests/test-stat.c (main): Factor guts...
31147         * tests/test-stat.h (test_stat_func): ...into new file.
31148         * tests/test-lstat.c (main): Factor guts...
31149         * tests/test-lstat.h (test_lstat_func): ...into new file.
31150         * tests/test-fstatat.c: New file.
31151         * modules/stat-tests (Files): Add test-stat.h.
31152         * modules/lstat-tests (Files): Add test-lstat.h.
31153         (Depends-on): Add stdbool.
31154         * modules/openat-tests (Depends-on): Add pathmax.
31155         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31156         (Makefile.am): Run new test.
31157
31158         remove: new module, for mingw and Solaris 9 bugs
31159         * modules/remove: New file.
31160         * lib/remove.c: Likewise.
31161         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31163         * modules/stdio (Makefile.am): Use them.
31164         * lib/stdio.in.h (remove): Declare replacement.
31165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31166         * doc/posix-functions/remove.texi (remove): Likewise.
31167         * modules/remove-tests: New test.
31168         * tests/test-remove.c: Likewise.
31169
31170         unlink: new module, for Solaris 9 bug
31171         * modules/unlink: New file.
31172         * lib/unlink.c: Likewise.
31173         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31175         * modules/unistd (Makefile.am): Use them.
31176         * lib/unistd.in.h (stat): Declare replacement.
31177         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31178         * doc/posix-functions/unlink.texi (unlink): Likewise.
31179         * modules/unlink-tests: New test.
31180         * tests/test-unlink.c: Likewise.
31181
31182         lstat: fix Solaris 9 bug
31183         * lib/lstat.c (lstat): Also check for trailing slash on
31184         non-symlink, non-directories.  Use stat module to simplify logic.
31185         * doc/posix-functions/lstat.texi (lstat): Document it.
31186         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31187         (configure.ac): Check for symlink.
31188         * tests/test-lstat.c (main): Add more tests.
31189
31190         stat: add as dependency to other modules
31191         * modules/chown (Depends-on): Add stat.
31192         * modules/euidaccess (Depends-on): Likewise.
31193         * modules/fchdir (Depends-on): Likewise.
31194         * modules/isdir (Depends-on): Likewise.
31195         * modules/link (Depends-on): Likewise.
31196         * modules/lstat (Depends-on): Likewise.
31197         * modules/mkdir-p (Depends-on): Likewise.
31198         * modules/modechange (Depends-on): Likewise.
31199         * modules/open (Depends-on): Likewise.
31200         * modules/readlink (Depends-on): Likewise.
31201         * modules/same (Depends-on): Likewise.
31202
31203         stat: fix Solaris 9 bug
31204         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31205         slash.
31206         * lib/stat.c (rpl_stat): Work around it.
31207         * doc/posix-functions/stat.texi (stat): Update documentation.
31208
31209         stat: new module, for mingw bug
31210         * modules/stat: New file.
31211         * lib/stat.c: Likewise.
31212         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31213         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31214         * modules/sys_stat (Makefile.am): Use them.
31215         * lib/sys_stat.in.h (stat): Declare replacement.
31216         * lib/openat.c (fstatat): Deal with lstat and stat being function
31217         macros.
31218         * modules/openat (Depends-on): Add inline.
31219         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31220         * doc/posix-functions/stat.texi (stat): Likewise.
31221         * modules/stat-tests: New test.
31222         * tests/test-stat.c: Likewise.
31223
31224 2009-09-19  Jim Meyering  <meyering@redhat.com>
31225
31226         syntax-check: detect unnecessary inclusion of canonicalize.h
31227         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31228
31229 2009-09-19  Eric Blake  <ebb9@byu.net>
31230
31231         canonicalize-lgpl: adjust clients to use correct header
31232         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31233         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31234         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31235         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31236         * lib/progreloc.c (includes): Likewise.
31237
31238 2009-09-19  Jim Meyering  <meyering@redhat.com>
31239
31240         test-posixtm.c: correct a comment
31241         * tests/test-posixtm.c: Correct first-line comment.
31242         Spotted by Eric Blake.
31243
31244 2009-09-16  Jim Meyering  <meyering@redhat.com>
31245
31246         posixtm-tests: make T const-correct; add a test case
31247         * tests/test-posixtm.c (T): Declare const.
31248         Add a test for -(2^31+1).
31249         Remove useless can-succeed-only-in-2002 test.
31250
31251         posixtm-tests: adjust the sole failing test
31252         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31253         expected output matches what mktime now produces.  Cross-checked via
31254         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31255
31256         posixtm: move #ifdef'd tests into a new module
31257         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31258         * tests/test-posixtm.c: ... this new file.
31259         * modules/posixtm-tests: New module.
31260
31261 2009-09-19  Eric Blake  <ebb9@byu.net>
31262
31263         openat: simplify use of at-func.c
31264         * lib/at-func.c (includes): Include prerequisites here, to
31265         simplify requirements on client files.
31266         * lib/openat-priv.h: Add double-inclusion guard.
31267         * lib/faccessat.c (includes): Simplify.
31268         * lib/fchmodat.c (includes): Likewise.
31269         * lib/fchownat.c (includes): Likewise.
31270         * lib/mkdirat.c (includes): Likewise.
31271         * lib/mkfifoat.c (includes): Likewise.
31272         * lib/symlinkat.c (includes): Likewise.
31273
31274         openat: allow return of fd 0
31275         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31276         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31277         unistd-safer.
31278         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31279         <fcntl.h>; this module does not leak fds.
31280         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31281         must be allowed to return 0, leaving openat_safer to add the
31282         safety.
31283         (openat_permissive): Avoid writing to just-opened fd 2 if
31284         restoring the current directory fails.
31285         * lib/openat-die.c (openat_restore_fail): Add comment.
31286         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31287         (save_cwd): Guarantee safe fd, but without use of open_safer.
31288         * tests/test-openat.c: New test.
31289         * modules/openat-tests (Files, Makefile.am): Distribute and build
31290         new file.
31291
31292         relocatable-prog-wrapper: fix build
31293         * modules/relocatable-prog-wrapper (Files): Update name of
31294         canonicalize m4 file, broken on 2009-09-17.
31295         Reported by emad hajjar <aleppos@hotmail.com>.
31296
31297 2009-09-19  Bruno Haible  <bruno@clisp.org>
31298
31299         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31300         * lib/safe-alloc.c: Likewise.
31301         Reported by Ian Beckwith <ianb@erislabs.net>.
31302
31303 2009-09-18  Bruno Haible  <bruno@clisp.org>
31304
31305         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31306         Reported by <erobles@sensacd.com.mx>.
31307
31308 2009-09-17  Eric Blake  <ebb9@byu.net>
31309
31310         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31311         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31312         slashes when checking if last component is missing.
31313         * tests/test-canonicalize.c (main): Test this.
31314
31315         canonicalize, canonicalize-lgpl: honor // if distinct from /
31316         * modules/canonicalize (Files): Add double-slash-root.m4.
31317         * modules/canonicalize-lgpl (Files): Likewise.
31318         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31319         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31320         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31321         fallback definition.
31322         (canonicalize_filename_mode): Use it to protect //.
31323         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31324         (__realpath): Likewise.
31325         * tests/test-canonicalize.c (main): Test this.
31326         * tests/test-canonicalize-lgpl.c (main): Likewise.
31327         * modules/canonicalize-tests (Depends-on): Add same-inode.
31328         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31329
31330         canonicalize-lgpl: fix glibc bug with trailing slash
31331         * m4/canonicalize-lgpl.m4: Move contents...
31332         * m4/canonicalize.m4: ...here.
31333         (gl_CANONICALIZE_LGPL): Factor realpath check...
31334         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31335         glibc 2.3.5 bug, fixed 2005-04-27.
31336         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31337         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31338         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31339         * modules/canonicalize-lgpl (Files): Manage file rename.
31340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31341         * modules/stdlib (Makefile.am): Substitute witness.
31342         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31343         is needed.
31344         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31345         replacement is required.
31346         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31347         * doc/glibc-functions/canonicalize_file_name.texi
31348         (canonicalize_file_name): Document this.
31349         * doc/posix-functions/realpath.texi (realpath): Likewise.
31350
31351         canonicalize-lgpl: reject non-directory with trailing slash
31352         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31353         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31354         catches failures in glibc 2.3.5.
31355         * tests/test-canonicalize.c (main): Likewise.
31356
31357         canonicalize-lgpl: use native realpath if it works
31358         * lib/canonicalize-lgpl.c (realpath): Guard with
31359         FUNC_REALPATH_WORKS.
31360         * lib/stdlib.in.h (realpath): Make declaration optional based on
31361         HAVE_REALPATH.
31362         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31363         native realpath works.
31364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31365         * modules/stdlib (Makefile.am): Substitute witness.
31366
31367         canonicalize, canonicalize-lgpl: use <stdlib.h>
31368         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31369         (Include): Mention <stdlib.h>.
31370         (configure.ac): Mention functions we provide.
31371         * modules/canonicalize (configure.ac): Likewise.
31372         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31373         realpath if canonicalize_file_name is missing.
31374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31375         * modules/stdlib (Makefile.am): Substitute witnesses.
31376         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31377         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31378         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31379         * NEWS: Document this.
31380         * doc/glibc-functions/canonicalize_file_name.texi
31381         (canonicalize_file_name): Likewise.
31382         * doc/posix-functions/realpath.texi (realpath): Likewise.
31383         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31384
31385         test-canonicalize: consolidate into single C program
31386         * tests/test-canonicalize.sh: Delete; move setup into...
31387         * tests/test-canonicalize.c (main): ...the program, making it
31388         easier to run in debugger.  Add some tests.
31389         * modules/canonicalize-tests (Files): Remove unused file.
31390         (Depends-on): Add progname.
31391         (configure.ac, Makefile.am): Simplify.
31392
31393         test-canonicalize-lgpl: consolidate into single C program
31394         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31395         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31396         easier to run in debugger.  Add some tests.
31397         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31398         (configure.ac, Makefile.am): Simplify.
31399
31400         canonicalize: avoid resolvepath
31401         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31402         unnecessary checks.
31403         * lib/canonicalize.c (includes): Simplify.
31404         (canonicalize_file_name): Drop resolvepath implementation.
31405         * modules/canonicalize (Depends-on): Drop filenamecat.
31406
31407         canonicalize: don't lose errno
31408         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31409         over calls to free.
31410
31411         canonicalize: simplify errno handling
31412         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31413         assignment.
31414
31415         canonicalize, canonicalize-lgpl: update module dependencies
31416         * modules/canonicalize (Depends-on): Add extensions, lstat,
31417         pathmax, stdlib.
31418         (Files): Drop pathmax.h.
31419         (configure.ac): Adjust macro name.
31420         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31421         lstat, stdlib, sys_stat.
31422         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31423         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31424         extensions.
31425         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31426         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31427         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31428         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31429         declaration, if available.
31430         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31431         we can rely on the readlink module.
31432         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31433         (includes): Use <unistd.h> unconditionally.
31434
31435 2009-09-17  Eric Blake  <ebb9@byu.net>
31436
31437         maint: make Include sections of modules consistent
31438         * modules/alloca: Use only header name; no need to list #include.
31439         * modules/alloca-opt: Likewise.
31440         * modules/arpa_inet: Likewise.
31441         * modules/canon-host: Likewise.
31442         * modules/configmake: Likewise.
31443         * modules/dirent: Likewise.
31444         * modules/eealloc: Likewise.
31445         * modules/environ: Likewise.
31446         * modules/fchdir: Likewise.
31447         * modules/fcntl: Likewise.
31448         * modules/fcntl-h: Likewise.
31449         * modules/gethrxtime: Likewise.
31450         * modules/gettime: Likewise.
31451         * modules/ignore-value: Likewise.
31452         * modules/inet_ntop: Likewise.
31453         * modules/inet_pton: Likewise.
31454         * modules/inttypes: Likewise.
31455         * modules/isnand-nolibm: Likewise.
31456         * modules/isnanf-nolibm: Likewise.
31457         * modules/mbchar: Likewise.
31458         * modules/mbfile: Likewise.
31459         * modules/mbiter: Likewise.
31460         * modules/mbuiter: Likewise.
31461         * modules/netdb: Likewise.
31462         * modules/netinet_in: Likewise.
31463         * modules/nproc: Likewise.
31464         * modules/pagealign_alloc: Likewise.
31465         * modules/poll: Likewise.
31466         * modules/printf-frexp: Likewise.
31467         * modules/pthread: Likewise.
31468         * modules/putenv: Likewise.
31469         * modules/random_r: Likewise.
31470         * modules/relocatable-prog: Likewise.
31471         * modules/search: Likewise.
31472         * modules/select: Likewise.
31473         * modules/selinux-h: Likewise.
31474         * modules/settime: Likewise.
31475         * modules/signal: Likewise.
31476         * modules/size_max: Likewise.
31477         * modules/socklen: Likewise.
31478         * modules/ssize_t: Likewise.
31479         * modules/stdarg: Likewise.
31480         * modules/stdbool: Likewise.
31481         * modules/stddef: Likewise.
31482         * modules/stdint: Likewise.
31483         * modules/stdio: Likewise.
31484         * modules/stdlib: Likewise.
31485         * modules/string: Likewise.
31486         * modules/strings: Likewise.
31487         * modules/sys_file: Likewise.
31488         * modules/sys_ioctl: Likewise.
31489         * modules/sys_select: Likewise.
31490         * modules/sys_socket: Likewise.
31491         * modules/sys_stat: Likewise.
31492         * modules/sys_time: Likewise.
31493         * modules/sys_times: Likewise.
31494         * modules/sys_utsname: Likewise.
31495         * modules/sys_wait: Likewise.
31496         * modules/sysexits: Likewise.
31497         * modules/time: Likewise.
31498         * modules/times: Likewise.
31499         * modules/tmpfile: Likewise.
31500         * modules/trim: Likewise.
31501         * modules/unistd: Likewise.
31502         * modules/wchar: Likewise.
31503         * modules/wctype: Likewise.
31504
31505 2009-09-17  Bruno Haible  <bruno@clisp.org>
31506
31507         Make getdate.y compile on QNX and NetBSD 5 / i386.
31508         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31509         TIME_T_FITS_IN_LONG_INT.
31510         * lib/getdate.y (long_time_t): New type.
31511         (relative_time): Change type of 'seconds' field to long_time_t.
31512         (get_date): Update types of local variables. Check against overflow
31513         during conversion from long_time_t to time_t.
31514         Reported by Matt Kraai <kraai@ftbfs.org>
31515         and Hasso Tepper <hasso@netbsd.org>.
31516
31517 2009-09-17  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/COPYING: Update copyright years.
31520         * modules/README: Likeiwse.
31521         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31522         Reported by Ian Beckwith <ianb@erislabs.net>.
31523
31524 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31525
31526         * users.txt: Update references for gnuit package.
31527
31528 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31529
31530         * m4/getdelim.m4: Fix typo in copyright line.
31531
31532 2009-09-17  Bruno Haible  <bruno@clisp.org>
31533
31534         * lib/atoll.c: Use the standard header with GPL copyright.
31535         * lib/argz.in.h: Likewise.
31536         * lib/glob.c: Likewise.
31537         * lib/glob-libc.h: Likewise.
31538         * lib/random_r.c: Likewise.
31539         * lib/siglist.h: Likewise.
31540         * lib/strsignal.c: Likewise.
31541         Reported by Ian Beckwith <ianb@erislabs.net>.
31542
31543 2009-09-17  Eric Blake  <ebb9@byu.net>
31544
31545         rmdir: ensure correct dependency order
31546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31547
31548 2009-09-17  Bruno Haible  <bruno@clisp.org>
31549
31550         Disable assertion that fails on NetBSD 5 / i386.
31551         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31552         Reported by Sam Steingold <sds@gnu.org>
31553         and Hasso Tepper <hasso@netbsd.org>.
31554
31555 2009-09-16  Eric Blake  <ebb9@byu.net>
31556
31557         unlinkdir: port to mingw
31558         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31559         on which no one can unlink a directory.
31560
31561         stdlib: sort witness names
31562         * modules/stdlib (Makefile.am): Sort replacements.
31563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31564         * lib/stdlib.in.h: Likewise.
31565
31566         parse-duration-tests: avoid link failure
31567         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31568         LIBINTL.
31569         Reported by Tom G. Christensen.
31570
31571         openat-tests: ensure unlinkat behaves like rmdir
31572         * tests/test-rmdir.c (main): Factor guts...
31573         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31574         * modules/rmdir-tests (Files): Ship new file.
31575         * modules/openat-tests: New test.
31576         * tests/test-unlinkat.c: Likewise.
31577
31578         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31579         * modules/rmdir-errno (Status, Notice): Now obsolete.
31580
31581         rmdir: work around cygwin 1.5.x and mingw bugs
31582         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31583         * lib/rmdir.c (rmdir): Work around it.
31584         * modules/rmdir (Status, Notice): No longer obsolete.
31585         (Files): Add dos.m4.
31586         (Depends-on): Add unistd.
31587         (configure.ac): Set witnesses.
31588         (License): Relax to LGPLv2+.
31589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31590         * modules/unistd (Makefile.am): Substitute witnesses.
31591         * lib/unistd.in.h (rmdir): Declare replacement.
31592         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31593         * modules/rmdir-tests: New tests.
31594         * tests/test-rmdir.c: Likewise.
31595
31596 2009-09-15  Eric Blake  <ebb9@byu.net>
31597
31598         fchdir: improve use of replacement functions
31599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31600         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31601         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31602         REPLACE_CLOSEDIR.
31603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31604         * modules/sys_stat (Makefile.am): Substitute correct witness.
31605         * modules/dirent (Makefile.am): Likewise.
31606         * modules/unistd (Makefile.am): Likewise.
31607         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31608         * lib/unistd.in.h (dup): Likewise.
31609         * lib/sys_stat.in.h (fstat): Likewise.
31610
31611         maint: ignore gnulib-tool temp files
31612         * .gitignore: Ignore files created during gnulib-tool --test.
31613
31614 2009-09-13  Jim Meyering  <meyering@redhat.com>
31615
31616         posixtm: don't reject a time that specify "60" as the number of seconds
31617         * lib/posixtm.c (posixtime): The code to reject invalid dates
31618         would also reject a time specified with the .60 suffix.
31619         But POSIX allows that, in order to accommodate leap seconds.
31620         So don't reject it.
31621         (main): Adjust tests accordingly.
31622         * modules/posixtm (Depends-on): Add stpcpy.
31623
31624 2009-09-11  Jim Meyering  <meyering@redhat.com>
31625
31626         announce-gen: include [$release_type] in emitted Subject:
31627         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31628         e.g., [stable] in the emitted Subject: line.
31629
31630 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31631
31632         Remove obsolete macros from several modules.
31633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31634         obsolete Autoconf macros with their modern counterparts.
31635         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31636         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31638         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31639         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31640         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31642         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31643         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31644         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31645         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31647         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31648         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31649         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31650         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31651         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31652         * m4/time_r.m4 (gl_TIME_R): Likewise.
31653         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31654         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31655         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31656
31657         Fix copyright header in build-aux scripts.
31658         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31659         recommendation.
31660         * build-aux/ncftpput-ftp: Likewise.
31661         * build-aux/update-copyright: Likewise.
31662
31663 2009-09-09  Eric Blake  <ebb9@byu.net>
31664
31665         test-link: allow Linux choice of errno
31666         * tests/test-link.c (main): Relax test for alternate error.
31667
31668         strndup: fix improper m4 caching
31669         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31670         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31671         (gl_PREREQ_STRNDUP): Delete.
31672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31673         * modules/string (Makefile.am): Substitute it.
31674         * lib/string.in.h (strndup): Modernize prototype.
31675
31676         getcwd: port to mingw
31677         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31678         different from the POSIX assumptions made throughout the getcwd
31679         module; fortunately, the mingw getcwd does not need replacement.
31680         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31681         * modules/getcwd-tests: New test.
31682         * tests/test-getcwd.c: Likewise.
31683
31684         link: fix platform bugs
31685         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31686         * lib/link.c (link): Work around them.  Fix related mingw bug.
31687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31688         * modules/unistd (Makefile.am): Substitute it.
31689         * lib/unistd.in.h (link): Declare replacement.
31690         * doc/posix-functions/link.texi (link): Document this.
31691         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31692
31693         test-link: consolidate into single C program, test more cases
31694         * tests/test-link.sh: Delete.
31695         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31696         at least Cygwin and Solaris.
31697         * modules/link-tests (Files): Remove unused file.
31698         (Depends-on): Add errno, sys_stat.
31699         (Makefile.am): Simplify.
31700
31701 2009-09-08  Bruno Haible  <bruno@clisp.org>
31702
31703         Work around towlower, towupper bug on mingw.
31704         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31705         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31706         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31707         * doc/posix-functions/towupper.texi: Likewise.
31708         Reported by Eric Blake.
31709
31710 2009-09-08  Jim Meyering  <meyering@redhat.com>
31711
31712         build: don't try to run autoheader if we don't use it
31713         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31714         is not used in configure.ac.
31715
31716 2009-09-08  Eric Blake  <ebb9@byu.net>
31717
31718         euidaccess: fix compilation error
31719         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31720
31721         rawmemchr: relax license
31722         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31723         okay.
31724         Reported by Jim Meyering.
31725
31726         mkfifoat: new module
31727         * modules/mkfifoat: New file.
31728         * lib/mkfifoat.c: Likewise.
31729         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31730         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31731         * modules/sys_stat (Makefile.am): Use them.
31732         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31733         * MODULES.html.sh (File system functions): Mention module.
31734         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31735         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31736         * modules/mkfifoat-tests: New test.
31737         * tests/test-mkfifoat.c: Likewise.
31738
31739         strchrnul: relax license
31740         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31741         okay.
31742         Reported by Jim Meyering.
31743
31744 2009-09-08  Eric Blake  <ebb9@byu.net>
31745
31746         fstatat: fix compilation on Solaris
31747         * lib/fstatat.c (includes): Add fcntl.h.
31748         Reported by Pádraig Brady.
31749
31750 2009-09-07  Eric Blake  <ebb9@byu.net>
31751
31752         rename: modernize replacement
31753         * modules/rename (Depends-on): Add stdio.
31754         (configure.ac): Declare witness.
31755         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31756         stdio take care of replacement.
31757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31758         * modules/stdio (Makefile.am): Substitute them.
31759         * lib/stdio.in.h (rename): Declare replacement.
31760         * lib/rename.c (includes): Allow cross-compilation to non-windows
31761         machines.
31762         * doc/posix-functions/rename.texi (rename): Improve
31763         documentation.
31764
31765         stdio: sort witness names
31766         * modules/stdio (Makefile.am): Sort replacements.
31767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31768         * lib/stdio.in.h: Likewise.
31769
31770         getcwd: minor cleanups
31771         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31772         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31773
31774         openat: provide more convenience names
31775         * modules/faccessat (configure.ac): Add C witness.
31776         * lib/unistd.in.h (readlinkat): Fix typo.
31777         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31778         convenience wrappers.
31779         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31780         wrappers in syntax checks.
31781
31782 2009-09-06  Eric Blake  <ebb9@byu.net>
31783
31784         doc: fix comments in recent patches
31785         * lib/faccessat.c: Mention correct function.
31786         * lib/fchmodat.c: Likewise.
31787         * lib/fchownat.c: Likewise.
31788         * lib/symlinkat.c: Likewise.
31789         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31790         constants.
31791
31792         faccessat, symlinkat: continue cleanup of previous patch
31793         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31794         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31795         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31797         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31798         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31799         set.
31800
31801 2009-09-06  Bruno Haible  <bruno@clisp.org>
31802
31803         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31804         (fstatat): Declare if GNULIB_FSTATAT is set.
31805         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31806         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31807         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31808         * modules/fcntl-h (Files): Remove m4/openat.m4.
31809         * modules/sys_stat (Files): Remove m4/openat.m4.
31810         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31811         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31812         * modules/unistd (Files): Remove m4/openat.m4.
31813         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31814         GNULIB_OPENAT.
31815         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31816         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31818         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31819         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31820         gl_OPENAT_DEFAULTS.
31821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31822         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31823         Don't require gl_OPENAT_DEFAULTS.
31824         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31825         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31826         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31827         (gl_OPENAT_DEFAULTS): Remove macro.
31828
31829 2009-09-06  Bruno Haible  <bruno@clisp.org>
31830
31831         * modules/openat (configure.ac): Remove unneeded witness.
31832
31833 2009-09-06  Bruno Haible  <bruno@clisp.org>
31834
31835         Set errno to ENOSYS when a function is entirely unsupported.
31836         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31837         EOPNOTSUPP.
31838         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31839         * modules/chown (Depends-on): Remove errno.
31840
31841 2009-09-06  Bruno Haible  <bruno@clisp.org>
31842
31843         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31844
31845 2009-09-06  Bruno Haible  <bruno@clisp.org>
31846
31847         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31848
31849 2009-09-06  Ben Pfaff  <blp@gnu.org>
31850             Bruno Haible  <bruno@clisp.org>
31851
31852         Work around a glibc bug in strtok_r.
31853         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31854         Undefine if UNDEFINE_STRTOK_R is set.
31855         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31857         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31858         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31859         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31860         UNDEFINE_STRTOK_R.
31861         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31862
31863 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31864
31865         exclude: minor fix
31866         * lib/exclude.c: Include wctype.h
31867
31868 2009-09-06  Akim Demaille  <demaille@gostai.com>
31869
31870         bootstrap: improve error message
31871         * build-aux/bootstrap (find_tool): Upon failure, report the list
31872         of candidates.
31873         Honor the initial value of the envvar.
31874
31875 2009-09-05  Eric Blake  <ebb9@byu.net>
31876
31877         symlinkat: new module
31878         * modules/symlinkat: New file.
31879         * lib/symlinkat.c: Likewise.
31880         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31882         * modules/unistd (Makefile.am): Use them.
31883         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31884         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31885         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31886         * MODULES.html.sh (File system functions): Mention module.
31887         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31888         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31889         * modules/symlinkat-tests: New test.
31890         * tests/test-symlinkat.c: Likewise.
31891
31892         test-openat-safer: add more checks
31893         * tests/test-openat-safer.c (main): Check more code paths.
31894
31895 2009-09-05  Jim Meyering  <meyering@redhat.com>
31896
31897         syntax-check: detect unnecessary inclusion of openat.h
31898         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31899
31900 2009-09-05  Bruno Haible  <bruno@clisp.org>
31901
31902         Support towlower, towupper.
31903         * doc/posix-functions/towlower.texi: Mention module wctype.
31904         * doc/posix-functions/towupper.texi: Likewise.
31905         * lib/wctype.in.h (towlower, towupper): New functions.
31906         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31907         (ASSERT): New macro.
31908         (e): New variable.
31909         (main): Test also towlower, towupper. Test WEOF argument.
31910         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31911
31912 2009-09-05  Bruno Haible  <bruno@clisp.org>
31913
31914         Fix conversion behaviour when the input is invalid.
31915         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31916         mark occurring in first pass of indirect conversion.
31917         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31918         input.
31919         Found by clang's static analyzer.
31920
31921 2009-09-05  Bruno Haible  <bruno@clisp.org>
31922
31923         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31924         where direct conversion is possible.
31925
31926 2009-09-04  Eric Blake  <ebb9@byu.net>
31927
31928         openat: fail with ENOENT on empty name
31929         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31930         buffer.
31931
31932         link-follow: fix logic bug in prior patch
31933         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31934         reversed sense of yes and no in prior patch.  Avoid confusing
31935         compilation failure with desired semantics.
31936
31937         link-follow: accomodate mingw and cross-compilation
31938         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31939         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31940         cross-compilation results to -1, to make linkat easier to
31941         implement when cross-compiling.  Trivially support mingw.
31942         * modules/link-follow (configure.ac): Call new name.
31943         * NEWS: Mention this.
31944
31945 2009-09-03  Eric Blake  <ebb9@byu.net>
31946
31947         faccessat: compile replacement
31948         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31949         needed.
31950
31951         fts: fix compilation error
31952         * lib/fts.c (includes): Re-add "openat.h", for
31953         openat_needs_fchdir.
31954
31955         faccessat: new module
31956         * modules/faccessat: New file.
31957         * lib/faccessat.c: Likewise.
31958         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31960         * modules/unistd (Makefile.am): Use it.
31961         * lib/unistd.in.h (faccessat): Declare it.
31962         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31963         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31964         * MODULES.html.sh (File system functions): Mention it.
31965         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31966         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31967
31968         euidaccess: prefer POSIX over non-standard implementation
31969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31970         * lib/euidaccess.c (euidaccess): Use it if available.
31971
31972         openat: make template easier to use
31973         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31974         AT_FUNC_F2 to be undefined.
31975         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31976         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31977         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31978         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31979         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31980         Likewise.
31981         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31982         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31983         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31984         Likewise.
31985
31986         openat: declare in POSIX headers
31987         * NEWS: Mention this.
31988         * modules/openat (configure.ac): Declare witnesses.
31989         (Depends-on): Add fcntl-h, sys_stat, unistd.
31990         (Include): Mention correct headers.
31991         * modules/fcntl-h (Depends-on): Add link-warning.
31992         (Files): Add openat.m4.
31993         (Makefile.am): Substitute witnesses.
31994         * modules/sys_stat (Files, Makefile.am): Likewise.
31995         * modules/unistd (Files, Makefile.am): Likewise.
31996         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31997         (gl_OPENAT_DEFAULTS): New macro.
31998         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32001         (SYS_STAT_H): Remove unused variable.
32002         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32003         * lib/fcntl--.h (includes): Remove unneeded header.
32004         * lib/openat-safer.c (includes): Likewise.
32005         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32006         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32007         appropriate headers.
32008         (__OPENAT_PREFIX): Delete.
32009         * lib/fcntl.in.h (openat): Provide declaration.
32010         (AT_FDCWD): Fix Solaris bug.
32011         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32012         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32013         * lib/fchmodat.c (includes):  Adjust to find declaration.
32014         * lib/fchownat.c (includes): Likewise.
32015         * lib/mkdirat.c (includes): Likewise.
32016         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32017         still visible.
32018
32019 2009-09-02  Eric Blake  <ebb9@byu.net>
32020
32021         errno: use consistently
32022         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32023         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32024         * lib/canonicalize.c (ELOOP): Likewise.
32025         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32026         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32027         * lib/lchown.c (EOPNOTSUPP): Likewise.
32028         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32029         * lib/savewd.c (ESTALE): Likewise.
32030         * lib/settime.c (ENOSYS): Likewise.
32031         * lib/utimens.c (ENOSYS): Likewise.
32032         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32033         * lib/chdir-safer.c (ELOOP): Likewise.
32034         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32035         * modules/c-stack (Depends-on): Add errno.
32036         * modules/canonicalize (Depends-on): Likewise.
32037         * modules/chdir-safer (Depends-on): Likewise.
32038         * modules/fdopendir (Depends-on): Likewise.
32039         * modules/inet_ntop (Depends-on): Likewise.
32040         * modules/inet_pton (Depends-on): Likewise.
32041         * modules/lchown (Depends-on): Likewise.
32042         * modules/openat (Depends-on): Likewise.
32043         * modules/savewd (Depends-on): Likewise.
32044         * modules/settime (Depends-on): Likewise.
32045         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32046
32047         fts: avoid leaking fds
32048         * modules/fts (Depends-on): Add cloexec.
32049         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32050         flag.
32051
32052         fts: make directory fds more robust
32053         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32054         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32055
32056         backupfile, chdir-long, fts, savedir: make safer
32057         * lib/backupfile.c (includes): Use "dirent--.h", since
32058         numbered_backup can write to stderr during readdir.
32059         * lib/savedir.c (includes): Likewise.
32060         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32061         emulation can write to stderr on failure.
32062         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32063         * lib/getcwd.c: Document why opendir_safer is unused.
32064         * lib/glob.c: Likewise.
32065         * lib/scandir.c: Likewise.
32066         * lib/openat-proc.c: Likewise, for open_safer.
32067         * modules/backupfile (Depends-on): Add dirent-safer.
32068         * modules/savedir (Depends-on): Likewise.
32069         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32070         * modules/chdir-long (Depends-on): Add openat-safer.
32071
32072         openat-safer: new module
32073         * modules/openat-safer: New file.
32074         * lib/openat-safer.c: Likewise.
32075         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32076         * lib/fcntl-safer.h (openat_safer): Declare.
32077         * lib/fcntl--.h (openat): Override.
32078         * MODULES.html.sh (File descriptor based I/O): Mention it.
32079         * lib/openat.h: Add double-inclusion guards.
32080         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32081         "fcntl--.h", so we can implement openat.
32082         * modules/openat-safer-tests: New test.
32083         * tests/test-openat-safer.c: New file.
32084
32085         dirent-safer: new module
32086         * modules/dirent-safer: New file.
32087         * lib/dirent--.h: Likewise.
32088         * lib/dirent-safer.h: Likewise.
32089         * lib/opendir-safer.c: Likewise.
32090         * m4/dirent-safer.m4: Likewise.
32091         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32092         * modules/dirent-safer-tests: New test.
32093         * tests/test-dirent-safer.c: New file.
32094         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32095
32096         fdopendir: optimize on mingw
32097         * lib/unistd.in.h (_gl_directory_name): New prototype.
32098         * lib/fchdir.c (_gl_directory_name): Implement it.
32099         (fchdir): Use it to simplify implementation.
32100         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32101         fchdir, when available, to avoid calling [f]chdir().
32102
32103         fdopendir: split into its own module
32104         * lib/openat.c (fdopendir): Move...
32105         * lib/fdopendir.c: ...into new file.
32106         * modules/fdopendir: New module.
32107         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32108         * modules/openat (Depends-on): Add fdopendir.
32109         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32110         fdopendir here.
32111         * modules/savedir (Depends-on): Only need fdopendir, not full
32112         openat.
32113         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32114         * lib/openat.h (fdopendir): Drop prototype.
32115         * lib/dirent.in.h (fdopendir): Provide prototype.
32116         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32117         * modules/dirent (Makefile.am): Substitute them.
32118         * MODULES.html.sh (File system functions): Mention it.
32119         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32120         * modules/fdopendir-tests: New file.
32121         * tests/test-fdopendir.c: Likewise.
32122
32123         fchdir: use more consistent macro convention
32124         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32125         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32126         REPLACE_FCHDIR, rather than relying on config.h macros.
32127         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32128         inside a single make-time REPLACE_FCHDIR block, rather than using
32129         the config.h FCHDIR_REPLACEMENT.
32130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32131         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32132         Manage fstat replacement.
32133         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32134         REPLACE_FCHDIR.
32135         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32136         (Makefile.am): Substitute REPLACE_FCHDIR.
32137         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32138         FCHDIR_REPLACEMENT.
32139         * lib/dup-safer.c (dup_safer): Likewise.
32140         * lib/dup2.c (rpl_dup2): Likewise.
32141         * lib/dup3.c (rpl_dup3): Likewise.
32142         * lib/open.c (rpl_open): Likewise.
32143
32144         fchdir: simplify error handling, and support dup3
32145         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32146         stdbool, malloc-posix, realloc-posix.
32147         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32148         (ensure_dirs_slot): Return false on allocation failure.
32149         (rpl_dup2): Delete.
32150         (_gl_register_dup): New function.
32151         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32152         (_gl_register_fd): Close fd on allocation failure.
32153         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32154         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32155         prototype.
32156         (rpl_dup2_fchdir): Delete prototype.
32157         * lib/open.c (open): Update caller.
32158         * lib/dup2.c (dup2): Track fchdir metadata.
32159         * lib/dup3.c (dup3): Likewise.
32160         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32162
32163 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32164
32165         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32166         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32167         don't pass arguments to AC_OUTPUT.
32168
32169 2009-09-02  Bruno Haible  <bruno@clisp.org>
32170
32171         * modules/mkdtemp (License): Relicense under LGPLv2+.
32172         Reported by Paolo Bonzini.
32173
32174 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32175
32176         Replace uses of obsolete autoconf macros in Jim's modules.
32177         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32178         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32179         can evoke a warning from autoconf when run with -Wobsolete
32180         enabled.  They were declared obsolete for good reasons (see
32181         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32182         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32183         should not continue using the deprecated macros.
32184         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32185         obsolete Autoconf macros with modern counterparts.
32186         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32187         * m4/dos.m4 (gl_AC_DOS): Likewise.
32188         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32189         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32190         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32191         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32192         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32193         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32194         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32195         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32196         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32197         Likewise.
32198         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32199         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32200         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32201         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32202         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32203         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32204
32205 2009-09-01  Eric Blake  <ebb9@byu.net>
32206
32207         fchdir: fix off-by-one bug in previous patch
32208         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32209         (_gl_unregister_fd): Delete useless if.
32210
32211 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32212
32213         maint.mk: sort the list of syntax-check rules
32214         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32215         easier to get a sense of progress when the rules are run sequentially
32216         and take a long time.
32217
32218 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32219
32220         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32221         * modules/netinet_in: Likewise.
32222         * modules/sys_file: Likewise.
32223         * modules/sys_ioctl: Likewise.
32224         * modules/sys_select: Likewise.
32225         * modules/sys_socket: Likewise.
32226         * modules/sys_stat: Likewise.
32227         * modules/sys_time: Likewise.
32228         * modules/sys_times: Likewise.
32229         * modules/sys_utsname: Likewise.
32230         * modules/sys_wait: Likewise.
32231
32232 2009-09-01  Jim Meyering  <meyering@redhat.com>
32233
32234         fts: help ensure that return values are not ignored
32235         * lib/fts_.h (__GNUC_PREREQ): Define.
32236         (__attribute_warn_unused_result__): Define.
32237         (fts_children, fts_close, fts_open, fts_read): Declare with
32238         __attribute_warn_unused_result__.
32239
32240         fts: fts_close now fails also when closing a dir file descriptor fails
32241         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32242         and propagate to caller, along with errno.
32243
32244         announce-gen: correct formatting in --help output
32245         * build-aux/announce-gen (usage): Move the one-line description in
32246         --help output "up", to where it belongs, just after Usage:.
32247
32248 2009-08-31  Eric Blake  <ebb9@byu.net>
32249
32250         fchdir: port to mingw
32251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32252         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32253         opened, then use a substitute.
32254         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32255         replacement.
32256         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32257         (_gl_register_fd): No need to check stat if open already filters
32258         all directories.
32259         (fchdir): Fix error condition to match POSIX.
32260         * modules/fchdir (Depends-on): Add sys_stat.
32261         * doc/posix-functions/open.texi (open): Document the limitation.
32262         * modules/fchdir-tests: New file.
32263         * tests/test-fchdir.c: Likewise.
32264
32265         canonicalize: allow cross-testing from cygwin to mingw
32266         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32267         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32268         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32269         Likewise.
32270         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32271         target does not support symlinks.
32272         * tests/test-canonicalize-lgpl.sh: Likewise.
32273
32274         chown: avoid compilation warning on mingw
32275         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32276         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32277         mingw.
32278         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32279         * modules/chown (Depends-on): Add errno.
32280
32281 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32282
32283         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32284         command.
32285
32286 2009-08-31  Jim Meyering  <meyering@redhat.com>
32287
32288         canonicalize: remove useless initialization
32289         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32290         initialization of local, "end".
32291
32292 2009-08-30  Bruno Haible  <bruno@clisp.org>
32293
32294         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32295         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32296         ENOSYS.
32297
32298 2009-08-30  Bruno Haible  <bruno@clisp.org>
32299
32300         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32301         /usr/xpg4/bin/tr when it exists.
32302         * tests/test-pipe-filter-gi1.sh: Likewise.
32303
32304 2009-08-30  Bruno Haible  <bruno@clisp.org>
32305
32306         Work around deficient /usr/bin/id program on Solaris.
32307         * tests/test-file-has-acl.sh (ID): New variable.
32308         * tests/test-set-mode-acl.sh (ID): Likewise.
32309         * tests/test-copy-acl.sh (ID): Likewise.
32310         * tests/test-copy-file.sh (ID): Likewise.
32311
32312 2009-08-30  Bruno Haible  <bruno@clisp.org>
32313
32314         New module 'xstriconveh'.
32315         * lib/xstriconveh.h: New file.
32316         * lib/xstriconveh.c: New file.
32317         * modules/xstriconveh: New file.
32318
32319 2009-08-30  Bruno Haible  <bruno@clisp.org>
32320
32321         Make it easier to use mem_cd_iconveh.
32322         * lib/striconveh.h (iconveh_t): New type.
32323         (iconveh_open, iconveh_close): New declarations.
32324         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32325         with a single 'const iconveh_t *' argument.
32326         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32327         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32328         with a single 'const iconveh_t *' argument.
32329         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32330         * tests/test-striconveh.c (main): Update.
32331         * NEWS: Mention the change.
32332
32333 2009-08-30  Bruno Haible  <bruno@clisp.org>
32334
32335         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32336         problem.
32337
32338 2009-08-30  Bruno Haible  <bruno@clisp.org>
32339
32340         Work around iconv_open problem on Solaris.
32341         * lib/iconv_open-solaris.gperf: New file.
32342         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32343         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32344         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32345         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32346         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32347         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32348
32349 2009-08-29  Jim Meyering  <meyering@redhat.com>
32350
32351         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32352         * top/maint.mk (cvs-check): Remove target; it was just an alias
32353         to the better-named vc-diff-check.
32354         (maintainer-distcheck): Remove rule.  It was used only from
32355         the (alpha/beta/major) target, and all of its commands but one
32356         were coreutils-specific.
32357         (vc-dist): Remove rule.
32358         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32359         Run vc-diff-check, not vc-dist.
32360         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32361
32362 2009-08-27  Bruno Haible  <bruno@clisp.org>
32363
32364         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32365         of 0.
32366
32367 2009-08-27  Bruno Haible  <bruno@clisp.org>
32368
32369         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32370         compilers.
32371         * doc/func.texi: Document the SunPRO C bug.
32372
32373 2009-08-27  Bruno Haible  <bruno@clisp.org>
32374
32375         Fix link error on Solaris.
32376         * tests/test-parse-duration.c (xstrdup): Remove function.
32377
32378 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32379
32380         ignore-value: handle pointer types, too
32381         * lib/ignore-value.h (__attribute__): Remove definition.
32382         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32383         of a more concise and more-often effective "(void) i" statement.
32384         (ignore_ptr): New function to suppress warnings from functions that
32385         return pointers, and to make it explicit that one function doesn't
32386         handle all cases.
32387
32388 2009-08-25  Bruno Haible  <bruno@clisp.org>
32389
32390         dup2: work around a Linux bug.
32391         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32392         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32393         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32394         Reported by Simon Josefsson.
32395
32396 2009-08-25  Jim Meyering  <meyering@redhat.com>
32397
32398         libguestfs uses gnulib
32399         * users.txt: Add libguestfs.
32400
32401 2009-08-24  Eric Blake  <ebb9@byu.net>
32402
32403         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32404         * lib/pipe2.c (includes): Add binary-io.h.
32405         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32406
32407 2009-08-24  Bruno Haible  <bruno@clisp.org>
32408
32409         Tolerate declared but missing accept4 syscall.
32410         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32411         available.
32412         * lib/sys_socket.in.h (accept4): If the function is already present,
32413         override it.
32414         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32415         * modules/accept4 (Makefile.am): Compile accept4.c always.
32416         Reported by Paolo Bonzini and Eric Blake.
32417
32418 2009-08-23  Bruno Haible  <bruno@clisp.org>
32419
32420         New module 'accept4'.
32421         * lib/sys_socket.in.h (accept4): New declaration.
32422         * lib/accept4.c: New file.
32423         * m4/accept4.m4: New file.
32424         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32425         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32426         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32427         HAVE_ACCEPT4.
32428         * modules/accept4: New file.
32429         * doc/glibc-functions/accept4.texi: Mention the new module.
32430
32431 2009-08-24  Jim Meyering  <meyering@redhat.com>
32432
32433         progname: also set global program_invocation_name, when possible
32434         Before this change, a libtool-enabled program that calls glibc's
32435         error function would report the program name as
32436         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32437         * modules/progname (configure.ac): Check for a declaration of
32438         program_invocation_name.
32439         * lib/progname.c:  Include <errno.h>.
32440         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32441         Set program_invocation_name.
32442
32443 2009-08-23  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/dup3.c: Include <string.h>.
32446
32447 2009-08-23  Bruno Haible  <bruno@clisp.org>
32448
32449         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32450         * lib/pipe2.c (pipe2): Likewise.
32451         Suggested by Eric Blake.
32452
32453 2009-08-23  Bruno Haible  <bruno@clisp.org>
32454
32455         Tolerate declared but missing dup3 syscall.
32456         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32457         * lib/unistd.in.h (dup3): If the function is already present,
32458         override it.
32459         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32460         * modules/dup3 (Makefile.am): Compile dup3.c always.
32461         Reported by Paolo Bonzini.
32462
32463 2009-08-23  Bruno Haible  <bruno@clisp.org>
32464
32465         Tolerate declared but missing pipe2 syscall.
32466         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32467         available.
32468         * lib/unistd.in.h (pipe2): If the function is already present,
32469         override it.
32470         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32471         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32472         Reported by Paolo Bonzini.
32473
32474 2009-08-23  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/pipe2.c (pipe2): Move #ifs inside function.
32477
32478 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32479
32480         quotearg: document limitations of quote_these_too
32481         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32482         those limitations are created.
32483         * lib/quotearg.h (set_char_quoting): Document that digits and
32484         letters that are special after backslash are not permitted.
32485         (quotearg_char): Cross-reference set_char_quoting documentation.
32486
32487 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32488
32489         quotearg: implement custom_quoting_style
32490         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32491         right_quote fields.
32492         (set_custom_quoting): New public function.
32493         (quotearg_buffer_restyled): Add left_quote and right_quote
32494         arguments, handle them very much like locale quoting, and update
32495         all uses.
32496         (quotearg_n_custom): New public function.
32497         (quotearg_n_custom_mem): New public function.
32498         (quotearg_custom): New public function.
32499         (quotearg_custom_mem): New public function.
32500         * lib/quotearg.h: Prototype and document new public functions.
32501         (enum quoting_style): For escape_quoting_style and
32502         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32503         ignored even though they're otherwise like c_quoting_style.
32504         Add custom_quoting_style member and document with comparison to
32505         clocale_quoting_style.
32506         * tests/test-quotearg.c (custom_quotes): New array.
32507         (custom_results): New array.
32508         (main): Extend to test custom quoting.
32509
32510 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32511
32512         quotearg: fix right quote escaping when it's in quote_these_too
32513         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32514         quote, be sure to prepend only one backslash.
32515         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32516         (main): Test it.
32517
32518 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32519
32520         quotearg-tests: test escaping of embedded locale quotes
32521         * tests/test-quotearg.c (struct result_strings): Add member for
32522         new input.
32523         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32524         (inputs): Add new input.
32525         (results_g): Add expected results.
32526         (flag_results): Likewise.
32527         (locale_results): Likewise.
32528         (compare_strings): Check those.
32529
32530 2009-08-23  Bruno Haible  <bruno@clisp.org>
32531
32532         Tests for module 'dup3'.
32533         * modules/dup3-tests: New file.
32534         * tests/test-dup3.c: New file.
32535
32536         New module 'dup3'.
32537         * lib/unistd.in.h (dup3): New declaration.
32538         * lib/dup3.c: New file.
32539         * m4/dup3.m4: New file.
32540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32541         HAVE_DUP3.
32542         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32543         * modules/dup3: New file.
32544         * doc/glibc-functions/dup3.texi: Mention the new module.
32545
32546 2009-08-23  Bruno Haible  <bruno@clisp.org>
32547
32548         Tweak the dup2 test.
32549         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32550         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32551         the test file is still empty. Fix argument order of lseek.
32552
32553 2009-08-23  Bruno Haible  <bruno@clisp.org>
32554
32555         Avoid test link errors when the modules getopt-gnu, gettext are used.
32556         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32558
32559 2009-08-23  Bruno Haible  <bruno@clisp.org>
32560
32561         Fix getdtablesize() on mingw.
32562         * lib/getdtablesize.c (getdtablesize): Implement differently.
32563         * lib/unistd.in.h (getdtablesize): Improve comment.
32564
32565 2009-08-23  Bruno Haible  <bruno@clisp.org>
32566
32567         New module 'mkostemp'.
32568         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32569         * lib/stdlib.in.h (mksotemp): New declaration.
32570         * lib/mkostemp.c: New file, from glibc with modifications.
32571         * lib/tempname.h (GT_FILE): Remove outdated comment.
32572         (gen_tempname): Add flags argument.
32573         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32574         (__GT_FILE): Map to 1.
32575         (small_open, large_open): Remove macros.
32576         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32577         * lib/mkstemp.c (mkstemp): Update.
32578         * lib/mkdtemp.c (mkdtemp): Likewise.
32579         * m4/mkostemp.m4: New file.
32580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32581         HAVE_MKOSTEMP.
32582         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32583         HAVE_MKOSTEMP.
32584         * modules/mkostemp: New file, based on modules/mkstemp.
32585         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32586         * NEWS: Mention the change.
32587
32588 2009-08-23  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32591         Reported by Eric Blake.
32592
32593 2009-08-23  Bruno Haible  <bruno@clisp.org>
32594
32595         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32596         Reported by Eric Blake.
32597
32598 2009-08-23  Bruno Haible  <bruno@clisp.org>
32599
32600         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32601         * modules/pipe2 (Depends-on): Likewise.
32602
32603 2009-08-23  Eric Blake  <ebb9@byu.net>
32604
32605         fcntl-h: add O_TTY_INIT support
32606         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32607         * tests/test-fcntl-h.c (o): Test it.
32608         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32609
32610         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32611         * modules/fcntl: Move <fcntl.h> header replacement...
32612         * modules/fcntl-h: ...to new name, so as not to collide with
32613         like-named function.
32614         * tests/test-fcntl.c: Rename...
32615         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32616         * modules/fcntl-tests: Rename...
32617         * modules/fcntl-h-tests: ...to this.  Update test file name.
32618         * modules/chdir-long (Depends-on): Update clients.
32619         * modules/chdir-safer (Depends-on): Likewise.
32620         * modules/fcntl-safer (Depends-on): Likewise.
32621         * modules/fts (Depends-on): Likewise.
32622         * modules/mkancesdirs (Depends-on): Likewise.
32623         * modules/mkdir-p (Depends-on): Likewise.
32624         * modules/open (Depends-on): Likewise.
32625         * modules/savewd (Depends-on): Likewise.
32626         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32627         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32628
32629 2009-08-22  Bruno Haible  <bruno@clisp.org>
32630
32631         * modules/binary-io (License): Relicense under LGPL.
32632         * modules/pipe2 (License): Likewise.
32633
32634 2009-08-22  Bruno Haible  <bruno@clisp.org>
32635
32636         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32637         return value.
32638         * lib/pipe-filter-gi.c (filter_init): Likewise.
32639         Reported by Eric Blake.
32640
32641 2009-08-22  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32644         * modules/pipe (Depends-on): Add pipe2.
32645
32646 2009-08-22  Bruno Haible  <bruno@clisp.org>
32647
32648         Tests for module 'pipe2'.
32649         * modules/pipe2-tests: New file.
32650         * tests/test-pipe2.c: New file.
32651
32652         New module 'pipe2'.
32653         * lib/unistd.in.h (pipe2): New declaration.
32654         * lib/pipe2.c: New file.
32655         * m4/pipe2.m4: New file.
32656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32657         HAVE_PIPE2.
32658         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32659         * modules/pipe2: New file.
32660         * doc/glibc-functions/pipe2.texi: Mention the new module.
32661
32662 2009-08-22  Bruno Haible  <bruno@clisp.org>
32663
32664         Reference some new glibc functions.
32665         * doc/glibc-functions/accept4.texi: New file.
32666         * doc/glibc-functions/dup3.texi: New file.
32667         * doc/glibc-functions/mkostemp.texi: New file.
32668         * doc/glibc-functions/pipe2.texi: New file.
32669         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32670         (Glibc sys/socket.h): Refer to accept4.
32671         (Glibc unistd.h): Refer to dup3, pipe2.
32672         Reported by Eric Blake.
32673
32674 2009-08-22  Jim Meyering  <meyering@redhat.com>
32675             Bruno Haible  <bruno@clisp.org>
32676
32677         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32678         This makes it so packages using automake-1.11's silent-rules option
32679         can print e.g., a single "GEN    configmake.h" line, rather than
32680         the 30+ statements that perform the job.  If you want to see the
32681         actual commands, you can still run "make V=1".
32682         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32683         so that make output is abbreviated when those variables are defined
32684         appropriately.
32685         * modules/argz: Likewise.
32686         * modules/arpa_inet: Likewise.
32687         * modules/byteswap: Likewise.
32688         * modules/configmake: Likewise.
32689         * modules/dirent: Likewise.
32690         * modules/errno: Likewise.
32691         * modules/fcntl: Likewise.
32692         * modules/float: Likewise.
32693         * modules/fnmatch: Likewise.
32694         * modules/getopt-posix: Likewise.
32695         * modules/glob: Likewise.
32696         * modules/iconv_open: Likewise.
32697         * modules/inttypes: Likewise.
32698         * modules/localcharset: Likewise.
32699         * modules/locale: Likewise.
32700         * modules/math: Likewise.
32701         * modules/netdb: Likewise.
32702         * modules/netinet_in: Likewise.
32703         * modules/poll: Likewise.
32704         * modules/posix_spawnp-tests: Likewise.
32705         * modules/sched: Likewise.
32706         * modules/search: Likewise.
32707         * modules/selinux-h: Likewise.
32708         * modules/signal: Likewise.
32709         * modules/spawn: Likewise.
32710         * modules/stdarg: Likewise.
32711         * modules/stdbool: Likewise.
32712         * modules/stddef: Likewise.
32713         * modules/stdint: Likewise.
32714         * modules/stdio: Likewise.
32715         * modules/stdlib: Likewise.
32716         * modules/string: Likewise.
32717         * modules/strings: Likewise.
32718         * modules/sys_file: Likewise.
32719         * modules/sys_ioctl: Likewise.
32720         * modules/sys_select: Likewise.
32721         * modules/sys_socket: Likewise.
32722         * modules/sys_stat: Likewise.
32723         * modules/sys_time: Likewise.
32724         * modules/sys_times: Likewise.
32725         * modules/sys_utsname: Likewise.
32726         * modules/sys_wait: Likewise.
32727         * modules/sysexits: Likewise.
32728         * modules/time: Likewise.
32729         * modules/unistd: Likewise.
32730         * modules/wchar: Likewise.
32731         * modules/wctype: Likewise.
32732
32733 2009-08-22  Jim Meyering  <meyering@redhat.com>
32734
32735         announce-gen: detect write failure
32736         * build-aux/announce-gen: Add Coda at end.
32737         Remove equivalent-but-more-verbose block at top.
32738
32739 2009-08-19  Akim Demaille  <demaille@gostai.com>
32740
32741         bootstrap: --help to stdout.
32742         * bootstrap (usage): Don't send --help to stderr.
32743         Use a here doc instead of a long string.
32744
32745 2009-08-21  Eric Blake  <ebb9@byu.net>
32746
32747         test-popen-safer: split from test-popen
32748         * tests/test-popen.c (main): Move...
32749         * tests/test-popen.h: ...into new file.
32750         * tests/test-popen-safer2.c: New file.
32751         * modules/popen-tests (Files): Add test-popen.h.
32752         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32753         Suggested by Bruno Haible.
32754
32755         test-fcntl-safer: split from test-open
32756         * tests/test-open.c (main): Move...
32757         * tests/test-open.h: ...into new file.
32758         * tests/test-fcntl-safer.c: New file.
32759         * modules/open-tests (Files): Add test-open.h.
32760         * modules/fcntl-safer-tests: New file.
32761         Suggested by Bruno Haible.
32762
32763         test-fopen-safer: split from test-fopen
32764         * tests/test-fopen.c (main): Move...
32765         * tests/test-fopen.h: ...into new file.
32766         * tests/test-fopen-safer.c: New file.
32767         * modules/fopen-tests (Files): Add test-fopen.h.
32768         * modules/fopen-safer-tests: New file.
32769         Suggested by Bruno Haible.
32770
32771 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32772
32773         popen-safer: test O_CLOEXEC at run-time.
32774         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32775
32776 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32777
32778         fcntl: move more flags to the header
32779         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32780         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32781         * lib/fcntl.in.h: Do both things here.
32782
32783 2009-08-21  Jim Meyering  <meyering@redhat.com>
32784
32785         consistently remove $@-t before redirecting to it
32786         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32787         * modules/alloca-opt: Likewise.
32788         * modules/byteswap: Likewise.
32789         * modules/fnmatch: Likewise.
32790         * modules/getopt-posix: Likewise.
32791         * modules/glob: Likewise.
32792         * modules/poll: Likewise.
32793         * modules/posix_spawnp-tests: Likewise.
32794         * modules/sys_socket: Likewise.
32795         * modules/sysexits: Likewise.
32796
32797 2009-08-21  Eric Blake  <ebb9@byu.net>
32798
32799         popen: simplify access to original popen
32800         * lib/popen.c (rpl_popen): No need to worry about popen being a
32801         macro.
32802         Reported by Bruno Haible.
32803
32804 2009-08-20  Eric Blake  <ebb9@byu.net>
32805
32806         build: avoid some compiler warnings
32807         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32808         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32809         type.
32810         (new_exclude_segment, excluded_file_pattern_p)
32811         (excluded_file_name_p): Reduce scope.
32812         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32813         old-style declaration.
32814
32815 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32816
32817         * tests/test-exclude1.sh: Handle Windows EOL.
32818         * tests/test-exclude2.sh: Likewise.
32819         * tests/test-exclude3.sh: Likewise.
32820         * tests/test-exclude4.sh: Likewise.
32821         * tests/test-exclude5.sh: Likewise.
32822         * tests/test-exclude6.sh: Likewise.
32823         * tests/test-exclude7.sh: Likewise.
32824
32825 2009-08-19  Akim Demaille  <demaille@gostai.com>
32826
32827         bootstrap: find sha1sum when named gsha1sum.
32828         * bootstrap (find_tool): New.
32829         ($SHA1SUM): New.
32830         Use it.
32831
32832 2009-08-20  Jim Meyering  <meyering@redhat.com>
32833
32834         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32835         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32836         expression that converts "." in a file name to "\." in the resulting
32837         regexp.  Start with a dummy statement, so that prior shell variable
32838         definitions are expanded portably.  Reported by Simon Josefsson.
32839
32840 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32841
32842         Fix polling for writeability of a screen buffer.
32843         * lib/poll.c: Distinguish input and screen buffers for the
32844         Win32 implementation.
32845         * lib/select.c: Likewise.
32846
32847 2009-08-19  Eric Blake  <ebb9@byu.net>
32848
32849         popen-safer: prevent popen from clobbering std descriptors
32850         * modules/popen-safer: New file.
32851         * lib/popen-safer.c: Likewise.
32852         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32853         * lib/stdio--.h (popen): Provide override.
32854         * lib/stdio-safer.h (popen_safer): Provide declaration.
32855         * tests/test-popen.c (includes): Partially test this.
32856         * modules/popen-safer-tests: New file, for more tests.
32857         * tests/test-popen-safer.c: Likewise.
32858         * MODULES.html.sh (file stream based Input/Output): Mention it.
32859
32860         tests: test some of the *-safer modules
32861         * modules/fopen-safer (Depends-on): Add fopen.
32862         * modules/fcntl-safer (Depends-on): Add fcntl.
32863         * modules/stdlib-safer (Depends-on): Add stdlib.
32864         (configure.ac): Set indicator.
32865         * modules/unistd-safer (configure.ac): Likewise.
32866         * modules/tmpfile-safer (configure.ac): Likewise.
32867         (Depends-on): Add tmpfile.
32868         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32869         active.
32870         * tests/test-fopen.c (includes): Test safer versions when they are
32871         in use.
32872         * tests/test-open.c (includes): Likewise.
32873
32874         popen: fix cygwin 1.5 bug when stdin closed
32875         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32876         * modules/popen: New file.
32877         * modules/popen-tests: Likewise.
32878         * tests/test-popen.c: Likewise.
32879         * m4/popen.m4: Likewise.
32880         * lib/popen.c: Likewise.
32881         * lib/stdio.in.h (popen): New declaration.
32882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32883         * modules/stdio (Makefile.am): Likewise.
32884         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32885
32886 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32887
32888         maint.mk: give full control over update-copyright exclusions
32889         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32890         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32891         (update-copyright): Don't force inclusion of top-level
32892         ChangeLog.  Don't force exclusion of all COPYING files, but make
32893         them the default exclusion instead.
32894
32895 2009-08-16  Bruno Haible  <bruno@clisp.org>
32896
32897         Fix test failures on Solaris 10.
32898         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32899         tests when Solaris iconv() is used.
32900         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32901         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32902         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32903         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32904         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32905
32906 2009-08-16  Bruno Haible  <bruno@clisp.org>
32907
32908         Fix test failures on Solaris 10.
32909         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32910         'tr' program and pass it as first argument.
32911         * tests/test-pipe-filter-gi1.sh: Likewise.
32912         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32913         program as first argument.
32914         * tests/test-pipe-filter-gi1.c (main): Likewise.
32915
32916 2009-08-16  Eric Blake  <ebb9@byu.net>
32917
32918         fpurge: fix previous commits
32919         * modules/fpurge (Makefile.am): Make replacement conditional,
32920         partially reverting 2007-04-29 change; missed in previous
32921         attempt.
32922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32923         is missing.
32924
32925 2009-08-16  Bruno Haible  <bruno@clisp.org>
32926
32927         Clarify fpurge's effect on the file position.
32928         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32929         * tests/test-fpurge.c (main): Make a second pass for checking the file
32930         position.
32931
32932 2009-08-16  Bruno Haible  <bruno@clisp.org>
32933
32934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32935         declaration of fpurge is missing.
32936         * tests/test-fpurge.c (main): Check that the file has not more contents
32937         than expected. Close the file before removing it.
32938
32939 2009-08-15  Eric Blake  <ebb9@byu.net>
32940
32941         fpurge: don't wrap working cygwin implementation
32942         * lib/fpurge.c (fpurge): Fix comment typo.
32943         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32944         1.7 to avoid replacement.
32945         * tests/test-fpurge.c (main): Enhance test.
32946
32947 2009-08-15  Eric Blake  <ebb9@byu.net>
32948         and Jim Meyering  <meyering@redhat.com>
32949
32950         test-update-copyright: skip if perl is insufficient
32951         * tests/test-update-copyright.sh: Failure to run maintainer tool
32952         should not cause testsuite failure on cygwin 1.5.
32953
32954 2009-08-14  Eric Blake  <ebb9@byu.net>
32955
32956         doc: mention more functions added in cygwin 1.7.0
32957         * doc/posix-headers/limits.texi (limits.h): Update for recent
32958         cygwin additions.
32959         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32960         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32961         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32962         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32963         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32964
32965 2009-08-14  Eric Blake  <ebb9@byu.net>
32966
32967         maint.mk: simplify update-copyright rule
32968         * top/maint.mk (update-copyright-local): Delete, and document how
32969         to do it in cfg.mk instead.
32970         (update-copyright-exclude-regexp): Delete, and document how to do
32971         it in .x-update-copyright instead.
32972         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32973         exclude ChangeLog.
32974
32975 2009-08-14  Bruno Haible  <bruno@clisp.org>
32976
32977         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32978
32979 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32980
32981         maint.mk: support update-copyright-env
32982         * top/maint.mk (update-copyright-env): Define place-holder.
32983         (update-copyright): Expand $(update-copyright-env) before
32984         invoking update-copyright.
32985
32986 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32987
32988         update-copyright: implement forced reformatting
32989         * build-aux/update-copyright: Implement and document
32990         UPDATE_COPYRIGHT_FORCE.
32991         * tests/test-update-copyright.sh: Test it.
32992
32993 2009-08-14  Eric Blake  <ebb9@byu.net>
32994         and Bruno Haible  <bruno@clisp.org>
32995
32996         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32997         * tests/test-locale.c: Revert previous patch related to NULL.
32998         * tests/test-stdio.c: Likewise.
32999         * tests/test-stdlib.c: Likewise.
33000         * tests/test-string.c: Likewise.
33001         * tests/test-unistd.c: Likewise.
33002         * modules/time-tests (Depends-on): Add verify.
33003         * modules/wchar-tests (Depends-on): Likewise.
33004         * tests/test-time.c: Test for NULL compliance.
33005         * tests/test-wchar.c: Likewise.
33006         * modules/locale (Depends-on): Add stddef.
33007         * modules/stdio (Depends-on): Likewise.
33008         * modules/stdlib (Depends-on): Likewise.
33009         * modules/string (Depends-on): Likewise.
33010         * modules/time (Depends-on): Likewise.
33011         * modules/unistd (Depends-on): Likewise.
33012         * modules/wchar (Depends-on): Likewise.
33013         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33014         * lib/stdlib.in.h (includes): Likewise.
33015         * lib/string.in.h (includes): Likewise.
33016         * lib/time.in.h (includes): Likewise.
33017         * lib/unistd.in.h (includes): Likewise.
33018         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33019         replaced.
33020         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33021         * m4/stddef_h.m4: New file.
33022         * modules/stddef: Likewise.
33023         * lib/stddef.in.h: Likewise.
33024         * modules/stddef-tests: Likewise.
33025         * tests/test-stddef.c: Likewise.
33026         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33027         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33028         * doc/posix-headers/locale.texi (locale.h): Likewise.
33029         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33030         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33031         * doc/posix-headers/string.texi (string.h): Likewise.
33032         * doc/posix-headers/time.texi (time.h): Likewise.
33033         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33034         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33035
33036 2009-08-14  Eric Blake  <ebb9@byu.net>
33037
33038         doc: improve git diff of texinfo files
33039         * .gitattributes: Add rule for *.texi files, with hint on how to
33040         use it.
33041         Copied from m4, and based on a report by Bruno Haible.
33042
33043 2009-08-14  Bruno Haible  <bruno@clisp.org>
33044
33045         Disable multithread support by default on Cygwin 1.5.x for real.
33046         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33047
33048 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33049
33050         update-copyright: much ado about intervals
33051         * build-aux/update-copyright: Implement and document
33052         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33053         of copyright year intervals.
33054         Also, document UPDATE_COPYRIGHT_YEAR.
33055         * tests/test-update-copyright.sh: Test it.
33056
33057         update-copyright: convert 2-digit to 4-digit years
33058         * build-aux/update-copyright: Implement and document.
33059         * tests/test-update-copyright.sh: Update.
33060
33061 2009-08-14  Jim Meyering  <meyering@redhat.com>
33062
33063         test-exclude: avoid coreutils "make check" failure
33064         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33065         just as in test-argmatch.c.
33066
33067 2009-08-13  Eric Blake  <ebb9@byu.net>
33068
33069         test-dup2: fix bad assumption
33070         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33071         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33072
33073         test-version-etc: fix CRLF portability issue
33074         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33075         recognize \r.
33076         * tests/test-argp-version-etc-1.sh: Likewise.
33077
33078         getopt: update client modules
33079         * modules/argp (Depends-on): Use getopt-gnu.
33080         * modules/git-merge-changelog (Depends-on): Likewise.
33081         * modules/long-options (Depends-on): Likewise.
33082         * modules/xstrtol (Depends-on): Likewise.
33083
33084 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33085
33086         * tests/test-version-etc.sh: Don't fail on different
33087         project/version.  Don't fail on CRLF differences.  Rewrite to use
33088         multiple -e instead of multiple sed forks, suggested by Eric Blake
33089         <ebb9@byu.net>.
33090         * tests/test-argp-version-etc-1.sh: Likewise.
33091
33092 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33093
33094         * tests/test-version-etc.sh: Don't fail on different
33095         project/version.
33096
33097 2009-08-12  Bruno Haible  <bruno@clisp.org>
33098
33099         Tests for modules 'getopt-posix', 'getopt-gnu'.
33100         * modules/getopt-posix-tests: New file.
33101         * tests/test-getopt.c: New file.
33102         * tests/test-getopt.h: New file.
33103         * tests/test-getopt_long.h: New file.
33104
33105         New modules 'getopt-posix', 'getopt-gnu'.
33106         * modules/getopt-gnu: New file, renamed from modules/getopt.
33107         * modules/getopt-posix: New file.
33108         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33109         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33110         (gl_GETOPT): Remove macro.
33111         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33112         Disable the test against BSD systems that declare optreset. Test
33113         against mingw bug. Test against lack of support of optional arguments
33114         on many platforms.
33115         * doc/glibc-headers/getopt.texi: Update module name and list of
33116         relevant platforms.
33117         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33118         'getopt-gnu' and more portability problems.
33119         * NEWS: Mention the changes.
33120
33121 2009-08-12  Bruno Haible  <bruno@clisp.org>
33122
33123         Ensure that optarg etc. get declared by <unistd.h>.
33124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33125         AC_USE_SYSTEM_EXTENSIONS.
33126         * modules/getopt (Depends-on): Add 'extensions'.
33127
33128 2009-08-12  Bruno Haible  <bruno@clisp.org>
33129
33130         Avoid test link errors.
33131         * modules/pipe-filter-ii-tests (Makefile.am): Define
33132         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33133         * modules/pipe-filter-gi-tests (Makefile.am): Define
33134         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33136
33137 2009-08-12  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33140         gl_GETOPT_SUBSTITUTE before.
33141         (gl_GETOPT): Use it.
33142         * m4/argp.m4 (gl_ARGP): Update.
33143         Reported by Sergey Poznyakoff.
33144
33145         * m4/getopt.m4: Reorder macros.
33146         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33147         (gl_GETOPT_SUBSTITUTE): Remove macro.
33148
33149 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33150
33151         Minor improvement in gitlog-to-changelog
33152
33153         * build-aux/gitlog-to-changelog: New option `--format' makes
33154         output format string configurable.
33155
33156 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33157
33158         Optimize exclude: use hash tables for non-wildcard patterns.
33159
33160         * lib/exclude.c: Include hash.h and mbuiter.h
33161         (struct exclude_pattern, exclude_segment): New data types.
33162         (struct exclude): Rewrite.
33163         (fnmatch_pattern_has_wildcards): New function.
33164         (new_exclude_segment, free_exclude_segment): New functions.
33165         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33166         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33167         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33168         * modules/exclude: Depend on hash and mbuiter.
33169
33170         * modules/exclude-tests: New file.
33171         * tests/test-exclude.c: New file.
33172         * tests/test-exclude1.sh: New file.
33173         * tests/test-exclude2.sh: New file.
33174         * tests/test-exclude3.sh: New file.
33175         * tests/test-exclude4.sh: New file.
33176         * tests/test-exclude5.sh: New file.
33177         * tests/test-exclude6.sh: New file.
33178         * tests/test-exclude7.sh: New file.
33179
33180 2009-08-12  Bruno Haible  <bruno@clisp.org>
33181
33182         Ensure that getopt() gets declared by <unistd.h>.
33183         * lib/unistd.in.h: Conditionally include getopt.h.
33184         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33185         Set GNULIB_UNISTD_H_GETOPT.
33186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33187         GNULIB_UNISTD_H_GETOPT.
33188         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33189
33190 2009-08-12  Bruno Haible  <bruno@clisp.org>
33191
33192         Clarify logic.
33193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33194         gl_replace_getopt instead of GETOPT_H.
33195
33196 2009-08-12  Bruno Haible  <bruno@clisp.org>
33197
33198         * m4/getopt.m4: Add comments.
33199
33200 2009-08-12  Bruno Haible  <bruno@clisp.org>
33201
33202         Disable multithread support by default on Cygwin 1.5.x.
33203         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33204         set gl_use_threads=no if not specified otherwise.
33205
33206 2009-08-11  Bruno Haible  <bruno@clisp.org>
33207
33208         Avoid compilation error on NetBSD 5.0.
33209         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33210         * tests/test-stdio.c: Likewise.
33211         * tests/test-stdlib.c: Likewise.
33212         * tests/test-string.c: Likewise.
33213         * tests/test-unistd.c: Likewise.
33214         Reported by Greg Troxel <gdt@ir.bbn.com>
33215         at <https://savannah.gnu.org/support/?106973>.
33216
33217 2009-08-11  Bruno Haible  <bruno@clisp.org>
33218
33219         * modules/dup2-tests (Depends-on): Remove close.
33220
33221         Undo 2009-07-19 commit.
33222         * modules/acl-tests (Depends-on): Remove close.
33223         * modules/binary-io-tests (Depends-on): Likewise.
33224         * modules/closein-tests (Depends-on): Likewise.
33225         * modules/flock-tests (Depends-on): Likewise.
33226         * modules/fsync-tests (Depends-on): Likewise.
33227         * modules/lseek-tests (Depends-on): Likewise.
33228         * modules/pipe-tests (Depends-on): Likewise.
33229         * modules/posix_spawn-tests (Depends-on): Likewise.
33230         * modules/posix_spawnp-tests (Depends-on): Likewise.
33231         * modules/stat-time-tests (Depends-on): Likewise.
33232         * modules/yesno-tests (Depends-on): Likewise.
33233
33234 2009-08-10  Bruno Haible  <bruno@clisp.org>
33235
33236         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33237
33238 2009-08-10  Bruno Haible  <bruno@clisp.org>
33239
33240         Fix a gcc warning.
33241         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33242
33243 2009-08-10  Bruno Haible  <bruno@clisp.org>
33244
33245         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33246         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33247         not only the first time.
33248         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33249         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33250         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33251         is 1, not only the the first time.
33252
33253 2009-08-10  Bruno Haible  <bruno@clisp.org>
33254
33255         Make it possible to use module 'gethostname' without module 'close'.
33256         * lib/unistd.in.h (close): Evoke a link error only if
33257         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33259         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33260         * modules/unistd (Makefile.am): Substitute
33261         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33262         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33263         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33265         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33266         * modules/sys_ioctl (Makefile.am): Substitute
33267         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33268         * modules/socket (configure.ac): On native Windows, set
33269         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33270         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33271         Reported by Sam Steingold <sds@gnu.org>.
33272
33273 2009-08-10  Bruno Haible  <bruno@clisp.org>
33274
33275         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33276         * modules/ioctl (configure.ac): Likewise.
33277
33278 2009-08-10  Bruno Haible  <bruno@clisp.org>
33279
33280         Avoid collision between gnulib wrapper and libintl wrapper.
33281         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33282         already defined in intl/printf.c.
33283         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33284         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33285
33286 2009-08-09  Bruno Haible  <bruno@clisp.org>
33287
33288         Make <sys/select.h> really self-contained, also on Solaris 10.
33289         * lib/sys_select.in.h: Include <string.h>.
33290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33291         Solaris 10 problem.
33292         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33293         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33294         Reported by Jim Meyering.
33295
33296 2009-08-09  Bruno Haible  <bruno@clisp.org>
33297
33298         Avoid warnings from 'aclocal' that are due to a use of macro name
33299         AM_XGETTEXT_OPTION that is not defined in automake.
33300         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33301         automake.
33302         * modules/error (configure.ac): Likewise.
33303         * modules/propername (configure.ac): Likewise.
33304         * modules/vasprintf (configure.ac): Likewise.
33305         * modules/verror (configure.ac): Likewise.
33306         * modules/xprintf (configure.ac): Likewise.
33307         * modules/xvasprintf (configure.ac): Likewise.
33308
33309 2009-08-08  Bruno Haible  <bruno@clisp.org>
33310
33311         Avoid compilation error in C++ mode.
33312         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33313         Reported by Sam Steingold <sds@gnu.org>.
33314
33315 2009-08-08  Bruno Haible  <bruno@clisp.org>
33316
33317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33318         for the various Unix platforms.
33319         * doc/posix-headers/limits.texi: Update platforms list regarding
33320         HOST_NAME_MAX.
33321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33322
33323 2009-08-07  Jim Meyering  <meyering@redhat.com>
33324
33325         selinux-at: fix typo in a comment
33326         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33327         Spotted by Paolo Bonzini.
33328
33329         selinux-at: remove redundant m4 code, add documentation
33330         * modules/selinux-at (configure.ac): Remove redundant code.
33331         LIB_SELINUX is already set via the dependent module, selinux-h.
33332         (Include): Add quotes around selinux-at.h.
33333         * lib/selinux-at.h: Add documentation.
33334         Reported by Bruno Haible in
33335         http://marc.info/?l=gnulib-bug&m=124958988300749
33336
33337 2009-08-07  Bruno Haible  <bruno@clisp.org>
33338
33339         Avoid link error on MacOS X 10.3 and 10.4.
33340         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33341         on non-ELF systems.
33342         * lib/argp-pv.c (argp_program_version): Likewise.
33343         Reported by Simon Josefsson.
33344
33345 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33346
33347         * tests/test-version-etc.sh: Use $EXEEXT.
33348
33349 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33350
33351         update-copyright: update documentation to point to maint.mk
33352         * build-aux/update-copyright: Here.
33353
33354 2009-08-06  Jim Meyering  <meyering@redhat.com>
33355
33356         maint.mk: support update-copyright-local
33357         * top/maint.mk (update-copyright-local): Define place-holder.
33358         (update-copyright): Depend on $(update-copyright-local).
33359
33360 2009-08-06  Jim Meyering  <meyering@redhat.com>
33361
33362         selinux-at: new module
33363         Initially written for coreutils, this module will soon be
33364         used by findutils, too.
33365         * MODULES.html.sh [Misc]: Add selinux-at.
33366         * lib/selinux-at.h: New file, from coreutils.
33367         * lib/selinux-at.c: Likewise.
33368         * modules/selinux-at: Likewise.
33369         (License): Change from LGPL to GPL, since it depends
33370         on the GPL'd openat module.
33371
33372         doc: update README
33373         * README: Remove references to cogito.
33374         Remove cvs-repo-updating instructions from 2007.
33375         Don't imply that CVS is better if you have limited disk space.
33376
33377 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33378
33379         update-copyright: support C-style comments
33380         * build-aux/update-copyright: Implement and document.
33381         * tests/test-update-copyright.sh: Test.
33382
33383 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33384
33385         update-copyright: support omitted "(C)"
33386         * build-aux/update-copyright: Implement and document.  Also,
33387         allow variable whitespace before "(C)".
33388         * tests/test-update-copyright.sh: Test.
33389
33390 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33391
33392         update-copyright: don't trip on non-FSF copyright statements
33393         * build-aux/update-copyright: Fix so that the first correctly
33394         formatted FSF copyright statement is recognized no matter what
33395         appears before it.  Update documentation.
33396         * tests/test-update-copyright.sh: Test that.
33397
33398 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33399
33400         update-copyright: clean up code a little
33401         * build-aux/update-copyright: Append "_re" to the name of any
33402         variable holding a regular expression.
33403         Replace "old" and "new" with "stmt" in variable names.
33404         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33405         handled correctly.
33406         Format code more consistently.
33407
33408 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33409
33410         update-copyright-tests: improve portability
33411         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33412         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33413
33414 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33415
33416         update-copyright: support @copyright{} and &copy;
33417         * build-aux/update-copyright: Implement and document.
33418         * tests/test-update-copyright.sh: Test.
33419
33420 2009-08-04  Jim Meyering  <meyering@redhat.com>
33421
33422         update-copyright-tests: correctly test EOL=\r\n handling
33423         * tests/test-update-copyright.sh: Put \r at the end of some lines
33424         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33425
33426         maint.mk: make update-copyright exclusion list more configurable
33427         * top/maint.mk (update-copyright): Default to excluding COPYING,
33428         but allow an override, in case someone does want to update that file.
33429
33430         maint.mk: don't update copyright date in COPYING
33431         * top/maint.mk (update-copyright): Exclude COPYING.
33432
33433         maint.mk: add a copyright-updating rule
33434         * top/maint.mk (update-copyright): New rule.
33435         Derived from coreutils/Makefile.am.
33436
33437         update-copyright: rename some variables
33438         * build-aux/update-copyright: Rename a few variables for clarity.
33439         Tweak syntax.  List Joel E. Denny as coauthor.
33440
33441 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33442
33443         update-copyright: fix bug for 2-digit last year and add tests
33444         * build-aux/update-copyright: Fix bug.
33445         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33446         specified.
33447         * modules/update-copyright-tests: New
33448         * tests/test-update-copyright.sh: New.
33449
33450 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33451
33452         update-copyright: handle leading tabs in line prefix
33453         * build-aux/update-copyright: Count leading tabs as 8 spaces
33454         when computing margin.  This helps with the formatting of
33455         ChangeLogs, for example.
33456         Fix documentation a little.
33457
33458 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33459
33460         update-copyright: support EOL=\r\n
33461         * build-aux/update-copyright: Implement that.
33462
33463 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33464
33465         update-copyright: automatically format copyright statements
33466         * build-aux/update-copyright: Implement that.
33467         Also, be a little more predictable and safer by always failing
33468         when the full copyright format is not perfectly recognized as an
33469         unbroken whole.  Discussed at
33470         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33471         Rewrite documentation.
33472
33473 2009-08-03  Bruno Haible  <bruno@clisp.org>
33474
33475         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33476
33477 2009-08-02  Bruno Haible  <bruno@clisp.org>
33478
33479         Tests for module 'uname'.
33480         * modules/uname-tests: New file.
33481         * tests/test-uname.c: New file.
33482
33483         New module 'uname'.
33484         * lib/uname.c: New file.
33485         * m4/uname.m4: New file.
33486         * modules/uname: New file.
33487         * doc/posix-functions/uname.texi: Mention the new module.
33488
33489 2009-08-02  Bruno Haible  <bruno@clisp.org>
33490
33491         Tests for module 'sys_utsname'.
33492         * modules/sys_utsname-tests: New file.
33493         * tests/test-sys_utsname.c: New file.
33494
33495         New module 'sys_utsname'.
33496         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33497         * m4/sys_utsname_h.m4: New file.
33498         * modules/sys_utsname: New file.
33499         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33500
33501 2009-08-02  Bruno Haible  <bruno@clisp.org>
33502
33503         Implicitly initialize the sockets library.
33504         * lib/gethostname.c: Include sockets.h.
33505         (rpl_gethostname): Invoke gl_sockets_startup.
33506         * lib/socket.c: Include sockets.h.
33507         (rpl_socket): Invoke gl_sockets_startup.
33508         * modules/gethostname (Depends-on): Add sockets.
33509         * modules/socket (Depends-on): Likewise.
33510         * tests/test-poll.c: Don't include sockets.h.
33511         (main): Don't invoke gl_sockets_startup.
33512         * tests/test-select.c: Don't include sockets.h.
33513         (main): Don't invoke gl_sockets_startup.
33514
33515 2009-08-02  Bruno Haible  <bruno@clisp.org>
33516
33517         Allow multiple calls to gl_sockets_startup.
33518         * lib/sockets.c (initialized_sockets_version): New variable.
33519         (gl_sockets_startup): Do nothing if already called for this or a higher
33520         version.
33521         (gl_sockets_cleanup): Reset initialized_sockets_version.
33522
33523 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33524
33525         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33526         different project/version.
33527
33528 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33529             Bruno Haible  <bruno@clisp.org>
33530
33531         Tests for module 'pipe-filter-gi'.
33532         * modules/pipe-filter-gi-tests: New file.
33533         * tests/test-pipe-filter-gi1.sh: New file.
33534         * tests/test-pipe-filter-gi1.c: New file.
33535         * tests/test-pipe-filter-gi2.sh: New file.
33536         * tests/test-pipe-filter-gi2-main.c: New file.
33537         * tests/test-pipe-filter-gi2-child.c: New file.
33538
33539         New module 'pipe-filter-gi'.
33540         * lib/pipe-filter-gi.c: New file.
33541         * modules/pipe-filter-gi: New file.
33542
33543 2009-08-02  Bruno Haible  <bruno@clisp.org>
33544             Paolo Bonzini  <bonzini@gnu.org>
33545
33546         Tests for module 'pipe-filter-ii'.
33547         * modules/pipe-filter-ii-tests: New file.
33548         * tests/test-pipe-filter-ii1.sh: New file.
33549         * tests/test-pipe-filter-ii1.c: New file.
33550         * tests/test-pipe-filter-ii2.sh: New file.
33551         * tests/test-pipe-filter-ii2-main.c: New file.
33552         * tests/test-pipe-filter-ii2-child.c: New file.
33553
33554         New module 'pipe-filter-ii'.
33555         * lib/pipe-filter.h: New file.
33556         * lib/pipe-filter-ii.c: New file.
33557         * lib/pipe-filter-aux.h: New file.
33558         * modules/pipe-filter-ii: New file.
33559
33560 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33561
33562         * lib/gc-libgcrypt.c: Change copyright to FSF.
33563         * lib/gc-gnulib.c: Likewise.
33564
33565 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33566
33567         * lib/gethostname.c: Include limits.h.
33568
33569 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33570             Bruno Haible  <bruno@clisp.org>
33571
33572         Ensure HOST_NAME_MAX as part of the gethostname module.
33573         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33574         define also HOST_NAME_MAX.
33575         * tests/test-gethostname.c: Include <limits.h>.
33576         (main): Check also HOST_NAME_MAX.
33577         * doc/posix-headers/limits.texi: Document the mingw problem.
33578
33579 2009-08-02  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33582         Add comments.
33583
33584 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33585
33586         * lib/gethostname.c: Add Windows wrapper.
33587         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33588         * modules/gethostname: Depend on sys_socket & errno, for also
33589         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33590         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33591
33592 2009-07-31  Jim Meyering  <meyering@redhat.com>
33593
33594         getloadavg: fix symbol name in comment
33595         * lib/getloadavg.c: Correct a typo I introduced when adding
33596         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33597         Matt Kraai spotted the problem.
33598
33599 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33600
33601         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33602         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33603         code also if ! defined N_NAME_POINTER.
33604         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33605         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33606         but the n_name member is a 12-byte array.
33607
33608 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33609
33610         update-copyright: generalize comment handling
33611         * build-aux/update-copyright: Handle copyright statements
33612         within more comment styles.
33613         Document usage.
33614         Report any file with an external copyright holder or parse failure.
33615
33616 2009-07-29  Jim Meyering  <meyering@redhat.com>
33617
33618         mktime: correct setting of REPLACE_MKTIME
33619         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33620
33621         update-copyright: new module
33622         * modules/update-copyright: New file.
33623         * build-aux/update-copyright: New file.
33624         * MODULES.html.sh (maint+release support): Add update-copyright.
33625
33626 2009-07-27  Bruno Haible  <bruno@clisp.org>
33627
33628         Fix compilation error when <ctime> is used and mktime is replaced.
33629         * lib/time.in.h (mktime): New declaration.
33630         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33631         REPLACE_MKTIME instead of defining mktime in config.h.
33632         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33633         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33634         Reported by Ross McFarland <rwmcfa1@neces.com>.
33635
33636 2009-07-27  Bruno Haible  <bruno@clisp.org>
33637
33638         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33639         Reported by Matt Kraai <mkraai@beckman.com>.
33640
33641 2009-07-25  Jim Meyering  <meyering@redhat.com>
33642
33643         maint.mk: avoid warnings about missing files
33644         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33645         diagnostic when .prev-version does not exist.
33646         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33647         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33648         nonexistent cfg.mk.
33649         Suggestions from Simon Josefsson.
33650
33651 2009-07-25  Bruno Haible  <bruno@clisp.org>
33652
33653         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33654         defined as macros. Needed on QNX 6.4.1.
33655         Reported by Matt Kraai <mkraai@beckman.com>.
33656
33657 2009-07-23  Jim Meyering  <meyering@redhat.com>
33658
33659         maint.mk: invoke "make dist" with a working value of XZ_OPT
33660         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33661
33662 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33663
33664         Make fseeko.c compile on QNX.
33665         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33666
33667 2009-07-22  Peter Simons  <simons@cryp.to>
33668
33669         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33670         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33671         * lib/md4.h: Likewise.
33672         * lib/md5.h: Likewise.
33673         * lib/sha1.h: Likewise.
33674         * lib/sha256.h: Likewise.
33675         * lib/sha512.h: Likewise.
33676
33677         tests-sha1: don't assign literal string to 'char *' variable
33678         * tests/test-sha1.c (main): Declare locals with "const" to match
33679         attributes of the right hand side.
33680
33681 2009-07-21  Eric Blake  <ebb9@byu.net>
33682
33683         dup2: fix more mingw problems
33684         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33685         fd to itself.
33686         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33687         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33688         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33689         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33690         care of mingw bugs.
33691
33692 2009-07-21  Jim Meyering  <meyering@redhat.com>
33693
33694         vc-list-files: avoid failure when /bin/sh is dash
33695         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33696         On some Debian based systems, /bin/sh is a symlink to dash, and running
33697         this command would omit the "/" following each 'tests' prefix:
33698           dash -x build-aux/vc-list-files -C . tests
33699         That is because bash and dash work differently:
33700           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33701           bash ok
33702           dash odd
33703
33704 2009-07-21  Eric Blake  <ebb9@byu.net>
33705
33706         dup2-tests: test previous patch
33707         * modules/dup2-tests: New file.
33708         * tests/test-dup2.c: Likewise.
33709         * tests/test-open.c (main): Avoid unspecified behavior.
33710         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33711         test.
33712
33713         dup2: work around mingw and cygwin 1.5 bug
33714         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33716         * modules/unistd (Makefile.am): Substitute it.
33717         * lib/unistd.in.h (dup2): Declare the replacement.
33718         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33719         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33720         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33721         * modules/execute (Depends-on): Add dup2.
33722         * modules/fseterr (Depends-on): Likewise.
33723         * modules/pipe (Depends-on): Likewise.
33724         * modules/posix_spawn-internal (Depends-on): Likewise.
33725
33726 2009-07-21  Bruno Haible  <bruno@clisp.org>
33727
33728         * modules/.gitattributes: New file.
33729
33730 2009-07-20  Bruno Haible  <bruno@clisp.org>
33731
33732         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33733         (main): Use it.
33734
33735 2009-07-20  Eric Blake  <ebb9@byu.net>
33736
33737         test-pipe: make a bit more robust.
33738         * tests/test-pipe.c (myerr): Allow error messages regardless of
33739         what we do to stderr.
33740         (test_pipe): Rearrange to avoid deadlock.
33741         (child_main): Try a larger read, to ensure we avoided deadlock.
33742         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33743         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33744         if misused.
33745
33746 2009-07-19  Jim Meyering  <meyering@redhat.com>
33747
33748         fts: avoid false-positive cycle-detection
33749         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33750         for each new command line argument.
33751
33752 2009-07-19  Bruno Haible  <bruno@clisp.org>
33753
33754         Fix build error on mingw with the modules sys_select and unistd.
33755         * modules/acl-tests (Depends-on): Add close.
33756         * modules/binary-io-tests (Depends-on): Likewise.
33757         * modules/closein-tests (Depends-on): Likewise.
33758         * modules/flock-tests (Depends-on): Likewise.
33759         * modules/fsync-tests (Depends-on): Likewise.
33760         * modules/lseek-tests (Depends-on): Likewise.
33761         * modules/pipe-tests (Depends-on): Likewise.
33762         * modules/posix_spawn-tests (Depends-on): Likewise.
33763         * modules/posix_spawnp-tests (Depends-on): Likewise.
33764         * modules/stat-time-tests (Depends-on): Likewise.
33765         * modules/yesno-tests (Depends-on): Likewise.
33766
33767 2009-07-19  Bruno Haible  <bruno@clisp.org>
33768
33769         Unify conditionals.
33770         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33771         macros, not at the compiler macros.
33772         * lib/pipe.c: Likewise.
33773         * lib/execute.c: Likewise.
33774         * lib/spawni.c: Likewise.
33775
33776 2009-07-19  Bruno Haible  <bruno@clisp.org>
33777
33778         Fix handling of closed stdin/stdout/stderr on mingw.
33779         * lib/w32spawn.h: Include unistd.h.
33780         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33781         file descriptor with O_NOINHERIT flag.
33782         (fd_safer_noinherit): New function, based on fd-safer.c.
33783         (dup_safer_noinherit): New function, based on dup-safer.c.
33784         (undup_safer_noinherit): New function.
33785         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33786         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33787         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33788         instead of fd_safer.
33789         * tests/test-pipe.c: Include <windows.h>.
33790         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33791         result.
33792
33793         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33794         from main.
33795         (test_pipe): Pass an extra argument for disambiguation.
33796         (main): Invoke parent_main or child_main.
33797
33798         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33799         consistently.
33800
33801 2009-07-18  Eric Blake  <ebb9@byu.net>
33802
33803         test-pipe: fix mingw build
33804         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33805
33806 2009-07-18  Bruno Haible  <bruno@clisp.org>
33807
33808         * modules/pipe-tests (Makefile.am): Fix typo.
33809
33810 2009-07-18  Eric Blake  <ebb9@byu.net>
33811
33812         error: fix mingw build
33813         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33814         Reported by Bruno Haible.
33815
33816         error: avoid undefined use of stdout
33817         * lib/error.c (error, error_at_line): Check that fd 1 is open
33818         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33819         is handling faults and the close_stdout module wants to report the
33820         detection of closed stdout as an error.
33821
33822 2009-07-17  Eric Blake  <ebb9@byu.net>
33823
33824         pipe: be robust in face of closed fds
33825         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33826         should cause child to misbehave.
33827         * modules/pipe-tests: New module.
33828         * tests/test-pipe.c: New file.
33829         * tests/test-pipe.sh: New file.
33830         Reported by Akim Demaille.
33831
33832 2009-07-14  Bruno Haible  <bruno@clisp.org>
33833
33834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33835         Reported by anonymous kc.
33836
33837 2009-07-07  Jim Meyering  <meyering@redhat.com>
33838
33839         maint.mk: don't look for translatable strings in *.m4 or *.mk
33840         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33841         when searching for translatable strings.
33842
33843 2009-07-05  Jim Meyering  <meyering@redhat.com>
33844
33845         remove superfluous parentheses in STREQ definition
33846         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33847         * lib/getugroups.c (STREQ): Likewise.
33848         * lib/fnmatch.c (STREQ): Likewise.
33849         Spotted by Bruno Haible.
33850
33851 2009-07-04  Jim Meyering  <meyering@redhat.com>
33852
33853         argv-iter: new module
33854         * MODULES.html.sh: Add argv-iter.
33855         * lib/argv-iter.c, lib/argv-iter.h: New files.
33856         * modules/argv-iter: New file.
33857         * modules/argv-iter-tests: New file.
33858         * tests/test-argv-iter.c: Test it.
33859
33860 2009-07-04  Bruno Haible  <bruno@clisp.org>
33861
33862         Fix assertion.
33863         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33864         contains more exact copies of a given entry than file2, leave the extra
33865         copies unpaired rather than aborting.
33866         Reported by Eric Blake.
33867
33868 2009-07-02  Bruno Haible  <bruno@clisp.org>
33869
33870         Speedup git-merge-changelog for git cherry-pick.
33871         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33872         (entries_mapping_get): New function, extracted from compute_mapping.
33873         (entries_mapping_reverse_get): New function.
33874         (compute_mapping): Add a 'full' argument. Return the result in a
33875         'struct entries_mapping'.
33876         (main): Update. Access the mappings through entries_mapping_get.
33877         Reported by Eric Blake.
33878
33879 2009-07-02  Bruno Haible  <bruno@clisp.org>
33880
33881         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33882         best_i.
33883
33884 2009-07-02  Bruno Haible  <bruno@clisp.org>
33885
33886         Speed up approximate search for matching ChangeLog entries.
33887         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33888         argument. Call fstrcmp_bounded instead of fstrcmp.
33889         (compute_mapping, try_split_merged_entry, main): Update callers.
33890
33891 2009-07-02  Bruno Haible  <bruno@clisp.org>
33892
33893         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33894
33895 2009-06-30  Bruno Haible  <bruno@clisp.org>
33896
33897         Reduce the number of uc_is_cased calls.
33898         * lib/unicase.h (casing_suffix_context_t): Add
33899         'first_char_except_ignorable' field.
33900         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33901         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33902         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33903         Update initializer.
33904         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33905         case-ignorable characters.
33906         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33907         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33908         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33909         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33910         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33911
33912 2009-06-30  Bruno Haible  <bruno@clisp.org>
33913
33914         Tests for module 'unicase/ignorable'.
33915         * modules/unicase/ignorable-tests: New file.
33916         * tests/unicase/test-ignorable.c: New file, generated by
33917         gen-uni-tables.
33918
33919         Tests for module 'unicase/cased'.
33920         * modules/unicase/cased-tests: New file.
33921         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33922         * tests/unicase/test-predicate-part1.h: New file, derived from
33923         tests/unictype/test-predicate-part1.h.
33924         * tests/unicase/test-predicate-part2.h: New file, same as
33925         tests/unictype/test-predicate-part2.h.
33926
33927         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33928         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33929         (output_casing_properties): New function.
33930         (main): Call it.
33931         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33932         * lib/unicase/cased.c: Include unictype/bitmap.h.
33933         (uc_is_cased): Define through a bitmap lookup.
33934         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33935         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33936         (uc_is_case_ignorable): Define through a bitmap lookup.
33937         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33938         lib/unictype/bitmap.h.
33939         (Depends-on): Add inline. Clean up.
33940         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33941         lib/unictype/bitmap.h.
33942         (Depends-on): Add inline. Clean up.
33943         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33944         recognition.
33945         * tests/unicase/test-u16-tolower.c (main): Likewise.
33946         * tests/unicase/test-u32-tolower.c (main): Likewise.
33947
33948 2009-06-30  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33951         * lib/unicase/u16-casemap.c: Likewise.
33952         * lib/unicase/u32-casemap.c: Likewise.
33953
33954 2009-06-29  Bruno Haible  <bruno@clisp.org>
33955
33956         Define u32_casefold as a wrapper around u32_ct_casefold.
33957         * lib/unicase/u32-casefold.c: Update.
33958         * modules/unicase/u32-casefold (Depends-on): Add
33959         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33960         unicase/empty-suffix-context. Clean up.
33961
33962         Define u16_casefold as a wrapper around u16_ct_casefold.
33963         * lib/unicase/u16-casefold.c: Update.
33964         * modules/unicase/u16-casefold (Depends-on): Add
33965         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33966         unicase/empty-suffix-context. Clean up.
33967
33968         Define u8_casefold as a wrapper around u8_ct_casefold.
33969         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33970         * lib/unicase/u8-casefold.c: Update.
33971         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33972         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33973
33974         Define u32_totitle as a wrapper around u32_ct_totitle.
33975         * lib/unicase/u32-totitle.c: Update.
33976         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33977         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33978
33979         Define u16_totitle as a wrapper around u16_ct_totitle.
33980         * lib/unicase/u16-totitle.c: Update.
33981         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33982         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33983
33984         Define u8_totitle as a wrapper around u8_ct_totitle.
33985         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33986         functions.
33987         (FUNC): Delegate to U_CT_TOTITLE.
33988         * lib/unicase/u8-totitle.c: Update.
33989         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33990         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33991
33992         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33993         invocation.
33994         * modules/unicase/u32-tolower (Depends-on): Add
33995         unicase/empty-prefix-context, unicase/empty-suffix-context.
33996
33997         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33998         invocation.
33999         * modules/unicase/u16-tolower (Depends-on): Add
34000         unicase/empty-prefix-context, unicase/empty-suffix-context.
34001
34002         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34003         * modules/unicase/u8-tolower (Depends-on): Add
34004         unicase/empty-prefix-context, unicase/empty-suffix-context.
34005
34006         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34007         invocation.
34008         * modules/unicase/u32-toupper (Depends-on): Add
34009         unicase/empty-prefix-context, unicase/empty-suffix-context.
34010
34011         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34012         invocation.
34013         * modules/unicase/u16-toupper (Depends-on): Add
34014         unicase/empty-prefix-context, unicase/empty-suffix-context.
34015
34016         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34017         * modules/unicase/u8-toupper (Depends-on): Add
34018         unicase/empty-prefix-context, unicase/empty-suffix-context.
34019
34020         New module 'unicase/u32-ct-casefold'.
34021         * lib/unicase/u32-ct-casefold.c: New file.
34022         * modules/unicase/u32-ct-casefold: New file.
34023
34024         New module 'unicase/u16-ct-casefold'.
34025         * lib/unicase/u16-ct-casefold.c: New file.
34026         * modules/unicase/u16-ct-casefold: New file.
34027
34028         New module 'unicase/u8-ct-casefold'.
34029         * lib/unicase/u8-ct-casefold.c: New file.
34030         * lib/unicase/u-ct-casefold.h: New file, derived from
34031         lib/unicase/u-casefold.h.
34032         * modules/unicase/u8-ct-casefold: New file.
34033
34034         New module 'unicase/u32-ct-totitle'.
34035         * lib/unicase/u32-ct-totitle.c: New file.
34036         * modules/unicase/u32-ct-totitle: New file.
34037
34038         New module 'unicase/u16-ct-totitle'.
34039         * lib/unicase/u16-ct-totitle.c: New file.
34040         * modules/unicase/u16-ct-totitle: New file.
34041
34042         New module 'unicase/u8-ct-totitle'.
34043         * lib/unicase/u8-ct-totitle.c: New file.
34044         * lib/unicase/u-ct-totitle.h: New file, derived from
34045         lib/unicase/u-totitle.h.
34046         * modules/unicase/u8-ct-totitle: New file.
34047
34048         New module 'unicase/u32-ct-tolower'.
34049         * lib/unicase/u32-ct-tolower.c: New file.
34050         * modules/unicase/u32-ct-tolower: New file.
34051
34052         New module 'unicase/u16-ct-tolower'.
34053         * lib/unicase/u16-ct-tolower.c: New file.
34054         * modules/unicase/u16-ct-tolower: New file.
34055
34056         New module 'unicase/u8-ct-tolower'.
34057         * lib/unicase/u8-ct-tolower.c: New file.
34058         * modules/unicase/u8-ct-tolower: New file.
34059
34060         New module 'unicase/u32-ct-toupper'.
34061         * lib/unicase/u32-ct-toupper.c: New file.
34062         * modules/unicase/u32-ct-toupper: New file.
34063
34064         New module 'unicase/u16-ct-toupper'.
34065         * lib/unicase/u16-ct-toupper.c: New file.
34066         * modules/unicase/u16-ct-toupper: New file.
34067
34068         New module 'unicase/u8-ct-toupper'.
34069         * lib/unicase/u8-ct-toupper.c: New file.
34070         * modules/unicase/u8-ct-toupper: New file.
34071
34072         Add context arguments to u*_casemap functions.
34073         * lib/unicase/unicasemap.h: Include unicase.h.
34074         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34075         suffix_context arguments.
34076         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34077         functions.
34078         (FUNC): Add prefix_context and suffix_context arguments. Use
34079         uc_is_cased and uc_is_case_ignorable.
34080         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34081         * lib/unicase/u16-casemap.c: Likewise.
34082         * lib/unicase/u32-casemap.c: Likewise.
34083         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34084         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34085         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34086         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34087         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34088         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34089
34090         New module 'unicase/u32-suffix-context'.
34091         * lib/unicase/u32-suffix-context.c: New file.
34092         * modules/unicase/u32-suffix-context: New file.
34093
34094         New module 'unicase/u16-suffix-context'.
34095         * lib/unicase/u16-suffix-context.c: New file.
34096         * modules/unicase/u16-suffix-context: New file.
34097
34098         New module 'unicase/u8-suffix-context'.
34099         * lib/unicase/u8-suffix-context.c: New file.
34100         * lib/unicase/u-suffix-context.h: New file.
34101         * modules/unicase/u8-suffix-context: New file.
34102
34103         New module 'unicase/empty-suffix-context'.
34104         * lib/unicase/empty-suffix-context.c: New file.
34105         * modules/unicase/empty-suffix-context: New file.
34106
34107         New module 'unicase/u32-prefix-context'.
34108         * lib/unicase/u32-prefix-context.c: New file.
34109         * modules/unicase/u32-prefix-context: New file.
34110
34111         New module 'unicase/u16-prefix-context'.
34112         * lib/unicase/u16-prefix-context.c: New file.
34113         * modules/unicase/u16-prefix-context: New file.
34114
34115         New module 'unicase/u8-prefix-context'.
34116         * lib/unicase/u8-prefix-context.c: New file.
34117         * lib/unicase/u-prefix-context.h: New file.
34118         * lib/unicase/context.h: New file.
34119         * modules/unicase/u8-prefix-context: New file.
34120
34121         New module 'unicase/empty-prefix-context'.
34122         * lib/unicase/empty-prefix-context.c: New file.
34123         * modules/unicase/empty-prefix-context: New file.
34124
34125         New module 'unicase/ignorable'.
34126         * lib/unicase/ignorable.c: New file.
34127         * modules/unicase/ignorable: New file.
34128
34129         New module 'unicase/cased'.
34130         * lib/unicase/caseprop.h: New file.
34131         * lib/unicase/cased.c: New file.
34132         * modules/unicase/cased: New file.
34133
34134         New functions for case mapping of substrings.
34135         * lib/unicase.h (casing_prefix_context_t): New type.
34136         (unicase_empty_prefix_context): New variable.
34137         (u8_casing_prefix_context, u16_casing_prefix_context,
34138         u32_casing_prefix_context, u8_casing_prefixes_context,
34139         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34140         declarations.
34141         (casing_suffix_context_t): New type.
34142         (unicase_empty_suffix_context): New variable.
34143         (u8_casing_suffix_context, u16_casing_suffix_context,
34144         u32_casing_suffix_context, u8_casing_suffixes_context,
34145         u16_casing_suffixes_context, u32_casing_suffixes_context,
34146         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34147         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34148         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34149         declarations.
34150
34151 2009-06-28  Jim Meyering  <meyering@redhat.com>
34152
34153         boostrap: indent only with spaces
34154         * build-aux/bootstrap: Indent only with spaces, never TABs.
34155
34156         bootstrap: split long lines
34157         * build-aux/bootstrap: Keep line length < 80.
34158
34159         bootstrap: sync from coreutils
34160         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34161         just as autoreconf does.  Verify a list of prerequisite
34162         package-name,version-number pairs if defined in bootstrap.conf.
34163         Refer to README-prereq, if prerequisites are not satisfied.
34164
34165 2009-06-27  Eric Blake  <ebb9@byu.net>
34166
34167         tests: add test for bogus NULL definition
34168         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34169         * tests/test-stdlib.c: Likewise.
34170         * tests/test-string.c: Likewise.
34171         * tests/test-locale.c: Likewise.
34172         * tests/test-unistd.c: Likewise.
34173         * modules/stdio-tests (Depends-on): Add verify.
34174         * modules/stdlib-tests (Depends-on): Likewise.
34175         * modules/string-tests (Depends-on): Likewise.
34176         * modules/locale-tests (Depends-on): Likewise.
34177         * modules/unistd-tests (Depends-on): Likewise.
34178
34179 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34180
34181         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34182         self-explaining comment.
34183         * m4/selinux-selinux-h: Update serial.
34184         (gl_LIBSELINUX): New macro, adding a warning for missing development
34185         packages to code extracted from...
34186         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34187         Add warning for missing development packages here, too.
34188
34189 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34190
34191         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34192
34193 2009-06-25  Eric Blake  <ebb9@byu.net>
34194
34195         version-etc: fix regression
34196         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34197         gcc.
34198         (version_etc): Use it, to catch bugs with trailing NULL.
34199         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34200         (version_etc_va): Fix logic bug.
34201         * modules/version-etc-tests: Add test.
34202         * tests/test-version-etc.c: New file.
34203         * tests/test-version-etc.sh: Likewise.
34204
34205 2009-06-25  Sam Steingold  <sds@gnu.org>
34206
34207         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34208         mbtowc declaration.
34209
34210 2009-06-25  Eric Blake  <ebb9@byu.net>
34211
34212         fpurge: migrate into <stdio.h>
34213         * lib/fpurge.h: Delete...
34214         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34215         * lib/fpurge.c (fpurge): Change declaring header.
34216         * modules/fpurge (Files): Drop deleted file.
34217         (Depends-on): Add stdio.
34218         (configure.ac): Set witness.
34219         * modules/stdio (Makefile.am): Support fpurge macros.
34220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34221         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34222         * lib/fflush.c: Update client.
34223         * tests/test-fpurge.c: Likewise.
34224         * NEWS: Mention the change.
34225
34226 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34227
34228         * lib/argp-version-etc.c (program_authors): Add const
34229         qualifier.
34230         * lib/version-etc.c: Fix typos in the comments.
34231         * modules/argp-version-etc: Depends on version-etc.
34232
34233 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34234
34235         argp-version-etc: new module.
34236
34237         * lib/argp-version-etc.c: New file.
34238         * lib/argp-version-etc.h: New file.
34239         * modules/argp-version-etc: New file.
34240         * modules/argp-version-etc-tests: New file.
34241         * tests/test-argp-version-etc.c: New test.
34242         * tests/test-argp-version-etc-1.sh: New test.
34243
34244 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34245
34246         Provide additional interfaces and documentation for version-etc
34247         module.
34248
34249         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34250         interfaces.
34251         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34252         prototypes.
34253
34254 2009-06-24  Bruno Haible  <bruno@clisp.org>
34255
34256         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34257         HAVE_LIB${NAME} macro.
34258         Reported by Sam Steingold <sds@gnu.org>.
34259
34260 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34261
34262         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34263         needed.
34264
34265 2009-06-21  Bruno Haible  <bruno@clisp.org>
34266
34267         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34268         work.
34269         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34270         together with LIB${NAME}, LTLIB${NAME}.
34271         Reported by Sam Steingold <sds@gnu.org>.
34272
34273 2009-06-20  Jim Meyering  <meyering@redhat.com>
34274
34275         tests: make sc_require_test_exit_idiom more generic
34276         * top/maint.mk (Exit_witness_file): New overridable variable.
34277         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34278         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34279
34280 2009-06-19  Jim Meyering  <meyering@redhat.com>
34281
34282         hash: reverse order of src/dst parameters in an internal interface
34283         * lib/hash.c (transfer_entries): Reverse order of parameters to
34284         put DST before SRC.  Adjust callers.
34285
34286         tests: test-hash: avoid wholesale duplication
34287         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34288         Instead, use a loop and add a single conditional.
34289
34290         tests: test-hash: allow seed selection via a command line argument
34291         * tests/test-hash.c (get_seed): New function.
34292         (main): Use it.
34293
34294 2009-06-19  Eric Blake  <ebb9@byu.net>
34295
34296         hash: avoid memory leak on allocation failure
34297         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34298         failure.  Factor repeated algorithm...
34299         (transfer_entries): ...into new helper routine.
34300         (hash_delete): React to hash_rehash return value.
34301
34302         hash: reduce memory pressure in hash_rehash no-op case
34303         * lib/hash.c (next_prime): Avoid overflow.
34304         (hash_initialize): Factor bucket size computation...
34305         (compute_bucket_size): ...into new helper function.
34306         (hash_rehash): Use new function and open coding to reduce memory
34307         pressure, and avoid a memory leak in USE_OBSTACK code.
34308         Reported by Jim Meyering.
34309
34310 2009-06-18  Eric Blake  <ebb9@byu.net>
34311
34312         hash: make rotation more obvious
34313         * modules/hash (Depends-on): Add bitrotate and stdint.
34314         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34315         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34316         (SIZE_MAX): Rely on headers for definition.
34317         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34318         (raw_hasher): Use rotr_sz.
34319         Suggested by Jim Meyering.
34320
34321         hash: fix memory leak in last patch
34322         * lib/hash.c (hash_rehash): Avoid memory leak.
34323
34324         hash: avoid no-op rehashing
34325         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34326
34327         hash: provide default callback functions
34328         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34329         (hash_initialize): Use them as defaults.
34330         * tests/test-hash.c (main): Test this.
34331
34332         hash: minor optimization
34333         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34334         when possible.
34335         (hash_initialize): Document this promise.
34336         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34337         * tests/test-hash.c (hash_compare_strings): Test this.
34338
34339 2009-06-18  Bruno Haible  <bruno@clisp.org>
34340
34341         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34342         going to be replaced anyway.
34343
34344 2009-06-18  Bruno Haible  <bruno@clisp.org>
34345
34346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34347         in one place.
34348         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34349         be replaced anyway.
34350
34351 2009-06-18  Eric Blake  <ebb9@byu.net>
34352
34353         hash: check for resize before insertion
34354         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34355         threshold before insertion, so that a pathological hash_rehash
34356         that fills every bucket can still trigger another rehash.
34357
34358 2009-06-18  Jim Meyering  <meyering@redhat.com>
34359
34360         hash-tests: add a loop around the small tests
34361         * tests/test-hash.c (main): Repeat small tests with selected
34362         small initial table sizes.
34363
34364 2009-06-17  Eric Blake  <ebb9@byu.net>
34365
34366         hash: minor cleanups
34367         * lib/hash.h (hash_entry): Make opaque, by moving...
34368         * lib/hash.c (hash_entry): ...here.
34369         (hash_insert): Clarify restrictions on what can be inserted.
34370         (hash_get_next): Clarify when it is safe to remove an element
34371         during traversal.
34372         (check_tuning): Skip verification when tuning is known safe.
34373         (hash_initialize): Clarify restrictions on tuning.
34374
34375 2009-06-17  Jim Meyering  <jim@meyering.net>
34376         and Eric Blake  <ebb9@byu.net>
34377
34378         hash-tests: new module
34379         * modules/hash-tests: New file.
34380         * tests/test-hash.c: New file.
34381
34382 2009-06-17  Eric Blake  <ebb9@byu.net>
34383
34384         strstr-simple: document new module
34385         * MODULES.html.sh: Document new module.
34386
34387         strstr, strcasestr: replace on platforms with broken memchr
34388         * modules/strstr: Split into...
34389         * modules/strstr-simple: ...new module that does not care about
34390         performance, but does care about glibc bug.
34391         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34392         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34393         if platform memchr is broken, per Debian bug 521737.
34394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34395         memchr.
34396         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34397         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34398         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34399         * modules/mountlist (Depends-on): Add strstr-simple.
34400         * modules/gen-uni-tables (Depends-on): Likewise.
34401         * modules/argz (Depends-on): Add strstr.
34402
34403 2009-06-17  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/posix_spawn-internal (Depends-on): Add errno.
34406
34407 2009-06-17  Bruno Haible  <bruno@clisp.org>
34408
34409         Define missing ESTALE on Interix 3.5.
34410         * lib/errno.in.h (ESTALE): Assign a value if missing.
34411         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34413         missing.
34414         * doc/posix-headers/errno.texi: Mention the Interix bug.
34415         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34416
34417 2009-06-15  Eric Blake  <ebb9@byu.net>
34418
34419         memchr, memchr2: add valgrind exception
34420         * lib/memchr.valgrind: New file.
34421         * lib/memchr2.valgrind: New file.
34422         * modules/memchr (Files): Distribute valgrind file.
34423         * modules/memchr2 (Files): Likewise.
34424
34425         docs: memchr is no longer obsolete
34426         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34427         * lib/string.in.h (memchr): Simplify logic.
34428
34429 2009-06-14  Jim Meyering  <meyering@redhat.com>
34430
34431         link-follow: fix the "checking..." message to not mention trailing slash
34432         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34433         never considered trailing slashes.
34434
34435 2009-06-14  Bruno Haible  <bruno@clisp.org>
34436
34437         * m4/memchr.m4: Mention also the bug on IA-64.
34438         * doc/posix-functions/memchr.texi: Likewise.
34439
34440 2009-06-12  Eric Blake  <ebb9@byu.net>
34441
34442         memchr: detect broken x86_64 and alpha implementations
34443         * modules/memchr-tests (Depends-on): Move mmap detection...
34444         * modules/memchr (Depends-on): ...here.
34445         (configure.ac): Set indicator.
34446         * lib/string.in.h (memchr): Declare replacement.
34447         * modules/string (Makefile.am): Trigger replacement.
34448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34449         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34450         bugs.
34451         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34452         * modules/getpagesize (License): Relax license.
34453
34454 2009-06-11  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/idpriv.h: Add more references.
34457
34458 2009-06-08  Bruno Haible  <bruno@clisp.org>
34459
34460         Tests for module 'idpriv-droptemp'.
34461         * modules/idpriv-droptemp-tests: New file.
34462         * tests/test-idpriv-droptemp.sh: New file.
34463         * tests/test-idpriv-droptemp.su.sh: New file.
34464         * tests/test-idpriv-droptemp.c: New file.
34465
34466         New module 'idpriv-droptemp'.
34467         * lib/idpriv-droptemp.c: New file.
34468         * modules/idpriv-droptemp: New file.
34469
34470 2009-06-08  Bruno Haible  <bruno@clisp.org>
34471
34472         Tests for module 'idpriv-drop'.
34473         * modules/idpriv-drop-tests: New file.
34474         * tests/test-idpriv-drop.sh: New file.
34475         * tests/test-idpriv-drop.su.sh: New file.
34476         * tests/test-idpriv-drop.c: New file.
34477
34478         New module 'idpriv-drop'.
34479         * lib/idpriv.h: New file.
34480         * lib-idpriv-drop.c: New file.
34481         * m4/idpriv.m4: New file.
34482         * modules/idpriv-drop: New file.
34483
34484 2009-06-08  Bruno Haible  <bruno@clisp.org>
34485
34486         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34487         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34488         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34489         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34491         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34492         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34493
34494 2009-06-08  Eric Blake  <ebb9@byu.net>
34495
34496         test-strstr: use memory fence, when possible
34497         * tests/test-strstr.c (main): Use memory fence, in order to be
34498         more likely to trigger Debian bug 521737.
34499         * modules/strstr-tests (Files): Pull in additional files.
34500
34501         memchr: no longer obsolete, for wider field testing
34502         * modules/memchr (Status, Notice): Delete, this module is no
34503         longer obsolete.
34504         * modules/vasnprintf (Depends-on): Add memchr.
34505
34506 2009-06-07  Jim Meyering  <meyering@redhat.com>
34507
34508         hash: declare some functions with the warn_unused_result attribute
34509         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34510
34511 2009-06-07  Bruno Haible  <bruno@clisp.org>
34512
34513         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34514         Reported by Eric Blake.
34515
34516 2009-06-06  Eric Blake  <ebb9@byu.net>
34517
34518         test-alignof: fix typo with long double
34519         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34520         compiler error.
34521
34522 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34523
34524         Escape non-texinfo { and }s.
34525         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34526         markup error.
34527
34528 2009-06-04  Jim Meyering  <meyering@redhat.com>
34529
34530         gitlog-to-changelog: don't infloop on an empty commit log
34531         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34532         Reported by Boris Petersen <transacid@centerim.org>.
34533
34534 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34535
34536         version-etc: extend for packagers
34537         Add three new configure options, intended for packagers:
34538           --with-packager="packager name"
34539           --with-packager-version="packager-specific version"
34540           --with-packager-bug-reports="packager bug reporting"
34541         An example with coreutils:
34542           $ ./configure \
34543             --with-packager=Gentoo \
34544             --with-packager-bug-report=http://bugs.gentoo.org/ \
34545             --with-packager-version="patchset 1.6"
34546           $ ./src/ls --version | head -n2
34547           ls (GNU coreutils) 7.1-dirty
34548           Packaged by Gentoo (patchset 1.6)
34549         Note that the bug reporting info via --help doesn't show up because
34550         coreutils uses its own custom emit_bug_reporting_address() implementation
34551         in src/system.h.  If it didn't, it'd look like:
34552           $ ./src/ls --help | tail -n4
34553           Report bugs to <bug-coreutils@gnu.org>.
34554           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34555           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34556           General help using GNU software: <http://www.gnu.org/gethelp/>.
34557         * lib/version-etc.c: Print new information, if provided.
34558         * m4/version-etc.m4: New file.
34559         * modules/version-etc (Files): Add m4/version-etc.m4.
34560         (configure.ac): Add gl_VERSION_ETC.
34561
34562 2009-05-31  Bruno Haible  <bruno@clisp.org>
34563
34564         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34565         and 'int64_t'.
34566         * modules/alignof-tests (Dependencies): Add stdint.
34567         Reported by Eric Blake.
34568
34569 2009-05-31  Bruno Haible  <bruno@clisp.org>
34570
34571         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34572         restriction due to compiler bugs.
34573         Reported by Eric Blake.
34574
34575 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34576             Bruno Haible  <bruno@clisp.org>
34577
34578         Fix test-alignof failure.
34579         * lib/alignof.h (alignof_slot): New macro.
34580         (alignof_type): New macro, with the same semantics as the previous
34581         'alignof'.
34582         (alignof): Alias to alignof_slot.
34583         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34584         check that the results are usable as constant expressions.
34585
34586 2009-05-31  Bruno Haible  <bruno@clisp.org>
34587
34588         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34589         * tests/test-memchr.c (main): Check that memchr does not read past the
34590         first occurrence of the byte.
34591         * tests/test-strstr.c (main): Update comment.
34592         Suggested by Eric Blake.
34593
34594 2009-05-30  Bruno Haible  <bruno@clisp.org>
34595
34596         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34597         detail how to use dumpbin.
34598         Reported by David Byron <dbyron@dbyron.com>.
34599
34600 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34601
34602         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34603
34604 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34605
34606         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34607
34608 2009-05-28  Bruno Haible  <bruno@clisp.org>
34609
34610         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34611         build-aux/ files.
34612
34613 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34614
34615         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34616
34617 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34618
34619         * gnulib-tool (sed_transform_main_lib_file)
34620         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34621         regexps.
34622
34623 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34624
34625         * tests/test-strstr.c: Add another self-test.
34626         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34627         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34628
34629 2009-05-23  Bruno Haible  <bruno@clisp.org>
34630
34631         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34632         change.
34633
34634 2009-05-21  Bruno Haible  <bruno@clisp.org>
34635
34636         Simplify use of mode_t varargs.
34637         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34638         uses 'mode_t' or 'int'.
34639         * lib/openat.c (openat): Likewise.
34640         * lib/open-safer.c (open_safer): Likewise.
34641         * m4/mode_t.m4: New file.
34642         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34643         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34644         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34645         * modules/open (Files): Add m4/mode_t.m4.
34646         * modules/openat (Files): Likewise.
34647         * modules/fcntl-safer (Files): Likewise.
34648         Suggested by Eric Blake.
34649
34650 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34651
34652         * doc/glibc-functions/fallocate.texi: New file.
34653         * doc/gnulib.texi: Include it.
34654
34655 2009-05-21  Eric Blake  <ebb9@byu.net>
34656             Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34659         invocations.
34660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34661
34662 2009-05-21  Eric Blake  <ebb9@byu.net>
34663             Bruno Haible  <bruno@clisp.org>
34664
34665         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34666         include_next. Fix of 2008-11-20 commit.
34667         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34668         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34669         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34670         NEXT_MATH_H.
34671         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34672         instead of NEXT_MATH_H.
34673
34674 2009-05-21  Bruno Haible  <bruno@clisp.org>
34675
34676         Avoid redefinition warnings for SIZE_MAX.
34677         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34678         Reported by Simon Josefsson.
34679
34680 2009-05-21  Bruno Haible  <bruno@clisp.org>
34681
34682         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34683         AC_CACHE_VAL.
34684
34685 2009-05-20  Bruno Haible  <bruno@clisp.org>
34686
34687         Make zeroptr.h work on mingw.
34688         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34689         mprotect.
34690         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34691         * modules/memchr2-tests (configure.ac): Likewise.
34692         * modules/memcmp-tests (configure.ac): Likewise.
34693         * modules/memmem-tests (configure.ac): Likewise.
34694         * modules/memrchr-tests (configure.ac): Likewise.
34695         Reported by Simon Josefsson.
34696
34697 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34698
34699         * tests/test-glob.c: Include string.h for strcmp prototype.
34700
34701 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34702
34703         * modules/getdelim (Depends-on): Add explicit stdint, although it
34704         was implicitly already pulled in via realloc-posix.
34705         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34706
34707 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34708
34709         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34710         G. Christensen" <tgc@jupiterrise.com>.
34711         * m4/sys_socket_h.m4: Check for sa_family_t.
34712         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34713         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34714         * tests/test-sys_socket.c: Check that sa_family_t works.
34715
34716 2009-05-18  Eric Blake  <ebb9@byu.net>
34717
34718         maint.mk: allow gnulib_dir in VPATH build
34719         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34720
34721 2009-05-15  Jim Meyering  <meyering@redhat.com>
34722
34723         maint.mk: Give gnulib_dir a default definition.
34724         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34725         Thus, most packages no longer need to specify this variable in cfg.mk
34726
34727 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34728
34729         rename.m4: fix typos that would make non-mingw cross-configure fail
34730         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34731
34732 2009-05-13  Eric Blake  <ebb9@byu.net>
34733
34734         mmap-anon: avoid out-of-order autoconf expansion
34735         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34736         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34737         * modules/memchr-tests (Depends-on): Add extensions.
34738         * modules/memchr2-tests (Depends-on): Add extensions.
34739         * modules/memcmp-tests (Depends-on): Add extensions.
34740         * modules/memmem-tests (Depends-on): Add extensions.
34741         * modules/memrchr-tests (Depends-on): Add extensions.
34742
34743 2009-05-13  Bruno Haible  <bruno@clisp.org>
34744
34745         Make some tests ISO C 99 compliant.
34746         * tests/zerosize-ptr.h: New file.
34747         * tests/test-memchr.c: Include zerosize-ptr.h.
34748         (main): Use a zero-size object pointer instead of NULL.
34749         * tests/test-memchr2.c: Include zerosize-ptr.h.
34750         (main): Use a zero-size object pointer instead of NULL.
34751         * tests/test-memcmp.c: Include zerosize-ptr.h.
34752         (main): Use a zero-size object pointer instead of NULL.
34753         * tests/test-memmem.c: Include zerosize-ptr.h.
34754         (main): Use a zero-size object pointer instead of NULL.
34755         * tests/test-memrchr.c: Include zerosize-ptr.h.
34756         (main): Use a zero-size object pointer instead of NULL.
34757         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34758         m4/mmap-anon.m4.
34759         (Depends-on): Add getpagesize.
34760         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34761         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34762         m4/mmap-anon.m4.
34763         (Depends-on): Add getpagesize.
34764         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34765         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34766         m4/mmap-anon.m4.
34767         (Depends-on): Add getpagesize.
34768         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34769         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34770         m4/mmap-anon.m4.
34771         (Depends-on): Add getpagesize.
34772         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34773         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34774         m4/mmap-anon.m4.
34775         (Depends-on): Add getpagesize.
34776         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34777
34778 2009-05-12  Bruno Haible  <bruno@clisp.org>
34779
34780         Tests for module 'alignof'.
34781         * modules/alignof-tests: New file.
34782         * tests/test-alignof.c: New file.
34783
34784 2009-05-12  Bruno Haible  <bruno@clisp.org>
34785
34786         Fix alignof macro.
34787         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34788         vendor compilers that are always correct.
34789
34790 2009-05-12  Bruno Haible  <bruno@clisp.org>
34791
34792         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34793         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34794         not whether its fully works.
34795
34796 2009-05-12  Bruno Haible  <bruno@clisp.org>
34797
34798         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34799
34800 2009-05-12  Jim Meyering  <meyering@redhat.com>
34801
34802         * top/maint.mk: Adjust backslash alignment.
34803
34804 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34805
34806         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34807
34808 2009-05-11  Eric Blake  <ebb9@byu.net>
34809
34810         argp: avoid undefined behavior
34811         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34812         macros.
34813
34814 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34815
34816         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34817         user.name to prevent git commit from complaining.
34818
34819 2009-05-10  Bruno Haible  <bruno@clisp.org>
34820
34821         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34822         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34823         it rewrites every file name only once.
34824         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34825
34826 2009-05-08  Bruno Haible  <bruno@clisp.org>
34827
34828         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34829         instead of 'max'.
34830
34831 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34832
34833         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34834         sockaddr_storage test.
34835
34836 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34837
34838         * modules/sys_socket (Makefile.am): Substitute
34839         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34840         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34841         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34842         * tests/test-sys_socket.c: Check sockaddr_storage.
34843
34844 2009-05-08  Bruno Haible  <bruno@clisp.org>
34845
34846         New module 'alignof'.
34847         * lib/alignof.h: New file.
34848         * modules/alignof: New file.
34849
34850 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34851             Bruno Haible  <bruno@clisp.org>
34852
34853         Fix test-file-has-acl on FreeBSD.
34854         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34855         mask is implicitly added.
34856         * tests/test-file-has-acl.c: Include <signal.h>.
34857         (main): Terminate the test after 5 seconds.
34858         * modules/acl-tests (configure.ac): Check for alarm function.
34859
34860 2009-05-04  Bruno Haible  <bruno@clisp.org>
34861
34862         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34864         * modules/errno (configure.ac): Drop AC_REQUIRE.
34865         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34866         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34867
34868 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34869
34870         * modules/glob-tests: New module.
34871         * tests/test-glob.c: Add.
34872
34873 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34874
34875         * modules/fnmatch-tests: New module.
34876         * tests/test-fnmatch.c: Add.
34877
34878 2009-05-04  Eric Blake  <ebb9@byu.net>
34879
34880         maint: make the new no-submodule-changes rule VPATH-safe
34881         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34882
34883 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34884             Bruno Haible  <bruno@clisp.org>
34885
34886         acl: Fix infinite loop on FreeBSD.
34887         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34888         of return value from acl_get_entry.
34889         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34890         Likewise.
34891
34892 2009-05-03  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/acl-internal.h (acl_entries): Clarify return value.
34895         * lib/acl_entries.c (acl_entries): Likewise.
34896
34897 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34898
34899         Bug fix in acl module.
34900         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34901
34902 2009-05-03  Bruno Haible  <bruno@clisp.org>
34903
34904         Create gperf-generated file in the source dir, not in the build dir.
34905         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34906         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34907         * modules/unicase/locale-language (unicase/locale-languages.h):
34908         Likewise.
34909         * modules/unicase/special-casing (unicase/special-casing-table.h):
34910         Likewise.
34911         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34912         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34913         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34914         Reported by Ralf Wildenhues.
34915
34916 2009-05-03  Bruno Haible  <bruno@clisp.org>
34917
34918         * modules/fnmatch (Description, configure.ac): Taken from
34919         fnmatch-posix.
34920         * modules/fnmatch-posix: Turn into a symbolic reference to the
34921         'fnmatch' module, and deprecate.
34922         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34923
34924 2009-05-03  Bruno Haible  <bruno@clisp.org>
34925
34926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34927         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34928         Reported by Ralf Wildenhues.
34929
34930 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34931
34932         * m4/fnmatch.m4: Fix fnmatch re-define.
34933
34934 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34935
34936         priv-set: new module and tests; adapt write-any-file
34937         * lib/priv-set.c: New file.
34938         * lib/priv-set.h: New file.
34939         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34940         * lib/write-any-file.c: Simplify by using priv-set module.
34941         * m4/priv-set.m4: New file.
34942         * modules/priv-set: New file.
34943         * modules/unlinkdir: Add dependency on priv-set module.
34944         * modules/write-any-file: Likewise.
34945
34946         Tests for module 'priv-set'.
34947         * modules/priv-set-tests: New file.
34948         * tests/test-priv-set.c: New file.
34949
34950 2009-05-03  Jim Meyering  <meyering@redhat.com>
34951             Bruno Haible  <bruno@clisp.org>
34952
34953         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34954         use the converted UTF-8 variant of the name instead.
34955
34956 2009-05-03  Jim Meyering  <meyering@redhat.com>
34957
34958         tests: tighten some getdate tests
34959         * tests/test-getdate.c (main): Tighten tests: require equality,
34960         not just greater than.  Set TZ envvar to UTC0.
34961
34962 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34963
34964         getdate: correctly interpret "next monday" when run on a Monday
34965         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34966         that e.g., "next tues" (when run on a tuesday) results in a date
34967         that is one week in the future, and not today's date.
34968         I.e., add a week when the wday is the same as the current one.
34969         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34970         and earlier by Martin Bernreuther and Jan Minář.
34971         * tests/test-getdate.c (main): Check that "next DAY" is always in
34972         the future and that "last DAY" is always in the past.
34973
34974 2009-05-02  Jim Meyering  <meyering@redhat.com>
34975
34976         build: ensure that a release build fails when a submodule is unclean
34977         * top/maint.mk (no-submodule-changes): New rule.
34978         (alpha beta major): Depend on it.
34979
34980 2009-05-02  Bruno Haible  <bruno@clisp.org>
34981
34982         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34983         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34984         shell variable gl_fnmatch_required to detect which variant is
34985         requested.
34986         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34987         gl_FUNC_FNMATCH_POSIX.
34988         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34989         exclude fnmatch-posix.
34990
34991 2009-05-02  Bruno Haible  <bruno@clisp.org>
34992
34993         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34994         * modules/mbsrtowcs (License): Change to LGPLv2+.
34995         * modules/strnlen1 (License): Likewise.
34996         Reported by Simon Josefsson.
34997
34998 2009-05-02  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35001         "cross".
35002         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35003         gnulib-tool was called with option --source-base=lib.
35004
35005 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35006
35007         Use automake *-local hooks without commands, for extensibility.
35008         * modules/localcharset (Makefile.am): Rename install-exec-local
35009         rule to install-exec-localcharset, and make it a prerequisite of
35010         install-exec-local.  Likewise, rename the uninstall-local rule to
35011         uninstall-localcharset, and make it a prerequisite of the former.
35012
35013 2009-05-01  Bruno Haible  <bruno@clisp.org>
35014
35015         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35016         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35017         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35019         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35020         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35021         m4/locale-zh.m4, m4/codeset.m4.
35022
35023         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35024         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35025         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35026         m4/locale-zh.m4.
35027
35028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35029         REPLACE_WCRTOMB if mbstate_t must be replaced.
35030         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35031         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35032
35033 2009-05-01  Bruno Haible  <bruno@clisp.org>
35034
35035         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35036         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35037         dngettext, dcngettext, textdomain, bindtextdomain,
35038         bind_textdomain_codeset): Undefine before redefining.
35039
35040 2009-04-30  Bruno Haible  <bruno@clisp.org>
35041
35042         Fix bug introduced on 2009-04-25.
35043         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35044         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35045         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35046         is defined.
35047         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35048         is defined.
35049         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35050         is defined.
35051         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35052
35053 2009-04-28  Bruno Haible  <bruno@clisp.org>
35054
35055         Comment tweaks.
35056         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35057         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35058         * lib/unicase.h (u*_casexfrm): Likewise.
35059         Reported by Paolo Bonzini.
35060
35061 2009-04-28  Bruno Haible  <bruno@clisp.org>
35062
35063         Fix a compilation error.
35064         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35065         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35066         Reported by Jim Meyering.
35067
35068 2009-04-27  Bruno Haible  <bruno@clisp.org>
35069
35070         New module 'libunistring'.
35071         * modules/libunistring: New file.
35072         * m4/libunistring.m4: New file.
35073         * MODULES.html.sh (Unicode string functions): Add it.
35074
35075 2009-04-27  Eric Blake  <ebb9@byu.net>
35076
35077         maint.mk: allow package-specific header to provide <config.h>
35078         * top/maint.mk (sc_require_config_h): New variable.
35079         (sc_require_config_h, sc_require_config_h_first): Use it.
35080
35081 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35082
35083         * top/maint.mk (sc_avoid_if_before_free): Except
35084         useless-if-before-free script.
35085
35086 2009-04-27  Eric Blake  <ebb9@byu.net>
35087
35088         maintainer-makefile: depend on all required helper scripts
35089         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35090         useless-if-before-free.
35091         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35092         version, rather than assuming gnulib checkout is available.
35093         Reported by Simen Josefsson.
35094
35095 2009-04-26  Bruno Haible  <bruno@clisp.org>
35096
35097         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35098         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35099         "../" or "..".
35100
35101 2009-04-26  Bruno Haible  <bruno@clisp.org>
35102
35103         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35104         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35105         AC_LIB_HAVE_LINKFLAGS.
35106
35107 2009-04-26  Bruno Haible  <bruno@clisp.org>
35108
35109         Simplify calling convention of u*_conv_from_encoding.
35110         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35111         u32_conv_from_encoding): Expect a resultbuf argument and return the
35112         result directly as a pointer.
35113         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35114         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35115         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35116         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35117         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35118         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35119         Update.
35120         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35121         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35122         * lib/vasnprintf.c (VASNPRINTF): Update.
35123         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35124         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35125         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35126         * NEWS: Mention the change.
35127
35128 2009-04-26  Bruno Haible  <bruno@clisp.org>
35129
35130         Simplify calling convention of u*_conv_to_encoding.
35131         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35132         u32_conv_to_encoding): Expect a resultbuf argument and return the
35133         result directly as a pointer.
35134         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35135         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35136         freeing scaled_offsets if mem_iconveha failed.
35137         * lib/unicase/u-casexfrm.h (FUNC): Update.
35138         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35139         * lib/vasnprintf.c (VASNPRINTF): Update.
35140         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35141         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35142         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35143         * NEWS: Mention the change.
35144
35145 2009-04-26  Bruno Haible  <bruno@clisp.org>
35146
35147         Avoid test failures on AIX and OSF/1.
35148         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35149         malloc(0).
35150         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35151         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35152         Likewise.
35153         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35154         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35155         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35156         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35157         * doc/posix-functions/malloc.texi: Document the portability problem
35158         related to malloc(0).
35159
35160 2009-04-26  Bruno Haible  <bruno@clisp.org>
35161
35162         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35163         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35164         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35165
35166 2009-04-25  Bruno Haible  <bruno@clisp.org>
35167
35168         Avoid link error when creating a namespace clean library.
35169         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35170         as macro with arguments if already defined as an alias.
35171         * lib/signbitf.c (gl_signbitf): Don't undefine.
35172         * lib/signbitd.c (gl_signbitd): Don't undefine.
35173         * lib/signbitl.c (gl_signbitl): Don't undefine.
35174
35175 2009-04-25  Jim Meyering  <meyering@redhat.com>
35176
35177         vc-list-files: fix another quoting bug
35178         * build-aux/vc-list-files: Avoid sed backslash expansion
35179         of pathological directory names.
35180
35181 2009-04-25  Eric Blake  <ebb9@byu.net>
35182
35183         vc-list-files: fix shell quoting error
35184         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35185         timestamp.
35186
35187 2009-04-25  Jim Meyering  <meyering@redhat.com>
35188
35189         vc-list-files: restore lost functionality with subdir argument
35190         * build-aux/vc-list-files: When given a non-"." sub-directory
35191         argument, substitute the $dir/ prefix back onto each resulting name.
35192         Otherwise, coreutils' root_tests check would fail.
35193
35194 2009-04-24  Eric Blake  <ebb9@byu.net>
35195
35196         vc-list-files: ignore git symlinks
35197         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35198         than ls-files, to ignore git symlinks.
35199
35200         maint.mk: import improvements from m4
35201         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35202         (move_if_change): Delete unused macro.
35203         (news-date-check, vc-diff-check): Support VPATH builds.
35204         (announcement): Likewise.  Split --bootstrap-tools list...
35205         (boostrap-tools): ...into separate list, which can be overridden
35206         in cfg.mk.
35207         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35208         requiring dependency on useless-if-before-free module.
35209         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35210         Support VPATH builds.
35211
35212 2009-04-24  Jim Meyering  <meyering@redhat.com>
35213
35214         maint.mk: remove coreutils-specific rules and variables
35215         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35216         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35217         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35218
35219         maint.mk: remove obsolete rule
35220         * top/maint.mk (rel-check): Remove rule.
35221         (WGET, WGETFLAGS): Remove now-unused variables.
35222
35223 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35224
35225         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35226         consistency.
35227
35228         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35229         '$(PATH_SEPARATOR)' instead of ':'.
35230
35231 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35232
35233         * lib/getopt1.c (main): Use 'const' for static array.
35234
35235 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35236
35237         * top/maint.mk: Sync with coreutils.
35238         * NEWS: Explain incompatibilities.
35239
35240 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35241             Bruno Haible  <bruno@clisp.org>
35242
35243         Fix cross-compilation results.
35244         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35245         statement, as third argument of AC_TRY_RUN.
35246         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35247         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35248         Likewise.
35249         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35250         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35251         Likewise.
35252         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35253         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35254         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35255
35256 2009-04-20  Bruno Haible  <bruno@clisp.org>
35257
35258         Avoid test failure on mingw.
35259         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35260
35261 2009-04-20  Bruno Haible  <bruno@clisp.org>
35262
35263         Avoid compilation error on mingw.
35264         * modules/localename-tests (Depends-on): Add locale.
35265
35266 2009-04-19  Bruno Haible  <bruno@clisp.org>
35267
35268         Support for building a shared library on Windows platforms.
35269         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35270         (main): Test the presence of UNINORM_NFC here.
35271         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35272         (main): Test the presence of UNINORM_NFD here.
35273         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35274         (main): Test the presence of UNINORM_NFKC here.
35275         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35276         (main): Test the presence of UNINORM_NFKD here.
35277
35278 2009-04-19  Bruno Haible  <bruno@clisp.org>
35279
35280         Avoid a compiler warning.
35281         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35282         Change type of variable 'sequence'.
35283
35284 2009-04-19  Bruno Haible  <bruno@clisp.org>
35285
35286         * modules/configmake (Makefile.am): When the contents of configmake.h
35287         does not change, arrange to preserve its modification time.
35288
35289 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35290
35291         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35292         gettext domain.
35293
35294 2009-04-16  Jim Meyering  <meyering@redhat.com>
35295
35296         useless-if-before-free: improve conversion code
35297         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35298         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35299
35300 2009-04-14  Bruno Haible  <bruno@clisp.org>
35301
35302         * modules/fcntl (Depends-on): Add extensions.
35303         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35304
35305 2009-04-12  Ben Pfaff  <blp@gnu.org>
35306
35307         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35308         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35309
35310 2009-03-20  Ben Pfaff  <blp@gnu.org>
35311
35312         Make rename replace existing destinations on Windows.
35313         * m4/rename.m4: Add test for Mingw.
35314         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35315         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35316         * doc/posix-functions/rename.texi: Document.
35317
35318 2009-04-10  Bruno Haible  <bruno@clisp.org>
35319
35320         New include file "iconveh.h".
35321         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35322         * lib/striconveh.h: Include it.
35323         (enum iconv_ilseq_handler): Remove definition.
35324         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35325         striconveh.h.
35326         * lib/striconveha.c: Include striconveh.h.
35327         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35328         * modules/striconveh (Files): Add lib/iconveh.h.
35329         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35330         lib/striconveh.h.
35331
35332 2009-04-10  Bruno Haible  <bruno@clisp.org>
35333
35334         * lib/uniconv.h: Update comment.
35335
35336 2009-04-10  Bruno Haible  <bruno@clisp.org>
35337
35338         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35339         always.
35340         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35341         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35342         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35343         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35344         "unistring-notinline.h", so that the function gets defined always.
35345         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35346         * lib/unistr/u8-uctomb.c: Likewise.
35347         * lib/unistr/u16-mbtouc.c: Likewise.
35348         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35349         * lib/unistr/u16-uctomb.c: Likewise.
35350         * lib/unistr/u32-mbtouc.c: Likewise.
35351         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35352         * lib/unistr/u32-uctomb.c: Likewise.
35353
35354 2009-04-10  Bruno Haible  <bruno@clisp.org>
35355
35356         Mark 'utime' obsolete.
35357         * modules/utime (Status, Notice): New sections.
35358         Suggested by Jim Meyering.
35359
35360         Fix cross-compile guess for utime test.
35361         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35362         autoconf.
35363         * doc/posix-functions/utime.texi: Give more precisions.
35364         Reported by Jan <ipif@ymail.com>.
35365
35366 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35367
35368         filevercmp: correct today's change
35369         * lib/filevercmp.c: Also handle coreutils' test inputs.
35370         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35371
35372         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35373         for reporting it.
35374         * lib/filevercmp.c: Special handle for "", "." and "..".
35375         * tests/test-filevercmp.c: Enlarge the set suite.
35376
35377 2009-04-07  Jim Meyering  <meyering@redhat.com>
35378
35379         useless-if-before-free: show how to remove braced useless free, too
35380         * build-aux/useless-if-before-free: still only in a comment, though.
35381
35382 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35383
35384         maint.mk: import changes to syntax-check macros from coreutils
35385         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35386         Use them in the relevant macros.
35387
35388 2009-04-06  Bruno Haible  <bruno@clisp.org>
35389
35390         Fix unportable use of bit-fields.
35391         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35392         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35393         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35394
35395 2009-04-06  Bruno Haible  <bruno@clisp.org>
35396
35397         Avoid test failures on AIX and OSF/1.
35398         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35399         that malloc(0) = NULL.
35400         * tests/unicase/test-u8-tolower.c (check): Likewise.
35401         * tests/unicase/test-u8-totitle.c (check): Likewise.
35402         * tests/unicase/test-u8-toupper.c (check): Likewise.
35403         * tests/unicase/test-u16-casefold.c (check): Likewise.
35404         * tests/unicase/test-u16-tolower.c (check): Likewise.
35405         * tests/unicase/test-u16-totitle.c (check): Likewise.
35406         * tests/unicase/test-u16-toupper.c (check): Likewise.
35407         * tests/unicase/test-u32-casefold.c (check): Likewise.
35408         * tests/unicase/test-u32-tolower.c (check): Likewise.
35409         * tests/unicase/test-u32-totitle.c (check): Likewise.
35410         * tests/unicase/test-u32-toupper.c (check): Likewise.
35411         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35412         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35413         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35414         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35415         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35416         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35417         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35418         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35419         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35420         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35421         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35422         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35423
35424 2009-04-05  Bruno Haible  <bruno@clisp.org>
35425
35426         Work around an autoconf limitation.
35427         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35428         comment line if it would be longer than 3 KB.
35429
35430 2009-04-05  Bruno Haible  <bruno@clisp.org>
35431
35432         Avoid test failure with libiconv-1.13.
35433         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35434         of the expected test results.
35435
35436 2009-04-05  Bruno Haible  <bruno@clisp.org>
35437
35438         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35439         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35440         that it should be installed.
35441
35442 2009-04-05  Bruno Haible  <bruno@clisp.org>
35443
35444         * gnulib-tool: New option --copy-file.
35445         (func_usage): Document it.
35446         (func_dest_tmpfilename): Moved out of func_import.
35447         (func_add_file, func_update_file): New functions, extracted from
35448         func_import.
35449         (func_import): Update.
35450
35451 2009-04-05  Karl Berry  <karl@gnu.org>
35452
35453         * README: prominently mention gnulib-tool.
35454         Rearrange sections so getting the code is near the top.
35455
35456 2009-04-05  Bruno Haible  <bruno@clisp.org>
35457
35458         * lib/unicase.h: Mention u*_cmp2.
35459         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35460         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35461         * lib/unicase/ulc-casecmp.c: Likewise.
35462         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35463         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35464         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35465         unistr/u8-cmp.
35466         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35467         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35468         unistr/u16-cmp.
35469         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35470         unistr/u32-cmp.
35471
35472         * lib/uninorm.h: Mention u*_cmp2.
35473         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35474         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35475         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35476         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35477         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35478         unistr/u8-cmp.
35479         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35480         unistr/u16-cmp.
35481         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35482         unistr/u32-cmp.
35483
35484         New module 'unistr/u32-cmp2'.
35485         * lib/unistr/u32-cmp2.c: New file.
35486         * modules/unistr/u32-cmp2: New file.
35487
35488         New module 'unistr/u16-cmp2'.
35489         * lib/unistr/u16-cmp2.c: New file.
35490         * modules/unistr/u16-cmp2: New file.
35491
35492         New module 'unistr/u8-cmp2'.
35493         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35494         * lib/unistr/u8-cmp2.c: New file.
35495         * lib/unistr/u-cmp2.h: New file.
35496         * modules/unistr/u8-cmp2: New file.
35497
35498 2009-04-05  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/unictype.h (uc_property_is_valid): New macro.
35501         * tests/unictype/test-pr_byname.c (main): Use it.
35502
35503         * lib/unistr.h: Doc fixes.
35504         * lib/uniconv.h: Doc fixes.
35505         * lib/unictype.h: Doc fixes.
35506
35507 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35508
35509         Port coreutils 7.2 to Solaris 8.
35510
35511         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35512         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35513         for Solaris 8.  This is a bit of a hack, as it means it's the
35514         caller's responsibility to add -lnsl if needed, but most likely it
35515         won't be needed since only getaddrinfo uses this and getaddrinfo
35516         isn't needed on Solaris 8.
35517
35518         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35519         problem to Solaris 8 encountered with coreutils 7.2, which
35520         resulted in a message "fnmatch.c:292: warning: passing argument 4
35521         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35522         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35523
35524 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35525
35526         * m4/ld-version-script.m4: Add FIXME comment.
35527
35528 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35529
35530         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35531         SOVERSION variable.
35532
35533 2009-04-02  Bruno Haible  <bruno@clisp.org>
35534
35535         * Makefile (info, html, dvi, pdf): Combine the rules.
35536         Suggested by Jim Meyering.
35537
35538 2009-04-01  Bruno Haible  <bruno@clisp.org>
35539
35540         * Makefile (info, html, dvi, pdf): New targets.
35541         Reported by Reuben Thomas <rrt@sc3d.org>.
35542
35543 2009-04-01  Bruno Haible  <bruno@clisp.org>
35544
35545         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35546         can be put into PATH.
35547         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35548
35549 2009-04-01  Bruno Haible  <bruno@clisp.org>
35550
35551         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35552
35553 2009-04-01  Bruno Haible  <bruno@clisp.org>
35554
35555         Rename module 'visibility'.
35556         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35557         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35558         * doc/gnulib.texi: Update.
35559         * MODULES.html.sh (Misc): Update.
35560         * NEWS: Mention the change.
35561
35562 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35563
35564         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35565         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35566         Eric Blake <ebb9@byu.net> for review.
35567         * MODULES.html.sh: Add lib-msvc-compat.
35568         * doc/gnulib.texi: Link to new section.
35569         * m4/ld-output-def.m4: New file.
35570         * doc/ld-output-def.texi: New file.
35571
35572 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35573
35574         Rename ld-version-script to lib-symbol-versions.  Suggested by
35575         Bruno Haible <bruno@clisp.org>.
35576         * modules/ld-version-script: Renamed to lib-symbol-versions.
35577         * doc/ld-version-script.texi: Fix module name.
35578         * MODULES.html.sh: Add lib-symbol-versions.
35579
35580 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35581
35582         * modules/u64-tests: New file.
35583         * tests/test-u64.c: New file.
35584
35585 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35586
35587         * MODULES.html.sh: Mention u64.
35588         * modules/u64: New module.
35589         * modules/crypto/sha512: Depend on u64 module instead of providing
35590         u64.h.
35591
35592 2009-03-27  Eric Blake  <ebb9@byu.net>
35593
35594         test-strerror: make debugging EAI_SYSTEM easier
35595         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35596         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35597         failure was EAI_SYSTEM.
35598
35599 2009-03-25  Bruno Haible  <bruno@clisp.org>
35600
35601         Fix a problem with --enable-relocatable on Solaris 7.
35602         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35603         since 2008-02-24.
35604
35605 2009-03-25  Eric Blake  <ebb9@byu.net>
35606
35607         test-sockets: avoid gcc warning
35608         * tests/test-sockets.c (main): Silence compiler warning.
35609
35610 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35611
35612         New modules nproc, pthread, contributed by Glen Lenker.
35613
35614         * MODULES.html.sh: Add pthread, nproc.
35615         * lib/nproc.c: New file.
35616         * lib/nproc.h: New file.
35617         * lib/pthread.in.h: New file.
35618         * m4/pthread.m4: New file.
35619         * modules/nproc: New file.
35620         * modules/pthread: New file.
35621
35622 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35623
35624         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35625         New variable.
35626
35627 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35628
35629         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35630         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35631         * tests/test-filevercmp.c: Add tests for backup suffixes.
35632
35633 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35634
35635         * modules/stdlib (Depends-on): Add stdint, needed when defining
35636         struct random_data on, for example, HP-UX 10.20.  Reported by
35637         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35638
35639 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35640
35641         * lib/readline.c (readline): Call fflush on stdout after printing
35642         prompt.
35643
35644 2009-03-20  Bruno Haible  <bruno@clisp.org>
35645
35646         Remove dependency from 'close' module to -lws2_32 on native Windows.
35647         * lib/close-hook.h: New file.
35648         * lib/close-hook.c: New file.
35649         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35650         w32sock.h.
35651         (_gl_close_fd_maybe_socket): Remove function.
35652         (rpl_close): Invoke execute_all_close_hooks instead of
35653         _gl_close_fd_maybe_socket.
35654         * lib/sockets.c: Include close-hook.h, w32sock.h.
35655         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35656         (close_sockets_hook): New variable.
35657         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35658         (gl_sockets_cleanup): Unregister it.
35659         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35660         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35661         * modules/close-hook: New file.
35662         * modules/close (Files): Remove lib/w32sock.h.
35663         (Depends-on): Add close-hook.
35664         (Link): Remove section.
35665         * modules/sockets (Files): Add lib/w32sock.h.
35666         (Depends-on): Add close-hook.
35667         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35668         invocation.
35669         * NEWS: Mention that LIB_CLOSE is gone.
35670
35671 2009-03-23  Eric Blake  <ebb9@byu.net>
35672
35673         signal-tests: test previous patch
35674         * tests/test-signal.c: New file.
35675         * modules/signal-tests: Likewise.
35676
35677         signal.h: always support 'volatile sig_atomic_t'
35678         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35679         (gl_SIGNAL_H_DEFAULTS): Add a default.
35680         * modules/signal (Makefile.am): Substitute if needed.
35681         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35682         users can blindly add volatile.
35683         * doc/posix-headers/signal.texi (signal.h): Document it.
35684         Reported by Matthew Woehlke.
35685
35686 2009-03-23  Jim Meyering  <meyering@redhat.com>
35687
35688         pathmax: PATH_MAX: use pathconf only when available
35689         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35690         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35691         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35692         This avoids a link failure in a PSP cross-compilation environment
35693         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35694
35695         * lib/vasnprintf.c (divide): Fix typo in comment.
35696
35697 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35698
35699         * gnulib-tool (func_filter_filelist): Fix comment.
35700
35701 2009-03-20  Bruno Haible  <bruno@clisp.org>
35702
35703         Make sockets.h self-contained.
35704         * lib/sockets.c: Include sockets.h first.
35705         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35706
35707 2009-03-19  Eric Blake  <ebb9@byu.net>
35708
35709         doc: mention more functions added in cygwin 1.7.0
35710         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35711         addition.
35712         * doc/posix-functions/log2f.texi: Likewise.
35713
35714 2009-03-19  Jim Meyering  <meyering@redhat.com>
35715
35716         fsusage: avoid syntax error due to statement-before-declaration
35717         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35718         after all declarations.  Reported by Matthew Woehlke in
35719         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35720
35721 2009-03-18  Eric Blake  <ebb9@byu.net>
35722
35723         build-aux/compile: sync from automake
35724         * build-aux/compile: New file, from automake.
35725         * config/srclist.txt: Mention build-aux/compile.
35726
35727 2009-03-17  Bruno Haible  <bruno@clisp.org>
35728
35729         * lib/git-merge-changelog.c: Fix typo in comment.
35730         Reported by Reuben Thomas <rrt@sc3d.org>.
35731
35732 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35733
35734         * m4/regex.m4: update and improve help for
35735         --without-included-regex.
35736
35737 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35738
35739         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35740         failure on missing include files.
35741
35742 2009-03-17  Eric Blake  <ebb9@byu.net>
35743
35744         doc: mention more functions added in cygwin 1.7.0
35745         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35746         addition.
35747         * doc/posix-functions/fwscanf.texi: Likewise.
35748         * doc/posix-functions/swprintf.texi: Likewise.
35749         * doc/posix-functions/swscanf.texi: Likewise.
35750         * doc/posix-functions/vfwprintf.texi: Likewise.
35751         * doc/posix-functions/vfwscanf.texi: Likewise.
35752         * doc/posix-functions/vswprintf.texi: Likewise.
35753         * doc/posix-functions/vswscanf.texi: Likewise.
35754         * doc/posix-functions/vwprintf.texi: Likewise.
35755         * doc/posix-functions/vwscanf.texi: Likewise.
35756         * doc/posix-functions/wcscasecmp.texi: Likewise.
35757         * doc/posix-functions/wcsdup.texi: Likewise.
35758         * doc/posix-functions/wcsftime.texi: Likewise.
35759         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35760         * doc/posix-functions/wprintf.texi: Likewise.
35761         * doc/posix-functions/wscanf.texi: Likewise.
35762         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35763
35764 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35765
35766         maint.mk: really add $(AM_MAKEFLAGS)
35767         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35768         was inadvertently omitted in the last commit.
35769         Spotted by Bruno Haible.
35770
35771         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35772         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35773         $(AM_MAKEFLAGS)' rather than plain `make'.
35774
35775         gnulib-tool: execute $MAKE not make
35776         * gnulib-tool: Default $MAKE to 'make'.
35777         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35778         than make.  Initialize $MAKE in the do-autobuild script.
35779
35780         gnulib-tool: use $MAKE not make in generated files
35781         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35782         make, in generated files.  Initialize $MAKE in the do-autobuild
35783         script.
35784
35785         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35786
35787         GNUmakefile: disable parallelism only for multiple, recursive targets
35788         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35789         additions in the Makefile.
35790         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35791         by Automake.
35792         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35793         are listed on the command line and at least one of them is
35794         listed in $(ALL_RECURSIVE_TARGETS).
35795
35796 2009-03-14  Bruno Haible  <bruno@clisp.org>
35797
35798         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35799         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35800         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35801         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35802         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35803         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35804         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35805         unistr/u8-uctomb.
35806         * modules/unistr/u8-strchr (Depends-on): Likewise.
35807         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35808         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35809         unistr/u16-uctomb.
35810         * modules/unistr/u16-strchr (Depends-on): Likewise.
35811         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35812
35813 2009-03-12  Bruno Haible  <bruno@clisp.org>
35814
35815         Work around select() bug on Interix 3.5.
35816         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35817         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35818         * m4/select.m4: New file.
35819         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35820         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35821         * modules/select (Files): Add m4/select.m4.
35822         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35823         * modules/nanosleep (Depends-on): Add select.
35824         * modules/poll (Depends-on): Likewise.
35825         * doc/posix-functions/select.texi: Mention the Interix bug.
35826         Reported by Markus Duft <mduft@gentoo.org>.
35827
35828         * lib/select.c: Renamed from lib/winsock-select.c.
35829         * modules/select (Files): Add lib/select.c, remove
35830         lib/winsock-select.c.
35831         (configure.ac): Update.
35832
35833 2009-03-12  Jim Meyering  <meyering@redhat.com>
35834
35835         avoid gcc warnings about unused macro definitions
35836         * lib/readtokens.c (STREQ): Remove unused definition.
35837         * lib/xmalloc.c (SIZE_MAX): Likewise.
35838         * lib/openat-die.c (N_): Likewise.
35839         * lib/mountlist.c (SIZE_MAX): Remove definition.
35840         Instead, include <stdint.h>.
35841         * lib/readutmp.c: Likewise.
35842         * modules/readutmp (Depends-on): Add stdint.
35843         * modules/mountlist (Depends-on): Add stdint.
35844         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35845
35846 2009-03-10  Bruno Haible  <bruno@clisp.org>
35847
35848         Tests for module 'mbmemcasecoll'.
35849         * modules/mbmemcasecoll-tests: New file.
35850         * tests/test-mbmemcasecoll1.sh: New file.
35851         * tests/test-mbmemcasecoll2.sh: New file.
35852         * tests/test-mbmemcasecoll3.sh: New file.
35853         * tests/test-mbmemcasecoll.c: New file.
35854
35855         New module 'mbmemcasecoll'.
35856         * lib/mbmemcasecoll.h: New file.
35857         * lib/mbmemcasecoll.c: New file.
35858         * modules/mbmemcasecoll: New file.
35859
35860         * tests/test-mbmemcasecmp.h: New file, extracted from
35861         tests/test-mbmemcasecmp.c.
35862         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35863         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35864         (main): Update.
35865         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35866
35867 2009-03-09  Bruno Haible  <bruno@clisp.org>
35868
35869         Tests for module 'mbmemcasecmp'.
35870         * modules/mbmemcasecmp-tests: New file.
35871         * tests/test-mbmemcasecmp1.sh: New file.
35872         * tests/test-mbmemcasecmp2.sh: New file.
35873         * tests/test-mbmemcasecmp3.sh: New file.
35874         * tests/test-mbmemcasecmp.c: New file.
35875
35876         New module 'mbmemcasecmp'.
35877         * lib/mbmemcasecmp.h: New file.
35878         * lib/mbmemcasecmp.c: New file.
35879         * modules/mbmemcasecmp: New file.
35880
35881 2009-03-09  Bruno Haible  <bruno@clisp.org>
35882
35883         Tests for module 'unicase/ulc-casecoll'.
35884         * modules/unicase/ulc-casecoll-tests: New file.
35885         * tests/unicase/test-ulc-casecoll1.sh: New file.
35886         * tests/unicase/test-ulc-casecoll2.sh: New file.
35887         * tests/unicase/test-ulc-casecoll.c: New file.
35888
35889         New module 'unicase/ulc-casecoll'.
35890         * lib/unicase.h (ulc_casecoll): New declaration.
35891         * lib/unicase/ulc-casecoll.c: New file.
35892         * modules/unicase/ulc-casecoll: New file.
35893
35894         New module 'unicase/ulc-casexfrm'.
35895         * lib/unicase.h (ulc_casexfrm): New declaration.
35896         * lib/unicase/ulc-casexfrm.c: New file.
35897         * modules/unicase/ulc-casexfrm: New file.
35898
35899 2009-03-09  Bruno Haible  <bruno@clisp.org>
35900
35901         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35902         invocations.
35903
35904         * m4/mbscasecmp.m4: Remove file.
35905         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35906         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35907
35908         * m4/mbscasestr.m4: Remove file.
35909         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35910         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35911
35912         * m4/mbschr.m4: Remove file.
35913         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35914         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35915
35916         * m4/mbscspn.m4: Remove file.
35917         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35918         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35919
35920         * m4/mbslen.m4: Remove file.
35921         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35922         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35923
35924         * m4/mbsncasecmp.m4: Remove file.
35925         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35926         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35927
35928         * m4/mbsnlen.m4: Remove file.
35929         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35930         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35931
35932         * m4/mbspbrk.m4: Remove file.
35933         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35934         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35935
35936         * m4/mbspcasecmp.m4: Remove file.
35937         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35938         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35939
35940         * m4/mbsrchr.m4: Remove file.
35941         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35942         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35943
35944         * m4/mbssep.m4: Remove file.
35945         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35946         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35947
35948         * m4/mbsspn.m4: Remove file.
35949         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35950         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35951
35952         * m4/mbsstr.m4: Remove file.
35953         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35954         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35955
35956         * m4/mbstok_r.m4: Remove file.
35957         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35958         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35959
35960         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35961
35962         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35963         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35964
35965         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35966
35967 2009-03-08  Bruno Haible  <bruno@clisp.org>
35968
35969         Tests for module 'unicase/ulc-casecmp'.
35970         * modules/unicase/ulc-casecmp-tests: New file.
35971         * tests/unicase/test-ulc-casecmp1.sh: New file.
35972         * tests/unicase/test-ulc-casecmp2.sh: New file.
35973         * tests/unicase/test-ulc-casecmp.c: New file.
35974
35975         New module 'unicase/ulc-casecmp'.
35976         * lib/unicase.h (ulc_casecmp): New declaration.
35977         * lib/unicase/ulc-casecmp.c: New file.
35978         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35979         'const SRC_UNIT *'.
35980         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35981         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35982         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35983         * modules/unicase/ulc-casecmp: New file.
35984
35985         Tests for module 'unicase/u32-is-cased'.
35986         * modules/unicase/u32-is-cased-tests: New file.
35987         * tests/unicase/test-u32-is-cased.c: New file.
35988
35989         Tests for module 'unicase/u16-is-cased'.
35990         * modules/unicase/u16-is-cased-tests: New file.
35991         * tests/unicase/test-u16-is-cased.c: New file.
35992
35993         Tests for module 'unicase/u8-is-cased'.
35994         * modules/unicase/u8-is-cased-tests: New file.
35995         * tests/unicase/test-u8-is-cased.c: New file.
35996         * tests/unicase/test-is-cased.h: New file.
35997
35998         New module 'unicase/u32-is-cased'.
35999         * lib/unicase/u32-is-cased.c: New file.
36000         * modules/unicase/u32-is-cased: New file.
36001
36002         New module 'unicase/u16-is-cased'.
36003         * lib/unicase/u16-is-cased.c: New file.
36004         * modules/unicase/u16-is-cased: New file.
36005
36006         New module 'unicase/u8-is-cased'.
36007         * lib/unicase/u8-is-cased.c: New file.
36008         * lib/unicase/u-is-cased.h: New file.
36009         * modules/unicase/u8-is-cased: New file.
36010
36011         Tests for module 'unicase/u32-is-casefolded'.
36012         * modules/unicase/u32-is-casefolded-tests: New file.
36013         * tests/unicase/test-u32-is-casefolded.c: New file.
36014
36015         Tests for module 'unicase/u16-is-casefolded'.
36016         * modules/unicase/u16-is-casefolded-tests: New file.
36017         * tests/unicase/test-u16-is-casefolded.c: New file.
36018
36019         Tests for module 'unicase/u8-is-casefolded'.
36020         * modules/unicase/u8-is-casefolded-tests: New file.
36021         * tests/unicase/test-u8-is-casefolded.c: New file.
36022         * tests/unicase/test-is-casefolded.h: New file.
36023
36024         New module 'unicase/u32-is-casefolded'.
36025         * lib/unicase/u32-is-casefolded.c: New file.
36026         * modules/unicase/u32-is-casefolded: New file.
36027
36028         New module 'unicase/u16-is-casefolded'.
36029         * lib/unicase/u16-is-casefolded.c: New file.
36030         * modules/unicase/u16-is-casefolded: New file.
36031
36032         New module 'unicase/u8-is-casefolded'.
36033         * lib/unicase/u8-is-casefolded.c: New file.
36034         * modules/unicase/u8-is-casefolded: New file.
36035
36036         Tests for module 'unicase/u32-is-titlecase'.
36037         * modules/unicase/u32-is-titlecase-tests: New file.
36038         * tests/unicase/test-u32-is-titlecase.c: New file.
36039
36040         Tests for module 'unicase/u16-is-titlecase'.
36041         * modules/unicase/u16-is-titlecase-tests: New file.
36042         * tests/unicase/test-u16-is-titlecase.c: New file.
36043
36044         Tests for module 'unicase/u8-is-titlecase'.
36045         * modules/unicase/u8-is-titlecase-tests: New file.
36046         * tests/unicase/test-u8-is-titlecase.c: New file.
36047         * tests/unicase/test-is-titlecase.h: New file.
36048
36049         New module 'unicase/u32-is-titlecase'.
36050         * lib/unicase/u32-is-titlecase.c: New file.
36051         * modules/unicase/u32-is-titlecase: New file.
36052
36053         New module 'unicase/u16-is-titlecase'.
36054         * lib/unicase/u16-is-titlecase.c: New file.
36055         * modules/unicase/u16-is-titlecase: New file.
36056
36057         New module 'unicase/u8-is-titlecase'.
36058         * lib/unicase/u8-is-titlecase.c: New file.
36059         * modules/unicase/u8-is-titlecase: New file.
36060
36061         Tests for module 'unicase/u32-is-lowercase'.
36062         * modules/unicase/u32-is-lowercase-tests: New file.
36063         * tests/unicase/test-u32-is-lowercase.c: New file.
36064
36065         Tests for module 'unicase/u16-is-lowercase'.
36066         * modules/unicase/u16-is-lowercase-tests: New file.
36067         * tests/unicase/test-u16-is-lowercase.c: New file.
36068
36069         Tests for module 'unicase/u8-is-lowercase'.
36070         * modules/unicase/u8-is-lowercase-tests: New file.
36071         * tests/unicase/test-u8-is-lowercase.c: New file.
36072         * tests/unicase/test-is-lowercase.h: New file.
36073
36074         New module 'unicase/u32-is-lowercase'.
36075         * lib/unicase/u32-is-lowercase.c: New file.
36076         * modules/unicase/u32-is-lowercase: New file.
36077
36078         New module 'unicase/u16-is-lowercase'.
36079         * lib/unicase/u16-is-lowercase.c: New file.
36080         * modules/unicase/u16-is-lowercase: New file.
36081
36082         New module 'unicase/u8-is-lowercase'.
36083         * lib/unicase/u8-is-lowercase.c: New file.
36084         * modules/unicase/u8-is-lowercase: New file.
36085
36086         Tests for module 'unicase/u32-is-uppercase'.
36087         * modules/unicase/u32-is-uppercase-tests: New file.
36088         * tests/unicase/test-u32-is-uppercase.c: New file.
36089
36090         Tests for module 'unicase/u16-is-uppercase'.
36091         * modules/unicase/u16-is-uppercase-tests: New file.
36092         * tests/unicase/test-u16-is-uppercase.c: New file.
36093
36094         Tests for module 'unicase/u8-is-uppercase'.
36095         * modules/unicase/u8-is-uppercase-tests: New file.
36096         * tests/unicase/test-u8-is-uppercase.c: New file.
36097         * tests/unicase/test-is-uppercase.h: New file.
36098
36099         New module 'unicase/u32-is-uppercase'.
36100         * lib/unicase/u32-is-uppercase.c: New file.
36101         * modules/unicase/u32-is-uppercase: New file.
36102
36103         New module 'unicase/u16-is-uppercase'.
36104         * lib/unicase/u16-is-uppercase.c: New file.
36105         * modules/unicase/u16-is-uppercase: New file.
36106
36107         New module 'unicase/u8-is-uppercase'.
36108         * lib/unicase/u8-is-uppercase.c: New file.
36109         * modules/unicase/u8-is-uppercase: New file.
36110
36111         New module 'unicase/u32-is-invariant'.
36112         * lib/unicase/u32-is-invariant.c: New file.
36113         * modules/unicase/u32-is-invariant: New file.
36114
36115         New module 'unicase/u16-is-invariant'.
36116         * lib/unicase/u16-is-invariant.c: New file.
36117         * modules/unicase/u16-is-invariant: New file.
36118
36119         New module 'unicase/u8-is-invariant'.
36120         * lib/unicase/u8-is-invariant.c: New file.
36121         * lib/unicase/invariant.h: New file.
36122         * lib/unicase/u-is-invariant.h: New file.
36123         * modules/unicase/u8-is-invariant: New file.
36124
36125         Tests for module 'unicase/u32-casecoll'.
36126         * modules/unicase/u32-casecoll-tests: New file.
36127         * tests/unicase/test-u32-casecoll.c: New file.
36128
36129         Tests for module 'unicase/u16-casecoll'.
36130         * modules/unicase/u16-casecoll-tests: New file.
36131         * tests/unicase/test-u16-casecoll.c: New file.
36132
36133         Tests for module 'unicase/u8-casecoll'.
36134         * modules/unicase/u8-casecoll-tests: New file.
36135         * tests/unicase/test-u8-casecoll.c: New file.
36136
36137         New module 'unicase/u32-casecoll'.
36138         * lib/unicase/u32-casecoll.c: New file.
36139         * modules/unicase/u32-casecoll: New file.
36140
36141         New module 'unicase/u16-casecoll'.
36142         * lib/unicase/u16-casecoll.c: New file.
36143         * modules/unicase/u16-casecoll: New file.
36144
36145         New module 'unicase/u8-casecoll'.
36146         * lib/unicase/u8-casecoll.c: New file.
36147         * lib/unicase/u-casecoll.h: New file.
36148         * modules/unicase/u8-casecoll: New file.
36149
36150         New module 'unicase/u32-casexfrm'.
36151         * lib/unicase/u32-casexfrm.c: New file.
36152         * modules/unicase/u32-casexfrm: New file.
36153
36154         New module 'unicase/u16-casexfrm'.
36155         * lib/unicase/u16-casexfrm.c: New file.
36156         * modules/unicase/u16-casexfrm: New file.
36157
36158         New module 'unicase/u8-casexfrm'.
36159         * lib/unicase/u8-casexfrm.c: New file.
36160         * lib/unicase/u-casexfrm.h: New file.
36161         * modules/unicase/u8-casexfrm: New file.
36162
36163         Tests for module 'unicase/u32-casecmp'.
36164         * modules/unicase/u32-casecmp-tests: New file.
36165         * tests/unicase/test-u32-casecmp.c: New file.
36166
36167         Tests for module 'unicase/u16-casecmp'.
36168         * modules/unicase/u16-casecmp-tests: New file.
36169         * tests/unicase/test-u16-casecmp.c: New file.
36170
36171         Tests for module 'unicase/u8-casecmp'.
36172         * modules/unicase/u8-casecmp-tests: New file.
36173         * tests/unicase/test-u8-casecmp.c: New file.
36174         * tests/unicase/test-casecmp.h: New file.
36175
36176         New module 'unicase/u32-casecmp'.
36177         * lib/unicase/u32-casecmp.c: New file.
36178         * modules/unicase/u32-casecmp: New file.
36179
36180         New module 'unicase/u16-casecmp'.
36181         * lib/unicase/u16-casecmp.c: New file.
36182         * modules/unicase/u16-casecmp: New file.
36183
36184         New module 'unicase/u8-casecmp'.
36185         * lib/unicase/u8-casecmp.c: New file.
36186         * lib/unicase/u-casecmp.h: New file.
36187         * modules/unicase/u8-casecmp: New file.
36188
36189         Tests for module 'unicase/u32-casefold'.
36190         * modules/unicase/u32-casefold-tests: New file.
36191         * tests/unicase/test-u32-casefold.c: New file.
36192
36193         Tests for module 'unicase/u16-casefold'.
36194         * modules/unicase/u16-casefold-tests: New file.
36195         * tests/unicase/test-u16-casefold.c: New file.
36196
36197         Tests for module 'unicase/u8-casefold'.
36198         * modules/unicase/u8-casefold-tests: New file.
36199         * tests/unicase/test-u8-casefold.c: New file.
36200
36201         New module 'unicase/u32-casefold'.
36202         * lib/unicase/u32-casefold.c: New file.
36203         * modules/unicase/u32-casefold: New file.
36204
36205         New module 'unicase/u16-casefold'.
36206         * lib/unicase/u16-casefold.c: New file.
36207         * modules/unicase/u16-casefold: New file.
36208
36209         New module 'unicase/u8-casefold'.
36210         * lib/unicase/u8-casefold.c: New file.
36211         * lib/unicase/u-casefold.h: New file.
36212         * modules/unicase/u8-casefold: New file.
36213
36214         New module 'unicase/tocasefold'.
36215         * lib/unicase/casefold.h: New file.
36216         * lib/unicase/tocasefold.c: New file.
36217         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36218         * modules/unicase/tocasefold: New file.
36219
36220         Tests for module 'unicase/u32-totitle'.
36221         * modules/unicase/u32-totitle-tests: New file.
36222         * tests/unicase/test-u32-totitle.c: New file.
36223
36224         Tests for module 'unicase/u16-totitle'.
36225         * modules/unicase/u16-totitle-tests: New file.
36226         * tests/unicase/test-u16-totitle.c: New file.
36227
36228         Tests for module 'unicase/u8-totitle'.
36229         * modules/unicase/u8-totitle-tests: New file.
36230         * tests/unicase/test-u8-totitle.c: New file.
36231
36232         New module 'unicase/u32-totitle'.
36233         * lib/unicase/u32-totitle.c: New file.
36234         * modules/unicase/u32-totitle: New file.
36235
36236         New module 'unicase/u16-totitle'.
36237         * lib/unicase/u16-totitle.c: New file.
36238         * modules/unicase/u16-totitle: New file.
36239
36240         New module 'unicase/u8-totitle'.
36241         * lib/unicase/u8-totitle.c: New file.
36242         * lib/unicase/u-totitle.h: New file.
36243         * modules/unicase/u8-totitle: New file.
36244
36245         Tests for module 'unicase/u32-tolower'.
36246         * modules/unicase/u32-tolower-tests: New file.
36247         * tests/unicase/test-u32-tolower.c: New file.
36248
36249         Tests for module 'unicase/u16-tolower'.
36250         * modules/unicase/u16-tolower-tests: New file.
36251         * tests/unicase/test-u16-tolower.c: New file.
36252
36253         Tests for module 'unicase/u8-tolower'.
36254         * modules/unicase/u8-tolower-tests: New file.
36255         * tests/unicase/test-u8-tolower.c: New file.
36256
36257         New module 'unicase/u32-tolower'.
36258         * lib/unicase/u32-tolower.c: New file.
36259         * modules/unicase/u32-tolower: New file.
36260
36261         New module 'unicase/u16-tolower'.
36262         * lib/unicase/u16-tolower.c: New file.
36263         * modules/unicase/u16-tolower: New file.
36264
36265         New module 'unicase/u8-tolower'.
36266         * lib/unicase/u8-tolower.c: New file.
36267         * modules/unicase/u8-tolower: New file.
36268
36269         Tests for module 'unicase/u32-toupper'.
36270         * modules/unicase/u32-toupper-tests: New file.
36271         * tests/unicase/test-u32-toupper.c: New file.
36272
36273         Tests for module 'unicase/u16-toupper'.
36274         * modules/unicase/u16-toupper-tests: New file.
36275         * tests/unicase/test-u16-toupper.c: New file.
36276
36277         Tests for module 'unicase/u8-toupper'.
36278         * modules/unicase/u8-toupper-tests: New file.
36279         * tests/unicase/test-u8-toupper.c: New file.
36280
36281         New module 'unicase/u32-toupper'.
36282         * lib/unicase/u32-toupper.c: New file.
36283         * modules/unicase/u32-toupper: New file.
36284
36285         New module 'unicase/u16-toupper'.
36286         * lib/unicase/u16-toupper.c: New file.
36287         * modules/unicase/u16-toupper: New file.
36288
36289         New module 'unicase/u8-toupper'.
36290         * lib/unicase/u8-toupper.c: New file.
36291         * modules/unicase/u8-toupper: New file.
36292
36293         New module 'unicase/u32-casemap'.
36294         * lib/unicase/u32-casemap.c: New file.
36295         * modules/unicase/u32-casemap: New file.
36296
36297         New module 'unicase/u16-casemap'.
36298         * lib/unicase/u16-casemap.c: New file.
36299         * modules/unicase/u16-casemap: New file.
36300
36301         New module 'unicase/u8-casemap'.
36302         * lib/unicase/unicasemap.h: New file.
36303         * lib/unicase/u8-casemap.c: New file.
36304         * lib/unicase/u-casemap.h: New file.
36305         * modules/unicase/u8-casemap: New file.
36306
36307         New module 'unicase/special-casing'.
36308         * lib/unicase/special-casing.h: New file.
36309         * lib/unicase/special-casing.c: New file.
36310         * lib/unicase/special-casing-table.gperf: New file, generated by
36311         gen-uni-tables.c.
36312         * modules/unicase/special-casing: New file.
36313
36314         Tests for module 'unicase/locale-language'.
36315         * modules/unicase/locale-language-tests: New file.
36316         * tests/unicase/test-locale-language.sh: New file.
36317         * tests/unicase/test-locale-language.c: New file.
36318
36319         New module 'unicase/locale-language'.
36320         * lib/unicase/locale-language.c: New file.
36321         * lib/unicase/locale-languages.gperf: New file.
36322         * modules/unicase/locale-language: New file.
36323
36324         Generate more tables for case conversion and case folding.
36325         * lib/gen-uni-tables.c (SCC_*): New enum items.
36326         (struct special_casing_rule): New type.
36327         (casing_rules, num_casing_rules, allocated_casing_rules): New
36328         variables.
36329         (add_casing_rule, fill_casing_rules): New functions.
36330         (struct casefold_rule): New type.
36331         (casefolding_rules, num_casefolding_rules,
36332         allocated_casefolding_rules): New variables.
36333         (fill_casefolding_rules): New function.
36334         (unicode_casefold): New variable.
36335         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36336         sort_casing_rules, output_casing_rules): New functions.
36337         (main): Accept to more arguments: SpecialCasing.txt and
36338         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36339         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36340         Output mapping for casefolding.
36341
36342         * lib/unicase.h: Include stdbool.h, uninorm.h.
36343         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36344         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36345         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36346         arguments.
36347         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36348         resultp arguments.
36349         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36350         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36351         resultp arguments.
36352         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36353         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36354         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36355         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36356         declarations.
36357         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36358
36359 2009-03-08  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36362         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36363         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36364         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36365
36366 2009-03-07  Bruno Haible  <bruno@clisp.org>
36367
36368         Adjust u*_normcmp, u*_normcoll API.
36369         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36370         u16_normcoll, u32_normcoll): Change failure conventions.
36371         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36372         errno and return -1.
36373         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36374
36375 2009-03-07  Bruno Haible  <bruno@clisp.org>
36376
36377         Tests for module 'uninorm/u32-normcoll'.
36378         * modules/uninorm/u32-normcoll-tests: New file.
36379         * tests/uninorm/test-u32-normcoll.c: New file.
36380
36381         Tests for module 'uninorm/u16-normcoll'.
36382         * modules/uninorm/u16-normcoll-tests: New file.
36383         * tests/uninorm/test-u16-normcoll.c: New file.
36384
36385         Tests for module 'uninorm/u8-normcoll'.
36386         * modules/uninorm/u8-normcoll-tests: New file.
36387         * tests/uninorm/test-u8-normcoll.c: New file.
36388
36389 2009-03-07  Bruno Haible  <bruno@clisp.org>
36390
36391         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36392         tests/uninorm/test-u32-normcmp.c.
36393         * tests/uninorm/test-u32-normcmp.c: Include it.
36394         (test_nonascii): New function, extracted from main. Add some more
36395         tests.
36396         (main): Invoke test_ascii and test_nonascii.
36397         * modules/uninorm/u32-normcmp-tests (Files): Add
36398         tests/uninorm/test-u32-normcmp.h.
36399         (Depends-on): Remove uninorm/u32-normcmp.
36400
36401         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36402         tests/uninorm/test-u16-normcmp.c.
36403         * tests/uninorm/test-u16-normcmp.c: Include it.
36404         (test_nonascii): New function, extracted from main. Add some more
36405         tests.
36406         (main): Invoke test_ascii and test_nonascii.
36407         * modules/uninorm/u16-normcmp-tests (Files): Add
36408         tests/uninorm/test-u16-normcmp.h.
36409         (Depends-on): Remove uninorm/u16-normcmp.
36410
36411         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36412         tests/uninorm/test-u8-normcmp.c.
36413         * tests/uninorm/test-u8-normcmp.c: Include it.
36414         (test_nonascii): New function, extracted from main. Add some more
36415         tests.
36416         (main): Invoke test_ascii and test_nonascii.
36417         * modules/uninorm/u8-normcmp-tests (Files): Add
36418         tests/uninorm/test-u8-normcmp.h.
36419         (Depends-on): Remove uninorm/u8-normcmp.
36420
36421 2009-03-07  Bruno Haible  <bruno@clisp.org>
36422
36423         New module 'uninorm/u32-normcoll'.
36424         * lib/uninorm/u32-normcoll.c: New file.
36425         * modules/uninorm/u32-normcoll: New file.
36426
36427         New module 'uninorm/u16-normcoll'.
36428         * lib/uninorm/u16-normcoll.c: New file.
36429         * modules/uninorm/u16-normcoll: New file.
36430
36431         New module 'uninorm/u8-normcoll'.
36432         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36433         declarations.
36434         * lib/uninorm/u8-normcoll.c: New file.
36435         * lib/uninorm/u-normcoll.h: New file.
36436         * modules/uninorm/u8-normcoll: New file.
36437
36438         New module 'uninorm/u32-normxfrm'.
36439         * lib/uninorm/u32-normxfrm.c: New file.
36440         * modules/uninorm/u32-normxfrm: New file.
36441
36442         New module 'uninorm/u16-normxfrm'.
36443         * lib/uninorm/u16-normxfrm.c: New file.
36444         * modules/uninorm/u16-normxfrm: New file.
36445
36446         New module 'uninorm/u8-normxfrm'.
36447         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36448         declarations.
36449         * lib/uninorm/u8-normxfrm.c: New file.
36450         * lib/uninorm/u-normxfrm.h: New file.
36451         * modules/uninorm/u8-normxfrm: New file.
36452
36453 2009-03-07  Bruno Haible  <bruno@clisp.org>
36454
36455         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36456         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36457         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36458
36459 2009-03-07  Bruno Haible  <bruno@clisp.org>
36460
36461         New module 'memxfrm'.
36462         * lib/memxfrm.h: New file.
36463         * lib/memxfrm.c: New file.
36464         * modules/memxfrm: New file.
36465
36466 2009-03-07  Bruno Haible  <bruno@clisp.org>
36467
36468         New module 'memcmp2'.
36469         * lib/memcmp2.h: New file.
36470         * lib/memcmp2.c: New file.
36471         * modules/memcmp2: New file.
36472
36473 2009-03-07  Bruno Haible  <bruno@clisp.org>
36474
36475         Tests for module 'uninorm/decomposing-form'.
36476         * modules/uninorm/decomposing-form-tests: New file.
36477         * tests/uninorm/test-decomposing-form.c: New file.
36478
36479         New module 'uninorm/decomposing-form'.
36480         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36481         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36482         Add 'decomposing_variant' field.
36483         * lib/uninorm/decomposing-form.c: New file.
36484         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36485         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36486         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36487         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36488         * modules/uninorm/decomposing-form: New file.
36489         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36490         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36491
36492 2009-03-07  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36495         strings.
36496
36497 2009-03-06  Bruno Haible  <bruno@clisp.org>
36498
36499         Tests for module 'uninorm/u32-normcmp'.
36500         * tests/uninorm/test-u32-normcmp.c: New file.
36501         * modules/uninorm/u32-normcmp-tests: New file.
36502
36503         Tests for module 'uninorm/u16-normcmp'.
36504         * tests/uninorm/test-u16-normcmp.c: New file.
36505         * modules/uninorm/u16-normcmp-tests: New file.
36506
36507         Tests for module 'uninorm/u8-normcmp'.
36508         * tests/uninorm/test-u8-normcmp.c: New file.
36509         * modules/uninorm/u8-normcmp-tests: New file.
36510
36511         New module 'uninorm/u32-normcmp'.
36512         * lib/uninorm/u32-normcmp.c: New file.
36513         * modules/uninorm/u32-normcmp: New file.
36514
36515         New module 'uninorm/u16-normcmp'.
36516         * lib/uninorm/u16-normcmp.c: New file.
36517         * modules/uninorm/u16-normcmp: New file.
36518
36519         New module 'uninorm/u8-normcmp'.
36520         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36521         declarations.
36522         * lib/uninorm/u8-normcmp.c: New file.
36523         * lib/uninorm/u-normcmp.h: New file.
36524         * modules/uninorm/u8-normcmp: New file.
36525
36526 2009-03-06  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36529         Reported by Eric Blake.
36530
36531 2009-03-06  Eric Blake  <ebb9@byu.net>
36532             Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36535         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36536         condition.
36537         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36538         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36539         condition.
36540         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36541
36542 2009-03-06  Eric Blake  <ebb9@byu.net>
36543
36544         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36545         to avoid compiler warnings.
36546         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36547
36548 2009-03-05  Bruno Haible  <bruno@clisp.org>
36549
36550         * tests/test-ftell.c (main): Disable test beyond end of file on
36551         FreeMiNT.
36552         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36553
36554 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36555
36556         * lib/filevercmp.c: Move hidden files up in ordering.
36557         * tests/test-filevercmp.c: Add tests for hidden files.
36558
36559 2009-03-04  Bruno Haible  <bruno@clisp.org>
36560
36561         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36562         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36563         AM_CFLAGS.
36564         Reported by Simon Josefsson.
36565
36566 2009-03-03  Bruno Haible  <bruno@clisp.org>
36567
36568         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36569         Reported by Simon Josefsson.
36570
36571         * doc/ld-version-script.texi: Update node reference.
36572
36573 2009-03-03  Bruno Haible  <bruno@clisp.org>
36574
36575         * modules/visibility (License): Change to 'unlimited'.
36576         Suggested by Simon Josefsson.
36577
36578 2009-03-03  Jim Meyering  <meyering@redhat.com>
36579
36580         unlinkdir: cannot_unlink_dir may modify process state
36581         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36582         it's neither thread-safe nor appropriate for use in a library.
36583
36584 2009-03-03  Eric Blake  <ebb9@byu.net>
36585
36586         test-closein: silence test under Darwin
36587         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36588         care if it dies from EPIPE or EBADF.
36589
36590 2009-03-03  Bruno Haible  <bruno@clisp.org>
36591
36592         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36593         earlier.
36594         * doc/visibility.texi: Fix @node and @section.
36595
36596 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36597
36598         * doc/gnulib.texi: Link to sections for ld version script and
36599         visibility.
36600         * doc/visibility.texi: Add @node and @section.
36601         * modules/ld-version-script: New module.
36602         * m4/ld-version-script.m4: New file.
36603         * doc/ld-version-script.texi: New file.
36604
36605 2009-03-02  David Lutterkort  <lutter@redhat.com>
36606
36607         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36609
36610 2009-03-02  Bruno Haible  <bruno@clisp.org>
36611
36612         * doc/visibility.texi: Mention libtool's -export-symbols option.
36613
36614 2009-03-02  Jim Meyering  <meyering@redhat.com>
36615
36616         announce-gen: new option: --no-print-checksums
36617         * build-aux/announce-gen (usage): Describe it.
36618         (print_checksums): Print a newline here, not in the [*] footnote.
36619         (main): Honor it.
36620
36621 2009-03-01  Bruno Haible  <bruno@clisp.org>
36622
36623         Use socklen_t in the native Windows replacements prototypes.
36624         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36625         instead of 'int'.
36626         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36627         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36628         * modules/getsockopt (Depends-on): Add socklen.
36629         * modules/setsockopt (Depends-on): Add socklen.
36630
36631 2009-03-01  Bruno Haible  <bruno@clisp.org>
36632
36633         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36634         least 4.2.
36635
36636 2009-03-01  Eric Blake  <ebb9@byu.net>
36637             Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36640         error messages.
36641         * lib/wait-process.c (wait_subprocess): Omit error message about
36642         deadly signal sent to the child of termsigp != NULL.
36643
36644 2009-03-01  Eric Blake  <ebb9@byu.net>
36645
36646         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36647
36648 2009-03-01  Bruno Haible  <bruno@clisp.org>
36649
36650         Avoid a gcc warning.
36651         * tests/test-sched.c (b): Make global.
36652         Reported by Eric Blake.
36653
36654 2009-01-19  Martin Lambers  <marlam@marlam.de>
36655
36656         Provide POSIX semantics for socket timeout options on W32.
36657         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36658         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36659         * modules/setsockopt: Depend on sys_time module for struct timeval.
36660         * modules/getsockopt: Depend on sys_time module for struct timeval.
36661
36662 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36663
36664         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36665         __USE_GNU, for consistency with netdb.in.h.
36666         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36667
36668 2009-03-01  Bruno Haible  <bruno@clisp.org>
36669
36670         More support for FreeMiNT.
36671         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36672         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36673
36674 2009-03-01  Bruno Haible  <bruno@clisp.org>
36675
36676         More support for FreeMiNT.
36677         * lib/fpurge.c (fpurge): Correct last commit.
36678         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36679
36680 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36681
36682         Fix unportable awk script in vc-list-files.
36683         * build-aux/vc-list-files: In the replacement awk script, use
36684         substr with a second argument of 1, not zero.
36685         Report by Simon Josefsson.
36686
36687 2009-02-28  Bruno Haible  <bruno@clisp.org>
36688
36689         More support for FreeMiNT.
36690         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36691         to FreeMiNT today.
36692         * lib/fwriting.c (fwriting): Likewise.
36693         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36694
36695 2009-02-28  Bruno Haible  <bruno@clisp.org>
36696
36697         * tests/test-freadseek.c (main): Disable test beyond end of file on
36698         FreeMiNT.
36699         * tests/test-ftello.c (main): Likewise.
36700         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36701
36702 2009-02-28  Bruno Haible  <bruno@clisp.org>
36703
36704         Add tentative support for FreeMiNT.
36705         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36706         * lib/fpurge.c (fpurge): Likewise.
36707         * lib/freadable.c (freadable): Likewise.
36708         * lib/freading.c (freading): Likewise.
36709         * lib/freadptr.c (freadptr): Likewise.
36710         * lib/freadseek.c (freadptrinc): Likewise.
36711         * lib/fseeko.c (rpl_fseeko): Likewise.
36712         * lib/fseterr.c (fseterr): Likewise.
36713         * lib/fwritable.c (fwritable): Likewise.
36714         * lib/fwriting.c (fwriting): Likewise.
36715         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36716         Hourihane.
36717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36718
36719 2009-02-28  Bruno Haible  <bruno@clisp.org>
36720
36721         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36722         SIGCHLD.
36723         Reported by Jim Meyering.
36724
36725 2009-02-28  Bruno Haible  <bruno@clisp.org>
36726
36727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36728         Mention the results of these tests on various platforms.
36729         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36730         order.
36731         * doc/posix-functions/printf.texi: Likewise.
36732         * doc/posix-functions/snprintf.texi: Likewise.
36733         * doc/posix-functions/sprintf.texi: Likewise.
36734         * doc/posix-functions/vfprintf.texi: Likewise.
36735         * doc/posix-functions/vprintf.texi: Likewise.
36736         * doc/posix-functions/vsnprintf.texi: Likewise.
36737         * doc/posix-functions/vsprintf.texi: Likewise.
36738         * doc/glibc-functions/obstack_printf.texi: Likewise.
36739         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36740
36741 2009-02-28  Bruno Haible  <bruno@clisp.org>
36742
36743         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36744         Reported by Loïc Minier <lool@dooz.org>.
36745
36746 2009-02-27  Bruno Haible  <bruno@clisp.org>
36747
36748         * gnulib-tool (func_import): Make the sed expression used to create the
36749         sed script for updating the .gitignore file POSIX compliant.
36750         Reported by Eric Blake.
36751
36752 2009-02-27  Bruno Haible  <bruno@clisp.org>
36753
36754         * gnulib-tool (sed): Don't alias as "sed --posix".
36755         Reported by Eric Blake.
36756
36757 2009-02-27  Bruno Haible  <bruno@clisp.org>
36758
36759         Avoid test link errors.
36760         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36761         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36762         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36763         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36765
36766 2009-02-27  Bruno Haible  <bruno@clisp.org>
36767
36768         Avoid spurious "(cached)" in configure output.
36769         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36770         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36771         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36772         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36773         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36774         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36775         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36776         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36777         Reported by Eric Blake.
36778
36779 2009-02-27  Eric Blake  <ebb9@byu.net>
36780
36781         printf: fix regression in previous patch
36782         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36783
36784 2009-02-27  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36787         value.
36788         * lib/stdint.in.h: Likewise.
36789         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36790
36791 2009-02-27  Eric Blake  <ebb9@byu.net>
36792
36793         doc: mention more functions added in cygwin 1.7.0
36794         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36795         addition.
36796         * doc/posix-functions/open_wmemstream.texi: Likewise.
36797         * doc/posix-functions/wcsnlen.texi: Likewise.
36798         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36799         * doc/posix-functions/wcstod.texi: Likewise.
36800         * doc/posix-functions/wcstof.texi: Likewise.
36801         * doc/posix-functions/wcstoimax.texi: Likewise.
36802         * doc/posix-functions/wcstok.texi: Likewise.
36803         * doc/posix-functions/wcstoumax.texi: Likewise.
36804
36805         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36807         * doc/posix-functions/fprintf.texi: Update.
36808         * doc/posix-functions/printf.texi: Update.
36809         * doc/posix-functions/snprintf.texi: Update.
36810         * doc/posix-functions/sprintf.texi: Update.
36811         * doc/posix-functions/vfprintf.texi: Update.
36812         * doc/posix-functions/vprintf.texi: Update.
36813         * doc/posix-functions/vsnprintf.texi: Update.
36814         * doc/posix-functions/vsprintf.texi: Update.
36815         * doc/glibc-functions/obstack_printf.texi: Update.
36816         * doc/glibc-functions/obstack_vprintf.texi: Update.
36817
36818 2009-02-26  Eric Blake  <ebb9@byu.net>
36819
36820         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36821         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36822         compilation bug by using runtime conversion.
36823         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36824         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36825         * modules/ceill-tests (Files): Use nan.h.
36826         * modules/floorl-tests (Files): Likewise.
36827         * modules/frexpl-tests (Files): Likewise.
36828         * modules/isnanl-tests (Files): Likewise.
36829         * modules/ldexpl-tests (Files): Likewise.
36830         * modules/roundl-tests (Files): Likewise.
36831         * modules/truncl-tests (Files): Likewise.
36832         * tests/test-ceill.c (main): Use a working NaN.
36833         * tests/test-floorl.c (main): Likewise.
36834         * tests/test-frexpl.c (main): Likewise.
36835         * tests/test-isnan.c (test_long_double): Likewise.
36836         * tests/test-isnanl.h (main): Likewise.
36837         * tests/test-ldexpl.h (main): Likewise.
36838         * tests/test-roundl.h (main): Likewise.
36839         * tests/test-truncl.h (main): Likewise.
36840         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36841
36842 2009-02-26  Eric Blake  <ebb9@byu.net>
36843             Bruno Haible  <bruno@clisp.org>
36844
36845         Work around a *printf bug with %ls on Solaris.
36846         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36847         precision is specified, sprintf stops converting the wide string
36848         argument when the number of bytes that have been produced by this
36849         conversion equals or exceeds the precision.
36850         * doc/posix-functions/fprintf.texi: Update.
36851         * doc/posix-functions/printf.texi: Update.
36852         * doc/posix-functions/snprintf.texi: Update.
36853         * doc/posix-functions/sprintf.texi: Update.
36854         * doc/posix-functions/vfprintf.texi: Update.
36855         * doc/posix-functions/vprintf.texi: Update.
36856         * doc/posix-functions/vsnprintf.texi: Update.
36857         * doc/posix-functions/vsprintf.texi: Update.
36858         * doc/glibc-functions/obstack_printf.texi: Update.
36859         * doc/glibc-functions/obstack_vprintf.texi: Update.
36860
36861 2009-02-26  Eric Blake  <ebb9@byu.net>
36862
36863         stdlib: favor compiler check of random.h
36864         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36865         to avoid an ObjC random.h installed by Swarm.
36866
36867 2009-02-26  Bruno Haible  <bruno@clisp.org>
36868
36869         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36870         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36871         Reported by Gary V. Vaughan <gary@gnu.org>.
36872
36873 2009-02-26  Bruno Haible  <bruno@clisp.org>
36874
36875         Fix *printf behaviour regarding the %ls directive.
36876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36877         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36878         NEED_PRINTF_DIRECTIVE_LS.
36879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36880         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36881         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36882         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36883         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36884         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36885         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36890         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36894         * doc/posix-functions/fprintf.texi: Update.
36895         * doc/posix-functions/printf.texi: Update.
36896         * doc/posix-functions/snprintf.texi: Update.
36897         * doc/posix-functions/sprintf.texi: Update.
36898         * doc/posix-functions/vfprintf.texi: Update.
36899         * doc/posix-functions/vprintf.texi: Update.
36900         * doc/posix-functions/vsnprintf.texi: Update.
36901         * doc/posix-functions/vsprintf.texi: Update.
36902         * doc/glibc-functions/obstack_printf.texi: Update.
36903         * doc/glibc-functions/obstack_vprintf.texi: Update.
36904         Reported by Eric Blake.
36905
36906 2009-02-25  Bruno Haible  <bruno@clisp.org>
36907
36908         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36909         with known value.
36910         Reported by Gary V. Vaughan <gary@gnu.org>.
36911
36912 2009-02-25  Bruno Haible  <bruno@clisp.org>
36913
36914         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36915         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36916         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36917         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36918         Reported by Gary V. Vaughan <gary@gnu.org>.
36919
36920 2009-02-25  Bruno Haible  <bruno@clisp.org>
36921
36922         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36923         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36924         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36925         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36926         Reported by Gary V. Vaughan <gary@gnu.org>.
36927
36928 2009-02-25  Eric Blake  <ebb9@byu.net>
36929
36930         tests: skip fseek/ftell tests if ungetc is broken
36931         * m4/ungetc.m4: New file.
36932         * modules/fseek-tests: Split test, so ungetc dependency is
36933         separate from rest of test.
36934         * modules/fseeko-tests: Likewise.
36935         * modules/ftell-tests: Likewise.
36936         * modules/ftello-tests: Likewise.
36937         * tests/test-fseek.c (main): Isolate ungetc dependency.
36938         * tests/test-fseeko.c (main): Likewise.
36939         * tests/test-ftell.c (main): Likewise.
36940         * tests/test-ftello.c (main): Likewise.
36941         * tests/test-fseek2.sh: New file.
36942         * tests/test-fseeko2.sh: Likewise.
36943         * tests/test-ftell2.sh: Likewise.
36944         * tests/test-ftello2.sh: Likewise.
36945
36946 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36947
36948         test-getaddrinfo: fix usage of skip return code 77
36949         * tests/test-gettaddrinfo.c: Return skip code 77 only
36950         for first occurance of skip (4x77 is not 77)
36951
36952 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36953
36954         strtod: avoid C99 decl-after-statement
36955         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36956
36957 2009-02-24  Eric Blake  <ebb9@byu.net>
36958
36959         strtod: detect HP-UX 11.31 bug
36960         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36961         Reported by Gary V. Vaughan.
36962
36963 2009-02-23  Bruno Haible  <bruno@clisp.org>
36964
36965         Fix invalid read past end of memory block.
36966         * lib/vasnprintf.c (DCHAR_SET): Define.
36967         (local_wcslen): Define only when needed.
36968         (local_strnlen, local_wcsnlen): New functions.
36969         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36970         directives that involve a conversion ourselves.
36971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36972         wcsnlen, mbrtowc, wcrtomb.
36973         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36974         * tests/test-vasprintf-posix.c (test_function): Likewise.
36975         * tests/test-snprintf-posix.h (test_function): Likewise.
36976         * tests/test-sprintf-posix.h (test_function): Likewise.
36977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36978
36979 2009-02-22  Bruno Haible  <bruno@clisp.org>
36980
36981         Implement new clarified decomposition of Hangul syllables.
36982         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36983         of type LTV, return only a pairwise decomposition.
36984         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36985         Likewise.
36986         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36987         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36988         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36989
36990 2009-02-22  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36993         zero-length results and shrink excess allocated memory.
36994         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36995         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36996         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36997         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36998         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36999         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37000         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37001         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37002         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37003         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37004         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37005         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37006
37007 2009-02-21  Bruno Haible  <bruno@clisp.org>
37008
37009         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37010         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37011         spaces after a period. Put a space between a macro name and its
37012         argument list. Trivial rewordings.
37013         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37014         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37015         (main): Return 0 explicitly.
37016
37017 2009-02-21  Bruno Haible  <bruno@clisp.org>
37018
37019         Tests for module 'uninorm/filter'.
37020         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37021         * modules/uninorm/filter-tests: New file.
37022
37023         New module 'uninorm/filter'.
37024         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37025         uninorm_filter_flush, uninorm_filter_free): New declarations.
37026         * lib/uninorm/uninorm-filter.c: New file.
37027         * modules/uninorm/filter: New file.
37028
37029 2009-02-21  Bruno Haible  <bruno@clisp.org>
37030
37031         Tests for module 'uninorm/nfkc'.
37032         * tests/uninorm/test-nfkc.c: New file.
37033         * tests/uninorm/test-u8-nfkc.c: New file.
37034         * tests/uninorm/test-u16-nfkc.c: New file.
37035         * tests/uninorm/test-u32-nfkc.c: New file.
37036         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37037         * tests/uninorm/test-u32-nfkc-big.c: New file.
37038         * modules/uninorm/nfkc-tests: New file.
37039
37040         New module 'uninorm/nfkc'.
37041         * lib/uninorm/nfkc.c: New file.
37042         * modules/uninorm/nfkc: New file.
37043
37044         Tests for module 'uninorm/nfkd'.
37045         * tests/uninorm/test-nfkd.c: New file.
37046         * tests/uninorm/test-u8-nfkd.c: New file.
37047         * tests/uninorm/test-u16-nfkd.c: New file.
37048         * tests/uninorm/test-u32-nfkd.c: New file.
37049         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37050         * tests/uninorm/test-u32-nfkd-big.c: New file.
37051         * modules/uninorm/nfkd-tests: New file.
37052
37053         New module 'uninorm/nfkd'.
37054         * lib/uninorm/nfkd.c: New file.
37055         * modules/uninorm/nfkd: New file.
37056
37057         Tests for module 'uninorm/nfc'.
37058         * tests/uninorm/test-nfc.c: New file.
37059         * tests/uninorm/test-u8-nfc.c: New file.
37060         * tests/uninorm/test-u16-nfc.c: New file.
37061         * tests/uninorm/test-u32-nfc.c: New file.
37062         * tests/uninorm/test-u32-nfc-big.sh: New file.
37063         * tests/uninorm/test-u32-nfc-big.c: New file.
37064         * modules/uninorm/nfc-tests: New file.
37065
37066         New module 'uninorm/nfc'.
37067         * lib/uninorm/nfc.c: New file.
37068         * modules/uninorm/nfc: New file.
37069
37070         Tests for module 'uninorm/nfd'.
37071         * tests/uninorm/test-nfd.c: New file.
37072         * tests/uninorm/test-u8-nfd.c: New file.
37073         * tests/uninorm/test-u16-nfd.c: New file.
37074         * tests/uninorm/test-u32-nfd.c: New file.
37075         * tests/uninorm/test-u32-nfd-big.sh: New file.
37076         * tests/uninorm/test-u32-nfd-big.c: New file.
37077         * tests/uninorm/test-u32-normalize-big.h: New file.
37078         * tests/uninorm/test-u32-normalize-big.c: New file.
37079         * tests/uninorm/NormalizationTest.txt: New file, created from
37080         Unicode 5.1.0 NormalizationTest.txt.
37081         * modules/uninorm/nfd-tests: New file.
37082
37083         New module 'uninorm/nfd'.
37084         * lib/uninorm/nfd.c: New file.
37085         * modules/uninorm/nfd: New file.
37086
37087         New module 'uninorm/u32-normalize'.
37088         * lib/uninorm/u32-normalize.c: New file.
37089         * modules/uninorm/u32-normalize: New file.
37090
37091         New module 'uninorm/u16-normalize'.
37092         * lib/uninorm/u16-normalize.c: New file.
37093         * modules/uninorm/u16-normalize: New file.
37094
37095         New module 'uninorm/u8-normalize'.
37096         * lib/uninorm/u8-normalize.c: New file.
37097         * lib/uninorm/normalize-internal.h: New file.
37098         * lib/uninorm/u-normalize-internal.h: New file.
37099         * modules/uninorm/u8-normalize: New file.
37100
37101         New module 'uninorm/decompose-internal'.
37102         * lib/uninorm/decompose-internal.c: New file.
37103         * modules/uninorm/decompose-internal: New file.
37104
37105         Tests for module 'uninorm/composition'.
37106         * tests/uninorm/test-composition.c: New file.
37107         * modules/uninorm/composition-tests: New file.
37108
37109         New module 'uninorm/composition'.
37110         * lib/uninorm/composition.c: New file.
37111         * lib/uninorm/composition-table.gperf: New file, generated by
37112         gen-uni-tables.
37113         * modules/uninorm/composition: New file.
37114
37115         Tests for module 'uninorm/compat-decomposition'.
37116         * tests/uninorm/test-compat-decomposition.c: New file.
37117         * modules/uninorm/compat-decomposition-tests: New file.
37118
37119         New module 'uninorm/compat-decomposition'.
37120         * lib/uninorm/decompose-internal.h: New file.
37121         * lib/uninorm/compat-decomposition.c: New file.
37122         * modules/uninorm/compat-decomposition: New file.
37123
37124         Tests for module 'uninorm/canonical-decomposition'.
37125         * tests/uninorm/test-canonical-decomposition.c: New file.
37126         * modules/uninorm/canonical-decomposition-tests: New file.
37127
37128         New module 'uninorm/canonical-decomposition'.
37129         * lib/uninorm/canonical-decomposition.c: New file.
37130         * modules/uninorm/canonical-decomposition: New file.
37131
37132         Tests for module 'uninorm/decomposition'.
37133         * tests/uninorm/test-decomposition.c: New file.
37134         * modules/uninorm/decomposition-tests: New file.
37135
37136         New module 'uninorm/decomposition'.
37137         * lib/uninorm/decomposition.c: New file.
37138         * modules/uninorm/decomposition: New file.
37139
37140         New module 'uninorm/decomposition-table'.
37141         * lib/uninorm/decomposition-table.h: New file.
37142         * lib/uninorm/decomposition-table.c: New file.
37143         * lib/uninorm/decomposition-table1.h: New file, generated by
37144         gen-uni-tables.
37145         * lib/uninorm/decomposition-table2.h: New file, generated by
37146         gen-uni-tables.
37147         * modules/uninorm/decomposition-table: New file.
37148
37149         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37150         (UC_DECOMP_*): New enumeration items.
37151         (get_decomposition): New function.
37152         (struct decomp_table): New type.
37153         (output_decomposition, output_decomposition_tables): New functions.
37154         (unicode_composition_exclusions): New variable.
37155         (fill_composition_exclusions, debug_output_composition_tables): New
37156         functions.
37157         (main): Accept one more argument. Invoke fill_composition_exclusions.
37158         Output decomposition and composition tables.
37159
37160         New module 'uninorm/base'.
37161         * lib/uninorm.h: New file.
37162         * lib/unictype.h: Update comment.
37163         * modules/uninorm/base: New file.
37164
37165 2009-02-21  David Lutterkort  <lutter@redhat.com>
37166
37167         Tests for module 'safe-alloc'.
37168         * tests/test-safe-alloc.c: New file.
37169         * modules/safe-alloc-tests: New file.
37170
37171         New module 'safe-alloc'.
37172         * lib/safe-alloc.h: New file.
37173         * lib/safe-alloc.c: New file.
37174         * m4/safe-alloc.m4: New file.
37175         * modules/safe-alloc: New file.
37176         * doc/safe-alloc.texi: New file.
37177         * doc/gnulib.texi: Include it.
37178         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37179         safe-alloc.
37180
37181 2009-02-18  Bruno Haible  <bruno@clisp.org>
37182
37183         Fix link error on non-glibc systems.
37184         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37185         variable.
37186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37187
37188 2009-02-18  Jim Meyering  <meyering@redhat.com>
37189
37190         fts: avoid used-uninitialized error due to recent change
37191         * lib/fts.c (fts_read): Guard uses of the new member,
37192         parent->fts_n_dirs_remaining, since it's not relevant for
37193         the parent of a directory specified on the command-line.
37194
37195 2009-02-17  James Youngman  <jay@gnu.org>
37196             Bruno Haible  <bruno@clisp.org>
37197
37198         * m4/include_next.m4: Reformulate comment.
37199
37200 2009-02-16  Jim Meyering  <meyering@redhat.com>
37201
37202         fts: add #if guards so that the fts_lgpl module still builds
37203         * lib/fts.c: Guard just-added hash-table-using parts with
37204         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37205         Reported by Simon Josefsson.
37206
37207 2009-02-15  Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/array-mergesort-tests: New file.
37210         * tests/test-array-mergesort.c: New file.
37211
37212         New module 'array-mergesort'.
37213         * modules/array-mergesort: New file.
37214         * lib/array-mergesort.h: New file.
37215
37216 2009-02-15  Bruno Haible  <bruno@clisp.org>
37217
37218         Fix 2009-02-07 commit.
37219         * lib/gen-uni-tables.c (output_predicate, output_category,
37220         output_combclass, output_bidi_category, output_decimal_digit,
37221         output_digit, output_numeric, output_mirror, output_scripts,
37222         output_ident_category, output_simple_mapping): Fix format directives.
37223         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37224
37225 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37226
37227         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37228         fixes are available from IBM.
37229
37230 2009-02-13  Jim Meyering  <meyering@redhat.com>
37231
37232         fts: arrange not to stat non-directories in more cases
37233         This makes GNU find (when it doesn't need to stat each file)
37234         *much* more efficient at traversing reiserfs file systems.
37235         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37236         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37237         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37238         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37239         (leaf_optimization_applies): New function.
37240         (LCO_hash, LCO_compare): New helper functions.
37241         (link_count_optimize_ok): New function.
37242         (fts_stat): Initialize new member (if dir).
37243         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37244         we've just stat'ed a directory.  Skip the stat call when possible.
37245         ---
37246         Note this AFS-related exchange:
37247         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37248         and note find's pioctl call in find/fstype.c.
37249         But that is necessary only if you want to enable the
37250         optimization for AFS, and for now, I don't.
37251
37252         fts: move a function definition "up" (no semantic change)
37253         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37254         "up" to precede upcoming use of a related function.
37255
37256 2009-02-11  Jim Meyering  <meyering@redhat.com>
37257
37258         fts: correct internal computation of nlinks (optimization-related)
37259         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37260         whether the current entry is a directory, so don't test it.
37261
37262 2009-02-10  Bruno Haible  <bruno@clisp.org>
37263
37264         Tests for module 'uniwbrk/ulc-wordbreaks'.
37265         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37266         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37267         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37268
37269         Tests for module 'uniwbrk/u32-wordbreaks'.
37270         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37271         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37272
37273         Tests for module 'uniwbrk/u16-wordbreaks'.
37274         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37275         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37276
37277         Tests for module 'uniwbrk/u8-wordbreaks'.
37278         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37279         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37280
37281 2009-02-10  Bruno Haible  <bruno@clisp.org>
37282
37283         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37284         property.
37285         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37286         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37287         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37288
37289 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37290
37291         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37292         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37293
37294 2009-02-10  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37297         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37298         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37299         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37300         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37301         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37302
37303 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37304
37305         * lib/sockets.h (gl_fd_to_handle): New function.
37306
37307         * tests/test-sockets.c: Call gl_fd_to_handle.
37308
37309 2009-02-09  Bruno Haible  <bruno@clisp.org>
37310
37311         * doc/havelib.texi: Document the conventions on bi-arch systems.
37312
37313 2009-02-08  Bruno Haible  <bruno@clisp.org>
37314
37315         Document the AC_LIB_LINKFLAGS macro.
37316         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37317         * doc/gnulib.texi: Include it.
37318
37319 2009-02-08  Bruno Haible  <bruno@clisp.org>
37320
37321         Fix wrong order of sections, compared to TOC.
37322         * doc/gnulib.texi: Include relocatable-maint.texi after the
37323         "Regular expressions" node, not before.
37324
37325 2009-02-08  Bruno Haible  <bruno@clisp.org>
37326
37327         Tests for module 'unicase/totitle'.
37328         * modules/unicase/totitle-tests: New file.
37329
37330         Tests for module 'unicase/tolower'.
37331         * modules/unicase/tolower-tests: New file.
37332
37333         Tests for module 'unicase/toupper'.
37334         * modules/unicase/toupper-tests: New file.
37335         * tests/unicase/test-mapping-part1.h: New file.
37336         * tests/unicase/test-mapping-part2.h: New file.
37337
37338         New module 'unicase/totitle'.
37339         * modules/unicase/totitle: New file.
37340         * lib/unicase/totitle.c: New file.
37341
37342         New module 'unicase/tolower'.
37343         * modules/unicase/tolower: New file.
37344         * lib/unicase/tolower.c: New file.
37345
37346         New module 'unicase/toupper'.
37347         * modules/unicase/toupper: New file.
37348         * lib/unicase/toupper.c: New file.
37349         * lib/unicase/simple-mapping.h: New file.
37350
37351         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37352         (mapping_table): New structure.
37353         (output_simple_mapping): New function.
37354         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37355         * modules/gen-uni-tables (Description): Update.
37356         * lib/unicase/toupper.h: New file, automatically generated by
37357         gen-uni-tables.
37358         * lib/unicase/tolower.h: New file, automatically generated by
37359         gen-uni-tables.
37360         * lib/unicase/totitle.h: New file, automatically generated by
37361         gen-uni-tables.
37362         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37363         gen-uni-tables.
37364         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37365         gen-uni-tables.
37366         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37367         gen-uni-tables.
37368
37369         New module 'unicase/base'.
37370         * modules/unicase/base: New file.
37371         * lib/unicase.h: New file.
37372
37373 2009-02-08  Bruno Haible  <bruno@clisp.org>
37374
37375         New module 'uniwbrk/ulc-wordbreaks'.
37376         * modules/uniwbrk/ulc-wordbreaks: New file.
37377         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37378
37379         New module 'uniwbrk/u32-wordbreaks'.
37380         * modules/uniwbrk/u32-wordbreaks: New file.
37381         * lib/uniwbrk/u32-wordbreaks.c: New file.
37382
37383         New module 'uniwbrk/u16-wordbreaks'.
37384         * modules/uniwbrk/u16-wordbreaks: New file.
37385         * lib/uniwbrk/u16-wordbreaks.c: New file.
37386
37387         New module 'uniwbrk/u8-wordbreaks'.
37388         * modules/uniwbrk/u8-wordbreaks: New file.
37389         * lib/uniwbrk/u8-wordbreaks.c: New file.
37390         * lib/uniwbrk/u-wordbreaks.h: New file.
37391
37392         New module 'uniwbrk/table'.
37393         * modules/uniwbrk/table: New file.
37394         * lib/uniwbrk/wbrktable.h: New file.
37395         * lib/uniwbrk/wbrktable.c: New file.
37396
37397         New module 'uniwbrk/wordbreak-property'.
37398         * modules/uniwbrk/wordbreak-property: New file.
37399         * lib/uniwbrk/wordbreak-property.c: New file.
37400
37401         * lib/gen-uni-tables.c (WBP_*): New enum items.
37402         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37403         (unicode_org_wbp): New variable.
37404         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37405         New functions.
37406         (wbp_table): New structure.
37407         (output_wbp, output_wbrk_tables): New functions.
37408         (main): Accept additional argument. Invoke fill_org_wbp,
37409         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37410         output_wbrk_tables.
37411         * modules/gen-uni-tables (Description): Update.
37412         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37413         gen-uni-tables.
37414
37415         New module 'uniwbrk/base'.
37416         * modules/uniwbrk/base: New file.
37417         * lib/uniwbrk.h: New file.
37418
37419 2009-02-08  Bruno Haible  <bruno@clisp.org>
37420
37421         Update to Unicode 5.1.0.
37422         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37423         U+2185..U+2188.
37424         (is_property_default_ignorable_code_point): Don't include characters
37425         of category Cc or Cs and not-a-characters.
37426         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37427         U+0D79, U+109E, U+109F, U+A60C.
37428         * lib/unictype/bidi_of.h: Regenerated.
37429         * lib/unictype/blocks.h: Regenerated.
37430         * lib/unictype/categ_C.h: Regenerated.
37431         * lib/unictype/categ_Cf.h: Regenerated.
37432         * lib/unictype/categ_Cn.h: Regenerated.
37433         * lib/unictype/categ_L.h: Regenerated.
37434         * lib/unictype/categ_Ll.h: Regenerated.
37435         * lib/unictype/categ_Lm.h: Regenerated.
37436         * lib/unictype/categ_Lo.h: Regenerated.
37437         * lib/unictype/categ_Lu.h: Regenerated.
37438         * lib/unictype/categ_M.h: Regenerated.
37439         * lib/unictype/categ_Mc.h: Regenerated.
37440         * lib/unictype/categ_Me.h: Regenerated.
37441         * lib/unictype/categ_Mn.h: Regenerated.
37442         * lib/unictype/categ_N.h: Regenerated.
37443         * lib/unictype/categ_Nd.h: Regenerated.
37444         * lib/unictype/categ_Nl.h: Regenerated.
37445         * lib/unictype/categ_No.h: Regenerated.
37446         * lib/unictype/categ_P.h: Regenerated.
37447         * lib/unictype/categ_Pd.h: Regenerated.
37448         * lib/unictype/categ_Pe.h: Regenerated.
37449         * lib/unictype/categ_Pf.h: Regenerated.
37450         * lib/unictype/categ_Pi.h: Regenerated.
37451         * lib/unictype/categ_Po.h: Regenerated.
37452         * lib/unictype/categ_Ps.h: Regenerated.
37453         * lib/unictype/categ_S.h: Regenerated.
37454         * lib/unictype/categ_Sk.h: Regenerated.
37455         * lib/unictype/categ_Sm.h: Regenerated.
37456         * lib/unictype/categ_So.h: Regenerated.
37457         * lib/unictype/categ_of.h: Regenerated.
37458         * lib/unictype/combining.h: Regenerated.
37459         * lib/unictype/ctype_alnum.h: Regenerated.
37460         * lib/unictype/ctype_alpha.h: Regenerated.
37461         * lib/unictype/ctype_graph.h: Regenerated.
37462         * lib/unictype/ctype_lower.h: Regenerated.
37463         * lib/unictype/ctype_print.h: Regenerated.
37464         * lib/unictype/ctype_punct.h: Regenerated.
37465         * lib/unictype/ctype_upper.h: Regenerated.
37466         * lib/unictype/decdigit.h: Regenerated.
37467         * lib/unictype/digit.h: Regenerated.
37468         * lib/unictype/mirror.h: Regenerated.
37469         * lib/unictype/numeric.h: Regenerated.
37470         * lib/unictype/pr_alphabetic.h: Regenerated.
37471         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37472         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37473         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37474         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37475         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37476         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37477         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37478         * lib/unictype/pr_combining.h: Regenerated.
37479         * lib/unictype/pr_dash.h: Regenerated.
37480         * lib/unictype/pr_decimal_digit.h: Regenerated.
37481         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37482         * lib/unictype/pr_deprecated.h: Regenerated.
37483         * lib/unictype/pr_diacritic.h: Regenerated.
37484         * lib/unictype/pr_extender.h: Regenerated.
37485         * lib/unictype/pr_format_control.h: Regenerated.
37486         * lib/unictype/pr_grapheme_base.h: Regenerated.
37487         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37488         * lib/unictype/pr_grapheme_link.h: Regenerated.
37489         * lib/unictype/pr_id_continue.h: Regenerated.
37490         * lib/unictype/pr_id_start.h: Regenerated.
37491         * lib/unictype/pr_ideographic.h: Regenerated.
37492         * lib/unictype/pr_ignorable_control.h: Regenerated.
37493         * lib/unictype/pr_lowercase.h: Regenerated.
37494         * lib/unictype/pr_math.h: Regenerated.
37495         * lib/unictype/pr_numeric.h: Regenerated.
37496         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37497         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37498         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37499         * lib/unictype/pr_other_id_continue.h: Regenerated.
37500         * lib/unictype/pr_other_lowercase.h: Regenerated.
37501         * lib/unictype/pr_other_math.h: Regenerated.
37502         * lib/unictype/pr_punctuation.h: Regenerated.
37503         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37504         * lib/unictype/pr_soft_dotted.h: Regenerated.
37505         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37506         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37507         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37508         * lib/unictype/pr_uppercase.h: Regenerated.
37509         * lib/unictype/pr_xid_continue.h: Regenerated.
37510         * lib/unictype/pr_xid_start.h: Regenerated.
37511         * lib/unictype/pr_zero_width.h: Regenerated.
37512         * lib/unictype/scripts.h: Regenerated.
37513         * lib/unictype/scripts_byname.gperf: Regenerated.
37514         * lib/unictype/sy_java_ident.h: Regenerated.
37515         * lib/unilbrk/lbrkprop1.h: Regenerated.
37516         * lib/unilbrk/lbrkprop2.h: Regenerated.
37517         * tests/unictype/test-categ_C.c: Regenerated.
37518         * tests/unictype/test-categ_Cf.c: Regenerated.
37519         * tests/unictype/test-categ_Cn.c: Regenerated.
37520         * tests/unictype/test-categ_L.c: Regenerated.
37521         * tests/unictype/test-categ_Ll.c: Regenerated.
37522         * tests/unictype/test-categ_Lm.c: Regenerated.
37523         * tests/unictype/test-categ_Lo.c: Regenerated.
37524         * tests/unictype/test-categ_Lu.c: Regenerated.
37525         * tests/unictype/test-categ_M.c: Regenerated.
37526         * tests/unictype/test-categ_Mc.c: Regenerated.
37527         * tests/unictype/test-categ_Me.c: Regenerated.
37528         * tests/unictype/test-categ_Mn.c: Regenerated.
37529         * tests/unictype/test-categ_N.c: Regenerated.
37530         * tests/unictype/test-categ_Nd.c: Regenerated.
37531         * tests/unictype/test-categ_Nl.c: Regenerated.
37532         * tests/unictype/test-categ_No.c: Regenerated.
37533         * tests/unictype/test-categ_P.c: Regenerated.
37534         * tests/unictype/test-categ_Pd.c: Regenerated.
37535         * tests/unictype/test-categ_Pe.c: Regenerated.
37536         * tests/unictype/test-categ_Pf.c: Regenerated.
37537         * tests/unictype/test-categ_Pi.c: Regenerated.
37538         * tests/unictype/test-categ_Po.c: Regenerated.
37539         * tests/unictype/test-categ_Ps.c: Regenerated.
37540         * tests/unictype/test-categ_S.c: Regenerated.
37541         * tests/unictype/test-categ_Sk.c: Regenerated.
37542         * tests/unictype/test-categ_Sm.c: Regenerated.
37543         * tests/unictype/test-categ_So.c: Regenerated.
37544         * tests/unictype/test-ctype_alnum.c: Regenerated.
37545         * tests/unictype/test-ctype_alpha.c: Regenerated.
37546         * tests/unictype/test-ctype_graph.c: Regenerated.
37547         * tests/unictype/test-ctype_lower.c: Regenerated.
37548         * tests/unictype/test-ctype_print.c: Regenerated.
37549         * tests/unictype/test-ctype_punct.c: Regenerated.
37550         * tests/unictype/test-ctype_upper.c: Regenerated.
37551         * tests/unictype/test-decdigit.h: Regenerated.
37552         * tests/unictype/test-digit.h: Regenerated.
37553         * tests/unictype/test-numeric.h: Regenerated.
37554         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37555         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37556         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37557         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37558         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37559         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37560         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37561         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37562         * tests/unictype/test-pr_combining.c: Regenerated.
37563         * tests/unictype/test-pr_dash.c: Regenerated.
37564         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37565         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37566         * tests/unictype/test-pr_deprecated.c: Regenerated.
37567         * tests/unictype/test-pr_diacritic.c: Regenerated.
37568         * tests/unictype/test-pr_extender.c: Regenerated.
37569         * tests/unictype/test-pr_format_control.c: Regenerated.
37570         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37571         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37572         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37573         * tests/unictype/test-pr_id_continue.c: Regenerated.
37574         * tests/unictype/test-pr_id_start.c: Regenerated.
37575         * tests/unictype/test-pr_ideographic.c: Regenerated.
37576         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37577         * tests/unictype/test-pr_lowercase.c: Regenerated.
37578         * tests/unictype/test-pr_math.c: Regenerated.
37579         * tests/unictype/test-pr_numeric.c: Regenerated.
37580         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37581         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37582         Regenerated.
37583         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37584         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37585         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37586         * tests/unictype/test-pr_other_math.c: Regenerated.
37587         * tests/unictype/test-pr_punctuation.c: Regenerated.
37588         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37589         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37590         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37591         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37592         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37593         * tests/unictype/test-pr_uppercase.c: Regenerated.
37594         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37595         * tests/unictype/test-pr_xid_start.c: Regenerated.
37596         * tests/unictype/test-pr_zero_width.c: Regenerated.
37597
37598         Update to Unicode 5.1.0.
37599         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37600         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37601         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37602         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37603         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37604         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37605         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37606         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37607         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37608         (nonspacing_table_ind): Update.
37609         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37610
37611         Update to Unicode 5.1.0.
37612         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37613         code transform.
37614         * lib/uniname/uniname.c (unicode_character_name,
37615         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37616         * lib/uniname/uninames.h: Regenerated.
37617         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37618
37619 2009-02-07  Bruno Haible  <bruno@clisp.org>
37620
37621         Merge gen-ctype and gen-lbrk into a single program.
37622         * lib/gen-uni-tables.c: New file, incorporating
37623         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37624         Add directory prefixes to the names of the generated files.
37625         * lib/unictype/gen-ctype.c: Remove file.
37626         * lib/unilbrk/gen-lbrk.c: Remove file.
37627         * modules/gen-uni-tables: New file.
37628         * modules/unictype/gen-ctype: Remove file.
37629         * modules/unilbrk/gen-lbrk: Remove file.
37630
37631 2009-02-07  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37634
37635         New module 'unistr/u32-strcoll'.
37636         * modules/unistr/u32-strcoll: New file.
37637         * lib/unistr/u32-strcoll.c: New file.
37638
37639         New module 'unistr/u16-strcoll'.
37640         * modules/unistr/u16-strcoll: New file.
37641         * lib/unistr/u16-strcoll.c: New file.
37642
37643         New module 'unistr/u8-strcoll'.
37644         * modules/unistr/u8-strcoll: New file.
37645         * lib/unistr/u8-strcoll.c: New file.
37646         * lib/unistr/u-strcoll.h: New file.
37647
37648 2009-02-07  Bruno Haible  <bruno@clisp.org>
37649
37650         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37651         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37652         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37653         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37654         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37655         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37656
37657 2009-02-07  Bruno Haible  <bruno@clisp.org>
37658
37659         Make 64-bit clean.
37660         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37661         output_combclass, output_bidi_category, output_decimal_digit,
37662         output_digit, output_numeric, output_mirror, output_scripts,
37663         output_ident_category): Use proper width specifier in format strings.
37664
37665 2009-02-07  Bruno Haible  <bruno@clisp.org>
37666
37667         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37668         failure behaviour.
37669
37670 2009-02-07  Jim Meyering  <meyering@redhat.com>
37671
37672         regex: avoid compilation failure with upcoming gcc-4.4
37673         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37674         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37675         "... error: integer overflow in preprocessor expression".
37676
37677 2009-02-05  Ben Pfaff  <blp@gnu.org>
37678
37679         Fix link errors on Windows when close module is used.
37680         * modules/close: Add $(LIB_CLOSE) to Link section.
37681         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37682         $(LIB_CLOSE) on Windows.
37683
37684 2009-02-05  Jim Meyering  <meyering@redhat.com>
37685
37686         still avoid unused-parameter warnings, but do it cleanly
37687         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37688         (get_fs_usage): Cast to void instead.
37689         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37690         (dev_from_mount_options, read_file_system_list): Cast to void.
37691         Prompted by Bruno Haible.
37692
37693 2009-02-04  Jim Meyering  <meyering@redhat.com>
37694
37695         fsusage.c: correct copyright year
37696         * lib/fsusage.c: Reflect year in which the change is pushed into
37697
37698         avoid misc. warnings
37699         * lib/fsusage.c (UNUSED_PARAM): Define.
37700         (get_fs_usage): Mark parameter "disk" as unused.
37701         * lib/getugroups.c (getgrent): Use "void" in prototype.
37702         * lib/mountlist.c: Mark unused parameters.
37703         (read_file_system_list): Declare a local with "const".
37704         * lib/nanosleep.c (getnow): Declare static.
37705         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37706
37707         dirfd: set errno upon failure
37708         * lib/dirfd.c: Include <errno.h>.
37709         Set errno to ENOTSUP when returning -1.
37710         * modules/dirfd (Depends-on): Add errno.
37711         Suggested by John Kodis <kodis@comcast.net>.
37712
37713 2009-02-01  Bruno Haible  <bruno@clisp.org>
37714
37715         Don't assume sizeof (long) >= sizeof (void *).
37716         * lib/memcmp.c: Include stdint.h.
37717         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37718         srcp2 to 'const byte *'.
37719         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37720         types to uintptr_t.
37721         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37722         * modules/memcmp (Depends-on): Add stdint.
37723         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37724
37725 2009-01-30  Eric Blake  <ebb9@byu.net>
37726
37727         fix more require-before-expand issues
37728         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37729         expand, AC_PROG_AWK.
37730         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37731
37732 2009-01-28  Eric Blake  <ebb9@byu.net>
37733
37734         version-etc: use consistent URL formatting
37735         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37736         Improve formatting.  Use fputs for string without %.
37737
37738 2009-01-28  Jim Meyering  <meyering@redhat.com>
37739
37740         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37741         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37742         "underquoted definition of NAME" from autoconf-2.59.
37743
37744 2009-01-28  Bruno Haible  <bruno@clisp.org>
37745
37746         * doc/gnulib.texi: Add "Obsolete modules" to index.
37747
37748 2009-01-28  Jim Meyering  <meyering@redhat.com>
37749
37750         useless-if-before-free: recognize more variants
37751         * build-aux/useless-if-before-free: Also recognize e.g.,
37752         if (NULL != p) free (p);
37753
37754 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37755
37756         test-getaddrinfo: skip (don't fail) this test when there's no network
37757         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37758         on the presumption that it means you lack network access.
37759
37760 2009-01-26  Jim Meyering  <meyering@redhat.com>
37761
37762         fflush: avoid warnings on modern systems
37763         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37764         pos and result, into scopes where they're used.
37765
37766 2009-01-26  Eric Blake  <ebb9@byu.net>
37767
37768         Silence warning reintroduced by recent extensions patch.
37769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37770         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37771         autoconf.
37772
37773         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37774         * m4/00gnulib.m4: New file.
37775         * gnulib-tool (func_get_filelist): Always use it.
37776         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37777         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37778
37779 2009-01-25  Bruno Haible  <bruno@clisp.org>
37780
37781         Make test-quotearg work on MacOS X and AIX.
37782         * tests/test-quotearg.sh: New file.
37783         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37784         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37785         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37786         include <libintl.h>.
37787         (fake_locale): Remove variable.
37788         (gettext, dgettext, dcgettext): Remove functions.
37789         (main): Instead of setting a fake locale, set a real locale. Call
37790         textdomain and bindtextdomain.
37791         * modules/quotearg-tests (Files): Add the new files.
37792         (Depends-on): Add gettext, setenv, unsetenv.
37793         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37794         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37795         Augment TESTS_ENVIRONMENT.
37796
37797 2009-01-25  Bruno Haible  <bruno@clisp.org>
37798
37799         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37800         fr_FR.ISO8859-1 locale on MacOS X.
37801         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37802         ja_JP.eucJP locale on MacOS X.
37803         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37804         zh_CN.GB18030 locale on MacOS X.
37805
37806 2009-01-25  Bruno Haible  <bruno@clisp.org>
37807
37808         Avoid link errors on MacOS X 10.3.
37809         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37810         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37811
37812 2009-01-25  Bruno Haible  <bruno@clisp.org>
37813
37814         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37815         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37816         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37817         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37818         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37819         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37820         posix_spawnattr_init, posix_spawnattr_setsigmask,
37821         posix_spawnattr_setflags, posix_spawnattr_destroy.
37822
37823         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37824         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37825         * modules/execute (Files): Remove m4/posix_spawn.m4.
37826         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37827         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37828         posix_spawnattr_init, posix_spawnattr_setsigmask,
37829         posix_spawnattr_setflags, posix_spawnattr_destroy.
37830
37831 2009-01-25  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/glthread/threadlib.c: Include <stdlib.h>.
37834
37835 2009-01-25  Bruno Haible  <bruno@clisp.org>
37836
37837         * lib/glthread/threadlib.c (dummy): New declaration.
37838
37839 2009-01-25  Bruno Haible  <bruno@clisp.org>
37840
37841         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37842         multibyte characters also for the GB18030 encoding. Don't crash when
37843         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37844
37845 2009-01-25  Bruno Haible  <bruno@clisp.org>
37846
37847         Avoid redefining 'struct random_data' on OSF/1 5.1.
37848         * lib/stdlib.in.h: Include <random.h> if it exists.
37849         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37850         HAVE_RANDOM_H. Include <random.h> when testing whether
37851         'struct random_data' exists.
37852         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37853
37854 2009-01-25  Bruno Haible  <bruno@clisp.org>
37855
37856         Don't install charset.alias on MacOS X >= 10.3.
37857         * lib/localcharset.c (DARWIN7): New macro.
37858         (get_charset_aliases): Hardcode the result for Darwin7.
37859         * modules/localcharset (install-exec-local): Don't install
37860         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37861
37862 2009-01-25  Bruno Haible  <bruno@clisp.org>
37863
37864         Don't install charset.alias on mingw and Cygwin.
37865         * modules/localcharset (install-exec-local): Don't install
37866         charset.alias on mingw and Cygwin, if the file does not yet exist.
37867         The result for these platforms is hardcoded in localcharset.c.
37868
37869 2009-01-25  Bruno Haible  <bruno@clisp.org>
37870
37871         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37873         before requiring AC_USE_SYSTEM_EXTENSIONS.
37874
37875 2009-01-25  Jim Meyering  <meyering@redhat.com>
37876
37877         c-strtod: avoid warnings
37878         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37879         "assignment discards qualifiers from pointer target type" warnings.
37880
37881 2009-01-24  Bruno Haible  <bruno@clisp.org>
37882
37883         Add support for non-UTF-8 locales on MacOS X.
37884         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37885         canonical encodings. For Darwin 7 and newer, don't map traditional
37886         encodings to UTF-8.
37887         Reported by Vincent Lefevre <vincent@vinc17.org>
37888         at <http://savannah.gnu.org/bugs/?25235>.
37889
37890 2009-01-24  Bruno Haible  <bruno@clisp.org>
37891
37892         * doc/gnulib.texi (Obsolete modules): New section.
37893         Reported by Mike Frysinger <vapier@gentoo.org>.
37894
37895 2009-01-24  Bruno Haible  <bruno@clisp.org>
37896
37897         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37898         (%.dvi): New rule.
37899
37900 2009-01-24  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37903         Reported by Eric Blake.
37904
37905 2009-01-24  Bruno Haible  <bruno@clisp.org>
37906
37907         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37908         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37909         Reported by Gary V. Vaughan <gary@gnu.org>.
37910
37911 2009-01-24  Bruno Haible  <bruno@clisp.org>
37912
37913         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37914
37915 2009-01-23  Bruno Haible  <bruno@clisp.org>
37916
37917         Make c-strtod, c-strtold usable in libraries.
37918         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37919         (C_STRTOD): Call strdup instead of xstrdup.
37920         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37921         * modules/c-strtold (Depends-on): Likewise.
37922         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37923         * NEWS: Mention the change.
37924         Reported by Michael Gold <mgold@ncf.ca>.
37925
37926 2009-01-23  Jim Meyering  <meyering@redhat.com>
37927
37928         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37929         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37930         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37931
37932 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37933
37934         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37935         GNU CoreUtils.
37936         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37937         * modules/version-etc (Description): Update.
37938
37939 2009-01-22  Bruno Haible  <bruno@clisp.org>
37940
37941         Cache the C locale object.
37942         * lib/c-strtod.c (c_locale_cache): New variable.
37943         (c_locale): New function.
37944         (C_STRTOD): Use it, and don't call freelocale.
37945         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37946         Suggested by Paolo Bonzini.
37947
37948 2009-01-21  Bruno Haible  <bruno@clisp.org>
37949
37950         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37951         conditions other than overflow.
37952
37953 2009-01-21  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/c-strtod.c: Include errno.h.
37956         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37957         value from STRTOD_L and STRTOD.
37958
37959 2009-01-21  Bruno Haible  <bruno@clisp.org>
37960         and Jim Meyering  <meyering@redhat.com>
37961
37962         nanosleep: skip configure test (fail it) for apple universal builds
37963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37964         universal builds, assume that nanosleep does not work.
37965         * modules/nanosleep (Depends-on): Add multiarch.
37966
37967         mktime: skip configure test (fail it) for apple universal builds
37968         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37969         universal builds, assume that mktime does not work.
37970         * modules/mktime (Depends-on): Add multiarch.
37971
37972 2009-01-21  Eric Blake  <ebb9@byu.net>
37973
37974         multiarch: avoid expand-before-require warning
37975         * modules/multiarch (configure.ac): Require, rather than expand,
37976         gl_MULTIARCH.
37977         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37978         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37979         enforce that all clients require it.  Partial reversion of
37980         2008-12-29 patch.
37981
37982         error: avoid expand-before-require warning
37983         * modules/errno (configure.ac): Require, rather than expand,
37984         gl_HEADER_ERRNO_H.
37985         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37986         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37987         enforce that all clients require it.
37988
37989         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37990         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37991         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37992         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37993
37994 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37995
37996         Revert:
37997         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37998
37999         regex: do not depend on obsolete modules.
38000         * modules/regex: Remove memcmp and memmove.
38001
38002 2009-01-20  Bruno Haible  <bruno@clisp.org>
38003
38004         Make the 'link' module link on Windows NT 4.
38005         * lib/link.c (_WIN32_WINNT): Don't define.
38006         (CreateHardLinkFuncType): New type.
38007         (CreateHardLinkFunc, initialized): New variables.
38008         (initialize): New function.
38009         (link): Invoke CreateHardLink indirectly through the function pointer.
38010
38011 2009-01-20  Bruno Haible  <bruno@clisp.org>
38012
38013         Fix compilation failure on mingw.
38014         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38015
38016 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38017
38018         * doc/c-strtod.texi: Mention a couple of restrictions.
38019
38020 2009-01-20  Jim Meyering  <meyering@redhat.com>
38021
38022         gettimeofday: move more declarations out of functions
38023         * lib/gettimeofday.c: Move extern declarations of tzset and
38024         gmtime out of containing functions.  Prompted by Bruno Haible.
38025
38026 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38027
38028         regex: do not depend on obsolete modules.
38029         * modules/regex: Remove memcmp and memmove.
38030
38031 2009-01-19  Bruno Haible  <bruno@clisp.org>
38032
38033         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38034         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38035         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38036         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38037         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38038
38039 2009-01-19  Bruno Haible  <bruno@clisp.org>
38040
38041         * tests/test-link.c: Include <errno.h>.
38042         (main): Exit with code 77 when a hard link cannot be created due to
38043         the file system.
38044         * tests/test-link.sh: Skip test when a hard link cannot be created due
38045         to the file system.
38046         Suggested by Eric Blake.
38047
38048 2009-01-19  Martin Lambers  <marlam@marlam.de>
38049
38050         * modules/link-tests: New file.
38051         * tests/test-link.sh: New file.
38052         * tests/test-link.c: New file.
38053
38054 2009-01-19  Eric Blake  <ebb9@byu.net>
38055
38056         doc: mention another function added in cygwin 1.7.0
38057         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38058         Another new function in cygwin 1.7.
38059
38060 2009-01-19  Bruno Haible  <bruno@clisp.org>
38061
38062         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38063         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38064         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38065         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38067         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38069         * m4/md4.m4 (gl_MD4): Likewise.
38070         * m4/md5.m4 (gl_MD5): Likewise.
38071         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38072         * m4/sha1.m4 (gl_SHA1): Likewise.
38073         * m4/sha256.m4 (gl_SHA256): Likewise.
38074         * m4/sha512.m4 (gl_SHA512): Likewise.
38075
38076 2009-01-19  Bruno Haible  <bruno@clisp.org>
38077
38078         * modules/uniname/uniname-tests (Depends-on): Add progname.
38079         * tests/uniname/test-uninames.c: Include progname.h.
38080         (main): Call set_program_name.
38081
38082         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38083         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38084         (main): Call set_program_name.
38085
38086         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38087         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38088         (main): Call set_program_name.
38089
38090         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38091         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38092         (main): Call set_program_name.
38093
38094         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38095         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38096         (main): Call set_program_name.
38097
38098         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38099         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38100         (main): Call set_program_name.
38101
38102         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38103         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38104         (main): Call set_program_name.
38105
38106         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38107         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38108         (main): Call set_program_name.
38109
38110         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38111         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38112         (main): Call set_program_name.
38113
38114 2009-01-19  Eric Blake  <ebb9@byu.net>
38115
38116         test-unistd: test previous patch
38117         * tests/test-unistd.c: Test *_FILENO macros.
38118
38119         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38120         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38121         Guarantee a definition.
38122         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38123         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38124         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38125         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38126         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38127         Likewise.
38128         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38129         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38130         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38131         Likewise.
38132         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38133         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38134         (STDERR_FILENO): Likewise.
38135         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38136         (STDERR_FILENO): Likewise.
38137         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38138         (STDERR_FILENO): Likewise.
38139         Reported by Elbert Pol.
38140
38141 2009-01-19  Eric Blake  <ebb9@byu.net>
38142
38143         doc: mention more functions added in cygwin 1.7.0
38144         * doc/posix-functions/abort.texi (abort): Update wording related
38145         to cygwin.
38146         * doc/posix-functions/daylight.texi (daylight): Likewise.
38147         * doc/posix-functions/optarg.texi (optarg): Likewise.
38148         * doc/posix-functions/optarg.texi (opterr): Likewise.
38149         * doc/posix-functions/optarg.texi (optind): Likewise.
38150         * doc/posix-functions/optarg.texi (optopt): Likewise.
38151         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38152         worked in 1.5.x, and was withdrawn in 1.7.
38153         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38154         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38155         cygwin versions.
38156         * doc/posix-functions/perror.texi (perror): Likewise.
38157         * doc/posix-functions/printf.texi (printf): Likewise.
38158         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38159         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38160         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38161         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38162         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38163         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38164         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38165         Likewise.
38166         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38167         Likewise.
38168         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38169         this function.
38170         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38171         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38172         Likewise.
38173         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38174         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38175         * doc/posix-functions/confstr.texi (confstr): Likewise.
38176         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38177         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38178         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38179         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38180         * doc/posix-functions/fputws.texi (fputws): Likewise.
38181         * doc/posix-functions/fwide.texi (fwide): Likewise.
38182         * doc/posix-functions/getwc.texi (getwc): Likewise.
38183         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38184         * doc/posix-functions/putwc.texi (putwc): Likewise.
38185         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38186         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38187         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38188         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38189         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38190         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38191         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38192         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38193         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38194         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38195         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38196
38197 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38198
38199         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38200         * lib/ioctl.c: Include <sys/ioctl.h>.
38201
38202 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38203
38204         * modules/getdate-tests (Depends-on): Add progname.
38205         * tests/test-getdate.c: Use progname module, to avoid link errors
38206         on non-glibc systems.
38207
38208 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38209
38210         * modules/filenamecat-tests (Depends-on): Add progname.
38211         * modules/fstrcmp-tests (Depends-on): Likewise.
38212
38213         * tests/test-filenamecat.c: Use progname module, to avoid link
38214         errors on non-glibc systems.
38215         * tests/test-fstrcmp.c: Likewise.
38216
38217 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38218
38219         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38220         * lib/gettimeofday.c: Move extern declaration out of function.
38221
38222 2009-01-18  Bruno Haible  <bruno@clisp.org>
38223
38224         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38225         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38226         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38227
38228 2009-01-18  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/strftime.c (MEMPCPY): Remove unused macro.
38231         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38232
38233 2009-01-18  Martin Lambers  <marlam@marlam.de>
38234
38235         New module 'link'.
38236         * lib/unistd.in.h (link): New declaration.
38237         * lib/link.c: New file.
38238         * m4/link.m4: New file.
38239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38240         HAVE_LINK.
38241         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38242         * modules/link: New file.
38243         * doc/posix-functions/link.texi: Mention the new module.
38244
38245 2009-01-18  Bruno Haible  <bruno@clisp.org>
38246
38247         * tests/test-avltree_list.c (main): Call set_program_name.
38248         * tests/test-avltree_oset.c (main): Likewise.
38249         * tests/test-obstack-printf.c: Include progname.h.
38250         (main): Call set_program_name.
38251         * tests/test-quotearg.c: Include progname.h.
38252         (main): Call set_program_name.
38253         * tests/test-xmemdup0.c: Include progname.h.
38254         (main): Call set_program_name.
38255
38256 2009-01-18  Bruno Haible  <bruno@clisp.org>
38257
38258         New module 'alphasort'.
38259         * lib/dirent.in.h (alphasort): New declaration.
38260         * lib/alphasort.c: New file, from glibc with modifications.
38261         * m4/alphasort.m4: New file.
38262         * modules/alphasort: New file.
38263         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38264         HAVE_ALPHASORT.
38265         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38266         HAVE_ALPHASORT.
38267         * doc/posix-functions/alphasort.texi: Mention the new module and the
38268         portability problems.
38269
38270 2009-01-18  Bruno Haible  <bruno@clisp.org>
38271
38272         New module 'scandir'.
38273         * lib/dirent.in.h (scandir): New declaration.
38274         * lib/scandir.c: New file, from glibc with modifications.
38275         * m4/scandir.m4: New file.
38276         * modules/scandir: New file.
38277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38278         HAVE_SCANDIR.
38279         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38280         HAVE_SCANDIR.
38281         * doc/posix-functions/scandir.texi: Mention the new module and the
38282         portability problems.
38283
38284 2009-01-17  Bruno Haible  <bruno@clisp.org>
38285
38286         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38287         Update documentation.
38288         (func_remove_suffix): Escape all dots in the suffix. Update
38289         documentation.
38290         (func_filter_filelist): Update documentation.
38291         Reported by Ralf Wildenhues.
38292
38293 2009-01-17  Bruno Haible  <bruno@clisp.org>
38294
38295         * modules/dprintf-posix-tests: New file.
38296         * tests/test-dprintf-posix.sh: New file.
38297         * tests/test-dprintf-posix.c: New file.
38298
38299         New modules 'dprintf', 'dprintf-posix'.
38300         * lib/stdio.in.h (dprintf): New declaration.
38301         * lib/dprintf.c: New file.
38302         * m4/dprintf.m4: New file.
38303         * m4/dprintf-posix.m4: New file.
38304         * modules/dprintf: New file.
38305         * modules/dprintf-posix: New file.
38306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38307         HAVE_DPRINTF, REPLACE_DPRINTF.
38308         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38309         HAVE_DPRINTF, REPLACE_DPRINTF.
38310         * doc/posix-functions/dprintf.texi: Mention the new modules.
38311
38312 2009-01-17  Bruno Haible  <bruno@clisp.org>
38313
38314         * modules/vdprintf-posix-tests: New file.
38315         * tests/test-vdprintf-posix.sh: New file.
38316         * tests/test-vdprintf-posix.c: New file.
38317
38318         New modules 'vdprintf', 'vdprintf-posix'.
38319         * lib/stdio.in.h (vdprintf): New declaration.
38320         * lib/vdprintf.c: New file.
38321         * m4/vdprintf.m4: New file.
38322         * m4/vdprintf-posix.m4: New file.
38323         * modules/vdprintf: New file.
38324         * modules/vdprintf-posix: New file.
38325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38326         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38327         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38328         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38329         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38330
38331 2009-01-17  Bruno Haible  <bruno@clisp.org>
38332
38333         Fix replacement of fopen on mingw.
38334         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38335         mingw.
38336
38337 2009-01-17  Bruno Haible  <bruno@clisp.org>
38338
38339         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38340         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38341
38342 2009-01-17  Bruno Haible  <bruno@clisp.org>
38343
38344         Avoid test-fflush2.sh failure on mingw.
38345         * tests/test-fflush2.c: Include binary-io.h.
38346         (main): Put standard input into binary mode.
38347         * modules/fflush-tests (Depends-on): Add binary-io.
38348
38349 2009-01-17  Bruno Haible  <bruno@clisp.org>
38350
38351         * lib/wchar.in.h: In another particular situation, include only the
38352         system's <wchar.h> file.
38353         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38354         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38355         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38356
38357 2009-01-17  Bruno Haible  <bruno@clisp.org>
38358
38359         Support for stripping executables in --enable-relocatable.
38360         * build-aux/install-reloc: Expect one more argument, or an environment
38361         variable RELOC_STRIP_PROG. If set, strip the destination program and
38362         its wrapper.
38363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38364         RELOC_STRIP_PROG.
38365         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38366         to set RELOCATABLE_STRIP.
38367         * NEWS: Mention the new Makefile requirement.
38368
38369 2009-01-17  Bruno Haible  <bruno@clisp.org>
38370
38371         * build-aux/install-reloc: Remove debugging information left over by
38372         C compiler on MacOS X.
38373
38374 2009-01-17  Bruno Haible  <bruno@clisp.org>
38375
38376         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38377         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38378         _NSGetExecutablePath.
38379
38380 2009-01-16  Jim Meyering  <meyering@redhat.com>
38381
38382         strerror: avoid warnings about discarding "const"
38383         * lib/strerror.c (rpl_strerror): Instead of returning a const
38384         string from each and every "case", use a variable, and add a single
38385         cast after the switch.
38386
38387 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38388
38389         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38390
38391 2009-01-16  Bruno Haible  <bruno@clisp.org>
38392
38393         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38394         array initializer syntax that also works in C++ mode.
38395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38396
38397 2009-01-16  Jim Meyering  <meyering@redhat.com>
38398
38399         poll: suppress a warning
38400         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38401         to ignore "...unsigned expression < 0 is always false" warnings.
38402
38403 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38404
38405         poll: remove declarations of unused variables
38406         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38407         sockbuf and optlen.
38408
38409 2009-01-15  Bruno Haible  <bruno@clisp.org>
38410
38411         Make fflush-after-ungetc POSIX compliant on BSD systems.
38412         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38413         (clear_ungetc_buffer): Implement also for other systems.
38414         (rpl_fflush): On glibc systems, invoke
38415         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38416         clear_ungetc_buffer after fetching the stream's position, not before.
38417
38418 2009-01-15  Bruno Haible  <bruno@clisp.org>
38419
38420         Make fflush-after-ungetc POSIX compliant on glibc systems.
38421         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38422         after ungetc.
38423         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38424         (rpl_fflush): On glibc systems, simply call the system's fflush
38425         function after clearing the ungetc buffer.
38426         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38427         Instead, lseek only to the end of file, then use the system's fseeko
38428         for the rest. On glibc systems, reset the EOF indicator bit.
38429
38430 2009-01-15  Jim Meyering  <meyering@redhat.com>
38431
38432         openmp.m4: revert quote-adding change, for portability to older autoconf
38433         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38434         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38435         Simon Josefsson noticed the problem when using autoconf-2.61.
38436
38437 2009-01-15  Bruno Haible  <bruno@clisp.org>
38438
38439         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38440         * tests/test-fflush2.c (ASSERT): Always fail.
38441         (main): Add two tests for fflush() after ungetc(), taking into account
38442         the Austin Group's clarification.
38443         Suggested by Eric Blake.
38444
38445 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38446
38447         mktime.m4: remove K&R-style function prototypes
38448         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38449         for the Sun C++ compiler.
38450
38451 2009-01-14  Bruno Haible  <bruno@clisp.org>
38452
38453         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38454         while including <wchar.h>.
38455         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38456         the system's <wchar.h> file.
38457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38458
38459 2009-01-14  Bruno Haible  <bruno@clisp.org>
38460
38461         * m4/csharp.m4: Don't mention gettext on the serial number line.
38462         * m4/csharpexec.m4: Likewise.
38463         * m4/eaccess.m4: Likewise.
38464         * m4/javaexec.m4: Likewise.
38465         * m4/sig_atomic_t.m4: Likewise.
38466         * m4/tmpdir.m4: Likewise.
38467         * m4/intldir.m4: Bump gettext version.
38468         * m4/lib-ld.m4: Likewise.
38469
38470 2009-01-14  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/progname.c (set_program_name): Add more comments.
38473         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38474
38475 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38476
38477         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38478         were sys/stat.h does not define it.
38479
38480 2009-01-14  Jim Meyering  <meyering@redhat.com>
38481
38482         many *.m4 files: improve m4 quoting
38483         99% of this change was performed by running the following commands:
38484         git ls-files | grep '\.m4$' | xargs perl -pi \
38485           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38486           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38487           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38488           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38489         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38490         The remainder were to add Copyright dates, increment serial numbers,
38491         undo some changes in comments, exclude m4/intl.m4, and add quotes
38492         around the "1" in ",1" where the unusual spacing prohibited the
38493         above regexps from doing the job.  For more details, see
38494         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38495         * m4/acl.m4: Modified.
38496         * m4/afs.m4: Likewise.
38497         * m4/alloca.m4: Likewise.
38498         * m4/argp.m4: Likewise.
38499         * m4/argz.m4: Likewise.
38500         * m4/atexit.m4: Likewise.
38501         * m4/bison-i18n.m4: Likewise.
38502         * m4/bison.m4: Likewise.
38503         * m4/byteswap.m4: Likewise.
38504         * m4/c-stack.m4: Likewise.
38505         * m4/c-strtod.m4: Likewise.
38506         * m4/calloc.m4: Likewise.
38507         * m4/canonicalize-lgpl.m4: Likewise.
38508         * m4/chown.m4: Likewise.
38509         * m4/clock_time.m4: Likewise.
38510         * m4/codeset.m4: Likewise.
38511         * m4/copy-file.m4: Likewise.
38512         * m4/csharp.m4: Likewise.
38513         * m4/csharpcomp.m4: Likewise.
38514         * m4/csharpexec.m4: Likewise.
38515         * m4/d-ino.m4: Likewise.
38516         * m4/d-type.m4: Likewise.
38517         * m4/dirfd.m4: Likewise.
38518         * m4/double-slash-root.m4: Likewise.
38519         * m4/eaccess.m4: Likewise.
38520         * m4/eealloc.m4: Likewise.
38521         * m4/environ.m4: Likewise.
38522         * m4/errno_h.m4: Likewise.
38523         * m4/euidaccess.m4: Likewise.
38524         * m4/execute.m4: Likewise.
38525         * m4/fatal-signal.m4: Likewise.
38526         * m4/fchdir.m4: Likewise.
38527         * m4/fcntl_h.m4: Likewise.
38528         * m4/fileblocks.m4: Likewise.
38529         * m4/filenamecat.m4: Likewise.
38530         * m4/findprog.m4: Likewise.
38531         * m4/flexmember.m4: Likewise.
38532         * m4/fnmatch.m4: Likewise.
38533         * m4/fopen.m4: Likewise.
38534         * m4/fpending.m4: Likewise.
38535         * m4/fprintf-posix.m4: Likewise.
38536         * m4/free.m4: Likewise.
38537         * m4/frexp.m4: Likewise.
38538         * m4/frexpl.m4: Likewise.
38539         * m4/fsusage.m4: Likewise.
38540         * m4/ftruncate.m4: Likewise.
38541         * m4/gc-camellia.m4: Likewise.
38542         * m4/gc-random.m4: Likewise.
38543         * m4/gc.m4: Likewise.
38544         * m4/getaddrinfo.m4: Likewise.
38545         * m4/getcwd-abort-bug.m4: Likewise.
38546         * m4/getcwd-path-max.m4: Likewise.
38547         * m4/getdate.m4: Likewise.
38548         * m4/getdomainname.m4: Likewise.
38549         * m4/getgroups.m4: Likewise.
38550         * m4/gethostname.m4: Likewise.
38551         * m4/gethrxtime.m4: Likewise.
38552         * m4/getline.m4: Likewise.
38553         * m4/getloadavg.m4: Likewise.
38554         * m4/getndelim2.m4: Likewise.
38555         * m4/getpass.m4: Likewise.
38556         * m4/gettext.m4: Likewise.
38557         * m4/gettime.m4: Likewise.
38558         * m4/gettimeofday.m4: Likewise.
38559         * m4/gnulib-common.m4: Likewise.
38560         * m4/group-member.m4: Likewise.
38561         * m4/host-os.m4: Likewise.
38562         * m4/iconv.m4: Likewise.
38563         * m4/iconv_open.m4: Likewise.
38564         * m4/inet_ntop.m4: Likewise.
38565         * m4/inet_pton.m4: Likewise.
38566         * m4/inline.m4: Likewise.
38567         * m4/intldir.m4: Likewise.
38568         * m4/intlmacosx.m4: Likewise.
38569         * m4/intmax.m4: Likewise.
38570         * m4/intmax_t.m4: Likewise.
38571         * m4/inttypes.m4: Likewise.
38572         * m4/inttypes_h.m4: Likewise.
38573         * m4/inttypes-pri.m4: Likewise.
38574         * m4/isapipe.m4: Likewise.
38575         * m4/isnand.m4: Likewise.
38576         * m4/isnanf.m4: Likewise.
38577         * m4/isnanl.m4: Likewise.
38578         * m4/javacomp.m4: Likewise.
38579         * m4/javaexec.m4: Likewise.
38580         * m4/jm-winsz1.m4: Likewise.
38581         * m4/jm-winsz2.m4: Likewise.
38582         * m4/lchown.m4: Likewise.
38583         * m4/lcmessage.m4: Likewise.
38584         * m4/ldexpl.m4: Likewise.
38585         * m4/lib-ld.m4: Likewise.
38586         * m4/lib-link.m4: Likewise.
38587         * m4/libsigsegv.m4: Likewise.
38588         * m4/link-follow.m4: Likewise.
38589         * m4/localcharset.m4: Likewise.
38590         * m4/locale-fr.m4: Likewise.
38591         * m4/locale-ja.m4: Likewise.
38592         * m4/locale-tr.m4: Likewise.
38593         * m4/locale-zh.m4: Likewise.
38594         * m4/lock.m4: Likewise.
38595         * m4/longlong.m4: Likewise.
38596         * m4/ls-mntd-fs.m4: Likewise.
38597         * m4/lstat.m4: Likewise.
38598         * m4/malloc.m4: Likewise.
38599         * m4/mathl.m4: Likewise.
38600         * m4/mbrtowc.m4: Likewise.
38601         * m4/mbstate_t.m4: Likewise.
38602         * m4/mbswidth.m4: Likewise.
38603         * m4/memchr.m4: Likewise.
38604         * m4/memcmp.m4: Likewise.
38605         * m4/memcpy.m4: Likewise.
38606         * m4/memmem.m4: Likewise.
38607         * m4/memmove.m4: Likewise.
38608         * m4/mempcpy.m4: Likewise.
38609         * m4/memrchr.m4: Likewise.
38610         * m4/memset.m4: Likewise.
38611         * m4/minmax.m4: Likewise.
38612         * m4/mkdir-slash.m4: Likewise.
38613         * m4/mkdtemp.m4: Likewise.
38614         * m4/mktime.m4: Likewise.
38615         * m4/mmap-anon.m4: Likewise.
38616         * m4/mountlist.m4: Likewise.
38617         * m4/nanosleep.m4: Likewise.
38618         * m4/nls.m4: Likewise.
38619         * m4/nocrash.m4: Likewise.
38620         * m4/open.m4: Likewise.
38621         * m4/openat.m4: Likewise.
38622         * m4/openmp.m4: Likewise.
38623         * m4/pathmax.m4: Likewise.
38624         * m4/perl.m4: Likewise.
38625         * m4/physmem.m4: Likewise.
38626         * m4/pipe.m4: Likewise.
38627         * m4/po.m4: Likewise.
38628         * m4/poll.m4: Likewise.
38629         * m4/posixtm.m4: Likewise.
38630         * m4/posixver.m4: Likewise.
38631         * m4/printf-frexp.m4: Likewise.
38632         * m4/printf-frexpl.m4: Likewise.
38633         * m4/printf-posix.m4: Likewise.
38634         * m4/printf-posix-rpl.m4: Likewise.
38635         * m4/printf.m4: Likewise.
38636         * m4/progtest.m4: Likewise.
38637         * m4/putenv.m4: Likewise.
38638         * m4/readline.m4: Likewise.
38639         * m4/readlink.m4: Likewise.
38640         * m4/readutmp.m4: Likewise.
38641         * m4/realloc.m4: Likewise.
38642         * m4/regex.m4: Likewise.
38643         * m4/relocatable.m4: Likewise.
38644         * m4/relocatable-lib.m4: Likewise.
38645         * m4/rename-dest-slash.m4: Likewise.
38646         * m4/rename.m4: Likewise.
38647         * m4/rmdir-errno.m4: Likewise.
38648         * m4/rmdir.m4: Likewise.
38649         * m4/roundf.m4: Likewise.
38650         * m4/roundl.m4: Likewise.
38651         * m4/rpmatch.m4: Likewise.
38652         * m4/save-cwd.m4: Likewise.
38653         * m4/selinux-selinux-h.m4: Likewise.
38654         * m4/setenv.m4: Likewise.
38655         * m4/settime.m4: Likewise.
38656         * m4/sig2str.m4: Likewise.
38657         * m4/sig_atomic_t.m4: Likewise.
38658         * m4/signalblocking.m4: Likewise.
38659         * m4/signbit.m4: Likewise.
38660         * m4/sigpipe.m4: Likewise.
38661         * m4/sockets.m4: Likewise.
38662         * m4/sockpfaf.m4: Likewise.
38663         * m4/st_dm_mode.m4: Likewise.
38664         * m4/stat-time.m4: Likewise.
38665         * m4/stdbool.m4: Likewise.
38666         * m4/stdint.m4: Likewise.
38667         * m4/stdint_h.m4: Likewise.
38668         * m4/stpcpy.m4: Likewise.
38669         * m4/stpncpy.m4: Likewise.
38670         * m4/strcase.m4: Likewise.
38671         * m4/strchrnul.m4: Likewise.
38672         * m4/strcspn.m4: Likewise.
38673         * m4/strdup.m4: Likewise.
38674         * m4/strftime.m4: Likewise.
38675         * m4/strndup.m4: Likewise.
38676         * m4/strnlen.m4: Likewise.
38677         * m4/strpbrk.m4: Likewise.
38678         * m4/strptime.m4: Likewise.
38679         * m4/strsep.m4: Likewise.
38680         * m4/strtod.m4: Likewise.
38681         * m4/strtoimax.m4: Likewise.
38682         * m4/strtok_r.m4: Likewise.
38683         * m4/strtol.m4: Likewise.
38684         * m4/strtoll.m4: Likewise.
38685         * m4/strtoul.m4: Likewise.
38686         * m4/strtoull.m4: Likewise.
38687         * m4/strtoumax.m4: Likewise.
38688         * m4/strverscmp.m4: Likewise.
38689         * m4/threadlib.m4: Likewise.
38690         * m4/timegm.m4: Likewise.
38691         * m4/tm_gmtoff.m4: Likewise.
38692         * m4/tmpdir.m4: Likewise.
38693         * m4/tmpfile.m4: Likewise.
38694         * m4/tzset.m4: Likewise.
38695         * m4/uintmax_t.m4: Likewise.
38696         * m4/unlinkdir.m4: Likewise.
38697         * m4/unlocked-io.m4: Likewise.
38698         * m4/uptime.m4: Likewise.
38699         * m4/userspec.m4: Likewise.
38700         * m4/utimbuf.m4: Likewise.
38701         * m4/utime.m4: Likewise.
38702         * m4/utimes-null.m4: Likewise.
38703         * m4/utimes.m4: Likewise.
38704         * m4/vararrays.m4: Likewise.
38705         * m4/vasnprintf.m4: Likewise.
38706         * m4/vfprintf-posix.m4: Likewise.
38707         * m4/vprintf-posix.m4: Likewise.
38708         * m4/wait-process.m4: Likewise.
38709         * m4/wchar_t.m4: Likewise.
38710         * m4/wint_t.m4: Likewise.
38711         * m4/write-any-file.m4: Likewise.
38712         * m4/yield.m4: Likewise.
38713
38714 2009-01-13  Bruno Haible  <bruno@clisp.org>
38715
38716         Avoid test-copy-file.sh failures when ACL support insufficient.
38717         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38718         TESTS_ENVIRONMENT.
38719         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38720         Reported by Jim Meyering.
38721
38722 2009-01-13  Bruno Haible  <bruno@clisp.org>
38723
38724         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38725         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38726         * modules/unistdio/u8-printf-parse (Files): Likewise.
38727         * modules/unistdio/u32-printf-parse (Files): Likewise.
38728         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38729
38730 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38731
38732         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38733         and m4/inttypes_h.m4 too.
38734
38735 2009-01-12  Eric Blake  <ebb9@byu.net>
38736
38737         tests: IRIX 6.2 cc can't compile -0.0 into .data
38738         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38739         rather than at compile-time.
38740         * tests/test-floorl.c (minus_zero): Likewise.
38741         * tests/test-frexpl.c (minus_zero): Likewise.
38742         * tests/test-isnan.c (minus_zerol): Likewise.
38743         * tests/test-isnanl.h (minus_zero): Likewise.
38744         * tests/test-ldexpl.c (minus_zero): Likewise.
38745         * tests/test-roundl.c (minus_zero): Likewise.
38746         * tests/test-signbit.c (minus_zerol): Likewise.
38747         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38748         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38749         * tests/test-truncl.c (minus_zero): Likewise.
38750         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38751         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38752         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38753
38754 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38755
38756         regex: fix glibc bug 9697
38757         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38758         handling.
38759
38760 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38761
38762         regex: fix glibc bug 697
38763         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38764         being NULL also if there are no backreferences.
38765
38766 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38767
38768         regex: merge glibc changes
38769         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38770         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38771         re_string_skip_chars, re_string_reconstruct): Likewise.
38772         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38773
38774 2009-01-07  Jim Meyering  <meyering@redhat.com>
38775
38776         poll: filter through cppi
38777         * lib/poll.c: Indent cpp directives to reflect nesting.
38778
38779 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38780
38781         poll: don't return uninitialized
38782         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38783
38784 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38785
38786         avoid compile failure on AIX 6.1
38787         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38788         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38789
38790 2009-01-04  Jim Meyering  <meyering@redhat.com>
38791
38792         remove duplicate inclusion of <stdio.h>
38793         * tests/test-fprintf-posix.c: Likewise.
38794         * tests/test-printf-posix.c: Likewise.
38795         * tests/test-snprintf-posix.c: Likewise.
38796         * tests/test-sprintf-posix.c: Likewise.
38797         * tests/test-vasprintf-posix.c: Likewise.
38798         * tests/test-vfprintf-posix.c: Likewise.
38799         * tests/test-vprintf-posix.c: Likewise.
38800         * tests/test-vsnprintf-posix.c: Likewise.
38801         * tests/test-vsprintf-posix.c: Likewise.
38802
38803 2009-01-03  Jim Meyering  <meyering@redhat.com>
38804
38805         gnulib-tool: fix sed-based filtering
38806         * gnulib-tool (func_filter_filelist): Remove extra backslash
38807         in sed_fff_filter definition.
38808
38809 2009-01-02  Jim Meyering  <meyering@redhat.com>
38810
38811         strftime: avoid compilation failure on Solaris 2.6
38812         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38813         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38814         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38815         be available.  Reported by Tom G. Christensen.  Details in
38816         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38817
38818 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38819             Bruno Haible  <bruno@clisp.org>
38820
38821         Speed up gnulib-tool by doing more string processing through shell
38822         built-ins.
38823         * gnulib-tool (fast_func_append): New variable.
38824         (func_remove_prefix, func_remove_suffix): New functions.
38825         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38826         (func_filter_filelist): New function.
38827         (func_get_dependencies): Use func_remove_suffix instead of sed.
38828         (func_get_automake_snippet): Use func_filter_filelist instead of a
38829         subshell and sed invocation.
38830
38831 2009-01-01  Bruno Haible  <bruno@clisp.org>
38832
38833         Fix a security bug.
38834         * gnulib-tool (func_import, import, update): Don't allow the characters
38835         '"', '$', '`', '\' in macro arguments that become part of commands that
38836         are evaluated.
38837
38838 2009-01-01  Bruno Haible  <bruno@clisp.org>
38839
38840         * gnulib-tool (func_reset_sigpipe): Add more comments.
38841
38842 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38843
38844         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38845         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38846         already know the answer.
38847
38848 2009-01-01  Jim Meyering  <meyering@redhat.com>
38849
38850         * lib/version-etc.c (version_etc_va): Update copyright year.
38851
38852 2008-12-30  Bruno Haible  <bruno@clisp.org>
38853
38854         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38855         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38856         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38857
38858 2008-12-29  Eric Blake  <ebb9@byu.net>
38859
38860         multiarch: avoid autoconf AC_REQUIRE bug
38861         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38862         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38863         2.63 and older.
38864         Reported by Bruno Haible, and analyzed in
38865         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38866
38867 2008-12-29  Bruno Haible  <bruno@clisp.org>
38868
38869         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38870         files in subdirectories correctly.
38871         Reported by Ralf Wildenhues.
38872
38873 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38874
38875         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38876         rather than 'join FILE -', for Solaris join.
38877
38878 2008-12-29  Bruno Haible  <bruno@clisp.org>
38879
38880         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38881         quoting.
38882         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38883         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38884         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38885         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38886         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38887         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38888         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38889         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38891         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38892         * m4/nls.m4 (AM_NLS): Likewise.
38893         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38894         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38895         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38896         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38897         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38898         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38899         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38900         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38901         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38903         * m4/xsize.m4 (gl_XSIZE): Likewise.
38904         Suggested by Jim Meyering.
38905
38906 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38907
38908         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38909         * lib/parse-duration.c: use a switch instead of cascading if's.
38910
38911 2008-12-29  Eric Blake  <ebb9@byu.net>
38912
38913         wchar.h: supply WEOF on Irix 5.3
38914         * lib/wchar.in.h (wint_t): Also supply WEOF.
38915         * lib/wctype.in.h (wint_t): Likewise.
38916         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38917         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38918         Reported by Tom G. Christensen.
38919
38920 2008-12-26  Bruno Haible  <bruno@clisp.org>
38921
38922         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38923         i486, i586, i686.
38924
38925 2008-12-26  Bruno Haible  <bruno@clisp.org>
38926
38927         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38928
38929 2008-12-26  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38932         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38933         not __STDC_CONSTANT_MACROS.
38934         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38935
38936 2008-12-25  Bruno Haible  <bruno@clisp.org>
38937
38938         Add support for universal builds to vasnprintf.
38939         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38940         universal builds, guess no.
38941         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38942         * modules/vasprintf-posix (Depends-on): Likewise.
38943         * modules/fprintf-posix (Depends-on): Likewise.
38944         * modules/vfprintf-posix (Depends-on): Likewise.
38945         * modules/snprintf-posix (Depends-on): Likewise.
38946         * modules/vsnprintf-posix (Depends-on): Likewise.
38947         * modules/sprintf-posix (Depends-on): Likewise.
38948         * modules/vsprintf-posix (Depends-on): Likewise.
38949         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38950         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38951         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38952         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38953         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38954         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38955         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38956
38957         Add support for universal builds to <inttypes.h>.
38958         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38959         _SCNu64_PREFIX): In Apple
38960         universal builds, define directly, using _LP64.
38961         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38962         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38963         * modules/inttypes (Depends-on): Add multiarch.
38964         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38965
38966         Add support for universal builds to <stdint.h>.
38967         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38968         universal builds, define directly, using _LP64.
38969         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38970         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38971         and size_t.
38972         * modules/stdint (Depends-on): Add multiarch.
38973         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38974
38975         New module 'multiarch'.
38976         * modules/multiarch: New file.
38977         * m4/multiarch.m4: New file.
38978
38979 2008-12-25  Bruno Haible  <bruno@clisp.org>
38980
38981         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38982
38983 2008-12-25  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/btowc (License): Relicense under LGPLv2+.
38986         * modules/mbsinit (License): Likewise.
38987         * modules/mbrtowc (License): Likewise.
38988         * modules/wcrtomb (License): Likewise.
38989         * modules/streq (License): Likewise.
38990         Reported by David Lutterkort <lutter@redhat.com>.
38991
38992 2008-12-23  Bruno Haible  <bruno@clisp.org>
38993
38994         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38995
38996 2008-12-23  Bruno Haible  <bruno@clisp.org>
38997
38998         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39000         GETADDRINFO_LIB, not in LIBS.
39001         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39002         * modules/canon-host (Link): Likewise.
39003         * NEWS: Mention the change.
39004         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39005         GETADDRINFO_LIB.
39006
39007 2008-12-22  Bruno Haible  <bruno@clisp.org>
39008
39009         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39010         * doc/posix-functions/iswalpha_l.texi: Likewise.
39011         * doc/posix-functions/iswblank_l.texi: Likewise.
39012         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39013         * doc/posix-functions/iswctype_l.texi: Likewise.
39014         * doc/posix-functions/iswdigit_l.texi: Likewise.
39015         * doc/posix-functions/iswgraph_l.texi: Likewise.
39016         * doc/posix-functions/iswlower_l.texi: Likewise.
39017         * doc/posix-functions/iswprint_l.texi: Likewise.
39018         * doc/posix-functions/iswpunct_l.texi: Likewise.
39019         * doc/posix-functions/iswspace_l.texi: Likewise.
39020         * doc/posix-functions/iswupper_l.texi: Likewise.
39021         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39022         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39023         * doc/posix-functions/open_wmemstream.texi: Likewise.
39024         * doc/posix-functions/swscanf.texi: Likewise.
39025         * doc/posix-functions/towctrans_l.texi: Likewise.
39026         * doc/posix-functions/towlower.texi: Likewise.
39027         * doc/posix-functions/towlower_l.texi: Likewise.
39028         * doc/posix-functions/towupper.texi: Likewise.
39029         * doc/posix-functions/towupper_l.texi: Likewise.
39030         * doc/posix-functions/vfwprintf.texi: Likewise.
39031         * doc/posix-functions/vfwscanf.texi: Likewise.
39032         * doc/posix-functions/vswscanf.texi: Likewise.
39033         * doc/posix-functions/vwprintf.texi: Likewise.
39034         * doc/posix-functions/vwscanf.texi: Likewise.
39035         * doc/posix-functions/wcpcpy.texi: Likewise.
39036         * doc/posix-functions/wcpncpy.texi: Likewise.
39037         * doc/posix-functions/wcscasecmp.texi: Likewise.
39038         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39039         * doc/posix-functions/wcscoll_l.texi: Likewise.
39040         * doc/posix-functions/wcsdup.texi: Likewise.
39041         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39042         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39043         * doc/posix-functions/wcsnlen.texi: Likewise.
39044         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39045         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39046         * doc/posix-functions/wctrans_l.texi: Likewise.
39047         * doc/posix-functions/wctype_l.texi: Likewise.
39048         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39049         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39050         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39051         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39052         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39053         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39054         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39055         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39056         * doc/glibc-functions/wcschrnul.texi: Likewise.
39057         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39058         * doc/glibc-functions/wcstod_l.texi: Likewise.
39059         * doc/glibc-functions/wcstof_l.texi: Likewise.
39060         * doc/glibc-functions/wcstol_l.texi: Likewise.
39061         * doc/glibc-functions/wcstold_l.texi: Likewise.
39062         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39063         * doc/glibc-functions/wcstoq.texi: Likewise.
39064         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39065         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39066         * doc/glibc-functions/wcstouq.texi: Likewise.
39067         * doc/glibc-functions/wmempcpy.texi: Likewise.
39068
39069 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39070             Eric Blake  <ebb9@byu.net>
39071             Paolo Bonzini  <bonzini@gnu.org>
39072             Bruno Haible  <bruno@clisp.org>
39073
39074         Make c-stack work on Haiku.
39075         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39076         (c_stack_action): Use SA_ONSTACK flag.
39077
39078 2008-12-22  Bruno Haible  <bruno@clisp.org>
39079
39080         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39081
39082 2008-12-22  Bruno Haible  <bruno@clisp.org>
39083
39084         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39085         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39086         being overridden.
39087         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39088         New macros.
39089         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39091         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39092         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39093
39094 2008-12-22  Bruno Haible  <bruno@clisp.org>
39095
39096         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39097         from test code.
39098
39099 2008-12-22  Eric Blake  <ebb9@byu.net>
39100
39101         Avoid gcc warnings on cygwin.
39102         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39103         Avoid unused variable.
39104         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39105         Likewise.
39106
39107 2008-12-22  Bruno Haible  <bruno@clisp.org>
39108
39109         Remove HAVE_MBRTOWC conditionals.
39110         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39111         (mbscasecmp): Assume mbrtowc function.
39112         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39113         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39114         * lib/mbschr.c: Include mbuiter.h unconditionally.
39115         (mbschr): Assume mbrtowc function.
39116         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39117         (mbscspn): Assume mbrtowc function.
39118         * lib/mbslen.c: Include mbuiter.h unconditionally.
39119         (mbslen): Assume mbrtowc function.
39120         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39121         (mbsncasecmp): Assume mbrtowc function.
39122         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39123         (mbsnlen): Assume mbrtowc function.
39124         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39125         (mbspbrk): Assume mbrtowc function.
39126         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39127         (mbspcasecmp): Assume mbrtowc function.
39128         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39129         (mbsrchr): Assume mbrtowc function.
39130         * lib/mbssep.c: Include mbuiter.h unconditionally.
39131         (mbssep): Assume mbrtowc function.
39132         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39133         (mbsspn): Assume mbrtowc function.
39134         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39135         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39136         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39137         (mbstok_r): Assume mbrtowc function.
39138         * lib/propername.c: Include mbuiter.h unconditionally.
39139         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39140         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39141         (trim2): Assume mbrtowc function.
39142         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39143         (mbsnwidth): Assume mbrtowc function.
39144         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39145         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39146         fallback definitions.
39147         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39148
39149 2008-12-22  Bruno Haible  <bruno@clisp.org>
39150
39151         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39152
39153 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39154
39155         * modules/regex: Request emulations for the mb*/wc* functions we need.
39156         * m4/regex.m4: Don't look for those functions here.
39157         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39158
39159 2008-12-22  Bruno Haible  <bruno@clisp.org>
39160
39161         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39162
39163 2008-12-21  Bruno Haible  <bruno@clisp.org>
39164
39165         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39166         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39167         (Include): Remove conditionalization.
39168         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39169         (Include): Remove conditionalization.
39170         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39171         (Include): Remove conditionalization.
39172         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39173         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39174         * NEWS: Mention the change.
39175         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39176         via Sergey Poznyakoff <gray@gnu.org.ua>.
39177
39178 2008-12-21  Bruno Haible  <bruno@clisp.org>
39179
39180         * MODULES.html.sh (Extended multibyte and wide character utilities
39181         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39182         wcrtomb, wcsrtombs.
39183         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39184         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39185         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39186         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39187
39188 2008-12-21  Bruno Haible  <bruno@clisp.org>
39189
39190         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39191
39192 2008-12-21  Bruno Haible  <bruno@clisp.org>
39193
39194         * modules/wcsnrtombs-tests: New file.
39195         * tests/test-wcsnrtombs1.sh: New file.
39196         * tests/test-wcsnrtombs2.sh: New file.
39197         * tests/test-wcsnrtombs3.sh: New file.
39198         * tests/test-wcsnrtombs4.sh: New file.
39199         * tests/test-wcsnrtombs.c: New file.
39200
39201         New module 'wcsnrtombs'.
39202         * lib/wchar.in.h (wcsnrtombs): New declaration.
39203         * lib/wcsnrtombs.c: New file.
39204         * lib/wcsrtombs-state.c: New file.
39205         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39206         (internal_state): Remove variable.
39207         * m4/wcsnrtombs.m4: New file.
39208         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39209         compilation units.
39210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39211         HAVE_WCSNRTOMBS.
39212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39213         HAVE_WCSNRTOMBS.
39214         * modules/wcsnrtombs: New file.
39215         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39216         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39217
39218 2008-12-21  Bruno Haible  <bruno@clisp.org>
39219
39220         * modules/wcsrtombs-tests: New file.
39221         * tests/test-wcsrtombs1.sh: New file.
39222         * tests/test-wcsrtombs2.sh: New file.
39223         * tests/test-wcsrtombs3.sh: New file.
39224         * tests/test-wcsrtombs4.sh: New file.
39225         * tests/test-wcsrtombs.c: New file.
39226
39227         New module 'wcsrtombs'.
39228         * lib/wchar.in.h (wcsrtombs): New declaration.
39229         * lib/wcsrtombs.c: New file.
39230         * m4/wcsrtombs.m4: New file.
39231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39232         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39234         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39235         * modules/wcsrtombs: New file.
39236         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39237         bugs.
39238
39239 2008-12-21  Bruno Haible  <bruno@clisp.org>
39240
39241         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39242         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39244         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39245         if not correct.
39246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39247         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39248         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39249         m4/locale-zh.m4, m4/codeset.m4.
39250         * doc/posix-functions/wcrtomb.texi: Document the bug.
39251
39252 2008-12-21  Bruno Haible  <bruno@clisp.org>
39253
39254         Work around a btowc() bug on IRIX 6.5.
39255         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39256         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39257         REPLACE_WTOBC if not.
39258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39259         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39260         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39261
39262 2008-12-21  Bruno Haible  <bruno@clisp.org>
39263
39264         * modules/wcrtomb-tests: New file.
39265         * tests/test-wcrtomb.sh: New file.
39266         * tests/test-wcrtomb.c: New file.
39267
39268         New module 'wcrtomb'.
39269         * lib/wchar.in.h (wcrtomb): New declaration.
39270         * lib/wcrtomb.c: New file.
39271         * m4/wcrtomb.m4: New file.
39272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39273         HAVE_WCRTOMB.
39274         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39275         HAVE_WCRTOMB.
39276         * modules/wcrtomb: New file.
39277         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39278
39279 2008-12-21  Bruno Haible  <bruno@clisp.org>
39280
39281         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39282         * modules/mbsrtowcs (Files): Likewise.
39283         * modules/wctob (Files): Likewise.
39284         * modules/c-strcase-tests (Files): Likewise.
39285         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39286         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39287         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39288         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39289         * modules/vasnprintf-posix-tests (Files): Likewise.
39290
39291 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39292
39293         gitlog-to-changelog: pass all command-line arguments to git-log
39294         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39295         it is sometimes convenient to filter the commits in various ways.
39296         gitlog-to-changelog only allows --since to specify a start date,
39297         but git-log itself supports many other filtering mechanisms.
39298         At the moment, I want to filter by branch name.  Rather than
39299         adding a --branch option to gitlog-to-changelog, it seems more
39300         flexible to simply pass all options directly to git-log and let
39301         git do the work.  Notice that this effectively makes --since a
39302         redundant option for gitlog-to-changelog, but removing it would
39303         require current usage to change since calls would then require
39304         an additional '--'.
39305
39306 2008-12-21  Bruno Haible  <bruno@clisp.org>
39307
39308         * modules/mbsnrtowcs-tests: New file.
39309         * tests/test-mbsnrtowcs1.sh: New file.
39310         * tests/test-mbsnrtowcs2.sh: New file.
39311         * tests/test-mbsnrtowcs3.sh: New file.
39312         * tests/test-mbsnrtowcs4.sh: New file.
39313         * tests/test-mbsnrtowcs.c: New file.
39314
39315         New module 'mbsnrtowcs'.
39316         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39317         * lib/mbsnrtowcs.c: New file.
39318         * lib/mbsrtowcs-state.c: New file.
39319         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39320         (internal_state): Remove variable.
39321         * m4/mbsnrtowcs.m4: New file.
39322         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39323         compilation units.
39324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39325         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39326         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39327         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39328         * modules/mbsnrtowcs: New file.
39329         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39330         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39331         portability problem.
39332
39333 2008-12-21  Bruno Haible  <bruno@clisp.org>
39334
39335         Work around mbsrtowcs bug.
39336         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39337         (gl_FUNC_MBSRTOWCS): Invoke it.
39338         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39339         m4/locale-zh.m4.
39340         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39341
39342 2008-12-21  Bruno Haible  <bruno@clisp.org>
39343
39344         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39345
39346 2008-12-21  Bruno Haible  <bruno@clisp.org>
39347
39348         Update doc for AIX.
39349         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39350         16-bit wchar_t type.
39351         * doc/posix-functions/btowc.texi: Likewise.
39352         * doc/posix-functions/fgetwc.texi: Likewise.
39353         * doc/posix-functions/fgetws.texi: Likewise.
39354         * doc/posix-functions/fputwc.texi: Likewise.
39355         * doc/posix-functions/fputws.texi: Likewise.
39356         * doc/posix-functions/fwide.texi: Likewise.
39357         * doc/posix-functions/fwprintf.texi: Likewise.
39358         * doc/posix-functions/fwscanf.texi: Likewise.
39359         * doc/posix-functions/getwchar.texi: Likewise.
39360         * doc/posix-functions/getwc.texi: Likewise.
39361         * doc/posix-functions/iswalnum.texi: Likewise.
39362         * doc/posix-functions/iswalpha.texi: Likewise.
39363         * doc/posix-functions/iswblank.texi: Likewise.
39364         * doc/posix-functions/iswcntrl.texi: Likewise.
39365         * doc/posix-functions/iswctype.texi: Likewise.
39366         * doc/posix-functions/iswdigit.texi: Likewise.
39367         * doc/posix-functions/iswgraph.texi: Likewise.
39368         * doc/posix-functions/iswlower.texi: Likewise.
39369         * doc/posix-functions/iswprint.texi: Likewise.
39370         * doc/posix-functions/iswpunct.texi: Likewise.
39371         * doc/posix-functions/iswspace.texi: Likewise.
39372         * doc/posix-functions/iswupper.texi: Likewise.
39373         * doc/posix-functions/iswxdigit.texi: Likewise.
39374         * doc/posix-functions/mbrtowc.texi: Likewise.
39375         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39376         * doc/posix-functions/mbstowcs.texi: Likewise.
39377         * doc/posix-functions/mbtowc.texi: Likewise.
39378         * doc/posix-functions/putwchar.texi: Likewise.
39379         * doc/posix-functions/putwc.texi: Likewise.
39380         * doc/posix-functions/swprintf.texi: Likewise.
39381         * doc/posix-functions/tolower.texi: Likewise.
39382         * doc/posix-functions/toupper.texi: Likewise.
39383         * doc/posix-functions/towctrans.texi: Likewise.
39384         * doc/posix-functions/ungetwc.texi: Likewise.
39385         * doc/posix-functions/vswprintf.texi: Likewise.
39386         * doc/posix-functions/wcrtomb.texi: Likewise.
39387         * doc/posix-functions/wcscat.texi: Likewise.
39388         * doc/posix-functions/wcschr.texi: Likewise.
39389         * doc/posix-functions/wcscmp.texi: Likewise.
39390         * doc/posix-functions/wcscoll.texi: Likewise.
39391         * doc/posix-functions/wcscpy.texi: Likewise.
39392         * doc/posix-functions/wcscspn.texi: Likewise.
39393         * doc/posix-functions/wcsftime.texi: Likewise.
39394         * doc/posix-functions/wcslen.texi: Likewise.
39395         * doc/posix-functions/wcsncat.texi: Likewise.
39396         * doc/posix-functions/wcsncmp.texi: Likewise.
39397         * doc/posix-functions/wcsncpy.texi: Likewise.
39398         * doc/posix-functions/wcspbrk.texi: Likewise.
39399         * doc/posix-functions/wcsrchr.texi: Likewise.
39400         * doc/posix-functions/wcsrtombs.texi: Likewise.
39401         * doc/posix-functions/wcsspn.texi: Likewise.
39402         * doc/posix-functions/wcsstr.texi: Likewise.
39403         * doc/posix-functions/wcstod.texi: Likewise.
39404         * doc/posix-functions/wcstof.texi: Likewise.
39405         * doc/posix-functions/wcstoimax.texi: Likewise.
39406         * doc/posix-functions/wcstok.texi: Likewise.
39407         * doc/posix-functions/wcstold.texi: Likewise.
39408         * doc/posix-functions/wcstoll.texi: Likewise.
39409         * doc/posix-functions/wcstol.texi: Likewise.
39410         * doc/posix-functions/wcstombs.texi: Likewise.
39411         * doc/posix-functions/wcstoull.texi: Likewise.
39412         * doc/posix-functions/wcstoul.texi: Likewise.
39413         * doc/posix-functions/wcstoumax.texi: Likewise.
39414         * doc/posix-functions/wcswidth.texi: Likewise.
39415         * doc/posix-functions/wcsxfrm.texi: Likewise.
39416         * doc/posix-functions/wctob.texi: Likewise.
39417         * doc/posix-functions/wctomb.texi: Likewise.
39418         * doc/posix-functions/wctrans.texi: Likewise.
39419         * doc/posix-functions/wctype.texi: Likewise.
39420         * doc/posix-functions/wcwidth.texi: Likewise.
39421         * doc/posix-functions/wmemchr.texi: Likewise.
39422         * doc/posix-functions/wmemcmp.texi: Likewise.
39423         * doc/posix-functions/wmemcpy.texi: Likewise.
39424         * doc/posix-functions/wmemmove.texi: Likewise.
39425         * doc/posix-functions/wmemset.texi: Likewise.
39426         * doc/posix-functions/wprintf.texi: Likewise.
39427         * doc/posix-functions/wscanf.texi: Likewise.
39428
39429 2008-12-21  Bruno Haible  <bruno@clisp.org>
39430
39431         Update doc for HP-UX 11.11.
39432         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39433         in HP-UX version 11.00, not in all versions of HP-UX 11.
39434         * doc/posix-functions/fwide.texi: Likewise.
39435         * doc/posix-functions/fwprintf.texi: Likewise.
39436         * doc/posix-functions/fwscanf.texi: Likewise.
39437         * doc/posix-functions/inet_ntop.texi: Likewise.
39438         * doc/posix-functions/inet_pton.texi: Likewise.
39439         * doc/posix-functions/mbrlen.texi: Likewise.
39440         * doc/posix-functions/mbrtowc.texi: Likewise.
39441         * doc/posix-functions/mbsinit.texi: Likewise.
39442         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39443         * doc/posix-functions/swprintf.texi: Likewise.
39444         * doc/posix-functions/swscanf.texi: Likewise.
39445         * doc/posix-functions/towctrans.texi: Likewise.
39446         * doc/posix-functions/vfwprintf.texi: Likewise.
39447         * doc/posix-functions/vswprintf.texi: Likewise.
39448         * doc/posix-functions/vwprintf.texi: Likewise.
39449         * doc/posix-functions/wcrtomb.texi: Likewise.
39450         * doc/posix-functions/wcsrtombs.texi: Likewise.
39451         * doc/posix-functions/wcsstr.texi: Likewise.
39452         * doc/posix-functions/wctob.texi: Likewise.
39453         * doc/posix-functions/wctrans.texi: Likewise.
39454         * doc/posix-functions/wmemchr.texi: Likewise.
39455         * doc/posix-functions/wmemcmp.texi: Likewise.
39456         * doc/posix-functions/wmemcpy.texi: Likewise.
39457         * doc/posix-functions/wmemmove.texi: Likewise.
39458         * doc/posix-functions/wmemset.texi: Likewise.
39459         * doc/posix-functions/wprintf.texi: Likewise.
39460         * doc/posix-functions/wscanf.texi: Likewise.
39461
39462 2008-12-21  Bruno Haible  <bruno@clisp.org>
39463
39464         Work around a portability problem.
39465         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39466         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39467
39468 2008-12-20  Bruno Haible  <bruno@clisp.org>
39469
39470         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39471         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39472         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39474         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39475
39476         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39477         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39478         set.
39479         (GNULIB_defined_mbstate_t): New macro.
39480         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39481         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39482         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39483         reuses the system's mbrtowc function but works around the bugs.
39484         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39485         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39486         macros.
39487         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39488         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39489         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39490         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39491         REPLACE_MBSINIT if mbsinit needs to be overridden.
39492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39493         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39494         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39495         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39496         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39497         m4/locale-zh.m4.
39498         (Depends): Add mbsinit.
39499         * modules/mbsinit (Depends): Add mbrtowc.
39500         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39501
39502 2008-12-20  Bruno Haible  <bruno@clisp.org>
39503
39504         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39505         so that there are no conversion errors on AIX.
39506         * tests/test-mbsrtowcs.c (main): LIkewise.
39507
39508 2008-12-20  Bruno Haible  <bruno@clisp.org>
39509
39510         Work around wctob bug on Solaris <= 9.
39511         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39512         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39514         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39515         * modules/wctob (Files): Add m4/locale-fr.m4.
39516         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39517
39518 2008-12-20  Bruno Haible  <bruno@clisp.org>
39519
39520         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39521         /dev/null.
39522         * tests/test-select-in.sh: Likewise.
39523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39524
39525 2008-12-20  Bruno Haible  <bruno@clisp.org>
39526
39527         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39528         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39529         Cygwin 1.5.x.
39530
39531 2008-12-20  Bruno Haible  <bruno@clisp.org>
39532
39533         Ensure mbstate_t is defined on HP-UX 11.11.
39534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39535         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39536         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39537         AC_USE_SYSTEM_EXTENSIONS.
39538         * modules/fnmatch (Depends-on): Add extensions.
39539         * modules/mbrlen (Depends-on): Likewise.
39540         * modules/mbrtowc (Depends-on): Likewise.
39541         * modules/mbsinit (Depends-on): Likewise.
39542         * modules/mbsrtowcs (Depends-on): Likewise.
39543         * modules/mbswidth (Depends-on): Likewise.
39544         * modules/quotearg (Depends-on): Likewise.
39545         * modules/strftime (Depends-on): Likewise.
39546
39547 2008-12-20  Bruno Haible  <bruno@clisp.org>
39548
39549         Ensure wctob is declared on IRIX 6.5.
39550         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39551         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39552         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39554         of HAVE_WCTOB.
39555         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39556         HAVE_WCTOB.
39557         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39558
39559 2008-12-19  Bruno Haible  <bruno@clisp.org>
39560
39561         * modules/mbsrtowcs-tests: New file.
39562         * tests/test-mbsrtowcs1.sh: New file.
39563         * tests/test-mbsrtowcs2.sh: New file.
39564         * tests/test-mbsrtowcs3.sh: New file.
39565         * tests/test-mbsrtowcs4.sh: New file.
39566         * tests/test-mbsrtowcs.c: New file.
39567
39568         New module 'mbsrtowcs'.
39569         * lib/wchar.in.h (mbsrtowcs): New declaration.
39570         * lib/mbsrtowcs.c: New file.
39571         * m4/mbsrtowcs.m4: New file.
39572         * modules/mbsrtowcs: New file.
39573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39574         HAVE_MBSRTOWCS.
39575         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39576         HAVE_MBSRTOWCS.
39577         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39578
39579 2008-12-19  Bruno Haible  <bruno@clisp.org>
39580
39581         New module 'mbrlen'.
39582         * lib/wchar.in.h (mbrlen): New declaration.
39583         * lib/mbrlen.c: New file.
39584         * m4/mbrlen.m4: New file.
39585         * modules/mbrlen: New file.
39586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39587         HAVE_MBRLEN.
39588         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39589         HAVE_MBRLEN.
39590         * doc/posix-functions/mbrlen.texi: Document the new module.
39591
39592 2008-12-19  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39595         * modules/mbrtowc (Depends-on): Add verify.
39596         Suggested by Paul Eggert.
39597
39598 2008-12-18  Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/mbsinit-tests: New file.
39601         * tests/test-mbsinit.sh: New file.
39602         * tests/test-mbsinit.c: New file.
39603
39604 2008-12-18  Bruno Haible  <bruno@clisp.org>
39605
39606         * modules/mbrtowc-tests: New file.
39607         * tests/test-mbrtowc1.sh: New file.
39608         * tests/test-mbrtowc2.sh: New file.
39609         * tests/test-mbrtowc3.sh: New file.
39610         * tests/test-mbrtowc4.sh: New file.
39611         * tests/test-mbrtowc.c: New file.
39612
39613         New module 'mbrtowc'.
39614         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39615         mbsinit and mbrtowc.
39616         (mbrtowc): New declaration.
39617         * lib/mbrtowc.c: New file.
39618         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39619         * modules/mbrtowc: New file.
39620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39621         HAVE_MBRTOWC.
39622         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39623         HAVE_MBRTOWC.
39624         * doc/posix-functions/mbrtowc.texi: Document the new module.
39625
39626 2008-12-18  Bruno Haible  <bruno@clisp.org>
39627
39628         New module 'wctob'.
39629         * lib/wchar.in.h (wctob): New declaration.
39630         * lib/wctob.c: New file.
39631         * m4/wctob.m4: New file.
39632         * modules/wctob: New file.
39633         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39634         HAVE_WCTOB.
39635         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39636         * doc/posix-functions/wctob.texi: Document the new module.
39637
39638 2008-12-18  Bruno Haible  <bruno@clisp.org>
39639
39640         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39641         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39642
39643 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39644
39645         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39646         G. Christensen" <tgc@jupiterrise.com>.
39647
39648         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39649         G. Christensen" <tgc@jupiterrise.com>.
39650
39651         * lib/flock.c: Need to include string.h.  Reported by "Tom
39652         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39653         <ebb9@byu.net>.
39654
39655 2008-12-18  Bruno Haible  <bruno@clisp.org>
39656
39657         * m4/locale-ja.m4: New file, from GNU gettext.
39658
39659 2008-12-17  Bruno Haible  <bruno@clisp.org>
39660
39661         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39662         Suggested by Eric Blake.
39663
39664 2008-12-17  Bruno Haible  <bruno@clisp.org>
39665
39666         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39667
39668 2008-12-17  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39671         * modules/mbsinit (Depends-on): Add verify.
39672         Suggested by Paul Eggert.
39673
39674 2008-12-17  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39677         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39678         gl_FUNC_MBRTOWC.
39679         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39680         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39681         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39682         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39683         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39684         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39685         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39686         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39687         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39688         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39689         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39690         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39691         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39692         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39693         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39694         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39695         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39696         * modules/trim (configure.ac): Likewise.
39697
39698 2008-12-17  Bruno Haible  <bruno@clisp.org>
39699
39700         * modules/btowc-tests: New file.
39701         * tests/test-btowc1.sh: New file.
39702         * tests/test-btowc2.sh: New file.
39703         * tests/test-btowc.c: New file.
39704
39705         New module 'btowc'.
39706         * lib/wchar.in.h (btowc): New declaration.
39707         * lib/btowc.c: New file.
39708         * m4/btowc.m4: New file.
39709         * modules/btowc: New file.
39710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39711         HAVE_BTOWC.
39712         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39713         * doc/posix-functions/btowc.texi: Document the new module.
39714
39715 2008-12-17  Bruno Haible  <bruno@clisp.org>
39716
39717         New module 'mbsinit'.
39718         * lib/wchar.in.h (mbsinit): New declaration.
39719         * lib/mbsinit.c: New file.
39720         * m4/mbsinit.m4: New file.
39721         * modules/mbsinit: New file.
39722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39723         HAVE_MBSINIT.
39724         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39725         HAVE_MBSINIT.
39726         * doc/posix-functions/mbsinit.texi: Document the new module.
39727
39728 2008-12-16  Bruno Haible  <bruno@clisp.org>
39729
39730         * lib/unistd.in.h: Add comment.
39731         * tests/test-environ.c: Don't include <stdlib.h>.
39732
39733 2008-12-16  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/parse-duration.h (parse_duration): Document return value
39736         convention.
39737         * lib/parse-duration.c: Include specification header first. Add
39738         comments.
39739         (_): Remove macro.
39740         (parse_year_month_day, parse_hour_minute_second): Move side effects
39741         outside of strchr call.
39742         (parse_non_iso8601): Move side effects outside of isspace call.
39743         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39744         call.
39745
39746 2008-12-16  Bruno Haible  <bruno@clisp.org>
39747
39748         * tests/test-parse-duration.sh: Produce no output when the test
39749         succeeds.
39750
39751 2008-12-16  Bruno Haible  <bruno@clisp.org>
39752
39753         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39754         expressions.
39755
39756 2008-12-15  Bruno Haible  <bruno@clisp.org>
39757
39758         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39759         * doc/glibc-functions/flistxattr.texi: Likewise.
39760         * doc/glibc-functions/fopencookie.texi: Likewise.
39761         * doc/glibc-functions/fremovexattr.texi: Likewise.
39762         * doc/glibc-functions/fsetxattr.texi: Likewise.
39763         * doc/glibc-functions/getxattr.texi: Likewise.
39764         * doc/glibc-functions/lgetxattr.texi: Likewise.
39765         * doc/glibc-functions/listxattr.texi: Likewise.
39766         * doc/glibc-functions/llistxattr.texi: Likewise.
39767         * doc/glibc-functions/lremovexattr.texi: Likewise.
39768         * doc/glibc-functions/lsetxattr.texi: Likewise.
39769         * doc/glibc-functions/removexattr.texi: Likewise.
39770         * doc/glibc-functions/setxattr.texi: Likewise.
39771         * doc/posix-functions/open_memstream.texi: Likewise.
39772
39773 2008-12-15  Eric Blake  <ebb9@byu.net>
39774
39775         Update doc for cygwin 1.7.
39776         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39777         functions.
39778         * doc/posix-functions/fchmodat.texi: Likewise.
39779         * doc/posix-functions/fchownat.texi: Likewise.
39780         * doc/posix-functions/fdopendir.texi: Likewise.
39781         * doc/posix-functions/fmemopen.texi: Likewise.
39782         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39783         * doc/posix-functions/fstatat.texi: Likewise.
39784         * doc/posix-functions/futimens.texi: Likewise.
39785         * doc/posix-functions/gai_strerror.texi: Likewise.
39786         * doc/posix-functions/getaddrinfo.texi: Likewise.
39787         * doc/posix-functions/getnameinfo.texi: Likewise.
39788         * doc/posix-functions/if_freenameindex.texi: Likewise.
39789         * doc/posix-functions/if_indextoname.texi: Likewise.
39790         * doc/posix-functions/if_nameindex.texi: Likewise.
39791         * doc/posix-functions/if_nametoindex.texi: Likewise.
39792         * doc/posix-functions/insque.texi: Likewise.
39793         * doc/posix-functions/linkat.texi: Likewise.
39794         * doc/posix-functions/llrint.texi: Likewise.
39795         * doc/posix-functions/llrintf.texi: Likewise.
39796         * doc/posix-functions/llrintl.texi: Likewise.
39797         * doc/posix-functions/lockf.texi: Likewise.
39798         * doc/posix-functions/lrintl.texi: Likewise.
39799         * doc/posix-functions/mkdirat.texi: Likewise.
39800         * doc/posix-functions/mkfifoat.texi: Likewise.
39801         * doc/posix-functions/mknodat.texi: Likewise.
39802         * doc/posix-functions/mq_close.texi: Likewise.
39803         * doc/posix-functions/mq_getattr.texi: Likewise.
39804         * doc/posix-functions/mq_notify.texi: Likewise.
39805         * doc/posix-functions/mq_open.texi: Likewise.
39806         * doc/posix-functions/mq_receive.texi: Likewise.
39807         * doc/posix-functions/mq_send.texi: Likewise.
39808         * doc/posix-functions/mq_setattr.texi: Likewise.
39809         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39810         * doc/posix-functions/mq_timedsend.texi: Likewise.
39811         * doc/posix-functions/mq_unlink.texi: Likewise.
39812         * doc/posix-functions/open_memstream.texi: Likewise.
39813         * doc/posix-functions/openat.texi: Likewise.
39814         * doc/posix-functions/posix_fadvise.texi: Likewise.
39815         * doc/posix-functions/posix_fallocate.texi: Likewise.
39816         * doc/posix-functions/posix_madvise.texi: Likewise.
39817         * doc/posix-functions/posix_memalign.texi: Likewise.
39818         * doc/posix-functions/posix_openpt.texi: Likewise.
39819         * doc/posix-functions/readlinkat.texi: Likewise.
39820         * doc/posix-functions/remque.texi: Likewise.
39821         * doc/posix-functions/renameat.texi: Likewise.
39822         * doc/posix-functions/rintl.texi: Likewise.
39823         * doc/posix-functions/sem_unlink.texi: Likewise.
39824         * doc/posix-functions/shm_open.texi: Likewise.
39825         * doc/posix-functions/shm_unlink.texi: Likewise.
39826         * doc/posix-functions/signgam.texi: Likewise.
39827         * doc/posix-functions/sigset.texi: Likewise.
39828         * doc/posix-functions/stpcpy.texi: Likewise.
39829         * doc/posix-functions/stpncpy.texi: Likewise.
39830         * doc/posix-functions/strerror.texi: Likewise.
39831         * doc/posix-functions/strtod.texi: Likewise.
39832         * doc/posix-functions/symlinkat.texi: Likewise.
39833         * doc/posix-functions/unlinkat.texi: Likewise.
39834         * doc/posix-functions/utimensat.texi: Likewise.
39835         * doc/glibc-functions/bindresvport.texi: Likewise.
39836         * doc/glibc-functions/dn_expand.texi: Likewise.
39837         * doc/glibc-functions/exp10.texi: Likewise.
39838         * doc/glibc-functions/exp10f.texi: Likewise.
39839         * doc/glibc-functions/fgetxattr.texi: Likewise.
39840         * doc/glibc-functions/flistxattr.texi: Likewise.
39841         * doc/glibc-functions/fopencookie.texi: Likewise.
39842         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39843         * doc/glibc-functions/fremovexattr.texi: Likewise.
39844         * doc/glibc-functions/fsetxattr.texi: Likewise.
39845         * doc/glibc-functions/getifaddrs.texi: Likewise.
39846         * doc/glibc-functions/getxattr.texi: Likewise.
39847         * doc/glibc-functions/lgetxattr.texi: Likewise.
39848         * doc/glibc-functions/listxattr.texi: Likewise.
39849         * doc/glibc-functions/llistxattr.texi: Likewise.
39850         * doc/glibc-functions/lremovexattr.texi: Likewise.
39851         * doc/glibc-functions/lsetxattr.texi: Likewise.
39852         * doc/glibc-functions/pow10.texi: Likewise.
39853         * doc/glibc-functions/pow10f.texi: Likewise.
39854         * doc/glibc-functions/rcmd_af.texi: Likewise.
39855         * doc/glibc-functions/removexattr.texi: Likewise.
39856         * doc/glibc-functions/res_init.texi: Likewise.
39857         * doc/glibc-functions/res_mkquery.texi: Likewise.
39858         * doc/glibc-functions/res_query.texi: Likewise.
39859         * doc/glibc-functions/res_querydomain.texi: Likewise.
39860         * doc/glibc-functions/res_send.texi: Likewise.
39861         * doc/glibc-functions/rresvport_af.texi: Likewise.
39862         * doc/glibc-functions/setxattr.texi: Likewise.
39863         * doc/glibc-functions/strcasestr.texi: Likewise.
39864
39865 2008-12-15  Bruno Haible  <bruno@clisp.org>
39866
39867         Fix compilation error on OSF/1 4.0.
39868         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39869         <sys/time.h>, simply delegate to the system header.
39870         Reported by Daniel Richard G. <oss@teragram.com>.
39871
39872 2008-12-15  Bruno Haible  <bruno@clisp.org>
39873
39874         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39875         * doc/posix-functions/fchmodat.texi: Likewise.
39876         * doc/posix-functions/fchownat.texi: Likewise.
39877         * doc/posix-functions/fdopendir.texi: Likewise.
39878         * doc/posix-functions/fstatat.texi: Likewise.
39879         * doc/posix-functions/mkdirat.texi: Likewise.
39880         * doc/posix-functions/unlinkat.texi: Likewise.
39881
39882 2008-12-14  Bruno Haible  <bruno@clisp.org>
39883
39884         Update doc for POSIX:2008.
39885         * doc/posix-functions/faccessat.texi: New file.
39886         * doc/posix-functions/fchmodat.texi: New file.
39887         * doc/posix-functions/fchownat.texi: New file.
39888         * doc/posix-functions/fdopendir.texi: New file.
39889         * doc/posix-functions/fstatat.texi: New file.
39890         * doc/posix-functions/futimens.texi: New file.
39891         * doc/posix-functions/linkat.texi: New file.
39892         * doc/posix-functions/mkdirat.texi: New file.
39893         * doc/posix-functions/mkfifoat.texi: New file.
39894         * doc/posix-functions/mknodat.texi: New file.
39895         * doc/posix-functions/open_wmemstream.texi: New file.
39896         * doc/posix-functions/openat.texi: New file.
39897         * doc/posix-functions/psiginfo.texi: New file.
39898         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39899         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39900         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39901         * doc/posix-functions/readlinkat.texi: New file.
39902         * doc/posix-functions/renameat.texi: New file.
39903         * doc/posix-functions/strerror_l.texi: New file.
39904         * doc/posix-functions/symlinkat.texi: New file.
39905         * doc/posix-functions/unlinkat.texi: New file.
39906         * doc/posix-functions/utimensat.texi: New file.
39907         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39908
39909 2008-12-14  Bruno Haible  <bruno@clisp.org>
39910
39911         Update doc for POSIX:2008.
39912         * doc/posix-functions/alphasort.texi: Renamed from
39913         doc/glibc-functions/alphasort.texi.
39914         * doc/posix-functions/dirfd.texi: Renamed from
39915         doc/glibc-functions/dirfd.texi.
39916         * doc/posix-functions/dprintf.texi: Renamed from
39917         doc/glibc-functions/dprintf.texi.
39918         * doc/posix-functions/duplocale.texi: Renamed from
39919         doc/glibc-functions/duplocale.texi.
39920         * doc/posix-functions/fexecve.texi: Renamed from
39921         doc/glibc-functions/fexecve.texi.
39922         * doc/posix-functions/fmemopen.texi: Renamed from
39923         doc/glibc-functions/fmemopen.texi.
39924         * doc/posix-functions/freelocale.texi: Renamed from
39925         doc/glibc-functions/freelocale.texi.
39926         * doc/posix-functions/getdate_err.texi: Renamed from
39927         doc/glibc-functions/getdate_err.texi.
39928         * doc/posix-functions/isalnum_l.texi: Renamed from
39929         doc/glibc-functions/isalnum_l.texi.
39930         * doc/posix-functions/isalpha_l.texi: Renamed from
39931         doc/glibc-functions/isalpha_l.texi.
39932         * doc/posix-functions/isblank_l.texi: Renamed from
39933         doc/glibc-functions/isblank_l.texi.
39934         * doc/posix-functions/iscntrl_l.texi: Renamed from
39935         doc/glibc-functions/iscntrl_l.texi.
39936         * doc/posix-functions/isdigit_l.texi: Renamed from
39937         doc/glibc-functions/isdigit_l.texi.
39938         * doc/posix-functions/isgraph_l.texi: Renamed from
39939         doc/glibc-functions/isgraph_l.texi.
39940         * doc/posix-functions/islower_l.texi: Renamed from
39941         doc/glibc-functions/islower_l.texi.
39942         * doc/posix-functions/isprint_l.texi: Renamed from
39943         doc/glibc-functions/isprint_l.texi.
39944         * doc/posix-functions/ispunct_l.texi: Renamed from
39945         doc/glibc-functions/ispunct_l.texi.
39946         * doc/posix-functions/isspace_l.texi: Renamed from
39947         doc/glibc-functions/isspace_l.texi.
39948         * doc/posix-functions/isupper_l.texi: Renamed from
39949         doc/glibc-functions/isupper_l.texi.
39950         * doc/posix-functions/iswalnum_l.texi: Renamed from
39951         doc/glibc-functions/iswalnum_l.texi.
39952         * doc/posix-functions/iswalpha_l.texi: Renamed from
39953         doc/glibc-functions/iswalpha_l.texi.
39954         * doc/posix-functions/iswblank_l.texi: Renamed from
39955         doc/glibc-functions/iswblank_l.texi.
39956         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39957         doc/glibc-functions/iswcntrl_l.texi.
39958         * doc/posix-functions/iswctype_l.texi: Renamed from
39959         doc/glibc-functions/iswctype_l.texi.
39960         * doc/posix-functions/iswdigit_l.texi: Renamed from
39961         doc/glibc-functions/iswdigit_l.texi.
39962         * doc/posix-functions/iswgraph_l.texi: Renamed from
39963         doc/glibc-functions/iswgraph_l.texi.
39964         * doc/posix-functions/iswlower_l.texi: Renamed from
39965         doc/glibc-functions/iswlower_l.texi.
39966         * doc/posix-functions/iswprint_l.texi: Renamed from
39967         doc/glibc-functions/iswprint_l.texi.
39968         * doc/posix-functions/iswpunct_l.texi: Renamed from
39969         doc/glibc-functions/iswpunct_l.texi.
39970         * doc/posix-functions/iswspace_l.texi: Renamed from
39971         doc/glibc-functions/iswspace_l.texi.
39972         * doc/posix-functions/iswupper_l.texi: Renamed from
39973         doc/glibc-functions/iswupper_l.texi.
39974         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39975         doc/glibc-functions/iswxdigit_l.texi.
39976         * doc/posix-functions/isxdigit_l.texi: Renamed from
39977         doc/glibc-functions/isxdigit_l.texi.
39978         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39979         doc/glibc-functions/mbsnrtowcs.texi.
39980         * doc/posix-functions/mkdtemp.texi: Renamed from
39981         doc/glibc-functions/mkdtemp.texi.
39982         * doc/posix-functions/newlocale.texi: Renamed from
39983         doc/glibc-functions/newlocale.texi.
39984         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39985         doc/glibc-functions/nl_langinfo_l.texi.
39986         * doc/posix-functions/open_memstream.texi: Renamed from
39987         doc/glibc-functions/open_memstream.texi.
39988         * doc/posix-functions/opterr.texi: Renamed from
39989         doc/glibc-functions/opterr.texi.
39990         * doc/posix-functions/optind.texi: Renamed from
39991         doc/glibc-functions/optind.texi.
39992         * doc/posix-functions/optopt.texi: Renamed from
39993         doc/glibc-functions/optopt.texi.
39994         * doc/posix-functions/psignal.texi: Renamed from
39995         doc/glibc-functions/psignal.texi.
39996         * doc/posix-functions/scandir.texi: Renamed from
39997         doc/glibc-functions/scandir.texi.
39998         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39999         doc/glibc-functions/sched_get_priority_min.texi.
40000         * doc/posix-functions/signgam.texi: Renamed from
40001         doc/glibc-functions/signgam.texi.
40002         * doc/posix-functions/stpcpy.texi: Renamed from
40003         doc/glibc-functions/stpcpy.texi.
40004         * doc/posix-functions/stpncpy.texi: Renamed from
40005         doc/glibc-functions/stpncpy.texi.
40006         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40007         doc/glibc-functions/strcasecmp_l.texi.
40008         * doc/posix-functions/strcoll_l.texi: Renamed from
40009         doc/glibc-functions/strcoll_l.texi.
40010         * doc/posix-functions/strfmon_l.texi: Renamed from
40011         doc/glibc-functions/strfmon_l.texi.
40012         * doc/posix-functions/strftime_l.texi: Renamed from
40013         doc/glibc-functions/strftime_l.texi.
40014         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40015         doc/glibc-functions/strncasecmp_l.texi.
40016         * doc/posix-functions/strndup.texi: Renamed from
40017         doc/glibc-functions/strndup.texi.
40018         * doc/posix-functions/strnlen.texi: Renamed from
40019         doc/glibc-functions/strnlen.texi.
40020         * doc/posix-functions/strsignal.texi: Renamed from
40021         doc/glibc-functions/strsignal.texi.
40022         * doc/posix-functions/strxfrm_l.texi: Renamed from
40023         doc/glibc-functions/strxfrm_l.texi.
40024         * doc/posix-functions/timer_gettime.texi: Renamed from
40025         doc/glibc-functions/timer_gettime.texi.
40026         * doc/posix-functions/tolower_l.texi: Renamed from
40027         doc/glibc-functions/tolower_l.texi.
40028         * doc/posix-functions/toupper_l.texi: Renamed from
40029         doc/glibc-functions/toupper_l.texi.
40030         * doc/posix-functions/towctrans_l.texi: Renamed from
40031         doc/glibc-functions/towctrans_l.texi.
40032         * doc/posix-functions/towlower_l.texi: Renamed from
40033         doc/glibc-functions/towlower_l.texi.
40034         * doc/posix-functions/towupper_l.texi: Renamed from
40035         doc/glibc-functions/towupper_l.texi.
40036         * doc/posix-functions/uselocale.texi: Renamed from
40037         doc/glibc-functions/uselocale.texi.
40038         * doc/posix-functions/vdprintf.texi: Renamed from
40039         doc/glibc-functions/vdprintf.texi.
40040         * doc/posix-functions/wcpcpy.texi:
40041         Renamed from doc/glibc-functions/wcpcpy.texi.
40042         * doc/posix-functions/wcpncpy.texi: Renamed from
40043         doc/glibc-functions/wcpncpy.texi.
40044         * doc/posix-functions/wcscasecmp.texi: Renamed from
40045         doc/glibc-functions/wcscasecmp.texi.
40046         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40047         doc/glibc-functions/wcscasecmp_l.texi.
40048         * doc/posix-functions/wcscoll_l.texi: Renamed from
40049         doc/glibc-functions/wcscoll_l.texi.
40050         * doc/posix-functions/wcsdup.texi: Renamed from
40051         doc/glibc-functions/wcsdup.texi.
40052         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40053         doc/glibc-functions/wcsncasecmp.texi.
40054         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40055         doc/glibc-functions/wcsncasecmp_l.texi.
40056         * doc/posix-functions/wcsnlen.texi: Renamed from
40057         doc/glibc-functions/wcsnlen.texi.
40058         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40059         doc/glibc-functions/wcsnrtombs.texi.
40060         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40061         doc/glibc-functions/wcsxfrm_l.texi.
40062         * doc/posix-functions/wctrans_l.texi: Renamed from
40063         doc/glibc-functions/wctrans_l.texi.
40064         * doc/posix-functions/wctype_l.texi: Renamed from
40065         doc/glibc-functions/wctype_l.texi.
40066         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40067         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40068         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40069         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40070         these subsections.
40071         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40072         Remove sections.
40073
40074 2008-12-14  Bruno Haible  <bruno@clisp.org>
40075
40076         Update doc for POSIX:2008.
40077         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40078
40079 2008-12-14  Bruno Haible  <bruno@clisp.org>
40080
40081         Update doc for POSIX:2008.
40082         * doc/pastposix-functions/bcmp.texi: Renamed from
40083         doc/posix-functions/bcmp.texi.
40084         * doc/pastposix-functions/bcopy.texi: Renamed from
40085         doc/posix-functions/bcopy.texi.
40086         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40087         doc/posix-functions/bsd_signal.texi.
40088         * doc/pastposix-functions/bzero.texi: Renamed from
40089         doc/posix-functions/bzero.texi.
40090         * doc/pastposix-functions/ecvt.texi: Renamed from
40091         doc/posix-functions/ecvt.texi.
40092         * doc/pastposix-functions/fcvt.texi: Renamed from
40093         doc/posix-functions/fcvt.texi.
40094         * doc/pastposix-functions/ftime.texi: Renamed from
40095         doc/posix-functions/ftime.texi.
40096         * doc/pastposix-functions/gcvt.texi: Renamed from
40097         doc/posix-functions/gcvt.texi.
40098         * doc/pastposix-functions/getcontext.texi: Renamed from
40099         doc/posix-functions/getcontext.texi.
40100         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40101         doc/posix-functions/gethostbyaddr.texi.
40102         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40103         doc/posix-functions/gethostbyname.texi.
40104         * doc/pastposix-functions/getwd.texi: Renamed from
40105         doc/posix-functions/getwd.texi.
40106         * doc/pastposix-functions/h_errno.texi: Renamed from
40107         doc/posix-functions/h_errno.texi.
40108         * doc/pastposix-functions/index.texi: Renamed from
40109         doc/posix-functions/index.texi.
40110         * doc/pastposix-functions/makecontext.texi: Renamed from
40111         doc/posix-functions/makecontext.texi.
40112         * doc/pastposix-functions/mktemp.texi: Renamed from
40113         doc/posix-functions/mktemp.texi.
40114         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40115         doc/posix-functions/pthread_attr_getstackaddr.texi.
40116         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40117         doc/posix-functions/pthread_attr_setstackaddr.texi.
40118         * doc/pastposix-functions/rindex.texi: Renamed from
40119         doc/posix-functions/rindex.texi.
40120         * doc/pastposix-functions/scalb.texi: Renamed from
40121         doc/posix-functions/scalb.texi.
40122         * doc/pastposix-functions/setcontext.texi: Renamed from
40123         doc/posix-functions/setcontext.texi.
40124         * doc/pastposix-functions/swapcontext.texi: Renamed from
40125         doc/posix-functions/swapcontext.texi.
40126         * doc/pastposix-functions/ualarm.texi: Renamed from
40127         doc/posix-functions/ualarm.texi.
40128         * doc/pastposix-functions/usleep.texi: Renamed from
40129         doc/posix-functions/usleep.texi.
40130         * doc/pastposix-functions/vfork.texi: Renamed from
40131         doc/posix-functions/vfork.texi.
40132         * doc/pastposix-functions/wcswcs.texi: Renamed from
40133         doc/posix-functions/wcswcs.texi.
40134         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40135         (Function Substitutes): Update.
40136
40137 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40138
40139         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40140         m4/strerror.m4.
40141
40142 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40143             Bruno Haible  <bruno@clisp.org>
40144
40145         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40146
40147 2008-12-13  Bruno Haible  <bruno@clisp.org>
40148
40149         * modules/strtoull (Depends-on): Remove unistd.
40150
40151 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40152
40153         * modules/strtoull (Depends-on): Add stdlib.
40154
40155 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40156
40157         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40158
40159 2008-12-10  Jim Meyering  <meyering@redhat.com>
40160
40161         gl_ASSERT: don't say assertions are disabled when they're not
40162         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40163         "checking whether to enable assertions... no", when they are in
40164         fact enabled.  This is solely a bug in the output of configure.
40165         In spite of saying "no", NDEBUG was not defined in that case.
40166         Also, as noted by Eric Blake, leave assertions enabled upon
40167         --enable-assert=INVALID.
40168
40169 2008-12-10  Bruno Haible  <bruno@clisp.org>
40170
40171         Change MODULES.html to refer to POSIX:2008 where possible.
40172         * MODULES.html.sh (POSIX2008_URL): New variable.
40173         (posix_headers): Remove sys/timeb, ucontext.
40174         (posix2001_headers): New variable.
40175         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40176         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40177         index, makecontext, mktemp, pthread_attr_getstackaddr,
40178         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40179         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40180         (posix2001_functions): New variable.
40181         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40182         otherwise.
40183
40184 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40185
40186         add missing include to parse-duration.c
40187         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40188         * modules/parse-duration (Depends-on): Add xalloc.
40189
40190         fix sed script reading maint.mk
40191         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40192         (syntax-check-rules): Use it.
40193
40194 2008-12-09  Bruno Haible  <bruno@clisp.org>
40195
40196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40197         MacOS X 10.4/PowerPC.
40198         Reported by Simon Josefsson.
40199
40200 2008-12-08  Jim Meyering  <meyering@redhat.com>
40201
40202         work around mingw's lack of some S_IF definitions
40203         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40204         Reported by Simon Josefsson.
40205
40206 2008-12-08  Bruno Haible  <bruno@clisp.org>
40207
40208         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40209         applied to variables. Needed on MacOS X 10.4/PowerPC.
40210         Reported by Simon Josefsson.
40211
40212 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40213         and Eric Blake  <ebb9@byu.net>
40214
40215         assert: honor --enable-assert
40216         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40217         order to honor --enable-assert, rather than treating it as a
40218         synonym for --disable-assert.
40219
40220 2008-12-08  Jim Meyering  <meyering@redhat.com>
40221
40222         * lib/posixtm.c: Remove now-useless declaration of mktime.
40223
40224         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40225
40226 2008-12-07  Bruno Haible  <bruno@clisp.org>
40227
40228         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40229         test_once): Mark functions as static.
40230         * tests/test-tls.c (test_tls): Likewise.
40231
40232 2008-12-07  Bruno Haible  <bruno@clisp.org>
40233
40234         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40235         iconv_register_autodetect.
40236
40237 2008-12-07  Jim Meyering  <meyering@redhat.com>
40238
40239         posixtm.c: avoid a warning
40240         * lib/posixtm.c (posixtime): Don't initialize tm0.
40241         It's no longer needed to placate gcc4's -Wuninitialized,
40242         and the attempt to placate would elicit a new warning.
40243
40244         unicodeio.c: mark unused parameters
40245         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40246         (fallback_failure_callback): Likewise.
40247
40248 2008-12-07  Bruno Haible  <bruno@clisp.org>
40249
40250         * gnulib-tool (func_create_testdir): When building the tests
40251         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40252         Reported by Simon Josefsson.
40253
40254 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40255
40256         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40257
40258 2008-12-06  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40261         Suggested by Eric Blake.
40262
40263 2008-12-06  Bruno Haible  <bruno@clisp.org>
40264
40265         Fix a c-stack test failure on MacOS X.
40266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40267         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40268         handler for SIGBUS as well.
40269         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40270         install a signal handler for SIGBUS as well.
40271         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40272
40273 2008-12-06  Bruno Haible  <bruno@clisp.org>
40274
40275         Advocacy documentation.
40276         * doc/gnulib-intro.texi (Benefits): New section.
40277         * doc/gnulib.texi: Update.
40278
40279 2008-12-06  Bruno Haible  <bruno@clisp.org>
40280
40281         Document the 'manywarnings' module.
40282         * doc/manywarnings.texi: New file.
40283         * doc/gnulib.texi: Include it.
40284
40285 2008-12-05  Eric Blake  <ebb9@byu.net>
40286
40287         tests: silence some gcc warnings
40288         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40289         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40290         type mismatches.
40291
40292 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40293             Bruno Haible  <bruno@clisp.org>
40294
40295         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40296
40297 2008-11-29  Jim Meyering  <meyering@redhat.com>
40298
40299         unicodeio.c: mark unused parameters
40300         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40301         (fallback_failure_callback): Likewise.
40302
40303         fts: fix a thinko
40304         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40305         (set_stat_type): Return S_IF*-valued "type" directly.
40306         Prompted by James Youngman's spotting a related bug.
40307         Confirmed by further testing through find.
40308
40309         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40310         * lib/fts.c (D_TYPE): Define.
40311         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40312         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40313         (s_ifmt_shift_bits): New function.
40314         (set_stat_type): New function.
40315         (fts_build): When not calling fts_stat, call set_stat_type
40316         to propagate dirent.d_type info to fts_read caller.
40317         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40318         fts_statp->st_mode type information may be valid.
40319
40320 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40321
40322         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40323         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40324         <sds@gnu.org>.
40325
40326 2008-11-20  Bruno Haible  <bruno@clisp.org>
40327
40328         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40329         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40330         INCLUDE_NEXT.
40331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40332         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40333         * modules/math (Makefile.am): Substitute
40334         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40336
40337 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40338             Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/stdint.in.h: Define all type macros so that their expansion is
40341         a single typedef'ed token. Fixes a compilation failure in Boost which
40342         does "using ::int8_t;".
40343
40344 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40345
40346         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40347         gl_MANYWARN_ALL_GCC.
40348         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40349         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40350         * modules/manywarnings: New file.
40351         * MODULES.html.sh: Mention manywarnings module.
40352
40353 2008-11-18  Bruno Haible  <bruno@clisp.org>
40354
40355         * doc/gnulib-tool.texi (Unit tests): New section.
40356
40357 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40358
40359         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40360         paths like 'lib/po/foo.po'.
40361
40362 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40363
40364         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40365         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40366
40367 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40368
40369         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40370         parameter works.
40371
40372 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40373
40374         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40375
40376 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40377
40378         * modules/parse-duration-tests: New file.
40379         * tests/test-parse-duration.sh: New file.
40380         * tests/test-parse-duration.c: New file.
40381
40382         New module 'parse-duration'.
40383         * lib/parse-duration.h: New file.
40384         * lib/parse-duration.c: New file.
40385         * modules/parse-duration: New file.
40386
40387 2008-11-17  Bruno Haible  <bruno@clisp.org>
40388
40389         * tests/test-select-out.sh: Comment out the first pipe test.
40390         Reported by Simon Josefsson.
40391
40392 2008-11-17  Bruno Haible  <bruno@clisp.org>
40393
40394         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40396         gl_HOSTENT.
40397
40398 2008-11-17  Bruno Haible  <bruno@clisp.org>
40399
40400         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40401         -lnetwork and -lnet. Needed for Haiku and BeOS.
40402
40403 2008-11-16  Bruno Haible  <bruno@clisp.org>
40404
40405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40406
40407 2008-11-16  Bruno Haible  <bruno@clisp.org>
40408
40409         Avoid test failure on Haiku.
40410         * tests/test-fsync.c: Include <errno.h>.
40411         (main): Don't require that fsync (0) fails.
40412
40413 2008-11-15  Bruno Haible  <bruno@clisp.org>
40414
40415         New module 'hostent'.
40416         * modules/hostent: New file.
40417         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40418
40419 2008-11-15  Bruno Haible  <bruno@clisp.org>
40420
40421         New module 'servent'.
40422         * modules/servent: New file.
40423         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40424
40425 2008-11-15  Bruno Haible  <bruno@clisp.org>
40426
40427         Avoid generating same test program with two different rules.
40428         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40429         test-frexp to test-frexp-nolibm.
40430         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40431         test-frexpl to test-frexpl-nolibm.
40432
40433 2008-11-15  Bruno Haible  <bruno@clisp.org>
40434
40435         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40436         $(FREXPL_LIBM).
40437
40438 2008-11-15  Bruno Haible  <bruno@clisp.org>
40439
40440         * lib/netdb.in.h: Activate the definitions also when the system's
40441         <netdb.h> has 'struct addrinfo'.
40442         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40443         EAI_OVERFLOW or AI_NUMERICSERV.
40444         * doc/posix-headers/netdb.texi: Document the problem.
40445
40446 2008-11-15  Bruno Haible  <bruno@clisp.org>
40447
40448         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40449
40450         Make the 'sched' module work on platforms where <sched.h> exists but
40451         is incomplete (such as Haiku).
40452         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40453         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40454         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40455         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40456         HAVE_STRUCT_SCHED_PARAM.
40457         * modules/sched (Depends-on): Add include_next.
40458         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40459         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40460         * doc/posix-headers/sched.texi: Document the issue.
40461
40462 2008-11-13  Jim Meyering  <meyering@redhat.com>
40463
40464         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40465         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40466         test would fail due to the difference in the Report bugs to ...
40467         line.  The expected address is empty, "<>", while the actual
40468         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40469
40470 2008-11-12  Bruno Haible  <bruno@clisp.org>
40471
40472         lstat: don't compile lstat.c on systems lacking lstat
40473         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40474         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40475         Reported by Daniel P. Berrange via Jim Meyering.
40476
40477 2008-11-12  Jim Meyering  <meyering@redhat.com>
40478
40479         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40480
40481 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40482
40483         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40484         instead.
40485
40486 2008-11-12  Bruno Haible  <bruno@clisp.org>
40487
40488         * lib/unicodeio.c: Include unistr.h.
40489         (utf8_wctomb): Remove function.
40490         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40491
40492 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40493
40494         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40495         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40496         <bruno@clisp.org>.
40497         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40498
40499 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40500
40501         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40502         * doc/gnulib.texi: Add section for warnings.
40503
40504 2008-11-11  Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/sockets.h: Add a comment.
40507
40508 2008-11-11  Karl Berry  <karl@gnu.org>
40509
40510         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40511
40512 2008-11-11  Eric Blake  <ebb9@byu.net>
40513
40514         fdl.texi: avoid git symlinks
40515         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40516
40517 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40518
40519         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40520
40521 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40522
40523         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40524         (gl_WARN_ADD): Substitute $2 if literal.
40525
40526 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40527
40528         * m4/warning.m4: Remove.
40529
40530 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40531
40532         * m4/warnings.m4: Almost complete rewrite. :-)
40533
40534 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40535
40536         * modules/warnings: New module.
40537         * m4/warnings.m4: New file.
40538         * MODULES.html.sh: Mention warnings module.
40539         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40540         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40541
40542 2008-11-10  Eric Blake  <ebb9@byu.net>
40543
40544         fdl.texi: make a symlink to the latest version
40545         * doc/standards.texi: Revert today's earlier change.
40546         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40547         * doc/fdl.texi: ...and replace this with a symlink to the newer
40548         fdl-1.3.texi.
40549
40550 2008-11-10  Bruno Haible  <bruno@clisp.org>
40551
40552         * tests/test-select-fd.c (main): Accept the result file name as fourth
40553         argument.
40554         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40555         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40556
40557 2008-11-10  Bruno Haible  <bruno@clisp.org>
40558
40559         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40560         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40561         as autoconf-substituted macros.
40562         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40563         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40564         gl_NETDB_H_DEFAULTS. Set these variables.
40565         * modules/netdb (Makefile.am): Substitute these variables.
40566
40567 2008-11-10  Eric Blake  <ebb9@byu.net>
40568
40569         standards.texi: include correct file for FDL 1.3
40570         * doc/standards.texi (GNU Free Documentation License): Change
40571         include file to pull in FDL 1.3, not 1.2.
40572
40573         fdl.texi: revert accidental change to license
40574         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40575
40576 2008-11-10  Bruno Haible  <bruno@clisp.org>
40577
40578         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40579         cross-compiling guesses also when the native compile gives no result.
40580
40581 2008-11-10  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/spawni.c (__spawni): Force variable into the stack.
40584
40585 2008-11-10  Bruno Haible  <bruno@clisp.org>
40586
40587         Add support for Haiku.
40588         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40589         glibc and BeOS, but also on Haiku.
40590         * lib/fpurge.c (fpurge): Likewise.
40591         * lib/freadable.c (freadable): Likewise.
40592         * lib/freadahead.c (freadahead): Likewise.
40593         * lib/freading.c (freading): Likewise.
40594         * lib/freadptr.c (freadptr): Likewise.
40595         * lib/freadseek.c (freadptrinc): Likewise.
40596         * lib/fseeko.c (rpl_fseeko): Likewise.
40597         * lib/fseterr.c (fseterr): Likewise.
40598         * lib/fwritable.c (fwritable): Likewise.
40599         * lib/fwriting.c (fwriting): Likewise.
40600         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40601
40602 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40603
40604         * lib/config.charset: Treat Haiku like BeOS.
40605
40606 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40607
40608         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40609         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40610
40611 2008-11-08  Bruno Haible  <bruno@clisp.org>
40612
40613         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40614         AC_CACHE_CHECK.
40615
40616 2008-11-08  Bruno Haible  <bruno@clisp.org>
40617
40618         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40619
40620 2008-11-08  Bruno Haible  <bruno@clisp.org>
40621
40622         * tests/test-select-fd.c: New file.
40623         * tests/test-select-in.sh: New file.
40624         * tests/test-select-out.sh: New file.
40625         * tests/test-select-stdin.c: New file.
40626         * modules/select-tests (Files): Add the new files.
40627         (Depends-on): Add gettimeofday.
40628         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40629         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40630         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40631
40632 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40633             Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40636
40637 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40638
40639         * build-aux/pmccabe2html: Added support for C++ source files.
40640
40641 2008-11-05  Ben Pfaff  <blp@gnu.org>
40642
40643         Fix lib/close.c build on Windows.
40644         * modules/close (Files): Add lib/w32sock.h.
40645
40646 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40647
40648         Accept Bison's NEWS format.
40649         * build-aux/announce-gen (print_news_deltas): Tweak
40650         $re_prefix.
40651
40652 2008-11-04  Bruno Haible  <bruno@clisp.org>
40653
40654         * modules/random_r (Maintainer): Add glibc.
40655
40656 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40657
40658         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40659         by karl@freefriends.org (Karl Berry).
40660         * doc/alloca.texi: Likewise.
40661         * doc/c-ctype.texi: Likewise.
40662         * doc/c-strcase.texi: Likewise.
40663         * doc/c-strcaseeq.texi: Likewise.
40664         * doc/c-strcasestr.texi: Likewise.
40665         * doc/c-strstr.texi: Likewise.
40666         * doc/c-strtod.texi: Likewise.
40667         * doc/c-strtold.texi: Likewise.
40668         * doc/ctime.texi: Likewise.
40669         * doc/error.texi: Likewise.
40670         * doc/fdl.texi: Likewise.
40671         * doc/gcd.texi: Likewise.
40672         * doc/getdate.texi: Likewise.
40673         * doc/gnulib-intro.texi: Likewise.
40674         * doc/gnulib-tool.texi: Likewise.
40675         * doc/gnulib.texi: Likewise.
40676         * doc/inet_ntoa.texi: Likewise.
40677         * doc/maintain.texi: Likewise.
40678         * doc/make-stds.texi: Likewise.
40679         * doc/quote.texi: Likewise.
40680         * doc/regexprops-generic.texi: Likewise.
40681         * doc/standards.texi: Likewise.
40682         * doc/verify.texi: Likewise.
40683         * doc/visibility.texi: Likewise.
40684         * doc/gnulib.texi (GNU Free Documentation License): Include
40685         fdl-1.3.texi instead of fdl.texi.
40686
40687 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40688
40689         * doc/fdl-1.3.texi: New file, from
40690         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40691         * modules/fdl-1.3: Add.
40692         * MODULES.html.sh: Add fdl-1.3.
40693
40694 2008-11-03  Bruno Haible  <bruno@clisp.org>
40695
40696         Make determination of absolute name of header file work with AIX xlc.
40697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40698         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40699         preprocessing.
40700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40701         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40702
40703 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40704
40705         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40706         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40707         <ludo@gnu.org>.
40708
40709 2008-11-02  Bruno Haible  <bruno@clisp.org>
40710
40711         Mark 'strpbrk' obsolete.
40712         * modules/strpbrk (Status, Notice): New sections.
40713         * modules/strtok_r (Depends-on): Add strpbrk.
40714
40715 2008-11-02  Bruno Haible  <bruno@clisp.org>
40716
40717         Mark 'strdup' obsolete.
40718         * modules/strdup (Status, Notice): New sections.
40719         * modules/findprog (Depends-on): Add strdup.
40720         * modules/getaddrinfo (Depends-on): Likewise.
40721         * modules/localename (Depends-on): Likewise.
40722         * modules/relocatable-lib (Depends-on): Likewise.
40723         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40724         * modules/relocatable-prog (Depends-on): Likewise.
40725         * modules/trim (Depends-on): Likewise.
40726         * modules/unictype/gen-ctype (Depends-on): Likewise.
40727         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40728
40729 2008-11-02  Bruno Haible  <bruno@clisp.org>
40730
40731         Mark 'strcspn' obsolete.
40732         * modules/strcspn (Status, Notice): New sections.
40733
40734 2008-11-02  Bruno Haible  <bruno@clisp.org>
40735
40736         Mark 'rmdir' obsolete.
40737         * modules/rmdir (Status, Notice): New sections.
40738         * modules/clean-temp (Depends-on): Add rmdir.
40739         * modules/openat (Depends-on): Likewise.
40740
40741 2008-11-02  Bruno Haible  <bruno@clisp.org>
40742
40743         Mark 'raise' obsolete.
40744         * modules/raise (Status, Notice): New sections.
40745         (Include): Specify <signal.h>.
40746         * modules/stdio (Depends-on): Add raise.
40747         * modules/write (Depends-on): Likewise.
40748
40749 2008-11-02  Bruno Haible  <bruno@clisp.org>
40750
40751         Mark 'memset' obsolete.
40752         * modules/memset (Status, Notice): New sections.
40753
40754 2008-11-02  Bruno Haible  <bruno@clisp.org>
40755
40756         Mark 'memmove' obsolete.
40757         * modules/memmove (Status, Notice): New sections.
40758         * modules/argp (Depends-on): Add memmove.
40759         * modules/argz (Depends-on): Likewise.
40760         * modules/canonicalize (Depends-on): Likewise.
40761         * modules/canonicalize-lgpl (Depends-on): Likewise.
40762         * modules/fts (Depends-on): Likewise.
40763         * modules/getcwd (Depends-on): Likewise.
40764         * modules/human (Depends-on): Likewise.
40765         * modules/regex (Depends-on): Likewise.
40766         * modules/striconveh (Depends-on): Likewise.
40767         * modules/trim (Depends-on): Likewise.
40768         * modules/unistr/u8-move (Depends-on): Likewise.
40769         * modules/unistr/u16-move (Depends-on): Likewise.
40770         * modules/unistr/u32-move (Depends-on): Likewise.
40771
40772 2008-11-02  Bruno Haible  <bruno@clisp.org>
40773
40774         Mark 'memcpy' obsolete.
40775         * modules/memcpy (Status, Notice): New sections.
40776
40777 2008-11-02  Bruno Haible  <bruno@clisp.org>
40778
40779         Mark 'memcmp' obsolete.
40780         * modules/memcmp (Status, Notice): New sections.
40781         * modules/argmatch (Depends-on): Add memchr.
40782         * modules/backupfile (Depends-on): Likewise.
40783         * modules/c-strcasestr (Depends-on): Likewise.
40784         * modules/crypto/des (Depends-on): Likewise.
40785         * modules/csharpcomp (Depends-on): Likewise.
40786         * modules/fnmatch (Depends-on): Likewise.
40787         * modules/git-merge-changelog (Depends-on): Likewise.
40788         * modules/isnand (Depends-on): Likewise.
40789         * modules/isnand-nolibm (Depends-on): Likewise.
40790         * modules/isnanf (Depends-on): Likewise.
40791         * modules/isnanf-nolibm (Depends-on): Likewise.
40792         * modules/isnanl (Depends-on): Likewise.
40793         * modules/isnanl-nolibm (Depends-on): Likewise.
40794         * modules/mbchar (Depends-on): Likewise.
40795         * modules/memcoll (Depends-on): Likewise.
40796         * modules/quotearg (Depends-on): Likewise.
40797         * modules/regex (Depends-on): Likewise.
40798         * modules/relocatable-prog (Depends-on): Likewise.
40799         * modules/same (Depends-on): Likewise.
40800         * modules/signbit (Depends-on): Likewise.
40801         * modules/strcasestr-simple (Depends-on): Likewise.
40802         * modules/unictype/gen-ctype (Depends-on): Likewise.
40803         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40804         * modules/uniname/uniname (Depends-on): Likewise.
40805         * modules/unistr/u8-cmp (Depends-on): Likewise.
40806
40807 2008-11-02  Bruno Haible  <bruno@clisp.org>
40808
40809         Mark 'memchr' obsolete.
40810         * modules/memchr (Status, Notice): New sections.
40811         * modules/argp (Depends-on): Add memchr.
40812         * modules/base64 (Depends-on): Likewise.
40813         * modules/c-strcasestr (Depends-on): Likewise.
40814         * modules/chdir-long (Depends-on): Likewise.
40815         * modules/fnmatch (Depends-on): Likewise.
40816         * modules/getsubopt (Depends-on): Likewise.
40817         * modules/git-merge-changelog (Depends-on): Likewise.
40818         * modules/glob (Depends-on): Likewise.
40819         * modules/strcasestr-simple (Depends-on): Likewise.
40820         * modules/strnlen (Depends-on): Likewise.
40821
40822 2008-11-02  Bruno Haible  <bruno@clisp.org>
40823
40824         Mark 'atexit' obsolete.
40825         * modules/atexit (Status, Notice): New sections.
40826         * modules/chdir-long (Depends-on): Add atexit.
40827         * modules/wait-process (Depends-on): Likewise.
40828
40829 2008-11-02  Bruno Haible  <bruno@clisp.org>
40830
40831         * gnulib-tool: New option --with-obsolete.
40832         (func_usage): Document it.
40833         (func_modules_transitive_closure): Drop obsolete dependencies if
40834         incobsolete is not true.
40835         (func_import): Read and save the incobsolete variable to the cache.
40836
40837 2008-11-02  Bruno Haible  <bruno@clisp.org>
40838
40839         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40840         * gnulib-tool: New option --extract-status.
40841         (func_usage): Document it.
40842         (sed_extract_prog): Recognize it.
40843         (func_get_status): New function.
40844
40845 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40846
40847         * modules/sockets (License): Change from LGPL to LGPLv2+.
40848
40849 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40850
40851         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40852
40853 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40854
40855         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40856         Mention times and sys_times.
40857         * modules/sys_times, modules/sys_times-tests: New modules.
40858         * modules/times, modules/times-tests: Likewise
40859         * m4/sys_times_h.m4: New file.
40860         * lib/sys_times.in.h: Likewise
40861         * lib/times.c: Likewise.
40862         * tests/test-sys_times.c: Likewise.
40863         * tests/test-times.c: Likewise.
40864         * doc/posix-headers/sys_times.texi: Update.
40865         * doc/posix-functions/times.texi: Update.
40866
40867 2008-10-28  Jim Meyering  <meyering@redhat.com>
40868
40869         * modules/tempname (Depends-on): Add lstat.
40870
40871         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40872
40873 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40874
40875         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40876         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40877         using idiom used elsewhere in gnulib.
40878
40879 2008-10-27  Jim Meyering  <meyering@redhat.com>
40880
40881         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40882
40883 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40884
40885         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40886         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40887         programs.
40888         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40889
40890 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40891
40892         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40893
40894 2008-10-27  Bruno Haible  <bruno@clisp.org>
40895
40896         * tests/test-lstat.c: Include <stdio.h>.
40897
40898 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40899
40900         * modules/lstat-tests: New module.
40901         * tests/test-lstat.c: New file.
40902
40903 2008-10-26  Jim Meyering  <meyering@redhat.com>
40904
40905         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40906
40907 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40908             Bruno Haible  <bruno@clisp.org>
40909
40910         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40911         * modules/configmake (Include): Add a note that the include must come
40912         after all system headers.
40913         * lib/javaversion.c: Include configmake.h after all other includes.
40914
40915 2008-10-26  Bruno Haible  <bruno@clisp.org>
40916
40917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40918         HAVE_STRUCT_RANDOM_DATA to 1.
40919         (gl_STDLIB_H): Simplify.
40920
40921 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40922
40923         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40924         substitute HAVE_STRUCT_RANDOM_DATA.
40925         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40926         random_data.
40927         * modules/stdlib (Makefile.am): Substitute
40928         HAVE_STRUCT_RANDOM_DATA.
40929
40930 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40931
40932         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40933         * doc/gnulib-intro.texi (Copyright): Likewise.
40934
40935 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40936
40937         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40938         findings.
40939
40940 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40941             Bruno Haible  <bruno@clisp.org>
40942
40943         * lib/unistd.in.h: Include <winsock2.h>.
40944         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40945         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40946         Provide dummy declarations.
40947         (gethostname): Override.
40948         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40949         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40950         gl_PREREQ_SYS_H_WINSOCK2.
40951         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40952         * doc/posix-functions/gethostname.texi: More details.
40953
40954 2008-10-25  Bruno Haible  <bruno@clisp.org>
40955
40956         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40957         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40958         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40959
40960         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40961         here ...
40962         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40963         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40964         gl_UNISTD_H_DEFAULTS.
40965
40966 2008-10-25  Eric Blake  <ebb9@byu.net>
40967
40968         signbit: avoid spurious compiler failure
40969         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40970         declarations inside function.
40971
40972 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40973             Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40976         * modules/random_r (Depends-on): Add stdint.
40977
40978 2008-10-24  Bruno Haible  <bruno@clisp.org>
40979
40980         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40981         Eggert.
40982         * modules/strerror (License): Likewise.
40983
40984 2008-10-24  Jim Meyering  <meyering@redhat.com>
40985
40986         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40987         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40988
40989 2008-10-24  Eric Blake  <ebb9@byu.net>
40990
40991         getgroups: fix compilation when getgroups is available
40992         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40993         but with <config.h> override of getgroups disabled.
40994
40995 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40996
40997         * doc/gnulib.texi (Header files): Add note about C++ problems.
40998         Explained by Bruno Haible <bruno@clisp.org>.
40999
41000 2008-10-23  Bruno Haible  <bruno@clisp.org>
41001
41002         Define a dummy SA_NODEFER macro on Interix.
41003         * lib/signal.in.h (SA_NODEFER): Define fallback.
41004         Reported by Aleksey Cheusov <cheusov@tut.by> via
41005         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41006
41007 2008-10-23  Bruno Haible  <bruno@clisp.org>
41008
41009         * modules/freadahead (License): Change to LGPLv2+.
41010         Suggested by Simon Josefsson.
41011
41012 2008-10-23  Jim Meyering  <meyering@redhat.com>
41013
41014         random_r: new module
41015         * modules/random_r: New file.
41016         * m4/random_r.m4: New file.
41017         * lib/random_r.c: New file, from glibc.
41018         * modules/random_r-tests: New file.
41019         * tests/test-random_r.c: New file.
41020         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41021          Declare.
41022         (RAND_MAX): Define.
41023         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41024         * modules/stdlib: Substitute them, too.
41025         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41026         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41027         * doc/glibc-functions/random_r.texi: Likewise.
41028         * doc/glibc-functions/setstate_r.texi: Likewise.
41029         * doc/glibc-functions/srandom_r.texi: Likewise.
41030         * config/srclist.txt: Mention it.
41031
41032 2008-10-23  David Lutterkort  <lutter@redhat.com>
41033
41034         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41035         link requirement
41036
41037 2008-10-23  Jim Meyering  <meyering@redhat.com>
41038
41039         selinux-h: mark parameters of stub functions as intentionally unused
41040         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41041         * lib/se-context.in.h: Likewise.
41042
41043 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41044
41045         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41046
41047 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41048
41049         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41050
41051 2008-10-22  Eric Blake  <ebb9@byu.net>
41052
41053         glthread/thread: avoid compiler warning
41054         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41055         Add unreachable abort to silence compiler.
41056
41057 2008-10-22  Eric Blake  <ebb9@byu.net>
41058
41059         netdb: also supply struct addrinfo for cygwin 1.5.x
41060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41061         older cygwin.
41062         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41063         cygwin.
41064         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41065
41066 2008-10-22  Bruno Haible  <bruno@clisp.org>
41067
41068         * users.txt: Update entry about pspp.
41069
41070 2008-10-21  Bruno Haible  <bruno@clisp.org>
41071
41072         Simplification.
41073         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41074         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41075
41076         Simplification.
41077         * lib/ioctl.c (ioctl): Don't undefine.
41078         * lib/socket.c (socket): Don't undefine.
41079
41080         Remove unused module indicator macros.
41081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41082         GNULIB_$1 as a C macro.
41083
41084         * doc/posix-functions/close.texi: Undo last change.
41085         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41086         Windows platforms.
41087
41088 2008-10-21  Bruno Haible  <bruno@clisp.org>
41089
41090         Add gethostname() declaration to <unistd.h>.
41091         * lib/unistd.in.h (gethostname): New declaration.
41092         * lib/gethostname.c: Include <unistd.h>.
41093         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41094         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41096         and HAVE_GETHOSTNAME.
41097         * modules/gethostname (Depends-on): Add unistd.
41098         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41099         (Include): Specify <unistd.h>.
41100         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41101         HAVE_GETHOSTNAME.
41102         * tests/test-gethostname.c: Include <unistd.h> first.
41103
41104 2008-10-21  Bruno Haible  <bruno@clisp.org>
41105
41106         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41107         * modules/select-tests (Depends-on): Likewise.
41108         Reported by Simon Josefsson.
41109
41110 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41111
41112         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41113         * lib/accept.c: New file, based on winsock.c.
41114         * lib/bind.c: New file, based on winsock.c.
41115         * lib/connect.c: New file, based on winsock.c.
41116         * lib/getpeername.c: New file, based on winsock.c.
41117         * lib/getsockname.c: New file, based on winsock.c.
41118         * lib/getsockopt.c: New file, based on winsock.c.
41119         * lib/ioctl.c: New file, based on winsock.c.
41120         * lib/listen.c: New file, based on winsock.c.
41121         * lib/recv.c: New file, based on winsock.c.
41122         * lib/recvfrom.c: New file, based on winsock.c.
41123         * lib/send.c: New file, based on winsock.c.
41124         * lib/sendto.c: New file, based on winsock.c.
41125         * lib/setsockopt.c: New file, based on winsock.c.
41126         * lib/shutdown.c: New file, based on winsock.c.
41127         * lib/socket.c: New file, based on winsock.c.
41128         * lib/w32sock.h: New file, based on winsock.c.
41129         * lib/winsock.c: Remove file.
41130         * modules/accept: Likewise.
41131         * modules/bind: Likewise.
41132         * modules/connect: Likewise.
41133         * modules/getpeername: Likewise.
41134         * modules/getsockname: Likewise.
41135         * modules/getsockopt: Likewise.
41136         * modules/ioctl: Likewise.
41137         * modules/listen: Likewise.
41138         * modules/recv: Likewise.
41139         * modules/recvfrom: Likewise.
41140         * modules/send: Likewise.
41141         * modules/sendto: Likewise.
41142         * modules/setsockopt: Likewise.
41143         * modules/shutdown: Likewise.
41144         * modules/socket: Use socket.c instead of winsock.c.
41145         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41146         * doc/posix-functions/accept.texi: Doc fix.
41147         * doc/posix-functions/bind.texi: Doc fix.
41148         * doc/posix-functions/close.texi: Doc fix.
41149         * doc/posix-functions/connect.texi: Doc fix.
41150         * doc/posix-functions/getpeername.texi: Doc fix.
41151         * doc/posix-functions/getsockname.texi: Doc fix.
41152         * doc/posix-functions/getsockopt.texi: Doc fix.
41153         * doc/posix-functions/ioctl.texi: Doc fix.
41154         * doc/posix-functions/listen.texi: Doc fix.
41155         * doc/posix-functions/recv.texi: Doc fix.
41156         * doc/posix-functions/recvfrom.texi: Doc fix.
41157         * doc/posix-functions/send.texi: Doc fix.
41158         * doc/posix-functions/sendto.texi: Doc fix.
41159         * doc/posix-functions/setsockopt.texi: Doc fix.
41160         * doc/posix-functions/shutdown.texi: Doc fix.
41161         * doc/posix-functions/socket.texi: Doc fix.
41162
41163 2008-10-20  Bruno Haible  <bruno@clisp.org>
41164
41165         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41166         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41167         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41168         as an alias for SIGABRT.
41169         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41170         (sigaction): Map it to SIGABRT.
41171         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41172
41173 2008-10-20  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/fts.c: Don't include lstat.h.
41176         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41177
41178         Move the lstat() declaration to <sys/stat.h>.
41179         * lib/lstat.h: Remove file.
41180         * lib/sys_stat.in.h: Add special invocation convention.
41181         (lstat): New declaration.
41182         * lib/lstat.c (orig_lstat): New function.
41183         (rpl_lstat): Use orig_lstat instead of lstat.
41184         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41185         AC_C_INLINE. Set REPLACE_LSTAT.
41186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41187         and REPLACE_LSTAT.
41188         * modules/lstat (Files): Remove lib/lstat.h.
41189         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41190         (Include): Specify <sys/stat.h> instead of lstat.h.
41191         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41192         REPLACE_LSTAT.
41193         * NEWS: Mention the change.
41194
41195 2008-10-20  Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/posix_spawn-tests: New file.
41198         * tests/test-posix_spawn3.c: New file.
41199
41200 2008-10-20  Bruno Haible  <bruno@clisp.org>
41201
41202         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41203         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41204         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41205         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41206         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41207
41208 2008-10-20  Bruno Haible  <bruno@clisp.org>
41209
41210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41211         of posix_spawn on AIX 5.3.
41212
41213 2008-10-20  Bruno Haible  <bruno@clisp.org>
41214
41215         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41216
41217 2008-10-20  Bruno Haible  <bruno@clisp.org>
41218
41219         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41220         of AC_LANG_PROGRAM.
41221
41222 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41223
41224         * lib/netdb.in.h: Don't define GNU specific constants until they
41225         are supported or needed.  Reported by Bruno Haible
41226         <bruno@clisp.org>.
41227
41228 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41229
41230         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41231
41232 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41233
41234         * lib/getaddrinfo.h: Remove file.
41235         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41236         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41237         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41238         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41239         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41240         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41241         * tests/test-getaddrinfo.c: Likewise.
41242         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41243         * NEWS: Mention change.
41244
41245 2008-10-19  Bruno Haible  <bruno@clisp.org>
41246
41247         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41248
41249 2008-10-19  Bruno Haible  <bruno@clisp.org>
41250
41251         * lib/wait-process.c: Include simply <sys/wait.h>.
41252         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41253         WIFSTOPPED): Remove fallback definitions.
41254         * modules/wait-process (Depends-on): Add sys_wait.
41255
41256         New module 'sys_wait'.
41257         * modules/sys_wait: New file.
41258         * lib/sys_wait.in.h: New file, partially copied from
41259         lib/wait-process.c.
41260         * m4/sys_wait_h.m4: New file.
41261         * doc/posix-headers/sys_wait.texi: Mention the new module.
41262
41263 2008-10-19  Bruno Haible  <bruno@clisp.org>
41264
41265         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41266
41267 2008-10-19  Bruno Haible  <bruno@clisp.org>
41268
41269         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41270         * lib/wait-process.c (WAIT_T): Remove type.
41271         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41272         (wait_subprocess): Update.
41273
41274 2008-10-19  Bruno Haible  <bruno@clisp.org>
41275
41276         New module 'atoll'.
41277         * modules/atoll: New file.
41278         * lib/stdlib.in.h (atoll): New declaration.
41279         * lib/atoll.c: New file, from glibc with modifications.
41280         * m4/atoll.m4: New file.
41281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41282         HAVE_ATOLL.
41283         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41284         * doc/posix-functions/atoll.texi: Mention the new module.
41285
41286 2008-10-19  Bruno Haible  <bruno@clisp.org>
41287
41288         Add strtoull() declaration to <stdlib.h>.
41289         * lib/stdlib.in.h (strtoull): New declaration.
41290         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41291         Set HAVE_STRTOULL.
41292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41293         HAVE_STRTOULL.
41294         * modules/strtoull (Depends-on): Add stdlib.
41295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41296         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41297         HAVE_STRTOULL.
41298
41299 2008-10-19  Bruno Haible  <bruno@clisp.org>
41300
41301         Add strtoll() declaration to <stdlib.h>.
41302         * lib/stdlib.in.h (strtoll): New declaration.
41303         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41304         Set HAVE_STRTOLL.
41305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41306         HAVE_STRTOLL.
41307         * modules/strtoll (Depends-on): Add stdlib.
41308         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41309         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41310
41311 2008-10-19  Bruno Haible  <bruno@clisp.org>
41312
41313         * modules/bcopy (Depends-on): Add strings.
41314         (Include): Specify <strings.h>.
41315
41316 2008-10-19  Bruno Haible  <bruno@clisp.org>
41317
41318         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41319
41320 2008-10-19  Bruno Haible  <bruno@clisp.org>
41321
41322         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41323         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41324         mingw.
41325
41326 2008-10-19  Bruno Haible  <bruno@clisp.org>
41327
41328         * lib/atanl.c: Don't include isnanl.h.
41329         * lib/cosl.c: Likewise.
41330         * lib/ldexpl.c: Likewise.
41331         * lib/logl.c: Likewise.
41332         * lib/sinl.c: Likewise.
41333         * lib/sqrtl.c: Likewise.
41334         * lib/tanl.c: Likewise.
41335
41336         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41337         * lib/isnanf.h: Remove file.
41338         * lib/isnand.h: Remove file.
41339         * lib/isnanl.h: Remove file.
41340         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41341         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41342         macros.
41343         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41344         HAVE_ISNANF, don't define it as a C macro.
41345         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41346         HAVE_ISNAND, don't define it as a C macro.
41347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41348         HAVE_ISNANL, don't define it as a C macro.
41349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41350         HAVE_ISNAN[FDL].
41351         * modules/isnanf (Files): Remove lib/isnanf.h.
41352         (Depends-on): Add math.
41353         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41354         (Include): Specify <math.h> instead of isnanf.h.
41355         * modules/isnand (Files): Remove lib/isnand.h.
41356         (Depends-on): Add math.
41357         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41358         (Include): Specify <math.h> instead of isnand.h.
41359         * modules/isnanl (Files): Remove lib/isnanl.h.
41360         (Depends-on): Add math.
41361         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41362         (Include): Specify <math.h> instead of isnanl.h.
41363         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41364         HAVE_ISNAN[FDL].
41365         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41366         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41367         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41368         * NEWS: Mention the change.
41369
41370 2008-10-18  Bruno Haible  <bruno@clisp.org>
41371
41372         Add getusershell(), setusershell(), endusershell() declarations to
41373         <unistd.h>.
41374         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41375         declarations.
41376         * lib/getusershell.c: Include unistd.h.
41377         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41378         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41379         HAVE_GETUSERSHELL.
41380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41381         and HAVE_GETUSERSHELL.
41382         * modules/getusershell (Depends-on): Add unistd, extensions.
41383         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41384         (Include): Specify <unistd.h>.
41385         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41386         HAVE_GETUSERSHELL.
41387
41388 2008-10-18  Bruno Haible  <bruno@clisp.org>
41389
41390         Add a getloadavg() declaration to <stdlib.h>.
41391         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41392         getloadavg declaration.
41393         (getloadavg): New declaration.
41394         * lib/getloadavg.c: Include <stdlib.h> first.
41395         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41396         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41397         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41399         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41400         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41402         (Include): Specify <stdlib.h>.
41403         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41404         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41405
41406 2008-10-18  Bruno Haible  <bruno@clisp.org>
41407
41408         * lib/dirchownmod.c: Don't include lchmod.h.
41409
41410         Move the lchmod() declaration to <sys/stat.h>.
41411         * lib/lchmod.h: Remove file.
41412         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41413         (lchmod): New declaration, moved here from lib/lchown.h.
41414         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41415         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41417         and HAVE_LCHMOD.
41418         * modules/lchmod (Files): Remove lib/lchmod.h.
41419         (Depends-on): Add sys_stat, extensions.
41420         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41421         (Include): Specify <sys/stat.h> instead of lchmod.h.
41422         * modules/sys_stat (Depends-on): Add link-warning.
41423         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41424         definition of GL_LINK_WARNING.
41425         * NEWS: Mention the change.
41426
41427 2008-10-18  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/fchdir.c: Don't include dirfd.h.
41430         * lib/fts.c: Likewise.
41431         * lib/getcwd.c: Likewise.
41432         * lib/glob.c: Likewise.
41433
41434         Move the dirfd() declaration to <dirent.h>.
41435         * lib/dirfd.h: Remove file.
41436         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41437         (dirfd): New declaration.
41438         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41439         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41440         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41441         HAVE_DECL_DIRFD.
41442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41443         HAVE_DECL_DIRFD.
41444         * modules/dirfd (Files): Remove lib/dirfd.h.
41445         (Depends-on): Add dirent, extensions.
41446         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41447         (Include): Specify <dirent.h> instead of dirfd.h.
41448         * modules/dirent (Depends-on): Add link-warning.
41449         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41450         definition of GL_LINK_WARNING.
41451         * NEWS: Mention the change.
41452
41453 2008-10-18  Bruno Haible  <bruno@clisp.org>
41454
41455         Move the euidaccess() declaration to <unistd.h>.
41456         * lib/euidaccess.h: Remove file.
41457         * lib/unistd.in.h (euidaccess): New declaration.
41458         * lib/euidaccess.c: Don't include euidaccess.h.
41459         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41460         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41462         and HAVE_EUIDACCESS.
41463         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41464         (Depends-on): Add unistd.
41465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41466         (Include): Specify <unistd.h> instead of euidaccess.h.
41467         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41468         HAVE_EUIDACCESS.
41469         * NEWS: Mention the change.
41470
41471 2008-10-18  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41474
41475         Move the getdomainname() declaration to <unistd.h>.
41476         * lib/getdomainname.h: Remove file.
41477         * lib/unistd.in.h (getdomainname): New declaration.
41478         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41479         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41480         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41481         HAVE_GETDOMAINNAME.
41482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41483         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41484         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41485         (Depends-on): Add unistd, extensions.
41486         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41487         (Includes): Specify <unistd.h> instead of getdomainname.h.
41488         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41489         HAVE_GETDOMAINNAME.
41490         * NEWS: Mention the change.
41491
41492 2008-10-18  Bruno Haible  <bruno@clisp.org>
41493
41494         * modules/dirent: New file.
41495         * m4/dirent_h.m4: New file.
41496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41497         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41498         * modules/fchdir (Files): Remove lib/dirent.in.h.
41499         (Depends-on): Add dirent.
41500         (Makefile.am): Move rules to modules/dirent.
41501         * doc/posix-headers/dirent.texi: Mention the new module.
41502
41503 2008-10-18  Bruno Haible  <bruno@clisp.org>
41504
41505         Avoid -Wunused-parameter warnings in public gnulib header files.
41506         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41507         macro.
41508         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41509
41510 2008-10-18  Bruno Haible  <bruno@clisp.org>
41511
41512         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41513         * doc/glibc-functions/error.texi: Mention the module 'error'.
41514         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41515         * doc/glibc-functions/getdomainname.texi: Mention the module
41516         'getdomainname'.
41517         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41518         * doc/glibc-functions/getpagesize.texi: Mention the module
41519         'getpagesize'.
41520         * doc/glibc-functions/getusershell.texi: Mention the module
41521         'getusershell'.
41522         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41523         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41524         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41525         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41526         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41527         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41528         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41529         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41530         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41531         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41532         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41533         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41534         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41535         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41536
41537 2008-10-17  Bruno Haible  <bruno@clisp.org>
41538
41539         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41540         HP-UX and IRIX, use -0.0L.
41541         * tests/test-ceill.c (minus_zero): Likewise.
41542         * tests/test-floorl.c (minus_zero): Likewise.
41543         * tests/test-frexpl.c (minus_zero): Likewise.
41544         * tests/test-isnan.c (minus_zerol): Likewise.
41545         * tests/test-isnanl.h (minus_zero): Likewise.
41546         * tests/test-ldexpl.c (minus_zero): Likewise.
41547         * tests/test-roundl.c (minus_zero): Likewise.
41548         * tests/test-signbit.c (minus_zerol): Likewise.
41549         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41550         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41551         * tests/test-truncl.c (minus_zero): Likewise.
41552         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41553         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41554         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41555         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41556
41557 2008-10-17  Bruno Haible  <bruno@clisp.org>
41558
41559         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41560         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41561         that it gets activated only for gcc >= 3.0.
41562         * lib/dirent.in.h: Likewise.
41563         * lib/errno.in.h: Likewise.
41564         * lib/fcntl.in.h: Likewise.
41565         * lib/float.in.h: Likewise.
41566         * lib/iconv.in.h: Likewise.
41567         * lib/inttypes.in.h: Likewise.
41568         * lib/locale.in.h: Likewise.
41569         * lib/math.in.h: Likewise.
41570         * lib/netdb.in.h: Likewise.
41571         * lib/netinet_in.in.h: Likewise.
41572         * lib/search.in.h: Likewise.
41573         * lib/signal.in.h: Likewise.
41574         * lib/spawn.in.h: Likewise.
41575         * lib/stdarg.in.h: Likewise.
41576         * lib/stdint.in.h: Likewise.
41577         * lib/stdio.in.h: Likewise.
41578         * lib/stdlib.in.h: Likewise.
41579         * lib/string.in.h: Likewise.
41580         * lib/strings.in.h: Likewise.
41581         * lib/sys_file.in.h: Likewise.
41582         * lib/sys_ioctl.in.h: Likewise.
41583         * lib/sys_select.in.h: Likewise.
41584         * lib/sys_socket.in.h: Likewise.
41585         * lib/sys_stat.in.h: Likewise.
41586         * lib/sys_time.in.h: Likewise.
41587         * lib/sysexits.in.h: Likewise.
41588         * lib/time.in.h: Likewise.
41589         * lib/unistd.in.h: Likewise.
41590         * lib/wchar.in.h: Likewise.
41591         * lib/wctype.in.h: Likewise.
41592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41593
41594 2008-10-17  Jim Meyering  <meyering@redhat.com>
41595
41596         ignore-value: don't depend on inline module
41597         * modules/ignore-value (Depends-on): Remove 'inline'.
41598         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41599         Suggestion from Bruno Haible.
41600
41601 2008-10-17  Bruno Haible  <bruno@clisp.org>
41602
41603         New implementation of condition variables for Win32.
41604         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41605         (gl_linked_waitqueue_t): New type.
41606         (gl_cond_t): Use it.
41607         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41608         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41609         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41610         (glthread_cond_init_func, glthread_cond_wait_func,
41611         glthread_cond_timedwait_func, glthread_cond_signal_func,
41612         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41613         Reimplemented on the basis of gl_linked_waitqueue_t.
41614         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41615         gl_waitqueue_t.
41616         (gl_rwlock_t): Update.
41617         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41618
41619 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41620
41621         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41622         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41623
41624 2008-10-17  Jim Meyering  <meyering@redhat.com>
41625
41626         ignore-value: new module
41627         * modules/ignore-value: New file.
41628         * lib/ignore-value.h: New file.
41629         * MODULES.html.sh (Compiler warning management): New section,
41630         just for this module.  More to come.
41631
41632 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41633
41634         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41635         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41636         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41637
41638 2008-10-16  Jim Meyering  <meyering@redhat.com>
41639
41640         openat-die.c: avoid 'no previous prototype' warning
41641         * lib/openat-die.c: Include "openat.h".
41642         Reported by Reuben Thomas <rrt@sc3d.org>.
41643
41644 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41645
41646         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41647         * lib/netdb.in.h: Fix typo.
41648         Reported by Bruno Haible  <bruno@clisp.org>
41649
41650         * lib/netdb.in.h: Include sys/socket.h for platforms without
41651         netdb.h, to get structures like hostent on MinGW.
41652         * modules/netdb (Depends-on): Add sys_socket.
41653
41654 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41655
41656         * modules/netdb, modules/netdb-tests: New file.
41657         * m4/netdb_h.m4: New file.
41658         * lib/netdb.in.h: Add, currently just an empty file pending
41659         definitions.
41660         * tests/test-netdb.c: New file.
41661         * doc/posix-headers/netdb.texi: Mention that we replace it if
41662         needed.
41663         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41664         netdb.
41665
41666 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41667
41668         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41669         with code.
41670
41671 2008-10-13  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/glthread/cond.c (glthread_cond_wait_func,
41674         glthread_cond_timedwait_func): Add a comment.
41675
41676 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41677
41678         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41679         * tests/test-select.c: Likewise,
41680
41681 2008-10-13  Bruno Haible  <bruno@clisp.org>
41682
41683         * lib/glthread/cond.c (glthread_cond_wait_func,
41684         glthread_cond_timedwait_func): Fix variable name.
41685         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41686
41687 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41688
41689         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41690         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41691         struct sockaddr.sa_len.
41692         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41693
41694 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41695
41696         * build-aux/pmccabe2html: Add css and css_url parameters.
41697
41698 2008-10-12  Bruno Haible  <bruno@clisp.org>
41699
41700         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41701         calling aclx_get.
41702         Reported by Rainer Tammer <tammer@tammer.net>.
41703
41704 2008-10-12  Bruno Haible  <bruno@clisp.org>
41705
41706         Use msvcrt aware primitives for creation/termination of Win32 threads.
41707         * lib/glthread/thread.c: Include <process.h>.
41708         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41709         (wrapper_func): Update signature.
41710         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41711
41712 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41713             Bruno Haible  <bruno@clisp.org>
41714
41715         Provide a Win32 implementation of the 'cond' module.
41716         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41717         * lib/glthread/cond.c (glthread_cond_init_func,
41718         glthread_cond_wait_func, glthread_cond_timedwait_func,
41719         glthread_cond_signal_func, glthread_cond_broadcast_func,
41720         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41721         * modules/cond (Dependencies): Add gettimeofday.
41722
41723 2008-10-11  Bruno Haible  <bruno@clisp.org>
41724
41725         Make sleep work on older versions of mingw.
41726         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41727         only whether it exists.
41728         * doc/posix-functions/sleep.texi: Mention the problem with older
41729         versions of mingw.
41730
41731 2008-10-11  Bruno Haible  <bruno@clisp.org>
41732
41733         New module 'shutdown'.
41734         * modules/shutdown: New file.
41735         * lib/sys_socket.in.h (shutdown): New declaration.
41736         * lib/winsock.c (shutdown): New function.
41737         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41738         GNULIB_SHUTDOWN.
41739         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41740         * doc/posix-functions/shutdown.texi: Document the new module.
41741
41742 2008-10-11  Jim Meyering  <meyering@redhat.com>
41743
41744         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41745
41746 2008-10-11  Bruno Haible  <bruno@clisp.org>
41747
41748         New module 'fclose'.
41749         * modules/fclose: New file.
41750         * lib/stdio.in.h (fclose): New declaration.
41751         * lib/fclose.c: New file.
41752         * m4/fclose.m4: New file.
41753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41754         REPLACE_FCLOSE.
41755         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41756         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41757         REPLACE_FCLOSE.
41758         * modules/close (Depends-on): fclose.
41759         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41760
41761 2008-10-11  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41764         set errno and don't call _close.
41765
41766 2008-10-10  Bruno Haible  <bruno@clisp.org>
41767
41768         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41769         ACL, not afterwards. Fixes test failure on Cygwin.
41770
41771 2008-10-09  Ben Pfaff  <blp@gnu.org>
41772
41773         * build-aux/announce-gen: Fix gnulib version related part of usage
41774         message.  Die with a useful error message if no tarballs are
41775         found.
41776
41777 2008-10-10  Jim Meyering  <meyering@redhat.com>
41778
41779         bootstrap: use git's --depth=N option only if it's supported
41780         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41781         recognize the --depth option.  Reported by Pádraig Brady.
41782
41783 2008-10-09  Bruno Haible  <bruno@clisp.org>
41784
41785         New module 'ioctl'.
41786         * modules/ioctl: New file.
41787         * lib/sys_socket.in.h (ioctl): Remove declaration.
41788         * lib/winsock.c: Include <sys/ioctl.h>.
41789         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41790         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41791         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41792         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41793         * doc/posix-functions/ioctl.texi: Mention the new module.
41794
41795 2008-10-09  Bruno Haible  <bruno@clisp.org>
41796
41797         New module 'sys_ioctl'.
41798         * lib/sys_ioctl.in.h: New file.
41799         * m4/sys_ioctl_h.m4: New file.
41800         * modules/sys_ioctl: New file.
41801         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41802
41803 2008-10-09  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41806         * lib/winsock.c: Include <stdarg.h>.
41807         (rpl_ioctl): Change to second argument 'int' and then varargs.
41808
41809 2008-10-09  Bruno Haible  <bruno@clisp.org>
41810
41811         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41812         when the sys_socket module is present and the system has <winsock2.h>.
41813
41814 2008-10-09  Bruno Haible  <bruno@clisp.org>
41815
41816         * doc/posix-functions/close.texi: Mention module 'close' instead of
41817         module 'sys_socket'.
41818
41819 2008-10-09  Bruno Haible  <bruno@clisp.org>
41820
41821         * doc/glibc-headers/sys_ioctl.texi: New file.
41822         * doc/gnulib.texi: Include it.
41823
41824 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41825             Bruno Haible  <bruno@clisp.org>
41826
41827         Combine the two replacements of 'close'.
41828         * lib/sys_socket.in.h (close): Define to a reminder to include
41829         <unistd.h>.
41830         (_gl_close_fd_maybe_socket): New declaration.
41831         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41832         * lib/winsock.c (close): Remove undefinition.
41833         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41834         needed for the gnulib module 'close'.
41835         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41836         define to an error symbol or to a warning, if suitable.
41837         * lib/close.c: Include <sys/socket.h>.
41838         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41839         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41840         UNISTD_H_HAVE_WINSOCK2_H.
41841         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41843         UNISTD_H_HAVE_WINSOCK2_H.
41844         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41845         (configure.ac): Set a module indicator.
41846         (Makefile.am): Substitute GNULIB_CLOSE.
41847         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41848         * modules/poll-tests (Depends-on): Add close.
41849         * modules/select-tests (Depends-on): Likewise.
41850
41851 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41852             Bruno Haible  <bruno@clisp.org>
41853
41854         New module 'close'.
41855         * modules/close: New file.
41856         * lib/unistd.in.h (close): Move declaration out of the
41857         FCHDIR_REPLACEMENT scope.
41858         (_gl_unregister_fd): New declaration.
41859         * lib/close.c: New file.
41860         * lib/fchdir.c (rpl_close): Remove function.
41861         * m4/close.m4: New file.
41862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41863         close.
41864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41865         REPLACE_CLOSE.
41866         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41867         REPLACE_CLOSE.
41868         * modules/fchdir (Depends-on): Add close.
41869
41870 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41871             Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/fcntl.in.h (open): Simplify conditionals.
41874         (_gl_register_fd): New declaration.
41875         * lib/fchdir.c (rpl_open): Remove function.
41876         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41877         also.
41878         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41880         open.
41881
41882 2008-10-09  Jim Meyering  <meyering@redhat.com>
41883
41884         GNUmakefile: use the more name-space-friendly "_version"
41885         * top/GNUmakefile (_dummy): Update.
41886         (_version): Rename from "version".
41887
41888 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41889             Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41892         rpl_close.
41893         (_gl_register_fd): New function, extracted from rpl_open.
41894         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41895         (rpl_open, rpl_opendir): Use _gl_register_fd.
41896
41897 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41898
41899         Fix organization of 'open' replacement.
41900         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41901         (gl_FUNC_OPEN): Use it.
41902         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41903
41904 2008-10-08  Bruno Haible  <bruno@clisp.org>
41905
41906         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41907
41908 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41909
41910         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41911         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41912         listen).
41913
41914 2008-10-08  Eric Blake  <ebb9@byu.net>
41915
41916         GNUmakefile: add 'make version' target
41917         * top/GNUmakefile (_curr-ver): Split version update rules...
41918         (version): ...into a target.
41919
41920 2008-10-07  Bruno Haible  <bruno@clisp.org>
41921
41922         Use a more portable replacement expression for -0.0L.
41923         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41924         instead of -0.0L. Fix m4 quotation.
41925
41926         * tests/test-signbit.c: Include <float.h>.
41927         (minus_zero): New variable.
41928         (test_signbitl): Use minus_zero instead of -zero.
41929         * modules/signbit-tests (Depends-on): Add float.
41930
41931         * tests/test-ceill.c: Include <float.h>.
41932         (zero): Remove variable.
41933         (minus_zero): New variable.
41934         (main): Use minus_zero instead of -zero.
41935         * modules/ceill-tests (Depends-on): Add float.
41936
41937         * tests/test-floorl.c: Include <float.h>.
41938         (zero): Remove variable.
41939         (minus_zero): New variable.
41940         (main): Use minus_zero instead of -zero.
41941         * modules/floorl-tests (Depends-on): Add float.
41942
41943         * tests/test-roundl.c: Include <float.h>.
41944         (zero): Remove variable.
41945         (minus_zero): New variable.
41946         (main): Use minus_zero instead of -zero.
41947         * modules/roundl-tests (Depends-on): Add float.
41948
41949         * tests/test-truncl.c: Include <float.h>.
41950         (zero): Remove variable.
41951         (minus_zero): New variable.
41952         (main): Use minus_zero instead of -zero.
41953         * modules/truncl-tests (Depends-on): Add float.
41954
41955         * tests/test-frexpl.c (zero): Remove variable.
41956         (minus_zero): New variable.
41957         (main): Use minus_zero instead of -zero.
41958         * modules/frexpl-tests (Depends-on): Add float.
41959
41960         * tests/test-isnan.c (zerol): Remove variable.
41961         (minus_zerol): New variable.
41962         (test_long_double): Use minus_zerol instead of -zerol.
41963         * modules/isnan-tests (Depends-on): Add float.
41964
41965         * tests/test-isnanl.h (zero): Remove variable.
41966         (minus_zero): New variable.
41967         (main): Use minus_zero instead of -zero.
41968         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41969         * modules/isnanl-tests (Depends-on): Add float.
41970
41971         * tests/test-ldexpl.c (zero): Remove variable.
41972         (minus_zero): New variable.
41973         (main): Use minus_zero instead of -zero.
41974         * modules/ldexpl-tests (Depends-on): Add float.
41975
41976         * tests/test-snprintf-posix.h (zerol): Remove variable.
41977         (minus_zerol): New variable.
41978         (test_function): Use minus_zerol instead of -zerol.
41979         * modules/snprintf-posix-tests (Depends-on): Add float.
41980         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41981
41982         * tests/test-sprintf-posix.h (zerol): Remove variable.
41983         (minus_zerol): New variable.
41984         (test_function): Use minus_zerol instead of -zerol.
41985         * modules/sprintf-posix-tests (Depends-on): Add float.
41986         * modules/vsprintf-posix-tests (Depends-on): Add float.
41987
41988         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41989         (minus_zerol): New variable.
41990         (test_function): Use minus_zerol instead of -zerol.
41991         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41992
41993         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41994         (minus_zerol): New variable.
41995         (test_function): Use minus_zerol instead of -zerol.
41996         * modules/vasprintf-posix-tests (Depends-on): Add float.
41997
41998 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41999
42000         * MODULES.html.sh (Support for building documentation): Mention
42001         pmccabe2html.  Sort entries.
42002
42003         Add pmccabe2html module, from gnupdf.
42004         * build-aux/pmccabe.css: New file.
42005         * build-aux/pmccabe2html: New file.
42006         * m4/pmccabe2html.m4: New file.
42007         * modules/pmccabe2html: New file.
42008
42009 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42010
42011         flock: new module
42012         * MODULES.html.sh: Add to list of modules.
42013         * lib/flock.c: flock implementation for Windows and Unix systems
42014         which have fcntl.
42015         * doc/glibc-functions/flock.texi: Update documentation.
42016         * lib/sys_file.in.h: <sys/file.h> header file.
42017         * m4/flock.m4: M4 macros.
42018         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42019         * modules/flock: flock module.
42020         * modules/flock-tests: flock tests module.
42021         * modules/sys_file: sys/file.h module.
42022         * tests/test-flock.c: test suite for flock.
42023
42024 2008-10-06  Jim Meyering  <meyering@redhat.com>
42025
42026         bootstrap: check for LT_INIT more portably still ;-)
42027         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42028         Spotted by Bruno Haible.
42029
42030 2008-10-06  Eric Blake  <ebb9@byu.net>
42031
42032         test-signbit: avoid tripping Irix cc bug on -0.0L
42033         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42034         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42035         entire testsuite consistent and avoids an Irix 6.2 bug.
42036
42037 2008-10-05  Bruno Haible  <bruno@clisp.org>
42038             Jim Meyering  <jim@meyering.net>
42039
42040         Add an option for ignoring EPIPE during close_stdout.
42041         * lib/closeout.h: Include <stdbool.h>.
42042         (close_stdout_set_ignore_EPIPE): New declaration.
42043         * lib/closeout.c: Include <stdbool.h>.
42044         (ignore_EPIPE): New variable.
42045         (close_stdout_set_ignore_EPIPE): New function.
42046         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42047         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42048         failure.
42049         * modules/closeout (Depends-on): Add stdbool.
42050
42051 2008-10-05  Bruno Haible  <bruno@clisp.org>
42052
42053         * modules/accept: New file.
42054         * modules/bind: New file.
42055         * modules/connect: New file.
42056         * modules/getpeername: New file.
42057         * modules/getsockname: New file.
42058         * modules/getsockopt: New file.
42059         * modules/listen: New file.
42060         * modules/recv: New file.
42061         * modules/recvfrom: New file.
42062         * modules/send: New file.
42063         * modules/sendto: New file.
42064         * modules/setsockopt: New file.
42065         * modules/socket: New file.
42066         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42067         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42068         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42069         the particular module is requested. Add a link warning when the
42070         particular module is not requested.
42071         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42072         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42073         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42074         the particular module is requested.
42075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42076         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42077         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42078         * modules/sys_socket (Depends-on): Add link-warning.
42079         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42080         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42081         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42082         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42083         GL_LINK_WARNING.
42084         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42085         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42086         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42087         * doc/posix-functions/getpeername.texi: Mention the new module
42088         'getpeername'.
42089         * doc/posix-functions/getsockname.texi: Mention the new module
42090         'getsockname'.
42091         * doc/posix-functions/getsockopt.texi: Mention the new module
42092         'getsockopt'.
42093         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42094         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42095         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42096         * doc/posix-functions/send.texi: Mention the new module 'send'.
42097         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42098         * doc/posix-functions/setsockopt.texi: Mention the new module
42099         'setsockopt'.
42100         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42101         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42102         listen, connect, accept.
42103         * modules/select-tests (Depends-on): Likewise.
42104
42105 2008-10-05  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/winsock.c (strerror): Remove unused #undef.
42108         (rpl_close): Remove unused local variable.
42109
42110         * modules/sys_socket (Depends-on); Add errno.
42111
42112 2008-10-05  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42115         (select): Add a link warning when the 'select' module is not used.
42116         * modules/sys_select (Depends-on): Add link-warning.
42117         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42118         Suggested by Paolo Bonzini.
42119
42120 2008-10-05  Jim Meyering  <meyering@redhat.com>
42121
42122         bootstrap: check for LT_INIT more portably
42123         * build-aux/bootstrap: Avoid using grep -E, since it's not
42124         portable enough.  Suggestion from Bruno Haible.
42125
42126 2008-10-05  Bruno Haible  <bruno@clisp.org>
42127
42128         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42129         as being fixed by gnulib.
42130
42131 2008-10-05  Bruno Haible  <bruno@clisp.org>
42132
42133         * modules/select-tests: New file, mostly copied from
42134         modules/sys_select-tests.
42135         * tests/test-select.c: New file, mostly copied from
42136         tests/test-sys_select.c.
42137         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42138         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42139         (Makefile.am): Remove test_sys_select_LDADD.
42140
42141         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42142         to an undefined symbol, for an error message.
42143         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42144         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42145         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42146         winsock-select.c here.
42147         * modules/sys_select (Files): Remove lib/winsock-select.c.
42148         (Depends-on): Remove alloca.
42149         (Makefile.am): Substitute GNULIB_SELECT.
42150         * modules/select: New file.
42151         * doc/posix-functions/select.texi: Update.
42152
42153 2008-10-05  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42156         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42157         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42158         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42159         getdtablesize.
42160         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42161         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42162
42163 2008-10-05  Bruno Haible  <bruno@clisp.org>
42164
42165         * modules/getdtablesize-tests: New file.
42166         * tests/test-getdtablesize.c: New file.
42167
42168         New module 'getdtablesize'.
42169         * lib/unistd.in.h (getdtablesize): New declaration.
42170         * lib/getdtablesize.c: New file.
42171         * m4/getdtablesize.m4: New file.
42172         * modules/getdtablesize: New file.
42173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42174         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42175         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42176         HAVE_GETDTABLESIZE.
42177         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42178
42179 2008-10-05  Bruno Haible  <bruno@clisp.org>
42180
42181         * modules/sched (Makefile.am): Fix typo.
42182         Reported by Simon Josefsson.
42183
42184 2008-10-05  Jim Meyering  <meyering@redhat.com>
42185
42186         bootstrap: check for LT_INIT, too
42187         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42188         are deprecated.  Suggestion from Ralf Wildenhues.
42189
42190 2008-10-05  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42193         overriding them by ours.
42194         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42195
42196 2008-10-05  Jim Meyering  <meyering@redhat.com>
42197
42198         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42199         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42200         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42201
42202 2008-10-04  Bruno Haible  <bruno@clisp.org>
42203
42204         * modules/dup2 (License): Change to LGPLv2+.
42205         * modules/sleep (License): Likewise.
42206         * modules/perror (License): Likewise.
42207         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42208         Blake.
42209         * modules/signal (License): Likewise.
42210         * modules/sigprocmask (License): Likewise.
42211         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42212         Meyering.
42213
42214 2008-10-04  Bruno Haible  <bruno@clisp.org>
42215
42216         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42217         Reported by Rainer Tammer <tammer@tammer.net>.
42218
42219 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42220             Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42223         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42224         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42225
42226 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42227
42228         filevercmp: new module
42229         * lib/filevercmp.h: New function filevercmp comparing version strings.
42230         * lib/filevercmp.c: Implementation of filevercmp function.
42231         * modules/filevercmp: Module metadata.
42232         * tests/test-filevercmp.c: Unit test for new module.
42233         * modules/filevercmp-tests: Unit test metadata.
42234         * MODULES.html.sh: Add filevercmp module.
42235
42236 2008-10-03  Bruno Haible  <bruno@clisp.org>
42237
42238         * lib/c-ctype.h: Add comment.
42239         Reported by Jim Meyering.
42240
42241 2008-10-02  Bruno Haible  <bruno@clisp.org>
42242
42243         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42244
42245 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42246
42247         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42248         name of bootstrap.conf accordingly.
42249
42250 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42251
42252         * build-aux/bootstrap: Install git-merge-changelog configuration
42253         items into .gitconfig if needed.
42254
42255 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42256
42257         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42258         git repository, and initialize/update it accordingly.
42259
42260 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42261
42262         * modules/fsync-tests: New file.
42263         * tests/test-fsync.c: New file.
42264
42265         New module 'fsync'.
42266         * lib/fsync.c: New file.
42267         * m4/fsync.m4: New file.
42268         * modules/fsync: New file.
42269         * lib/unistd.in.h (fsync): New declaration.
42270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42271         GNULIB_FSYNC and HAVE_FSYNC.
42272         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42273         * MODULES.html.sh (posix_functions): Add fsync.
42274         * doc/posix-functions/fsync.texi: Mention the new module.
42275
42276 2008-10-02  Jim Meyering  <meyering@redhat.com>
42277
42278         fts.c: sync with similar code from coreutils' remove.c
42279         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42280         Guard also with "#if defined __linux__", since for now at least,
42281         this code is Linux-kernel-specific.
42282
42283 2008-10-02  Jim Meyering  <meyering@redhat.com>
42284
42285         fts: bug fixes
42286         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42287         Include <sys/vfs.h>, not <sys/statfs.h>.
42288
42289         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42290         Include <sys/vfs.h>, not <sys/statfs.h>.
42291
42292 2008-10-01  Bruno Haible  <bruno@clisp.org>
42293
42294         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42295         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42296         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42297         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42298         * doc/posix-functions/posix_spawnp.texi: Likewise.
42299         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42300         whether posix_spawn actually works.
42301         * m4/pipe.m4 (gl_PIPE): Likewise.
42302         * modules/execute (Files): Add m4/posix_spawn.m4.
42303         * modules/pipe (Files): Add m4/posix_spawn.m4.
42304         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42305
42306 2008-10-01  Jim Meyering  <meyering@redhat.com>
42307
42308         remove trailing spaces
42309         * NEWS: Likewise.
42310         * lib/poll.c (poll): Likewise.
42311         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42312         * lib/winsock.c (rpl_close): Likewise.
42313         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42314         * modules/yield: Likewise.
42315         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42316         * tests/test-sys_select.c (connect_to_socket): Likewise.
42317
42318         fts.c: adjust a new interface to be more generally useful
42319         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42320         (fts_build): Adjust caller.
42321
42322 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42323
42324         * modules/cond-tests: New file.
42325         * tests/test-cond.c: New file.
42326
42327 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42328             Bruno Haible  <bruno@clisp.org>
42329
42330         * modules/cond (Dependencies): Add errno, time.
42331         * lib/glthread/cond.h: Include <time.h>.
42332         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42333         across platforms.
42334
42335 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42336             Bruno Haible  <bruno@clisp.org>
42337
42338         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42339
42340 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42341             Bruno Haible  <bruno@clisp.org>
42342
42343         * modules/tls-tests (Depends-on): Add thread, yield.
42344         (configure.ac): Remove all checks.
42345         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42346         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42347         gl_thread_self): Remove definitions. Include glthread/thread.h and
42348         glthread/yield.h instead.
42349         (test_tls): Pass an additional NULL argument to gl_thread_join.
42350
42351 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42352             Bruno Haible  <bruno@clisp.org>
42353
42354         * modules/lock-tests (Depends-on): Add thread, yield.
42355         (configure.ac): Remove all checks.
42356         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42357         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42358         gl_thread_self): Remove definitions. Include glthread/thread.h and
42359         glthread/yield.h instead.
42360         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42361         additional NULL argument to gl_thread_join.
42362
42363 2008-09-30  Bruno Haible  <bruno@clisp.org>
42364
42365         Fix the Win32 implementation of the 'thread' module.
42366         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42367         pointer type.
42368         (gl_thread_self): Invoke gl_thread_self_func.
42369         (gl_thread_self_func): New declaration.
42370         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42371         (do_init_self_key, init_self_key): New functions.
42372         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42373         Remove some fields.
42374         (running_threads, running_lock): Remove variables.
42375         (get_current_thread_handle): New function.
42376         (gl_thread_self_func, wrapper_func, glthread_create_func,
42377         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42378         simplified.
42379
42380 2008-09-30  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42383         files.
42384
42385 2008-09-30  Jim Meyering  <meyering@redhat.com>
42386
42387         fts.m4: correct the test for statfs.f_type
42388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42389         when checking for statfs.f_type.
42390
42391 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42392
42393         tests: avoid some compiler warnings
42394         * tests/test-memchr.c (main): Pass NULL indirectly.
42395         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42396
42397 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42398
42399         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42400         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42401         exactly specified dayshifts.
42402         (dayshift): New rule.
42403         (rel): Add dayshift.
42404         (relative_time_table) [tomorrow, yesterday, today, now]:
42405         Use tDAY_SHIFT in place of tDAY_UNIT.
42406         * tests/test-getdate.c: Add tests for now-disallowed countable
42407         dayshifts, e.g., "4 yesterday ago".
42408
42409 2008-09-29  Bruno Haible  <bruno@clisp.org>
42410
42411         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42412         * tests/test-posix_spawn1.in.sh: Renamed from
42413         tests/test-posix_spawn.in.sh.
42414         * tests/test-posix_spawn2.c: New file.
42415         * tests/test-posix_spawn2.in.sh: New file.
42416         * modules/posix_spawnp-tests (Files): Update.
42417         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42418
42419 2008-09-29  Bruno Haible  <bruno@clisp.org>
42420
42421         Propagate effects of putenv/setenv/unsetenv to child processes.
42422         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42423         * lib/pipe.c (create_pipe): Likewise.
42424
42425 2008-09-29  Bruno Haible  <bruno@clisp.org>
42426
42427         Enable use of shell scripts as executables in mingw.
42428         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42429         run the program as a shell script.
42430         * lib/pipe.c (create_pipe): Likewise.
42431         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42432         resulting array.
42433
42434 2008-09-29  Eric Blake  <ebb9@byu.net>
42435
42436         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42437
42438 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42439
42440         * doc/posix-functions/accept.texi: Update mingw problems.
42441         * doc/posix-functions/bind.texi: Update mingw problems.
42442         * doc/posix-functions/close.texi: Update mingw problems.
42443         * doc/posix-functions/connect.texi: Update mingw problems.
42444         * doc/posix-functions/getpeername.texi: Update mingw problems.
42445         * doc/posix-functions/getsockname.texi: Update mingw problems.
42446         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42447         * doc/posix-functions/ioctl.texi: Update mingw problems.
42448         * doc/posix-functions/listen.texi: Update mingw problems.
42449         * doc/posix-functions/recv.texi: Update mingw problems.
42450         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42451         * doc/posix-functions/select.texi: Update mingw problems.
42452         * doc/posix-functions/send.texi: Update mingw problems.
42453         * doc/posix-functions/sendto.texi: Update mingw problems.
42454         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42455         * doc/posix-functions/socket.texi: Update mingw problems.
42456
42457 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42458             Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/sys_select.in.h: Include sys/time.h.
42461         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42462         * modules/sys_select: Depend on sys_time.
42463         * tests/test-sys_select.c: Test that sys/select.h defines struct
42464         timeval fully.
42465
42466 2008-09-29  Bruno Haible  <bruno@clisp.org>
42467
42468         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42469         * lib/sys_select.in.h: Likewise.
42470
42471 2008-09-29  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42474
42475 2008-09-29  Bruno Haible  <bruno@clisp.org>
42476
42477         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42478         Set LIBSOCKET instead of augmenting LIBS.
42479         * modules/sockets (Link): New section.
42480         * modules/sockets-tests (test_sockets_LDADD): New variable.
42481         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42482         * modules/poll-tests (test_poll_LDADD): New variable.
42483         * NEWS: Document the change.
42484
42485 2008-09-29  Bruno Haible  <bruno@clisp.org>
42486
42487         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42488         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42489         ARPA_INET_H directly.
42490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42491
42492 2008-09-28  Bruno Haible  <bruno@clisp.org>
42493
42494         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42495         from gl_HEADER_SYS_SOCKET.
42496         (gl_HEADER_SYS_SOCKET): Invoke it.
42497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42498
42499 2008-09-28  Bruno Haible  <bruno@clisp.org>
42500
42501         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42502         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42503         Needed on OSF/1 4.0.
42504
42505 2008-09-28  Bruno Haible  <bruno@clisp.org>
42506
42507         Override open more carefully.
42508         * lib/open.c (orig_open): New function.
42509         (rpl_open): Use orig_open instead of open.
42510         * lib/fcntl.in.h: Add special invocation convention.
42511         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42512         (gl_FUNC_OPEN): Invoke it.
42513
42514         Override freopen more carefully.
42515         * lib/freopen.c (orig_freopen): New function.
42516         (rpl_freopen): Use orig_freopen instead of freopen.
42517         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42518         (gl_FUNC_FREOPEN): Invoke it.
42519
42520         Override fopen more carefully.
42521         * lib/fopen.c (orig_fopen): New function.
42522         (rpl_fopen): Use orig_fopen instead of fopen.
42523         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42524         (gl_FUNC_FOPEN): Invoke it.
42525         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42526
42527 2008-09-28  Bruno Haible  <bruno@clisp.org>
42528
42529         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42530         SIGPIPE.
42531
42532 2008-09-28  Bruno Haible  <bruno@clisp.org>
42533
42534         * tests/test-sigaction.c (handler, main): Disable the check whether
42535         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42536         glibc systems with LinuxThreads.
42537
42538 2008-09-28  Bruno Haible  <bruno@clisp.org>
42539
42540         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42541
42542         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42543         with AIX xlc.
42544         * lib/fcntl.in.h (open): Likewise.
42545         Reported by Rainer Tammer <tammer@tammer.net>.
42546
42547 2008-09-28  Bruno Haible  <bruno@clisp.org>
42548
42549         * modules/posix_spawnp-tests: New file.
42550         * tests/test-posix_spawn.c: New file.
42551         * tests/test-posix_spawn.in.sh: New file.
42552
42553         New module 'posix_spawnp'.
42554         * modules/posix_spawnp: New file.
42555         * lib/spawnp.c: New file, from GNU libc with modifications.
42556         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42557
42558         New module 'posix_spawn'.
42559         * modules/posix_spawn: New file.
42560         * lib/spawn.c: New file, from GNU libc with modifications.
42561         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42562
42563         New module 'posix_spawnattr_destroy'.
42564         * modules/posix_spawnattr_destroy: New file.
42565         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42566         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42567         module.
42568
42569         New module 'posix_spawnattr_setsigmask'.
42570         * modules/posix_spawnattr_setsigmask: New file.
42571         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42572         modifications.
42573         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42574         new module.
42575
42576         New module 'posix_spawnattr_getsigmask'.
42577         * modules/posix_spawnattr_getsigmask: New file.
42578         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42579         modifications.
42580         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42581         new module.
42582
42583         New module 'posix_spawnattr_setsigdefault'.
42584         * modules/posix_spawnattr_setsigdefault: New file.
42585         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42586         modifications.
42587         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42588         new module.
42589
42590         New module 'posix_spawnattr_getsigdefault'.
42591         * modules/posix_spawnattr_getsigdefault: New file.
42592         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42593         modifications.
42594         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42595         new module.
42596
42597         New module 'posix_spawnattr_setschedpolicy'.
42598         * modules/posix_spawnattr_setschedpolicy: New file.
42599         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42600         modifications.
42601         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42602         new module.
42603
42604         New module 'posix_spawnattr_getschedpolicy'.
42605         * modules/posix_spawnattr_getschedpolicy: New file.
42606         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42607         modifications.
42608         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42609         new module.
42610
42611         New module 'posix_spawnattr_setschedparam'.
42612         * modules/posix_spawnattr_setschedparam: New file.
42613         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42614         modifications.
42615         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42616         new module.
42617
42618         New module 'posix_spawnattr_getschedparam'.
42619         * modules/posix_spawnattr_getschedparam: New file.
42620         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42621         modifications.
42622         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42623         new module.
42624
42625         New module 'posix_spawnattr_setpgroup'.
42626         * modules/posix_spawnattr_setpgroup: New file.
42627         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42628         modifications.
42629         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42630         module.
42631
42632         New module 'posix_spawnattr_getpgroup'.
42633         * modules/posix_spawnattr_getpgroup: New file.
42634         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42635         modifications.
42636         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42637         module.
42638
42639         New module 'posix_spawnattr_setflags'.
42640         * modules/posix_spawnattr_setflags: New file.
42641         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42642         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42643         module.
42644
42645         New module 'posix_spawnattr_getflags'.
42646         * modules/posix_spawnattr_getflags: New file.
42647         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42648         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42649         module.
42650
42651         New module 'posix_spawnattr_init'.
42652         * modules/posix_spawnattr_init: New file.
42653         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42654         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42655         module.
42656
42657         New module 'posix_spawn_file_actions_destroy'.
42658         * modules/posix_spawn_file_actions_destroy: New file.
42659         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42660         modifications.
42661         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42662         the new module.
42663
42664         New module 'posix_spawn_file_actions_addopen'.
42665         * modules/posix_spawn_file_actions_addopen: New file.
42666         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42667         modifications.
42668         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42669         the new module.
42670
42671         New module 'posix_spawn_file_actions_adddup2'.
42672         * modules/posix_spawn_file_actions_adddup2: New file.
42673         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42674         modifications.
42675         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42676         the new module.
42677
42678         New module 'posix_spawn_file_actions_addclose'.
42679         * modules/posix_spawn_file_actions_addclose: New file.
42680         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42681         modifications.
42682         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42683         the new module.
42684
42685         New module 'posix_spawn_file_actions_init'.
42686         * modules/posix_spawn_file_actions_init: New file.
42687         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42688         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42689         new module.
42690
42691         New module 'posix_spawn-internal'.
42692         * modules/posix_spawn-internal: New file.
42693         * lib/spawn_int.h: New file, from GNU libc with modifications.
42694         * lib/spawni.c: New file, from GNU libc with modifications.
42695         * m4/posix_spawn.m4: New file.
42696
42697         New module 'spawn'.
42698         * modules/spawn: New file.
42699         * lib/spawn.in.h: New file, from GNU libc with modifications.
42700         * m4/spawn_h.m4: New file.
42701         * doc/posix-headers/spawn.texi: Mention the new module.
42702
42703 2008-09-28  Bruno Haible  <bruno@clisp.org>
42704
42705         * modules/sched-tests: New file.
42706         * tests/test-sched.c: New file.
42707
42708         New module 'sched'.
42709         * modules/sched: New file.
42710         * lib/sched.in.h: New file.
42711         * m4/sched_h.m4: New file.
42712         * doc/posix-headers/sched.texi: Mention the new module.
42713
42714 2008-09-27  Eric Blake  <ebb9@byu.net>
42715
42716         Fix previous patch, and tweak references to $0.
42717         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42718         (func_version, func_gnulib_dir): Don't call this program
42719         gnulib-tool.
42720         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42721         with using $0 in function.
42722         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42723         (func_fatal_error): Reuse the name the user invoked us with.
42724
42725 2008-09-27  Bruno Haible  <bruno@clisp.org>
42726
42727         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42728         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42729         (gl_ICONV_H): Not here.
42730         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42731         instead of assigning ICONV_H directly.
42732
42733         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42735         WCHAR_H directly.
42736
42737 2008-09-27  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42740         * modules/arpa_inet (Depends-on): Add link-warning.
42741         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42742         * modules/unistd (Makefile.am): Likewise.
42743
42744 2008-09-26  Bruno Haible  <bruno@clisp.org>
42745
42746         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42747         variables.
42748         (func_version): Essentially copied from gnulib-tool.
42749         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42750         func_readlink): Copied from gnulib-tool.
42751
42752 2008-09-26  Bruno Haible  <bruno@clisp.org>
42753
42754         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42755         invoking git-version-gen.
42756
42757 2008-09-26  Bruno Haible  <bruno@clisp.org>
42758
42759         * posix-modules: Update to directory names changed on 2008-01-19.
42760         Remove commas in output before splitting into words. No more need to
42761         avoid 'ftruncate' since 2007-02-19.
42762
42763 2008-09-26  Bruno Haible  <bruno@clisp.org>
42764
42765         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42766
42767 2008-09-26  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42770         * modules/fwriteerror (Depends-on): Add errno.
42771
42772 2008-09-26  Bruno Haible  <bruno@clisp.org>
42773
42774         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42775         * tests/test-vc-list-files-cvs.sh: Likewise.
42776
42777 2008-09-26  Bruno Haible  <bruno@clisp.org>
42778
42779         * doc/posix-headers/sys_resource.texi: Reorder items.
42780
42781 2008-09-26  Jim Meyering  <meyering@redhat.com>
42782
42783         fts: tweak inode comparison function
42784         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42785         inode numbers, as documented.
42786
42787         fts: sort dirent entries on inode number before traversing
42788         This avoids a quadratic, seek-related performance penalty when
42789         operating on a directory containing many entries (measurable at 10k;
42790         3.5 hours at 2 million entries with a cold cache) on certain types
42791         of file systems, including ext3 and ext4, but not tmpfs.
42792         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42793         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42794         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42795         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42796         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42797         (fts_build): Set the stat.st_ino member from D_INO.
42798         If it is likely to be useful, sort dirent entries on inode number.
42799
42800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42801         and the struct statfs.f_type member.
42802         * modules/fts (Depends-on): Add d-ino.
42803
42804 2008-09-26  Bruno Haible  <bruno@clisp.org>
42805
42806         * modules/sigpipe-die (Depends-on): Add sigpipe.
42807
42808         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42809         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42810         and GNULIB_STDIO_H_SIGPIPE are set.
42811         * lib/stdio-write.c: New file.
42812         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42813         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42814         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42815         REPLACE_STDIO_WRITE_FUNCS.
42816         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42817         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42818         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42819         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42820         * modules/stdio (Files): Add lib/stdio-write.c.
42821         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42822         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42823         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42824         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42825         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42826         REPLACE_FPRINTF_POSIX.
42827         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42828         REPLACE_PRINTF_POSIX.
42829         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42830         REPLACE_VFPRINTF_POSIX.
42831         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42832         REPLACE_VPRINTF_POSIX.
42833         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42834         SIGPIPE issue.
42835         * doc/posix-functions/fputc.texi: Likewise.
42836         * doc/posix-functions/fputs.texi: Likewise.
42837         * doc/posix-functions/fwrite.texi: Likewise.
42838         * doc/posix-functions/printf.texi: Likewise.
42839         * doc/posix-functions/putc.texi: Likewise.
42840         * doc/posix-functions/putchar.texi: Likewise.
42841         * doc/posix-functions/puts.texi: Likewise.
42842         * doc/posix-functions/vfprintf.texi: Likewise.
42843         * doc/posix-functions/vprintf.texi: Likewise.
42844
42845         * modules/safe-write (Depends-on): Add write.
42846
42847         * modules/sigpipe-tests: New file.
42848         * tests/test-sigpipe.c: New file.
42849         * tests/test-sigpipe.sh: New file.
42850
42851         * modules/write: New file.
42852         * lib/unistd.in.h: Include <sys/types.h>.
42853         (write): New declaration.
42854         * lib/write.c: New file.
42855         * m4/write.m4: New file.
42856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42857         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42858         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42859         GNULIB_WRITE, REPLACE_WRITE.
42860         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42861         and the SIGPIPE issue.
42862
42863         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42864         (raise): New declaration.
42865         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42866         (ext_signal): New function.
42867         (rpl_raise): New function.
42868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42869         GNULIB_SIGNAL_H_SIGPIPE.
42870         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42871         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42872
42873         * modules/sigpipe: New file.
42874         * m4/sigpipe.m4: New file.
42875
42876 2008-09-25  Derek Price  <derek@ximbiot.com>
42877             Bruno Haible  <bruno@clisp.org>
42878
42879         * gnulib-tool (func_import): Report all license incompatibilities, not
42880         just the first one.
42881
42882 2008-09-25  Bruno Haible  <bruno@clisp.org>
42883
42884         * gnulib-tool (func_import): When computing the edits, consider not
42885         only the Makefile.ams that exist but also those that will be generated.
42886
42887 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42888
42889         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42890         fixes gnulib-tool --test warning about duplicate dependency.
42891
42892 2008-09-25  Bruno Haible  <bruno@clisp.org>
42893
42894         * gnulib-tool: Don't ask the user to perform edits in the generated
42895         Makefile.ams.
42896         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42897         apply to the Makefile.am being generated.
42898         (func_emit_tests_Makefile_am): Execute edits that apply to the
42899         Makefile.am being generated.
42900         (func_import): Setup list of Makefile.am edits before emitting the
42901         Makefile.ams, not at the end.
42902         (func_create_testdir): Update.
42903         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42904
42905 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42906
42907         * gnulib-tool (func_import): Store the --tests-base option in the
42908         comment in gnulib-cache.m4.
42909
42910 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42911
42912         * NEWS: Document increased portability that sys_select now provides.
42913
42914         * lib/sys_select.in.h: Install select wrapper.
42915         * lib/sys_socket.in.h: Use more descriptive name when there is no
42916         select wrapper.
42917         * lib/winsock-select.c: New.
42918         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42919         Require gl_HEADER_SYS_SOCKET.
42920         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42921         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42922         * tests/test-sys_select.c: Add functional tests.
42923
42924 2008-09-24  Eric Blake  <ebb9@byu.net>
42925
42926         open, fopen: close fd leak in last patch
42927         * lib/open.c (rpl_open): Close fd before returning error.
42928         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42929         * doc/posix-functions/open.texi (open): Document that Irix also
42930         has the bug.
42931         * doc/posix-functions/fopen.texi (fopen): Likewise.
42932         Reported by Paolo Bonzini.
42933
42934 2008-09-24  Bruno Haible  <bruno@clisp.org>
42935
42936         Ensure that a filename ending in a slash cannot be used to access a
42937         non-directory.
42938         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42939         to check whether it's really a directory.
42940         * lib/fopen.c: Include fcntl.h, unistd.h.
42941         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42942         and fdopen().
42943         * modules/fopen (Depends-on): Add unistd.
42944         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42945         * tests/test-fopen.c (main): Likewise.
42946         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42947         * doc/posix-functions/fopen.texi: Likewise.
42948         Reported by Eric Blake.
42949
42950 2008-09-23  Eric Blake  <ebb9@byu.net>
42951
42952         c-stack: avoid compiler optimizations when provoking overflow
42953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42954         recursion harder to optimize, to ensure a stack overflow occurs.
42955         * tests/test-c-stack.c (recurse): Likewise.
42956         Borrowed from libsigsegv.
42957
42958         c-stack: work around Irix sigaltstack bug
42959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42960         whether sigaltstack uses wrong end of stack_t (copied in part from
42961         libsigsegv).
42962         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42963         Irix bug, without requiring an over-allocation.
42964         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42965         bug.
42966
42967         fopen: document mingw bug on directories
42968         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42969         not allowing a stream visiting a directory, even though reading
42970         from such a stream is not portable.
42971
42972 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42973
42974         * lib/poll.c: Rewrite.
42975         * modules/poll: Depend on alloca.
42976
42977 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42978
42979         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42980         instead define prototypes for a full set of wrappers.  Ensure
42981         that Cygwin does not use the compatibility code, which is only
42982         for MinGW.
42983         * lib/winsock.c: New.
42984         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42985         * modules/sys_socket: Add lib/winsock.c.
42986
42987         * modules/poll-tests: Add errno and perror.
42988         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42989
42990 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42991
42992         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42993
42994 2008-09-23  Bruno Haible  <bruno@clisp.org>
42995
42996         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42997         * doc/glibc-functions/*: Likewise.
42998
42999 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43000
43001         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43002         success.
43003
43004 2008-09-22  Eric Blake  <ebb9@byu.net>
43005             Bruno Haible  <bruno@clisp.org>
43006
43007         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43008         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43009         supply %A but mishandle pseudo-NaN.
43010         Reported by Simon Josefsson.
43011
43012 2008-09-21  Bruno Haible  <bruno@clisp.org>
43013
43014         * tests/test-lock.c (main): Tweak skip message.
43015         * tests/test-tls.c (main): Likewise.
43016
43017 2008-09-21  Bruno Haible  <bruno@clisp.org>
43018
43019         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43020         whether 'struct sigaction' has sa_sigaction here...
43021         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43022         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43023
43024 2008-09-21  Bruno Haible  <bruno@clisp.org>
43025
43026         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43027         section.
43028         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43029         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43030         the new section.
43031         (Support for obsolete systems lacking POSIX:2001): New section.
43032         (String handling <string.h>): Move strdup to the new section.
43033         Suggested by Simon Josefsson and Paolo Bonzini.
43034
43035 2008-09-21  Bruno Haible  <bruno@clisp.org>
43036
43037         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43038         exponents in %e and %g results on 'long double'. Needed for mingw's
43039         improved *printf functions.
43040         * tests/test-vasprintf-posix.c (test_function): Likewise.
43041         * tests/test-snprintf-posix.h (test_function): Likewise.
43042         * tests/test-sprintf-posix.h (test_function): Likewise.
43043         Reported by Eric Blake.
43044
43045 2008-09-21  Bruno Haible  <bruno@clisp.org>
43046
43047         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43048         * tests/test-sprintf-posix.h (test_function): Likewise.
43049
43050 2008-09-21  Bruno Haible  <bruno@clisp.org>
43051
43052         * modules/getpass (Depends-on): Add strdup-posix.
43053
43054         New module 'strdup-posix'.
43055         * modules/strdup-posix: New file.
43056         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43057         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43059         REPLACE_STRDUP.
43060         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43061         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43063         strdup-posix.
43064
43065         * modules/strdup (Depends-on): Remove malloc-posix.
43066
43067 2008-09-20  Bruno Haible  <bruno@clisp.org>
43068
43069         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43070         Wildenhues.
43071
43072 2008-09-20  Bruno Haible  <bruno@clisp.org>
43073
43074         Ensure that wint_t gets defined on IRIX 5.3.
43075         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43076         * lib/wctype.in.h (wint_t): Likewise.
43077         (__wctype_wint_t): Remove type.
43078         (isw*): Use wint_t instead of __wctype_wint_t.
43079         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43080         * modules/wchar (Files): Add m4/wint_t.m4.
43081         (Makefile.am): Substitute HAVE_WINT_T.
43082         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43083         * tests/test-wctype.c: Check that wint_t is defined.
43084         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43085         * doc/posix-headers/wctype.texi: Likewise.
43086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43087
43088 2008-09-18  Bruno Haible  <bruno@clisp.org>
43089
43090         * gnulib-tool (func_exit): Update comment.
43091
43092 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43093
43094         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43095         assumes strdup exists and does not depend on strdup to return
43096         ENOMEM on out of memory conditions.
43097
43098 2008-09-18  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43101         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43102         digits for the exponent.
43103
43104 2008-09-18  Jim Meyering  <meyering@redhat.com>
43105             Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/vasnprintf.c (decimal_point_char): Define also if
43108         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43109
43110 2008-09-16  Bruno Haible  <bruno@clisp.org>
43111         and Eric Blake  <ebb9@byu.net>
43112
43113         vasnprintf: support Irix 5.3
43114         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43115         that mishandle long double infinity.
43116         Reported by Tom G. Christensen.
43117
43118 2008-09-16  Bruno Haible  <bruno@clisp.org>
43119
43120         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43121         Solaris 9.
43122         * doc/glibc-functions/alphasort.texi: Likewise.
43123         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43124
43125 2008-09-16  Jim Meyering  <meyering@redhat.com>
43126
43127         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43128         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43129         a umask modification leak out of a subshell.  Otherwise, the
43130         opensolaris /bin/sh would be accepted and thus cause unwarranted
43131         failures in the coreutils test suite.
43132
43133 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43134
43135         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43136         to succeed.
43137
43138 2008-09-16  Jim Meyering  <meyering@redhat.com>
43139
43140         avoid spurious test failure when library is built without ACL support
43141         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43142         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43143         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43144         * tests/test-copy-acl.sh: Likewise.
43145
43146 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43147
43148         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43149         based on character occurrence counts.
43150
43151 2008-09-15  Eric Blake  <ebb9@byu.net>
43152
43153         tests: avoid some compiler warnings
43154         * tests/test-memchr.c (main): Pass NULL indirectly.
43155         * tests/test-closein.c (main): Avoid unused variable.
43156
43157 2008-09-15  Bruno Haible  <bruno@clisp.org>
43158
43159         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43160         are missing on OpenBSD 4.0 individually.
43161         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43162
43163 2008-09-15  Bruno Haible  <bruno@clisp.org>
43164
43165         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43166         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43167         * doc/posix-functions/perror.texi: Likewise.
43168         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43169         is missing.
43170         Reported by Eric Blake.
43171
43172         * lib/errno.in.h: Use replacement values >= 2000.
43173         Reported by Eric Blake.
43174
43175 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43176
43177         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43178         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43179         limit.
43180         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43181         compareseq was aborted.
43182
43183 2008-09-14  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43186         yvec_edit_count.
43187         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43188         (fstrcmp_bounded): Simplify result computation accordingly.
43189
43190 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43191
43192         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43193         (fstrcmp): Define in terms of fstrcmp_bounded.
43194         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43195         lower_bound argument.
43196         Return quickly if the result is certainly < lower_bound.
43197         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43198
43199 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43200
43201         * lib/diffseq.h (EARLY_ABORT): New macro.
43202         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43203         evaluates to true.
43204
43205 2008-09-14  Bruno Haible  <bruno@clisp.org>
43206
43207         * modules/perror-tests: New file.
43208         * tests/test-perror.sh: New file.
43209         * tests/test-perror.c: New file.
43210
43211         New module 'perror'.
43212         * lib/stdio.in.h (perror): New declaration.
43213         * lib/perror.c: New file.
43214         * m4/perror.m4: New file.
43215         * modules/perror: New file.
43216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43217         * doc/posix-functions/perror.texi: Mention the perror module.
43218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43219         REPLACE_PERROR.
43220         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43221         REPLACE_PERROR.
43222
43223 2008-09-14  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/stdio (Makefile.am): Reorder to match the order in
43226         lib/stdio.in.h.
43227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43228
43229 2008-09-13  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43232
43233 2008-09-13  Bruno Haible  <bruno@clisp.org>
43234
43235         Extend strerror to cover the added errno values.
43236         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43237         (rpl_strerror): Provide error messages for the added errno values and
43238         for the WSA* values.
43239         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43240         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43241         strerror.
43242         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43243         * modules/strerror (Depends-on): Add errno.
43244         * doc/posix-functions/strerror.texi: Document the change.
43245         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43246         and EOVERFLOW.
43247
43248 2008-09-13  Bruno Haible  <bruno@clisp.org>
43249
43250         * modules/EOVERFLOW: Remove file.
43251         * m4/eoverflow.m4: Remove file.
43252         * modules/EOVERFLOW-tests: Remove file.
43253         * tests/test-EOVERFLOW.c: Remove file.
43254         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43255         * modules/ftell (Depends-on): Likewise.
43256         * modules/getdelim (Depends-on): Likewise.
43257         * modules/getugroups (Depends-on): Likewise.
43258         * modules/poll (Depends-on): Likewise.
43259         * modules/snprintf (Depends-on): Likewise.
43260         * modules/sprintf-posix (Depends-on): Likewise.
43261         * modules/vasnprintf (Depends-on): Likewise.
43262         * modules/vasprintf (Depends-on): Likewise.
43263         * modules/vfprintf-posix (Depends-on): Likewise.
43264         * modules/vsnprintf (Depends-on): Likewise.
43265         * modules/vsprintf-posix (Depends-on): Likewise.
43266         * modules/xvasprintf (Depends-on): Likewise.
43267         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43268         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43269         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43270         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43272         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43273         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43274         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43275         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43276         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43277         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43278         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43279         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43280         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43281         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43282         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43283         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43284         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43285         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43286         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43288         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43289         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43290         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43291         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43292         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43293         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43294         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43295         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43296         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43297         * MODULES.html.sh: Remove EOVERFLOW.
43298         * NEWS: Mention the change.
43299
43300 2008-09-13  Bruno Haible  <bruno@clisp.org>
43301
43302         * modules/errno-tests: New file.
43303         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43304
43305         * lib/errno.in.h: New file.
43306         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43307         * modules/errno: New file.
43308         * doc/posix-headers/errno.texi: Update documentation.
43309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43310
43311 2008-09-13  Bruno Haible  <bruno@clisp.org>
43312
43313         * tests/test-poll.c: Use #if for native Windows, rather than testing
43314         __MSVCRT__.
43315
43316 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43317             Bruno Haible  <bruno@clisp.org>
43318
43319         * lib/glob.c: Don't include <pwd.h> on native Windows.
43320         (WINDOWS32): New macro.
43321         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43322
43323 2008-09-13  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43326         (ETIMEDOUT): Remove macro.
43327         (glthread_cond_timedwait_multithreaded): New declaration.
43328         (glthread_cond_timedwait): Use it.
43329         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43330         (glthread_cond_timedwait_multithreaded): New function.
43331
43332 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43333
43334         * modules/poll-tests: Do not check for io.h.
43335         * tests/test-poll.c: Check for __MSVCRT__ instead.
43336
43337 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43338
43339         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43340         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43341         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43342
43343 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43344
43345         * modules/poll-tests: New.
43346         * tests/test-poll.c: New.
43347
43348 2008-09-12  Eric Blake  <ebb9@byu.net>
43349
43350         frexp: test for NetBSD failure on -0.0
43351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43352         not all, bugs from NetBSD 3.0 have been fixed.
43353         * doc/posix-functions/frexp.texi (frexp): Document bug.
43354         Reported by Thomas Klausner.
43355
43356         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43357         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43358         literal -0.0.
43359         Reported by Jonathan C. Patschke <jp@centtech.com>.
43360
43361 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43362
43363         * lib/glthread/cond.h: Use dummy implementation also if
43364         USE_WIN32_THREADS.
43365
43366 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43367
43368         * modules/fnmatch-posix (License): Change to LGPLv2+.
43369         * modules/fnmatch-gnu (License): Likewise.
43370
43371 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43372
43373         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43374
43375 2008-09-11  Jim Meyering  <meyering@redhat.com>
43376
43377         * users.txt: Add gtk-vnc.
43378
43379 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43380
43381         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43382         rotate amounts.
43383
43384         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43385         required for 16-bit and 8-bit rotates.
43386         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43387         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43388         UINT8_MAX instead of hard-coded constants.
43389         Suggested by Paul Eggert.
43390
43391 2008-09-07  Bruno Haible  <bruno@clisp.org>
43392
43393         * tests/test-striconveh.c (main): Check behaviour when converting from
43394         UTF-7.
43395
43396         Make striconveh work better with stateful encodings.
43397         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43398         that iconv does not increment the inptr when returning -1/EINVAL.
43399
43400 2008-09-07  Bruno Haible  <bruno@clisp.org>
43401
43402         * build-aux/config.rpath: Update according to libtool-2.2.6.
43403         * build-aux/config.libpath: Likewise.
43404
43405 2008-09-06  Bruno Haible  <bruno@clisp.org>
43406
43407         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43408         * lib/freadptr.c (freadptr): Likewise.
43409         * lib/freadseek.c (freadptrinc): Likewise.
43410         Reported by Simon Josefsson.
43411
43412 2008-09-06  Bruno Haible  <bruno@clisp.org>
43413
43414         * modules/freadptr (License): Change to LGPLv2+.
43415         * modules/freadseek (License): Likewise.
43416         Suggested by Eric Blake.
43417
43418         * modules/memchr2 (License): Change to LGPLv2+.
43419         Approved by Eric Blake.
43420
43421 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43422             Bruno Haible  <bruno@clisp.org>
43423
43424         Make gnulib-tool work with native 'sed' on AIX.
43425         * gnulib-tool (sed_noop): New variable.
43426         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43427         func_add_or_update, func_create_testdir): Use it to initialize sed
43428         script variables.
43429         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43430
43431 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43432             Bruno Haible  <bruno@clisp.org>
43433
43434         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43435         also works after #include directives.
43436
43437 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43438
43439         getdate.y: reject an out-of-range timezone value
43440         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43441         the range [-24...+24].  When specified with only one or two digits,
43442         * tests/test-getdate.c: Tests for the fix.
43443         * doc/getdate.texi: Document this change.
43444
43445 2008-09-03  Bruno Haible  <bruno@clisp.org>
43446
43447         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43448
43449 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43450
43451         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43452         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43453         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43454         Blake <ebb9@byu.net>.
43455
43456         * tests/test-bitrotate.c: Add more test vectors.
43457
43458 2008-09-02  Eric Blake  <ebb9@byu.net>
43459
43460         vasnprintf-posix: handle large precision via %.*d
43461         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43462         when handling it ourselves.
43463         * tests/test-vasnprintf-posix.c (test_function): Add test.
43464         * tests/test-snprintf-posix.h (test_function): Likewise.
43465         * tests/test-sprintf-posix.h (test_function): Likewise.
43466         * tests/test-vasprintf-posix.c (test_function): Likewise.
43467         Reported by Alain Guibert.
43468
43469 2008-09-01  Eric Blake  <ebb9@byu.net>
43470
43471         c-stack: make configure-time check more robust
43472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43473         successful sigaction call.
43474         Reported by Tom G. Christensen.
43475
43476 2008-09-01  Bruno Haible  <bruno@clisp.org>
43477
43478         New module 'findprog-lgpl'.
43479         * modules/findprog-lgpl: New file.
43480         * lib/findprog-lgpl.c: New file.
43481         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43482         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43483         to decide whether to use strdup or xstrdup, concatenated_filename or
43484         xconcatenated_filename.
43485
43486 2008-09-01  Bruno Haible  <bruno@clisp.org>
43487
43488         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43489         'xconcat-filename' (GPL).
43490         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43491         (License): Change to LGPLv2+.
43492         * modules/xconcat-filename: New file.
43493         * lib/concat-filename.h (concatenated_filename): Change specification.
43494         (xconcatenated_filename): New declaration.
43495         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43496         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43497         memory situations.
43498         * lib/xconcat-filename.c: New file.
43499         * NEWS: Mention the change.
43500         * lib/findprog.c: Include concat-filename.h, not filename.h.
43501         (find_in_path): Use xconcatenated_filename instead of
43502         concatenated_filename.
43503         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43504         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43505         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43506         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43507         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43508         instead of concatenated_filename.
43509         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43510         (execute_java_class): Use xconcatenated_filename instead of
43511         concatenated_filename.
43512         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43513         * modules/javacomp (Depends-on): Likewise.
43514         * modules/javaexec (Depends-on): Likewise.
43515
43516 2008-09-01  Bruno Haible  <bruno@clisp.org>
43517
43518         Split module 'filename' into 'filename' and 'concat-filename'.
43519         * modules/filename: Keep only lib/filename.h.
43520         (License): Change to LGPLv2+.
43521         * modules/concat-filename: New file, extracted from modules/filename.
43522         * lib/filename.h (concatenated_filename): Remove declaration.
43523         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43524         * lib/concat-filename.c: Include concat-filename.h.
43525         * NEWS: Mention the change.
43526
43527 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43528
43529         * lib/bitrotate.h (rotl8, rotr8): Add.
43530
43531         * modules/bitrotate (configure.ac): Need
43532         AC_REQUIRE([AC_C_INLINE]).
43533         (Description): Mention stdint.h.  Reported by Bruno Haible
43534         <bruno@clisp.org>.
43535
43536         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43537         Paolo Bonzini <bonzini@gnu.org>.
43538
43539 2008-08-31  Bruno Haible  <bruno@clisp.org>
43540
43541         Assume Solaris specific bi-arch conventions on Solaris systems.
43542         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43543         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43545         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43546         like acl_libdirstem.
43547         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43548         acl_libdirstem.
43549         * NEWS: Mention the change.
43550         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43551
43552 2008-08-31  Jim Meyering  <meyering@redhat.com>
43553
43554         * lib/strftime.h: Add comments describing the two added arguments.
43555
43556         remove duplicate #include directives
43557         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43558         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43559
43560 2008-08-31  Bruno Haible  <bruno@clisp.org>
43561
43562         New module 'sigpipe-die'.
43563         * modules/sigpipe-die: New file.
43564         * lib/sigpipe-die.h: New file.
43565         * lib/sigpipe-die.c: New file.
43566         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43567
43568 2008-08-31  Bruno Haible  <bruno@clisp.org>
43569
43570         Don't override previously installed signal handlers.
43571         * lib/fatal-signal.c (saved_sigactions): New variable.
43572         (uninstall_handlers): Reset the signal to the saved handler, not
43573         to SIG_DFL (except when ignored).
43574         (install_handlers): Save the previous handlers.
43575
43576 2008-08-30  Bruno Haible  <bruno@clisp.org>
43577
43578         * gnulib-tool (func_reset_sigpipe): New function.
43579         (func_get_automake_snippet, func_modules_transitive_closure,
43580         func_import): Invoke it before a join command that reads from stdin,
43581         to avoid "echo: write error: Broken pipe" error messages on stderr.
43582         Reported by Sam Steingold <sds@gnu.org>.
43583
43584 2008-08-30  Bruno Haible  <bruno@clisp.org>
43585
43586         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43587         Code copied from m4/open.m4.
43588         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43589         access and the filename ends in a slash. Code copied from lib/open.c.
43590         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43591         * tests/test-fopen.c (main): Check against bug with trailing slash.
43592
43593 2008-08-29  Bruno Haible  <bruno@clisp.org>
43594
43595         Avoid some "gcc -pedantic" warnings.
43596         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43597         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43598         * lib/dirent.in.h: Likewise.
43599         * lib/fcntl.in.h: Likewise.
43600         * lib/float.in.h: Likewise.
43601         * lib/iconv.in.h: Likewise.
43602         * lib/inttypes.in.h: Likewise.
43603         * lib/locale.in.h: Likewise.
43604         * lib/math.in.h: Likewise.
43605         * lib/netinet_in.in.h: Likewise.
43606         * lib/search.in.h: Likewise.
43607         * lib/signal.in.h: Likewise.
43608         * lib/stdarg.in.h: Likewise.
43609         * lib/stdint.in.h: Likewise.
43610         * lib/stdio.in.h: Likewise.
43611         * lib/stdlib.in.h: Likewise.
43612         * lib/string.in.h: Likewise.
43613         * lib/strings.in.h: Likewise.
43614         * lib/sys_select.in.h: Likewise.
43615         * lib/sys_socket.in.h: Likewise.
43616         * lib/sys_stat.in.h: Likewise.
43617         * lib/sys_time.in.h: Likewise.
43618         * lib/sysexits.in.h: Likewise.
43619         * lib/time.in.h: Likewise.
43620         * lib/unistd.in.h: Likewise.
43621         * lib/wchar.in.h: Likewise.
43622         * lib/wctype.in.h: Likewise.
43623         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43624         * modules/fchdir (Makefile.am): Likewise.
43625         * modules/fcntl (Makefile.am): Likewise.
43626         * modules/float (Makefile.am): Likewise.
43627         * modules/iconv_open (Makefile.am): Likewise.
43628         * modules/inttypes (Makefile.am): Likewise.
43629         * modules/locale (Makefile.am): Likewise.
43630         * modules/math (Makefile.am): Likewise.
43631         * modules/netinet_in (Makefile.am): Likewise.
43632         * modules/search (Makefile.am): Likewise.
43633         * modules/signal (Makefile.am): Likewise.
43634         * modules/stdarg (Makefile.am): Likewise.
43635         * modules/stdint (Makefile.am): Likewise.
43636         * modules/stdio (Makefile.am): Likewise.
43637         * modules/stdlib (Makefile.am): Likewise.
43638         * modules/string (Makefile.am): Likewise.
43639         * modules/strings (Makefile.am): Likewise.
43640         * modules/sys_select (Makefile.am): Likewise.
43641         * modules/sys_socket (Makefile.am): Likewise.
43642         * modules/sys_stat (Makefile.am): Likewise.
43643         * modules/sys_time (Makefile.am): Likewise.
43644         * modules/sysexits (Makefile.am): Likewise.
43645         * modules/time (Makefile.am): Likewise.
43646         * modules/unistd (Makefile.am): Likewise.
43647         * modules/wchar (Makefile.am): Likewise.
43648         * modules/wctype (Makefile.am): Likewise.
43649         Reported by Reuben Thomas <rrt@sc3d.org>.
43650
43651 2008-08-29  Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43654         any more.
43655
43656 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43657
43658         * MODULES.html.sh (Misc): Add bitrotate.
43659
43660         * modules/bitrotate: New file.
43661
43662         * lib/bitrotate.h: New file.
43663
43664         * modules/bitrotate-tests: New file.
43665
43666         * tests/test-bitrotate.c: New file.
43667
43668         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43669         on the bitrotate module.
43670
43671         * lib/arctwo.c: Use new bitrotate module.
43672
43673 2008-08-29  Jim Meyering  <meyering@redhat.com>
43674
43675         bootstrap: merge changes from coreutils
43676         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43677         of copied files.  Remove a kludge, now that this is fixed.
43678         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43679         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43680         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43681
43682 2008-08-29  Bruno Haible  <bruno@clisp.org>
43683
43684         * MODULES.html.sh: Remove --cvs-urls option.
43685
43686 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43687
43688         maint.mk: adjust to file name change
43689         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43690
43691 2008-08-28  Jim Meyering  <meyering@redhat.com>
43692
43693         * modules/getndelim2 (License): Relicense to LGPLv2+.
43694         Approved by Richard Stallman for the version of 1995, and by
43695         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43696
43697 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43698
43699         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43700         dummy if one is not available.  Do not touch them if
43701         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43702         (getc_maybe_unlocked): New.
43703         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43704
43705 2008-08-26  Eric Blake  <ebb9@byu.net>
43706
43707         doc/INSTALL: resync from autoconf
43708         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43709         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43710         moving...
43711         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43712         * INSTALL: Regenerate.
43713         * INSTALL.ISO: New file.
43714         * INSTALL.UTF-8: Likewise.
43715
43716 2008-08-26  Jim Meyering  <meyering@redhat.com>
43717
43718         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43719         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43720         these definitions conditional, so that they may be overridden, too.
43721
43722 2008-08-26  Bruno Haible  <bruno@clisp.org>
43723
43724         Generate INSTALL file variants with prettier quotes.
43725         * doc/Makefile (INSTALL_PRELUDE): New macro.
43726         (INSTALL): Use it.
43727         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43728
43729 2008-08-26  Bruno Haible  <bruno@clisp.org>
43730
43731         Run makeinfo in an English locale.
43732         * doc/Makefile (MAKEINFO): New variable.
43733
43734 2008-08-26  Bruno Haible  <bruno@clisp.org>
43735
43736         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43737         Suggested by Eric Blake.
43738
43739 2008-08-25  Bruno Haible  <bruno@clisp.org>
43740
43741         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43742
43743 2008-08-25  Eric Blake  <ebb9@byu.net>
43744
43745         c-stack: test that stack overflow can be caught
43746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43747         that platform allows handling stack overflow; at least OS/2 EMX
43748         has sigaltstack, but crashes before transferring control to
43749         handler on stack overflow.
43750         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43751         check for HAVE_STACK_OVERFLOW_HANDLING.
43752         Reported by Elbert Pol.
43753
43754 2008-08-25  Bruno Haible  <bruno@clisp.org>
43755
43756         * doc/posix-functions/strftime.texi: Fix description of strftime
43757         module.
43758
43759 2008-08-24  Bruno Haible  <bruno@clisp.org>
43760
43761         * tests/uniwidth/test-uc_width2.c: New file.
43762         * tests/uniwidth/test-uc_width2.sh: New file.
43763         * modules/uniwidth/width-tests (Files): Add the new files.
43764         (TESTS): Add uniwidth/test-uc_width2.sh.
43765         (TESTS_ENVIRONMENT): New variable.
43766         (check_PROGRAMS): Add test-uc_width2.
43767         (test_uc_width2_SOURCES): New variable.
43768
43769         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43770         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43771         not 0x00AB.
43772         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43773
43774 2008-08-22  Eric Blake  <ebb9@byu.net>
43775
43776         test-lock, test-tls: mention why a test is skipped
43777         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43778         skipped.
43779         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43780
43781         count-one-bits: relax license
43782         * modules/count-one-bits (License): Relicense to LGPLv2+.
43783         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43784
43785 2008-08-22  Andreas Schwab  <schwab@suse.de>
43786
43787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43788         Remove spurious space in assignment.
43789
43790 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43791
43792         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43793         Paul Eggert <eggert@CS.UCLA.EDU>.
43794
43795 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43796
43797         * modules/gettext: Add m4/threadlib.m4.
43798
43799 2008-08-19  Eric Blake  <ebb9@byu.net>
43800
43801         test-c-stack: fix compilation failure on FreeBSD 5.0
43802         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43803         headers before <sys/resource.h>.
43804         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43805         the bug.
43806         Reported by Nelson H. F. Beebe.
43807
43808         strverscmp: migrate from "strverscmp.h" to <string.h>
43809         * modules/string (Makefile.am): Add new hooks.
43810         * modules/strverscmp (Files): Remove strverscmp.h.
43811         (Depends-on): Add string.
43812         (configure.ac): Add indicator.
43813         (Include): Mention new header.
43814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43815         defaults.
43816         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43817         results.
43818         * lib/strverscmp.h: Delete.
43819         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43820         * tests/test-strverscmp.c (includes): Adjust client.
43821         * lib/check-version.c (includes): Likewise.
43822         * NEWS: Document the change.
43823
43824         strverscmp: add unit test
43825         * modules/strverscmp-tests: New file.
43826         * tests/test-strverscmp.c: Likewise.
43827
43828 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43829
43830         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43831         regarding Windows crypto stuff, from Mono.
43832
43833 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43834
43835         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43836         if present, for intel RND.  Return error on failures.
43837
43838 2008-08-18  Ben Pfaff  <blp@gnu.org>
43839
43840         gitlog-to-changelog: give better diagnostic for failed pipe-open
43841         * build-aux/gitlog-to-changelog: Improve error message: suggest
43842         that the version of Git may be too old.
43843
43844 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43845
43846         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43847         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43848
43849 2008-08-18  Bruno Haible  <bruno@clisp.org>
43850
43851         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43852         pthread_in_use().
43853
43854 2008-08-18  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/glthread/threadlib.c: Include <pthread.h>.
43857
43858 2008-08-18  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43861         glthread_recursive_lock_* macros.
43862         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43863         Fix syntax error.
43864
43865 2008-08-18  Bruno Haible  <bruno@clisp.org>
43866
43867         * lib/glthread/thread.c: Avoid forcing a context switch right after
43868         thread creation.
43869
43870 2008-08-17  Bruno Haible  <bruno@clisp.org>
43871
43872         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43873         * lib/glthread/thread.h: Provide Win32 specific implementation.
43874         * modules/thread (Files): Add lib/glthread/thread.c.
43875         (Depends-on): Add lock.
43876         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43877
43878 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43879
43880         New module 'yield'.
43881         * modules/yield: New file.
43882         * lib/glthread/yield.h: New file.
43883         * m4/yield.m4: New file.
43884         * MODULES.html.sh (Multithreading): Add yield.
43885
43886 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43887
43888         New module 'thread'.
43889         * modules/thread: New file.
43890         * lib/glthread/thread.h: New file.
43891         * m4/thread.m4: New file.
43892         * MODULES.html.sh (Multithreading): Add thread.
43893
43894 2008-08-17  Bruno Haible  <bruno@clisp.org>
43895
43896         * lib/glthread/lock.h: Include <stdlib.h> always.
43897         * lib/glthread/tls.h: Likewise.
43898         * lib/glthread/cond.h: Likewise.
43899
43900 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43901
43902         New module 'cond'.
43903         * modules/cond: New file.
43904         * lib/glthread/cond.h: New file.
43905         * lib/glthread/cond.c: New file.
43906         * m4/cond.m4: New file.
43907         * MODULES.html.sh (Multithreading): Add cond.
43908
43909 2008-08-16  Eric Blake  <ebb9@byu.net>
43910
43911         c-stack: fix regression on Irix 5.3 from 2008-06-21
43912         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43913         sa_sigaction...
43914         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43915         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43916         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43917         * modules/signal (Makefile.am): Use the value.
43918         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43919         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43920         * doc/posix-headers/signal.texi (signal.h): Document this
43921         portability issue.
43922         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43923         Reported by Tom G. Christensen.
43924
43925 2008-08-17  Bruno Haible  <bruno@clisp.org>
43926
43927         New module 'threadlib'.
43928         * modules/threadlib: New file.
43929         * lib/glthread/threadlib.c: New file, extracted from
43930         lib/glthread/lock.c.
43931         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43932         functions.
43933         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43934         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43935         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43936         macros.
43937         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43938         (gl_DISABLE_THREADS): Remove macro.
43939         * modules/lock (Files): Remove build-aux/config.rpath.
43940         (Depends-on): Remove havelib. Add threadlib.
43941         (configure.ac-early): Remove section.
43942         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43943         * modules/tls (Depends-on): Remove lock. Add threadlib.
43944         (Link): New section, copied from threadlib.
43945         * MODULES.html.sh (Multithreading): Add threadlib.
43946
43947 2008-08-14  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43950         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43951         glthread_rwlock_unlock, glthread_rwlock_destroy,
43952         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43953         glthread_recursive_lock_destroy): Define as macros always.
43954         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43955         glthread_lock_lock.
43956         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43957         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43958         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43959         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43960         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43961         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43962         (glthread_recursive_lock_lock_func): Renamed from
43963         glthread_recursive_lock_lock.
43964         (glthread_recursive_lock_unlock_func): Renamed from
43965         glthread_recursive_lock_unlock.
43966         (glthread_recursive_lock_destroy_func): Renamed from
43967         glthread_recursive_lock_destroy.
43968
43969 2008-08-14  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/glthread/lock.h: Renamed from lib/lock.h.
43972         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43973         * lib/glthread/tls.h: Renamed from lib/tls.h.
43974         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43975         * lib/fstrcmp.c: Update includes.
43976         * lib/strsignal.c: Update includes.
43977         * modules/lock (Files, Makefile.am): Update.
43978         (Include): Change to "glthread/lock.h".
43979         * modules/tls (Files, Makefile.am): Update.
43980         (Include): Change to "glthread/tls.h".
43981         * tests/test-lock.c: Update includes.
43982         * tests/test-tls.c: Update includes.
43983         * NEWS: Mention the renamed header files.
43984
43985 2008-08-11  Jim Meyering  <meyering@redhat.com>
43986
43987         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43988
43989 2008-08-11  Eric Blake  <ebb9@byu.net>
43990
43991         test-c-stack: avoid C99-ism
43992         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43993         before statement.
43994         Reported by Alain Guibert.
43995
43996 2008-08-10  Jim Meyering  <meyering@redhat.com>
43997
43998         ensure that return value of uinttostr et al are not ignored
43999         * lib/inttostr.h (__GNUC_PREREQ): Define.
44000         (__attribute_warn_unused_result__): Define.
44001         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44002
44003 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44004
44005         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44006         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44007
44008 2008-08-07  Jim Meyering  <meyering@redhat.com>
44009
44010         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44011
44012         * modules/mkstemp (License): Relicense under LGPLv2+.
44013         * modules/tempname (License): Likewise.
44014
44015 2008-08-06  Bruno Haible  <bruno@clisp.org>
44016
44017         * lib/poll.c (poll): Further micro-optimization.
44018
44019 2008-08-06  Jim Meyering  <meyering@redhat.com>
44020
44021         inet_pton.c: use locale-independent tolower
44022         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44023         (inet_pton6): Use c_tolower rather than tolower.
44024         * modules/inet_pton (Depends-on): Add c-ctype.
44025
44026 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44027
44028         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44029         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44030
44031 2008-08-06  Jim Meyering  <meyering@redhat.com>
44032
44033         * modules/inet_pton (License): Relicense under LGPLv2+.
44034
44035 2008-08-03  Bruno Haible  <bruno@clisp.org>
44036
44037         Additional non-aborting API for lock and tls.
44038         * lib/lock.h: Include <errno.h>.
44039         (glthread_lock_init): New macro/function.
44040         (gl_lock_init): Define as wrapper around glthread_lock_init.
44041         (glthread_lock_lock): New macro/function.
44042         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44043         (glthread_lock_unlock): New macro/function.
44044         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44045         (glthread_lock_destroy): New macro/function.
44046         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44047         (glthread_rwlock_init): New macro/function.
44048         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44049         (glthread_rwlock_rdlock): New macro/function.
44050         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44051         (glthread_rwlock_wrlock): New macro/function.
44052         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44053         (glthread_rwlock_unlock): New macro/function.
44054         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44055         (glthread_rwlock_destroy): New macro/function.
44056         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44057         (glthread_recursive_lock_init): New macro/function.
44058         (gl_recursive_lock_init): Define as wrapper around
44059         glthread_recursive_lock_init.
44060         (glthread_recursive_lock_lock): New macro/function.
44061         (gl_recursive_lock_lock): Define as wrapper around
44062         glthread_recursive_lock_lock.
44063         (glthread_recursive_lock_unlock): New macro/function.
44064         (gl_recursive_lock_unlock): Define as wrapper around
44065         glthread_recursive_lock_unlock.
44066         (glthread_recursive_lock_destroy): New macro/function.
44067         (gl_recursive_lock_destroy): Define as wrapper around
44068         glthread_recursive_lock_destroy.
44069         (glthread_once): New macro/function.
44070         (gl_once): Define as wrapper around glthread_once.
44071         Update function declarations.
44072         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44073         glthread_rwlock_init. Return error code.
44074         (glthread_rwlock_rdlock_multithreaded): Renamed from
44075         glthread_rwlock_rdlock. Return error code.
44076         (glthread_rwlock_wrlock_multithreaded): Renamed from
44077         glthread_rwlock_wrlock. Return error code.
44078         (glthread_rwlock_unlock_multithreaded): Renamed from
44079         glthread_rwlock_unlock. Return error code.
44080         (glthread_rwlock_destroy_multithreaded): Renamed from
44081         glthread_rwlock_destroy. Return error code.
44082         (glthread_recursive_lock_init_multithreaded): Renamed from
44083         glthread_recursive_lock_init. Return error code.
44084         (glthread_recursive_lock_lock_multithreaded): Renamed from
44085         glthread_recursive_lock_lock. Return error code.
44086         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44087         glthread_recursive_lock_unlock. Return error code.
44088         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44089         glthread_recursive_lock_destroy. Return error code.
44090         (glthread_once_call): Make static.
44091         (glthread_once_multithreaded): Renamed from glthread_once.
44092         * lib/tls.h: Include <errno.h>.
44093         (glthread_tls_key_init): New macro/function.
44094         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44095         (glthread_tls_set): New macro/function.
44096         (gl_tls_set): Define as wrapper around glthread_tls_set.
44097         (glthread_tls_key_destroy): New macro/function.
44098         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44099         Update function declarations.
44100         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44101         glthread_tls_get.
44102         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44103
44104 2008-08-04  Eric Blake  <ebb9@byu.net>
44105
44106         gnumakefile: use space, not TAB, outside of targets
44107         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44108
44109 2008-08-02  Jim Meyering  <meyering@redhat.com>
44110
44111         getdate.y: avoid locale-dependent date parsing failure
44112         In Turkish locales, getdate would fail to recognize keywords
44113         containing a lowercase "i".  The solution is not to rely on
44114         locale-sensitive case-conversion.
44115         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44116         (lookup_word): Use c_toupper in place of toupper.
44117         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44118         Reported by Vefa Bicakci <bicave@superonline.com> in
44119         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44120         * modules/getdate (Depends-on): Add c-ctype.
44121
44122 2008-08-02  Bruno Haible  <bruno@clisp.org>
44123
44124         * gnulib-tool (func_import): When updating or creating a .gitignore
44125         file, prepend each added line with a slash, and ignore leading slashes
44126         from the existing lines.
44127         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44128
44129 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44130
44131         Portability fix for GNU make 3.79.1.
44132         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44133         versions do not understand.
44134
44135 2008-08-01  Bruno Haible  <bruno@clisp.org>
44136
44137         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44138         * tests/test-isnanf.h (zero): New variable.
44139         (main): Avoid literal -0.0f.
44140         * tests/test-isnand.h (zero): New variable.
44141         (main): Avoid literal -0.0.
44142         * tests/test-isnanl.h (zero): New variable.
44143         (main): Avoid literal -0.0L.
44144         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44145         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44146         -0.0, -0.0L.
44147         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44148         (test_signbitd): Avoid literal -0.0.
44149         (test_signbitl): Avoid literal -0.0L.
44150         * tests/test-ceilf1.c (zero): New variable.
44151         (main): Avoid literal -0.0f.
44152         * tests/test-ceill.c (zero): New variable.
44153         (main): Avoid literal -0.0L.
44154         * tests/test-floorf1.c (zero): New variable.
44155         (main): Avoid literal -0.0f.
44156         * tests/test-floorl.c (zero): New variable.
44157         (main): Avoid literal -0.0L.
44158         * tests/test-roundf1.c (zero): New variable.
44159         (main): Avoid literal -0.0f.
44160         * tests/test-round1.c (zero): New variable.
44161         (main): Avoid literal -0.0.
44162         * tests/test-roundl.c (zero): New variable.
44163         (main): Avoid literal -0.0L.
44164         * tests/test-truncf1.c (zero): New variable.
44165         (main): Avoid literal -0.0f.
44166         * tests/test-trunc1.c (zero): New variable.
44167         (main): Avoid literal -0.0.
44168         * tests/test-truncl.c (zero): New variable.
44169         (main): Avoid literal -0.0L.
44170         * tests/test-frexp.c (zero): New variable.
44171         (main): Avoid literal -0.0.
44172         * tests/test-frexpl.c (zero): New variable.
44173         (main): Avoid literal -0.0L.
44174         * tests/test-ldexpl.c (zero): New variable.
44175         (main): Avoid literal -0.0L.
44176         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44177         (zerod, zerol): New variables.
44178         (test_function): Avoid literals -0.0, -0.0L.
44179         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44180         (zerod, zerol): New variables.
44181         (test_function): Avoid literals -0.0, -0.0L.
44182         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44183         (zerod, zerol): New variables.
44184         (test_function): Avoid literals -0.0, -0.0L.
44185         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44186         (zerod, zerol): New variables.
44187         (test_function): Avoid literals -0.0, -0.0L.
44188         * tests/test-strtod.c (zero): New variable.
44189         (main): Avoid literal -0.0.
44190         Reported by Jonathan C. Patschke <jp@centtech.com>.
44191
44192 2008-07-31  Jim Meyering  <meyering@redhat.com>
44193
44194         sha256.h: correct definition of SHA224_DIGEST_SIZE
44195         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44196         Reported by Paulie Pena IV <paulie4@gmail.com>.
44197         Define as 224 / 8, rather than as a literal.
44198         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44199         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44200         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44201
44202 2008-07-31  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44205         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44206         Reported by Jonathan Patschke <jp@centtech.com>.
44207
44208 2008-07-31  Bruno Haible  <bruno@clisp.org>
44209
44210         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44211         Reported by Paolo Bonzini <bonzini@gnu.org>.
44212
44213 2008-07-30  Eric Blake  <ebb9@byu.net>
44214
44215         test-strtod: allow compilation without -lm
44216         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44217         Reported by Dennis Clarke <blastwave@gmail.com>.
44218
44219 2008-07-28  Jim Meyering  <meyering@redhat.com>
44220
44221         bootstrap: work also when there are no .po files in po/
44222         * build-aux/bootstrap (update_po_files): Complete the change
44223         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44224
44225 2008-07-27  Jim Meyering  <meyering@redhat.com>
44226
44227         * users.txt: Add zile.
44228
44229 2008-07-26  Ben Pfaff  <blp@gnu.org>
44230
44231         Add missing dependencies on new m4/exponent[fdl].m4 files.
44232         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44233         * modules/isnand-nolibm: Add m4/exponentd.m4.
44234         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44235         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44236         m4/isnan[fdl].m4, because the macros actually used moved.
44237         Reported by Jim Meyering.
44238
44239 2008-07-14  Ben Pfaff  <blp@gnu.org>
44240
44241         Add isinf module.
44242         * lib/isinf.c: New file.
44243         * lib/math.in.h: Define isinf macro if we have decided to replace
44244         it.
44245         * m4/isinf.m4: New file.
44246         * m4/math_h.m4: Initialize and substitute variables for isinf
44247         module.
44248         * modules/isinf: New file.
44249         * modules/isinf-tests: New file.
44250         * modules/math: Add substitutions for new module.
44251         * tests/test-isinf.c: New file.
44252         * doc/posix-functions/isinf.texi: Mention new module.
44253         * MODULES.html.sh: Mention new module.
44254
44255 2008-07-14  Ben Pfaff  <blp@gnu.org>
44256
44257         Factor out some macros for use by additional modules.
44258         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44259         exponentf.m4.
44260         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44261         exponentd.m4.
44262         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44263         file exponentl.m4.
44264         * m4/exponentf.m4: New file.
44265         * m4/exponentd.m4: New file.
44266         * m4/exponentl.m4: New file.
44267         * modules/isnanf: Use new file m4/exponentf.m4.
44268         * modules/isnand: Use new file m4/exponentd.m4.
44269         * modules/isnanl: Use new file m4/exponentl.m4.
44270
44271 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44272
44273         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44274         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44275         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44276         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44277
44278         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44279         readlink on platforms without PATH_MAX.
44280
44281 2008-07-21  Eric Blake  <ebb9@byu.net>
44282
44283         Warn, not fail, on stale version.
44284         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44285
44286         Don't allow installation with stale devel version number.
44287         * top/GNUmakefile (_is-install-target): New macro.
44288         (_curr-ver): Forbid installation with stale version number.
44289
44290 2008-07-20  Bruno Haible  <bruno@clisp.org>
44291
44292         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44293         TESTS_ENVIRONMENT.
44294         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44295
44296 2008-07-20  Bruno Haible  <bruno@clisp.org>
44297
44298         * lib/c-stack.h (c_stack_action): Add documentation.
44299         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44300
44301 2008-07-20  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44304         * modules/readlink (License): Likewise.
44305
44306 2008-07-17  Eric Blake  <ebb9@byu.net>
44307
44308         * modules/c-stack (Link): Fix typo.
44309
44310         Make c-stack use libsigsegv, when available.
44311         * modules/c-stack (Depends-on): Add libsigsegv.
44312         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44313         needed.
44314         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44315         (segv_handler, overflow_handler, c_stack_action)
44316         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44317         implementation when libsigsegv is available, but only when using
44318         the library is necessary.
44319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44320         comment, explaining why XSI check fails on Linux.
44321         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44322         * tests/test-c-stack2.sh: Tweak skip message.
44323         * NEWS: Document new link-time requirements.
44324
44325 2008-07-16  Eric Blake  <ebb9@byu.net>
44326
44327         c-stack: Expose false positives when not using libsigsegv.
44328         * modules/c-stack-tests (Files): Expand test.
44329         * tests/test-c-stack.c (main): Add means to conditionally trigger
44330         non-overflow SIGSEGV.
44331         * tests/test-c-stack2.sh: New file.
44332
44333 2008-07-14  Bruno Haible  <bruno@clisp.org>
44334
44335         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44336         Reported by Eric Blake.
44337
44338 2008-07-14  Sam Steingold  <sds@gnu.org>
44339             Bruno Haible  <bruno@clisp.org>
44340
44341         New module libsigsegv.
44342         * modules/libsigsegv: New file.
44343         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44344         modifications.
44345         * MODULES.html.sh (Signal handling): New section.
44346
44347 2008-07-14  Bruno Haible  <bruno@clisp.org>
44348
44349         * modules/unictype/ctype-* (Description): Add the word "function".
44350         Improves the resulting doc in MODULES.html.
44351
44352 2008-07-12  Ben Pfaff  <blp@gnu.org>
44353
44354         Add longlong module.
44355         * modules/longlong: New file.
44356
44357 2008-07-12  Bruno Haible  <bruno@clisp.org>
44358
44359         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44360         to empty.
44361
44362 2008-07-10  Ben Pfaff  <blp@gnu.org>
44363
44364         Add isnan module.
44365         * doc/posix-functions/isnan.texi: Mention new module.
44366         * lib/math.in.h: Define isnan macro if we have decided to replace
44367         it.
44368         * m4/isnan.m4: New file.
44369         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44370         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44371         also.
44372         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44373         redundancy.
44374         * m4/math_h.m4: Initialize and substitute variables for isnan
44375         module.
44376         * modules/isnan: New file.
44377         * modules/isnan-tests: New file.
44378         * modules/math: Add substitutions for new module.
44379         * tests/test-isnan.c: New file.
44380         * MODULES.html.sh: Mention new module.
44381
44382 2008-07-10  Ben Pfaff  <blp@gnu.org>
44383
44384         Add isnanf module.
44385         * lib/isnanf.m4: New file.
44386         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44387         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44388         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44389         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44390         * modules/isnanf: New file.
44391         * modules/isnanf-tests: New file.
44392         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44393         files.
44394         * tests/test-isnanf-nolibm.c: factored most of its contents into
44395         new file tests/test-isnanf.h.
44396         * tests/test-isnanf.h: New file.
44397         * tests/test-isnanf.c: New file.
44398         * MODULES.html.sh: Mention new module.
44399         * doc/glibc-functions/isnanf.texi: Mention new module.
44400
44401 2008-07-10  Ben Pfaff  <blp@gnu.org>
44402
44403         Add isnand module.
44404         * lib/isnand.h: New file.
44405         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44406         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44407         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44408         functionality also.
44409         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44410         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44411         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44412         * modules/isnand: New file.
44413         * modules/isnand-tests: New file.
44414         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44415         files.
44416         * tests/test-isnand-nolibm.c: factored most of its contents into
44417         new file tests/test-isnand.h.
44418         * tests/test-isnand.h: New file.
44419         * tests/test-isnand.c: New file.
44420         * MODULES.html.sh: Mention new module.
44421
44422 2008-07-10  Ben Pfaff  <blp@gnu.org>
44423
44424         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44425         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44426         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44427         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44428         * modules/isnanf-nolibm: Update references to renamed files.
44429         * modules/isnand-nolibm: Likewise.
44430         * modules/isnanf-nolibm-tests: Likewise.
44431         * modules/isnand-nolibm-tests: Likewise.
44432         * lib/frexp.c: Likewise.
44433         * lib/isfinite.c: Likewise.
44434         * lib/signbitd.c: Likewise.
44435         * lib/signbitf.c: Likewise.
44436         * lib/vasnprintf.c: Likewise.
44437         * tests/test-ceilf1.c: Likewise.
44438         * tests/test-ceilf2.c: Likewise.
44439         * tests/test-floorf1.c: Likewise.
44440         * tests/test-floorf2.c: Likewise.
44441         * tests/test-frexp.c: Likewise.
44442         * tests/test-round1.c: Likewise.
44443         * tests/test-round2.c: Likewise.
44444         * tests/test-roundf1.c: Likewise.
44445         * tests/test-strtod.c: Likewise.
44446         * tests/test-trunc1.c: Likewise.
44447         * tests/test-trunc2.c: Likewise.
44448         * tests/test-truncf1.c: Likewise.
44449         * tests/test-truncf2.c: Likewise.
44450         * NEWS: Mention the renamed header files.
44451
44452 2008-07-11  Jim Meyering  <meyering@redhat.com>
44453
44454         vc-list-files: make the last-resort awk code more portable
44455         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44456         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44457         does not support it.
44458
44459 2008-07-10  Eric Blake  <ebb9@byu.net>
44460
44461         Work with tar's bootstrap.
44462         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44463         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44464         an m4 comment.
44465
44466 2008-07-09  Jim Meyering  <meyering@redhat.com>
44467
44468         posix-shell.m4: fix typo that made this test malfunction
44469         * m4/posix-shell.m4: Remove capitalization in variable name.
44470
44471 2008-07-08  Bruno Haible  <bruno@clisp.org>
44472
44473         * m4/onceonly.m4: Update comments.
44474         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44475
44476 2008-07-04  Jim Meyering  <meyering@redhat.com>
44477
44478         * users.txt: Add vc-dwim.
44479         (bison, coreutils): Use the gitweb URL.
44480
44481 2008-07-03  Jim Meyering  <meyering@redhat.com>
44482
44483         * users.txt: Add libffcall.  From Sam Steingold.
44484
44485 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44486
44487         getdate.y: do not ignore TZ with relative day, month or year offset
44488         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44489         relative-date-handling, since otherwise, the latter would clobber the
44490         sole output (an updated Start value) of the tz-handling block.
44491         * tests/test-getdate.c: Tests for the fix
44492
44493 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44494
44495         Recognize 'foo_LIBRARIES += libgnu.a'.
44496         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44497         makefile snippet has already specified an installation location,
44498         also using '+='.
44499
44500 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44501
44502         getdate.y: factor out common actions
44503         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44504         Use them in place of open-coded actions.
44505
44506 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44507
44508         Add self-test for getdate module.
44509         * modules/getdate-tests: New file.
44510         * tests/test-getdate.c: New file.
44511
44512 2008-06-29  Bruno Haible  <bruno@clisp.org>
44513
44514         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44515         .gitignore.
44516         Reported by Sylvain Beucler <beuc@beuc.net>.
44517
44518 2008-06-29  Bruno Haible  <bruno@clisp.org>
44519
44520         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44521         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44522
44523 2008-06-29  Bruno Haible  <bruno@clisp.org>
44524
44525         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44526         EXTRA_DIST.
44527         Reported by Sylvain Beucler <beuc@beuc.net>.
44528
44529 2008-06-26  Jim Meyering  <meyering@redhat.com>
44530
44531         make several modules depend on the "open" module
44532         This provides slightly increased consistency when opening-for-write
44533         the name of a non-directory spelled with a trailing slash.
44534         * modules/chdir-safer: Likewise.
44535         * modules/chown: Likewise.
44536         * modules/clean-temp: Likewise.
44537         * modules/copy-file: Likewise.
44538         * modules/fchdir: Likewise.
44539         * modules/fcntl-safer: Likewise.
44540         * modules/pipe: Likewise.
44541         * modules/utime: Likewise.
44542         Prompted by Eric Blake and Bruno Haible.
44543
44544 2008-06-24  Andreas Schwab  <schwab@suse.de>
44545
44546         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44547         literals can be used as initializers for global variables.
44548
44549 2008-06-23  Eric Blake  <ebb9@byu.net>
44550
44551         Make gnulib-cache.m4 easier to diff.
44552         * gnulib-tool (func_import): Allow newlines when reading cached
44553         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44554
44555 2008-06-23  Bruno Haible  <bruno@clisp.org>
44556
44557         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44558         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44559         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44560         m4/signalblocking.m4.
44561         (gl_PREREQ_SIGACTION): Don't invoke it.
44562         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44563         gl_PREREQ_SIG_HANDLER_H.
44564         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44565         Don't check for sigaction here.
44566
44567 2008-06-23  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44570         (install_handlers): Don't set the SA_RESETHAND flag.
44571
44572 2008-06-23  Bruno Haible  <bruno@clisp.org>
44573
44574         * m4/sigaction.m4: Comment fixes.
44575         * lib/signal.in.h: Likewise.
44576
44577 2008-06-23  Eric Blake  <ebb9@byu.net>
44578
44579         Fix typo.
44580         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44581
44582         Avoid SA_ namespace.
44583         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44584         Reported by Ralf Wildenhues.
44585
44586         Avoid test failure due to SA_RESTORER.
44587         * tests/test-sigaction.c (SA_MASK): New macro.
44588         (main): Avoid failing due to extension flags being set.
44589         Reported by Jim Meyering.
44590
44591         Revert use of sig-handler.h in sigprocmask.c.
44592         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44593         it requires the existence of struct sigaction.
44594         * lib/sigprocmask.c (handler_t): Restore typedef.
44595         (rpl_signal, old_handlers): Use local type.
44596
44597 2008-06-22  Bruno Haible  <bruno@clisp.org>
44598
44599         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44600         conditionally.
44601         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44602
44603 2008-06-22  Bruno Haible  <bruno@clisp.org>
44604
44605         * doc/posix-functions/siginterrupt.texi: Move note.
44606
44607         * lib/signal.in.h (SA_RESTART): New macro.
44608         * lib/sigaction.c: Update comment.
44609
44610         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44611
44612         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44613         (gl_PREREQ_SIGPROCMASK): Invoke it.
44614         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44615
44616         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44617
44618         * lib/sigprocmask.c: Update a comment.
44619
44620 2008-06-21  Eric Blake  <ebb9@byu.net>
44621
44622         Use sigaction module rather than signal().
44623         * modules/c-stack (Depends-on): Add sigaction.
44624         * modules/fatal-signal (Depends-on): Likewise.
44625         * modules/nanosleep (Depends-on): Likewise.
44626         * modules/sigprocmask (Files): Add sig-handler.h.
44627         * modules/sigaction (Files): Likewise.
44628         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44629         Eggert.
44630         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44631         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44632         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44633         (init_fatal_signals): Likewise.
44634         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44635         (siginterrupt): Delete fallback.
44636         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44637         instead.
44638         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44639         siginterrupt.
44640
44641         New module sigaction, for mingw.
44642         * modules/sigaction: New module...
44643         * modules/sigaction-tests: ...and its test.
44644         * m4/sigaction.m4: New file.
44645         * lib/sigaction.c: Likewise.
44646         * tests/test-sigaction.c: Likewise.
44647         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44648         * modules/signal (Makefile.am): Likewise.
44649         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44650         needed.
44651         * doc/posix-headers/signal.texi (signal.h): Mention provided
44652         types.
44653         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44654         that sigaction is preferable.
44655         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44656         module.
44657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44658         sigaction.
44659
44660         Improve robustness of sigprocmask by overriding signal.
44661         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44662         is in use.
44663         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44664         (SIGKILL, SIGSTOP): Provide fallbacks.
44665         (rpl_signal): Implement.
44666         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44667         signal can be called inside handlers.
44668
44669         Fix nanosleep module on mingw.
44670         * modules/nanosleep (Depends-on): Add sys_select.
44671         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44672
44673         Fix licensing of sigprocmask.
44674         * modules/raise (License): Relicense as LGPL.
44675
44676 2008-06-21  Bruno Haible  <bruno@clisp.org>
44677
44678         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44679         result if it contains question marks.
44680         Reported by Michael Geng <linux@michaelgeng.de>.
44681
44682 2008-06-19  Bruno Haible  <bruno@clisp.org>
44683
44684         Fix CVS-ism.
44685         * doc/gnulib.texi: Include updated-stamp.texi.
44686         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44687         (updated-stamp.texi): New rule.
44688         (gnulib.info): Depend on it.
44689         * doc/.gitignore: Add updated-stamp.texi.
44690         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44691
44692 2008-06-19  Bruno Haible  <bruno@clisp.org>
44693
44694         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44695         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44696
44697 2008-06-19  Eric Blake  <ebb9@byu.net>
44698
44699         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44700         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44701         Reported by Stepan Kasal.
44702
44703 2008-06-18  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44706         Reported by Eric Blake.
44707
44708 2008-06-18  Eric Blake  <ebb9@byu.net>
44709
44710         Work around cygwin 1.5.25 strsignal bug.
44711         * tests/test-strsignal.c: Allow for const char *.
44712         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44713
44714 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44715
44716         * users.txt: Update URL to article and add author/date
44717         information.
44718
44719 2008-06-17  Bruno Haible  <bruno@clisp.org>
44720
44721         New macro gl_DISABLE_THREADS.
44722         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44723         if the user did not pass --enable-threads or --disable-threads option.
44724         (gl_DISABLE_THREADS): New macro.
44725         Reported by Eric Blake <ebb9@byu.net>.
44726
44727 2008-06-17  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44730         when the macro ignores it.
44731         Based on a patch by Eric Blake <ebb9@byu.net>.
44732
44733 2008-06-17  Bruno Haible  <bruno@clisp.org>
44734
44735         * modules/tls (License): Change to LGPLv2+.
44736         Reported by Eric Blake.
44737
44738 2008-06-17  Eric Blake  <ebb9@byu.net>
44739
44740         Simplify c-stack prerequisites.
44741         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44743         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44744         check.
44745         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44746         <sys/resource.h>.
44747
44748         Move c-stack test into testsuite.
44749         * modules/c-stack-tests: New file.
44750         * lib/c-stack.c [DEBUG]: Move test program...
44751         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44752         fail test if sigaltstack is lacking.
44753         * tests/test-c-stack.sh: New driver file.
44754
44755 2008-06-16  Eric Blake  <ebb9@byu.net>
44756
44757         Use raise module consistently.
44758         * modules/fatal-signal (Depends-on): Add raise.
44759         * modules/sigprocmask (Depends-on): Likewise.
44760         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44761         * lib/sigprocmask.c (sigprocmask): Likewise.
44762         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44763         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44764
44765         Fix compliance bug in sigpending.
44766         * lib/sigprocmask.c (sigpending): Return pending array via
44767         parameter, not return value.
44768
44769 2008-06-14  Eric Blake  <ebb9@byu.net>
44770
44771         Improve obstack-printf test code.
44772         * tests/test-obstack-printf.c (test_function): Fix comment, and
44773         simplify usage of obstack_* in macros.  Add a test for coverage.
44774         Reported by Bruno Haible.
44775
44776 2008-06-14  Bruno Haible  <bruno@clisp.org>
44777
44778         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44779         array size as a constant, not as a const variable.
44780         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44781         AC_USE_SYSTEM_EXTENSIONS.
44782         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44783         Test whether the obstack_printf function actually exists.
44784         * modules/obstack-printf (Depends-on): Add extensions.
44785         (Include): Remove obstack.h.
44786         * modules/obstack-printf-posix (Depends-on): Add extensions.
44787         (Include): Remove obstack.h.
44788
44789 2008-06-13  Eric Blake  <ebb9@byu.net>
44790
44791         Add obstack-printf and obstack-printf-posix modules.
44792         * modules/obstack-printf: New file.
44793         * modules/obstack-printf-posix: Likewise.
44794         * MODULES.html.sh (Misc): Mention them.
44795         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44796         Likewise.
44797         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44798         Likewise.
44799         * modules/stdio (Makefile.am): Accomodate new modules.
44800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44801         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44802         Declare.
44803         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44804         functions.
44805         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44806         (gl_REPLACE_OBSTACK_PRINTF): New macros
44807         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44808         * tests/test-obstack-printf.c: New file.
44809         * modules/obstack-printf-tests: Likewise.
44810         * modules/obstack-printf-posix-tests: Likewise.
44811
44812 2008-06-11  Bruno Haible  <bruno@clisp.org>
44813
44814         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44815         * lib/open.c: Include errno.h.
44816         (open): Fail when attempting to write to a file that has a trailing
44817         slash.
44818         * tests/test-open.c (main): Test against trailing slash bug.
44819         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44820
44821 2008-06-10  Bruno Haible  <bruno@clisp.org>
44822
44823         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44824         for $? to work inside the trap command, with various /bin/sh-s.
44825         * tests/test-vc-list-files-cvs.sh: Likewise.
44826
44827 2008-06-10  Bruno Haible  <bruno@clisp.org>
44828
44829         * lib/acl-internal.h: Don't include gettext.h here.
44830         * lib/set-mode-acl.c: Include gettext.h here.
44831         * lib/copy-acl.c: Likewise.
44832
44833 2008-06-10  Bruno Haible  <bruno@clisp.org>
44834
44835         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44836         * lib/wait-process.c (wait_subprocess): Likewise.
44837         * lib/execute.h (execute): Add termsigp argument.
44838         * lib/execute.c (execute): Likewise.
44839         * lib/csharpcomp.c (compile_csharp_using_pnet,
44840         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44841         * lib/csharpexec.c (execute_csharp_using_pnet,
44842         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44843         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44844         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44845         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44846         is_jikes_present): Update.
44847         * lib/javaexec.c (execute_java_class): Update.
44848         * lib/javaversion.c (execute_and_read_line): Update.
44849         * NEWS: Document the changes.
44850         Reported by Eric Blake.
44851
44852 2008-06-10  Eric Blake  <ebb9@byu.net>
44853
44854         Add missing include.
44855         * tests/test-strstr.c (includes): Add <signal.h>.
44856         * tests/test-strcasestr.c (includes): Likewise.
44857         * tests/test-memmem.c (includes): Likewise.
44858
44859 2008-06-10  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/wait-process.c (wait_subprocess): Add an assertion.
44862
44863 2008-06-10  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44866
44867 2008-06-10  Bruno Haible  <bruno@clisp.org>
44868
44869         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44870         using alarm().
44871         * tests/test-strcasestr.c (main): Likewise.
44872         * tests/test-strstr.c (main): Likewise.
44873
44874 2008-06-09  Bruno Haible  <bruno@clisp.org>
44875
44876         Work around the Solaris 10 ACE ACLs ABI change.
44877         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44878         declare if ACL_NO_TRIVIAL is present.
44879         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44880         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44881         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44882         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44883         define if ACL_NO_TRIVIAL is present.
44884         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44885         and use the current ABI.
44886         (file_has_acl): Use same #if condition as elsewhere.
44887         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44888         in use, and use the current ABI.
44889         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44890         Reported by Jim Meyering.
44891
44892 2008-06-09  Eric Blake  <ebb9@byu.net>
44893
44894         Work around environments that (stupidly) ignore SIGALRM.
44895         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44896         before using alarm().
44897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44899         Reported by Ian Beckwith <ianb@erislabs.net>.
44900
44901         Produce autobuild blurb earlier in log.
44902         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44903
44904 2008-06-09  Jim Meyering  <meyering@redhat.com>
44905         and OndÅ™ej Vašík  <ovasik@redhat.com>
44906
44907         utimens.c: correct kernel bug work-around
44908         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44909         failure, not success, and the kernel bug we're trying to work
44910         around affects not just the utimensat call, but also the fallback
44911         futimens call.
44912         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44913         not success.
44914         [HAVE_FUTIMENS]: Use the same work-around, here.
44915
44916 2008-06-09  Jim Meyering  <meyering@redhat.com>
44917
44918         add more guards around definition of ACE_-related code
44919         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44920         ALLOW and ACE_OWNER are also defined.
44921
44922 2008-06-08  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/acl-internal.h: Add me as co-author.
44925         * lib/file-has-acl.c: Likewise.
44926         * lib/set-mode-acl.c: Likewise.
44927         * lib/copy-acl.c: Likewise.
44928
44929 2008-06-08  Bruno Haible  <bruno@clisp.org>
44930
44931         Add support for AIX ACLs.
44932         * lib/acl-internal.h (acl_nontrivial): New declaration.
44933         * lib/file-has-acl.c (acl_nontrivial): New function.
44934         (file_has_acl): Add implementation using AIX 4 ACL API.
44935         * lib/set-mode-acl.c (qset_acl): Likewise.
44936         * lib/copy-acl.c (qcopy_acl): Likewise.
44937
44938 2008-06-08  Bruno Haible  <bruno@clisp.org>
44939
44940         Add support for HP-UX ACLs.
44941         * lib/acl-internal.h (acl_nontrivial): New declaration.
44942         * lib/file-has-acl.c (acl_nontrivial): New function.
44943         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44944         * lib/set-mode-acl.c (qset_acl): Likewise.
44945         * lib/copy-acl.c (qcopy_acl): Likewise.
44946
44947 2008-06-08  Bruno Haible  <bruno@clisp.org>
44948
44949         Add support for Cygwin ACLs.
44950         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44951         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44952         the chmod_or_fchmod call.
44953         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44954
44955 2008-06-08  Bruno Haible  <bruno@clisp.org>
44956
44957         Fix bug with setuid modes in Solaris 10+ code.
44958         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44959         succeeded, when the mode contains some special bits.
44960
44961 2008-06-08  Bruno Haible  <bruno@clisp.org>
44962
44963         Add support for Solaris 7..10 ACLs.
44964         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44965         declarations.
44966         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44967         functions.
44968         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44969         * lib/set-mode-acl.c (qset_acl): Likewise.
44970         * lib/copy-acl.c (qcopy_acl): Likewise.
44971
44972 2008-06-08  Bruno Haible  <bruno@clisp.org>
44973
44974         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44975         declaration.
44976         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44977         (acl_access_nontrivial): Remove MacOS X case.
44978         (file_has_acl): Use acl_extended_nontrivial.
44979         * lib/copy-acl.c (qcopy_acl): Likewise.
44980
44981 2008-06-08  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44984
44985 2008-06-08  Jim Meyering  <meyering@redhat.com>
44986
44987         * modules/acl (Maintainer): Add Bruno Haible.
44988
44989 2008-06-07  Bruno Haible  <bruno@clisp.org>
44990
44991         Improve support for Tru64 ACLs.
44992         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44993         ACL on OSF/1.
44994
44995 2008-06-07  Bruno Haible  <bruno@clisp.org>
44996
44997         Add support for MacOS X ACLs.
44998         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44999         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45000         * lib/set-mode-acl.c (qset_acl): Likewise.
45001         * lib/copy-acl.c (qcopy_acl): Likewise.
45002
45003 2008-06-07  Bruno Haible  <bruno@clisp.org>
45004
45005         Fix memory leak introduced on 2008-05-22.
45006         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45007         use.
45008
45009 2008-06-07  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45012         to construct an empty ACL.
45013
45014 2008-06-07  Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45017         precisely.
45018         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45019
45020 2008-06-07  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45023         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45024
45025 2008-06-07  Bruno Haible  <bruno@clisp.org>
45026
45027         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45028         regardless of POSIX.
45029         * doc/posix-functions/_longjmp.texi: Likewise.
45030         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45031         SystemV platform in this case.
45032
45033 2008-06-06  Eric Blake  <ebb9@byu.net>
45034
45035         Document abort() bugs.
45036         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45037
45038         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45039         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45040         sigsetjmp.
45041         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45042         siglongjmp, but only as a macro.
45043         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45044         is obsolete.
45045         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45046
45047         Tweak documentation to cover cygwin argz bugs.
45048         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45049         argz bug fix; no code change needed since no cygwin releases
45050         occurred between the last fix and the bug being tested.
45051         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45052         module and recently fixed cygwin bugs.
45053         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45054         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45055         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45056         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45057         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45058         Likewise.
45059         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45060         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45061         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45062         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45063         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45064         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45065         Likewise.
45066
45067         Avoid gcc warning on cygwin.
45068         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45069         !ACL_NO_TRIVIAL]: Avoid unused variable.
45070
45071 2008-06-05  Eric Blake  <ebb9@byu.net>
45072
45073         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45074         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45075         git-version-gen fails to come up with a version.
45076         Reported by Simon Josefsson.
45077
45078 2008-06-05  Jim Meyering  <meyering@redhat.com>
45079             Paul Eggert  <eggert@cs.ucla.edu>
45080
45081         utimens.c: work around a probable Linux kernel bug
45082         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45083         appears to be a kernel bug that causes utimensat to return 280
45084         instead of 0, indicating success.
45085
45086 2008-06-04  Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45089         2008-06-01 commit.
45090
45091 2008-06-04  Bruno Haible  <bruno@clisp.org>
45092
45093         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45094         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45095         (file_has_acl): Use it. Save errno afterwards.
45096         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45097
45098 2008-06-03  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45101         draft code. Simplify #ifs.
45102         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45103         Put Solaris code after POSIX-draft code. Fix comments regarding
45104         Solaris 10, HP-UX. Mention Cygwin.
45105         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45106
45107 2008-06-03  Eric Blake  <ebb9@byu.net>
45108
45109         Provide fallback for older kernels.
45110         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45111         Provide runtime fallback if kernel lacks support.
45112         Reported by Mike Frysinger.
45113
45114 2008-06-02  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45117         it exists.
45118
45119 2008-06-02  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45122         * lib/copy-acl.c (qcopy_acl): Update comment.
45123
45124 2008-06-02  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45127         like ACL APIs.
45128
45129 2008-06-02  Bruno Haible  <bruno@clisp.org>
45130
45131         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45132         * tests/test-set-mode-acl.sh: Likewise.
45133         * tests/test-copy-acl.sh: Likewise.
45134         * tests/test-copy-file.sh: Likewise.
45135
45136 2008-06-02  Bruno Haible  <bruno@clisp.org>
45137
45138         * tests/test-file-has-acl.sh: Remove unused code.
45139
45140 2008-06-01  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45143         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45144         messages.
45145         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45146
45147 2008-06-01  Bruno Haible  <bruno@clisp.org>
45148
45149         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45150         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45151         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45152         APIs.
45153         * modules/acl-tests (configure.ac): Remove tests now contained in
45154         m4/acl.m4.
45155
45156 2008-06-02  Jim Meyering  <meyering@redhat.com>
45157
45158         announce-gen: use a better key-server host name
45159         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45160         it may be more consistently reliable.  Suggested by Werner Koch
45161         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45162
45163 2008-06-01  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45166         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45167
45168 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45169
45170         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45171
45172 2008-06-01  Bruno Haible  <bruno@clisp.org>
45173
45174         New ACL tests.
45175         * tests/test-file-has-acl.sh: New file.
45176         * tests/test-file-has-acl.c: New file.
45177         * tests/test-set-mode-acl.sh: New file.
45178         * tests/test-set-mode-acl.c: New file.
45179         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45180         * tests/test-copy-acl.c: New file.
45181         * modules/acl-tests: New file, based on modules/copy-file-tests.
45182         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45183         (Depends-on): Add acl-tests.
45184         (configure.ac): Remove checks.
45185         (Makefile.am): Don't create test-sameacls program here any more.
45186
45187 2008-06-01  Bruno Haible  <bruno@clisp.org>
45188
45189         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45190         * tests/test-sameacls.c: Include progname.h.
45191         (main): Invoke set_program_name. Portability fixes for MacOS X,
45192         Solaris, HP-UX.
45193
45194 2008-06-01  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45197         function.
45198         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45199
45200 2008-06-01  Bruno Haible  <bruno@clisp.org>
45201
45202         * modules/rpmatch (Depends-on): Add strdup.
45203
45204 2008-06-01  Bruno Haible  <bruno@clisp.org>
45205
45206         * lib/pipe.c: Include unistd-safer.h.
45207         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45208         * modules/pipe (Depends-on): Add unistd-safer.
45209
45210 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45211
45212         * modules/autobuild (configure.ac): Call AB_INIT.
45213
45214 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45215
45216         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45217         Suggested by Bruno Haible <bruno@clisp.org>.
45218
45219 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45220
45221         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45222         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45223         <bruno@clisp.org>.
45224
45225 2008-05-29  Eric Blake  <ebb9@byu.net>
45226
45227         Prefer new POSIX 200x interfaces over futimesat.
45228         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45229         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45230         when available.
45231         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45232
45233 2008-05-28  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/stpcpy (License): Change to LGPLv2+.
45236         Requested by David Lutterkort <dlutter@redhat.com>.
45237
45238 2008-05-27  Bruno Haible  <bruno@clisp.org>
45239
45240         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45241         current mingw.
45242         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45243
45244 2008-05-27  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/iconv_open (Link): New section, from module 'iconv'.
45247         * modules/striconv (Link): Likewise.
45248         * modules/striconveh (Link): Likewise.
45249         * modules/xstriconv (Link): Likewise.
45250         * modules/unicodeio (Link): Likewise.
45251         * modules/propername (Link): Likewise.
45252         Reported by Jim Meyering.
45253
45254 2008-05-26  Jim Meyering  <meyering@redhat.com>
45255
45256         sha256: do not artificially restrict buffer length to be < 2^32
45257         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45258         uint32_t to size_t.
45259         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45260         to match.
45261
45262         avoid unaligned access errors, e.g., on sparc
45263         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45264         direct access through a possibly-unaligned uint64* pointer.
45265         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45266         direct access through a possibly-unaligned uint32* pointer.
45267         Prompted by this patch from Tom "spot" Callaway:
45268         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45269
45270         sha512.c: fix typo in comment
45271         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45272
45273 2008-05-25  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45276         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45277         (Makefile.am): Update lib_SOURCES.
45278
45279 2008-05-25  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45282
45283 2008-05-25  Jim Meyering  <meyering@redhat.com>
45284
45285         useless-if-before-free: freed expr may have white-space differences
45286         * build-aux/useless-if-before-free: Recognize cases in which the
45287         freed expression differs from the tested one in embedded white
45288         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45289         $1 was used, so we can't make any regexp shy.  Improved tests now
45290         detect this.
45291
45292         useless-if-before-free: accept white space in the expression.
45293         * build-aux/useless-if-before-free: For now, any white space
45294         in the expression must be identical in the free argument.
45295
45296         useless-if-before-free: efficiency tweak
45297         * build-aux/useless-if-before-free: Make the expression-matching
45298         regexp "shy".
45299         Make the *outer* regexp shy, not the expr-matching one.
45300
45301         update code-in-comment to accept cast of free arg
45302         * build-aux/useless-if-before-free: Update regexp.
45303
45304 2008-05-25  Bruno Haible  <bruno@clisp.org>
45305
45306         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45307         * modules/copy-file-tests (Files, Makefile.am): Update.
45308         * tests/test-copy-file.c (func_test_copy): Update.
45309
45310 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45311
45312         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45313
45314 2008-05-23  Bruno Haible  <bruno@clisp.org>
45315
45316         Improve support for ACLs on OSF/1.
45317         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45318         Remove fallback for unknown flavors of ACLs.
45319
45320 2008-05-22  Bruno Haible  <bruno@clisp.org>
45321
45322         Add support for ACLs on OSF/1.
45323         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45324         replacements.
45325         (acl_free_text): New macro fallback.
45326         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45327         acl_free.
45328         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45329         acl_free_text function. Require AC_C_INLINE.
45330
45331 2008-05-22  Bruno Haible  <bruno@clisp.org>
45332
45333         Make copy_acl work on MacOS X 10.5.
45334         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45335         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45336         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45337         If MODE_INSIDE_ACL, don't assume that every system has the same text
45338         representation for ACLs as FreeBSD.
45339         * lib/copy-acl.c (copy_acl): Add support for platforms with
45340         !MODE_INSIDE_ACL.
45341         * lib/file-has-acl.c (file_has_acl): Likewise.
45342         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45343         FreeBSD, MacOS X, or IRIX, respectively.
45344
45345 2008-05-22  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/acl.h: Don't include <sys/acl.h>.
45348         (GETACLCNT): Move fallback to lib/acl-internal.h.
45349         * lib/acl-internal.h: Include <sys/acl.h> here.
45350         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45351
45352 2008-05-22  Bruno Haible  <bruno@clisp.org>
45353
45354         Split off copy_acl function to separate file.
45355         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45356         * lib/acl.c (copy_acl): Moved function to separate file.
45357         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45358         * modules/acl (Files): Add lib/copy-acl.c.
45359         (Makefiles.am): Augment lib_SOURCES.
45360
45361 2008-05-22  Bruno Haible  <bruno@clisp.org>
45362
45363         * modules/copy-file-tests: New file.
45364         * tests/test-copy-file.sh: New file.
45365         * tests/test-copy-file.c: New file.
45366         * tests/test-copy-file-sameacls.c: New file.
45367
45368 2008-05-22  Eric Blake  <ebb9@byu.net>
45369
45370         Avoid gcc warning.
45371         * tests/test-memcmp.c (main): Pass NULL indirectly.
45372
45373 2008-05-21  Bruno Haible  <bruno@clisp.org>
45374
45375         Add reference doc about ACLs.
45376         * doc/acl-resources.txt: New file.
45377         * doc/acl-cygwin.txt: New file.
45378
45379 2008-05-21  Bruno Haible  <bruno@clisp.org>
45380
45381         Avoid one more warning from gcc.
45382         * lib/vasnprintf.c (IF_LINT): Update comments.
45383         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45384
45385 2008-05-21  Jim Meyering  <meyering@redhat.com>
45386
45387         avoid a warning from gcc
45388         * lib/vasnprintf.c (IF_LINT): Define.
45389         (scale10_round_decimal_long_double):
45390         Use it to avoid a "may be used uninitialized" warning.
45391         (scale10_round_decimal_double): Likewise.
45392
45393 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45394
45395         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45396         declared.
45397
45398 2008-05-20  Bruno Haible  <bruno@clisp.org>
45399
45400         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45401         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45402
45403 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45404
45405         * modules/memcmp-tests: New file.
45406         * tests/test-memcmp.c: New file.
45407
45408 2008-05-19  Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/propername (Notice, configure.ac): Put quoted "..." into
45411         --keyword option.
45412         * lib/propername.h: Update comments accordingly.
45413         Reported by Eric Blake.
45414
45415 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45416
45417         * modules/getpass-gnu (Depends-on): Add fseeko.
45418
45419 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45420
45421         * modules/base64-tests: New file.
45422
45423 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45424
45425         * lib/base64.c (base64_decode_ctx): If a decode context structure
45426         was passed in use it to ignore newlines.  If a context structure
45427         was _not_ passed in, continue to treat newlines as garbage (this
45428         is the historical behavior).  Formerly base64_decode.
45429         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45430         takes a decode context structure.
45431         * lib/base64.h (base64_decode): Macro for four-argument calls.
45432         (base64_decode_alloc): Likewise.
45433         * lib/base64.c (base64_decode_ctx): If a decode context structure
45434         was passed in use it to ignore newlines.  If a context structure
45435         was _not_ passed in, continue to treat newlines as garbage (this
45436         is the historical behavior).  Formerly base64_decode.
45437         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45438         takes a decode context structure.
45439         * lib/base64.h (base64_decode): Macro for four-argument calls.
45440         (base64_decode_alloc): Likewise.
45441
45442 2008-05-19  Jim Meyering  <meyering@redhat.com>
45443
45444         avoid a warning from gcc
45445         * lib/trim.c (IF_LINT): Define.
45446         (trim2): Use it to avoid a "may be used uninitialized" warning.
45447
45448         Fix doc typo.
45449         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45450
45451 2008-05-19  Bruno Haible  <bruno@clisp.org>
45452
45453         * doc/glibc-functions/getpass.texi: Document limits of other
45454         implementations.
45455
45456 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45457             Bruno Haible <bruno@clisp.org>
45458
45459         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45460
45461 2008-05-18  Bruno Haible  <bruno@clisp.org>
45462
45463         * modules/propername: New file, from GNU gettext.
45464         * lib/propername.h: New file, from GNU gettext.
45465         * lib/propername.c: New file, from GNU gettext.
45466         * MODULES.html.sh (Internationalization functions): Add propername.
45467
45468 2008-05-16  Jim Meyering  <meyering@redhat.com>
45469             Bruno Haible  <bruno@clisp.org>
45470
45471         Avoid some warnings from "gcc -Wshadow".
45472         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45473
45474 2008-05-15  Eric Blake  <ebb9@byu.net>
45475
45476         Extend previous patch to cygwin 1.7.0.
45477         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45478         fast implementation in cygwin >= 1.7.0.
45479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45481
45482 2008-05-15  Bruno Haible  <bruno@clisp.org>
45483
45484         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45485         implementation in glibc >= 2.9.
45486         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45488
45489 2008-05-15  Bruno Haible  <bruno@clisp.org>
45490
45491         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45492         (Unicode string functions): Add unilbrk/*.
45493         Reported by Karl Berry.
45494
45495 2008-05-15  Eric Blake  <ebb9@byu.net>
45496
45497         Fix violation of <stdbool.h> replacement in regex.
45498         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45499         * lib/regexec.c (re_search_internal): Likewise.
45500         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45501
45502 2008-05-15  Jim Meyering  <meyering@redhat.com>
45503
45504         avoid distracting test output when git or cvs is not found
45505         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45506         * tests/test-vc-list-files-git.sh: Likewise.
45507
45508 2008-05-15  Eric Blake  <ebb9@byu.net>
45509
45510         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45511         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45512         glibc version.
45513         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45514         * doc/posix-functions/strstr.texi (strstr): Likewise.
45515         * lib/str-two-way.h (MAX): Sychronize with glibc.
45516
45517 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45518
45519         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45520         opr.ctx_type.
45521         (calc_first): Initialize constraint field.
45522         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45523         Fix grammar.
45524         (duplicate_node): Merge constraint field for all node types.
45525         (calc_eclosure_iter): Look at constraint field for all node types.
45526         * lib/regex_internal.c (create_cd_newstate): Don't look at
45527         opr.ctx_type.
45528
45529 2008-05-14  Bruno Haible  <bruno@clisp.org>
45530
45531         Help GCC to do better code generation.
45532         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45533         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45534         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45535         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45536         Declare with attribute 'malloc' if supported.
45537
45538 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45539
45540         use "echo STR|wc -c" rather than unportable "expr length STR"
45541         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45542         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45543
45544 2008-05-14  Jim Meyering  <meyering@redhat.com>
45545
45546         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45547         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45548         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45549         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45550         via Collin Lasse.
45551
45552 2008-05-14  Eric Blake  <ebb9@byu.net>
45553
45554         Avoid quadratic growth in gl_LIBSOURCES.
45555         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45556         Suggested by Bruno Haible.
45557
45558         Test xmemdup0.
45559         * modules/xmemdup0-tests: New file.
45560         * tests/test-xmemdup0.c: Likewise.
45561
45562 2008-05-13  Eric Blake  <ebb9@byu.net>
45563
45564         Split xmemdup0 into its own module.
45565         * modules/xmemdup0: New file.
45566         * lib/xmemdup0.h: Likewise.
45567         * lib/xmemdup0.c: Likewise.
45568         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45569         * lib/xalloc.h (xmemdup0): Remove.
45570         * lib/xmalloc.c (xmemdup0): Likewise.
45571
45572 2008-05-13  Eric Blake  <ebb9@byu.net>
45573             Bruno Haible  <bruno@clisp.org>
45574
45575         Reduce number of forks required during autoconf.
45576         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45577         and gl_LIBSOURCES_DIR.
45578         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45579         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45580         m4_syscmd per file.
45581         <m4_foreach_w>: Move...
45582         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45583
45584 2008-05-13  Eric Blake  <ebb9@byu.net>
45585
45586         * gnulib-tool: Fix various comment typos.
45587
45588 2008-05-12  Bruno Haible  <bruno@clisp.org>
45589
45590         Tailor the linebreaking algorithm.
45591         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45592
45593 2008-05-12  Bruno Haible  <bruno@clisp.org>
45594
45595         Update to Unicode 5.0.0.
45596         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45597         LBP_JV, LBP_JT. Redistribute values.
45598         (unilbrk_table): Change size.
45599         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45600         Unicode TR#14 rev. 22.
45601         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45602         LBP_JV, LBP_JT. Redistribute values.
45603         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45604         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45605         Update.
45606         * lib/unilbrk/lbrkprop1.h: Regenerated.
45607         * lib/unilbrk/lbrkprop2.h: Regenerated.
45608         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45609         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45610         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45611         Likewise.
45612         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45613         Likewise.
45614         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45615         result.
45616         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45617         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45618         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45619         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45620         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45621         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45622
45623 2008-05-11  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45626
45627 2008-05-11  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45630         * modules/unilbrk/gen-lbrk: New file.
45631
45632 2008-05-11  Bruno Haible  <bruno@clisp.org>
45633
45634         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45635         * m4/sha512.m4 (gl_SHA512): Likewise.
45636
45637 2008-05-11  Jim Meyering  <meyering@redhat.com>
45638
45639         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45640         * modules/crypto/sha256: New file.
45641         * modules/crypto/sha512: Likewise.
45642         * lib/sha256.c: Likewise.
45643         * lib/sha256.h: Likewise.
45644         * lib/sha512.c: Likewise.
45645         * lib/sha512.h: Likewise.
45646         * lib/u64.h: Likewise.
45647         * m4/sha256.m4: Likewise.
45648         * m4/sha512.m4: Likewise.
45649         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45650
45651 2008-05-10  Bruno Haible  <bruno@clisp.org>
45652
45653         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45654         (Input/Output <stdio.h>): Add xprintf.
45655         (Signal handling <signal.h>): Add strsignal.
45656         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45657         (Core language properties): Add func.
45658         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45659         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45660         strings.
45661         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45662         (Input/output): New section.
45663         (File system functions): Add openat-die, stat-macros.
45664         (Networking functions): Add sockets.
45665         (Unicode string functions): Add unictype/*.
45666         (Support for building libraries and executables): Add gperf.
45667         (Support for building documentation): Add agpl-3.0.
45668         (Misc): Add nocrash.
45669
45670 2008-05-10  Bruno Haible  <bruno@clisp.org>
45671
45672         * modules/unictype/gen-ctype: New file.
45673
45674 2008-05-10  Jim Meyering  <meyering@redhat.com>
45675
45676         Make chdir-safer.c more efficient on a system with no symlinks.
45677         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45678         also if ELOOP is zero.  Suggested by Bruno Haible.
45679
45680         Make chdir-safer.c slightly safer.
45681         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45682         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45683
45684         Avoid compile failure on systems without ELOOP (like mingw).
45685         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45686         Reported by Bruno Haible.
45687
45688 2008-05-10  Bruno Haible  <bruno@clisp.org>
45689
45690         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45691         (is_utf8_encoding): Use a case-insensitive comparison.
45692         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45693         streq.
45694
45695 2008-05-10  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45698         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45699         * lib/unilbrk/ulc-common.h (iconv_string_length,
45700         iconv_string_keeping_offsets): Remove declarations.
45701         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45702         Don't include <iconv.h>, streq.h, xsize.h.
45703         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45704         conversion.
45705         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45706         <iconv.h>, streq.h, xsize.h.
45707         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45708         conversion.
45709         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45710         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45711         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45712         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45713
45714 2008-05-10  Bruno Haible  <bruno@clisp.org>
45715
45716         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45717         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45718
45719         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45720         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45721
45722         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45723         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45724
45725         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45726         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45727
45728         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45729         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45730
45731         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45732         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45733
45734         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45735         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45736
45737         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45738         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45739
45740 2008-05-10  Bruno Haible  <bruno@clisp.org>
45741
45742         Split up 'linebreak' module.
45743         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45744         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45745         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45746         modifications.
45747         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45748         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45749         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45750         lib/linebreak.c.
45751         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45752         lib/linebreak.c.
45753         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45754         lib/linebreak.c.
45755         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45756         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45757         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45758         lib/linebreak.c.
45759         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45760         lib/linebreak.c.
45761         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45762         lib/linebreak.c.
45763         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45764         lib/linebreak.c.
45765         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45766         lib/linebreak.c.
45767         * modules/unilbrk/base: New file.
45768         * modules/unilbrk/tables: New file.
45769         * modules/unilbrk/u8-possible-linebreaks: New file.
45770         * modules/unilbrk/u16-possible-linebreaks: New file.
45771         * modules/unilbrk/u32-possible-linebreaks: New file.
45772         * modules/unilbrk/ulc-common: New file.
45773         * modules/unilbrk/ulc-possible-linebreaks: New file.
45774         * modules/unilbrk/u8-width-linebreaks: New file.
45775         * modules/unilbrk/u16-width-linebreaks: New file.
45776         * modules/unilbrk/u32-width-linebreaks: New file.
45777         * modules/unilbrk/ulc-width-linebreaks: New file.
45778         * lib/linebreak.h: Remove file.
45779         * lib/linebreak.c: Remove file.
45780         * m4/linebreak.m4: Remove file.
45781         * modules/linebreak: Remove file.
45782         * NEWS: Mention the changes.
45783
45784 2008-05-09  Eric Blake  <ebb9@byu.net>
45785
45786         Add xmemdup0.
45787         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45788         implementation.
45789         * lib/xmalloc.c (xmemdup0): New C implementation.
45790
45791 2008-05-08  Bruno Haible  <bruno@clisp.org>
45792
45793         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45794
45795 2008-05-07  Eric Blake  <ebb9@byu.net>
45796
45797         Support cross-compilation of <wctype.h>.
45798         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45799         AC_CACHE_CHECK.
45800
45801 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45802
45803         * build-aux/vc-list-files: Add support for bzr.
45804
45805 2008-05-03  Jim Meyering  <meyering@redhat.com>
45806
45807         avoid failed assertion with tight malloc
45808         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45809
45810 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45811
45812         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45813         are needed from arpa/inet.h.
45814         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45815         Reported by Bruno Haible.
45816
45817 2008-05-02  Jim Meyering  <meyering@redhat.com>
45818
45819         avoid compilation error on FreeBSD 6
45820         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45821
45822 2008-05-01  Jim Meyering  <meyering@redhat.com>
45823
45824         useless-if-before-free: correct --help's exit status description
45825         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45826         for one or more matches, etc.  Reported by Bruno Haible.
45827
45828         vc-list-files: make the stand-alone gnulib test work
45829         * modules/vc-list-files-tests (configure.ac):
45830         Define and AC_SUBST abs_aux_dir.
45831         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45832         $(abs_top_srcdir) to each script and having each of them
45833         duplicate the work of setting PATH, set PATH here, using
45834         the new variable, abs_aux_dir instead.
45835         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45836         * tests/test-vc-list-files-git.sh: Likewise.
45837         Reported by Bruno Haible.
45838
45839 2008-05-01  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45842         reallocation. Rename 'done' to 'found_delimiter'.
45843
45844 2008-05-01  Jim Meyering  <meyering@redhat.com>
45845
45846         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45847         * build-aux/vc-list-files: Use `...`, not $(...).
45848
45849 2008-04-30  Jim Meyering  <meyering@redhat.com>
45850
45851         add tests for vc-list-files
45852         * modules/vc-list-files-tests: New module.
45853         * tests/test-vc-list-files-cvs.sh: New file.
45854         * tests/test-vc-list-files-git.sh: New file.
45855
45856         avoid a warning from gcc
45857         * lib/getndelim2.c (IF_LINT): Define.
45858         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45859
45860         vc-list-files: work properly with build-aux/cvsu, too
45861         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45862         to all cvs-based clauses.
45863
45864         vc-list-files: work properly in the CVS+awk case, too
45865         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45866
45867         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45868         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45869         take more than one file argument, so .  Add quotes, just in case $dir
45870         ever contains a shell meta-character.  Prompted by Soren Hansen in
45871         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45872
45873 2008-04-29  Eric Blake  <ebb9@byu.net>
45874
45875         Optimize getndelim2 to use block operations when possible.
45876         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45877         freadseek, and memchr2.
45878         * lib/getndelim2.c (getndelim2): Use them for block reads.
45879
45880 2008-04-29  Bruno Haible  <bruno@clisp.org>
45881
45882         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45883         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45884         * modules/inet_ntop (Depends-on): Add extensions.
45885         * modules/inet_pton (Depends-on): Likewise.
45886         Reported by Simon Josefsson.
45887
45888 2008-04-29  Jim Meyering  <meyering@redhat.com>
45889
45890         When the is more than one match in a block, match all of them.
45891         * build-aux/useless-if-before-free: Iterate through each block
45892         until there are no more matches.
45893
45894         Fix broken useless-if-before-free script.
45895         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45896         the expression to match cast of argument to free-like function.
45897
45898 2008-04-29  Eric Blake  <ebb9@byu.net>
45899
45900         Use new header.
45901         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45902
45903 2008-04-29  Jim Meyering  <meyering@redhat.com>
45904
45905         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45906         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45907         by gnulib to exist and to declare e.g., inet_ntop.
45908         Don't include "inet_ntop.h", now removed.
45909
45910         * m4/arpa_inet_h.m4: Remove trailing blanks.
45911
45912 2008-04-29  Eric Blake  <ebb9@byu.net>
45913
45914         Silence valgrind on safe reads beyond potential array bounds.
45915         * lib/rawmemchr.valgrind: New file.
45916         * lib/strchrnul.valgrind: Likewise.
45917         * modules/rawmemchr (Files): Distribute new file.
45918         * modules/strchrnul (Files): Likewise.
45919         Suggested by Bruno Haible.
45920
45921 2008-04-29  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45924         (inet_ntop, inet_pton): Change portability warning's wording.
45925         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45926         Invoke gl_CHECK_NEXT_HEADERS.
45927         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45928         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45929         set ARPA_INET_H.
45930         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45931         * modules/arpa_inet (Description): No longer only for systems that
45932         lack it.
45933         (Depends-on): Add include_next.
45934         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45935         HAVE_ARPA_INET_H.
45936
45937 2008-04-29  Jim Meyering  <meyering@redhat.com>
45938
45939         * modules/mkdir (License): Re-license as LGPLv2+.
45940
45941 2008-04-29  Bruno Haible  <bruno@clisp.org>
45942
45943         * modules/rawmemchr (Maintainer): Set to Eric.
45944         * modules/strchrnul (Maintainer): Likewise.
45945
45946 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45947
45948         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45949         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45950
45951         * modules/arpa_inet (arpa/inet.h): Use them.
45952
45953 2008-04-28  Eric Blake  <ebb9@byu.net>
45954
45955         Test getndelim2.
45956         * modules/getndelim2-tests: New file.
45957         * tests/test-getndelim2.c: Likewise.
45958         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45959         stream.
45960         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45961
45962         * MODULES.html.sh: Document new module.
45963
45964 2008-04-20  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/c-stack.c (die): Use raise.
45967         * modules/c-stack (Depends-on): Add raise.
45968
45969 2008-04-28  Bruno Haible  <bruno@clisp.org>
45970
45971         Expect rpmatch to be declared.
45972         * lib/yesno.c (rpmatch): Remove declaration.
45973
45974         Declare rpmatch.
45975         * lib/stdlib.in.h (rpmatch): New declaration.
45976         * lib/rpmatch.c: Include <stdlib.h> first.
45977         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45978         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45980         HAVE_RPMATCH.
45981         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45982         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45983         (Include): Set to <stdlib.h>.
45984         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45985         HAVE_RPMATCH.
45986         * NEWS: Document the change.
45987
45988 2008-04-28  Bruno Haible  <bruno@clisp.org>
45989
45990         Change rpmatch to use nl_langinfo when appropriate.
45991         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45992         (N_): New macro.
45993         (localized_pattern): New function/macro.
45994         (try): Remove match, nomatch arguments. Copy the pattern into safe
45995         memory before caching it.
45996         (rpmatch): Use localized_pattern. Add translator comments.
45997         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45998         Suggested by Eric Blake.
45999         * modules/rpmatch (Depends-on): Add stdbool.
46000
46001 2008-04-28  Eric Blake  <ebb9@byu.net>
46002
46003         Add rawmemchr module, matching glibc.
46004         * modules/string (Makefile.am): New indicator.
46005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46006         * lib/string.in.h (rawmemchr): Declare when appropriate.
46007         * modules/rawmemchr: New file.
46008         * m4/rawmemchr.m4: Likewise.
46009         * lib/rawmemchr.c: Likewise.
46010         * modules/rawmemchr-tests: Likewise.
46011         * tests/test-rawmemchr.c: Likewise.
46012         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46013         module.
46014         * modules/strchrnul (Depends-on): Add rawmemchr.
46015         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46016
46017         Whitespace cleanup.
46018         * tests/test-strchrnul.c: Reindent.
46019         * lib/strchrnul.c: Likewise.
46020
46021         Optimize and test strchrnul.
46022         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46023         * modules/strchrnul-tests: New file.
46024         * tests/test-strchrnul.c: Likewise.
46025
46026         Remove intprops dependency.
46027         * modules/memchr (Depends-on): Remove intprops.
46028         * modules/memrchr (Depends-on): Likewise.
46029         * modules/memchr2 (Depends-on): Likewise.
46030         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46031         * lib/memrchr.c (__memrchr): Likewise.
46032         * lib/memrchr2.c (memchr2): Likewise.
46033         Reported by Simon Josefsson.
46034
46035 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46036
46037         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46038         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46039
46040 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46041
46042         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46043
46044         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46045
46046         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46047
46048         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46049         declarations.
46050         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46051
46052         * m4/inet_pton.m4: Don't check for header files.
46053
46054         * m4/inet_ntop.m4: Don't check for header files.
46055
46056 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46057
46058         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46059         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46060         trigger for cygwin).
46061         Reported by Bruno Haible  <bruno@clisp.org>.
46062
46063 2008-04-28  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/posix-functions/strdup.texi: Mention mingw problem.
46066
46067 2008-04-27  Bruno Haible  <bruno@clisp.org>
46068
46069         * modules/stat-time-tests (Depends-on): Add sleep.
46070         * tests/test-stat-time.c (force_unlink): New function.
46071         (cleanup): Use it.
46072         (test_mtime): Remove the ctime related tests.
46073         (test_ctime): New function, containing the ctime related tests.
46074         (main): Call test_ctime, except on native Windows platforms.
46075
46076 2008-04-27  Bruno Haible  <bruno@clisp.org>
46077
46078         * lib/rpmatch.c (rpmatch): Add some comments.
46079         Reported by James Youngman <jay@gnu.org>.
46080
46081 2008-04-27  Bruno Haible  <bruno@clisp.org>
46082
46083         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46084         quiet NaNs.
46085
46086 2008-04-27  Bruno Haible  <bruno@clisp.org>
46087
46088         Make test-yesno.sh work on mingw.
46089         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46090         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46091         (main): Set stdin to binary mode.
46092         * modules/yesno-tests (Depends-on): Add binary-io.
46093
46094 2008-04-27  Bruno Haible  <bruno@clisp.org>
46095
46096         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46097         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46098         argument that lie outside the IEEE 854 domain.
46099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46100         (gl_ISFINITE): Use it.
46101         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46102
46103 2008-04-27  Bruno Haible  <bruno@clisp.org>
46104
46105         Allow local renaming in config.h.
46106         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46107
46108 2008-04-27  Bruno Haible  <bruno@clisp.org>
46109
46110         * lib/memchr.c (__memchr): Change type of 'i'.
46111         * lib/memchr2.c (memchr2): Likewise.
46112
46113 2008-04-26  Eric Blake  <ebb9@byu.net>
46114         and Bruno Haible  <bruno@clisp.org>
46115
46116         Optimize and test memrchr.
46117         * modules/memrchr (Depends-on): Add intprops.
46118         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46119         * modules/memrchr-tests: New file.
46120         * tests/test-memrchr.c: New file.
46121
46122 2008-04-26  Bruno Haible  <bruno@clisp.org>
46123
46124         Add tentative support for DragonFly BSD.
46125         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46126         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46127         fp.
46128         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46129         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46130         * lib/fpurge.c (fpurge): Likewise.
46131         * lib/freadable.c (freaadable): Likewise.
46132         * lib/freadahead.c (freadahead): Likewise.
46133         * lib/freading.c (freading): Likewise.
46134         * lib/freadptr.c (freadptr): Likewise.
46135         * lib/freadseek.c (freadptrinc): Likewise.
46136         * lib/fseeko.c (fseeko): Likewise.
46137         * lib/fseterr.c (fseterr): Likewise.
46138         * lib/fwritable.c (fwritable): Likewise.
46139         * lib/fwriting.c (fwriting): Likewise.
46140
46141 2008-04-26  Bruno Haible  <bruno@clisp.org>
46142
46143         * lib/stdio-impl.h: New file.
46144         * lib/fbufmode.c: Include stdio-impl.h.
46145         (fbufmode): Use fp_, remove redundant #defines.
46146         * lib/fflush.c: Include stdio-impl.h.
46147         (clear_ungetc_buffer): Remove redundant #defines.
46148         * lib/fpurge.c: Include stdio-impl.h.
46149         (fpurge): Remove redundant #defines.
46150         * lib/freadable.c: Include stdio-impl.h.
46151         (freadable): Remove redundant #defines.
46152         * lib/freadahead.c: Include stdio-impl.h.
46153         (freadahead): Remove redundant #defines.
46154         * lib/freading.c: Include stdio-impl.h.
46155         (freading): Remove redundant #defines.
46156         * lib/freadptr.c: Include stdio-impl.h.
46157         (freadptr): Remove redundant #defines.
46158         * lib/freadseek.c: Include stdio-impl.h.
46159         (freadptrinc): Remove redundant #defines.
46160         * lib/fseeko.c: Include stdio-impl.h.
46161         (rpl_fseeko): Remove redundant #defines.
46162         * lib/fseterr.c: Include stdio-impl.h.
46163         (fseterr): Remove redundant #defines.
46164         * lib/fwritable.c: Include stdio-impl.h.
46165         (fwritable: Remove redundant #defines.
46166         * lib/fwriting.c: Include stdio-impl.h.
46167         (fwriting): Remove redundant #defines.
46168         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46169         * modules/fflush (Files): Likewise.
46170         * modules/fpurge (Files): Likewise.
46171         * modules/freadable (Files): Likewise.
46172         * modules/freadahead (Files): Likewise.
46173         * modules/freading (Files): Likewise.
46174         * modules/freadptr (Files): Likewise.
46175         * modules/freadseek (Files): Likewise.
46176         * modules/fseeko (Files): Likewise.
46177         * modules/fseterr (Files): Likewise.
46178         * modules/fwritable (Files): Likewise.
46179         * modules/fwriting (Files): Likewise.
46180
46181 2008-04-26  Bruno Haible  <bruno@clisp.org>
46182
46183         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46184         restore_seek_optimization, update_fpos_cache): New functions, extracted
46185         from rpl_fflush.
46186         (rpl_fflush): Use them.
46187         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46188         (gl_REPLACE_FFLUSH): Use it.
46189
46190 2008-04-26  Bruno Haible  <bruno@clisp.org>
46191
46192         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46193         on Solaris.
46194         * tests/test-xstrtoimax.sh: Likewise.
46195         * tests/test-xstrtoumax.sh: Likewise.
46196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46197
46198 2008-04-26  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/memchr-tests: New file.
46201         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46202
46203 2008-04-26  Eric Blake  <ebb9@byu.net>
46204             Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/memchr.c: Include intprops.h.
46207         (__memchr): Optimize parallel detection of matching bytes. Rename local
46208         variables. Add explanatory comments.
46209
46210 2008-04-26  Bruno Haible  <bruno@clisp.org>
46211
46212         Fix module 'memchr', broken since 2000-10-28.
46213         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46214
46215 2008-04-26  Bruno Haible  <bruno@clisp.org>
46216
46217         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46218         comments.
46219
46220 2008-04-25  Eric Blake  <ebb9@byu.net>
46221
46222         Use native fstatat on cygwin 1.7.0.
46223         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46224         first.
46225
46226 2008-04-23  Eric Blake  <ebb9@byu.net>
46227
46228         Improve memchr2 performance.
46229         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46230         NUL bytes.
46231         * modules/memchr2 (Depends-on): Use intprops.h.
46232
46233 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46234
46235         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46236         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46237         <blp@cs.stanford.edu>.
46238
46239 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46240
46241         * lib/arpa_inet.in.h: New file.
46242
46243         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46244         (Makefile.am): Sed in substitute header file.
46245
46246         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46247         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46248
46249         * modules/inet_ntop (configure.ac): Use
46250         gl_ARPA_INET_MODULE_INDICATOR.
46251
46252         * modules/inet_pton (configure.ac): Use
46253         gl_ARPA_INET_MODULE_INDICATOR.
46254
46255 2008-04-22  Jim Meyering  <meyering@redhat.com>
46256
46257         * modules/verify (License): Re-license as LGPLv2+.
46258
46259 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46260
46261         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46262         parameter to void* as per POSIX standard (MinGW uses char*).
46263
46264 2008-04-21  Bruno Haible  <bruno@clisp.org>
46265
46266         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46267         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46268         Define to replacements if REPLACE_ISWCNTRL is 1.
46269         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46270         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46271         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46272         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46273         what it fixes.
46274         * doc/posix-functions/iswalpha.texi: Likewise.
46275         * doc/posix-functions/iswblank.texi: Likewise.
46276         * doc/posix-functions/iswcntrl.texi: Likewise.
46277         * doc/posix-functions/iswdigit.texi: Likewise.
46278         * doc/posix-functions/iswgraph.texi: Likewise.
46279         * doc/posix-functions/iswlower.texi: Likewise.
46280         * doc/posix-functions/iswprint.texi: Likewise.
46281         * doc/posix-functions/iswpunct.texi: Likewise.
46282         * doc/posix-functions/iswspace.texi: Likewise.
46283         * doc/posix-functions/iswupper.texi: Likewise.
46284         * doc/posix-functions/iswxdigit.texi: Likewise.
46285         Reported by Alain Guibert.
46286
46287 2008-04-21  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46290         Patch by Alain Guibert.
46291
46292 2008-04-21  Bruno Haible  <bruno@clisp.org>
46293
46294         Fix test failures on mingw.
46295         * tests/test-xstrtol.c (print_no_progname): New function.
46296         (main): Install it in error_print_progname hook.
46297         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46298         * tests/test-xstrtoimax.sh: Likewise.
46299         * tests/test-xstrtoumax.sh: Likewise.
46300
46301 2008-04-21  Bruno Haible  <bruno@clisp.org>
46302
46303         Fix test failure on mingw.
46304         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46305
46306 2008-04-21  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46309         Actually assign a value.
46310
46311 2008-04-20  Bruno Haible  <bruno@clisp.org>
46312
46313         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46314         take 2.
46315         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46316         'canonicalize-lgpl' module is also used.
46317         * lib/canonicalize-lgpl.c: Undo last change.
46318         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46319
46320 2008-04-20  Bruno Haible  <bruno@clisp.org>
46321
46322         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46323         config.h. Provide _mkdir based fallback for mingw.
46324         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46325         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46326         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46327         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46328         rather than defining mkdir in config.h.
46329         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46330         (gl_SYS_STAT_H_DEFAULTS): New macro.
46331         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46332         HAVE_IO_H any more.
46333         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46334         HAVE_DECL_MKDIR and HAVE_IO_H.
46335
46336 2008-04-20  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/isapipe.c: Port to native Windows platforms.
46339
46340 2008-04-20  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46343
46344 2008-04-21  Eric Blake  <ebb9@byu.net>
46345
46346         Work around preprocessors that don't handle UINTMAX_MAX.
46347         * lib/memchr2.c (memchr2): Avoid embedded #if.
46348         Reported by Alain Guibert, fix suggested by Bruno Haible.
46349
46350 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46351
46352         * doc/posix-functions/strftime.texi (strftime): Explain better
46353         Windows incompatibility.  Suggested by Micah Cowan
46354         <micah@cowan.name>.
46355
46356 2008-04-20  Bruno Haible  <bruno@clisp.org>
46357
46358         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46359         unistr/u8-mblen.
46360
46361 2008-04-20  Bruno Haible  <bruno@clisp.org>
46362
46363         Fix test failure on platforms with non-GNU iconv.
46364         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46365         (U_TO_U8): Use it, rather than u16_to_u8.
46366         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46367         units at the end of the input string.
46368         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46369
46370 2008-04-20  Bruno Haible  <bruno@clisp.org>
46371
46372         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46373         when the resulting length is 0.
46374         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46375
46376 2008-04-20  Bruno Haible  <bruno@clisp.org>
46377
46378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46379         works.
46380         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46381
46382 2008-04-20  Bruno Haible  <bruno@clisp.org>
46383
46384         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46385         * modules/tsearch-tests (configure.ac): Test for initstate function.
46386
46387 2008-04-20  Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46390         for nlink_t if missing.
46391         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46392
46393 2008-04-19  Bruno Haible  <bruno@clisp.org>
46394
46395         Work around snprintf bug on Linux libc5.
46396         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46398         gl_SNPRINTF_SIZE1.
46399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46400         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46401         that test failed.
46402         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46403         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46404         * modules/snprintf (Files): Add m4/printf.m4.
46405         * modules/vsnprintf (Files): Likewise.
46406         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46407         * doc/posix-functions/vsnprintf.texi: Likewise.
46408
46409 2008-04-19  Bruno Haible  <bruno@clisp.org>
46410
46411         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46412         from 0.0058 to less than 10^-7.
46413
46414 2008-04-19  Bruno Haible  <bruno@clisp.org>
46415
46416         Fix rounding when a precision is given.
46417         * lib/vasnprintf.c (is_borderline): New function.
46418         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46419         9...9x.
46420         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46421         %e, %g.
46422         * tests/test-vasprintf-posix.c (test_function): Likewise.
46423         * tests/test-snprintf-posix.h (test_function): Likewise.
46424         * tests/test-sprintf-posix.h (test_function): Likewise.
46425         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46426         * tests/test-printf-posix.h (test_function): Likewise.
46427         * tests/test-printf-posix.output: Update.
46428         Reported by John Darrington <john@darrington.wattle.id.au> via
46429         Ben Pfaff <blp@cs.stanford.edu>.
46430
46431 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46432
46433         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46434         Suggested by Bruno Haible <bruno@clisp.org>.
46435
46436 2008-04-17  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46439         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46440         implementation.
46441         Patch by Bruce Merry <bmerry@gmail.com>.
46442
46443 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46444
46445         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46446         doesn't work under Windows.
46447
46448 2008-04-16  Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46451         New macros.
46452         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46453         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46454         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46455         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46456         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46457         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46458         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46459         macros.
46460         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46461         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46462         Northern Sotho, Uighur.
46463
46464 2008-04-16  Bruno Haible  <bruno@clisp.org>
46465
46466         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46467         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46468         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46469         Reported by Daniel Bergström <daniel@octocode.com>.
46470
46471 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46472             Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46475         function.
46476         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46477         New functions, mostly extracted from gl_locale_name_default.
46478         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46479
46480 2008-04-16  Eric Blake  <ebb9@byu.net>
46481
46482         Adjust strtod detection to catch glibc 2.7 bug.
46483         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46484         Reported by John Gatewood Ham.
46485
46486 2008-04-16  Bruno Haible  <bruno@clisp.org>
46487
46488         Add tentative support for Linux libc5.
46489         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46490         * lib/fpurge.c (fpurge): Likewise.
46491         * lib/freadable.c (freadable): Likewise.
46492         * lib/freadahead.c (freadahead): Likewise.
46493         * lib/freading.c (freading): Likewise.
46494         * lib/freadptr.c (freadptr): Likewise.
46495         * lib/freadseek.c (freadptrinc): Likewise.
46496         * lib/fseeko.c (rpl_fseeko): Likewise.
46497         * lib/fseterr.c (fseterr): Likewise.
46498         * lib/fwritable.c (fwritable): Likewise.
46499         * lib/fwriting.c (fwriting): Likewise.
46500         Reported by Alain Guibert <alguibert+bts@free.fr>.
46501
46502 2008-04-15  Bruno Haible  <bruno@clisp.org>
46503
46504         * modules/mathl (configure.ac): Define module indicator.
46505
46506 2008-04-15  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/logl.c (logl): Remove unused variables.
46509
46510 2008-04-15  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46513         fails.
46514
46515 2008-04-15  Bruno Haible  <bruno@clisp.org>
46516
46517         * lib/trim.c (trim2): Fix argument of isspace() macro.
46518
46519 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46520
46521         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46522         to 0.
46523         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46524
46525 2008-04-14  Bruno Haible  <bruno@clisp.org>
46526
46527         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46528         AC_LANG_PROGRAM argument.
46529         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46530         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46532         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46533         * m4/math_h.m4 (gl_MATH_H): Likewise.
46534         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46535         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46536         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46537         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46538         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46539         * m4/regex.m4 (gl_REGEX): Likewise.
46540         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46541         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46544         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46545         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46546         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46548
46549 2008-04-14  Jim Meyering  <meyering@redhat.com>
46550
46551         test-strtod: fix typos: s/abs/fabs/
46552         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46553
46554 2008-04-13  Bruno Haible  <bruno@clisp.org>
46555
46556         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46557         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46558         module is also used and while not building the reloc-wrapper.
46559
46560 2008-04-13  Bruno Haible  <bruno@clisp.org>
46561
46562         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46563
46564 2008-04-13  Bruno Haible  <bruno@clisp.org>
46565
46566         Fix AIX compilation failure introduced on 2008-04-02.
46567         * tests/test-frexp.c (exp): Undefine before redefining.
46568         * tests/test-frexpl.c (exp): Likewise.
46569
46570 2008-04-13  Bruno Haible  <bruno@clisp.org>
46571
46572         Work around a HP-UX stdio bug.
46573         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46574         * tests/test-ftello.c (main): Likewise.
46575         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46576         * doc/posix-functions/ftello.texi: Likewise.
46577
46578 2008-04-13  Bruno Haible  <bruno@clisp.org>
46579
46580         Make test-signbit pass on HP-UX/hppa.
46581         * tests/test-signbit.c (minus_zerol): New variable.
46582         (test_signbitl): Use it.
46583
46584 2008-04-13  Bruno Haible  <bruno@clisp.org>
46585
46586         Make truncl work on OSF/1 4.0.
46587         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46588         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46589         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46591         HAVE_DECL_TRUNCL.
46592         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46593         HAVE_DECL_TRUNCL.
46594         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46595
46596 2008-04-13  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46599
46600 2008-04-13  Bruno Haible  <bruno@clisp.org>
46601
46602         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46603         expression, so as to avoid HP-UX 11 cc compiler bug.
46604
46605 2008-04-13  Bruno Haible  <bruno@clisp.org>
46606
46607         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46608
46609 2008-04-13  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/git-merge-changelog.c: Remove empty declaration outside of
46612         functions.
46613
46614 2008-04-13  Bruno Haible  <bruno@clisp.org>
46615
46616         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46617
46618 2008-04-13  Bruno Haible  <bruno@clisp.org>
46619
46620         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46621         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46623         also if it exists but lacks definitions of the SHUT_* macros.
46624         * modules/sys_socket (Description): Update.
46625         Reported by Elbert Pol <e.pol@chello.nl>.
46626
46627 2008-04-13  Bruno Haible  <bruno@clisp.org>
46628
46629         * lib/localcharset.c (OS2): Don't redefine if already defined.
46630         Reported by Elbert Pol <e.pol@chello.nl>.
46631
46632 2008-04-13  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/binary-io.h [__EMX__]: Include <io.h>.
46635         Reported by Elbert Pol <e.pol@chello.nl>.
46636
46637 2008-04-12  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/fpucw.h: Enable the definitions also for x86_64.
46640         Needed for NetBSD/x86_64.
46641         Reported by Thomas Klausner <tk@giga.or.at>.
46642
46643 2008-04-12  Bruno Haible  <bruno@clisp.org>
46644
46645         * tests/test-strtod.c: Include isnand.h.
46646         (main): Use isnand instead of isnan.
46647         Reported by Jim Meyering.
46648
46649 2008-04-12  Bruno Haible  <bruno@clisp.org>
46650
46651         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46652         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46653
46654 2008-04-12  Jim Meyering  <meyering@redhat.com>
46655
46656         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46657
46658 2008-04-12  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46661         Reported by Elbert Pol <e.pol@chello.nl>.
46662
46663 2008-04-12  Eric Blake  <ebb9@byu.net>
46664
46665         Work around Solaris 10 math.h bug.
46666         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46667         (gl_MATH_H_DEFAULTS): Set up default.
46668         * modules/math (Makefile.am): Replace new indicators.
46669         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46670         * tests/test-math.c (main): Test this.
46671         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46672         * doc/posix-headers/math.texi (math.h): Mention bug.
46673         Reported by Nelson H. F. Beebe and Jim Meyering.
46674
46675 2008-04-11  Bruno Haible  <bruno@clisp.org>
46676
46677         Adapt to future versions of Apple GCC.
46678         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46679         Reported by Peter O'Gorman <peter@pogma.com>.
46680
46681 2008-04-11  Bruno Haible  <bruno@clisp.org>
46682
46683         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46684
46685 2008-04-11  Bruno Haible  <bruno@clisp.org>
46686
46687         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46688
46689         * modules/getaddrinfo-tests (Makefile.am): Define
46690         test_getaddrinfo_LDADD.
46691
46692 2008-04-11  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46695         (init): Fix syntax error.
46696         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46697         is declared.
46698
46699 2008-04-11  Bruno Haible  <bruno@clisp.org>
46700
46701         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46702         * modules/glob (Depends-on): Add stdbool.
46703
46704 2008-04-11  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/trim.c: Include <string.h>.
46707
46708 2008-04-11  Eric Blake  <ebb9@byu.net>
46709
46710         Avoid compile failure on OS/2.
46711         * lib/regex_internal.h (internal_function): Disable optimization
46712         on OS/2 (__EMX__), where it caused compiler error.
46713         Reported by Elbert Pol.
46714
46715 2008-04-11  Bruno Haible  <bruno@clisp.org>
46716
46717         Flush the standard error stream before aborting. Needed on mingw.
46718         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46719         * tests/test-array_list.c (ASSERT): Likewise.
46720         * tests/test-array_oset.c (ASSERT): Likewise.
46721         * tests/test-avltree_list.c (ASSERT): Likewise.
46722         * tests/test-avltree_oset.c (ASSERT): Likewise.
46723         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46724         * tests/test-binary-io.c (ASSERT): Likewise.
46725         * tests/test-byteswap.c (ASSERT): Likewise.
46726         * tests/test-c-ctype.c (ASSERT): Likewise.
46727         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46728         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46729         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46730         * tests/test-c-strstr.c (ASSERT): Likewise.
46731         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46732         * tests/test-canonicalize.c (ASSERT): Likewise.
46733         * tests/test-carray_list.c (ASSERT): Likewise.
46734         * tests/test-ceilf1.c (ASSERT): Likewise.
46735         * tests/test-ceilf2.c (ASSERT): Likewise.
46736         * tests/test-ceill.c (ASSERT): Likewise.
46737         * tests/test-count-one-bits.c (ASSERT): Likewise.
46738         * tests/test-fbufmode.c (ASSERT): Likewise.
46739         * tests/test-fflush2.c (ASSERT): Likewise.
46740         * tests/test-floorf1.c (ASSERT): Likewise.
46741         * tests/test-floorf2.c (ASSERT): Likewise.
46742         * tests/test-floorl.c (ASSERT): Likewise.
46743         * tests/test-fopen.c (ASSERT): Likewise.
46744         * tests/test-fpending.c (ASSERT): Likewise.
46745         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46746         * tests/test-fpurge.c (ASSERT): Likewise.
46747         * tests/test-freadable.c (ASSERT): Likewise.
46748         * tests/test-freadahead.c (ASSERT): Likewise.
46749         * tests/test-freading.c (ASSERT): Likewise.
46750         * tests/test-freadptr.c (ASSERT): Likewise.
46751         * tests/test-freadptr2.c (ASSERT): Likewise.
46752         * tests/test-freadseek.c (ASSERT): Likewise.
46753         * tests/test-freopen.c (ASSERT): Likewise.
46754         * tests/test-frexp.c (ASSERT): Likewise.
46755         * tests/test-frexpl.c (ASSERT): Likewise.
46756         * tests/test-fseek.c (ASSERT): Likewise.
46757         * tests/test-fseeko.c (ASSERT): Likewise.
46758         * tests/test-fstrcmp.c (ASSERT): Likewise.
46759         * tests/test-ftell.c (ASSERT): Likewise.
46760         * tests/test-ftello.c (ASSERT): Likewise.
46761         * tests/test-func.c (ASSERT): Likewise.
46762         * tests/test-fwritable.c (ASSERT): Likewise.
46763         * tests/test-fwriting.c (ASSERT): Likewise.
46764         * tests/test-getdelim.c (ASSERT): Likewise.
46765         * tests/test-getline.c (ASSERT): Likewise.
46766         * tests/test-i-ring.c (ASSERT): Likewise.
46767         * tests/test-iconv-utf.c (ASSERT): Likewise.
46768         * tests/test-iconv.c (ASSERT): Likewise.
46769         * tests/test-isfinite.c (ASSERT): Likewise.
46770         * tests/test-isnand.c (ASSERT): Likewise.
46771         * tests/test-isnanf.c (ASSERT): Likewise.
46772         * tests/test-isnanl.h (ASSERT): Likewise.
46773         * tests/test-ldexpl.c (ASSERT): Likewise.
46774         * tests/test-linked_list.c (ASSERT): Likewise.
46775         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46776         * tests/test-localename.c (ASSERT): Likewise.
46777         * tests/test-lseek.c (ASSERT): Likewise.
46778         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46779         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46780         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46781         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46782         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46783         * tests/test-mbschr.c (ASSERT): Likewise.
46784         * tests/test-mbscspn.c (ASSERT): Likewise.
46785         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46786         * tests/test-mbspbrk.c (ASSERT): Likewise.
46787         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46788         * tests/test-mbsrchr.c (ASSERT): Likewise.
46789         * tests/test-mbsspn.c (ASSERT): Likewise.
46790         * tests/test-mbsstr1.c (ASSERT): Likewise.
46791         * tests/test-mbsstr2.c (ASSERT): Likewise.
46792         * tests/test-mbsstr3.c (ASSERT): Likewise.
46793         * tests/test-memchr2.c (ASSERT): Likewise.
46794         * tests/test-memmem.c (ASSERT): Likewise.
46795         * tests/test-open.c (ASSERT): Likewise.
46796         * tests/test-printf-frexp.c (ASSERT): Likewise.
46797         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46798         * tests/test-printf-posix.c (ASSERT): Likewise.
46799         * tests/test-quotearg.c (ASSERT): Likewise.
46800         * tests/test-rbtree_list.c (ASSERT): Likewise.
46801         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46802         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46803         * tests/test-round1.c (ASSERT): Likewise.
46804         * tests/test-roundf1.c (ASSERT): Likewise.
46805         * tests/test-roundl.c (ASSERT): Likewise.
46806         * tests/test-signbit.c (ASSERT): Likewise.
46807         * tests/test-sleep.c (ASSERT): Likewise.
46808         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46809         * tests/test-snprintf.c (ASSERT): Likewise.
46810         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46811         * tests/test-stat-time.c (ASSERT): Likewise.
46812         * tests/test-strcasestr.c (ASSERT): Likewise.
46813         * tests/test-strerror.c (ASSERT): Likewise.
46814         * tests/test-striconv.c (ASSERT): Likewise.
46815         * tests/test-striconveh.c (ASSERT): Likewise.
46816         * tests/test-striconveha.c (ASSERT): Likewise.
46817         * tests/test-strsignal.c (ASSERT): Likewise.
46818         * tests/test-strstr.c (ASSERT): Likewise.
46819         * tests/test-strtod.c (ASSERT): Likewise.
46820         * tests/test-trunc1.c (ASSERT): Likewise.
46821         * tests/test-trunc2.c (ASSERT): Likewise.
46822         * tests/test-truncf1.c (ASSERT): Likewise.
46823         * tests/test-truncf2.c (ASSERT): Likewise.
46824         * tests/test-truncl.c (ASSERT): Likewise.
46825         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46826         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46827         * tests/test-vasnprintf.c (ASSERT): Likewise.
46828         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46829         * tests/test-vasprintf.c (ASSERT): Likewise.
46830         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46831         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46832         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46833         * tests/test-vsnprintf.c (ASSERT): Likewise.
46834         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46835         * tests/test-wcwidth.c (ASSERT): Likewise.
46836         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46837         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46838         * tests/test-xvasprintf.c (ASSERT): Likewise.
46839         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46840         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46841         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46842         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46843         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46844         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46845         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46846         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46847         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46848         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46849         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46850         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46851         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46852         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46853         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46854         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46855         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46856         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46857         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46858         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46859         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46860         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46861         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46862         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46863         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46864         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46865         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46866         * tests/unictype/test-combining.c (ASSERT): Likewise.
46867         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46868         * tests/unictype/test-digit.c (ASSERT): Likewise.
46869         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46870         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46871         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46872         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46873         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46874         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46875         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46876         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46877         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46878         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46879         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46880         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46881         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46882         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46883         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46884         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46885         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46886         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46887         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46888         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46889         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46890         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46891         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46892         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46893         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46894         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46895         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46896         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46897         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46898         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46899         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46900         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46901         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46902         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46903         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46904         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46905         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46906         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46907         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46908         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46909         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46910         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46911         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46912         Reported by Eric Blake.
46913
46914 2008-04-11  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/wchar.in.h: Tweak comment.
46917
46918 2008-04-11  Bruno Haible  <bruno@clisp.org>
46919
46920         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46921         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46922         gl_COMMON.
46923         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46924
46925 2008-04-11  Bruno Haible  <bruno@clisp.org>
46926
46927         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46928
46929 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46930
46931         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46932         of attempting to use non-existing /dev/*random.  Based on patch
46933         from Adam Strzelecki <ono@java.pl> in
46934         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46935
46936 2008-04-08  Bruno Haible  <bruno@clisp.org>
46937
46938         Add tentative support for emx+gcc.
46939         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46940         * lib/fpurge.c (fpurge): Likewise.
46941         * lib/freadable.c (freadable): Likewise.
46942         * lib/freadahead.c (freadahead): Likewise.
46943         * lib/freading.c (freading): Likewise.
46944         * lib/freadptr.c (freadptr): Likewise.
46945         * lib/freadseek.c (freadptrinc): Likewise.
46946         * lib/fseeko.c (rpl_fseeko): Likewise.
46947         * lib/fseterr.c (fseterr): Likewise.
46948         * lib/fwritable.c (fwritable): Likewise.
46949         * lib/fwriting.c (fwriting): Likewise.
46950         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46951
46952 2008-04-09  Eric Blake  <ebb9@byu.net>
46953
46954         Avoid some autoconf warnings.
46955         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46956         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46957         * m4/afs.m4 (gl_AFS): Likewise.
46958         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46959         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46960         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46961         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46962         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46963         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46964         (AC_CHECK_DECLS_ONCE): Likewise.
46965         Rename file...
46966         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46967         gnulib-tool requires autoconf 2.59 or better.
46968         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46969
46970 2008-04-08  Eric Blake  <ebb9@byu.net>
46971
46972         Use 'git describe --match' if present (added in git 1.5.5).
46973         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46974         if possible.
46975
46976 2008-04-08  Bruno Haible  <bruno@clisp.org>
46977
46978         Add tentative support for OpenServer.
46979         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46980         _ptr, _cnt.
46981         * lib/fpurge.c (fpurge): Likewise.
46982         * lib/freadable.c (freadable): Likewise.
46983         * lib/freadahead.c (freadahead): Likewise.
46984         * lib/freading.c (freading): Likewise.
46985         * lib/freadptr.c (freadptr): Likewise.
46986         * lib/freadseek.c (freadptrinc): Likewise.
46987         * lib/fseeko.c (rpl_fseeko): Likewise.
46988         * lib/fseterr.c (fseterr): Likewise.
46989         * lib/fwritable.c (fwritable): Likewise.
46990         * lib/fwriting.c (fwriting): Likewise.
46991         Reported by Roger Cornelius <rac@tenzing.org> and
46992         Brian K. White <brian@aljex.com>.
46993
46994 2008-04-06  Jim Meyering  <meyering@redhat.com>
46995
46996         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46997
46998 2008-04-06  Bruno Haible  <bruno@clisp.org>
46999
47000         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47001         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47002         * tests/test-printf-posix.sh: Likewise.
47003         * tests/test-vfprintf-posix.sh: Likewise.
47004         * tests/test-vprintf-posix.sh: Likewise.
47005         * tests/test-xprintf-posix.sh: Likewise.
47006
47007 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47008
47009         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47010         hide error from 'ls', needed on OS/2.
47011         Report by Elbert Pol <elbert.pol@gmail.com>.
47012
47013 2008-04-04  Eric Blake  <ebb9@byu.net>
47014
47015         Make test-fseeko.c failures meaningful.
47016         * tests/test-fseeko.c: Print line number on failure.
47017         * tests/test-fseek.c: Likewise.
47018         Reported by Nelson H. F. Beebe.
47019
47020         Improve strtod bug detection check.
47021         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47022         required for Solaris 10.
47023         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47024
47025 2008-04-04  Bruno Haible  <bruno@clisp.org>
47026
47027         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47028         by m4/setenv.m4.
47029
47030 2008-04-03  Eric Blake  <ebb9@byu.net>
47031
47032         Ensure sane .version contents.
47033         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47034         version string.
47035         * build-aux/git-version-gen: Improve documentation.
47036
47037         Make GNU make output nicer.
47038         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47039         MAKECMDGOALS to enforce message for all command line targets.  Set
47040         srcdir for use in maint.mk.
47041
47042         Another maintainer tweak.
47043         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47044         a target that regenerates version.
47045
47046 2008-04-03  Jim Meyering  <meyering@redhat.com>
47047
47048         vc-list-files: don't cause coreutils "make po-check" failure
47049         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47050
47051 2008-04-03  Eric Blake  <ebb9@byu.net>
47052
47053         Allow VPATH usage of vc-list-files.
47054         * build-aux/vc-list-files (scriptversion): Add timestamp.
47055         (options): Add --help, --version, -C.
47056         (CVS): Support installed cvsu.
47057
47058 2008-04-02  Bruno Haible  <bruno@clisp.org>
47059
47060         Avoid some "statement with no effect" warnings from gcc.
47061         * tests/test-wctype.c (main): Explicitly ignore unused values.
47062         Reported by Jim Meyering.
47063
47064 2008-04-02  Jim Meyering  <meyering@redhat.com>
47065
47066         Avoid some warnings from "gcc -Wshadow".
47067         * tests/test-frexp.c (exp): Define to a different identifier.
47068         * tests/test-frexpl.c (exp): Likewise.
47069
47070 2008-04-03  Jim Meyering  <meyering@redhat.com>
47071
47072         bootstrap: remove dangling *.[ch] symlinks from lib
47073         * build-aux/bootstrap [dangling symlink removal]: Move find's
47074         -depth option to precede all others, to avoid a warning.
47075         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47076
47077 2008-04-02  Bruno Haible  <bruno@clisp.org>
47078
47079         Avoid some warnings from "gcc -Wshadow".
47080         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47081         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47082         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47083         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47084         Reported by Jim Meyering.
47085
47086 2008-04-01  Bruno Haible  <bruno@clisp.org>
47087
47088         Fix test to work on IRIX 6.5 with cc.
47089         * tests/test-math.c (numeric_equal): New function.
47090         (main): Use it.
47091
47092 2008-04-01  Bruno Haible  <bruno@clisp.org>
47093
47094         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47095
47096 2008-04-01  Bruno Haible  <bruno@clisp.org>
47097
47098         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47099         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47100         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47101         (Depends-on): Remove math.
47102
47103         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47104         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47105         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47106         (Depends-on): Remove math.
47107
47108         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47109         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47110         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47111         (Depends-on): Remove math.
47112         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47113         (Depends-on): Remove math.
47114
47115         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47116         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47117         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47118         (Depends-on): Remove math.
47119         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47120         (Depends-on): Remove math.
47121
47122         * tests/test-round1.c: Include nan.h.
47123         (main): Use NaNd instead of NAN.
47124         * modules/round-tests (Files): Add tests/nan.h.
47125
47126         * tests/test-trunc1.c: Include nan.h.
47127         (main): Use NaNd instead of NAN.
47128         * modules/trunc-tests (Files): Add tests/nan.h.
47129
47130         * tests/test-roundf1.c: Include nan.h.
47131         (main): Use NaNf instead of NAN.
47132         * modules/roundf-tests (Files): Add tests/nan.h.
47133
47134         * tests/test-truncf1.c: Include nan.h.
47135         (main): Use NaNf instead of NAN.
47136         * modules/truncf-tests (Files): Add tests/nan.h.
47137
47138         * tests/test-ceilf1.c: Include nan.h.
47139         (main): Use NaNf instead of NAN.
47140         * modules/ceilf-tests (Files): Add tests/nan.h.
47141
47142         * tests/test-floorf1.c: Include nan.h.
47143         (main): Use NaNf instead of NAN.
47144         * modules/floorf-tests (Files): Add tests/nan.h.
47145
47146         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47147         (main): Use NaNf instead of NAN.
47148         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47149
47150         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47151         (main): Use NaNd instead of NAN.
47152         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47153
47154         * tests/test-frexp.c: Include nan.h.
47155         (main): Use NaNd instead of NAN.
47156         * modules/frexp-tests (Files): Add tests/nan.h.
47157
47158         * lib/isnan.c: Don't include <math.h>.
47159         (FUNC): Don't use NAN macro.
47160         * modules/isnand-nolibm (Depends-on): Remove math.
47161         * modules/isnanf-nolibm (Depends-on): Remove math.
47162         * modules/isnanl (Depends-on): Remove math.
47163         * modules/isnanl-nolibm (Depends-on): Remove math.
47164
47165         * tests/nan.h: New file.
47166
47167 2008-04-01  Eric Blake  <ebb9@byu.net>
47168
47169         Fix typos.
47170         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47171         values to be the right type.
47172
47173         For now, cater to gnulib strtod inaccuracies.
47174         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47175         fractional results.  While not as nice from a QoI perspective, it
47176         is a quicker patch than correctly implementing decimal to binary
47177         rounding.
47178
47179 2008-03-31  Eric Blake  <ebb9@byu.net>
47180
47181         Guarantee a definition of NAN.
47182         * lib/math.in.h (NAN): Define if missing.
47183         * tests/test-math.c (main): Test it.
47184         * doc/posix-headers/math.texi (math.h): Document this.
47185         * lib/isnan.c (rpl_isnand): Use it.
47186         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47187         * tests/test-floorf1.c (NaN): Likewise.
47188         * tests/test-frexp.c (NaN): Likewise.
47189         * tests/test-isnand.c (NaN): Likewise.
47190         * tests/test-isnanf.c (NaN): Likewise.
47191         * tests/test-round1.c (NaN): Likewise.
47192         * tests/test-roundf1.c (NaN): Likewise.
47193         * tests/test-snprintf-posix.h (NaN): Likewise.
47194         * tests/test-sprintf-posix.h (NaN): Likewise.
47195         * tests/test-trunc1.c (NaN): Likewise.
47196         * tests/test-truncf1.c (NaN): Likewise.
47197         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47198         * tests/test-vasprintf-posix.c (NaN): Likewise.
47199         * modules/isnand-nolibm (Depends-on): Add math.
47200         * modules/isnanf-nolibm (Depends-on): Likewise.
47201         * modules/isnanl (Depends-on): Likewise.
47202         * modules/isnanl-nolibm (Depends-on): Likewise.
47203         * modules/snprintf-posix-tests (Depends-on): Likewise.
47204         * modules/sprintf-posix-tests (Depends-on): Likewise.
47205         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47206         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47207         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47208         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47209
47210 2008-03-31  Bruno Haible  <bruno@clisp.org>
47211
47212         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47213         * doc/posix-functions/strtod.texi: Likewise.
47214
47215 2008-03-31  Bruno Haible  <bruno@clisp.org>
47216
47217         * tests/test-strtod.c (main): Don't use C99 syntax.
47218
47219 2008-03-31  Bruno Haible  <bruno@clisp.org>
47220
47221         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47222         Reported by Eric Blake.
47223
47224 2008-03-31  Jim Meyering  <meyering@redhat.com>
47225
47226         Don't compare actual signbit return values.
47227         * tests/test-strtod.c (main): Rather, compare only their
47228         zero/non-zero nature.
47229
47230 2008-03-31  Eric Blake  <ebb9@byu.net>
47231
47232         More strtod documentation.
47233         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47234         failures as distinct bugs.
47235
47236 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47237
47238         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47239         Problem reported by Erik Benada in
47240         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47241
47242 2008-03-30  Bruno Haible  <bruno@clisp.org>
47243
47244         * tests/test-strtod.c: Add comments about which assertion fails on which
47245         platform.
47246         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47247
47248 2008-03-30  Eric Blake  <ebb9@byu.net>
47249
47250         Test signbit behavior on zeros.
47251         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47252         (test_signbitd, test_signbitl): Likewise.
47253
47254         More strtod touchups.
47255         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47256         sign of negative underflow, for now.  Use .5, not .1.
47257         * doc/posix-functions/strtod.texi (strtod): Mention these
47258         limitations.
47259         Reported by Jim Meyering.
47260
47261 2008-03-30  Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47264         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47265
47266 2008-03-30  Bruno Haible  <bruno@clisp.org>
47267
47268         Avoid failure when attempting to return empty iconv results on some
47269         platforms.
47270         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47271         allocation, don't report ENOMEM when the resulting string is empty.
47272
47273 2008-03-30  Bruno Haible  <bruno@clisp.org>
47274
47275         Fix buffer overrun.
47276         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47277         Don't consider the width for tmp_length. Check count against tmp_length
47278         before doing the padding. Ensure enough allocation during padding.
47279
47280 2008-03-30  Eric Blake  <ebb9@byu.net>
47281
47282         strtod touchups.
47283         * lib/strtod.c (strtod): Avoid compiler warnings.
47284         Reported by Jim Meyering.
47285
47286 2008-03-30  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47289         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47290         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47291         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47292         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47293         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47294         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47295         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47296
47297         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47298         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47299         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47300         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47301         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47302         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47303         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47304         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47305
47306         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47307         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47308         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47309         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47310         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47311         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47312         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47313         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47314
47315         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47316         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47317
47318         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47319         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47320
47321         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47322         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47323
47324         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47326         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47327
47328         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47330         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47331
47332         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47334         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47335
47336         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47338         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47339
47340         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47341         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47343         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47344         (Depends-on): Add EOVERFLOW.
47345         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47346         (Depends-on): Add EOVERFLOW.
47347         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47348         (Depends-on): Add EOVERFLOW.
47349         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47350         (Depends-on): Add EOVERFLOW.
47351         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47352         (Depends-on): Add EOVERFLOW.
47353         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47354         (Depends-on): Add EOVERFLOW.
47355         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47356         (Depends-on): Add EOVERFLOW.
47357         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47358         (Depends-on): Add EOVERFLOW.
47359
47360         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47362         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47363
47364         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47366         * modules/snprintf (Depends-on): Add EOVERFLOW.
47367
47368         * lib/poll.c (EOVERFLOW): Remove fallback.
47369         * modules/poll (Depends-on): Add EOVERFLOW.
47370
47371         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47372         * modules/getugroups (Depends-on): Add EOVERFLOW.
47373
47374         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47375         * modules/getdelim (Depends-on): Add EOVERFLOW.
47376
47377         * lib/ftell.c (EOVERFLOW): Remove fallback.
47378         * modules/ftell (Depends-on): Add EOVERFLOW.
47379
47380         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47382         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47383
47384         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47385
47386         * modules/EOVERFLOW-tests: New file.
47387         * tests/test-EOVERFLOW.c: New file.
47388
47389         * modules/EOVERFLOW: New file.
47390         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47391
47392 2008-03-30  Bruno Haible  <bruno@clisp.org>
47393
47394         Fix bug introduced on 2007-06-10.
47395         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47396         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47397
47398 2008-03-30  Bruno Haible  <bruno@clisp.org>
47399
47400         Improve freadseek's efficiency after ungetc.
47401         * lib/freadseek.c: Include freadahead.h.
47402         (freadptrinc): New function, extracted from freadseek.
47403         (freadseek): Use it in a loop. Use freadahead to determine the number
47404         of loop iterations.
47405         * modules/freadseek (Depends-on): Add freadahead.
47406         (configure.ac): Require AC_C_INLINE.
47407
47408 2008-03-30  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/freadseek.c (freadseek): Don't ignore the return value of
47411         freadptr.
47412
47413 2008-03-29  Eric Blake  <ebb9@byu.net>
47414
47415         Add hex float support.
47416         * modules/strtod (Depends-on): Add c-ctype.
47417         (Link): Mention POW_LIB.
47418         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47419         whitespace between 'e' and exponent.
47420         * tests/test-strtod.c (main): Enable hex float tests.
47421         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47422         now provides.
47423
47424         Document various strtod bugs, with some fixes.
47425         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47426         "-0x", "inf", "nan", and hex constants.
47427         * doc/posix-functions/atof.texi (atof): Likewise.
47428         * modules/stdlib (Makefile.am): Support strtod.
47429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47430         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47431         detect additional strtod bugs.
47432         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47433         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47434         bool where appropriate.  Parse 'inf' and 'nan'.
47435         * tests/test-strtod.c: New file.
47436         * modules/strtod (Depends-on): Add stdbool, stdlib.
47437         (configure.ac): Turn on module indicator.
47438         * modules/strtod-tests: New module.
47439
47440 2008-03-29  Eric Blake  <ebb9@byu.net>
47441
47442         Fix ftell on mingw.
47443         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47444         * modules/ftell-tests (Depends-on): Add binary-io.
47445         * modules/ftello-tests (Depends-on): Likewise.
47446         * tests/test-ftell.c (main): Enhance test to cover behavior after
47447         ungetc.  Enforce binary mode.
47448         * tests/test-ftello.c (main): Likewise.
47449
47450         Pass test-freadseek on cygwin.
47451         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47452         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47453         ungetc buffer.
47454
47455         * tests/test-fflush2.c (main): Fix typo.
47456
47457 2008-03-29  Bruno Haible  <bruno@clisp.org>
47458
47459         * tests/test-fflush2.c (main): Temporarily disable the contents of
47460         this test.
47461         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47462         Reported by Eric Blake.
47463
47464 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47465
47466         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47467         (GC_SHA224_DIGEST_SIZE): Add.
47468
47469         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47470         (gc_hash_digest_length): Likewise.
47471         (gc_hash_buffer): Likewise.
47472
47473 2008-03-25  Bruno Haible  <bruno@clisp.org>
47474
47475         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47476         detail which gettext release to use.
47477         Reported by Simon Josefsson.
47478
47479 2008-03-26  Jim Meyering  <meyering@redhat.com>
47480
47481         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47482         * modules/gnumakefile (clean-GNUmakefile): Also, use
47483         test ... && ... || : syntax rather than if-then ... fi.
47484
47485         gnumakefile: Don't double-quote-expand $(VPATH) value.
47486         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47487
47488 2008-03-24  Eric Blake  <ebb9@byu.net>
47489
47490         Alter GNUmakefile to install into top directory.
47491         * modules/maintainer-makefile: Split, and add dependency...
47492         * modules/gnumakefile: to this new module.
47493         * build-aux/GNUmakefile: Move...
47494         * top/GNUmakefile: ...here.
47495         * build-aux/maint.mk: Move...
47496         * top/maint.mk: ...here.
47497         * MODULES.html.sh (Support for maintaining...): Document new
47498         module.
47499
47500 2008-03-23  Bruno Haible  <bruno@clisp.org>
47501
47502         * gnulib-tool: New options --vc-files, --no-vc-files.
47503         (func_usage): Document them.
47504         (vc_files): New variable.
47505         (func_import): Consider vc_files.
47506         (func_create_testdir): Set vc_files to empty.
47507         Suggested by Jim Meyering and Karl Berry.
47508
47509 2008-03-23  Bruno Haible  <bruno@clisp.org>
47510
47511         Fix regex compilation error on HP-UX 11.
47512         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47513         * modules/regex (Files): Add m4/mbstate_t.m4.
47514         Reported by Ton Voon <ton.voon@altinity.com>.
47515
47516 2008-03-23  Bruno Haible  <bruno@clisp.org>
47517
47518         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47519
47520 2008-03-23  Eric Blake  <ebb9@byu.net>
47521             Bruno Haible  <bruno@clisp.org>
47522
47523         Install files from top/ in the destination directory.
47524         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47525         augmentation also for the files from top/.
47526         (func_import, func_create_testdir): Rewrite file names:
47527         top/filename -> filename.
47528
47529 2008-03-23  Bruno Haible  <bruno@clisp.org>
47530
47531         Tweak "gnulib --version" output.
47532         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47533
47534 2008-03-23  Bruno Haible  <bruno@clisp.org>
47535
47536         Tweak "gnulib --version" output.
47537         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47538         rather than contents of ChangeLog, when possible.
47539
47540 2008-03-21  Eric Blake  <ebb9@byu.net>
47541
47542         More --version tweaks.
47543         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47544         date of last ChangeLog entry.
47545
47546 2008-03-21  Jim Meyering  <meyering@redhat.com>
47547
47548         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47549
47550 2008-03-20  Eric Blake  <ebb9@byu.net>
47551
47552         VPATH fix.
47553         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47554
47555 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47556
47557         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47558         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47559
47560 2008-03-20  Eric Blake  <ebb9@byu.net>
47561
47562         Sync GNUmakefile with coreutils.
47563         * build-aux/GNUmakefile (have-Makefile): Rename...
47564         (_have-Makefile): ...to this, for namespace consideration.
47565         (GNUmakefile.cfg): Include, if present.
47566         (_autoreconf): Define a default.
47567         (_is-dist-target): New rule for rebuilds to pick up intra-release
47568         version.
47569         (maint-cfg.mk): Rename...
47570         (cfg.mk): ...to this.
47571
47572 2008-03-18  Jim Meyering  <meyering@redhat.com>
47573
47574         New script and module: mktempd
47575         * MODULES.html.sh (maint+release support): Add mktempd.
47576         * build-aux/mktempd: New file.
47577         * modules/mktempd: New file.
47578
47579 2008-03-15  Jim Meyering  <meyering@redhat.com>
47580
47581         Undo last change.
47582         * lib/sha1.c, lib/md5.c: 63 != ~63.
47583         Reported by Andreas Schwab.
47584
47585         sha1.c, md5.c: Hoist a redundant expression.
47586         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47587         "ctx->buflen" only once, before calling *_process_block.
47588         * lib/md5.c (md5_process_bytes): Likewise.
47589
47590 2008-03-14  Eric Blake  <ebb9@byu.net>
47591
47592         Bump copyright year in files generated by gnulib-tool.
47593         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47594         gnulib-tool, rather than hard-coding it.
47595
47596         Fix 'gnulib-tool --version' output to work with git.
47597         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47598         (startup): ...here.
47599         (func_version): Use it to invoke git-version-gen, rather than
47600         relying on CVS keyword expansion.  Modernize wording.
47601         (cvsdatestamp, last_checkin_date, version): Kill unused
47602         variables.
47603
47604 2008-03-12  Jim Meyering  <meyering@redhat.com>
47605
47606         Recognize optional cast of the argument to free.
47607         * build-aux/useless-if-before-free: Update regexps.
47608
47609         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47610
47611 2008-03-11  Bruno Haible  <bruno@clisp.org>
47612
47613         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47614         by a single package.
47615         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47616         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47617         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47618         Reported by Sam Steingold <sds@gnu.org>.
47619
47620 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47621
47622         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47623         repositories.
47624
47625 2008-03-11  Bruno Haible  <bruno@clisp.org>
47626
47627         Avoid conflicts between local macro definitions.
47628         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47629         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47630
47631 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47632             Bruno Haible  <bruno@clisp.org>
47633
47634         Make va_copy work with some version of xlc on AIX 5.1.
47635         * lib/stdarg.in.h: New file.
47636         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47637         On AIX, use a <stdarg.h> file substitute.
47638         * modules/stdarg (Files): Add lib/stdarg.in.h.
47639         (Depends-on): Add include_next.
47640         (Makefile.am): Build a stdarg.h substitute if requested.
47641         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47642
47643 2008-03-10  Bruno Haible  <bruno@clisp.org>
47644
47645         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47646         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47647         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47648
47649 2008-03-10  Bruno Haible  <bruno@clisp.org>
47650
47651         * modules/stdlib (Depends-on): Add include_next, remove
47652         absolute-header.
47653
47654 2008-03-09  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/freadahead.h (freadahead): Document more precisely.
47657         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47658         the sum of both buffer sizes.
47659         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47660         * NEWS: Document the change.
47661
47662 2008-03-09  Bruno Haible  <bruno@clisp.org>
47663
47664         Extend freadptr to return also the buffer size.
47665         * lib/freadptr.h (freadptr): Add sizep argument.
47666         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47667         (freadptr): Add sizep argument. Determine buffer size like freadahead
47668         does.
47669         * tests/test-freadptr.c: Don't include freadahead.h.
47670         (main): Adapt for new calling convention of freadptr.
47671         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47672         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47673         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47674         tests/test-freadptr2.sh.
47675         (Depends): Remove freadahead.
47676         (TESTS): Add test-freadptr2.sh.
47677         (check_PROGRAMS): Add test-freadptr2.
47678
47679 2008-03-09  Bruno Haible  <bruno@clisp.org>
47680
47681         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47682         Report and solution by Simon Josefsson.
47683
47684 2008-03-06  Bruno Haible  <bruno@clisp.org>
47685
47686         Make fflush after ungetc work on BSD platforms.
47687         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47688         * tests/test-fflush2.c: New file.
47689         * tests/test-fflush2.sh: New file.
47690         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47691         tests/test-fflush2.c.
47692         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47693         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47694
47695 2008-03-06  Eric Blake  <ebb9@byu.net>
47696
47697         Likewise for ftello.
47698         * modules/ftello (Dependencies): Add extensions.
47699         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47700
47701 2008-03-06  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/fseeko (Dependencies): Add extensions.
47704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47705         Needed on glibc systems.
47706
47707 2008-03-06  Bruno Haible  <bruno@clisp.org>
47708
47709         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47710         email address.
47711         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47712
47713 2008-03-06  Bruno Haible  <bruno@clisp.org>
47714
47715         * users.txt: Add libgnupdf.
47716
47717 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47718
47719         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47720         (Header File Substitutes, Function Substitutes,
47721         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47722         (Build robot for gnulib): Fix typo.
47723
47724 2008-03-06  Bruno Haible  <bruno@clisp.org>
47725
47726         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47727         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47728
47729 2008-03-06  Bruno Haible  <bruno@clisp.org>
47730
47731         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47732         * doc/gnulib.texi: Include it.
47733
47734 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47735
47736         * modules/func (License): Change license to unlimited; there was
47737         no LGPL parts in the module anyway.
47738
47739 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47740
47741         * modules/__func__: Renamed to modules/func.
47742         * modules/__func__-tests: Renamed to modules/func-tests.
47743         * tests/test-__func__.c: Renamed to tests/test-func.c.
47744         * m4/__func__.m4: Renamed to m4/func.m4.
47745         * doc/gnulib.texi (__func__): Section renamed to func.
47746         Suggested by Eric Blake <ebb9@byu.net>.
47747
47748 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47749
47750         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47751         about __func__.  Make example self-contained.  Suggested by Eric
47752         Blake <ebb9@byu.net>.
47753
47754         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47755         Suggested by Eric Blake <ebb9@byu.net>.
47756
47757 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47758
47759         * modules/__func__: New file.
47760         * modules/__func__-tests: New file.
47761         * tests/test-__func__.c: New file.
47762         * m4/__func__.m4: New file.
47763         * doc/gnulib.texi (__func__): Document __func__ module.
47764
47765 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47766
47767         * modules/byteswap (License): Re-license as LGPLv2+.
47768
47769 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47770
47771         * doc/Makefile: Add pdf target.
47772
47773 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47774
47775         * modules/inline (License): Use 'unlimited', since there are only
47776         *.m4 files in this module.
47777
47778 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47779             Bruno Haible  <bruno@clisp.org>
47780
47781         Add support for HP C 7.1 on OpenVMS 8.3.
47782         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47783
47784 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47785
47786         Update VMS specifics.
47787         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47788
47789 2008-03-02  Jim Meyering  <meyering@redhat.com>
47790
47791         Remove the last dependency on the "free" module.
47792         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47793         Reported by Bob Proulx.
47794
47795         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47796
47797         Remove useless "if" tests before free.  Deprecate "free" module.
47798         * doc/posix-functions/free.texi: Mention that this
47799         module is no longer useful.
47800         * modules/free (Notice): Say this module is obsolete.
47801         * modules/readutmp (Depends-on): Remove free.
47802         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47803         * lib/putenv.c (putenv): Likewise.
47804         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47805         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47806         * tests/test-c-strcasestr.c (main): Likewise.
47807         * tests/test-c-strstr.c (main): Likewise.
47808         * tests/test-mbscasestr1.c (main): Likewise.
47809         * tests/test-mbscasestr2.c (main): Likewise.
47810         * tests/test-mbsstr1.c (main): Likewise.
47811         * tests/test-mbsstr2.c (main): Likewise.
47812         * tests/test-memmem.c (main): Likewise.
47813         * tests/test-strcasestr.c (main): Likewise.
47814         * tests/test-striconv.c (main): Likewise.
47815         * tests/test-striconveh.c (main): Likewise.
47816         * tests/test-striconveha.c (main): Likewise.
47817         * tests/test-strstr.c (main): Likewise.
47818
47819         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47820
47821         bootstrap: sync from coreutils again
47822         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47823
47824 2008-03-01  Jim Meyering  <meyering@redhat.com>
47825
47826         bootstrap: sync from coreutils
47827         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47828         also when the target doesn't exist.
47829
47830 2008-03-01  Eric Blake  <ebb9@byu.net>
47831
47832         Fix bugs in last patch.
47833         * lib/memchr2.c (memchr2): Fix typo.
47834         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47835         extension.
47836         Reported by Bruce Korb.
47837
47838         New module 'memchr2'.
47839         * modules/memchr2: New file.
47840         * modules/memchr2-tests: Likewise.
47841         * lib/memchr2.h: Likewise.
47842         * lib/memchr2.c: Likewise, based on memchr.c.
47843         * tests/test-memchr2.c: New test.
47844         * MODULES.html.sh (String handling): Add memchr2.
47845
47846 2008-02-29  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/freadseek-tests: New file.
47849         * tests/test-freadseek.sh: New file.
47850         * tests/test-freadseek.c: New file.
47851
47852         New module 'freadseek'.
47853         * modules/freadseek: New file.
47854         * lib/freadseek.h: New file.
47855         * lib/freadseek.c: New file.
47856         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47857
47858 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47859
47860         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47861         wydawca.
47862
47863         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47864         program_invocation_name and program_invocation_short_name are
47865         present.
47866
47867 2008-02-28  Bruno Haible  <bruno@clisp.org>
47868
47869         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47870         * tests/test-freadptr.sh: Also test non-seekable stdin.
47871
47872 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47873
47874         * build-aux/bootstrap (source_base, m4_base)
47875         (doc_base, tests_base): New variables.
47876         (gnulib_tool_options): Do not hardcode base directories, use
47877         the above variables instead.
47878
47879 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47880
47881         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47882
47883 2008-02-28  Bruno Haible  <bruno@clisp.org>
47884
47885         * modules/freadptr-tests: New file.
47886         * tests/test-freadptr.sh: New file.
47887         * tests/test-freadptr.c: New file.
47888
47889         New module 'freadptr'.
47890         * modules/freadptr: New file.
47891         * lib/freadptr.h: New file.
47892         * lib/freadptr.c: New file.
47893         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47894
47895 2008-02-26  Karl Berry  <karl@freefriends.org>
47896
47897         Sync from Libtool:
47898         * libltdl/argz.c (argz_add, argz_count): New functions.
47899         * libltdl/argz.in.h: Declare them.
47900         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47901
47902 2008-02-22  Bruno Haible  <bruno@clisp.org>
47903
47904         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47905         is a pointer type.  Needed for HP-UX 10.
47906         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47907         * doc/posix-functions/gmtime_r.texi: Likewise.
47908         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47909
47910 2008-02-24  Bruno Haible  <bruno@clisp.org>
47911
47912         * modules/environ-tests: New file.
47913         * tests/test-environ.c: New file.
47914
47915         New module 'environ'.
47916         * modules/environ: New file.
47917         * lib/unistd.in.h (environ): New declaration.
47918         * m4/environ.m4: New file.
47919         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47920         after use.
47921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47922         HAVE_DECL_ENVIRON.
47923         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47924         HAVE_DECL_ENVIRON.
47925         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47926         wrong claim that 'environ' is missing on some systems.
47927         * modules/execute (Depends-on): Add environ.
47928         * lib/execute.c (environ): Remove fallback declaration.
47929         * modules/pipe (Depends-on): Add environ.
47930         * lib/pipe.c (environ): Remove fallback declaration.
47931         * modules/setenv (Depends-on): Add environ.
47932         * lib/setenv.c (environ): Remove fallback declaration.
47933         * modules/unsetenv (Depends-on): Add environ.
47934         * lib/unsetenv.c (environ): Remove fallback declaration.
47935         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47936         m4/environ.m4.
47937         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47938         (gl_PREREQ_UNSETENV): Likewise.
47939
47940 2008-02-24  Bruno Haible  <bruno@clisp.org>
47941
47942         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47943
47944 2008-02-20  Bob Proulx  <bob@proulx.com>
47945
47946         Enable use of older two part flavor 'git describe'.
47947         * build-aux/git-version-gen: If using the older two part flavor of
47948         git version then recreate the third part now present in the
47949         newer three part flavor of git describe.
47950
47951 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47952
47953         * lib/fts.c (fts_build): Typo correction to comment.
47954
47955 2008-02-17  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47958         generating no-op conflicts.
47959
47960 2008-02-17  Bruno Haible  <bruno@clisp.org>
47961
47962         Speed up by 10%.
47963         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47964         result_entries, rather than an index-based loop.
47965
47966 2008-02-17  Bruno Haible  <bruno@clisp.org>
47967
47968         Speed up by 25%.
47969         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47970         'hashcode_cached'.
47971         (entry_create): New function.
47972         (entry_hashcode): Use the cached hashcode if possible.
47973         (read_changelog_file, try_split_merged_entry): Use entry_create.
47974
47975 2008-02-17  Bruno Haible  <bruno@clisp.org>
47976
47977         Speed up from O(n^2) to O(n) for long ChangeLog files.
47978         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47979         (read_changelog_file): Change implementation of entries_reversed list
47980         to rbtreehash.
47981         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47982
47983 2008-02-17  Bruno Haible  <bruno@clisp.org>
47984
47985         New option --split-merged-entry.
47986         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47987         (find_paragraph_end, try_split_merged_entry): New functions.
47988         (long_options): Add option --split-merged-entry.
47989         (usage): Document option --split-merged-entry.
47990         (main): Implement option --split-merged-entry.
47991         Reported by Eric Blake.
47992
47993 2008-02-17  Bruno Haible  <bruno@clisp.org>
47994
47995         * lib/git-merge-changelog.c: Include c-strstr.h.
47996         (main): Support the "git pull --rebase" situation.
47997         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47998         Reported by Eric Blake.
47999
48000 2008-02-16  Eric Blake  <ebb9@byu.net>
48001
48002         Avoid doubling \ in common case of "c-maybe" quoting style.
48003         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48004         eliding outer quotes.
48005         * lib/quotearg.h: Document this.
48006         * tests/test-quotearg.c (result_strings, inputs, results_g)
48007         (flag_results, locale_results): Test it by adding a new string to
48008         each test group.
48009         (compare_strings): Test new string.
48010
48011 2008-02-13  Eric Blake  <ebb9@byu.net>
48012
48013         Avoid trigraph quoting in default output.
48014         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48015         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48016         unless explicitly requested.
48017         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48018
48019 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48020
48021         Don't rely on signed integer overflowing to negative value.
48022         * lib/getugroups.c (getugroups): Include <limits.h>.
48023         Instead, compare against INT_MAX, and increment only if the test passes.
48024
48025 2008-02-13  Jim Meyering  <meyering@redhat.com>
48026         and Eric Blake  <ebb9@byu.net>
48027
48028         Avoid shadowing warning and compile errors on Linux.
48029         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48030         forwarding macros on Linux.
48031         (dcgettext): Define a stub, for Linux.
48032         (results_g, main): Avoid warnings.
48033
48034 2008-02-12  Eric Blake  <ebb9@byu.net>
48035
48036         Silence warning in last patch.
48037         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48038
48039         Quotearg part 4: add tests, fix c-maybe colon quoting.
48040         * lib/quotearg.h: Improve documentation.
48041         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48042         escapes when adding outer quotes.  When quoting trigraphs, use
48043         valid C notation.  When quoting NUL, omit extra characters if next
48044         character is not digit.  Alter prototype.
48045         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48046         callers.
48047         * modules/quotearg-tests: New module.
48048         * tests/test-quotearg.c: New test.
48049
48050 2008-02-07  Eric Blake  <ebb9@byu.net>
48051
48052         Quotearg part 3: add flag to control outer quote elision.
48053         * lib/quotearg.h (c_maybe_quoting_style): New style.
48054         (enum quoting_flags): Better documentation of flags.
48055         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48056         c-maybe style.
48057         (quotearg_buffer_restyled): Handle new flag to elide outer
48058         quotes.
48059
48060         Quotearg part 2: add flag that can control NUL elision.
48061         * lib/quotearg.h (set_quoting_flags): New prototype.
48062         * lib/quotearg.c (struct quoting_options): Add flag field.
48063         (set_quoting_flags): New function.
48064         (quotearg_buffer_restyled): Add flags parameter.
48065         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48066         (quotearg_n_options): Set the flag, since length cannot be
48067         returned.
48068         (quoting_options_from_style): Default flags correctly.
48069
48070         Quotearg part 1: more wrappers, restore quotearg_char state.
48071         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48072         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48073         (quotearg_colon_mem): New wrappers.
48074         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48075         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48076         functions.
48077         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48078         (quotearg_colon_mem): New functions.
48079
48080 2008-02-11  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48083         library in the current directory: it does not work with parallel make.
48084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48085
48086 2008-02-11  Bruno Haible  <bruno@clisp.org>
48087
48088         * .gitattributes: New file.
48089
48090 2008-02-11  Jim Meyering  <meyering@redhat.com>
48091
48092         useless-if-before-free: Fix reversed exit values.
48093         * build-aux/useless-if-before-free: Use correct values
48094         for EXIT_MATCH and EXIT_NO_MATCH.
48095
48096         * build-aux/useless-if-before-free: Close stdout carefully.
48097
48098 2008-02-10  Bruno Haible  <bruno@clisp.org>
48099
48100         New module 'git-merge-changelog'.
48101         * modules/git-merge-changelog: New file.
48102         * lib/git-merge-changelog.c: New file.
48103
48104 2008-02-10  Jim Meyering  <meyering@redhat.com>
48105
48106         useless-if-before-free: New option: --list (-l).
48107
48108         useless-if-before-free: Don't exit immediately upon open failure.
48109         * build-aux/useless-if-before-free: Exit 2 for errors.
48110         Upon failure to open a file, don't exit immediately.
48111         Rather, just warn and continue with any remaining files.
48112
48113 2008-02-10  Bruno Haible  <bruno@clisp.org>
48114
48115         New abstract list operation 'node_set_value'.
48116         * lib/gl_list.h (gl_list_node_set_value): New function.
48117         (struct gl_list_implementation): New field node_set_value.
48118         * lib/gl_list.c (gl_list_node_set_value): New function.
48119         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48120         (gl_array_list_implementation): Update.
48121         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48122         (gl_carray_list_implementation): Update.
48123         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48124         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48125         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48126         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48127         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48128         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48129         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48130         Update.
48131         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48132         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48133         (gl_sublist_list_implementation): Update.
48134
48135 2008-02-10  Bruno Haible  <bruno@clisp.org>
48136
48137         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48138         Needed when ELEMENT is #defined to 'some_type *'.
48139
48140 2008-02-10  Jim Meyering  <meyering@redhat.com>
48141
48142         New script and module: useless-if-before-free
48143         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48144         * build-aux/useless-if-before-free: New file.
48145         * modules/useless-if-before-free: New file.
48146
48147         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48148
48149         xstrtol_error: Fix typo.
48150         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48151         s/exit_failure/exit_status/.
48152
48153 2008-02-09  Jim Meyering  <meyering@redhat.com>
48154
48155         New script and module: gitlog-to-changelog
48156         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48157         * modules/gitlog-to-changelog: New file.
48158         * build-aux/gitlog-to-changelog: New file.
48159
48160 2008-02-08  Jim Meyering  <meyering@redhat.com>
48161
48162         Avoid two "parameter unused" warnings.
48163         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48164         Mark "st" as used.
48165
48166         Use "git COMMAND", not "git-COMMAND".
48167         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48168         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48169         * build-aux/git-version-gen: Use "git status", not "git-status".
48170
48171 2008-02-07  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48174         Avoids a crash on Windows Vista.
48175         Reported by Adam Strzelecki <ono@java.pl> via
48176         Simon Josefsson <simon@josefsson.org>.
48177
48178 2008-02-06  Bruno Haible  <bruno@clisp.org>
48179
48180         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48181         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48182         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48184         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48186         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48187         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48195         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48196         left-adjust flag.
48197         * tests/test-snprintf-posix.h (test_function): Likewise.
48198         * tests/test-sprintf-posix.h (test_function): Likewise.
48199         * tests/test-vasprintf-posix.c (test_function): Likewise.
48200         * doc/posix-functions/fprintf.texi: Update.
48201         * doc/posix-functions/printf.texi: Update.
48202         * doc/posix-functions/snprintf.texi: Update.
48203         * doc/posix-functions/sprintf.texi: Update.
48204         * doc/posix-functions/vfprintf.texi: Update.
48205         * doc/posix-functions/vprintf.texi: Update.
48206         * doc/posix-functions/vsnprintf.texi: Update.
48207         * doc/posix-functions/vsprintf.texi: Update.
48208         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48209
48210 2008-02-06  Bruno Haible  <bruno@clisp.org>
48211
48212         Fix bug introduced on 2008-01-26.
48213         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48214
48215 2008-02-06  Bruno Haible  <bruno@clisp.org>
48216
48217         Fix bug introduced on 2007-06-10.
48218         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48219         !NEED_PRINTF_FLAG_ZERO.
48220
48221 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48222
48223         getloadavg: use libperfstat on AIX5
48224         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48225
48226 2008-02-03  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/diffseq.h: Add comments about required #includes.
48229         Reported by Michael Biggs <gnulib@doubleplum.net>.
48230
48231 2008-02-01  Bruno Haible  <bruno@clisp.org>
48232
48233         * users.txt: Add gnuit.
48234
48235 2008-01-31  Bruno Haible  <bruno@clisp.org>
48236
48237         * lib/md4.c (set_uint32): Mark as inline.
48238         * lib/md5.c (set_uint32): Likewise.
48239         * lib/sha1.c (set_uint32): Likewise.
48240         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48241         * m4/md5.m4 (gl_MD5): Likewise.
48242         * m4/sha1.m4 (gl_SHA1): Likewise.
48243
48244 2008-01-31  Jim Meyering  <meyering@redhat.com>
48245
48246         Use "sizeof VAR", rather than a literal "4".
48247         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48248         * lib/md4.c (md4_read_ctx): Likewise.
48249         * lib/sha1.c (sha1_read_ctx): Likewise.
48250
48251 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48252
48253         * tests/test-sha1.c: New file, based on test-md5.c.
48254
48255         * modules/crypto/sha1-tests: New file.
48256
48257 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48258
48259         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48260
48261 2008-01-31  Jim Meyering  <meyering@redhat.com>
48262
48263         Prefer "sizeof v" over the equivalent "4".
48264         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48265         * lib/md5.c (set_uint32): Likewise.
48266         * lib/sha1.c (set_uint32): Likewise.
48267
48268 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48269
48270         * lib/sha1.c (set_uint32): Mark function as static.
48271
48272 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48273
48274         md2: clarify comments to say that alignment is not required.
48275         * lib/md2.h: Remove warning about alignment in comment.
48276         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48277         never been required.
48278
48279 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48280
48281         md4: adapt alignment constraint fix from sha1.
48282         * lib/md4.c (set_uint32): New function, from sha1.c
48283         (md4_read_ctx): Use it.
48284         (md4_finish_ctx): Doc fix.
48285         * lib/md4.h: Doc fix.
48286
48287 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48288
48289         md5: adapt alignment constraint fix from sha1.
48290         * lib/md5.c (set_uint32): New function, from sha1.c
48291         (md5_read_ctx): Use it.
48292         (md5_finish_ctx): Doc fix.
48293         * lib/md5.h: Doc fix.
48294
48295 2008-01-30  Peter Palfrader  <weasel@debian.org>
48296
48297         sha1: remove the result buffer alignment constraint
48298         * lib/sha1.c (set_uint32): New function.
48299         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48300         constraint.
48301         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48302         * lib/sha1.h: Likewise.
48303
48304 2008-01-30  Andreas Schwab  <schwab@suse.de>
48305             Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48308         correct definition of LDBL_MIN_EXP.
48309
48310 2008-01-30  Karl Berry  <karl@gnu.org>
48311
48312         * config/srclist-update: try to preserve x bit on updates.
48313         * config/srclistvars.sh: update for karl.
48314
48315 2008-01-29  Jim Meyering  <meyering@redhat.com>
48316
48317         vasnprintf.c: Avoid warning about unused label
48318         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48319         "overflow" label definition and associated code with the
48320         same cpp condition that guards the sole use of that label.
48321
48322 2008-01-26  Bruno Haible  <bruno@clisp.org>
48323
48324         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48325         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48326         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48327         * lib/isnanl-nolibm.h (isnanl): Likewise.
48328         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48329
48330 2008-01-26  Bruno Haible  <bruno@clisp.org>
48331
48332         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48333         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48334
48335 2008-01-26  Bruno Haible  <bruno@clisp.org>
48336
48337         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48338         GCC >= 4.0 built-in.
48339         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48340
48341 2008-01-26  Bruno Haible  <bruno@clisp.org>
48342
48343         Rename isnan, applicable to 'double' only, to isnand.
48344         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48345         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48346         (configure.ac): Update.
48347         (Include): Replace "isnan.h" with "isnand.h".
48348         * m4/isnand.m4: Renamed from m4/isnan.m4.
48349         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48350         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48351         instead of isnan.c.
48352         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48353         instead of HAVE_ISNAN_IN_LIBC.
48354         (isnand): Renamed from isnan.
48355         * lib/isnand.c: New file.
48356         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48357         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48358         (Makefile.am): Update.
48359         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48360         Include isnand.h instead of isnan.h.
48361         (main): Test isnand instead of isnan.
48362         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48363         isnan-nolibm.
48364         * modules/frexp (Depends-on): Likewise.
48365         * modules/frexp-tests (Depends-on): Likewise.
48366         * modules/frexp-nolibm (Depends-on): Likewise.
48367         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48368         * modules/isfinite (Depends-on): Likewise.
48369         * modules/round-tests (Depends-on): Likewise.
48370         * modules/signbit (Depends-on): Likewise.
48371         * modules/signbit-tests (Depends-on): Likewise.
48372         * modules/snprintf-posix (Depends-on): Likewise.
48373         * modules/sprintf-posix (Depends-on): Likewise.
48374         * modules/trunc-tests (Depends-on): Likewise.
48375         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48376         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48377         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48378         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48379         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48380         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48381         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48382         * modules/vasnprintf-posix (Depends-on): Likewise.
48383         * modules/vasprintf-posix (Depends-on): Likewise.
48384         * modules/vfprintf-posix (Depends-on): Likewise.
48385         * modules/vsnprintf-posix (Depends-on): Likewise.
48386         * modules/vsprintf-posix (Depends-on): Likewise.
48387         * lib/frexp.c: Include isnand.h instead of isnan.h.
48388         (ISNAN): Set to isnand instead of isnan.
48389         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48390         (gl_isfinited): Use isnand instead of isnan.
48391         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48392         (gl_signbitd): Use isnand instead of isnan.
48393         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48394         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48395         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48396         (main): Use isnand instead of isnan.
48397         * tests/test-round1.c: Include isnand.h.
48398         (main): Use isnand instead of isnan.
48399         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48400         (ISNAN): Set to isnand instead of isnan.
48401         * tests/test-trunc1.c: Include isnand.h.
48402         (main): Use isnand instead of isnan.
48403         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48404         (equal): Use isnand instead of isnan.
48405         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48406         isnand-nolibm.
48407         * NEWS: Mention the change.
48408
48409 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48410             Bruno Haible  <bruno@clisp.org>
48411
48412         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48413         the GCC builtins for signbits are present and set
48414         REPLACE_SIGNBIT_USING_GCC if so.
48415         * lib/math.in.h (signbit): Define using GCC builtins if
48416         REPLACE_SIGNBIT_USING_GCC is set.
48417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48418         REPLACE_SIGNBIT_USING_GCC.
48419         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48420
48421 2008-01-25  Jim Meyering  <meyering@redhat.com>
48422
48423         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48424         * lib/poll.c: Include <config.h>, not "config.h".
48425         * tests/test-getaddrinfo.c: Likewise.
48426
48427 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48428
48429         * modules/sockets-tests: New file.
48430
48431 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48432
48433         * modules/sockets: New module, can be used to call WSA_Startup and
48434         WSA_Cleanup when needed.
48435
48436         * lib/sockets.h, lib/sockets.c: New files.
48437
48438         * m4/sockets.m4: New file.
48439
48440         * tests/test-sockets.c: New file.
48441
48442 2008-01-19  Bruno Haible  <bruno@clisp.org>
48443
48444         * doc/posix-headers: Renamed from doc/headers.
48445         * doc/posix-functions: Renamed from doc/functions.
48446         * doc/gnulib.texi: Update.
48447
48448 2008-01-19  Bruno Haible  <bruno@clisp.org>
48449
48450         * doc/glibc-functions/strcasestr.texi: Include contents of
48451         doc/functions/strcasestr.texi, fixing the list of platforms.
48452         * doc/functions/strcasestr.texi: Remove file.
48453
48454 2008-01-19  Bruno Haible  <bruno@clisp.org>
48455
48456         * doc/glibc-functions/memmem.texi: Include contents of
48457         doc/functions/memmem.texi.
48458         * doc/functions/memmem.texi: Remove file.
48459
48460 2008-01-18  Bruno Haible  <bruno@clisp.org>
48461
48462         * doc/glibc-functions/*.texi: New files.
48463         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48464         to use the new files.
48465
48466 2008-01-17  Bruno Haible  <bruno@clisp.org>
48467
48468         * tests/test-gethostname.c (main): Fix printf statement.
48469
48470 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48471
48472         * modules/gethostname-tests: New file.
48473
48474         * tests/test-gethostname.c: New file.
48475
48476 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48477
48478         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48479         used by the UNAME case.  Reported by Bruno Haible
48480         <bruno@clisp.org>.
48481
48482 2008-01-17  Eric Blake  <ebb9@byu.net>
48483
48484         Convert c-strcasestr to be more efficient.
48485         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48486         (Depends-on): Add c-strcase, remove malloca, strnlen.
48487         * tests/test-c-strcasestr.c (main): Enhance test.
48488         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48489
48490 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48491
48492         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48493         Use it in creating po/Makevars.
48494
48495 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48496
48497         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48498         Applications that requires it should initialize libgcrypt
48499         manually.
48500
48501 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48502
48503         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48504
48505 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         Fix problem with getdate on mingw32 reported by Simon Josefsson
48508         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48509         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48510         tzname", when deciding whether to declare tzname.
48511         * lib/strftime.c (tzname): Likewise.
48512
48513 2008-01-15  Bruno Haible  <bruno@clisp.org>
48514
48515         Work around a MacOS X 10.5 bug in frexpl().
48516         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48517         * doc/functions/frexpl.texi: Document the bug.
48518         Reported by Elias Pipping <pipping@gentoo.org>.
48519
48520 2008-01-14  Eric Blake  <ebb9@byu.net>
48521
48522         Touch up previous patch.
48523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48524         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48525
48526         Convert strcasestr module to use Two-Way algorithm.
48527         * modules/strcasestr-simple: New module, based on the old
48528         strcasestr, but with Two-Way rather than KMP.
48529         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48530         * lib/string.in.h (rpl_strcasestr): Declare.
48531         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48532         performance.
48533         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48534         * modules/string (Makefile.am): Support strcasestr.
48535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48536         * modules/strcasestr-tests (Depends-on): Check for alarm.
48537         * tests/test-strcasestr.c: Augment test.
48538         * lib/str-two-way.h: Clean up stray macro.
48539         * NEWS: Document new module.
48540         * MODULES.html.sh (string handling): Likewise.
48541         * doc/functions/strcasestr.texi: New file.
48542         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48543         here, since it is not a POSIX function.
48544
48545 2008-01-14  Colin Watson  <cjwatson@debian.org>
48546             Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48549         works fine; if not, set REPLACE_STRSIGNAL.
48550         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48552         REPLACE_STRSIGNAL.
48553         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48554         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48555         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48556
48557 2008-01-14  Bruno Haible  <bruno@clisp.org>
48558
48559         * modules/strsignal (Include): Change to <string.h>.
48560
48561 2008-01-14  Colin Watson  <cjwatson@debian.org>
48562
48563         * modules/argp (Notice): Add a notice recommending to change
48564         XGETTEXT_OPTIONS.
48565         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48566
48567 2008-01-13  Colin Watson  <cjwatson@debian.org>
48568
48569         * modules/strsignal-tests: New file.
48570         * tests/test-strsignal.c: New file.
48571
48572         * lib/strsignal.c: New file, from glibc with modifications.
48573         * lib/siglist.h: New file, from glibc with modifications.
48574         * lib/string.in.h (strsignal): New declaration.
48575         * m4/strsignal.m4: New file.
48576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48577         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48578         * modules/strsignal: New file.
48579         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48580         HAVE_DECL_STRSIGNAL.
48581
48582 2008-01-13  Bruno Haible  <bruno@clisp.org>
48583
48584         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48585         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48586         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48587         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48588
48589 2008-01-13  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48592         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48593         * lib/argp.h (__attribute__): Likewise.
48594         * lib/c-stack.c (__attribute__): Likewise.
48595         * lib/error.h (__attribute__): Likewise.
48596         * lib/fts.c (__attribute__): Likewise.
48597         * lib/openat.h (__attribute__): Likewise.
48598         * lib/stdio.in.h (__attribute__): Likewise.
48599         * lib/string.in.h (__attribute__): Likewise.
48600         * lib/utimens.c (__attribute__): Likewise.
48601         * lib/vasnprintf.h (__attribute__): Likewise.
48602         * lib/xalloc.h (__attribute__): Likewise.
48603         * lib/xprintf.h (__attribute__): Likewise.
48604         * lib/xstrtol.h (__attribute__): Likewise.
48605         * lib/xvasprintf.h (__attribute__): Likewise.
48606
48607 2008-01-12  Bruno Haible  <bruno@clisp.org>
48608
48609         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48610         * doc/glibc-headers/a.out.texi: New file.
48611         * doc/glibc-headers/aliases.texi: New file.
48612         * doc/glibc-headers/alloca.texi: New file.
48613         * doc/glibc-headers/ar.texi: New file.
48614         * doc/glibc-headers/argp.texi: New file.
48615         * doc/glibc-headers/argz.texi: New file.
48616         * doc/glibc-headers/byteswap.texi: New file.
48617         * doc/glibc-headers/crypt.texi: New file.
48618         * doc/glibc-headers/endian.texi: New file.
48619         * doc/glibc-headers/envz.texi: New file.
48620         * doc/glibc-headers/err.texi: New file.
48621         * doc/glibc-headers/error.texi: New file.
48622         * doc/glibc-headers/execinfo.texi: New file.
48623         * doc/glibc-headers/fpu_control.texi: New file.
48624         * doc/glibc-headers/fstab.texi: New file.
48625         * doc/glibc-headers/fts.texi: New file.
48626         * doc/glibc-headers/getopt.texi: New file.
48627         * doc/glibc-headers/ieee754.texi: New file.
48628         * doc/glibc-headers/ifaddrs.texi: New file.
48629         * doc/glibc-headers/libintl.texi: New file.
48630         * doc/glibc-headers/mcheck.texi: New file.
48631         * doc/glibc-headers/mntent.texi: New file.
48632         * doc/glibc-headers/obstack.texi: New file.
48633         * doc/glibc-headers/paths.texi: New file.
48634         * doc/glibc-headers/printf.texi: New file.
48635         * doc/glibc-headers/pty.texi: New file.
48636         * doc/glibc-headers/resolv.texi: New file.
48637         * doc/glibc-headers/shadow.texi: New file.
48638         * doc/glibc-headers/sysexits.texi: New file.
48639         * doc/glibc-headers/ttyent.texi: New file.
48640
48641 2008-01-12  Jim Meyering  <meyering@redhat.com>
48642
48643         announce-gen: emit Gnulib's git-based version string.
48644         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48645         New option --gnulib-version=V, where V is expected to be
48646         the output of running git describe in the gnulib directory.
48647         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48648         not useful, and plan to stop publishing an xdelta file with each
48649         coreutils release.
48650
48651         * build-aux/announce-gen: Also check for lzma-compressed files.
48652
48653 2008-01-11  Bruno Haible  <bruno@clisp.org>
48654
48655         * tests/test-memmem.c (main): Increase maximum allowed time.
48656         * tests/test-strstr.c (main): Likewise.
48657
48658 2008-01-11  Bruno Haible  <bruno@clisp.org>
48659
48660         * doc/functions/memmem.texi: Add more precisions about platforms.
48661         * doc/functions/strstr.texi: Likewise.
48662
48663 2008-01-10  Eric Blake  <ebb9@byu.net>
48664
48665         * m4/strstr.m4: Delete cruft from copy-n-paste.
48666         Reported by Bruno Haible.
48667
48668 2008-01-10  Bruno Haible  <bruno@clisp.org>
48669
48670         Make c-strstr rely on strstr.
48671         * lib/c-strstr.c: Don't include str-kmp.h.
48672         (c_strstr): Define in terms of strstr.
48673         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48674         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48675
48676 2008-01-10  Bruno Haible  <bruno@clisp.org>
48677
48678         * doc/gnulib.texi (String Functions in C Locale): New section.
48679         * doc/c-ctype.texi: New file.
48680         * doc/c-strcase.texi: New file.
48681         * doc/c-strcaseeq.texi: New file.
48682         * doc/c-strcasestr.texi: New file.
48683         * doc/c-strstr.texi: New file.
48684         * doc/c-strtod.texi: New file.
48685         * doc/c-strtold.texi: New file.
48686
48687 2008-01-10  Eric Blake  <ebb9@byu.net>
48688
48689         * lib/relocatable.h: Fix a comment.
48690
48691 2008-01-10  Eric Blake  <ebb9@byu.net>
48692
48693         Share two-way algorithm.
48694         * lib/str-two-way.h: New file, merged from...
48695         * lib/memmem.c: ...here...
48696         * lib/strstr.c: ...and here.
48697         * modules/memmem (Files): Use it.
48698         * modules/strstr (Files): Likewise.
48699
48700         Avoid quadratic strstr implementations.
48701         * lib/strstr.c: New file.
48702         * m4/strstr.m4: Likewise.
48703         * modules/strstr: Likewise.
48704         * modules/strstr-tests: Likewise.
48705         * tests/test-strstr.c: Likewise.
48706         * lib/string.in.h (rpl_strstr): Declare.
48707         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48709         * modules/string (Makefile.am): Likewise.
48710         * MODULES.html.sh (string handling): Mention new module.
48711         * doc/functions/strstr.texi (strstr): Document the bug.
48712
48713 2008-01-10  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/relocatable.h (relocate): State whether result is freshly
48716         allocated or not.
48717         * lib/relocatable.c (relocate): Return a freshly allocated string
48718         instead of a pointer to a privately held string.
48719         Reported by Sylvain Beucler <beuc@gnu.org>.
48720
48721 2008-01-10  Colin Watson  <cjwatson@debian.org>
48722
48723         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48724         s/S_ISNLK/S_ISLNK/.
48725
48726 2008-01-09  Bruno Haible  <bruno@clisp.org>
48727
48728         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48729         and other files.
48730         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48731         if it's only a guess.
48732         * modules/memmem: Simplify by depending on memmem-simple.
48733
48734 2008-01-09  Bruno Haible  <bruno@clisp.org>
48735
48736         Work around OpenBSD 4.0 tdelete() bug.
48737         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48738         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48739         macros and don't redefine the enum values.
48740         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48741         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48742         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48743
48744 2008-01-09  Bruno Haible  <bruno@clisp.org>
48745
48746         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48747         (main): Don't perform the tests if setlocale did not install a UTF-8
48748         locale. Needed on OpenBSD 4.0.
48749         * modules/wcwidth-tests (Depends-on): Add localcharset.
48750
48751 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48754         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48755         * NEWS: announce this.
48756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48757
48758 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48759         and Eric Blake  <ebb9@byu.net>
48760
48761         Add memmem-simple module.
48762         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48763         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48764         * modules/memmem-simple: New file.
48765         * modules/memmem (Description): Tweak.
48766         * MODULES.html.sh (string handling): Mention new module.
48767         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48768         addressed by memmem-simple.
48769         * NEWS: Document the difference.
48770
48771 2008-01-09  Eric Blake  <ebb9@byu.net>
48772
48773         Give gcc some memmem optimization hints.
48774         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48775         (strcasestr): Declare as pure.
48776         * modules/memmem (Maintainer): Claim my implementation.
48777
48778 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48779
48780         Support AIX 6.1 and higher.
48781         * build-aux/config.libpath: Likewise.
48782         * build-aux/config.rpath: Likewise.
48783
48784 2008-01-08  Jim Meyering  <meyering@redhat.com>
48785             Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48788         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48789         Reported by Peter Fales in
48790         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48791
48792 2008-01-08  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/unictype/category-of (Depends-on): Add
48795         unictype/category-none.
48796         * modules/unictype/category-and-tests (Depends-on): Add
48797         unictype/category-{L,N,Lu,Nd}.
48798         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48799         * modules/unictype/category-or-tests (Depends-on): Add
48800         unictype/category-{L,N}.
48801         * modules/unictype/category-name-tests (Depends-on): Add
48802         unictype/category-{Z,Nl}.
48803         Reported by Simon Josefsson.
48804
48805 2008-01-08  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48808         convention better.
48809         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48810         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48811         Reported by Peter Miller <millerp@canb.auug.org.au>.
48812
48813 2008-01-08  Eric Blake  <ebb9@byu.net>
48814
48815         Rewrite memmem to guarantee linear complexity without malloc.
48816         * lib/memmem.c (memmem): Use Two-Way rather than
48817         Knuth-Morris-Pratt, to allow O(1) space usage.
48818         (critical_factorization, two_way_short_needle)
48819         (two_way_long_needle): New functions.
48820         (knuth_morris_pratt): Delete.
48821         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48822         Add stdint.
48823         * tests/test-memmem.c (main): Add tests for periodic needle and
48824         sublinear performance.
48825         * doc/functions/memmem.texi (memmem): Document other deficiencies
48826         in cygwin and older glibc.
48827
48828 2008-01-08  Bruno Haible  <bruno@clisp.org>
48829
48830         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48831         augmentation.
48832
48833 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48834
48835         Add a configure time option: --disable-acl.
48836         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48837         AC_ARG_ENABLE(acl).
48838
48839 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48840
48841         * tests/test-localename.c: Don't include obsolete "setenv.h".
48842
48843         * modules/localename-tests (Depends-on): Need unsetenv.
48844
48845 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48846
48847         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48848
48849 2008-01-06  Colin Watson  <cjwatson@debian.org>
48850
48851         * users.txt: Add man-db.
48852
48853 2008-01-07  Bruno Haible  <bruno@clisp.org>
48854
48855         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48856         previous section name.
48857
48858 2008-01-07  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/progname.c (set_program_name): Don't strip off a leading
48861         "lt-" prefix outside a .libs directory.
48862         Suggested by Paul Eggert.
48863
48864 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48865             Bruno Haible  <bruno@clisp.org>
48866
48867         Improve memory cleanup in 'relocatable' module.
48868         * lib/relocatable.h (compute_curr_prefix): Change return type to
48869         'char *'.
48870         * lib/relocatable.c (compute_curr_prefix): Change return type to
48871         'char *'. Free curr_installdir after use.
48872         (relocate): Free curr_prefix_better after use.
48873         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48874
48875 2008-01-01  Bruno Haible  <bruno@clisp.org>
48876
48877         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48878         failure on older glibc systems.
48879         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48880
48881 2008-01-05  Eric Blake  <ebb9@byu.net>
48882
48883         Avoid quadratic system memmem.
48884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48885         Reported by Ralf Wildenhues.
48886
48887         Fix memmem test for mingw.
48888         * modules/memmem-tests (configure.ac): Check for alarm.
48889         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48890         it.
48891         * doc/functions/memmem.texi: New file.
48892         * doc/gnulib.texi (Function Substitutes): Add memmem.
48893         Reported by Bruno Haible.
48894
48895 2008-01-04  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48898         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48899         gl_HEADER_STRING_H_DEFAULTS.
48900
48901 2008-01-04  Eric Blake  <ebb9@byu.net>
48902
48903         Shorten duration of memmem test.
48904         * tests/test-memmem.c (main): Use alarm to declare failure if test
48905         is taking too long.
48906         Reported by Ralf Wildenhues.
48907
48908 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48909
48910         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48911         string, needed by strerror.
48912
48913 2008-01-03  Colin Watson  <cjwatson@debian.org>
48914             Bruno Haible  <bruno@clisp.org>
48915
48916         * doc/gnulib-tool.texi (Localization): New section.
48917
48918 2008-01-02  Bruno Haible  <bruno@clisp.org>
48919
48920         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48921         variables to 'unsigned char *' type.
48922         Reported by Paul Eggert.
48923
48924 2008-01-02  Jim Meyering  <jim@meyering.net>
48925
48926         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48927
48928 2007-12-31  Jim Meyering  <jim@meyering.net>
48929
48930         Avoid use of private FTS type name.
48931         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48932
48933 2007-12-30  Karl Berry  <karl@gnu.org>
48934
48935         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48936         work around defect in Texinfo and/or the standalone Info browser.
48937
48938 2007-12-30  Bruno Haible  <bruno@clisp.org>
48939
48940         Unify 5 copies of the KMP code.
48941         * lib/str-kmp.h: New file.
48942         * lib/c-strcasestr.c: Include str-kmp.h.
48943         (knuth_morris_pratt): Remove function.
48944         (c_strcasestr): Update.
48945         * lib/c-strstr.c: Include str-kmp.h.
48946         (knuth_morris_pratt): Remove function.
48947         (c_strcasestr): Update.
48948         * lib/mbscasestr.c: Include str-kmp.h.
48949         (knuth_morris_pratt_unibyte): Remove function.
48950         * lib/mbsstr.c: Include str-kmp.h.
48951         (knuth_morris_pratt_unibyte): Remove function.
48952         * lib/strcasestr.c: Include str-kmp.h.
48953         (knuth_morris_pratt): Remove function.
48954         (strcasestr): Update.
48955         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48956         * modules/c-strstr (Files): Likewise.
48957         * modules/mbscasestr (Files): Likewise.
48958         * modules/mbsstr (Files): Likewise.
48959         * modules/strcasestr (Files): Likewise.
48960         Suggested by Paul Eggert.
48961
48962 2007-12-30  Bruno Haible  <bruno@clisp.org>
48963
48964         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48965         defined.
48966
48967 2007-12-30  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/xmalloca.h: Include xalloc.h.
48970         (xnmalloca): New macro.
48971
48972 2007-12-30  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/malloca.h (nmalloca): New macro.
48975         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48976         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48977         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48978         knuth_morris_pratt_multibyte): Likewise.
48979         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48980         knuth_morris_pratt_multibyte): Likewise.
48981         * lib/memmem.c (knuth_morris_pratt): Likewise.
48982         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48983
48984 2007-12-25  Bruno Haible  <bruno@clisp.org>
48985
48986         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48987         * lib/glob.c: Don't include openat.h.
48988         (link_exists2_p): Add back the code that deals with the
48989         !GLOB_ALTDIRFUNC case.
48990         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48991         let it do the filename concatenation.
48992         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48993         * modules/glob (Depends-on): Remove openat.
48994
48995 2007-12-31  Bruno Haible  <bruno@clisp.org>
48996
48997         * modules/dirfd (License): Change to LGPLv2+.
48998         Approved by Jim Meyering.
48999
49000 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49001
49002         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49003         when multiplying M by sizeof (size_t).
49004
49005 2007-12-10  Martin Lambers  <marlam@marlam.de>
49006
49007         Override getpagesize on mingw.
49008         * lib/getpagesize.c: New file.
49009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49010         * modules/getpagesize (Files): Add lib/getpagesize.c.
49011         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49013         REPLACE_GETPAGESIZE.
49014         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49015
49016 2007-12-25  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/localcharset (Notice): New field.
49019         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49020         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49021
49022 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49023             Bruno Haible  <bruno@clisp.org>
49024
49025         Avoid using the syntax symbol() in formatted documentation.
49026         * MODULES.html.sh (func_module): When replacing symbol() with a
49027         hyperlink, remove the parentheses. Show an error if some remain.
49028         Recognize and render the '...' syntax.
49029         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49030         Rework. Add paragraph about GCC's inlining.
49031         * doc/alloca.texi: Likewise.
49032         * doc/error.texi: Remove parentheses from symbol reference.
49033         * doc/gnulib-intro.texi: Likewise.
49034         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49035         * modules/fnmatch (Description): Reword to say "the ... function".
49036         * modules/full-read (Description): Likewise.
49037         * modules/full-write (Description): Likewise.
49038         * modules/safe-read (Description): Likewise.
49039         * modules/safe-write (Description): Likewise.
49040         * modules/strchrnul (Description): Likewise.
49041         * modules/trim (Description): Likewise.
49042         * modules/error (Description): Remove parentheses from symbol
49043         references.
49044         * modules/verror (Description): Likewise.
49045         Reported by Karl Berry.
49046
49047 2007-12-25  Bruno Haible  <bruno@clisp.org>
49048
49049         Fixup after 2007-10-16 commit.
49050         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49051
49052 2007-12-24  Bruno Haible  <bruno@clisp.org>
49053
49054         Make --enable-relocatable work with DESTDIR.
49055         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49056         to compute installdir from destprog.
49057         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49058         also set the RELOC_DESTDIR variable.
49059         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49060
49061 2007-12-24  Bruno Haible  <bruno@clisp.org>
49062
49063         Fix link error due to xalloc_die().
49064         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49065         of xreadlink.
49066         * lib/relocwrapper.c: Update comments.
49067         * build-aux/install-reloc: Remove xreadlink.c from file list.
49068         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49069         xreadlink.c.
49070         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49071
49072 2007-12-24  Bruno Haible  <bruno@clisp.org>
49073
49074         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49075         * lib/setenv.h: Remove file.
49076         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49077         lib/setenv.h.
49078         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49079         (Depends-on): Add stdlib.
49080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49081         gl_FUNC_UNSETENV.
49082         (Include): Replace setenv.h with <stdlib.h>.
49083         * modules/unsetenv: New file.
49084         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49085         * lib/unsetenv.c: Include <stdlib.h> first.
49086         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49087         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49088         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49089         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49090         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49091         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49093         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49094         * doc/functions/unsetenv.texi: Update.
49095         * modules/xsetenv (Depends-on): Add unsetenv.
49096         * modules/getdate (Depends-on): Likewise.
49097         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49098         * lib/xsetenv.c: Don't include setenv.h.
49099         * lib/getdate.y: Likewise.
49100         * lib/relocwrapper.c: Likewise.
49101         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49102         (Depends-on): Add stdlib.
49103         * NEWS: Mention the changes.
49104         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49105
49106 2007-12-23  Bruno Haible  <bruno@clisp.org>
49107
49108         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49109         indentation.
49110
49111 2007-12-23  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/c-strcasestr.c: Add more comments.
49114         * lib/c-strstr.c: Likewise.
49115         * lib/mbscasestr.c: Likewise.
49116         * lib/mbsstr.c: Likewise.
49117         * lib/strcasestr.c: Likewise.
49118         * lib/memmem.c: Likewise.
49119
49120 2007-12-23  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-memmem.c: Include <string.h> first.
49123
49124 2007-12-22  Bruno Haible  <bruno@clisp.org>
49125
49126         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49127         the contents of $testsbase.
49128         Reported by Ralf Wildenhues.
49129
49130 2007-12-22  Bruno Haible  <bruno@clisp.org>
49131
49132         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49133         two variables local_ldadd_before, local_ldadd_last.
49134
49135 2007-12-20  Eric Blake  <ebb9@byu.net>
49136
49137         Work around circular library issue when cross-compiling.
49138         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49139         that progname.o does not need to pull in rpl_memcmp.
49140
49141 2007-12-19  Eric Blake  <ebb9@byu.net>
49142
49143         Fix memmem to avoid O(n^2) worst-case complexity.
49144         * lib/memmem.c (knuth_morris_pratt): New function.
49145         (memmem): Use it if first few naive iterations fail.
49146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49147         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49148         * modules/memchr (License): Likewise.
49149         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49150         malloca.
49151         * tests/test-memmem.c: Rewrite, borrowing ideas from
49152         test-mbsstr1.c; the old version wouldn't even compile!
49153         * modules/memmem-tests: New file.
49154         * lib/string.in.h (rpl_memmem): Add declaration.
49155         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49157         REPLACE_MEMMEM.
49158
49159 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49160
49161         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49162         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49163         before any system include files, and undef after them all.  This
49164         should fix a problem on VMS reported by John E. Malmberg in
49165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49166
49167 2007-12-17  Eric Blake  <ebb9@byu.net>
49168
49169         Revert addition of verify, for BSD/OS.
49170         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49171         can't handle large files, for the sake of obsolete platforms.
49172         * modules/fseeko (Depends-on): Remove verify.
49173         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49174         * doc/functions/ftello.texi (ftello): Likewise.
49175         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49176         Reported by Larry Jones.
49177
49178 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49179
49180         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49181         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49182
49183 2007-12-17  Jim Meyering  <meyering@redhat.com>
49184
49185         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49186         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49187         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49188         * modules/getcwd (Depends-on): Add openat.
49189         Reported by Petr Salinger.
49190
49191 2007-12-17  Bruno Haible  <bruno@clisp.org>
49192
49193         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49194         avoid a segmentation fault of the configure test on x86_64 systems.
49195
49196 2007-12-15  Jim Meyering  <meyering@redhat.com>
49197
49198         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49199
49200 2007-12-13  Eric Blake  <ebb9@byu.net>
49201
49202         Another fseek test.
49203         * tests/test-fseek.c (main): Also test ungetc handling.
49204         * tests/test-fseeko.c (main): Likewise.
49205         * modules/fseeko (Depends-on): Add verify.
49206         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49207         large.
49208         Reported by Larry Jones.
49209
49210         Fix fseeko on mingw.
49211         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49212         seek.
49213
49214         Beef up fseek tests.
49215         * tests/test-fseek.c (main): Also test eof handling.
49216         * tests/test-fseeko.c (main): Likewise.
49217         Reported by Larry Jones.
49218
49219 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49220
49221         Fix fseeko on BSD-based platforms.
49222         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49223         successful seek.
49224
49225 2007-12-12  Eric Blake  <ebb9@byu.net>
49226
49227         Allow circular dependency of separate libtests.a
49228         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49229         when use_libtests.
49230
49231 2007-12-11  Eric Blake  <ebb9@byu.net>
49232
49233         Fix bug with -0.0L in previous patch.
49234         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49235         * tests/test-isnan.c (main): Also test on zeroes.
49236         * tests/test-isnanf.c (main): Likewise.
49237         * tests/test-isnanl.h (main): Likewise.
49238
49239         Detect pseudo-denormals on x86 even when cross-compiling.
49240         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49241         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49242         invalid bit patterns that happen to satisfy ==.
49243
49244         Avoid link failures with separate libtests.a.
49245         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49246         last, to satisfy circular dependencies.
49247
49248 2007-12-11  Eric Blake  <ebb9@byu.net>
49249         and Bruno Haible  <bruno@clisp.org>
49250
49251         Fix OpenBSD 4.0 <float.h> handling of long double.
49252         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49253         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49254         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49255
49256 2007-12-11  Jim Meyering  <meyering@redhat.com>
49257
49258         * users.txt: Add libvirt.
49259
49260         Support versions of autoconf prior to 2.59c.
49261         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49262         if it is not already defined.
49263
49264 2007-12-09  Bruno Haible  <bruno@clisp.org>
49265
49266         Let 'gnulib-tool --import' collect sources needed for the tests in
49267         tests/ rather than in lib/.
49268         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49269         argument. If true, add rules to generate libtests.a, and put libtests.a
49270         into $(LDADD). Consider source files in subdirectories and set
49271         uses_subdirs.
49272         (func_emit_initmacro_start, func_emit_initmacro_end,
49273         func_emit_initmacro_done): Pass all arguments explicitly.
49274         (func_import): Determine two module lists main_modules,
49275         testsrelated_modules. Determine use_libtests. Determine two variables
49276         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49277         instead of just sed_transform_lib_file. Determine two variables
49278         main_files and testsrelated_files. Compute 'files' as the union of
49279         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49280         func_add_or_update. In the generated gnulib-comp.m4, collect the
49281         object files for tests/ in different variables than those for lib/.
49282         Substitute LIBTESTS_LIBDEPS.
49283         (func_create_testdir): Combine the uses_subdirs results from
49284         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49285
49286 2007-12-09  Bruno Haible  <bruno@clisp.org>
49287
49288         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49289         the build-aux directory.
49290
49291 2007-12-09  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49294         introduced on 2006-09-09.
49295
49296 2007-12-07  Jim Meyering  <meyering@redhat.com>
49297
49298         Let these macros work also with autoconf-2.59.
49299         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49300         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49301         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49302
49303 2007-12-06  Jim Meyering  <meyering@redhat.com>
49304
49305         Avoid a configure-time syntax error in gl_FUNC_ACL.
49306         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49307         function in each branch, before testing the cache variable.
49308
49309 2007-12-04  Eric Blake  <ebb9@byu.net>
49310
49311         Make scripts executable.
49312         * build-aux/config.guess: Add execute permissions.
49313         * build-aux/config.sub: Likewise.
49314         * build-aux/gendocs.sh: Likewise.
49315
49316         Fix frexp on mingw.
49317         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49318         cross-compiling.
49319         * doc/functions/frexp.texi (frexp): Document the bug.
49320
49321         Make cygwin fseeko check more reliable.
49322         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49323         version numbers, rather than unrelated feature check.
49324         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49325         * doc/functions/ftello.texi (ftello): Likewise.
49326         Reported by Bruno Haible.
49327
49328         * m4/strerror.m4: Bump version number.
49329
49330 2007-12-03  Bruno Haible  <bruno@clisp.org>
49331
49332         * doc/functions/mprotect.texi: Mention the mingw problem.
49333
49334 2007-12-03  Eric Blake  <ebb9@byu.net>
49335
49336         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49337         REPLACE_STRERROR is initialized before this macro.
49338
49339 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49342         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49343         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49344         put -lsec in even for programs other than 'ls'.  This fixes a problem
49345         for gettext reported by Bruno Haible in
49346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49347         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49348         Add support for Solaris 10.  This isn't efficient, but should get the
49349         job done for now.
49350
49351 2007-12-03  James Youngman  <jay@gnu.org>
49352
49353         * doc/regexprops-generic.texi: change "an close-group" to "a
49354         close-group" and "illegal" to "not allowed".
49355
49356 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49357
49358         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49359         pr_byname.h. Needed for the rare case when the maintainer has done
49360         "make maintainer-clean" in the source directory and then attempts a
49361         build outside the source directory.
49362         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49363         scripts_byname.h.
49364
49365 2007-12-02  Martin Lambers <marlam@marlam.de>
49366             Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/getpagesize.h: Remove file.
49369         * lib/unistd.in.h: Include declaration of getpagesize here.
49370         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49371         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49372         HAVE_SYS_PARAM_H.
49373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49374         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49375         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49376         (Depends-on): Add unistd.
49377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49378         (Include): Use <unistd.h> instead of getpagesize.h.
49379         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49380         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49381         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49382         gl_GETPAGESIZE invocation, already handled by module dependency.
49383         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49384
49385 2007-12-02  Bruno Haible  <bruno@clisp.org>
49386
49387         * modules/strings-tests: New file.
49388         * tests/test-strings.c: New file.
49389
49390         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49391         * lib/strings.in.h: New file.
49392         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49393         * m4/strings_h.m4: New file.
49394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49395         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49396         * modules/strings: New file.
49397         * modules/string (Makefile.am): Update.
49398         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49399         Reported by Karl Berry.
49400
49401 2007-12-01  Eric Blake  <ebb9@byu.net>
49402
49403         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49404         accomodate fix in cygwin 1.5.25.
49405
49406 2007-12-01  Jim Meyering  <meyering@redhat.com>
49407
49408         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49409         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49410         that would inhibit utf8-optimization of a regexp containing line-
49411         or buffer-anchors, e.g., `^', `$'.
49412
49413 2007-11-30  Bruno Haible  <bruno@clisp.org>
49414
49415         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49416         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49417         glthread_recursive_lock_init.
49418         * lib/lock.c (glthread_recursive_lock_init)
49419         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49421
49422 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49423
49424         New function qset_acl, like set_acl but with syscall semantics.
49425         * lib/acl.h (qset_acl): New decl.
49426         * lib/acl.c (qset_acl): New function.
49427         (set_acl): Use new function.  Use more-consistent diagnostics.
49428
49429 2007-11-28  Jim Meyering  <meyering@redhat.com>
49430
49431         * modules/physmem (License): Change from GPL to LGPLv2+.
49432
49433 2007-11-26  Bruno Haible  <bruno@clisp.org>
49434
49435         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49436         'long double' type has excess precision.
49437         Reported by Jim Meyering in
49438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49439
49440 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49441
49442         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49443         Sync from <http://gnu.org/licenses>.
49444         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49445         with license text from same location.
49446         * doc/maintain.texi, doc/standards.texi:  Sync from
49447         <http://savannah.gnu.org/projects/gnustandards>.
49448
49449 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49450         and Jim Meyering  <meyering@redhat.com>
49451
49452         Adjust getdate' grammar to accept a slightly more regular language.
49453         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49454         Before, the former was rejected.
49455         * lib/getdate.y (digits_to_date_time): New function, factored
49456         out of ...
49457         (number): ...here.  Just call digits_to_date_time.
49458         (hybrid): New non-terminal to handle an <unsigned number,
49459         signed relative offset> sequence consistently.
49460
49461 2007-11-18  Jim Meyering  <meyering@redhat.com>
49462
49463         Pull my changes from coreutils:
49464         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49465         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49466         use of $gnulib_tool_option_extras, so that it's separated from the
49467         preceding argument.
49468
49469         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49470         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49471         parent destination directories before copying a file into place.
49472
49473 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49474
49475         bootstrap: work also with 4-argument variant of AC_INIT
49476         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49477
49478 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49479
49480         Port test-getaddrinfo to Solaris.
49481         Problem reported by Bruno Haible in
49482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49483         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49484         explanation of setting 'hints'.
49485         Don't reject an implementation merely because it returns EAI_SERVICE.
49486         (EAI_SERVICE): Define to 0 if not defined.
49487
49488 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         The license of gnu-make and posix-shell is now "GPLed build tool".
49491         * modules/gnu-make (License): Likewise.
49492         * modules/posix-shell (License): Likewise.
49493
49494         New module posix-shell, for determining a POSIX shell
49495         or perhaps something that is close enough to a POSIX shell.
49496         * m4/posix-shell.m4: New file.
49497         * modules/posix-shell: New file.
49498
49499         * MODULES.html.sh: Mention new module.
49500
49501         New module gnu-make, for determining whether we're using GNU Make.
49502         * m4/gnu-make.m4: New file.
49503         * modules/gnu-make: New file.
49504         * MODULES.html.sh: Mention new module.
49505
49506 2007-11-14  Jim Meyering  <meyering@redhat.com>
49507
49508         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49509         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49510         use this macro to create a function _definition_.
49511         Remove useless "#undef ARGMATCH_DIE".
49512
49513 2007-11-14  Bruno Haible  <bruno@clisp.org>
49514
49515         * lib/config.charset: Update for OpenBSD 4.1.
49516         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49517
49518 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         Document 64-bit #if problems in stdint.texi.
49521         * doc/headers/stdint.texi (stdint.h): Mention problems with
49522         64-bit-#if, and how to work around them.
49523
49524         Don't insist on 'long long int' support in the preprocessor.  It
49525         breaks too many things.  For example, PRIdMAX still uses a 'long
49526         long int' format with the latest Sun compiler, even though
49527         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49528         preprocessor problem.  This causes the latest coreutils to dump
49529         core on Solaris 10 sparc with the Sun C compiler.
49530         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49531         the troublesome expressions at configure-time, not at #if-time.
49532         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49533         preprocessor.
49534         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49535         compile-time C checks, done at 'configure'-time.
49536         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49537         * modules/inttypes (Makefile): Substitute the new symbols that
49538         gl_INTTYPES_H now generates.
49539         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49540
49541 2007-11-12  Bruno Haible  <bruno@clisp.org>
49542
49543         Tests for Unicode character classification functions.
49544
49545         * modules/unictype/bidicategory-byname-tests: New file.
49546         * modules/unictype/bidicategory-name-tests: New file.
49547         * modules/unictype/bidicategory-of-tests: New file.
49548         * modules/unictype/bidicategory-test-tests: New file.
49549         * modules/unictype/block-list-tests: New file.
49550         * modules/unictype/block-of-tests: New file.
49551         * modules/unictype/block-test-tests: New file.
49552         * modules/unictype/category-C-tests: New file.
49553         * modules/unictype/category-Cc-tests: New file.
49554         * modules/unictype/category-Cf-tests: New file.
49555         * modules/unictype/category-Cn-tests: New file.
49556         * modules/unictype/category-Co-tests: New file.
49557         * modules/unictype/category-Cs-tests: New file.
49558         * modules/unictype/category-L-tests: New file.
49559         * modules/unictype/category-Ll-tests: New file.
49560         * modules/unictype/category-Lm-tests: New file.
49561         * modules/unictype/category-Lo-tests: New file.
49562         * modules/unictype/category-Lt-tests: New file.
49563         * modules/unictype/category-Lu-tests: New file.
49564         * modules/unictype/category-M-tests: New file.
49565         * modules/unictype/category-Mc-tests: New file.
49566         * modules/unictype/category-Me-tests: New file.
49567         * modules/unictype/category-Mn-tests: New file.
49568         * modules/unictype/category-N-tests: New file.
49569         * modules/unictype/category-Nd-tests: New file.
49570         * modules/unictype/category-Nl-tests: New file.
49571         * modules/unictype/category-No-tests: New file.
49572         * modules/unictype/category-P-tests: New file.
49573         * modules/unictype/category-Pc-tests: New file.
49574         * modules/unictype/category-Pd-tests: New file.
49575         * modules/unictype/category-Pe-tests: New file.
49576         * modules/unictype/category-Pf-tests: New file.
49577         * modules/unictype/category-Pi-tests: New file.
49578         * modules/unictype/category-Po-tests: New file.
49579         * modules/unictype/category-Ps-tests: New file.
49580         * modules/unictype/category-S-tests: New file.
49581         * modules/unictype/category-Sc-tests: New file.
49582         * modules/unictype/category-Sk-tests: New file.
49583         * modules/unictype/category-Sm-tests: New file.
49584         * modules/unictype/category-So-tests: New file.
49585         * modules/unictype/category-Z-tests: New file.
49586         * modules/unictype/category-Zl-tests: New file.
49587         * modules/unictype/category-Zp-tests: New file.
49588         * modules/unictype/category-Zs-tests: New file.
49589         * modules/unictype/category-and-not-tests: New file.
49590         * modules/unictype/category-and-tests: New file.
49591         * modules/unictype/category-byname-tests: New file.
49592         * modules/unictype/category-name-tests: New file.
49593         * modules/unictype/category-none-tests: New file.
49594         * modules/unictype/category-of-tests: New file.
49595         * modules/unictype/category-or-tests: New file.
49596         * modules/unictype/category-test-withtable-tests: New file.
49597         * modules/unictype/combining-class-tests: New file.
49598         * modules/unictype/ctype-alnum-tests: New file.
49599         * modules/unictype/ctype-alpha-tests: New file.
49600         * modules/unictype/ctype-blank-tests: New file.
49601         * modules/unictype/ctype-cntrl-tests: New file.
49602         * modules/unictype/ctype-digit-tests: New file.
49603         * modules/unictype/ctype-graph-tests: New file.
49604         * modules/unictype/ctype-lower-tests: New file.
49605         * modules/unictype/ctype-print-tests: New file.
49606         * modules/unictype/ctype-punct-tests: New file.
49607         * modules/unictype/ctype-space-tests: New file.
49608         * modules/unictype/ctype-upper-tests: New file.
49609         * modules/unictype/ctype-xdigit-tests: New file.
49610         * modules/unictype/decimal-digit-tests: New file.
49611         * modules/unictype/digit-tests: New file.
49612         * modules/unictype/mirror-tests: New file.
49613         * modules/unictype/numeric-tests: New file.
49614         * modules/unictype/property-alphabetic-tests: New file.
49615         * modules/unictype/property-ascii-hex-digit-tests: New file.
49616         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49617         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49618         * modules/unictype/property-bidi-block-separator-tests: New file.
49619         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49620         * modules/unictype/property-bidi-common-separator-tests: New file.
49621         * modules/unictype/property-bidi-control-tests: New file.
49622         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49623         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49624         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49625         * modules/unictype/property-bidi-european-digit-tests: New file.
49626         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49627         * modules/unictype/property-bidi-left-to-right-tests: New file.
49628         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49629         * modules/unictype/property-bidi-other-neutral-tests: New file.
49630         * modules/unictype/property-bidi-pdf-tests: New file.
49631         * modules/unictype/property-bidi-segment-separator-tests: New file.
49632         * modules/unictype/property-bidi-whitespace-tests: New file.
49633         * modules/unictype/property-byname-tests: New file.
49634         * modules/unictype/property-combining-tests: New file.
49635         * modules/unictype/property-composite-tests: New file.
49636         * modules/unictype/property-currency-symbol-tests: New file.
49637         * modules/unictype/property-dash-tests: New file.
49638         * modules/unictype/property-decimal-digit-tests: New file.
49639         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49640         * modules/unictype/property-deprecated-tests: New file.
49641         * modules/unictype/property-diacritic-tests: New file.
49642         * modules/unictype/property-extender-tests: New file.
49643         * modules/unictype/property-format-control-tests: New file.
49644         * modules/unictype/property-grapheme-base-tests: New file.
49645         * modules/unictype/property-grapheme-extend-tests: New file.
49646         * modules/unictype/property-grapheme-link-tests: New file.
49647         * modules/unictype/property-hex-digit-tests: New file.
49648         * modules/unictype/property-hyphen-tests: New file.
49649         * modules/unictype/property-id-continue-tests: New file.
49650         * modules/unictype/property-id-start-tests: New file.
49651         * modules/unictype/property-ideographic-tests: New file.
49652         * modules/unictype/property-ids-binary-operator-tests: New file.
49653         * modules/unictype/property-ids-trinary-operator-tests: New file.
49654         * modules/unictype/property-ignorable-control-tests: New file.
49655         * modules/unictype/property-iso-control-tests: New file.
49656         * modules/unictype/property-join-control-tests: New file.
49657         * modules/unictype/property-left-of-pair-tests: New file.
49658         * modules/unictype/property-line-separator-tests: New file.
49659         * modules/unictype/property-logical-order-exception-tests: New file.
49660         * modules/unictype/property-lowercase-tests: New file.
49661         * modules/unictype/property-math-tests: New file.
49662         * modules/unictype/property-non-break-tests: New file.
49663         * modules/unictype/property-not-a-character-tests: New file.
49664         * modules/unictype/property-numeric-tests: New file.
49665         * modules/unictype/property-other-alphabetic-tests: New file.
49666         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49667         * modules/unictype/property-other-grapheme-extend-tests: New file.
49668         * modules/unictype/property-other-id-continue-tests: New file.
49669         * modules/unictype/property-other-id-start-tests: New file.
49670         * modules/unictype/property-other-lowercase-tests: New file.
49671         * modules/unictype/property-other-math-tests: New file.
49672         * modules/unictype/property-other-uppercase-tests: New file.
49673         * modules/unictype/property-paired-punctuation-tests: New file.
49674         * modules/unictype/property-paragraph-separator-tests: New file.
49675         * modules/unictype/property-pattern-syntax-tests: New file.
49676         * modules/unictype/property-pattern-white-space-tests: New file.
49677         * modules/unictype/property-private-use-tests: New file.
49678         * modules/unictype/property-punctuation-tests: New file.
49679         * modules/unictype/property-quotation-mark-tests: New file.
49680         * modules/unictype/property-radical-tests: New file.
49681         * modules/unictype/property-sentence-terminal-tests: New file.
49682         * modules/unictype/property-soft-dotted-tests: New file.
49683         * modules/unictype/property-space-tests: New file.
49684         * modules/unictype/property-terminal-punctuation-tests: New file.
49685         * modules/unictype/property-test-tests: New file.
49686         * modules/unictype/property-titlecase-tests: New file.
49687         * modules/unictype/property-unassigned-code-value-tests: New file.
49688         * modules/unictype/property-unified-ideograph-tests: New file.
49689         * modules/unictype/property-uppercase-tests: New file.
49690         * modules/unictype/property-variation-selector-tests: New file.
49691         * modules/unictype/property-white-space-tests: New file.
49692         * modules/unictype/property-xid-continue-tests: New file.
49693         * modules/unictype/property-xid-start-tests: New file.
49694         * modules/unictype/property-zero-width-tests: New file.
49695         * modules/unictype/scripts-tests: New file.
49696         * modules/unictype/syntax-c-ident-tests: New file.
49697         * modules/unictype/syntax-c-whitespace-tests: New file.
49698         * modules/unictype/syntax-java-ident-tests: New file.
49699         * modules/unictype/syntax-java-whitespace-tests: New file.
49700         * tests/unictype/test-bidi_byname.c: New file.
49701         * tests/unictype/test-bidi_name.c: New file.
49702         * tests/unictype/test-bidi_of.c: New file.
49703         * tests/unictype/test-bidi_test.c: New file.
49704         * tests/unictype/test-block_list.c: New file.
49705         * tests/unictype/test-block_of.c: New file.
49706         * tests/unictype/test-block_test.c: New file.
49707         * tests/unictype/test-categ_and.c: New file.
49708         * tests/unictype/test-categ_and_not.c: New file.
49709         * tests/unictype/test-categ_byname.c: New file.
49710         * tests/unictype/test-categ_name.c: New file.
49711         * tests/unictype/test-categ_none.c: New file.
49712         * tests/unictype/test-categ_of.c: New file.
49713         * tests/unictype/test-categ_or.c: New file.
49714         * tests/unictype/test-categ_test_withtable.c: New file.
49715         * tests/unictype/test-combining.c: New file.
49716         * tests/unictype/test-decdigit.c: New file.
49717         * tests/unictype/test-digit.c: New file.
49718         * tests/unictype/test-mirror.c: New file.
49719         * tests/unictype/test-numeric.c: New file.
49720         * tests/unictype/test-pr_byname.c: New file.
49721         * tests/unictype/test-pr_test.c: New file.
49722         * tests/unictype/test-predicate-part1.h: New file.
49723         * tests/unictype/test-predicate-part2.h: New file.
49724         * tests/unictype/test-scripts.c: New file.
49725         * tests/unictype/test-sy_c_ident.c: New file.
49726         * tests/unictype/test-sy_java_ident.c: New file.
49727
49728         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49729         for Unicode 5.0.0.
49730         * tests/unictype/test-categ_Cc.c: Likewise.
49731         * tests/unictype/test-categ_Cf.c: Likewise.
49732         * tests/unictype/test-categ_Cn.c: Likewise.
49733         * tests/unictype/test-categ_Co.c: Likewise.
49734         * tests/unictype/test-categ_Cs.c: Likewise.
49735         * tests/unictype/test-categ_L.c: Likewise.
49736         * tests/unictype/test-categ_Ll.c: Likewise.
49737         * tests/unictype/test-categ_Lm.c: Likewise.
49738         * tests/unictype/test-categ_Lo.c: Likewise.
49739         * tests/unictype/test-categ_Lt.c: Likewise.
49740         * tests/unictype/test-categ_Lu.c: Likewise.
49741         * tests/unictype/test-categ_M.c: Likewise.
49742         * tests/unictype/test-categ_Mc.c: Likewise.
49743         * tests/unictype/test-categ_Me.c: Likewise.
49744         * tests/unictype/test-categ_Mn.c: Likewise.
49745         * tests/unictype/test-categ_N.c: Likewise.
49746         * tests/unictype/test-categ_Nd.c: Likewise.
49747         * tests/unictype/test-categ_Nl.c: Likewise.
49748         * tests/unictype/test-categ_No.c: Likewise.
49749         * tests/unictype/test-categ_P.c: Likewise.
49750         * tests/unictype/test-categ_Pc.c: Likewise.
49751         * tests/unictype/test-categ_Pd.c: Likewise.
49752         * tests/unictype/test-categ_Pe.c: Likewise.
49753         * tests/unictype/test-categ_Pf.c: Likewise.
49754         * tests/unictype/test-categ_Pi.c: Likewise.
49755         * tests/unictype/test-categ_Po.c: Likewise.
49756         * tests/unictype/test-categ_Ps.c: Likewise.
49757         * tests/unictype/test-categ_S.c: Likewise.
49758         * tests/unictype/test-categ_Sc.c: Likewise.
49759         * tests/unictype/test-categ_Sk.c: Likewise.
49760         * tests/unictype/test-categ_Sm.c: Likewise.
49761         * tests/unictype/test-categ_So.c: Likewise.
49762         * tests/unictype/test-categ_Z.c: Likewise.
49763         * tests/unictype/test-categ_Zl.c: Likewise.
49764         * tests/unictype/test-categ_Zp.c: Likewise.
49765         * tests/unictype/test-categ_Zs.c: Likewise.
49766         * tests/unictype/test-ctype_alnum.c: Likewise.
49767         * tests/unictype/test-ctype_alpha.c: Likewise.
49768         * tests/unictype/test-ctype_blank.c: Likewise.
49769         * tests/unictype/test-ctype_cntrl.c: Likewise.
49770         * tests/unictype/test-ctype_digit.c: Likewise.
49771         * tests/unictype/test-ctype_graph.c: Likewise.
49772         * tests/unictype/test-ctype_lower.c: Likewise.
49773         * tests/unictype/test-ctype_print.c: Likewise.
49774         * tests/unictype/test-ctype_punct.c: Likewise.
49775         * tests/unictype/test-ctype_space.c: Likewise.
49776         * tests/unictype/test-ctype_upper.c: Likewise.
49777         * tests/unictype/test-ctype_xdigit.c: Likewise.
49778         * tests/unictype/test-decdigit.h: Likewise.
49779         * tests/unictype/test-digit.h: Likewise.
49780         * tests/unictype/test-numeric.h: Likewise.
49781         * tests/unictype/test-pr_alphabetic.c: Likewise.
49782         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49783         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49784         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49785         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49786         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49787         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49788         * tests/unictype/test-pr_bidi_control.c: Likewise.
49789         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49790         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49791         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49792         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49793         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49794         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49795         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49796         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49797         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49798         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49799         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49800         * tests/unictype/test-pr_combining.c: Likewise.
49801         * tests/unictype/test-pr_composite.c: Likewise.
49802         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49803         * tests/unictype/test-pr_dash.c: Likewise.
49804         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49805         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49806         * tests/unictype/test-pr_deprecated.c: Likewise.
49807         * tests/unictype/test-pr_diacritic.c: Likewise.
49808         * tests/unictype/test-pr_extender.c: Likewise.
49809         * tests/unictype/test-pr_format_control.c: Likewise.
49810         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49811         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49812         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49813         * tests/unictype/test-pr_hex_digit.c: Likewise.
49814         * tests/unictype/test-pr_hyphen.c: Likewise.
49815         * tests/unictype/test-pr_id_continue.c: Likewise.
49816         * tests/unictype/test-pr_id_start.c: Likewise.
49817         * tests/unictype/test-pr_ideographic.c: Likewise.
49818         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49819         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49820         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49821         * tests/unictype/test-pr_iso_control.c: Likewise.
49822         * tests/unictype/test-pr_join_control.c: Likewise.
49823         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49824         * tests/unictype/test-pr_line_separator.c: Likewise.
49825         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49826         * tests/unictype/test-pr_lowercase.c: Likewise.
49827         * tests/unictype/test-pr_math.c: Likewise.
49828         * tests/unictype/test-pr_non_break.c: Likewise.
49829         * tests/unictype/test-pr_not_a_character.c: Likewise.
49830         * tests/unictype/test-pr_numeric.c: Likewise.
49831         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49832         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49833         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49834         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49835         * tests/unictype/test-pr_other_id_start.c: Likewise.
49836         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49837         * tests/unictype/test-pr_other_math.c: Likewise.
49838         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49839         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49840         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49841         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49842         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49843         * tests/unictype/test-pr_private_use.c: Likewise.
49844         * tests/unictype/test-pr_punctuation.c: Likewise.
49845         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49846         * tests/unictype/test-pr_radical.c: Likewise.
49847         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49848         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49849         * tests/unictype/test-pr_space.c: Likewise.
49850         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49851         * tests/unictype/test-pr_titlecase.c: Likewise.
49852         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49853         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49854         * tests/unictype/test-pr_uppercase.c: Likewise.
49855         * tests/unictype/test-pr_variation_selector.c: Likewise.
49856         * tests/unictype/test-pr_white_space.c: Likewise.
49857         * tests/unictype/test-pr_xid_continue.c: Likewise.
49858         * tests/unictype/test-pr_xid_start.c: Likewise.
49859         * tests/unictype/test-pr_zero_width.c: Likewise.
49860         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49861         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49862
49863 2007-11-12  Bruno Haible  <bruno@clisp.org>
49864
49865         Unicode character classification functions.
49866         * lib/unictype.h: New file.
49867         * modules/unictype/base: New file.
49868         * modules/unictype/category-L: New file.
49869         * modules/unictype/category-Lu: New file.
49870         * modules/unictype/category-Ll: New file.
49871         * modules/unictype/category-Lt: New file.
49872         * modules/unictype/category-Lm: New file.
49873         * modules/unictype/category-Lo: New file.
49874         * modules/unictype/category-M: New file.
49875         * modules/unictype/category-Mn: New file.
49876         * modules/unictype/category-Mc: New file.
49877         * modules/unictype/category-Me: New file.
49878         * modules/unictype/category-N: New file.
49879         * modules/unictype/category-Nd: New file.
49880         * modules/unictype/category-Nl: New file.
49881         * modules/unictype/category-No: New file.
49882         * modules/unictype/category-P: New file.
49883         * modules/unictype/category-Pc: New file.
49884         * modules/unictype/category-Pd: New file.
49885         * modules/unictype/category-Ps: New file.
49886         * modules/unictype/category-Pe: New file.
49887         * modules/unictype/category-Pi: New file.
49888         * modules/unictype/category-Pf: New file.
49889         * modules/unictype/category-Po: New file.
49890         * modules/unictype/category-S: New file.
49891         * modules/unictype/category-Sm: New file.
49892         * modules/unictype/category-Sc: New file.
49893         * modules/unictype/category-Sk: New file.
49894         * modules/unictype/category-So: New file.
49895         * modules/unictype/category-Z: New file.
49896         * modules/unictype/category-Zs: New file.
49897         * modules/unictype/category-Zl: New file.
49898         * modules/unictype/category-Zp: New file.
49899         * modules/unictype/category-C: New file.
49900         * modules/unictype/category-Cc: New file.
49901         * modules/unictype/category-Cf: New file.
49902         * modules/unictype/category-Cs: New file.
49903         * modules/unictype/category-Co: New file.
49904         * modules/unictype/category-Cn: New file.
49905         * modules/unictype/category-or: New file.
49906         * modules/unictype/category-of: New file.
49907         * modules/unictype/category-test: New file.
49908         * modules/unictype/category-test-withtable: New file.
49909         * modules/unictype/category-byname: New file.
49910         * modules/unictype/category-none: New file.
49911         * modules/unictype/category-and: New file.
49912         * modules/unictype/category-and-not: New file.
49913         * modules/unictype/category-name: New file.
49914         * modules/unictype/combining-class: New file.
49915         * modules/unictype/category-all: New file.
49916         * modules/unictype/bidicategory-all: New file.
49917         * modules/unictype/bidicategory-byname: New file.
49918         * modules/unictype/bidicategory-name: New file.
49919         * modules/unictype/bidicategory-of: New file.
49920         * modules/unictype/bidicategory-test: New file.
49921         * modules/unictype/decimal-digit: New file.
49922         * modules/unictype/digit: New file.
49923         * modules/unictype/numeric: New file.
49924         * modules/unictype/mirror: New file.
49925         * modules/unictype/property-white-space: New file.
49926         * modules/unictype/property-alphabetic: New file.
49927         * modules/unictype/property-other-alphabetic: New file.
49928         * modules/unictype/property-not-a-character: New file.
49929         * modules/unictype/property-default-ignorable-code-point: New file.
49930         * modules/unictype/property-other-default-ignorable-code-point: New
49931         file.
49932         * modules/unictype/property-deprecated: New file.
49933         * modules/unictype/property-logical-order-exception: New file.
49934         * modules/unictype/property-variation-selector: New file.
49935         * modules/unictype/property-private-use: New file.
49936         * modules/unictype/property-unassigned-code-value: New file.
49937         * modules/unictype/property-uppercase: New file.
49938         * modules/unictype/property-other-uppercase: New file.
49939         * modules/unictype/property-lowercase: New file.
49940         * modules/unictype/property-other-lowercase: New file.
49941         * modules/unictype/property-titlecase: New file.
49942         * modules/unictype/property-soft-dotted: New file.
49943         * modules/unictype/property-id-start: New file.
49944         * modules/unictype/property-other-id-start: New file.
49945         * modules/unictype/property-id-continue: New file.
49946         * modules/unictype/property-other-id-continue: New file.
49947         * modules/unictype/property-xid-start: New file.
49948         * modules/unictype/property-xid-continue: New file.
49949         * modules/unictype/property-pattern-white-space: New file.
49950         * modules/unictype/property-pattern-syntax: New file.
49951         * modules/unictype/property-join-control: New file.
49952         * modules/unictype/property-grapheme-base: New file.
49953         * modules/unictype/property-grapheme-extend: New file.
49954         * modules/unictype/property-other-grapheme-extend: New file.
49955         * modules/unictype/property-grapheme-link: New file.
49956         * modules/unictype/property-bidi-control: New file.
49957         * modules/unictype/property-bidi-left-to-right: New file.
49958         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49959         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49960         * modules/unictype/property-bidi-european-digit: New file.
49961         * modules/unictype/property-bidi-eur-num-separator: New file.
49962         * modules/unictype/property-bidi-eur-num-terminator: New file.
49963         * modules/unictype/property-bidi-arabic-digit: New file.
49964         * modules/unictype/property-bidi-common-separator: New file.
49965         * modules/unictype/property-bidi-block-separator: New file.
49966         * modules/unictype/property-bidi-segment-separator: New file.
49967         * modules/unictype/property-bidi-whitespace: New file.
49968         * modules/unictype/property-bidi-non-spacing-mark: New file.
49969         * modules/unictype/property-bidi-boundary-neutral: New file.
49970         * modules/unictype/property-bidi-pdf: New file.
49971         * modules/unictype/property-bidi-embedding-or-override: New file.
49972         * modules/unictype/property-bidi-other-neutral: New file.
49973         * modules/unictype/property-hex-digit: New file.
49974         * modules/unictype/property-ascii-hex-digit: New file.
49975         * modules/unictype/property-ideographic: New file.
49976         * modules/unictype/property-unified-ideograph: New file.
49977         * modules/unictype/property-radical: New file.
49978         * modules/unictype/property-ids-binary-operator: New file.
49979         * modules/unictype/property-ids-trinary-operator: New file.
49980         * modules/unictype/property-zero-width: New file.
49981         * modules/unictype/property-space: New file.
49982         * modules/unictype/property-non-break: New file.
49983         * modules/unictype/property-iso-control: New file.
49984         * modules/unictype/property-format-control: New file.
49985         * modules/unictype/property-dash: New file.
49986         * modules/unictype/property-hyphen: New file.
49987         * modules/unictype/property-punctuation: New file.
49988         * modules/unictype/property-line-separator: New file.
49989         * modules/unictype/property-paragraph-separator: New file.
49990         * modules/unictype/property-quotation-mark: New file.
49991         * modules/unictype/property-sentence-terminal: New file.
49992         * modules/unictype/property-terminal-punctuation: New file.
49993         * modules/unictype/property-currency-symbol: New file.
49994         * modules/unictype/property-math: New file.
49995         * modules/unictype/property-other-math: New file.
49996         * modules/unictype/property-paired-punctuation: New file.
49997         * modules/unictype/property-left-of-pair: New file.
49998         * modules/unictype/property-combining: New file.
49999         * modules/unictype/property-composite: New file.
50000         * modules/unictype/property-decimal-digit: New file.
50001         * modules/unictype/property-numeric: New file.
50002         * modules/unictype/property-diacritic: New file.
50003         * modules/unictype/property-extender: New file.
50004         * modules/unictype/property-ignorable-control: New file.
50005         * modules/unictype/property-test: New file.
50006         * modules/unictype/property-byname: New file.
50007         * modules/unictype/property-all: New file.
50008         * modules/unictype/scripts: New file.
50009         * modules/unictype/scripts-all: New file.
50010         * modules/unictype/block-of: New file.
50011         * modules/unictype/block-test: New file.
50012         * modules/unictype/block-list: New file.
50013         * modules/unictype/block-all: New file.
50014         * modules/unictype/syntax-c-whitespace: New file.
50015         * modules/unictype/syntax-java-whitespace: New file.
50016         * modules/unictype/syntax-c-ident: New file.
50017         * modules/unictype/syntax-java-ident: New file.
50018         * modules/unictype/ctype-alnum: New file.
50019         * modules/unictype/ctype-alpha: New file.
50020         * modules/unictype/ctype-cntrl: New file.
50021         * modules/unictype/ctype-digit: New file.
50022         * modules/unictype/ctype-graph: New file.
50023         * modules/unictype/ctype-lower: New file.
50024         * modules/unictype/ctype-print: New file.
50025         * modules/unictype/ctype-punct: New file.
50026         * modules/unictype/ctype-space: New file.
50027         * modules/unictype/ctype-upper: New file.
50028         * modules/unictype/ctype-xdigit: New file.
50029         * modules/unictype/ctype-blank: New file.
50030         * lib/unictype/bidi_byname.c: New file.
50031         * lib/unictype/bidi_name.c: New file.
50032         * lib/unictype/bidi_of.c: New file.
50033         * lib/unictype/bidi_test.c: New file.
50034         * lib/unictype/bitmap.h: New file.
50035         * lib/unictype/block_test.c: New file.
50036         * lib/unictype/blocks.c: New file.
50037         * lib/unictype/categ_C.c: New file.
50038         * lib/unictype/categ_Cc.c: New file.
50039         * lib/unictype/categ_Cf.c: New file.
50040         * lib/unictype/categ_Cn.c: New file.
50041         * lib/unictype/categ_Co.c: New file.
50042         * lib/unictype/categ_Cs.c: New file.
50043         * lib/unictype/categ_L.c: New file.
50044         * lib/unictype/categ_Ll.c: New file.
50045         * lib/unictype/categ_Lm.c: New file.
50046         * lib/unictype/categ_Lo.c: New file.
50047         * lib/unictype/categ_Lt.c: New file.
50048         * lib/unictype/categ_Lu.c: New file.
50049         * lib/unictype/categ_M.c: New file.
50050         * lib/unictype/categ_Mc.c: New file.
50051         * lib/unictype/categ_Me.c: New file.
50052         * lib/unictype/categ_Mn.c: New file.
50053         * lib/unictype/categ_N.c: New file.
50054         * lib/unictype/categ_Nd.c: New file.
50055         * lib/unictype/categ_Nl.c: New file.
50056         * lib/unictype/categ_No.c: New file.
50057         * lib/unictype/categ_P.c: New file.
50058         * lib/unictype/categ_Pc.c: New file.
50059         * lib/unictype/categ_Pd.c: New file.
50060         * lib/unictype/categ_Pe.c: New file.
50061         * lib/unictype/categ_Pf.c: New file.
50062         * lib/unictype/categ_Pi.c: New file.
50063         * lib/unictype/categ_Po.c: New file.
50064         * lib/unictype/categ_Ps.c: New file.
50065         * lib/unictype/categ_S.c: New file.
50066         * lib/unictype/categ_Sc.c: New file.
50067         * lib/unictype/categ_Sk.c: New file.
50068         * lib/unictype/categ_Sm.c: New file.
50069         * lib/unictype/categ_So.c: New file.
50070         * lib/unictype/categ_Z.c: New file.
50071         * lib/unictype/categ_Zl.c: New file.
50072         * lib/unictype/categ_Zp.c: New file.
50073         * lib/unictype/categ_Zs.c: New file.
50074         * lib/unictype/categ_and.c: New file.
50075         * lib/unictype/categ_and_not.c: New file.
50076         * lib/unictype/categ_byname.c: New file.
50077         * lib/unictype/categ_name.c: New file.
50078         * lib/unictype/categ_none.c: New file.
50079         * lib/unictype/categ_of.c: New file.
50080         * lib/unictype/categ_or.c: New file.
50081         * lib/unictype/categ_test.c: New file.
50082         * lib/unictype/combining.c: New file.
50083         * lib/unictype/ctype_alnum.c: New file.
50084         * lib/unictype/ctype_alpha.c: New file.
50085         * lib/unictype/ctype_blank.c: New file.
50086         * lib/unictype/ctype_cntrl.c: New file.
50087         * lib/unictype/ctype_digit.c: New file.
50088         * lib/unictype/ctype_graph.c: New file.
50089         * lib/unictype/ctype_lower.c: New file.
50090         * lib/unictype/ctype_print.c: New file.
50091         * lib/unictype/ctype_punct.c: New file.
50092         * lib/unictype/ctype_space.c: New file.
50093         * lib/unictype/ctype_upper.c: New file.
50094         * lib/unictype/ctype_xdigit.c: New file.
50095         * lib/unictype/decdigit.c: New file.
50096         * lib/unictype/digit.c: New file.
50097         * lib/unictype/identsyntaxmap.h: New file.
50098         * lib/unictype/mirror.c: New file.
50099         * lib/unictype/numeric.c: New file.
50100         * lib/unictype/pr_alphabetic.c: New file.
50101         * lib/unictype/pr_ascii_hex_digit.c: New file.
50102         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50103         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50104         * lib/unictype/pr_bidi_block_separator.c: New file.
50105         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50106         * lib/unictype/pr_bidi_common_separator.c: New file.
50107         * lib/unictype/pr_bidi_control.c: New file.
50108         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50109         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50110         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50111         * lib/unictype/pr_bidi_european_digit.c: New file.
50112         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50113         * lib/unictype/pr_bidi_left_to_right.c: New file.
50114         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50115         * lib/unictype/pr_bidi_other_neutral.c: New file.
50116         * lib/unictype/pr_bidi_pdf.c: New file.
50117         * lib/unictype/pr_bidi_segment_separator.c: New file.
50118         * lib/unictype/pr_bidi_whitespace.c: New file.
50119         * lib/unictype/pr_byname.c: New file.
50120         * lib/unictype/pr_byname.gperf: New file.
50121         * lib/unictype/pr_combining.c: New file.
50122         * lib/unictype/pr_composite.c: New file.
50123         * lib/unictype/pr_currency_symbol.c: New file.
50124         * lib/unictype/pr_dash.c: New file.
50125         * lib/unictype/pr_decimal_digit.c: New file.
50126         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50127         * lib/unictype/pr_deprecated.c: New file.
50128         * lib/unictype/pr_diacritic.c: New file.
50129         * lib/unictype/pr_extender.c: New file.
50130         * lib/unictype/pr_format_control.c: New file.
50131         * lib/unictype/pr_grapheme_base.c: New file.
50132         * lib/unictype/pr_grapheme_extend.c: New file.
50133         * lib/unictype/pr_grapheme_link.c: New file.
50134         * lib/unictype/pr_hex_digit.c: New file.
50135         * lib/unictype/pr_hyphen.c: New file.
50136         * lib/unictype/pr_id_continue.c: New file.
50137         * lib/unictype/pr_id_start.c: New file.
50138         * lib/unictype/pr_ideographic.c: New file.
50139         * lib/unictype/pr_ids_binary_operator.c: New file.
50140         * lib/unictype/pr_ids_trinary_operator.c: New file.
50141         * lib/unictype/pr_ignorable_control.c: New file.
50142         * lib/unictype/pr_iso_control.c: New file.
50143         * lib/unictype/pr_join_control.c: New file.
50144         * lib/unictype/pr_left_of_pair.c: New file.
50145         * lib/unictype/pr_line_separator.c: New file.
50146         * lib/unictype/pr_logical_order_exception.c: New file.
50147         * lib/unictype/pr_lowercase.c: New file.
50148         * lib/unictype/pr_math.c: New file.
50149         * lib/unictype/pr_non_break.c: New file.
50150         * lib/unictype/pr_not_a_character.c: New file.
50151         * lib/unictype/pr_numeric.c: New file.
50152         * lib/unictype/pr_other_alphabetic.c: New file.
50153         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50154         * lib/unictype/pr_other_grapheme_extend.c: New file.
50155         * lib/unictype/pr_other_id_continue.c: New file.
50156         * lib/unictype/pr_other_id_start.c: New file.
50157         * lib/unictype/pr_other_lowercase.c: New file.
50158         * lib/unictype/pr_other_math.c: New file.
50159         * lib/unictype/pr_other_uppercase.c: New file.
50160         * lib/unictype/pr_paired_punctuation.c: New file.
50161         * lib/unictype/pr_paragraph_separator.c: New file.
50162         * lib/unictype/pr_pattern_syntax.c: New file.
50163         * lib/unictype/pr_pattern_white_space.c: New file.
50164         * lib/unictype/pr_private_use.c: New file.
50165         * lib/unictype/pr_punctuation.c: New file.
50166         * lib/unictype/pr_quotation_mark.c: New file.
50167         * lib/unictype/pr_radical.c: New file.
50168         * lib/unictype/pr_sentence_terminal.c: New file.
50169         * lib/unictype/pr_soft_dotted.c: New file.
50170         * lib/unictype/pr_space.c: New file.
50171         * lib/unictype/pr_terminal_punctuation.c: New file.
50172         * lib/unictype/pr_test.c: New file.
50173         * lib/unictype/pr_titlecase.c: New file.
50174         * lib/unictype/pr_unassigned_code_value.c: New file.
50175         * lib/unictype/pr_unified_ideograph.c: New file.
50176         * lib/unictype/pr_uppercase.c: New file.
50177         * lib/unictype/pr_variation_selector.c: New file.
50178         * lib/unictype/pr_white_space.c: New file.
50179         * lib/unictype/pr_xid_continue.c: New file.
50180         * lib/unictype/pr_xid_start.c: New file.
50181         * lib/unictype/pr_zero_width.c: New file.
50182         * lib/unictype/scripts.c: New file.
50183         * lib/unictype/sy_c_ident.c: New file.
50184         * lib/unictype/sy_c_whitespace.c: New file.
50185         * lib/unictype/sy_java_ident.c: New file.
50186         * lib/unictype/sy_java_whitespace.c: New file.
50187
50188         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50189         Unicode 5.0.0.
50190         * lib/unictype/blocks.h: Likewise.
50191         * lib/unictype/categ_C.h: Likewise.
50192         * lib/unictype/categ_Cc.h: Likewise.
50193         * lib/unictype/categ_Cf.h: Likewise.
50194         * lib/unictype/categ_Cn.h: Likewise.
50195         * lib/unictype/categ_Co.h: Likewise.
50196         * lib/unictype/categ_Cs.h: Likewise.
50197         * lib/unictype/categ_L.h: Likewise.
50198         * lib/unictype/categ_Ll.h: Likewise.
50199         * lib/unictype/categ_Lm.h: Likewise.
50200         * lib/unictype/categ_Lo.h: Likewise.
50201         * lib/unictype/categ_Lt.h: Likewise.
50202         * lib/unictype/categ_Lu.h: Likewise.
50203         * lib/unictype/categ_M.h: Likewise.
50204         * lib/unictype/categ_Mc.h: Likewise.
50205         * lib/unictype/categ_Me.h: Likewise.
50206         * lib/unictype/categ_Mn.h: Likewise.
50207         * lib/unictype/categ_N.h: Likewise.
50208         * lib/unictype/categ_Nd.h: Likewise.
50209         * lib/unictype/categ_Nl.h: Likewise.
50210         * lib/unictype/categ_No.h: Likewise.
50211         * lib/unictype/categ_P.h: Likewise.
50212         * lib/unictype/categ_Pc.h: Likewise.
50213         * lib/unictype/categ_Pd.h: Likewise.
50214         * lib/unictype/categ_Pe.h: Likewise.
50215         * lib/unictype/categ_Pf.h: Likewise.
50216         * lib/unictype/categ_Pi.h: Likewise.
50217         * lib/unictype/categ_Po.h: Likewise.
50218         * lib/unictype/categ_Ps.h: Likewise.
50219         * lib/unictype/categ_S.h: Likewise.
50220         * lib/unictype/categ_Sc.h: Likewise.
50221         * lib/unictype/categ_Sk.h: Likewise.
50222         * lib/unictype/categ_Sm.h: Likewise.
50223         * lib/unictype/categ_So.h: Likewise.
50224         * lib/unictype/categ_Z.h: Likewise.
50225         * lib/unictype/categ_Zl.h: Likewise.
50226         * lib/unictype/categ_Zp.h: Likewise.
50227         * lib/unictype/categ_Zs.h: Likewise.
50228         * lib/unictype/categ_of.h: Likewise.
50229         * lib/unictype/combining.h: Likewise.
50230         * lib/unictype/ctype_alnum.h: Likewise.
50231         * lib/unictype/ctype_alpha.h: Likewise.
50232         * lib/unictype/ctype_blank.h: Likewise.
50233         * lib/unictype/ctype_cntrl.h: Likewise.
50234         * lib/unictype/ctype_digit.h: Likewise.
50235         * lib/unictype/ctype_graph.h: Likewise.
50236         * lib/unictype/ctype_lower.h: Likewise.
50237         * lib/unictype/ctype_print.h: Likewise.
50238         * lib/unictype/ctype_punct.h: Likewise.
50239         * lib/unictype/ctype_space.h: Likewise.
50240         * lib/unictype/ctype_upper.h: Likewise.
50241         * lib/unictype/ctype_xdigit.h: Likewise.
50242         * lib/unictype/decdigit.h: Likewise.
50243         * lib/unictype/digit.h: Likewise.
50244         * lib/unictype/mirror.h: Likewise.
50245         * lib/unictype/numeric.h: Likewise.
50246         * lib/unictype/pr_alphabetic.h: Likewise.
50247         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50248         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50249         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50250         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50251         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50252         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50253         * lib/unictype/pr_bidi_control.h: Likewise.
50254         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50255         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50256         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50257         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50258         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50259         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50260         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50261         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50262         * lib/unictype/pr_bidi_pdf.h: Likewise.
50263         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50264         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50265         * lib/unictype/pr_combining.h: Likewise.
50266         * lib/unictype/pr_composite.h: Likewise.
50267         * lib/unictype/pr_currency_symbol.h: Likewise.
50268         * lib/unictype/pr_dash.h: Likewise.
50269         * lib/unictype/pr_decimal_digit.h: Likewise.
50270         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50271         * lib/unictype/pr_deprecated.h: Likewise.
50272         * lib/unictype/pr_diacritic.h: Likewise.
50273         * lib/unictype/pr_extender.h: Likewise.
50274         * lib/unictype/pr_format_control.h: Likewise.
50275         * lib/unictype/pr_grapheme_base.h: Likewise.
50276         * lib/unictype/pr_grapheme_extend.h: Likewise.
50277         * lib/unictype/pr_grapheme_link.h: Likewise.
50278         * lib/unictype/pr_hex_digit.h: Likewise.
50279         * lib/unictype/pr_hyphen.h: Likewise.
50280         * lib/unictype/pr_id_continue.h: Likewise.
50281         * lib/unictype/pr_id_start.h: Likewise.
50282         * lib/unictype/pr_ideographic.h: Likewise.
50283         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50284         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50285         * lib/unictype/pr_ignorable_control.h: Likewise.
50286         * lib/unictype/pr_iso_control.h: Likewise.
50287         * lib/unictype/pr_join_control.h: Likewise.
50288         * lib/unictype/pr_left_of_pair.h: Likewise.
50289         * lib/unictype/pr_line_separator.h: Likewise.
50290         * lib/unictype/pr_logical_order_exception.h: Likewise.
50291         * lib/unictype/pr_lowercase.h: Likewise.
50292         * lib/unictype/pr_math.h: Likewise.
50293         * lib/unictype/pr_non_break.h: Likewise.
50294         * lib/unictype/pr_not_a_character.h: Likewise.
50295         * lib/unictype/pr_numeric.h: Likewise.
50296         * lib/unictype/pr_other_alphabetic.h: Likewise.
50297         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50298         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50299         * lib/unictype/pr_other_id_continue.h: Likewise.
50300         * lib/unictype/pr_other_id_start.h: Likewise.
50301         * lib/unictype/pr_other_lowercase.h: Likewise.
50302         * lib/unictype/pr_other_math.h: Likewise.
50303         * lib/unictype/pr_other_uppercase.h: Likewise.
50304         * lib/unictype/pr_paired_punctuation.h: Likewise.
50305         * lib/unictype/pr_paragraph_separator.h: Likewise.
50306         * lib/unictype/pr_pattern_syntax.h: Likewise.
50307         * lib/unictype/pr_pattern_white_space.h: Likewise.
50308         * lib/unictype/pr_private_use.h: Likewise.
50309         * lib/unictype/pr_punctuation.h: Likewise.
50310         * lib/unictype/pr_quotation_mark.h: Likewise.
50311         * lib/unictype/pr_radical.h: Likewise.
50312         * lib/unictype/pr_sentence_terminal.h: Likewise.
50313         * lib/unictype/pr_soft_dotted.h: Likewise.
50314         * lib/unictype/pr_space.h: Likewise.
50315         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50316         * lib/unictype/pr_titlecase.h: Likewise.
50317         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50318         * lib/unictype/pr_unified_ideograph.h: Likewise.
50319         * lib/unictype/pr_uppercase.h: Likewise.
50320         * lib/unictype/pr_variation_selector.h: Likewise.
50321         * lib/unictype/pr_white_space.h: Likewise.
50322         * lib/unictype/pr_xid_continue.h: Likewise.
50323         * lib/unictype/pr_xid_start.h: Likewise.
50324         * lib/unictype/pr_zero_width.h: Likewise.
50325         * lib/unictype/scripts.h: Likewise.
50326         * lib/unictype/scripts_byname.gperf: Likewise.
50327         * lib/unictype/sy_c_ident.h: Likewise.
50328         * lib/unictype/sy_c_whitespace.h: Likewise.
50329         * lib/unictype/sy_java_ident.h: Likewise.
50330         * lib/unictype/sy_java_whitespace.h: Likewise.
50331
50332         * lib/unictype/Makefile: New file.
50333         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50334         glibc.
50335         * lib/unictype/3level.h: New file, copied from glibc.
50336         * lib/unictype/3levelbit.h: New file.
50337
50338 2007-11-11  Bruno Haible  <bruno@clisp.org>
50339
50340         * modules/gperf: New file.
50341         * modules/iconv_open (Depends-on): Add it.
50342         (Makefile.am): Remove the GPERF definition.
50343
50344 2007-11-11  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50347         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50348
50349 2007-11-11  Bruno Haible  <bruno@clisp.org>
50350
50351         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50352         (usage): Remove function.
50353
50354 2007-11-11  Bruno Haible  <bruno@clisp.org>
50355
50356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50357         gl_FUNC_CEILF_LIBS.
50358         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50359         gl_FUNC_CEIL_LIBS.
50360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50361         gl_FUNC_CEILL_LIBS.
50362         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50363         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50364         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50365
50366 2007-11-11  Bruno Haible  <bruno@clisp.org>
50367
50368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50369         roundf were declared but do not exist on functions.
50370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50371         roundl were declared but do not exist on functions.
50372         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50373         HAVE_FLOORL_AND_CEILL, respectively.
50374         Needed for Sun C on Solaris 10.
50375
50376 2007-11-11  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50379         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50380         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50381         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50382         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50383         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50384         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50385         HAVE_DECL_ROUNDF.
50386         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50387         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50389         of HAVE_DECL_ROUND*.
50390         * modules/math (Makefile.am): Update.
50391
50392 2007-11-10  Bruno Haible  <bruno@clisp.org>
50393
50394         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50395         ptrdiff_t as m4/intl.m4.
50396
50397 2007-11-10  Jim Meyering  <meyering@redhat.com>
50398
50399         Avoid link failure for the argmatch test.
50400         * tests/test-argmatch.c (usage): Define function to avoid a link
50401         failure: argmatch_die requires a usage function.
50402
50403 2007-11-09  Bruno Haible  <bruno@clisp.org>
50404
50405         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50406         * doc/functions/vsnprintf.texi: Likewise.
50407         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50408         with a size argument < 2.
50409
50410 2007-11-09  Bruno Haible  <bruno@clisp.org>
50411
50412         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50413         buffer. Fixes an inefficiency introduced on 2007-11-03.
50414
50415 2007-11-09  Bruno Haible  <bruno@clisp.org>
50416
50417         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50418         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50419
50420 2007-11-08  Jim Meyering  <meyering@redhat.com>
50421
50422         Change cache variable name prefix "jm_" to "gl_" everywhere.
50423         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50424         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50425         * m4/uptime.m4: s/gl_/jm_/
50426
50427 2007-11-07  Bruno Haible  <bruno@clisp.org>
50428
50429         Update to GNU gettext 0.17.
50430         * m4/intl.m4: Update to GNU gettext 0.17.
50431         * m4/po.m4: Likewise.
50432         * modules/gettext (Files): Remove m4/ulonglong.m4.
50433         (configure.ac): Require gettext infrastructure from version 0.17.
50434
50435 2007-11-06  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50438         symbolic values are not defined in a public header.
50439         * lib/freadable.c (freadable) [QNX]: Likewise.
50440         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50441         * lib/freading.c (freading) [QNX]: Likewise.
50442         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50443         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50444         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50445         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50446         Reported by Alain Magloire.
50447
50448         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50449
50450 2007-11-05  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50453         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50454         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50455         Reported by Eric Blake.
50456
50457 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50458             Bruno Haible  <bruno@clisp.org>
50459
50460         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50461         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50462         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50463         (malloc): Undefine also before including <stdlib.h>.
50464         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50465         Needed on OSF/1 4.0.
50466
50467 2007-11-05  Jim Meyering  <meyering@redhat.com>
50468
50469         git-version-gen: sync from coreutils.
50470         * build-aux/git-version-gen: Add comments.
50471         Change the first '-' to '.' in the snapshot version string,
50472         e.g., 6.9-377-08144 -> 6.9.377-08144
50473         Remove first parameter.
50474         Don't declare a version "-dirty" merely because a time
50475         stamp has changed.
50476
50477 2007-11-04  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/lock.h: Protect all macro definitions containing an 'if'
50480         statement through a "do { ... } while (0)".
50481         * lib/tls.h: Likewise.
50482
50483 2007-11-04  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50486
50487 2007-11-04  Bruno Haible  <bruno@clisp.org>
50488
50489         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50490         * modules/fprintf-posix (Depends-on): Add nocrash.
50491         * modules/snprintf-posix (Depends-on): Likewise.
50492         * modules/sprintf-posix (Depends-on): Likewise.
50493         * modules/vasnprintf-posix (Depends-on): Likewise.
50494         * modules/vasprintf-posix (Depends-on): Likewise.
50495         * modules/vfprintf-posix (Depends-on): Likewise.
50496         * modules/vsnprintf-posix (Depends-on): Likewise.
50497         * modules/vsprintf-posix (Depends-on): Likewise.
50498         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50499         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50500         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50501         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50502         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50503         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50504         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50505
50506 2007-11-04  Bruno Haible  <bruno@clisp.org>
50507
50508         * modules/nocrash: New file.
50509         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50510         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50511
50512 2007-11-04  Bruno Haible  <bruno@clisp.org>
50513
50514         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50515         precision handling.
50516         * tests/test-vasprintf-posix.c (test_function): Likewise.
50517         * tests/test-snprintf-posix.h (test_function): Likewise.
50518         * tests/test-sprintf-posix.h (test_function): Likewise.
50519
50520         Fix *printf behaviour for large precisions on mingw and BeOS.
50521         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50522         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50524         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50526         gl_PRINTF_PRECISION and test its result. Invoke
50527         gl_PREREQ_VASNPRINTF_PRECISION.
50528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50535         * doc/functions/fprintf.texi: Update.
50536         * doc/functions/printf.texi: Update.
50537         * doc/functions/snprintf.texi: Update.
50538         * doc/functions/sprintf.texi: Update.
50539         * doc/functions/vfprintf.texi: Update.
50540         * doc/functions/vprintf.texi: Update.
50541         * doc/functions/vsnprintf.texi: Update.
50542         * doc/functions/vsprintf.texi: Update.
50543
50544 2007-11-04  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50547
50548 2007-11-04  Bruno Haible  <bruno@clisp.org>
50549
50550         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50551         Reported by Sylvain Beucler <beuc@gnu.org>.
50552
50553 2007-11-03  Bruno Haible  <bruno@clisp.org>
50554
50555         * tests/test-fprintf-posix2.sh: New file.
50556         * tests/test-fprintf-posix2.c: New file.
50557         * modules/fprintf-posix-tests (Files): Add them.
50558         (TESTS): Add test-fprintf-posix2.sh.
50559         (configure.ac): Check for getrlimit and setrlimit.
50560         (check_PROGRAMS): Add test-fprintf-posix2.
50561
50562         * tests/test-printf-posix2.sh: New file.
50563         * tests/test-printf-posix2.c: New file.
50564         * modules/printf-posix-tests (Files): Add them.
50565         (TESTS): Add test-printf-posix2.sh.
50566         (configure.ac): Check for getrlimit and setrlimit.
50567         (check_PROGRAMS): Add test-printf-posix2.
50568
50569         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50570         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50571         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50572         (decode_double): New function, copied from decode_long_double.
50573         (scale10_round_decimal_decoded): New function, extracted from
50574         scale10_round_decimal_long_double.
50575         (scale10_round_decimal_long_double): Use it.
50576         (scale10_round_decimal_double): New function.
50577         (floorlog10): New function.
50578         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50580         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50582         gl_PRINTF_ENOMEM and test its result. Invoke
50583         gl_PREREQ_VASNPRINTF_ENOMEM.
50584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50591         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50592         * modules/snprintf-posix (Depends-on): Likewise.
50593         * modules/sprintf-posix (Depends-on): Likewise.
50594         * modules/vasnprintf-posix (Depends-on): Likewise.
50595         * modules/vasprintf-posix (Depends-on): Likewise.
50596         * modules/vfprintf-posix (Depends-on): Likewise.
50597         * modules/vsnprintf-posix (Depends-on): Likewise.
50598         * modules/vsprintf-posix (Depends-on): Likewise.
50599         * doc/functions/fprintf.texi: Update.
50600         * doc/functions/printf.texi: Update.
50601         * doc/functions/snprintf.texi: Update.
50602         * doc/functions/sprintf.texi: Update.
50603         * doc/functions/vfprintf.texi: Update.
50604         * doc/functions/vprintf.texi: Update.
50605         * doc/functions/vsnprintf.texi: Update.
50606         * doc/functions/vsprintf.texi: Update.
50607
50608 2007-11-03  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/frexp-nolibm-tests: New file.
50611
50612         * modules/frexp-nolibm: New file.
50613         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50614
50615 2007-11-03  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50618         value is C99 compliant.
50619         Needed for OSF/1 5.1.
50620
50621 2007-11-03  Bruno Haible  <bruno@clisp.org>
50622
50623         Fix out-of-memory handling of vasnprintf.
50624         * lib/printf-parse.c: Include <errno.h>.
50625         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50626         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50627         is already set.
50628
50629 2007-11-02  Eric Blake  <ebb9@byu.net>
50630
50631         Fix tests on cygwin.
50632         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50633
50634 2007-11-01  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50637         warning.
50638         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50639         needed for POSIX compatibility.
50640
50641 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50642
50643         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50644         for compatibility with GNU.
50645
50646 2007-11-01  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50649         (putenv): Renamed from rpl_putenv. Change argument type from
50650         'const char *' to 'char *'.
50651         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50652         of defining putenv in config.h, just set REPLACE_PUTENV.
50653         * modules/putenv (Depends-on): Add stdlib.
50654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50655         (Include): Use <stdlib.h>.
50656         * lib/stdlib.in.h (putenv): New declaration.
50657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50658         REPLACE_PUTENV.
50659         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50660         REPLACE_PUTENV.
50661         Needed for MacOS X 10.5.0.
50662         Reported by Peter O'Gorman <peter@pogma.com>.
50663
50664 2007-11-01  Jim Meyering  <meyering@redhat.com>
50665
50666         Treat an empty date string exactly like "0".
50667         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50668         if the remaining date string (to be parsed) is empty, use "0".
50669         Reported by Mischa Molhoek and discussed in this thread:
50670         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50671
50672 2007-10-31  Bruno Haible  <bruno@clisp.org>
50673
50674         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50675         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50676         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50677         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50678         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50679         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50680
50681 2007-10-31  Bruno Haible  <bruno@clisp.org>
50682
50683         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50684         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50685         (AC_TYPE_LONG_LONG_INT): Use it.
50686         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50687         it as well.
50688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50689         to m4/longlong.m4.
50690         * modules/stdint (Files): Remove m4/ulonglong.m4.
50691         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50692         m4/ulonglong.m4.
50693         * modules/strtoumax (Files): Likewise.
50694
50695 2007-10-30  Bruno Haible  <bruno@clisp.org>
50696
50697         * modules/xvasprintf-posix: New file.
50698         Suggested by Eric Blake.
50699
50700 2007-10-30  Bruno Haible  <bruno@clisp.org>
50701
50702         * modules/xprintf-posix-tests: New file.
50703         * tests/test-xprintf-posix.sh: New file.
50704         * tests/test-xprintf-posix.c: New file.
50705         * tests/test-xfprintf-posix.c: New file.
50706
50707         * modules/xprintf-posix: New file.
50708
50709 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50710
50711         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50712         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50713         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50714
50715 2007-10-29  Bruno Haible  <bruno@clisp.org>
50716
50717         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50718         contain the special marker '_cv_'.
50719         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50720         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50721         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50722         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50723         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50724         Reported by Ralf Wildenhues.
50725
50726 2007-10-29  Bruno Haible  <bruno@clisp.org>
50727
50728         * gnulib-tool (func_import): When --lgpl is not specified, set
50729         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50730         GPLv3.
50731         Reported by Simon Josefsson.
50732
50733 2007-10-28  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50736         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50737         HAVE_DECL_ISFINITE.
50738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50739         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50740         HAVE_DECL_ISFINITE.
50741
50742 2007-10-28  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50745         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50746
50747 2007-10-28  Bruno Haible  <bruno@clisp.org>
50748
50749         Fix link errors with Sun C 5.0 on Solaris 10.
50750         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50751         function is declared but not present in the compiler's libm.
50752         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50753         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50754         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50755         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50756         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50757         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50758         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50760         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50761         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50762         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50763         HAVE_DECL_FLOORL.
50764
50765 2007-10-28  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50768         gl_FUNC_FLOORL. Cache the result.
50769         (gl_FUNC_FLOORL): Use it.
50770         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50771         gl_FUNC_CEILL. Cache the result.
50772         (gl_FUNC_CEILL): Use it.
50773
50774         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50775         gl_FUNC_FLOOR. Cache the result.
50776         (gl_FUNC_FLOOR): Use it.
50777         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50778         gl_FUNC_CEIL. Cache the result.
50779         (gl_FUNC_CEIL): Use it.
50780
50781         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50782         gl_FUNC_FLOORF. Cache the result.
50783         (gl_FUNC_FLOORF): Use it.
50784         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50785         gl_FUNC_CEILF. Cache the result.
50786         (gl_FUNC_CEILF): Use it.
50787
50788 2007-10-28  Bruno Haible  <bruno@clisp.org>
50789
50790         * gnulib-tool: Allow specifying the LGPL version number through
50791         --lgpl=2 or --lgpl=3.
50792         (func_usage): Document --lgpl with argument.
50793         Handle --lgpl=... arguments.
50794         (func_import): Recognize also gl_LGPL calls with an argument. When
50795         --lgpl=2 is used and the module's license is just LGPL, report an
50796         error. Set sed_transform_lib_file according to the lgpl variable. In
50797         the generated files, use --lgpl or gl_LGPL invocations with argument,
50798         if necessary.
50799         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50800         an LGPv2+ license.
50801         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50802         gl_LGPL macro.
50803
50804 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50805             Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50808         (u16_uctomb_aux): Likewise.
50809         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50810         !HAVE_INLINE.
50811         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50812
50813 2007-10-28  Bruno Haible  <bruno@clisp.org>
50814
50815         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50816         Invoke AM_GETTEXT_OPTION if it exists.
50817         * modules/vasprintf: Likewise.
50818         * modules/verror: Likewise.
50819         * modules/xprintf: Likewise.
50820         * modules/xvasprintf: Likewise.
50821
50822 2007-10-27  Ben Pfaff  <blp@gnu.org>
50823
50824         * lib/math.in.h: Define isfinite macro and prototypes for
50825         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50826         implementations.
50827         * m4/math_h.m4: New substitutions for isfinite module.
50828         * lib/isfinite.c: New file.
50829         * m4/isfinite.m4: New file.
50830         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50831         * modules/isfinite: New file.
50832         * modules/isfinite-tests: New file.
50833         * tests/tests-isfinite.c: New file.
50834         * doc/functions/isfinite.texi: Mention isfinite module.
50835         * MODULES.html.sh: Mention new module.
50836
50837 2007-10-27  Ben Pfaff  <blp@gnu.org>
50838
50839         Ralf Wildenhues reported that Tru64 4.0D declares the round
50840         functions but does not have definitions.
50841         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50842         cannot be found in any library, set the output variable to
50843         "missing" instead of "".
50844         * m4/round.m4: Also use our substitute if we cannot find round in
50845         any library, even if it is declared.
50846         * m4/roundf.m4: Likewise for roundf.
50847         * m4/roundl.m4: Likewise for roundl.
50848         * lib/math.in.h: Undefine roundf, round, roundl before defining
50849         their replacements, to allow for hypothetical systems where these
50850         may be defined as macros but not available in libraries.
50851
50852 2007-10-27  Bruno Haible  <bruno@clisp.org>
50853
50854         * doc/gnulib.texi: Invoke @firstparagraphindent.
50855         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50856         changes in gnulib.
50857         (Source changes): New section.
50858
50859 2007-10-26  Bruno Haible  <bruno@clisp.org>
50860
50861         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50862         borrowed from autoconf.
50863
50864 2007-10-26  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50867         strerror returned the empty string. Needed on HP-UX 11.00.
50868
50869 2007-10-24  Micah Cowan  <micah@cowan.name>
50870
50871         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50872         * build-aux/bootstrap: Remove support for now-unnecessary option,
50873         --cvs-user, and envvars CVS_USER, CVS_RSH.
50874
50875 2007-10-24  Jim Meyering  <meyering@redhat.com>
50876
50877         Avoid diagnostics from sha1sum when there is no cached checksum.
50878         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50879         if the po.s1 file hasn't been created yet.
50880
50881         * build-aux/bootstrap: Sync from coreutils:
50882         2007-10-24  Jim Meyering  <meyering@redhat.com>
50883         Get gnulib from the git repository, not from an obsolete cvs one.
50884         * build-aux/bootstrap: Suggestion from Micah Cowan.
50885         2007-10-04  Jim Meyering  <jim@meyering.net>
50886         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50887         (update_po_files): Work also when there are no .po files in po/.
50888
50889 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         * README: Append ".git" to git and cg examples.
50892         Problem reported by Benoit Sigoure.
50893
50894 2007-10-23  Micah Cowan  <micah@cowan.name>
50895
50896         * users.txt: Add wget.
50897
50898 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50899
50900         Fix linking of some unistdio tests on FreeBSD.
50901         * modules/unistdio/u16-vsnprintf-tests
50902         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50903         * modules/unistdio/u16-vsprintf-tests
50904         (test_u16_vsnprintf1_LDADD): Likewise.
50905         * modules/unistdio/u32-vsnprintf-tests
50906         (test_u32_vsnprintf1_LDADD): Likewise.
50907         * modules/unistdio/u32-vsprintf-tests
50908         (test_u32_vsprintf1_LDADD): Likewise.
50909         * modules/unistdio/u8-vsnprintf-tests
50910         (test_u8_vsnprintf1_LDADD): Likewise.
50911         * modules/unistdio/u8-vsprintf-tests
50912         (test_u8_vsprintf1_LDADD): Likewise.
50913         * modules/unistdio/ulc-vsnprintf-tests
50914         (test_ulc_vsnprintf1_LDADD): Likewise.
50915         * modules/unistdio/ulc-vsprintf-tests
50916         (test_ulc_vsprintf1_LDADD): Likewise.
50917
50918         Fix linking of some uniconv tests on FreeBSD.
50919         * modules/uniconv/u16-conv-from-enc-tests
50920         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50921         * modules/uniconv/u16-conv-to-enc-tests
50922         (test_u16_conv_to_enc_LDADD): Likewise.
50923         * modules/uniconv/u16-strconv-from-enc-tests
50924         (test_u16_strconv_from_enc_LDADD): Likewise.
50925         * modules/uniconv/u16-strconv-to-enc-tests
50926         (test_u16_strconv_to_enc_LDADD): Likewise.
50927         * modules/uniconv/u32-conv-from-enc-tests
50928         (test_u32_conv_from_enc_LDADD): Likewise.
50929         * modules/uniconv/u32-conv-to-enc-tests
50930         (test_u32_conv_to_enc_LDADD): Likewise.
50931         * modules/uniconv/u32-strconv-from-enc-tests
50932         (test_u32_strconv_from_enc_LDADD): Likewise.
50933         * modules/uniconv/u32-strconv-to-enc-tests
50934         (test_u32_strconv_to_enc_LDADD): Likewise.
50935         * modules/uniconv/u8-conv-from-enc-tests
50936         (test_u8_conv_from_enc_LDADD): Likewise.
50937         * modules/uniconv/u8-conv-to-enc-tests
50938         (test_u8_conv_to_enc_LDADD): Likewise.
50939         * modules/uniconv/u8-strconv-from-enc-tests
50940         (test_u8_strconv_from_enc_LDADD): Likewise.
50941         * modules/uniconv/u8-strconv-to-enc-tests
50942         (test_u8_strconv_to_enc_LDADD): Likewise.
50943
50944 2007-10-22  Bruno Haible  <bruno@clisp.org>
50945
50946         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50947         size.
50948
50949 2007-10-22  Eric Blake  <ebb9@byu.net>
50950
50951         Tweak x*printf documentation.
50952         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50953         variable name and comments.
50954         Suggested by Bruno Haible.
50955
50956 2007-10-22  Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/acl.c (copy_acl): Fix file name in comment.
50959
50960 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         Fix Tru64 problem with stdbool.h.
50963         * lib/stdbool.in.h (false, true):
50964         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50965         Don't declare as an enum in this situation; it runs afoul of Tru64.
50966         Problem reported by Steven M. Schweda in
50967         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50968
50969 2007-10-22  Eric Blake  <ebb9@byu.net>
50970
50971         Also wrap vf?printf.
50972         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50973         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50974         (xvprintf, xvfprintf): New functions.
50975
50976 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50977
50978         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50979         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50980
50981         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50982         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50983
50984 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50987         by Bruno Haible.
50988
50989 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50990
50991         * lib/getloadavg.c
50992         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50993         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50994
50995         * tests/test-i-ring.c: Work for C89.
50996
50997 2007-10-22  Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51000         -1u, in preprocessor expression, so that we don't test for the bug
51001         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51003
51004 2007-10-22  Eric Blake  <ebb9@byu.net>
51005
51006         * tests/test-yesno.sh: Silence stderr during test.
51007
51008 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51009
51010         * modules/crypto/gc-camellia: New file.
51011
51012         * m4/gc-camellia.m4: New file.
51013
51014         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51015
51016         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51017
51018 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51019
51020         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51021         --help to stdout.  Reported by sms@antinode.org (Steven
51022         M. Schweda).
51023
51024 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51025
51026         * users.txt: Fix link to libksba.
51027
51028 2007-10-21  Ben Pfaff  <blp@gnu.org>
51029
51030         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51031         round.c roundf implementation that depends on floorf and ceilf to
51032         be tested unconditionally.
51033
51034 2007-10-21  Ben Pfaff  <blp@gnu.org>
51035
51036         * m4/check-libm-func.m4: Removed.
51037         * m4/check-math-lib.m4: New file.
51038         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51039         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51040         definition and lack of AC_LIBOBJ([roundf]).
51041         * m4/roundl.m4: Ditto, and similarly for roundl.
51042         * modules/round: Reference new m4 file.
51043         * modules/roundf: Ditto.
51044         * modules/roundl: Ditto.
51045         * tests/test-round2.c (main): Use ROUND instead of round.
51046         Bug report from Bruno Haible.
51047
51048 2007-10-21  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51051         context.
51052
51053 2007-10-21  Bruno Haible  <bruno@clisp.org>
51054
51055         * tests/test-wcwidth.c (main): Allow negative result for some control
51056         characters.
51057
51058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51059         Needed on OSF/1 5.1.
51060
51061 2007-10-21  Bruno Haible  <bruno@clisp.org>
51062
51063         * tests/test-floorf1.c: Include isnanf.h.
51064         (main): Use isnanf() instead of isnan().
51065         * tests/test-ceilf1.c: Include isnanf.h.
51066         (main): Use isnanf() instead of isnan().
51067         * tests/test-truncf1.c: Include isnanf.h.
51068         (main): Use isnanf() instead of isnan().
51069         * tests/test-roundf1.c: Include isnanf.h.
51070         (main): Use isnanf() instead of isnan().
51071
51072 2007-10-21  Eric Blake  <ebb9@byu.net>
51073
51074         * users.txt: Update URL for m4.
51075
51076 2007-10-21  Bruno Haible  <bruno@clisp.org>
51077
51078         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51079
51080 2007-10-21  Bruno Haible  <bruno@clisp.org>
51081
51082         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51083         Git's management files if the CVS files are not present.
51084
51085 2007-10-20  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51088         gcc-3.4.x.
51089
51090 2007-10-20  Ben Pfaff  <blp@gnu.org>
51091
51092         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51093         implementations.
51094         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51095         * lib/round.c: New file.
51096         * lib/roundf.c: New file.
51097         * lib/roundl.c: New file.
51098         * m4/round.m4: New file.
51099         * m4/roundf.m4: New file.
51100         * m4/roundl.m4: New file.
51101         * m4/check-libm-func-m4: New file.
51102         * modules/math: Replace round, roundf, roundl related @VARS@ in
51103         math.in.h.
51104         * modules/round: New file.
51105         * modules/round-tests: New file.
51106         * modules/roundf: New file.
51107         * modules/roundf-tests: New file.
51108         * modules/roundl: New file.
51109         * modules/roundl-tests: New file.
51110         * tests/test-round1.c: New file.
51111         * tests/test-round2.c: New file.
51112         * tests/test-roundf1.c: New file.
51113         * tests/test-roundf2.c: New file.
51114         * tests/test-roundl.c: New file.
51115         * doc/functions/round.texi: Mention round module.
51116         * doc/functions/roundf.texi: Mention roundf module.
51117         * doc/functions/roundl.texi: Mention roundl module.
51118         * MODULES.html.sh: Mention new modules.
51119         Thanks to Bruno Haible for suggestions.
51120
51121 2007-10-20  Jim Meyering  <meyering@redhat.com>
51122
51123         * lib/xprintf.c: Include <config.h> unconditionally.
51124
51125         Change xprintf's license to GPL.
51126         * modules/xprintf (License): s/LGPL/GPL/, since this module
51127         depends on modules (exit and exitfail) which are GPL.
51128         Suggestion from Bruno Haible.
51129
51130         xprintf fixes.
51131         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51132         Use a clearer diagnostic.
51133         Patch from Bruno Haible.
51134
51135 2007-10-20  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51138         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51140
51141 2007-10-20  Bruno Haible  <bruno@clisp.org>
51142
51143         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51144         precision in the comparison result > x - 1 or similar.
51145         * tests/test-ceilf2.c (correct_result_p): Likewise.
51146         * tests/test-truncf2.c (correct_result_p): Likewise.
51147         * tests/test-trunc2.c (correct_result_p): Likewise.
51148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51149
51150 2007-10-20  Bruno Haible  <bruno@clisp.org>
51151
51152         * modules/ceil: New file.
51153         * m4/ceil.m4: New file.
51154         * doc/functions/ceil.texi: Mention the 'ceil' module.
51155
51156 2007-10-20  Bruno Haible  <bruno@clisp.org>
51157
51158         * modules/floor: New file.
51159         * m4/floor.m4: New file.
51160         * doc/functions/floor.texi: Mention the 'floor' module.
51161
51162 2007-10-20  Bruno Haible  <bruno@clisp.org>
51163
51164         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51165         of %a.
51166         * modules/floorf-tests (Depends-on): Likewise.
51167         * modules/truncf-tests (Depends-on): Likewise.
51168         * modules/trunc-tests (Depends-on): Likewise.
51169         Reported by Ben Pfaff.
51170
51171 2007-10-19  Jim Meyering  <meyering@redhat.com>
51172
51173         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51174         Don't bother testing specific errno values.  Just test ferror.
51175
51176         New module: xprintf
51177         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51178
51179 2007-10-19  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51182         syntax.
51183         * modules/javaexec (Makefile.am): Likewise.
51184         * modules/relocatable-prog (Makefile.am): Likewise.
51185         Suggested by Jim Meyering.
51186
51187 2007-10-18  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51190         Reported by Jim Meyering.
51191
51192 2007-10-18  Eric Blake  <ebb9@byu.net>
51193
51194         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51195
51196 2007-10-18  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51199         the format string into writable memory. Needed in Fortify conditions.
51200
51201 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51202             Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51205         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51206         * modules/trim (Depends-on): Add mbchar.
51207         (configure.ac): Add gl_FUNC_MBRTOWC.
51208         (Makefile.am): Augment lib_SOURCES.
51209
51210 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         Modify glob.c to use fstatat and dirfd, to simplify it.
51213         Suggested by Eric Blake.
51214         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51215         Don't include <stdbool.h>; not used.
51216         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51217         (link_exists_p): Simplify implementation, since we can now assume
51218         dirfd and fstatat.
51219         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51220
51221 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51222
51223         * gnulib-tool (func_get_dependencies): Fix sed script to
51224         match only tests.
51225
51226 2007-10-17  Bruno Haible  <bruno@clisp.org>
51227
51228         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51229         allow locale names without encoding suffix.
51230         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51231         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51232
51233 2007-10-16  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51236         * lib/getgroups.c (getgroups): Likewise.
51237         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51238
51239 2007-10-16  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51242         * modules/malloc-posix (License): Likewise.
51243         * modules/realloc-posix (License): Likewise.
51244         * modules/calloc-posix (License): Likewise.
51245         * modules/intprops (License): Change from GPL to LGPL, with
51246         Paul Eggert's approval.
51247
51248 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51249
51250         Merge glibc changes into lib/glob.c.
51251
51252         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51253         2007-10-15 04:59:03 UTC.  Here are the changes:
51254
51255         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51256
51257         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51258
51259         * lib/glob.c: Add some branch prediction throughout.
51260
51261         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51262
51263         [BZ #5103]
51264         * lib/glob.c (glob): Recognize patterns starting \/.
51265
51266         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51267
51268         [BZ #3996]
51269         * lib/glob.c (attribute_hidden): Define if not defined.
51270         (glob): Unescape dirname, filename or username when needed and not
51271         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51272         is NULL.  Handle unescaped [ in pattern without closing ].
51273         Don't pass GLOB_CHECK down to recursive glob for directories.
51274         (__glob_pattern_type): New function.
51275         (__glob_pattern_p): Implement using __glob_pattern_type.
51276         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51277         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51278         Remove unreachable code.
51279
51280         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51281
51282         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51283         explain why there are no leaks.
51284
51285         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51286
51287         [BZ #3253]
51288         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51289         time, rather allocate increasingly bigger arrays of pointers, if
51290         possible with alloca, if too large with malloc.
51291
51292 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51293
51294         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51295         Problem reported by H.Merijn Brand in
51296         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51297         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51298         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51299
51300 2007-10-15  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51303         with explicit rpl_ prefix.
51304         * lib/fopen.c (fopen): Likewise.
51305         * lib/freopen.c (freopen): Likewise.
51306         * lib/iconv.c (iconv): Likewise.
51307         * lib/iconv_close.c (iconv_close): Likewise.
51308
51309 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51310
51311         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51312
51313 2007-10-15  Bruno Haible  <bruno@clisp.org>
51314
51315         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51316         <stddef.h> instead of <stdlib.h> since we only need NULL.
51317         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51318
51319 2007-10-15  Bruno Haible  <bruno@clisp.org>
51320
51321         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51322         Replace paragraph talking about LIBOBJS.
51323         Reported by Colin Watson <cjwatson@debian.org>.
51324
51325 2007-10-15  Bruno Haible  <bruno@clisp.org>
51326
51327         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51328         <stdlib.h> before using NULL.
51329
51330 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51331
51332         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51333         Reported by Albert Chin <china@thewrittenword.com>.
51334
51335 2007-10-14  Bruno Haible  <bruno@clisp.org>
51336
51337         * modules/iconv_open-utf-tests: New file.
51338         * tests/test-iconv-utf.c: New file.
51339
51340         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51341         * modules/iconv_open-utf: New file.
51342         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51343         (iconv, iconv_close): New declarations.
51344         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51345         be defined.
51346         (iconv_open): Add special handling of conversion between UTF-8 and
51347         UTF-{16,32}{BE,LE}.
51348         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51349         * lib/iconv_close.c: New file.
51350         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51351         gl_FUNC_ICONV_OPEN.
51352         (gl_FUNC_ICONV_OPEN): Use it.
51353         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51354         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51355         and REPLACE_ICONV_UTF.
51356         * modules/iconv_open (Depends-on): Add c-strcase.
51357         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51358         ICONV_CONST.
51359         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51360
51361 2007-10-13  Albert Chin  <china@thewrittenword.com>
51362             Bruno Haible  <bruno@clisp.org>
51363
51364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51365         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51366
51367 2007-10-13  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51370         defined, use the ISO C99 inline semantics.
51371         * lib/argp.h (ARGP_EI): Likewise.
51372
51373 2007-10-13  Bruno Haible  <bruno@clisp.org>
51374
51375         Handle 'inline' change in gcc 4.3.0.
51376         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51377         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51378         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51379         argp_fmtstream_point): Disable 'extern' declaration if the function
51380         definition is going to be provided inline.
51381         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51382         semantics, not the ISO C99 inline semantics.
51383         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51384         'extern' declaration if the function definition is going to be provided
51385         inline.
51386         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51387         the GNU C inline semantics, not the ISO C99 inline semantics. With
51388         GCC 4.2, avoid a warning.
51389
51390 2007-10-13  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/freading.h (freading): Enable the use of __freading for
51393         glibc >= 2.7.
51394         * lib/freading.c (freading): Likewise.
51395
51396 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51397
51398         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51399         "warning: C99 inline functions are not supported; using GNU89".
51400
51401 2007-10-12  Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51404         of 2.
51405         * tests/test-ceilf2.c: New file.
51406         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51407
51408         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51409         * modules/ceilf-tests: Update.
51410
51411 2007-10-12  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51414         of 2.
51415         * tests/test-floorf2.c: New file.
51416         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51417
51418         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51419         * modules/floorf-tests: Update.
51420
51421 2007-10-12  Bruno Haible  <bruno@clisp.org>
51422
51423         * tests/test-trunc2.c: New file.
51424         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51425
51426         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51427         * modules/trunc-tests: Update.
51428
51429 2007-10-12  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51432         of 2.
51433         * tests/test-truncf2.c: New file.
51434         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51435
51436         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51437         * modules/truncf-tests: Update.
51438
51439 2007-10-11  Eric Blake  <ebb9@byu.net>
51440
51441         Don't claim strerror is broken on Interix.
51442         * doc/functions/strerror.texi (strerror): Known broken systems are
51443         now Solaris 8, and not Interix.
51444         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51445         Interix on cross-compile.
51446         Reported by Martin Koeppe in
51447         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51448
51449 2007-10-11  Bruno Haible  <bruno@clisp.org>
51450
51451         * modules/i-ring-tests: New file.
51452         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51453         instead of assert.
51454
51455 2007-10-11  Bruno Haible  <bruno@clisp.org>
51456
51457         * modules/filenamecat-tests: New file.
51458         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51459         * lib/filenamecat.c: Remove test code.
51460
51461 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51464
51465         * lib/strerror.c: Include <string.h> always, to test interface,
51466         and to remove the need for the dummy.
51467         Include intprops.h to compute width instead of doing it ourselves
51468         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51469         (strerror): Define it to return NULL if there's no system strerror.
51470         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51471         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51472         ancient pre-strerror Unix systems well any more.  Saying "unknown
51473         system error" is enough.
51474         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51475         simpler strerror.c implementation.
51476         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51477         Simplify the tests to reflect the simpler strerror implementation.
51478         * modules/strerror (Depends-on): Add intprops.
51479
51480 2007-10-09  Eric Blake  <ebb9@byu.net>
51481
51482         Silence test-fpending.
51483         * modules/fpending-tests (Files): Add wrapper script.
51484         * tests/test-fpending.sh: New file.
51485
51486 2007-10-09  Bruno Haible  <bruno@clisp.org>
51487
51488         * MODULES.html.sh (func_module): Don't create a hyperlink for
51489         function names like 'printf_frexp'.
51490         (Misc): Add crc, memxor.
51491         (Characteristics of floating types): New section.
51492         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51493         isnanf-nolibm, signbit, trunc, truncf, truncl.
51494         (Enhancements for ISO C 99 functions): New subsection Input/output.
51495         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51496         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51497         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51498         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51499         (Enhancements for POSIX:2001 functions): Add chdir-long.
51500         (File system functions): Add areadlink, chdir-safer, read-file.
51501         Remove cycle-check.
51502         (File system as inode set): New section.
51503         (Date and time): Add gethrxtime.
51504         (Multithreading): Add openmp.
51505         (Internationalization functions): Add localename.
51506         (Unicode string functions): Add unistr/u*-mbsnlen.
51507         (Support for maintaining and releasing projects): Add git-version-gen.
51508         (Lone files): Remove directories.
51509
51510 2007-10-08  Ben Pfaff  <blp@gnu.org>
51511
51512         * lib/xmalloca.h: Fix typo in comment.
51513
51514 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51517         when avoiding problems with integer overflow.  Use a portable test
51518         instead.
51519
51520 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51521
51522         * modules/dummy (License): Change to LGPLv2+.
51523         * modules/float (License): Likewise
51524         * modules/realloc (License): Likewise
51525         * modules/stdlib (License): Likewise
51526
51527 2007-10-07  Bruno Haible  <bruno@clisp.org>
51528
51529         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51530         * floor.c (TWO_MANT_DIG): Likewise.
51531         * ceil.c (TWO_MANT_DIG): Likewise.
51532         Reported by Ben Pfaff.
51533
51534 2007-10-07  Bruno Haible  <bruno@clisp.org>
51535
51536         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51537         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51538         * lib/frexp.c (FUNC): Likewise.
51539         * lib/printf-frexp.h (printf_frexp): Likewise.
51540         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51541         * lib/printf-frexp.c (FUNC): Likewise.
51542         Suggested by Jim Meyering.
51543
51544 2007-10-07  Jim Meyering  <meyering@redhat.com>
51545
51546         Make xnanosleep's integer overflow test more robust.
51547         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51548         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51549
51550 2007-10-07  Bruno Haible  <bruno@clisp.org>
51551
51552         * NEWS: Mention the license change.
51553
51554         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51555         abbreviations in the modules files.
51556
51557         Change copyright notice from GPLv2+ to GPLv3+.
51558         * README: Change copyright notice.
51559         * MODULES.html.sh: Likewise.
51560         * build-aux/bootstrap.conf: Likewise.
51561         * build-aux/config.libpath: Likewise.
51562         * build-aux/csharpcomp.sh.in: Likewise.
51563         * build-aux/csharpexec.sh.in: Likewise.
51564         * build-aux/install-reloc: Likewise.
51565         * build-aux/javacomp.sh.in: Likewise.
51566         * build-aux/javaexec.sh.in: Likewise.
51567         * build-aux/ldd.sh.in: Likewise.
51568         * build-aux/reloc-ldflags: Likewise.
51569         * build-aux/relocatable.sh.in: Likewise.
51570         * build-aux/x-to-1.in: Likewise.
51571         * check-module: Likewise.
51572         * config/srclistvars.sh: Likewise.
51573         * gnulib-tool: Likewise.
51574         * lib/acl-internal.h: Likewise.
51575         * lib/acl.c: Likewise.
51576         * lib/acl.h: Likewise.
51577         * lib/acl_entries.c: Likewise.
51578         * lib/areadlink-with-size.c: Likewise.
51579         * lib/areadlink.c: Likewise.
51580         * lib/areadlink.h: Likewise.
51581         * lib/argmatch.c: Likewise.
51582         * lib/argmatch.h: Likewise.
51583         * lib/argp-ba.c: Likewise.
51584         * lib/argp-eexst.c: Likewise.
51585         * lib/argp-fmtstream.c: Likewise.
51586         * lib/argp-fmtstream.h: Likewise.
51587         * lib/argp-fs-xinl.c: Likewise.
51588         * lib/argp-help.c: Likewise.
51589         * lib/argp-namefrob.h: Likewise.
51590         * lib/argp-parse.c: Likewise.
51591         * lib/argp-pin.c: Likewise.
51592         * lib/argp-pv.c: Likewise.
51593         * lib/argp-pvh.c: Likewise.
51594         * lib/argp-xinl.c: Likewise.
51595         * lib/argp.h: Likewise.
51596         * lib/at-func.c: Likewise.
51597         * lib/atanl.c: Likewise.
51598         * lib/backupfile.c: Likewise.
51599         * lib/backupfile.h: Likewise.
51600         * lib/basename.c: Likewise.
51601         * lib/binary-io.h: Likewise.
51602         * lib/byteswap.in.h: Likewise.
51603         * lib/c-stack.c: Likewise.
51604         * lib/c-stack.h: Likewise.
51605         * lib/c-strcasestr.c: Likewise.
51606         * lib/c-strcasestr.h: Likewise.
51607         * lib/c-strstr.c: Likewise.
51608         * lib/c-strstr.h: Likewise.
51609         * lib/c-strtod.c: Likewise.
51610         * lib/calloc.c: Likewise.
51611         * lib/canon-host.c: Likewise.
51612         * lib/canon-host.h: Likewise.
51613         * lib/canonicalize-lgpl.c: Likewise.
51614         * lib/canonicalize.c: Likewise.
51615         * lib/canonicalize.h: Likewise.
51616         * lib/ceil.c: Likewise.
51617         * lib/ceilf.c: Likewise.
51618         * lib/ceill.c: Likewise.
51619         * lib/chdir-long.c: Likewise.
51620         * lib/chdir-long.h: Likewise.
51621         * lib/chdir-safer.c: Likewise.
51622         * lib/chdir-safer.h: Likewise.
51623         * lib/chown.c: Likewise.
51624         * lib/classpath.c: Likewise.
51625         * lib/classpath.h: Likewise.
51626         * lib/clean-temp.c: Likewise.
51627         * lib/clean-temp.h: Likewise.
51628         * lib/cloexec.c: Likewise.
51629         * lib/close-stream.c: Likewise.
51630         * lib/closein.c: Likewise.
51631         * lib/closein.h: Likewise.
51632         * lib/closeout.c: Likewise.
51633         * lib/closeout.h: Likewise.
51634         * lib/concat-filename.c: Likewise.
51635         * lib/copy-file.c: Likewise.
51636         * lib/copy-file.h: Likewise.
51637         * lib/count-one-bits.h: Likewise.
51638         * lib/crc.c: Likewise.
51639         * lib/crc.h: Likewise.
51640         * lib/creat-safer.c: Likewise.
51641         * lib/csharpcomp.c: Likewise.
51642         * lib/csharpcomp.h: Likewise.
51643         * lib/csharpexec.c: Likewise.
51644         * lib/csharpexec.h: Likewise.
51645         * lib/cycle-check.c: Likewise.
51646         * lib/cycle-check.h: Likewise.
51647         * lib/diacrit.c: Likewise.
51648         * lib/diacrit.h: Likewise.
51649         * lib/diffseq.h: Likewise.
51650         * lib/dirchownmod.c: Likewise.
51651         * lib/dirent.in.h: Likewise.
51652         * lib/dirfd.c: Likewise.
51653         * lib/dirfd.h: Likewise.
51654         * lib/dirname.c: Likewise.
51655         * lib/dirname.h: Likewise.
51656         * lib/dummy.c: Likewise.
51657         * lib/dup-safer.c: Likewise.
51658         * lib/dup2.c: Likewise.
51659         * lib/eealloc.h: Likewise.
51660         * lib/error.c: Likewise.
51661         * lib/error.h: Likewise.
51662         * lib/euidaccess.c: Likewise.
51663         * lib/exclude.c: Likewise.
51664         * lib/exclude.h: Likewise.
51665         * lib/execute.c: Likewise.
51666         * lib/execute.h: Likewise.
51667         * lib/exitfail.c: Likewise.
51668         * lib/exitfail.h: Likewise.
51669         * lib/expl.c: Likewise.
51670         * lib/fatal-signal.c: Likewise.
51671         * lib/fatal-signal.h: Likewise.
51672         * lib/fbufmode.c: Likewise.
51673         * lib/fbufmode.h: Likewise.
51674         * lib/fchdir.c: Likewise.
51675         * lib/fchmodat.c: Likewise.
51676         * lib/fchownat.c: Likewise.
51677         * lib/fcntl--.h: Likewise.
51678         * lib/fcntl-safer.h: Likewise.
51679         * lib/fcntl.in.h: Likewise.
51680         * lib/fd-safer.c: Likewise.
51681         * lib/fflush.c: Likewise.
51682         * lib/file-has-acl.c: Likewise.
51683         * lib/file-set.c: Likewise.
51684         * lib/file-type.c: Likewise.
51685         * lib/file-type.h: Likewise.
51686         * lib/fileblocks.c: Likewise.
51687         * lib/filemode.c: Likewise.
51688         * lib/filemode.h: Likewise.
51689         * lib/filename.h: Likewise.
51690         * lib/filenamecat.c: Likewise.
51691         * lib/filenamecat.h: Likewise.
51692         * lib/findprog.c: Likewise.
51693         * lib/findprog.h: Likewise.
51694         * lib/float.in.h: Likewise.
51695         * lib/floor.c: Likewise.
51696         * lib/floorf.c: Likewise.
51697         * lib/floorl.c: Likewise.
51698         * lib/fopen-safer.c: Likewise.
51699         * lib/fopen.c: Likewise.
51700         * lib/fpending.c: Likewise.
51701         * lib/fpending.h: Likewise.
51702         * lib/fprintf.c: Likewise.
51703         * lib/fprintftime.h: Likewise.
51704         * lib/fpucw.h: Likewise.
51705         * lib/fpurge.c: Likewise.
51706         * lib/fpurge.h: Likewise.
51707         * lib/freadable.c: Likewise.
51708         * lib/freadable.h: Likewise.
51709         * lib/freadahead.c: Likewise.
51710         * lib/freadahead.h: Likewise.
51711         * lib/freading.c: Likewise.
51712         * lib/freading.h: Likewise.
51713         * lib/free.c: Likewise.
51714         * lib/freopen.c: Likewise.
51715         * lib/frexp.c: Likewise.
51716         * lib/frexpl.c: Likewise.
51717         * lib/fseek.c: Likewise.
51718         * lib/fseterr.c: Likewise.
51719         * lib/fseterr.h: Likewise.
51720         * lib/fstatat.c: Likewise.
51721         * lib/fstrcmp.c: Likewise.
51722         * lib/fstrcmp.h: Likewise.
51723         * lib/fsusage.c: Likewise.
51724         * lib/fsusage.h: Likewise.
51725         * lib/ftell.c: Likewise.
51726         * lib/ftello.c: Likewise.
51727         * lib/fts-cycle.c: Likewise.
51728         * lib/fts.c: Likewise.
51729         * lib/fts_.h: Likewise.
51730         * lib/full-read.c: Likewise.
51731         * lib/full-read.h: Likewise.
51732         * lib/full-write.c: Likewise.
51733         * lib/full-write.h: Likewise.
51734         * lib/fwritable.c: Likewise.
51735         * lib/fwritable.h: Likewise.
51736         * lib/fwriteerror.c: Likewise.
51737         * lib/fwriteerror.h: Likewise.
51738         * lib/fwriting.c: Likewise.
51739         * lib/fwriting.h: Likewise.
51740         * lib/gcd.c: Likewise.
51741         * lib/gcd.h: Likewise.
51742         * lib/getcwd.c: Likewise.
51743         * lib/getdate.h: Likewise.
51744         * lib/getdate.y: Likewise.
51745         * lib/getdomainname.c: Likewise.
51746         * lib/getdomainname.h: Likewise.
51747         * lib/getgroups.c: Likewise.
51748         * lib/gethostname.c: Likewise.
51749         * lib/gethrxtime.c: Likewise.
51750         * lib/gethrxtime.h: Likewise.
51751         * lib/getloadavg.c: Likewise.
51752         * lib/getndelim2.c: Likewise.
51753         * lib/getndelim2.h: Likewise.
51754         * lib/getnline.c: Likewise.
51755         * lib/getnline.h: Likewise.
51756         * lib/getopt.c: Likewise.
51757         * lib/getopt.in.h: Likewise.
51758         * lib/getopt1.c: Likewise.
51759         * lib/getopt_int.h: Likewise.
51760         * lib/getpagesize.h: Likewise.
51761         * lib/getsubopt.c: Likewise.
51762         * lib/gettime.c: Likewise.
51763         * lib/getugroups.c: Likewise.
51764         * lib/getugroups.h: Likewise.
51765         * lib/getusershell.c: Likewise.
51766         * lib/gl_anyavltree_list1.h: Likewise.
51767         * lib/gl_anyavltree_list2.h: Likewise.
51768         * lib/gl_anyhash_list1.h: Likewise.
51769         * lib/gl_anyhash_list2.h: Likewise.
51770         * lib/gl_anylinked_list1.h: Likewise.
51771         * lib/gl_anylinked_list2.h: Likewise.
51772         * lib/gl_anyrbtree_list1.h: Likewise.
51773         * lib/gl_anyrbtree_list2.h: Likewise.
51774         * lib/gl_anytree_list1.h: Likewise.
51775         * lib/gl_anytree_list2.h: Likewise.
51776         * lib/gl_anytree_oset.h: Likewise.
51777         * lib/gl_anytreehash_list1.h: Likewise.
51778         * lib/gl_anytreehash_list2.h: Likewise.
51779         * lib/gl_array_list.c: Likewise.
51780         * lib/gl_array_list.h: Likewise.
51781         * lib/gl_array_oset.c: Likewise.
51782         * lib/gl_array_oset.h: Likewise.
51783         * lib/gl_avltree_list.c: Likewise.
51784         * lib/gl_avltree_list.h: Likewise.
51785         * lib/gl_avltree_oset.c: Likewise.
51786         * lib/gl_avltree_oset.h: Likewise.
51787         * lib/gl_avltreehash_list.c: Likewise.
51788         * lib/gl_avltreehash_list.h: Likewise.
51789         * lib/gl_carray_list.c: Likewise.
51790         * lib/gl_carray_list.h: Likewise.
51791         * lib/gl_linked_list.c: Likewise.
51792         * lib/gl_linked_list.h: Likewise.
51793         * lib/gl_linkedhash_list.c: Likewise.
51794         * lib/gl_linkedhash_list.h: Likewise.
51795         * lib/gl_list.c: Likewise.
51796         * lib/gl_list.h: Likewise.
51797         * lib/gl_oset.c: Likewise.
51798         * lib/gl_oset.h: Likewise.
51799         * lib/gl_rbtree_list.c: Likewise.
51800         * lib/gl_rbtree_list.h: Likewise.
51801         * lib/gl_rbtree_oset.c: Likewise.
51802         * lib/gl_rbtree_oset.h: Likewise.
51803         * lib/gl_rbtreehash_list.c: Likewise.
51804         * lib/gl_rbtreehash_list.h: Likewise.
51805         * lib/gl_sublist.c: Likewise.
51806         * lib/gl_sublist.h: Likewise.
51807         * lib/group-member.c: Likewise.
51808         * lib/group-member.h: Likewise.
51809         * lib/hard-locale.c: Likewise.
51810         * lib/hard-locale.h: Likewise.
51811         * lib/hash-pjw.c: Likewise.
51812         * lib/hash-pjw.h: Likewise.
51813         * lib/hash-triple.c: Likewise.
51814         * lib/hash.c: Likewise.
51815         * lib/hash.h: Likewise.
51816         * lib/human.c: Likewise.
51817         * lib/human.h: Likewise.
51818         * lib/i-ring.c: Likewise.
51819         * lib/i-ring.h: Likewise.
51820         * lib/idcache.c: Likewise.
51821         * lib/imaxabs.c: Likewise.
51822         * lib/imaxdiv.c: Likewise.
51823         * lib/inet_pton.c: Likewise.
51824         * lib/inet_pton.h: Likewise.
51825         * lib/intprops.h: Likewise.
51826         * lib/inttostr.c: Likewise.
51827         * lib/inttostr.h: Likewise.
51828         * lib/inttypes.in.h: Likewise.
51829         * lib/isapipe.c: Likewise.
51830         * lib/isdir.c: Likewise.
51831         * lib/isnan.c: Likewise.
51832         * lib/isnan.h: Likewise.
51833         * lib/isnanf.c: Likewise.
51834         * lib/isnanf.h: Likewise.
51835         * lib/isnanl-nolibm.h: Likewise.
51836         * lib/isnanl.c: Likewise.
51837         * lib/isnanl.h: Likewise.
51838         * lib/javacomp.c: Likewise.
51839         * lib/javacomp.h: Likewise.
51840         * lib/javaexec.c: Likewise.
51841         * lib/javaexec.h: Likewise.
51842         * lib/javaversion.c: Likewise.
51843         * lib/javaversion.h: Likewise.
51844         * lib/javaversion.java: Likewise.
51845         * lib/lbrkprop.h: Likewise.
51846         * lib/lchmod.h: Likewise.
51847         * lib/lchown.c: Likewise.
51848         * lib/ldexpl.c: Likewise.
51849         * lib/linebreak.c: Likewise.
51850         * lib/linebreak.h: Likewise.
51851         * lib/linebuffer.c: Likewise.
51852         * lib/linebuffer.h: Likewise.
51853         * lib/locale.in.h: Likewise.
51854         * lib/logl.c: Likewise.
51855         * lib/long-options.c: Likewise.
51856         * lib/long-options.h: Likewise.
51857         * lib/lstat.c: Likewise.
51858         * lib/lstat.h: Likewise.
51859         * lib/math.in.h: Likewise.
51860         * lib/mbchar.c: Likewise.
51861         * lib/mbchar.h: Likewise.
51862         * lib/mbfile.h: Likewise.
51863         * lib/mbiter.h: Likewise.
51864         * lib/mbscasecmp.c: Likewise.
51865         * lib/mbscasestr.c: Likewise.
51866         * lib/mbschr.c: Likewise.
51867         * lib/mbscspn.c: Likewise.
51868         * lib/mbslen.c: Likewise.
51869         * lib/mbsncasecmp.c: Likewise.
51870         * lib/mbsnlen.c: Likewise.
51871         * lib/mbspbrk.c: Likewise.
51872         * lib/mbspcasecmp.c: Likewise.
51873         * lib/mbsrchr.c: Likewise.
51874         * lib/mbssep.c: Likewise.
51875         * lib/mbsspn.c: Likewise.
51876         * lib/mbsstr.c: Likewise.
51877         * lib/mbstok_r.c: Likewise.
51878         * lib/mbswidth.c: Likewise.
51879         * lib/mbswidth.h: Likewise.
51880         * lib/mbuiter.h: Likewise.
51881         * lib/memcasecmp.c: Likewise.
51882         * lib/memcasecmp.h: Likewise.
51883         * lib/memchr.c: Likewise.
51884         * lib/memcmp.c: Likewise.
51885         * lib/memcoll.c: Likewise.
51886         * lib/memcoll.h: Likewise.
51887         * lib/memcpy.c: Likewise.
51888         * lib/memrchr.c: Likewise.
51889         * lib/mkancesdirs.c: Likewise.
51890         * lib/mkdir-p.c: Likewise.
51891         * lib/mkdir-p.h: Likewise.
51892         * lib/mkdir.c: Likewise.
51893         * lib/mkdirat.c: Likewise.
51894         * lib/mkdtemp.c: Likewise.
51895         * lib/mkstemp-safer.c: Likewise.
51896         * lib/mkstemp.c: Likewise.
51897         * lib/modechange.c: Likewise.
51898         * lib/modechange.h: Likewise.
51899         * lib/mountlist.c: Likewise.
51900         * lib/mountlist.h: Likewise.
51901         * lib/mpsort.c: Likewise.
51902         * lib/nanosleep.c: Likewise.
51903         * lib/obstack.c: Likewise.
51904         * lib/obstack.h: Likewise.
51905         * lib/open-safer.c: Likewise.
51906         * lib/open.c: Likewise.
51907         * lib/openat-die.c: Likewise.
51908         * lib/openat-priv.h: Likewise.
51909         * lib/openat-proc.c: Likewise.
51910         * lib/openat.c: Likewise.
51911         * lib/openat.h: Likewise.
51912         * lib/pagealign_alloc.c: Likewise.
51913         * lib/pagealign_alloc.h: Likewise.
51914         * lib/physmem.c: Likewise.
51915         * lib/physmem.h: Likewise.
51916         * lib/pipe-safer.c: Likewise.
51917         * lib/pipe.c: Likewise.
51918         * lib/pipe.h: Likewise.
51919         * lib/posixtm.c: Likewise.
51920         * lib/posixtm.h: Likewise.
51921         * lib/posixver.c: Likewise.
51922         * lib/printf-frexp.c: Likewise.
51923         * lib/printf-frexp.h: Likewise.
51924         * lib/printf-frexpl.c: Likewise.
51925         * lib/printf-frexpl.h: Likewise.
51926         * lib/printf.c: Likewise.
51927         * lib/progname.c: Likewise.
51928         * lib/progname.h: Likewise.
51929         * lib/progreloc.c: Likewise.
51930         * lib/putenv.c: Likewise.
51931         * lib/quote.c: Likewise.
51932         * lib/quote.h: Likewise.
51933         * lib/quotearg.c: Likewise.
51934         * lib/quotearg.h: Likewise.
51935         * lib/raise.c: Likewise.
51936         * lib/readline.c: Likewise.
51937         * lib/readline.h: Likewise.
51938         * lib/readlink.c: Likewise.
51939         * lib/readtokens.c: Likewise.
51940         * lib/readtokens.h: Likewise.
51941         * lib/readtokens0.c: Likewise.
51942         * lib/readtokens0.h: Likewise.
51943         * lib/readutmp.c: Likewise.
51944         * lib/readutmp.h: Likewise.
51945         * lib/realloc.c: Likewise.
51946         * lib/relocwrapper.c: Likewise.
51947         * lib/rename-dest-slash.c: Likewise.
51948         * lib/rename.c: Likewise.
51949         * lib/rmdir.c: Likewise.
51950         * lib/rpmatch.c: Likewise.
51951         * lib/safe-read.c: Likewise.
51952         * lib/safe-read.h: Likewise.
51953         * lib/safe-write.c: Likewise.
51954         * lib/safe-write.h: Likewise.
51955         * lib/same-inode.h: Likewise.
51956         * lib/same.c: Likewise.
51957         * lib/same.h: Likewise.
51958         * lib/save-cwd.c: Likewise.
51959         * lib/save-cwd.h: Likewise.
51960         * lib/savedir.c: Likewise.
51961         * lib/savedir.h: Likewise.
51962         * lib/savewd.c: Likewise.
51963         * lib/savewd.h: Likewise.
51964         * lib/search.in.h: Likewise.
51965         * lib/setenv.c: Likewise.
51966         * lib/setenv.h: Likewise.
51967         * lib/settime.c: Likewise.
51968         * lib/sh-quote.c: Likewise.
51969         * lib/sh-quote.h: Likewise.
51970         * lib/sig2str.c: Likewise.
51971         * lib/sig2str.h: Likewise.
51972         * lib/signal.in.h: Likewise.
51973         * lib/signbitd.c: Likewise.
51974         * lib/signbitf.c: Likewise.
51975         * lib/signbitl.c: Likewise.
51976         * lib/sigprocmask.c: Likewise.
51977         * lib/sincosl.c: Likewise.
51978         * lib/sleep.c: Likewise.
51979         * lib/sprintf.c: Likewise.
51980         * lib/sqrtl.c: Likewise.
51981         * lib/stat-time.h: Likewise.
51982         * lib/stdio--.h: Likewise.
51983         * lib/stdio-safer.h: Likewise.
51984         * lib/stdlib--.h: Likewise.
51985         * lib/stdlib-safer.h: Likewise.
51986         * lib/stdlib.in.h: Likewise.
51987         * lib/stpcpy.c: Likewise.
51988         * lib/stpncpy.c: Likewise.
51989         * lib/strchrnul.c: Likewise.
51990         * lib/strcspn.c: Likewise.
51991         * lib/strerror.c: Likewise.
51992         * lib/strftime.c: Likewise.
51993         * lib/strftime.h: Likewise.
51994         * lib/striconveh.c: Likewise.
51995         * lib/striconveh.h: Likewise.
51996         * lib/striconveha.c: Likewise.
51997         * lib/striconveha.h: Likewise.
51998         * lib/stripslash.c: Likewise.
51999         * lib/strnlen1.c: Likewise.
52000         * lib/strnlen1.h: Likewise.
52001         * lib/strtod.c: Likewise.
52002         * lib/strtoimax.c: Likewise.
52003         * lib/strtok_r.c: Likewise.
52004         * lib/strtol.c: Likewise.
52005         * lib/strtoll.c: Likewise.
52006         * lib/strtoul.c: Likewise.
52007         * lib/strtoull.c: Likewise.
52008         * lib/sysexits.in.h: Likewise.
52009         * lib/tempname.c: Likewise.
52010         * lib/tempname.h: Likewise.
52011         * lib/timespec.h: Likewise.
52012         * lib/tls.c: Likewise.
52013         * lib/tls.h: Likewise.
52014         * lib/tmpdir.c: Likewise.
52015         * lib/tmpdir.h: Likewise.
52016         * lib/tmpfile-safer.c: Likewise.
52017         * lib/tmpfile.c: Likewise.
52018         * lib/trigl.c: Likewise.
52019         * lib/trigl.h: Likewise.
52020         * lib/trim.c: Likewise.
52021         * lib/trim.h: Likewise.
52022         * lib/trunc.c: Likewise.
52023         * lib/truncf.c: Likewise.
52024         * lib/truncl.c: Likewise.
52025         * lib/tsearch.c: Likewise.
52026         * lib/unicodeio.c: Likewise.
52027         * lib/unicodeio.h: Likewise.
52028         * lib/unistd--.h: Likewise.
52029         * lib/unistd-safer.h: Likewise.
52030         * lib/unistdio/ulc-fprintf.c: Likewise.
52031         * lib/unistdio/ulc-vfprintf.c: Likewise.
52032         * lib/unlinkdir.c: Likewise.
52033         * lib/unlinkdir.h: Likewise.
52034         * lib/unlocked-io.h: Likewise.
52035         * lib/unsetenv.c: Likewise.
52036         * lib/userspec.c: Likewise.
52037         * lib/utime.c: Likewise.
52038         * lib/utimecmp.c: Likewise.
52039         * lib/utimecmp.h: Likewise.
52040         * lib/utimens.c: Likewise.
52041         * lib/verify.h: Likewise.
52042         * lib/verror.c: Likewise.
52043         * lib/verror.h: Likewise.
52044         * lib/version-etc-fsf.c: Likewise.
52045         * lib/version-etc.c: Likewise.
52046         * lib/version-etc.h: Likewise.
52047         * lib/vfprintf.c: Likewise.
52048         * lib/vprintf.c: Likewise.
52049         * lib/vsprintf.c: Likewise.
52050         * lib/w32spawn.h: Likewise.
52051         * lib/wait-process.c: Likewise.
52052         * lib/wait-process.h: Likewise.
52053         * lib/wcwidth.c: Likewise.
52054         * lib/write-any-file.c: Likewise.
52055         * lib/xalloc-die.c: Likewise.
52056         * lib/xalloc.h: Likewise.
52057         * lib/xasprintf.c: Likewise.
52058         * lib/xgetcwd.c: Likewise.
52059         * lib/xgetcwd.h: Likewise.
52060         * lib/xgetdomainname.c: Likewise.
52061         * lib/xgetdomainname.h: Likewise.
52062         * lib/xgethostname.c: Likewise.
52063         * lib/xmalloc.c: Likewise.
52064         * lib/xmalloca.c: Likewise.
52065         * lib/xmalloca.h: Likewise.
52066         * lib/xmemcoll.c: Likewise.
52067         * lib/xnanosleep.c: Likewise.
52068         * lib/xreadlink.c: Likewise.
52069         * lib/xreadlink.h: Likewise.
52070         * lib/xsetenv.c: Likewise.
52071         * lib/xsetenv.h: Likewise.
52072         * lib/xstriconv.c: Likewise.
52073         * lib/xstriconv.h: Likewise.
52074         * lib/xstrndup.c: Likewise.
52075         * lib/xstrndup.h: Likewise.
52076         * lib/xstrtod.c: Likewise.
52077         * lib/xstrtod.h: Likewise.
52078         * lib/xstrtol-error.c: Likewise.
52079         * lib/xstrtol.c: Likewise.
52080         * lib/xstrtol.h: Likewise.
52081         * lib/xtime.h: Likewise.
52082         * lib/xvasprintf.c: Likewise.
52083         * lib/xvasprintf.h: Likewise.
52084         * lib/yesno.c: Likewise.
52085         * lib/yesno.h: Likewise.
52086         * posix-modules: Likewise.
52087         * tests/test-alloca-opt.c: Likewise.
52088         * tests/test-arcfour.c: Likewise.
52089         * tests/test-arctwo.c: Likewise.
52090         * tests/test-argmatch.c: Likewise.
52091         * tests/test-argp-2.sh: Likewise.
52092         * tests/test-argp.c: Likewise.
52093         * tests/test-arpa_inet.c: Likewise.
52094         * tests/test-array_list.c: Likewise.
52095         * tests/test-array_oset.c: Likewise.
52096         * tests/test-atexit.c: Likewise.
52097         * tests/test-avltree_list.c: Likewise.
52098         * tests/test-avltree_oset.c: Likewise.
52099         * tests/test-avltreehash_list.c: Likewise.
52100         * tests/test-base64.c: Likewise.
52101         * tests/test-binary-io.c: Likewise.
52102         * tests/test-byteswap.c: Likewise.
52103         * tests/test-c-ctype.c: Likewise.
52104         * tests/test-c-strcasecmp.c: Likewise.
52105         * tests/test-c-strcasestr.c: Likewise.
52106         * tests/test-c-strncasecmp.c: Likewise.
52107         * tests/test-c-strstr.c: Likewise.
52108         * tests/test-canonicalize-lgpl.c: Likewise.
52109         * tests/test-canonicalize.c: Likewise.
52110         * tests/test-carray_list.c: Likewise.
52111         * tests/test-ceilf.c: Likewise.
52112         * tests/test-ceill.c: Likewise.
52113         * tests/test-count-one-bits.c: Likewise.
52114         * tests/test-crc.c: Likewise.
52115         * tests/test-dirname.c: Likewise.
52116         * tests/test-fbufmode.c: Likewise.
52117         * tests/test-fcntl.c: Likewise.
52118         * tests/test-fflush.c: Likewise.
52119         * tests/test-floorf.c: Likewise.
52120         * tests/test-floorl.c: Likewise.
52121         * tests/test-fopen.c: Likewise.
52122         * tests/test-fprintf-posix.c: Likewise.
52123         * tests/test-fprintf-posix.h: Likewise.
52124         * tests/test-fpurge.c: Likewise.
52125         * tests/test-freadable.c: Likewise.
52126         * tests/test-freadahead.c: Likewise.
52127         * tests/test-freading.c: Likewise.
52128         * tests/test-freopen.c: Likewise.
52129         * tests/test-frexp.c: Likewise.
52130         * tests/test-frexpl.c: Likewise.
52131         * tests/test-fseek.c: Likewise.
52132         * tests/test-fseeko.c: Likewise.
52133         * tests/test-fseterr.c: Likewise.
52134         * tests/test-fstrcmp.c: Likewise.
52135         * tests/test-ftell.c: Likewise.
52136         * tests/test-ftello.c: Likewise.
52137         * tests/test-fwritable.c: Likewise.
52138         * tests/test-fwriting.c: Likewise.
52139         * tests/test-getaddrinfo.c: Likewise.
52140         * tests/test-getpass.c: Likewise.
52141         * tests/test-gettimeofday.c: Likewise.
52142         * tests/test-hmac-md5.c: Likewise.
52143         * tests/test-hmac-sha1.c: Likewise.
52144         * tests/test-iconv.c: Likewise.
52145         * tests/test-iconvme.c: Likewise.
52146         * tests/test-inttypes.c: Likewise.
52147         * tests/test-isnan.c: Likewise.
52148         * tests/test-isnanf.c: Likewise.
52149         * tests/test-isnanl-nolibm.c: Likewise.
52150         * tests/test-isnanl.c: Likewise.
52151         * tests/test-isnanl.h: Likewise.
52152         * tests/test-ldexpl.c: Likewise.
52153         * tests/test-linked_list.c: Likewise.
52154         * tests/test-linkedhash_list.c: Likewise.
52155         * tests/test-locale.c: Likewise.
52156         * tests/test-localename.c: Likewise.
52157         * tests/test-lock.c: Likewise.
52158         * tests/test-lseek.c: Likewise.
52159         * tests/test-malloca.c: Likewise.
52160         * tests/test-math.c: Likewise.
52161         * tests/test-mbscasecmp.c: Likewise.
52162         * tests/test-mbscasestr1.c: Likewise.
52163         * tests/test-mbscasestr2.c: Likewise.
52164         * tests/test-mbscasestr3.c: Likewise.
52165         * tests/test-mbscasestr4.c: Likewise.
52166         * tests/test-mbschr.c: Likewise.
52167         * tests/test-mbscspn.c: Likewise.
52168         * tests/test-mbsncasecmp.c: Likewise.
52169         * tests/test-mbspbrk.c: Likewise.
52170         * tests/test-mbspcasecmp.c: Likewise.
52171         * tests/test-mbsrchr.c: Likewise.
52172         * tests/test-mbsspn.c: Likewise.
52173         * tests/test-mbsstr1.c: Likewise.
52174         * tests/test-mbsstr2.c: Likewise.
52175         * tests/test-mbsstr3.c: Likewise.
52176         * tests/test-md5.c: Likewise.
52177         * tests/test-memmem.c: Likewise.
52178         * tests/test-netinet_in.c: Likewise.
52179         * tests/test-open.c: Likewise.
52180         * tests/test-printf-frexp.c: Likewise.
52181         * tests/test-printf-frexpl.c: Likewise.
52182         * tests/test-printf-posix.c: Likewise.
52183         * tests/test-printf-posix.h: Likewise.
52184         * tests/test-rbtree_list.c: Likewise.
52185         * tests/test-rbtree_oset.c: Likewise.
52186         * tests/test-rbtreehash_list.c: Likewise.
52187         * tests/test-read-file.c: Likewise.
52188         * tests/test-rijndael.c: Likewise.
52189         * tests/test-search.c: Likewise.
52190         * tests/test-signbit.c: Likewise.
52191         * tests/test-sleep.c: Likewise.
52192         * tests/test-snprintf-posix.c: Likewise.
52193         * tests/test-snprintf-posix.h: Likewise.
52194         * tests/test-snprintf.c: Likewise.
52195         * tests/test-sprintf-posix.c: Likewise.
52196         * tests/test-sprintf-posix.h: Likewise.
52197         * tests/test-stat-time.c: Likewise.
52198         * tests/test-stdbool.c: Likewise.
52199         * tests/test-stdint.c: Likewise.
52200         * tests/test-stdio.c: Likewise.
52201         * tests/test-stdlib.c: Likewise.
52202         * tests/test-stpncpy.c: Likewise.
52203         * tests/test-strcasestr.c: Likewise.
52204         * tests/test-striconv.c: Likewise.
52205         * tests/test-striconveh.c: Likewise.
52206         * tests/test-striconveha.c: Likewise.
52207         * tests/test-string.c: Likewise.
52208         * tests/test-sys_select.c: Likewise.
52209         * tests/test-sys_socket.c: Likewise.
52210         * tests/test-sys_stat.c: Likewise.
52211         * tests/test-sys_time.c: Likewise.
52212         * tests/test-sysexits.c: Likewise.
52213         * tests/test-time.c: Likewise.
52214         * tests/test-tls.c: Likewise.
52215         * tests/test-trunc.c: Likewise.
52216         * tests/test-truncf.c: Likewise.
52217         * tests/test-truncl.c: Likewise.
52218         * tests/test-unistd.c: Likewise.
52219         * tests/test-vasnprintf-posix.c: Likewise.
52220         * tests/test-vasnprintf-posix2.c: Likewise.
52221         * tests/test-vasnprintf.c: Likewise.
52222         * tests/test-vasprintf-posix.c: Likewise.
52223         * tests/test-vasprintf.c: Likewise.
52224         * tests/test-verify.c: Likewise.
52225         * tests/test-vfprintf-posix.c: Likewise.
52226         * tests/test-vprintf-posix.c: Likewise.
52227         * tests/test-vsnprintf-posix.c: Likewise.
52228         * tests/test-vsnprintf.c: Likewise.
52229         * tests/test-vsprintf-posix.c: Likewise.
52230         * tests/test-wchar.c: Likewise.
52231         * tests/test-wctype.c: Likewise.
52232         * tests/test-wcwidth.c: Likewise.
52233         * tests/test-xstrtol.c: Likewise.
52234         * tests/test-xvasprintf.c: Likewise.
52235         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52236         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52237         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52238         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52239         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52240         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52241         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52242         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52243         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52244         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52245         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52246         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52247         * tests/uniname/test-uninames.c: Likewise.
52248         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52249         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52250         * tests/unistdio/test-u16-printf1.h: Likewise.
52251         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52252         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52253         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52254         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52255         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52256         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52257         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52258         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52259         * tests/unistdio/test-u32-printf1.h: Likewise.
52260         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52261         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52262         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52263         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52264         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52265         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52266         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52267         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52268         * tests/unistdio/test-u8-printf1.h: Likewise.
52269         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52270         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52271         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52272         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52273         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52274         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52275         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52276         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52277         * tests/unistdio/test-ulc-printf1.h: Likewise.
52278         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52279         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52280         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52281         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52282         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52283         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52284         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52285         * tests/uniwidth/test-u16-width.c: Likewise.
52286         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52287         * tests/uniwidth/test-u32-width.c: Likewise.
52288         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52289         * tests/uniwidth/test-u8-width.c: Likewise.
52290         * tests/uniwidth/test-uc_width.c: Likewise.
52291         * config/srclist-update: Likewise.
52292         (fixlicense): Update to GPLv3+.
52293
52294         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52295         * tests/test-tsearch.c: Change copyright notice.
52296
52297         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52298         * lib/c-strcaseeq.h: Change copyright notice.
52299         * lib/streq.h: Likewise.
52300         * lib/uniconv.h: Likewise.
52301         * lib/uniconv/u-conv-from-enc.h: Likewise.
52302         * lib/uniconv/u-conv-to-enc.h: Likewise.
52303         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52304         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52305         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52306         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52307         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52308         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52309         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52310         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52311         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52312         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52313         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52314         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52315         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52316         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52317         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52318         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52319         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52320         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52321         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52322         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52323         * lib/uniname.h: Likewise.
52324         * lib/uniname/uniname.c: Likewise.
52325         * lib/unistdio.h: Likewise.
52326         * lib/unistdio/u-asnprintf.h: Likewise.
52327         * lib/unistdio/u-asprintf.h: Likewise.
52328         * lib/unistdio/u-printf-args.c: Likewise.
52329         * lib/unistdio/u-printf-args.h: Likewise.
52330         * lib/unistdio/u-printf-parse.h: Likewise.
52331         * lib/unistdio/u-snprintf.h: Likewise.
52332         * lib/unistdio/u-sprintf.h: Likewise.
52333         * lib/unistdio/u-vasprintf.h: Likewise.
52334         * lib/unistdio/u-vsnprintf.h: Likewise.
52335         * lib/unistdio/u-vsprintf.h: Likewise.
52336         * lib/unistdio/u16-asnprintf.c: Likewise.
52337         * lib/unistdio/u16-asprintf.c: Likewise.
52338         * lib/unistdio/u16-printf-parse.c: Likewise.
52339         * lib/unistdio/u16-snprintf.c: Likewise.
52340         * lib/unistdio/u16-sprintf.c: Likewise.
52341         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52342         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52343         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52344         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52345         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52346         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52347         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52348         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52349         * lib/unistdio/u16-vasnprintf.c: Likewise.
52350         * lib/unistdio/u16-vasprintf.c: Likewise.
52351         * lib/unistdio/u16-vsnprintf.c: Likewise.
52352         * lib/unistdio/u16-vsprintf.c: Likewise.
52353         * lib/unistdio/u32-asnprintf.c: Likewise.
52354         * lib/unistdio/u32-asprintf.c: Likewise.
52355         * lib/unistdio/u32-printf-parse.c: Likewise.
52356         * lib/unistdio/u32-snprintf.c: Likewise.
52357         * lib/unistdio/u32-sprintf.c: Likewise.
52358         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52359         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52360         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52361         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52362         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52363         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52364         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52365         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52366         * lib/unistdio/u32-vasnprintf.c: Likewise.
52367         * lib/unistdio/u32-vasprintf.c: Likewise.
52368         * lib/unistdio/u32-vsnprintf.c: Likewise.
52369         * lib/unistdio/u32-vsprintf.c: Likewise.
52370         * lib/unistdio/u8-asnprintf.c: Likewise.
52371         * lib/unistdio/u8-asprintf.c: Likewise.
52372         * lib/unistdio/u8-printf-parse.c: Likewise.
52373         * lib/unistdio/u8-snprintf.c: Likewise.
52374         * lib/unistdio/u8-sprintf.c: Likewise.
52375         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52376         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52377         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52378         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52379         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52380         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52381         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52382         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52383         * lib/unistdio/u8-vasnprintf.c: Likewise.
52384         * lib/unistdio/u8-vasprintf.c: Likewise.
52385         * lib/unistdio/u8-vsnprintf.c: Likewise.
52386         * lib/unistdio/u8-vsprintf.c: Likewise.
52387         * lib/unistdio/ulc-asnprintf.c: Likewise.
52388         * lib/unistdio/ulc-asprintf.c: Likewise.
52389         * lib/unistdio/ulc-printf-parse.c: Likewise.
52390         * lib/unistdio/ulc-snprintf.c: Likewise.
52391         * lib/unistdio/ulc-sprintf.c: Likewise.
52392         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52393         * lib/unistdio/ulc-vasprintf.c: Likewise.
52394         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52395         * lib/unistdio/ulc-vsprintf.c: Likewise.
52396         * lib/unistr.h: Likewise.
52397         * lib/unistr/u-cpy-alloc.h: Likewise.
52398         * lib/unistr/u-cpy.h: Likewise.
52399         * lib/unistr/u-endswith.h: Likewise.
52400         * lib/unistr/u-move.h: Likewise.
52401         * lib/unistr/u-set.h: Likewise.
52402         * lib/unistr/u-startswith.h: Likewise.
52403         * lib/unistr/u-stpcpy.h: Likewise.
52404         * lib/unistr/u-stpncpy.h: Likewise.
52405         * lib/unistr/u-strcat.h: Likewise.
52406         * lib/unistr/u-strcpy.h: Likewise.
52407         * lib/unistr/u-strcspn.h: Likewise.
52408         * lib/unistr/u-strdup.h: Likewise.
52409         * lib/unistr/u-strlen.h: Likewise.
52410         * lib/unistr/u-strncat.h: Likewise.
52411         * lib/unistr/u-strncpy.h: Likewise.
52412         * lib/unistr/u-strnlen.h: Likewise.
52413         * lib/unistr/u-strpbrk.h: Likewise.
52414         * lib/unistr/u-strspn.h: Likewise.
52415         * lib/unistr/u-strstr.h: Likewise.
52416         * lib/unistr/u-strtok.h: Likewise.
52417         * lib/unistr/u16-check.c: Likewise.
52418         * lib/unistr/u16-chr.c: Likewise.
52419         * lib/unistr/u16-cmp.c: Likewise.
52420         * lib/unistr/u16-cpy-alloc.c: Likewise.
52421         * lib/unistr/u16-cpy.c: Likewise.
52422         * lib/unistr/u16-endswith.c: Likewise.
52423         * lib/unistr/u16-mblen.c: Likewise.
52424         * lib/unistr/u16-mbsnlen.c: Likewise.
52425         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52426         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52427         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52428         * lib/unistr/u16-mbtouc.c: Likewise.
52429         * lib/unistr/u16-mbtoucr.c: Likewise.
52430         * lib/unistr/u16-move.c: Likewise.
52431         * lib/unistr/u16-next.c: Likewise.
52432         * lib/unistr/u16-prev.c: Likewise.
52433         * lib/unistr/u16-set.c: Likewise.
52434         * lib/unistr/u16-startswith.c: Likewise.
52435         * lib/unistr/u16-stpcpy.c: Likewise.
52436         * lib/unistr/u16-stpncpy.c: Likewise.
52437         * lib/unistr/u16-strcat.c: Likewise.
52438         * lib/unistr/u16-strchr.c: Likewise.
52439         * lib/unistr/u16-strcmp.c: Likewise.
52440         * lib/unistr/u16-strcpy.c: Likewise.
52441         * lib/unistr/u16-strcspn.c: Likewise.
52442         * lib/unistr/u16-strdup.c: Likewise.
52443         * lib/unistr/u16-strlen.c: Likewise.
52444         * lib/unistr/u16-strmblen.c: Likewise.
52445         * lib/unistr/u16-strmbtouc.c: Likewise.
52446         * lib/unistr/u16-strncat.c: Likewise.
52447         * lib/unistr/u16-strncmp.c: Likewise.
52448         * lib/unistr/u16-strncpy.c: Likewise.
52449         * lib/unistr/u16-strnlen.c: Likewise.
52450         * lib/unistr/u16-strpbrk.c: Likewise.
52451         * lib/unistr/u16-strrchr.c: Likewise.
52452         * lib/unistr/u16-strspn.c: Likewise.
52453         * lib/unistr/u16-strstr.c: Likewise.
52454         * lib/unistr/u16-strtok.c: Likewise.
52455         * lib/unistr/u16-to-u32.c: Likewise.
52456         * lib/unistr/u16-to-u8.c: Likewise.
52457         * lib/unistr/u16-uctomb-aux.c: Likewise.
52458         * lib/unistr/u16-uctomb.c: Likewise.
52459         * lib/unistr/u32-check.c: Likewise.
52460         * lib/unistr/u32-chr.c: Likewise.
52461         * lib/unistr/u32-cmp.c: Likewise.
52462         * lib/unistr/u32-cpy-alloc.c: Likewise.
52463         * lib/unistr/u32-cpy.c: Likewise.
52464         * lib/unistr/u32-endswith.c: Likewise.
52465         * lib/unistr/u32-mblen.c: Likewise.
52466         * lib/unistr/u32-mbsnlen.c: Likewise.
52467         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52468         * lib/unistr/u32-mbtouc.c: Likewise.
52469         * lib/unistr/u32-mbtoucr.c: Likewise.
52470         * lib/unistr/u32-move.c: Likewise.
52471         * lib/unistr/u32-next.c: Likewise.
52472         * lib/unistr/u32-prev.c: Likewise.
52473         * lib/unistr/u32-set.c: Likewise.
52474         * lib/unistr/u32-startswith.c: Likewise.
52475         * lib/unistr/u32-stpcpy.c: Likewise.
52476         * lib/unistr/u32-stpncpy.c: Likewise.
52477         * lib/unistr/u32-strcat.c: Likewise.
52478         * lib/unistr/u32-strchr.c: Likewise.
52479         * lib/unistr/u32-strcmp.c: Likewise.
52480         * lib/unistr/u32-strcpy.c: Likewise.
52481         * lib/unistr/u32-strcspn.c: Likewise.
52482         * lib/unistr/u32-strdup.c: Likewise.
52483         * lib/unistr/u32-strlen.c: Likewise.
52484         * lib/unistr/u32-strmblen.c: Likewise.
52485         * lib/unistr/u32-strmbtouc.c: Likewise.
52486         * lib/unistr/u32-strncat.c: Likewise.
52487         * lib/unistr/u32-strncmp.c: Likewise.
52488         * lib/unistr/u32-strncpy.c: Likewise.
52489         * lib/unistr/u32-strnlen.c: Likewise.
52490         * lib/unistr/u32-strpbrk.c: Likewise.
52491         * lib/unistr/u32-strrchr.c: Likewise.
52492         * lib/unistr/u32-strspn.c: Likewise.
52493         * lib/unistr/u32-strstr.c: Likewise.
52494         * lib/unistr/u32-strtok.c: Likewise.
52495         * lib/unistr/u32-to-u16.c: Likewise.
52496         * lib/unistr/u32-to-u8.c: Likewise.
52497         * lib/unistr/u32-uctomb.c: Likewise.
52498         * lib/unistr/u8-check.c: Likewise.
52499         * lib/unistr/u8-chr.c: Likewise.
52500         * lib/unistr/u8-cmp.c: Likewise.
52501         * lib/unistr/u8-cpy-alloc.c: Likewise.
52502         * lib/unistr/u8-cpy.c: Likewise.
52503         * lib/unistr/u8-endswith.c: Likewise.
52504         * lib/unistr/u8-mblen.c: Likewise.
52505         * lib/unistr/u8-mbsnlen.c: Likewise.
52506         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52507         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52508         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52509         * lib/unistr/u8-mbtouc.c: Likewise.
52510         * lib/unistr/u8-mbtoucr.c: Likewise.
52511         * lib/unistr/u8-move.c: Likewise.
52512         * lib/unistr/u8-next.c: Likewise.
52513         * lib/unistr/u8-prev.c: Likewise.
52514         * lib/unistr/u8-set.c: Likewise.
52515         * lib/unistr/u8-startswith.c: Likewise.
52516         * lib/unistr/u8-stpcpy.c: Likewise.
52517         * lib/unistr/u8-stpncpy.c: Likewise.
52518         * lib/unistr/u8-strcat.c: Likewise.
52519         * lib/unistr/u8-strchr.c: Likewise.
52520         * lib/unistr/u8-strcmp.c: Likewise.
52521         * lib/unistr/u8-strcpy.c: Likewise.
52522         * lib/unistr/u8-strcspn.c: Likewise.
52523         * lib/unistr/u8-strdup.c: Likewise.
52524         * lib/unistr/u8-strlen.c: Likewise.
52525         * lib/unistr/u8-strmblen.c: Likewise.
52526         * lib/unistr/u8-strmbtouc.c: Likewise.
52527         * lib/unistr/u8-strncat.c: Likewise.
52528         * lib/unistr/u8-strncmp.c: Likewise.
52529         * lib/unistr/u8-strncpy.c: Likewise.
52530         * lib/unistr/u8-strnlen.c: Likewise.
52531         * lib/unistr/u8-strpbrk.c: Likewise.
52532         * lib/unistr/u8-strrchr.c: Likewise.
52533         * lib/unistr/u8-strspn.c: Likewise.
52534         * lib/unistr/u8-strstr.c: Likewise.
52535         * lib/unistr/u8-strtok.c: Likewise.
52536         * lib/unistr/u8-to-u16.c: Likewise.
52537         * lib/unistr/u8-to-u32.c: Likewise.
52538         * lib/unistr/u8-uctomb-aux.c: Likewise.
52539         * lib/unistr/u8-uctomb.c: Likewise.
52540         * lib/unitypes.h: Likewise.
52541         * lib/uniwidth.h: Likewise.
52542         * lib/uniwidth/cjk.h: Likewise.
52543         * lib/uniwidth/u16-strwidth.c: Likewise.
52544         * lib/uniwidth/u16-width.c: Likewise.
52545         * lib/uniwidth/u32-strwidth.c: Likewise.
52546         * lib/uniwidth/u32-width.c: Likewise.
52547         * lib/uniwidth/u8-strwidth.c: Likewise.
52548         * lib/uniwidth/u8-width.c: Likewise.
52549         * lib/uniwidth/width.c: Likewise.
52550
52551 2007-10-07  Bruno Haible  <bruno@clisp.org>
52552
52553         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52554         The file is still under LGPL (see modules/inttypes).
52555
52556 2007-10-06  Bruno Haible  <bruno@clisp.org>
52557
52558         * modules/trunc (Dependencies): Add 'extensions'.
52559         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52560         Reported by Ben Pfaff <blp@gnu.org>.
52561
52562 2007-10-06  Bruno Haible  <bruno@clisp.org>
52563
52564         * modules/freopen-tests: New file.
52565         * tests/test-freopen.c: New file.
52566
52567         * modules/fopen-tests: New file.
52568         * tests/test-fopen.c: New file.
52569
52570         * modules/fopen: New file.
52571         * lib/fopen.c: New file.
52572         * m4/fopen.m4: New file.
52573         * modules/freopen: New file.
52574         * lib/freopen.c: New file.
52575         * m4/freopen.m4: New file.
52576         * lib/stdio.in.h (fopen, freopen): New declarations.
52577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52578         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52579         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52580         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52581         * doc/functions/fopen.texi: Mention the 'fopen' module.
52582         * doc/functions/freopen.texi: Mention the 'freopen' module.
52583
52584 2007-10-06  Bruno Haible  <bruno@clisp.org>
52585
52586         * modules/open-tests: New file.
52587         * tests/test-open.c: New file.
52588
52589         * modules/open: New file.
52590         * lib/open.c: New file.
52591         * m4/open.m4: New file.
52592         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52593         lib/open.c does.
52594         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52595         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52596         macros.
52597         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52598         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52599         REPLACE_OPEN.
52600         * doc/functions/open.texi: Mention the 'open' module.
52601
52602 2007-10-04  Bruno Haible  <bruno@clisp.org>
52603
52604         * modules/ceill-tests: New file.
52605         * tests/test-ceill.c: New file.
52606
52607         * modules/ceill: New file.
52608         * lib/ceill.c: Replace entire file.
52609         * m4/ceill.m4: New file.
52610         * lib/math.in.h (ceill): Replace declaration.
52611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52612         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52613         * doc/functions/ceill.texi: Mention the 'ceill' module.
52614         * modules/mathl (Files): Remove lib/ceill.c.
52615         (Depends-on): Add ceill.
52616
52617 2007-10-04  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/ceilf-tests: New file.
52620         * tests/test-ceilf.c: New file.
52621
52622         * modules/ceilf: New file.
52623         * lib/ceil.c: New file.
52624         * lib/ceilf.c: New file.
52625         * m4/ceilf.m4: New file.
52626         * lib/math.in.h (ceilf): New declaration.
52627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52628         HAVE_DECL_CEILF.
52629         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52630         HAVE_DECL_CEILF.
52631         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52632
52633 2007-10-04  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/floorl-tests: New file.
52636         * tests/test-floorl.c: New file.
52637
52638         * modules/floorl: New file.
52639         * lib/floorl.c: Replace entire file.
52640         * m4/floorl.m4: New file.
52641         * lib/math.in.h (floorl): Replace declaration.
52642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52643         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52644         * doc/functions/floorl.texi: Mention the 'floorl' module.
52645         * modules/mathl (Files): Remove lib/floorl.c.
52646         (Depends-on): Add floorl.
52647
52648 2007-10-04  Bruno Haible  <bruno@clisp.org>
52649
52650         * modules/floorf-tests: New file.
52651         * tests/test-floorf.c: New file.
52652
52653         * modules/floorf: New file.
52654         * lib/floor.c: New file.
52655         * lib/floorf.c: New file.
52656         * m4/floorf.m4: New file.
52657         * lib/math.in.h (floorf): New declaration.
52658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52659         HAVE_DECL_FLOORF.
52660         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52661         HAVE_DECL_FLOORF.
52662         * doc/functions/floorf.texi: Mention the 'floorf' module.
52663
52664 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52665             Bruno Haible  <bruno@clisp.org>
52666
52667         Advertise for the Git server instead of the CVS server.
52668         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52669         repository instead of the CVS one.
52670         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52671         about all VCS systems generically.
52672         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52673
52674 2007-10-04  Bruno Haible  <bruno@clisp.org>
52675
52676         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52677         means.
52678         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52679
52680 2007-10-04  Bruno Haible  <bruno@clisp.org>
52681
52682         * modules/truncl-tests: New file.
52683         * tests/test-truncl.c: New file.
52684
52685         * modules/truncl: New file.
52686         * lib/truncl.c: New file.
52687         * m4/truncl.m4: New file.
52688         * lib/math.in.h (truncl): New declaration.
52689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52690         HAVE_DECL_TRUNCL.
52691         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52692         HAVE_DECL_TRUNCL.
52693         * doc/functions/truncl.texi: Mention the 'truncl' module.
52694
52695 2007-10-04  Bruno Haible  <bruno@clisp.org>
52696
52697         * modules/truncf-tests: New file.
52698         * tests/test-truncf.c: New file.
52699
52700         * modules/truncf: New file.
52701         * lib/trunc.c: Make paramerizable through USE_* macros.
52702         * lib/truncf.c: New file.
52703         * m4/truncf.m4: New file.
52704         * lib/math.in.h (truncf): New declaration.
52705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52706         HAVE_DECL_TRUNCF.
52707         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52708         HAVE_DECL_TRUNCF.
52709         * doc/functions/truncf.texi: Mention the 'truncf' module.
52710
52711 2007-10-03  Bruno Haible  <bruno@clisp.org>
52712
52713         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52714         augmentation also for tests modules.
52715         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52716         * modules/atexit-tests (Makefile.am): Likewise.
52717         * modules/binary-io-tests (Makefile.am): Likewise.
52718         * modules/c-strcase-tests (Makefile.am): Likewise.
52719         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52720         * modules/canonicalize-tests (Makefile.am): Likewise.
52721         * modules/closein-tests (Makefile.am): Likewise.
52722         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52723         * modules/freadahead-tests (Makefile.am): Likewise.
52724         * modules/fseek-tests (Makefile.am): Likewise.
52725         * modules/fseeko-tests (Makefile.am): Likewise.
52726         * modules/ftell-tests (Makefile.am): Likewise.
52727         * modules/ftello-tests (Makefile.am): Likewise.
52728         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52729         * modules/isnanl-tests (Makefile.am): Likewise.
52730         * modules/lseek-tests (Makefile.am): Likewise.
52731         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52732         * modules/mbscasestr-tests (Makefile.am): Likewise.
52733         * modules/mbschr-tests (Makefile.am): Likewise.
52734         * modules/mbscspn-tests (Makefile.am): Likewise.
52735         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52736         * modules/mbspbrk-tests (Makefile.am): Likewise.
52737         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52738         * modules/mbsrchr-tests (Makefile.am): Likewise.
52739         * modules/mbsspn-tests (Makefile.am): Likewise.
52740         * modules/mbsstr-tests (Makefile.am): Likewise.
52741         * modules/printf-posix-tests (Makefile.am): Likewise.
52742         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52743         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52744         * modules/tsearch-tests (Makefile.am): Likewise.
52745         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52746         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52747         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52748         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52749         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52750         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52751         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52752         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52753         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52754         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52755         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52756         * modules/xstrtol-tests (Makefile.am): Likewise.
52757         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52758         * modules/yesno-tests (Makefile.am): Likewise.
52759
52760 2007-10-03  Bruno Haible  <bruno@clisp.org>
52761
52762         * modules/trunc-tests: New file.
52763         * tests/test-trunc.c: New file.
52764
52765         * modules/trunc: New file.
52766         * lib/trunc.c: New file.
52767         * m4/trunc.m4: New file.
52768         * lib/math.in.h (trunc): New declaration.
52769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52770         HAVE_DECL_TRUNC.
52771         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52772         HAVE_DECL_TRUNC.
52773         * doc/functions/trunc.texi: Mention the 'trunc' module.
52774
52775 2007-10-03  Bruno Haible  <bruno@clisp.org>
52776
52777         * tests/test-fpending.c: New file, mostly copied
52778         from coreutils/lib/t-fpending.c.
52779         * modules/fpending-tests: New file.
52780
52781 2007-10-03  Bruno Haible  <bruno@clisp.org>
52782
52783         Port the stdio extensions to QNX (untested).
52784         * lib/fseterr.c (fseterr): Add support for QNX.
52785         * lib/fbufmode.c (fbufmode): Likewise.
52786         * lib/freadable.c (freadable): Likewise.
52787         * lib/fwritable.c (fwritable): Likewise.
52788         * lib/freading.c (freading): Likewise.
52789         * lib/fwriting.c (fwriting): Likewise.
52790         * lib/freadahead.c (freadahed): Likewise.
52791         * lib/fpurge.c (fpurge): Likewise.
52792         * lib/fseeko.c (rpl_fseeko): Likewise.
52793
52794 2007-10-03  Bruno Haible  <bruno@clisp.org>
52795             Jim Meyering  <jim@meyering.net>
52796             Eric Blake  <ebb9@byu.net>
52797
52798         * doc/relocatable.texi: Use @command instead of @program.
52799
52800 2007-10-02  Jim Meyering  <jim@meyering.net>
52801
52802         Perform one more "_.h" -> ".in.h" substitution.
52803         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52804         instead of unistd_.h here, too.
52805
52806 2007-10-01  Bruno Haible  <bruno@clisp.org>
52807
52808         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52809         Needed for the alloca-opt module.
52810
52811 2007-09-30  Bruno Haible  <bruno@clisp.org>
52812
52813         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52814         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52815         alloca_.h.
52816         * lib/argz.in.h: Renamed from lib/argz_.h.
52817         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52818         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52819         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52820         byteswap_.h.
52821         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52822         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52823         dirent_.h.
52824         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52825         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52826         fcntl_.h.
52827         * lib/float.in.h: Renamed from lib/float_.h.
52828         * modules/float (Files, Makefile.am): Use float.in.h instead of
52829         float_.h.
52830         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52831         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52832         fnmatch_.h.
52833         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52834         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52835         getopt_.h.
52836         * lib/glob.in.h: Renamed from lib/glob_.h.
52837         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52838         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52839         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52840         iconv_.h.
52841         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52842         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52843         inttypes_.h.
52844         * lib/locale.in.h: Renamed from lib/locale_.h.
52845         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52846         locale_.h.
52847         * lib/math.in.h: Renamed from lib/math_.h.
52848         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52849         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52850         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52851         of netinet_in_.h. Add dependency.
52852         * lib/poll.in.h: Renamed from lib/poll_.h.
52853         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52854         * lib/search.in.h: Renamed from lib/search_.h.
52855         * modules/search (Files, Makefile.am): Use search.in.h instead of
52856         search_.h.
52857         * lib/signal.in.h: Renamed from lib/signal_.h.
52858         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52859         _signal.h.
52860         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52861         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52862         stdbool_.h.
52863         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52864         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52865         stdint_.h.
52866         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52867         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52868         stdio_.h.
52869         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52870         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52871         stdlib_.h.
52872         * lib/string.in.h: Renamed from lib/string_.h.
52873         * modules/string (Files, Makefile.am): Use string.in.h instead of
52874         string_.h.
52875         * doc/gnulib-tool.texi (Initial import): Update.
52876         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52877         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52878         of sys_select_.h. Add dependency.
52879         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52880         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52881         of sys_socket_.h.
52882         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52883         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52884         sys_stat_.h.
52885         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52886         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52887         sys_time_.h.
52888         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52889         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52890         sysexits_.h.
52891         * lib/time.in.h: Renamed from lib/time_.h.
52892         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52893         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52894         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52895         unistd_.h.
52896         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52897         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52898         wchar_.h.
52899         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52900         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52901         wctype_.h.
52902         * build-aux/bootstrap (slurp): Update.
52903         * lib/.cppi-disable: Update.
52904
52905 2007-09-30  Bruno Haible  <bruno@clisp.org>
52906
52907         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52908         Needed on BeOS.
52909
52910 2007-09-30  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52913
52914 2007-09-29  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52917
52918 2007-09-29  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52921         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52922         * build-aux/install-reloc: Compile also areadlink.c.
52923         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52924
52925 2007-09-29  Bruno Haible  <bruno@clisp.org>
52926
52927         * gnulib-tool (func_emit_initmacro_done): Indentation.
52928
52929 2007-09-29  Bruno Haible  <bruno@clisp.org>
52930
52931         * README: Add CVS checkout update instructions.
52932         Info from Bob Proulx <bob@proulx.com>.
52933
52934 2007-09-28  Eric Blake  <ebb9@byu.net>
52935
52936         Provide move-if-change.
52937         * build-aux/move-if-change: New file, based on best practice
52938         rather than any canonical upstream location.
52939
52940 2007-09-28  Jim Meyering  <jim@meyering.net>
52941
52942         Fix canonicalize loop-detection corner case.
52943         Do not attempt to stat the symlink values stored via seen_triple.
52944         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52945         on linux-2.6.18, (but not 2.6.22).
52946         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52947         triple_compare.  The former compares dev,ino,filename, while the latter
52948         would actually stat dirname(filename) when dev and ino were equal.
52949         * lib/hash-triple.c: Install <string.h>.
52950         (STREQ): Define.
52951         (triple_compare_ino_str): New function.
52952         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52953
52954 2007-09-28  Eric Blake  <ebb9@byu.net>
52955
52956         Enforce that AC_REPLACE_FUNCS files exist.
52957         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52958         override check for typos.
52959
52960         Fix test-closein on Solaris 10.
52961         * tests/test-closein.c (main): Don't assume stdin can be inherited
52962         closed on all systems.
52963         * tests/test-closein.sh: Likewise.
52964         Reported by Piotr Tarnowski.
52965
52966 2007-09-28  Jim Meyering  <jim@meyering.net>
52967
52968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52969
52970 2007-09-27  Jim Meyering  <jim@meyering.net>
52971
52972         canonicalize: Avoid a false-positive cycle failure.
52973         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52974         Sort.  Remove cycle-check.
52975         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52976         not cycle-check.h.
52977         (seen_triple): New function.
52978         (canonicalize_filename_mode): Use it instead of cycle-check.
52979         * tests/test-canonicalize.c: Add a test for this bug.
52980         * tests/test-canonicalize.sh: Set up and run the test.
52981
52982         New module, file-set, from coreutils.
52983         * modules/file-set: Define it.
52984         * lib/file-set.c, lib/file-set.h: Implement.
52985
52986         New module, hash-triple, from coreutils.
52987         * modules/hash-triple: Define it.
52988         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52989
52990 2007-09-25  Eric Blake  <ebb9@byu.net>
52991
52992         Fix strerror on Interix.
52993         * lib/string_.h (strerror): Declare replacement.
52994         * doc/functions/strerror.texi (strerror): Document the Interix
52995         shortcoming.
52996         * modules/string (Makefile.am): Support new hooks.
52997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52998         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52999         gl_FUNC_STRERROR_SEPARATE.
53000         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53001         * lib/strerror.c (rpl_strerror): Provide replacement.
53002         * modules/strerror (Depends-on): Add string.
53003         (configure.ac): Detect use of module.
53004         * tests/test-strerror.c: New file.
53005         * modules/strerror-tests: New test module.
53006         * modules/argp (Depends-on): Add strerror.
53007         * modules/error (Depends-on): Likewise.
53008         Reported by Martin Koeppe.
53009
53010 2007-09-24  Bruno Haible  <bruno@clisp.org>
53011
53012         * README: Update git instructions.
53013
53014 2007-09-24  Eric Blake  <ebb9@byu.net>
53015
53016         Revert fpending breakage from 2007-09-08.
53017         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53018         __fpending.c.
53019
53020 2007-09-24  Jim Meyering  <jim@meyering.net>
53021
53022         filenamecat.c: Add a test.
53023         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53024         showing how the function works when DIR is the empty string.
53025
53026 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53027
53028         * tests/test-canonicalize.sh: Turn on executable bit.
53029
53030 2007-09-19  Eric Blake  <ebb9@byu.net>
53031
53032         * README: Update CVS instructions.
53033
53034 2007-09-18  Bruno Haible  <bruno@clisp.org>
53035
53036         * modules/areadlink: New file.
53037         * lib/areadlink.h (areadlink): New declaration.
53038         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53039
53040 2007-09-17  Jim Meyering  <jim@meyering.net>
53041
53042         * lib/savewd.c (ESTALE) [!defined]: Define.
53043         Reported to be required on Interix by Martin Koeppe.
53044
53045 2007-09-17  Bruno Haible  <bruno@clisp.org>
53046
53047         * gnulib-tool (func_version): Use $version.
53048
53049 2007-09-16  Bruno Haible  <bruno@clisp.org>
53050
53051         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53052         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53053         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53054         Reported by Greg Schafer <gschafer@zip.com.au>.
53055
53056 2007-09-15  Bruno Haible  <bruno@clisp.org>
53057
53058         * gnulib-tool (sed): Try a little harder to make bash understand the
53059         alias.
53060         Reported by Bruce Korb <bruce.korb@gmail.com>.
53061
53062 2007-09-13  Eric Blake  <ebb9@byu.net>
53063
53064         * ChangeLog: Remove conflict markers.
53065
53066 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53067
53068         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53069         Reported by Bruno Haible <bruno@clisp.org>.
53070
53071 2007-09-12  Bruno Haible  <bruno@clisp.org>
53072
53073         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53074         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53075         is not defined.
53076
53077 2007-09-12  Eric Blake  <ebb9@byu.net>
53078
53079         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53080         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53081         Autoconf definition.
53082         * modules/euidaccess (Depends-on): Add extensions, for
53083         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53084         * modules/fnmatch (Depends-on): Likewise.
53085         * modules/getaddrinfo (Depends-on): Likewise.
53086         * modules/getdelim (Depends-on): Likewise.
53087         * modules/getline (Depends-on): Likewise.
53088         * modules/getsubopt (Depends-on): Likewise.
53089         * modules/gettext (Depends-on): Likewise.
53090         * modules/group-member (Depends-on): Likewise.
53091         * modules/mbchar (Depends-on): Likewise.
53092         * modules/memmem (Depends-on): Likewise.
53093         * modules/mempcpy (Depends-on): Likewise.
53094         * modules/memrchr (Depends-on): Likewise.
53095         * modules/pagealign_alloc (Depends-on): Likewise.
53096         * modules/readutmp (Depends-on): Likewise.
53097         * modules/stpcpy (Depends-on): Likewise.
53098         * modules/stpncpy (Depends-on): Likewise.
53099         * modules/strchrnul (Depends-on): Likewise.
53100         * modules/strndup (Depends-on): Likewise.
53101         * modules/strsep (Depends-on): Likewise.
53102         * modules/strverscmp (Depends-on): Likewise.
53103         * modules/vasprintf (Depends-on): Likewise.
53104         * modules/wcwidth (Depends-on): Likewise.
53105         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53106         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53107         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53109         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53110         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53111         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53112         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53113         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53114         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53115         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53116         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53117         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53119         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53120         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53121         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53122         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53123         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53126         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53127         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53128         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53129         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53131         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53132         so that lock.m4 can be used in gettext without extensions module.
53133
53134 2007-09-11  Bruno Haible  <bruno@clisp.org>
53135
53136         * m4/isc-posix.m4: Remove file.
53137         Suggested by Eric Blake.
53138
53139 2007-09-11  Eric Blake  <ebb9@byu.net>
53140
53141         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53142
53143 2007-09-10  Bruno Haible  <bruno@clisp.org>
53144
53145         * posix-modules: Fix typo in error message.
53146         Reported by Matt <mkraai@beckman.com>.
53147
53148 2007-09-09  Bruno Haible  <bruno@clisp.org>
53149
53150         * doc/functions/getdelim.texi: Update list of platforms lacking the
53151         function.
53152         * doc/functions/getline.texi: Likewise.
53153
53154 2007-09-09  Jim Meyering  <jim@meyering.net>
53155
53156         * lib/hash.c (hash_initialize): Detect calloc failure.
53157         Reported by Bruno Haible.
53158
53159 2007-09-09  Bruno Haible  <bruno@clisp.org>
53160
53161         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53162         malloc or realloc fails.
53163
53164 2007-09-09  Bruno Haible  <bruno@clisp.org>
53165
53166         * modules/getcwd (Depends-on): Add malloc-posix.
53167         * modules/glob (Depends-on): Likewise.
53168         * modules/putenv (Depends-on): Likewise.
53169         * modules/strdup (Depends-on): Likewise.
53170         * modules/getdelim (Depends-on): Add realloc-posix.
53171         * modules/read-file (Depends-on): Likewise.
53172
53173 2007-09-09  Bruno Haible  <bruno@clisp.org>
53174
53175         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53176         (gl_FUNC_MALLOC_POSIX): Require it.
53177         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53178         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53179         * modules/realloc (Files): Add m4/malloc.m4.
53180         * modules/calloc (Files): Likewise.
53181
53182 2007-09-09  Bruno Haible  <bruno@clisp.org>
53183
53184         * modules/malloc-posix: New file.
53185         * modules/malloc (Depends-on): Add malloc-posix.
53186         * lib/malloc.c: Include errno.h.
53187         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53188         and a POSIX-compatible malloc into a single function. Set ENOMEM
53189         when returning NULL.
53190         * m4/malloc.m4: New file.
53191         * doc/functions/malloc.texi: Mention the malloc-posix module.
53192         * lib/stdlib_.h (malloc): New declaration.
53193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53194         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53195         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53196         and HAVE_MALLOC_POSIX.
53197
53198 2007-09-09  Bruno Haible  <bruno@clisp.org>
53199
53200         * modules/realloc-posix: New file.
53201         * modules/realloc (Depends-on): Add realloc-posix.
53202         * lib/realloc.c: Include errno.h.
53203         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53204         and a POSIX-compatible realloc into a single function. Set ENOMEM
53205         when returning NULL.
53206         * m4/realloc.m4: New file.
53207         * doc/functions/realloc.texi: Mention the realloc-posix module.
53208         * lib/stdlib_.h (realloc): New declaration.
53209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53210         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53211         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53212         and HAVE_REALLOC_POSIX.
53213
53214 2007-09-09  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/calloc-posix: New file.
53217         * modules/calloc (Depends-on): Add calloc-posix.
53218         * lib/calloc.c: Include errno.h.
53219         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53220         and a POSIX-compatible calloc into a single function. Set ENOMEM
53221         when returning NULL.
53222         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53223         * doc/functions/calloc.texi: Mention the calloc-posix module.
53224         * lib/stdlib_.h (calloc): New declaration.
53225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53226         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53227         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53228         and HAVE_CALLOC_POSIX.
53229
53230 2007-09-09  Bruno Haible  <bruno@clisp.org>
53231
53232         Allow for modules to show an arbitrary notice.
53233         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53234         * gnulib-tool: New option --extract-notice.
53235         (func_usage): Document it.
53236         (sed_extract_prog): Update.
53237         (func_get_notice): New function.
53238         (func_modules_notice): New function.
53239         (func_import, func_create_testdir): Invoke it.
53240         Suggested by Jim Meyering.
53241
53242 2007-09-09  Bruno Haible  <bruno@clisp.org>
53243
53244         * gnulib-tool: New options --verbose, --quiet.
53245         (func_usage): Document them.
53246         (verbose): New variable.
53247         (func_execute_command): New function.
53248         (func_import): Don't show the module list and the file list if
53249         $verbose < 0.
53250         (func_create_testdir): Likewise. Use func_execute_command.
53251         (func_create_megatestdir): Use func_execute_command.
53252
53253 2007-09-08  Bruno Haible  <bruno@clisp.org>
53254
53255         * gnulib-tool (func_import): Prefer rsync over wget when available,
53256         for fetching the PO files.
53257
53258 2007-09-08  Bruno Haible  <bruno@clisp.org>
53259
53260         * posix-modules: New file. Portions copied from gnulib-tool.
53261         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53262
53263 2007-09-08  Jim Meyering  <jim@meyering.net>
53264
53265         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53266         * lib/fpending.h: Rename from __fpending.h.
53267         * lib/fpending.c: Rename from __fpending.c.
53268         Include "fpending.h", not "__fpending.h".
53269         * lib/__fpending.h, lib/__fpending.c: Remove files.
53270         * modules/fpending (Files): Reflect new file names.
53271         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53272
53273 2007-09-08  Bruno Haible  <bruno@clisp.org>
53274
53275         * m4/inttypes-h.m4: Remove stub file.
53276
53277 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53278
53279         * doc/headers/stdint.texi: Discuss #include_next issue.
53280
53281 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53284
53285 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53286
53287         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53288         in variable name.
53289
53290 2007-09-03  Jim Meyering  <jim@meyering.net>
53291
53292         New module: git-version-gen.
53293         * modules/git-version-gen: New file.
53294
53295         Import changes from coreutils for bootstrap script.
53296
53297         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53298
53299         bootstrap: uses rsync to download the .po files
53300         * build-aux/bootstrap (po_download_command_format): New global.
53301         (download_po_files): Use rsync.
53302         (update_po_files): Don't remove .po files after download,
53303         so future rsync runs can take advantage of the copies.
53304
53305         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53306
53307         Solve the unnecessary-.po-file-regeneration problem once and for all.
53308         * build-aux/bootstrap (download_po_files): New function, renamed from
53309         get_translations.  Now, downloads, but doesn't update LINGUAS.
53310         (update_po_files): New function.
53311
53312         bootstrap: Ignore more.
53313         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53314         uniwidth to e.g., lib/.gitignore.
53315         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53316
53317         * build-aux/bootstrap: New setting: vc_ignore.
53318         (insert_sorted_if_absent): Create $file if absent.
53319         Adapt to new, possibly empty, list: $vc_ignore.
53320
53321         bootstrap: generate more ignorable names
53322         * build-aux/bootstrap (slurp): When generating ignorable names,
53323         also map .sin to .sed, .gperf to .c, and .y to .c.
53324
53325 2007-09-03  Jim Meyering  <jim@meyering.net>
53326
53327         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53328         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53329
53330 2007-09-02  Bruno Haible  <bruno@clisp.org>
53331
53332         Fix mis-recognition of 'mcs' on QNX 6.
53333         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53334         output contains the string "Mono".
53335         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53336         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53337
53338 2007-09-01  Bruno Haible  <bruno@clisp.org>
53339
53340         Fix collision between uniwidth/* and linebreak modules.
53341         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53342         u32_width): Remove declarations.
53343         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53344         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53345         streq3, streq2, streq1, streq0): Remove functions.
53346         (STREQ): Remove macro.
53347         (is_cjk_encoding): Remove function.
53348         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53349         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53350         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53351         * NEWS: Document the change.
53352
53353 2007-09-01  Bruno Haible  <bruno@clisp.org>
53354
53355         * lib/streq.h: Add double-inclusion guard.
53356
53357 2007-09-01  Karl Berry  <karl@gnu.org>
53358
53359         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53360
53361 2007-08-28  Jim Meyering  <jim@meyering.net>
53362
53363         Rename mreadlink_with_size to areadlink_with_size.
53364         * NEWS: Document the change.
53365         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53366         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53367         * lib/mreadlink.h: Rename this to...
53368         * lib/areadlink.h: ...this.
53369         * modules/mreadlink-with-size: Rename this to...
53370         * modules/areadlink-with-size: ...this.
53371         * lib/canonicalize.c: Reflect the renaming.
53372         * modules/canonicalize: Likewise.
53373
53374 2007-08-26  Bruno Haible  <bruno@clisp.org>
53375
53376         * gnulib-tool (func_import): When deciding which files to remove,
53377         consider also dangling symbolic links.
53378         Reported by Eric Blake.
53379
53380 2007-08-26  Bruno Haible  <bruno@clisp.org>
53381
53382         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53383
53384 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53385
53386         * lib/readline.c: Don't include getline.h, the prototype is now
53387         found in stdio.h.
53388
53389 2007-08-23  Jim Meyering  <jim@meyering.net>
53390
53391         Getdelim touchup.
53392         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53393         around the funlockfile call, since funlockfile never sets errno.
53394         Don't set errno upon failed realloc.
53395
53396 2007-08-22  Eric Blake  <ebb9@byu.net>
53397
53398         Getline touchups.
53399         * lib/getdelim.c (getdelim): Revert regression that required *n to
53400         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53401         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53402         getdelim, rather than whether implementation is missing.
53403         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53404         * lib/stdio_.h (getline): Also declare if replacement is
53405         required.
53406         * doc/functions/getdelim.texi: New file.
53407         * doc/functions/getline.texi: Likewise.
53408         * doc/gnulib.texi (Function Substitutes): Add new files.
53409         Reported by Bruno Haible.
53410
53411 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53412
53413         * users.txt: Add Guile.
53414
53415 2007-08-22  Eric Blake  <ebb9@byu.net>
53416
53417         * tests/test-getdelim.c (main): Use remove, not unlink.
53418         * tests/test-getline.c (main): Likewise.
53419
53420         Move getline and getdelim into stdio.h, per POSIX 200x.
53421         * modules/getline (Files): Remove getline.h.
53422         (Depends-on): Add stdio.
53423         (configure.ac): Add module indicator.
53424         * modules/getdelim (Files): Remove getdelim.h.
53425         (Depends-on): Add stdio.
53426         (configure.ac): Add module indicator.
53427         * modules/stdio (Makefile.am): Work with new indicators.
53428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53429         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53430         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53431         * lib/getdelim.h: Delete.
53432         * lib/getline.h: Delete.
53433         * lib/stdio_.h (getdelim, getline): Declare.
53434         * modules/getdelim-tests: New module.
53435         * modules/getline-tests: Likewise.
53436         * tests/test-getdelim.c: New file.
53437         * tests/test-getline.c: Likewise.
53438         * NEWS: Document the change.
53439         * lib/getline.c: Update choice of header.
53440         * lib/csharpcomp.c: Likewise.
53441         * lib/getpass.c: Likewise.
53442         * lib/javacomp.c: Likewise.
53443         * lib/javaversion.c: Likewise.
53444         * lib/yesno.c: Likewise.
53445         * lib/getdelim.c: Likewise.
53446         (getdelim): Set errno on failure, and avoid memory leak.
53447
53448 2007-08-19  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/closein (Depends-on): Add freadahead.
53451         * lib/closein.c: Include freadahead.h.
53452         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53453         is zero.
53454
53455 2007-08-19  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/freadahead-tests: New file.
53458         * tests/test-freadahead.sh: New file.
53459         * tests/test-freadahead.c: New file.
53460
53461         * modules/freadahead: New file.
53462         * lib/freadahead.h: New file.
53463         * lib/freadahead.c: New file.
53464         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53465         fbufmode, fpurge, freadable, fwritable.
53466
53467 2007-08-19  Eric Blake  <ebb9@byu.net>
53468
53469         Test yesno in combination with closein.
53470         * lib/yesno.c (yesno): Document use of stdin.
53471         * modules/yesno-tests (Files): New module.
53472         * tests/test-yesno.c (main): New file.
53473         * tests/test-yesno.sh: Likewise.
53474
53475 2007-08-19  Bruno Haible  <bruno@clisp.org>
53476
53477         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53478         * lib/fseeko.c (rpl_fseeko): Likewise.
53479         * lib/fseterr.c (fseterr): Likewise.
53480
53481 2007-08-19  Bruno Haible  <bruno@clisp.org>
53482
53483         * tests/test-lseek.c (main): Disable a test for BeOS.
53484         * doc/functions/lseek.texi: Document the BeOS bug.
53485
53486 2007-08-19  Bruno Haible  <bruno@clisp.org>
53487             Eric Blake  <ebb9@byu.net>
53488
53489         * lib/lseek.c: Include <sys/stat.h>.
53490         (rpl_lseek): Add workaround code also for Unix platforms.
53491         Needed for BeOS.
53492         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53493         * doc/functions/lseek.texi: Document BeOS definiency.
53494
53495 2007-08-18  Bruno Haible  <bruno@clisp.org>
53496
53497         * modules/fstrcmp-tests: New file.
53498         * tests/test-fstrcmp.c: New file.
53499
53500 2007-08-18  Bruno Haible  <bruno@clisp.org>
53501
53502         * modules/fstrcmp: New file, from GNU gettext with modifications.
53503         * lib/fstrcmp.h: New file, from GNU gettext.
53504         * lib/fstrcmp.c: New file, from GNU gettext.
53505         * MODULES.html.sh (String handling): Add fstrcmp.
53506
53507 2007-08-18  Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53510         'bool'.
53511         (diag, compareseq): Remove const from the ctxt argument.
53512         (USE_HEURISTIC): Undefine at the end.
53513
53514 2007-08-18  Jim Meyering  <jim@meyering.net>
53515
53516         New file: lib/idcache.h
53517         * NEWS: Mention the addition.
53518         * modules/idcache (Files): Add lib/idcache.h
53519         * lib/idcache.c: Include "idcache.h".
53520         Don't include <sys/types.h>.
53521         Add a FIXME comment.
53522         Move file-scoped "static" declarations to the top.
53523         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53524
53525 2007-08-17  Bruno Haible  <bruno@clisp.org>
53526         and Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * MODULES.html.sh: Add diffseq.
53529         * modules/diffseq: New file.
53530         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53531         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53532
53533 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         Import changes from coreutils for bootstrap script.
53536
53537         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         * build-aux/bootstrap (slurp): Work even in environments where
53540         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53541         current code does not slurp files whose names start with ".", and
53542         this looks like it might be a troublesome area.
53543
53544         2007-07-11  Jim Meyering  <jim@meyering.net>
53545
53546         If there's a GPL vN copyright comment, require that N == 3.
53547
53548         2007-07-08  Jim Meyering  <jim@meyering.net>
53549
53550         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53551         * build-aux/bootstrap (mam_template): Move definition out of loop.
53552
53553         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53554
53555         * build-aux/bootstrap (symlink_to_dir): Rename function from
53556         symlink_to_gnulib.  Add a directory parameter.  Update all
53557         callers.
53558         (cp_mark_as_generated): Also check for -- and link to -- files in
53559         gl/.
53560
53561         2007-07-08  Jim Meyering  <jim@meyering.net>
53562
53563         Adapt to deeper hierarchy in gnulib.
53564         * build-aux/bootstrap (symlink_to_dir): If the destination
53565         directory doesn't exist, create it. This is required at least for
53566         "lib/uniwidth/cjk.h".
53567
53568         2007-05-15  Jim Meyering  <jim@meyering.net>
53569
53570         * build-aux/bootstrap: Now that generated Makefile.am files
53571         are no longer under version control, they must be created at
53572         bootstrap time.
53573
53574 2007-08-14  Ben Pfaff  <blp@gnu.org>
53575
53576         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53577
53578 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53581         given the changes below.
53582         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53583         even on hosts that have padding bits beyond the supported 64.
53584
53585 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53586
53587         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53588         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53589         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53590         depends on it.
53591         (xstrtol_error): Remove.
53592         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53593         but with a different signature.
53594         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53595         * lib/xstrtol-error.c: Include exitfail.h.
53596         (xstrtol_fatal): New function, with a different signature from the
53597         old xstrtol_error, so that the caller need not worry about passing
53598         in an exit status, or about storage management of the option argument.
53599         (xstrtol_error): Now a static function.  Redo signature to
53600         implement xstrtol_fatal.  Output the correct number of hyphens in
53601         front of the option so that the caller need not worry about
53602         storage management.
53603         (N_): New macro.
53604         (_): Remove; not used now.
53605         * modules/xstrtol: Depend on getopt.
53606         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53607         of old STRTOL_FATAL_ERROR macro.
53608         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53609         of test program.
53610         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53611         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53612
53613 2007-08-08  Eric Blake  <ebb9@byu.net>
53614
53615         * lib/xstrtol-error.c: Add missing include.
53616
53617         Move xstrtol messages into gnulib domain, when --pobase is used.
53618         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53619         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53620         * modules/xstrtol (Files): Distribute new file.
53621         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53622         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53623         * tests/test-xstrtol.c: ...into new file.
53624         * tests/test-xstrtoul.c: Also test xstrtoul.
53625         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53626         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53627         * tests/test-xstrtol.sh: Drive the tests.
53628         * tests/test-xstrtoimax.sh: Likewise.
53629         * tests/test-xstrtoumax.sh: Likewise.
53630         * modules/xstrtol-tests: New module.
53631         * modules/xstrtoimax-tests: Likewise.
53632         * modules/xstrtoumax-tests: Likewise.
53633
53634 2007-08-08  Jim Meyering  <jim@meyering.net>
53635
53636         New function: mfile_name_concat.
53637         * lib/filenamecat.c (mfile_name_concat): New function, just like
53638         file_name_concat, but return NULL upon failure rather than exiting
53639         with a diagnostic.
53640         * lib/filenamecat.h: Declare it.
53641
53642 2007-08-07  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53645         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53646         warning from gcc.
53647         Reported by Eric Blake.
53648
53649 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53650
53651         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53652         * modules/crypto/arcfour (License): Likewise.
53653         * modules/crypto/des-tests (License): Likewise.
53654         * modules/crypto/gc-arctwo-tests (License): Likewise.
53655         * modules/crypto/gc-des-tests (License): Likewise.
53656         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53657         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53658         * modules/crypto/gc-md2-tests (License): Likewise.
53659         * modules/crypto/gc-md4-tests (License): Likewise.
53660         * modules/crypto/gc-md5-tests (License): Likewise.
53661         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53662         * modules/crypto/gc-rijndael-tests (License): Likewise.
53663         * modules/crypto/gc-sha1-tests (License): Likewise.
53664         * modules/crypto/gc-tests (License): Likewise.
53665         * modules/crypto/hmac-md5 (License): Likewise.
53666         * modules/crypto/hmac-sha1 (License): Likewise.
53667         * modules/crypto/md2-tests (License): Likewise.
53668         * modules/crypto/md4-tests (License): Likewise.
53669         * modules/crypto/md5 (License): Likewise.
53670         * modules/crypto/rijndael (License): Likewise.
53671         * modules/crypto/sha1 (License): Likewise.
53672         * modules/memxor (License): Likewise.
53673
53674 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53675         and Bruno Haible  <bruno@clisp.org>
53676
53677         * NEWS: Describe interface changes to human, xstrtol.
53678         * lib/human.h: Include <xstrtol.h>.
53679         (human_options): Return enum strtol_error, not int.  Remove
53680         bool arg; take int * instead.
53681         * lib/human.c: Don't include "gettext.h".
53682         (_): Remove; no longer used.
53683         Don't include <xstrtol.h>, since human.h does it.
53684         (human_options): Adjust to abovementioned interface changes.
53685         Do not report error to stderr; that's now the caller's
53686         responsibility.
53687         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53688         interface change.
53689         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53690         Str, Argument_type_string.  All uses changed.  Put " argument"
53691         in diagnostics to make them clearer.  Change wording of suffix
53692         message for clarity.
53693         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53694         Argument_type_string.
53695         (STRTOL_FATAL_WARN): Remove; no longer used.
53696         * modules/human (Depends-on): Remove gettext-h.
53697
53698 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53699
53700         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53701
53702 2007-07-31  Bruno Haible  <bruno@clisp.org>
53703
53704         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53705         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53706         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53707
53708 2007-07-31  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53711         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53712
53713 2007-07-30  Bruno Haible  <bruno@clisp.org>
53714
53715         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53716         * modules/c-ctype (License): Likewise.
53717         * modules/c-strcase (License): Likewise.
53718         * modules/check-version (License): Likewise.
53719         * modules/iconv (License): Likewise.
53720         * modules/iconv_open (License): Likewise.
53721         * modules/read-file (License): Likewise.
53722         * modules/striconv (License): Likewise.
53723         * modules/strverscmp (License): Likewise.
53724         * modules/vasprintf (License): Likewise.
53725         * modules/crypto/des (License): Likewise.
53726         * modules/crypto/gc (License): Likewise.
53727         * modules/crypto/gc-arcfour (License): Likewise.
53728         * modules/crypto/gc-arctwo (License): Likewise.
53729         * modules/crypto/gc-des (License): Likewise.
53730         * modules/crypto/gc-hmac-md5 (License): Likewise.
53731         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53732         * modules/crypto/gc-md2 (License): Likewise.
53733         * modules/crypto/gc-md4 (License): Likewise.
53734         * modules/crypto/gc-md5 (License): Likewise.
53735         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53736         * modules/crypto/gc-random (License): Likewise.
53737         * modules/crypto/gc-rijndael (License): Likewise.
53738         * modules/crypto/gc-sha1 (License): Likewise.
53739         * modules/crypto/md2 (License): Likewise.
53740         * modules/crypto/md4 (License): Likewise.
53741
53742 2007-07-30  Jim Meyering  <jim@meyering.net>
53743
53744         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53745         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53746         it has valid stat data.  This bug would cause du not to count the
53747         sizes of inaccessible directories.
53748         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53749         in <http://bugzilla.redhat.com/250077>.
53750
53751 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53752             Bruno Haible  <bruno@clisp.org>
53753
53754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53755         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53756         #include_next, gives a diagnostic about it, but reports no error in
53757         the exit code.
53758         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53759
53760 2007-07-24  Ben Pfaff  <blp@gnu.org>
53761
53762         Improve name: "count-one-bits" is better than "popcount".
53763         * MODULES.html.sh: Update name.
53764         * lib/popcount.h: Renamed lib/count-one-bits.h.
53765         (popcount): Renamed count_one_bits.
53766         (popcountl): Renamed count_one_bits_l.
53767         (popcountll): Renamed count_one_bits_ll.
53768         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53769         * modules/popcount: Renamed module/count-one-bits.
53770         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53771         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53772
53773 2007-07-23  Ben Pfaff  <blp@gnu.org>
53774
53775         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53776         better code generation, and add U to large constants to avoid
53777         warnings, in non-GCC case.
53778         Suggested by Bruno Haible.
53779
53780 2007-07-23  Ben Pfaff  <blp@gnu.org>
53781
53782         * lib/popcount.h: Use verify_true instead of if...abort.
53783         * modules/popcount: Depend on verify module.
53784         Suggested by Jim Meyering.
53785
53786 2007-07-23  Bruno Haible  <bruno@clisp.org>
53787
53788         * gnulib-tool (func_import): Create a .cvsignore file also when the
53789         directory is not yet in CVS but the toplevel directory is. When
53790         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53791         Reported by Karl Berry.
53792
53793 2007-07-22  Ben Pfaff  <blp@gnu.org>
53794
53795         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53796         case.
53797         Suggested by Eric Blake.
53798
53799 2007-07-22  Ben Pfaff  <blp@gnu.org>
53800
53801         New module: popcount.
53802         * MODULES.html.sh: Add popcount.
53803         * modules/popcount: New file.
53804         * modules/popcount-tests: New file.
53805         * tests/test-popcount.c: New file.
53806         * lib/popcount.h: New file.
53807         * m4/popcount.m4: New file.
53808
53809 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53810
53811         * build-aux/announce-gen: Update to GPLv3.
53812
53813         * build-aux/config.guess: Update from config.
53814
53815 2007-07-21  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53818         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53819
53820 2007-07-20  Jim Meyering  <jim@meyering.net>
53821
53822         * check-module: Diagnose a self-dependency.
53823
53824 2007-07-19  Bruno Haible  <bruno@clisp.org>
53825
53826         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53827         empty.
53828         Reported by Eric Blake.
53829
53830 2007-07-18  Bruno Haible  <bruno@clisp.org>
53831
53832         * gnulib-tool: New options --po-base, --po-domain.
53833         (func_usage): Document them.
53834         (pobase, po_domain): New variables.
53835         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53836         DEFAULT_TEXT_DOMAIN.
53837         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53838         (func_import): Consider pobase and po_domain. Create a po/ directory.
53839         (func_create_testdir): Set pobase and po_domain to empty.
53840         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53841         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53842
53843 2007-07-18  Bruno Haible  <bruno@clisp.org>
53844
53845         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53846         EXTRA_DIST augmentation for files in build-aux/.
53847
53848 2007-07-16  Bruno Haible  <bruno@clisp.org>
53849
53850         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53851         * modules/getdelim (License): Likewise.
53852
53853 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53854
53855         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53856         * modules/d-type (License): Likewise.
53857         * modules/extensions (License): Likewise.
53858         * modules/fnmatch (License): Likewise.
53859         * modules/fseeko (License): Likewise.
53860         * modules/getaddrinfo (License): Likewise.
53861         * modules/getline (License): Likewise.
53862         * modules/getlogin_r (License): Likewise.
53863         * modules/getpass (License): Likewise.
53864         * modules/gettimeofday (License): Likewise.
53865         * modules/glob (License): Likewise.
53866         * modules/inet_ntop (License): Likewise.
53867         * modules/malloc (License): Likewise.
53868         * modules/malloca (License): Likewise.
53869         * modules/memmem (License): Likewise.
53870         * modules/mempcpy (License): Likewise.
53871         * modules/memset (License): Likewise.
53872         * modules/minmax (License): Likewise.
53873         * modules/mktime (License): Likewise.
53874         * modules/netinet_in (License): Likewise.
53875         * modules/pathmax (License): Likewise.
53876         * modules/poll (License): Likewise.
53877         * modules/regex (License): Likewise.
53878         * modules/snprintf (License): Likewise.
53879         * modules/stdbool (License): Likewise.
53880         * modules/stdint (License): Likewise.
53881         * modules/stdio (License): Likewise.
53882         * modules/strcase (License): Likewise.
53883         * modules/strcasestr (License): Likewise.
53884         * modules/strdup (License): Likewise.
53885         * modules/string (License): Likewise.
53886         * modules/strndup (License): Likewise.
53887         * modules/strnlen (License): Likewise.
53888         * modules/strpbrk (License): Likewise.
53889         * modules/strptime (License): Likewise.
53890         * modules/strsep (License): Likewise.
53891         * modules/sys_select (License): Likewise.
53892         * modules/sys_socket (License): Likewise.
53893         * modules/sys_stat (License): Likewise.
53894         * modules/sys_time (License): Likewise.
53895         * modules/time (License): Likewise.
53896         * modules/time_r (License): Likewise.
53897         * modules/timegm (License): Likewise.
53898         * modules/unistd (License): Likewise.
53899         * modules/vsnprintf (License): Likewise.
53900         * modules/wctype (License): Likewise.
53901
53902 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53903
53904         * modules/argz (License): LGPLv2+.
53905
53906 2007-07-15  Karl Berry  <karl@gnu.org>
53907
53908         * doc/gnulib.texi: revise node structure per new fdl.texi.
53909
53910 2007-07-14  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53913         the output file.
53914         * lib/uniname/uninames.h: Regenerated.
53915
53916 2007-07-14  Karl Berry  <karl@gnu.org>
53917
53918         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53919         omitting sectioning and index commands.
53920
53921 2007-07-13  Bruno Haible  <bruno@clisp.org>
53922
53923         New gnulib-tool option --more-symlinks.
53924         * gnulib-tool (func_usage): Document --more-symlinks.
53925         (do_copyrights): New variable.
53926         Recognize option --more-symlinks.
53927         (func_import): Don't add a copyright notice transform to
53928         sed_transform_lib_file if do_copyrights is empty.
53929
53930 2007-07-13  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/vasnprintf.c (decimal_point_char): Define also if
53933         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53934         && !NEED_PRINTF_DIRECTIVE_A.
53935         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53936         Gary V. Vaughan <gary@gnu.org>.
53937
53938 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         * lib/inttypes_.h: Undo previous change, since it was fixed
53941         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53942
53943 2007-07-13  Bruno Haible  <bruno@clisp.org>
53944
53945         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53946         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53947
53948 2007-07-13  Jim Meyering  <jim@meyering.net>
53949
53950         df: Don't fail for Tru64's "file-on-file mount".
53951         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53952         so we fall through and use statfs instead.  Details here:
53953         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53954         Reported by Albert Chin.
53955
53956 2007-07-13  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53959         * modules/configmake (License): Likewise.
53960         * modules/gettext (License): Likewise.
53961         * modules/gettext-h (License): Likewise.
53962         * modules/include_next (License): Likewise.
53963         * modules/link-warning (License): Likewise.
53964         * modules/localcharset (License): Likewise.
53965         * modules/localename (License): Likewise.
53966         * modules/lock (License): Likewise.
53967         * modules/relocatable-lib-lgpl (License): Likewise.
53968         * modules/size_max (License): Likewise.
53969         * modules/vasnprintf (License): Likewise.
53970         * modules/wchar (License): Likewise.
53971         * modules/xsize (License): Likewise.
53972
53973 2007-07-13  Bruno Haible  <bruno@clisp.org>
53974
53975         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53976         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53977
53978 2007-07-12  Bruno Haible  <bruno@clisp.org>
53979
53980         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53981         in the modules files.
53982
53983 2007-07-11  Karl Berry  <karl@gnu.org>
53984
53985         * MODULES.html.sh (func_module): use
53986          sed -e '\|^'"${includefile}"'$|d'
53987          instead of /.../d, to avoid errors on $includefile's containing /.
53988
53989 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53990
53991         * gnulib-tool (func_import): Avoid duplication of --avoid
53992         statements
53993         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53994         names to `_' in variable names.
53995
53996 2007-07-10  Eric Blake  <ebb9@byu.net>
53997
53998         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53999         * NEWS: Document this change.
54000
54001 2007-07-08  Bruno Haible  <bruno@clisp.org>
54002
54003         Update to Unicode 5.0.
54004         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54005         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54006         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54007         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54008         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54009         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54010         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54011         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54012         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54013         U+10A3F, U+1D242..U+1D244.
54014         (nonspacing_table_ind): Update.
54015         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54016         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54017
54018 2007-07-08  Bruno Haible  <bruno@clisp.org>
54019
54020         Update to Unicode 5.0.
54021         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54022         code transform. Extend the name index field of unicode_name_to_code and
54023         unicode_code_to_name from 16 to 24 bits.
54024         * lib/uniname/uniname.c (unicode_character_name,
54025         unicode_name_character): Add the range 0x12xxx to the code transform.
54026         * lib/uniname/uninames.h: Regenerated.
54027         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54028
54029 2007-07-07  Bruno Haible  <bruno@clisp.org>
54030
54031         * modules/wcwidth-tests: New file.
54032         * tests/test-wcwidth.c: New file.
54033
54034         Work around MacOS X wcwidth() bug.
54035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54036         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54037         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54038         original wcwidth in non-UTF-8 locales.
54039         * modules/wcwidth (Depends-on): Add localcharset, streq,
54040         uniwidth/width.
54041         * doc/functions/wcwidth.texi: Update.
54042
54043 2007-07-07  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54046         (wcwidth): New declaration.
54047         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54048         macros.
54049         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54050         here. Prepare for creating <wchar.h> unconditionally.
54051         * modules/wchar (Depends-on): Add link-warning.
54052         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54053         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54054         * lib/wcwidth.h: Remove file.
54055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54056         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54057         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54058         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54059         (Include): Replace wcwidth.h with <wchar.h>.
54060         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54061         * lib/mbchar.h: Don't include wcwidth.h.
54062         * lib/mbswidth.c: Likewise.
54063         * NEWS: Mention the change.
54064
54065 2007-07-07  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54068         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54069         definition with an external declaration.
54070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54071         defined as a function. Remove AC_C_INLINE requirement.
54072         * modules/wcwidth (Files): Add lib/wcwidth.c.
54073         (Makefile.am): Remove redundant statement.
54074
54075 2007-07-07  Bruno Haible  <bruno@clisp.org>
54076
54077         * MODULES.html.sh (Unicode string functions): Add the new modules.
54078
54079         * tests/uniwidth/test-u32-strwidth.c: New file.
54080         * modules/uniwidth/u32-strwidth-tests: New file.
54081
54082         * lib/uniwidth/u32-strwidth.c: New file.
54083         * modules/uniwidth/u32-strwidth: New file.
54084
54085         * tests/uniwidth/test-u16-strwidth.c: New file.
54086         * modules/uniwidth/u16-strwidth-tests: New file.
54087
54088         * lib/uniwidth/u16-strwidth.c: New file.
54089         * modules/uniwidth/u16-strwidth: New file.
54090
54091         * tests/uniwidth/test-u8-strwidth.c: New file.
54092         * modules/uniwidth/u8-strwidth-tests: New file.
54093
54094         * lib/uniwidth/u8-strwidth.c: New file.
54095         * modules/uniwidth/u8-strwidth: New file.
54096
54097         * tests/uniwidth/test-u32-width.c: New file.
54098         * modules/uniwidth/u32-width-tests: New file.
54099
54100         * lib/uniwidth/u32-width.c: New file.
54101         * modules/uniwidth/u32-width: New file.
54102
54103         * tests/uniwidth/test-u16-width.c: New file.
54104         * modules/uniwidth/u16-width-tests: New file.
54105
54106         * lib/uniwidth/u16-width.c: New file.
54107         * modules/uniwidth/u16-width: New file.
54108
54109         * tests/uniwidth/test-u8-width.c: New file.
54110         * modules/uniwidth/u8-width-tests: New file.
54111
54112         * lib/uniwidth/u8-width.c: New file.
54113         * modules/uniwidth/u8-width: New file.
54114
54115         * tests/uniwidth/test-uc_width.c: New file.
54116         * modules/uniwidth/width-tests: New file.
54117
54118         * lib/uniwidth/width.c: New file, from GNU libiconv.
54119         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54120         * modules/uniwidth/width: New file.
54121
54122         * lib/uniwidth.h: New file, from GNU libiconv.
54123         * modules/uniwidth/base: New file.
54124
54125 2007-07-07  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/uniname.h: New file, from GNU gettext.
54128         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54129         * lib/uniname/uninames.h: New file, from GNU gettext.
54130         * lib/uniname/uniname.c: New file, from GNU gettext.
54131         * tests/uniname/test-uninames.sh: New file.
54132         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54133         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54134         * modules/uniname/base: New file.
54135         * modules/uniname/uniname: New file.
54136         * modules/uniname/uniname-tests: New file.
54137         * MODULES.html.sh (Unicode string functions): Add the new modules.
54138
54139 2007-07-06  Bruno Haible  <bruno@clisp.org>
54140
54141         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54142
54143 2007-07-06  Bruno Haible  <bruno@clisp.org>
54144
54145         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54146         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54147         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54148         include <sys/time.h>.
54149         Reported by Eric Blake.
54150
54151 2007-07-06  Eric Blake  <ebb9@byu.net>
54152
54153         Fix testing canonicalize on cygwin.
54154         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54155         Revert patch from 2007-06-19.
54156         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54157         canonicalize module is also in use.
54158         * tests/test-canonicalize.c: New file.
54159         * tests/test-canonicalize.sh: Likewise.
54160         * modules/canonicalize-tests: Likewise.
54161
54162 2007-07-06  Jim Meyering  <jim@meyering.net>
54163
54164         * lib/getugroups.c (getugroups): Detect getgrent failure.
54165         Adjust comment to reflect reality: this function may return -1.
54166
54167 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54168
54169         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54170         the new TP address.
54171         (usage): Fix typo
54172         (gnulib_mk): New variable.
54173
54174 2007-07-05  Jim Meyering  <jim@meyering.net>
54175
54176         Don't let endgrent clobber errno, no matter how improbable.
54177         * lib/getugroups.c (getugroups): Save and restore errno around
54178         endgrent call.
54179
54180         Close the group DB even when failing with 2^31 or more members.
54181         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54182
54183 2007-07-04  Jim Meyering  <jim@meyering.net>
54184
54185         * lib/getugroups.h: New file.
54186         * lib/getugroups.c: Include "getugroups.h".
54187         Remove uses of "register" keyword.
54188         Move local variable, "cp", down into scope where used.
54189         Give "username" parameter the "const" attribute.
54190         * modules/getugroups (Files): Add lib/getugroups.h
54191
54192 2007-07-04  Karl Berry  <karl@gnu.org>
54193
54194         * MODULES.html.sh (func_all_modules): Complete rename of
54195         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54196
54197 2007-07-02  Bruno Haible  <bruno@clisp.org>
54198
54199         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54200         mode, when inttypes.h comes from gnulib.
54201         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54202
54203 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54204
54205         * NEWS: Mention lgpl module name change.
54206
54207         * modules/lgpl-2.1: Renamed from lgpl.
54208
54209         * NEWS: Mention gpl module name change.
54210
54211         * modules/gpl-3.0: New file, based on gpl-2.0.
54212
54213         * modules/gpl-2.0: Renamed from gpl.
54214
54215         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54216         doc/gpl-2.0.texi.
54217
54218 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54221         #define __STDC_LIMIT_MACROS temporarily while including
54222         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54223         Problem reported by Joel E. Denny in
54224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54225
54226 2007-07-01  Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/unistdio.h: New file.
54229         * lib/unistdio/u-asnprintf.h: New file.
54230         * lib/unistdio/u-asprintf.h: New file.
54231         * lib/unistdio/u-printf-args.c: New file.
54232         * lib/unistdio/u-printf-args.h: New file.
54233         * lib/unistdio/u-printf-parse.h: New file.
54234         * lib/unistdio/u-snprintf.h: New file.
54235         * lib/unistdio/u-sprintf.h: New file.
54236         * lib/unistdio/u-vasprintf.h: New file.
54237         * lib/unistdio/u-vsnprintf.h: New file.
54238         * lib/unistdio/u-vsprintf.h: New file.
54239         * lib/unistdio/ulc-asnprintf.c: New file.
54240         * lib/unistdio/ulc-asprintf.c: New file.
54241         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54242         * lib/unistdio/ulc-printf-parse.c: New file.
54243         * lib/unistdio/ulc-snprintf.c: New file.
54244         * lib/unistdio/ulc-sprintf.c: New file.
54245         * lib/unistdio/ulc-vasnprintf.c: New file.
54246         * lib/unistdio/ulc-vasprintf.c: New file.
54247         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54248         * lib/unistdio/ulc-vsnprintf.c: New file.
54249         * lib/unistdio/ulc-vsprintf.c: New file.
54250         * lib/unistdio/u8-asnprintf.c: New file.
54251         * lib/unistdio/u8-asprintf.c: New file.
54252         * lib/unistdio/u8-printf-parse.c: New file.
54253         * lib/unistdio/u8-snprintf.c: New file.
54254         * lib/unistdio/u8-sprintf.c: New file.
54255         * lib/unistdio/u8-vasnprintf.c: New file.
54256         * lib/unistdio/u8-vasprintf.c: New file.
54257         * lib/unistdio/u8-vsnprintf.c: New file.
54258         * lib/unistdio/u8-vsprintf.c: New file.
54259         * lib/unistdio/u8-u8-asnprintf.c: New file.
54260         * lib/unistdio/u8-u8-asprintf.c: New file.
54261         * lib/unistdio/u8-u8-snprintf.c: New file.
54262         * lib/unistdio/u8-u8-sprintf.c: New file.
54263         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54264         * lib/unistdio/u8-u8-vasprintf.c: New file.
54265         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54266         * lib/unistdio/u8-u8-vsprintf.c: New file.
54267         * lib/unistdio/u16-asnprintf.c: New file.
54268         * lib/unistdio/u16-asprintf.c: New file.
54269         * lib/unistdio/u16-printf-parse.c: New file.
54270         * lib/unistdio/u16-snprintf.c: New file.
54271         * lib/unistdio/u16-sprintf.c: New file.
54272         * lib/unistdio/u16-vasnprintf.c: New file.
54273         * lib/unistdio/u16-vasprintf.c: New file.
54274         * lib/unistdio/u16-vsnprintf.c: New file.
54275         * lib/unistdio/u16-vsprintf.c: New file.
54276         * lib/unistdio/u16-u16-asnprintf.c: New file.
54277         * lib/unistdio/u16-u16-asprintf.c: New file.
54278         * lib/unistdio/u16-u16-snprintf.c: New file.
54279         * lib/unistdio/u16-u16-sprintf.c: New file.
54280         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54281         * lib/unistdio/u16-u16-vasprintf.c: New file.
54282         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54283         * lib/unistdio/u16-u16-vsprintf.c: New file.
54284         * lib/unistdio/u32-asnprintf.c: New file.
54285         * lib/unistdio/u32-asprintf.c: New file.
54286         * lib/unistdio/u32-printf-parse.c: New file.
54287         * lib/unistdio/u32-snprintf.c: New file.
54288         * lib/unistdio/u32-sprintf.c: New file.
54289         * lib/unistdio/u32-vasnprintf.c: New file.
54290         * lib/unistdio/u32-vasprintf.c: New file.
54291         * lib/unistdio/u32-vsnprintf.c: New file.
54292         * lib/unistdio/u32-vsprintf.c: New file.
54293         * lib/unistdio/u32-u32-asnprintf.c: New file.
54294         * lib/unistdio/u32-u32-asprintf.c: New file.
54295         * lib/unistdio/u32-u32-snprintf.c: New file.
54296         * lib/unistdio/u32-u32-sprintf.c: New file.
54297         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54298         * lib/unistdio/u32-u32-vasprintf.c: New file.
54299         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54300         * lib/unistdio/u32-u32-vsprintf.c: New file.
54301         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54302         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54303         * tests/unistdio/test-ulc-printf1.h: New file.
54304         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54305         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54306         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54307         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54308         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54309         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54310         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54311         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54312         * tests/unistdio/test-u8-asnprintf1.c: New file.
54313         * tests/unistdio/test-u8-asnprintf1.h: New file.
54314         * tests/unistdio/test-u8-printf1.h: New file.
54315         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54316         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54317         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54318         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54319         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54320         * tests/unistdio/test-u8-vasprintf1.c: New file.
54321         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54322         * tests/unistdio/test-u8-vsprintf1.c: New file.
54323         * tests/unistdio/test-u16-asnprintf1.c: New file.
54324         * tests/unistdio/test-u16-asnprintf1.h: New file.
54325         * tests/unistdio/test-u16-printf1.h: New file.
54326         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54327         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54328         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54329         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54330         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54331         * tests/unistdio/test-u16-vasprintf1.c: New file.
54332         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54333         * tests/unistdio/test-u16-vsprintf1.c: New file.
54334         * tests/unistdio/test-u32-asnprintf1.c: New file.
54335         * tests/unistdio/test-u32-asnprintf1.h: New file.
54336         * tests/unistdio/test-u32-printf1.h: New file.
54337         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54338         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54339         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54340         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54341         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54342         * tests/unistdio/test-u32-vasprintf1.c: New file.
54343         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54344         * tests/unistdio/test-u32-vsprintf1.c: New file.
54345         * modules/unistdio/base: New file.
54346         * modules/unistdio/u-printf-args: New file.
54347         * modules/unistdio/ulc-asnprintf: New file.
54348         * modules/unistdio/ulc-asprintf: New file.
54349         * modules/unistdio/ulc-fprintf: New file.
54350         * modules/unistdio/ulc-printf-parse: New file.
54351         * modules/unistdio/ulc-snprintf: New file.
54352         * modules/unistdio/ulc-sprintf: New file.
54353         * modules/unistdio/ulc-vasnprintf: New file.
54354         * modules/unistdio/ulc-vasprintf: New file.
54355         * modules/unistdio/ulc-vfprintf: New file.
54356         * modules/unistdio/ulc-vsnprintf: New file.
54357         * modules/unistdio/ulc-vsprintf: New file.
54358         * modules/unistdio/u8-asnprintf: New file.
54359         * modules/unistdio/u8-asprintf: New file.
54360         * modules/unistdio/u8-printf-parse: New file.
54361         * modules/unistdio/u8-snprintf: New file.
54362         * modules/unistdio/u8-sprintf: New file.
54363         * modules/unistdio/u8-vasnprintf: New file.
54364         * modules/unistdio/u8-vasprintf: New file.
54365         * modules/unistdio/u8-vsnprintf: New file.
54366         * modules/unistdio/u8-vsprintf: New file.
54367         * modules/unistdio/u8-u8-asnprintf: New file.
54368         * modules/unistdio/u8-u8-asprintf: New file.
54369         * modules/unistdio/u8-u8-snprintf: New file.
54370         * modules/unistdio/u8-u8-sprintf: New file.
54371         * modules/unistdio/u8-u8-vasnprintf: New file.
54372         * modules/unistdio/u8-u8-vasprintf: New file.
54373         * modules/unistdio/u8-u8-vsnprintf: New file.
54374         * modules/unistdio/u8-u8-vsprintf: New file.
54375         * modules/unistdio/u16-asnprintf: New file.
54376         * modules/unistdio/u16-asprintf: New file.
54377         * modules/unistdio/u16-printf-parse: New file.
54378         * modules/unistdio/u16-snprintf: New file.
54379         * modules/unistdio/u16-sprintf: New file.
54380         * modules/unistdio/u16-vasnprintf: New file.
54381         * modules/unistdio/u16-vasprintf: New file.
54382         * modules/unistdio/u16-vsnprintf: New file.
54383         * modules/unistdio/u16-vsprintf: New file.
54384         * modules/unistdio/u16-u16-asnprintf: New file.
54385         * modules/unistdio/u16-u16-asprintf: New file.
54386         * modules/unistdio/u16-u16-snprintf: New file.
54387         * modules/unistdio/u16-u16-sprintf: New file.
54388         * modules/unistdio/u16-u16-vasnprintf: New file.
54389         * modules/unistdio/u16-u16-vasprintf: New file.
54390         * modules/unistdio/u16-u16-vsnprintf: New file.
54391         * modules/unistdio/u16-u16-vsprintf: New file.
54392         * modules/unistdio/u32-asnprintf: New file.
54393         * modules/unistdio/u32-asprintf: New file.
54394         * modules/unistdio/u32-printf-parse: New file.
54395         * modules/unistdio/u32-snprintf: New file.
54396         * modules/unistdio/u32-sprintf: New file.
54397         * modules/unistdio/u32-vasnprintf: New file.
54398         * modules/unistdio/u32-vasprintf: New file.
54399         * modules/unistdio/u32-vsnprintf: New file.
54400         * modules/unistdio/u32-vsprintf: New file.
54401         * modules/unistdio/u32-u32-asnprintf: New file.
54402         * modules/unistdio/u32-u32-asprintf: New file.
54403         * modules/unistdio/u32-u32-snprintf: New file.
54404         * modules/unistdio/u32-u32-sprintf: New file.
54405         * modules/unistdio/u32-u32-vasnprintf: New file.
54406         * modules/unistdio/u32-u32-vasprintf: New file.
54407         * modules/unistdio/u32-u32-vsnprintf: New file.
54408         * modules/unistdio/u32-u32-vsprintf: New file.
54409         * modules/unistdio/ulc-asnprintf-tests: New file.
54410         * modules/unistdio/ulc-vasnprintf-tests: New file.
54411         * modules/unistdio/ulc-vasprintf-tests: New file.
54412         * modules/unistdio/ulc-vsnprintf-tests: New file.
54413         * modules/unistdio/ulc-vsprintf-tests: New file.
54414         * modules/unistdio/u8-asnprintf-tests: New file.
54415         * modules/unistdio/u8-vasnprintf-tests: New file.
54416         * modules/unistdio/u8-vasprintf-tests: New file.
54417         * modules/unistdio/u8-vsnprintf-tests: New file.
54418         * modules/unistdio/u8-vsprintf-tests: New file.
54419         * modules/unistdio/u16-asnprintf-tests: New file.
54420         * modules/unistdio/u16-vasnprintf-tests: New file.
54421         * modules/unistdio/u16-vasprintf-tests: New file.
54422         * modules/unistdio/u16-vsnprintf-tests: New file.
54423         * modules/unistdio/u16-vsprintf-tests: New file.
54424         * modules/unistdio/u32-asnprintf-tests: New file.
54425         * modules/unistdio/u32-vasnprintf-tests: New file.
54426         * modules/unistdio/u32-vasprintf-tests: New file.
54427         * modules/unistdio/u32-vsnprintf-tests: New file.
54428         * modules/unistdio/u32-vsprintf-tests: New file.
54429         * MODULES.html.sh (Unicode string functions): Add the new modules.
54430
54431 2007-07-01  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/sprintf.c (sprintf): Limit the available length estimation,
54434         to avoid address wraparound.
54435         * lib/vsprintf.c (vsprintf): Likewise.
54436         * modules/sprintf-posix (Dependencies): Add stdint.
54437         * modules/vsprintf-posix (Dependencies): Likewise.
54438
54439 2007-07-01  Bruno Haible  <bruno@clisp.org>
54440
54441         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54442         Windows PATH as well. Conservative double-quoting. Comments.
54443
54444 2007-07-01  Bruno Haible  <bruno@clisp.org>
54445             Eric Blake  <ebb9@byu.net>
54446             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54447
54448         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54449         empty components in $PATH, denoting '.'.
54450
54451 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54452
54453         * gnulib-tool: Fix indentation.
54454         (func_create_megatestdir): Likewise.
54455         Report by Bruno Haible.
54456
54457 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54458
54459         Sync from Automake.
54460         * build-aux/gnupload: Fix shell portability issues with for loops.
54461         Report by Karl Berry.
54462
54463 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54464
54465         * build-aux/maint.mk (POURL): Use translationproject.org.
54466
54467 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54468             Bruno Haible  <bruno@clisp.org>
54469
54470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54471         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54472         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54473         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54474         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54475
54476 2007-06-27  Bruno Haible  <bruno@clisp.org>
54477
54478         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54479         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54480
54481 2007-06-26  Karl Berry  <karl@gnu.org>
54482
54483         * MODULES.html.sh: remove xreadlink-with-size.
54484
54485 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54488         method that I hope also handles the double-include problem noted
54489         by Bruno Haible in
54490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54491
54492 2007-06-23  Bruno Haible  <bruno@clisp.org>
54493
54494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54495         Don't let the 'mostlyclean' target fail if the last subdirectory could
54496         not be removed.
54497         Reported by Karl Berry.
54498
54499 2007-06-23  Bruno Haible  <bruno@clisp.org>
54500
54501         * gnulib-tool (echo): Add a speedier workaround for ksh.
54502         * tests/test-echo.sh: Likewise.
54503
54504 2007-06-23  Bruno Haible  <bruno@clisp.org>
54505
54506         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54507         * tests/test-echo.sh: Likewise.
54508
54509 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54510
54511         * gnulib-tool (IFS): Initialize early, so we don't set it to
54512         empty later.
54513         (self_abspathname): Rewrite algorithm to set it, reindent.
54514         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54515         (func_create_megatestdir): Merge some sed scripts.
54516
54517 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54520         exposed by Sun Studio 11 cc on Solaris 8.
54521
54522 2007-06-22  Bruno Haible  <bruno@clisp.org>
54523
54524         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54525         backslashes.
54526         * tests/test-echo.sh: New file.
54527
54528 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54529
54530         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54531         simplify `sed_replace_build_aux' scripts, they are portable but
54532         echoing them with `echo' is not.
54533         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54534
54535 2007-06-21  Karl Berry  <karl@gnu.org>
54536
54537         * config/srclist.txt: guess we can't handle the licenses via
54538         srclist at the moment.
54539
54540 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * MODULES.html.sh: Add include_next.
54543         * modules/include_next: New file.
54544
54545 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54548         INCLUDE_NEXT.
54549         (gl_CHECK_NEXT_HEADERS): New macro.
54550         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54551         the obsolescent gl_ABSOLUTE_HEADER.
54552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54553         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54554         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54555         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54556         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54557         * m4/math_h.m4 (gl_MATH_H): Likewise.
54558         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54559         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54560         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54561         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54562         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54563         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54564         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54567         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54569         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54570         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54571         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54572         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54573         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54574         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54575         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54576         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54577         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54578         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54579         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54580         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54581         * lib/float_.h: Likewise.
54582         * lib/inttypes_.h: Likewise.
54583         * lib/math_.h: Likewise.
54584         * lib/search_.h: Likewise.
54585         * lib/signal_.h: Likewise.
54586         * lib/stdint_.h: Likewise.
54587         * lib/stdio_.h: Likewise.
54588         * lib/stdlib_.h: Likewise.
54589         * lib/string_.h: Likewise.
54590         * lib/sys_stat_.h: Likewise.
54591         * lib/sys_time_.h: Likewise.
54592         * lib/time_.h: Likewise.
54593         * lib/unistd_.h: Likewise.
54594         * lib/wchar_.h: Likewise.
54595         * lib/wctype_.h: Likewise.
54596         * lib/dirent_.h: Likewise.
54597         * lib/iconv_.h: Likewise.
54598         * lib/locale_.h: Likewise.
54599         * lib/netinet_in_.h: Likewise.
54600         * lib/sys_select_.h: Likewise.
54601         * lib/sys_socket_.h: Likewise.
54602         * lib/sysexits_.h: Likewise.
54603         * modules/fcntl (Depends-on): Depend on include_next, not
54604         absolute_header.
54605         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54606         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54607         * modules/fchdir: Likewise.
54608         * modules/float: Likewise.
54609         * modules/iconv_open: Likewise.
54610         * modules/inttypes: Likewise.
54611         * modules/locale: Likewise.
54612         * modules/math: Likewise.
54613         * modules/netinet_in: Likewise.
54614         * modules/search: Likewise.
54615         * modules/signal: Likewise.
54616         * modules/stdint: Likewise.
54617         * modules/stdio: Likewise.
54618         * modules/stdlib: Likewise.
54619         * modules/string: Likewise.
54620         * modules/sys_select: Likewise.
54621         * modules/sys_socket: Likewise.
54622         * modules/sys_stat: Likewise.
54623         * modules/sys_time: Likewise.
54624         * modules/sysexits: Likewise.
54625         * modules/time: Likewise.
54626         * modules/unistd: Likewise.
54627         * modules/wchar: Likewise.
54628         * modules/wctype: Likewise.
54629         * modules/sys_stat: Change maintainer to "all".
54630         * modules/unistd: Likewise.
54631
54632 2007-06-20  Karl Berry  <karl@gnu.org>
54633
54634         * config/srclist.txt: track www changes in license files.
54635
54636 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54637
54638         * build-aux/bootstrap: Remove stray dot.
54639         Make sure build_aux settings are honored when linking
54640         gnulib_extra_files.
54641
54642 2007-06-19  Eric Blake  <ebb9@byu.net>
54643
54644         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54645         Allow compilation on cygwin.
54646
54647 2007-06-19  Jim Meyering  <jim@meyering.net>
54648
54649         xreadlink-with-size: Remove module.  No longer used.
54650         Ex-callers now use xreadlink or mreadlink-with-size.
54651         * modules/xreadlink-with-size: Remove module.
54652         * lib/xreadlink-with-size.c: Remove file.
54653         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54654         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54655         just before the function definition *is* accurate.
54656
54657         Eliminate one way canonicalize_filename_mode could exit.
54658         * lib/canonicalize.c (canonicalize_filename_mode):
54659         Use mreadlink_with_size, not xreadlink_with_size.
54660
54661 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54662
54663         Detect porting problems to FreeBSD/arm, which has time_t wider than
54664         long int.  Original problem reported for GNU diff by Xin Li in
54665         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54666         * modules/getdate (Depends-on): Add intprops, verify.
54667         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54668         is an integer type no wider than long int.
54669
54670 2007-06-18  Jim Meyering  <jim@meyering.net>
54671
54672         New module: mreadlink-with-size.
54673         * MODULES.html.sh: Add mreadlink-with-size.
54674         * modules/mreadlink-with-size: New module
54675         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54676         not xreadlink-with-size.
54677         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54678
54679 2007-06-16  Bruno Haible  <bruno@clisp.org>
54680
54681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54682         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54683         Reported by Gary V. Vaughan <gary@gnu.org>.
54684
54685 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54686
54687         Revamp lchown so that it lives in unistd.h where it belongs.
54688         * lib/lchown.h: Remove.
54689         * lib/dirchownmod.c: Don't include lib/lchown.h.
54690         * lib/fchownat.c: Likewise.
54691         * lib/openat.c: Likewise.
54692         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54693         does not follow symlinks.
54694         (EOPNOTSUPP): Define if not defined.
54695         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54696         is defined to 0.
54697         (lchown): New decl.
54698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54699         Do not check for lchown decl.
54700         Set REPLACE_LCHOWN.
54701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54702         REPLACE_LCHOWN.
54703         * modules/chown: Make it clear it follows symlinks.
54704         * modules/lchown: Make it clear it doesn't follow symlinks.
54705         (Files): Remove lib/lchown.h
54706         (Depends-on): Add unistd.
54707         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54708         (Include): Include <unistd.h>, not "lchown.h".
54709         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54710         REPLACE_LCHOWN.
54711
54712 2007-06-15  Jim Meyering  <jim@meyering.net>
54713
54714         Change license (GPL to LGPL) of fsusage and dependents.
54715         * modules/fsusage (License): Change to LGPL.
54716         * modules/full-read (License): Likewise.
54717         * modules/full-write (License): Likewise.
54718         * modules/safe-read (License): Likewise.
54719         * modules/safe-write (License): Likewise.
54720
54721 2007-06-14  Ben Pfaff  <blp@gnu.org>
54722
54723         Missing part of allocsa -> malloca transition.
54724         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54725         gl_MALLOCA.
54726
54727 2007-06-12  Bruno Haible  <bruno@clisp.org>
54728
54729         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54730         to ia64, x86_64, i386.
54731         Reported by Eric Blake.
54732
54733 2007-06-12  Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54736         cross-compiling to x86_64.
54737
54738 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54741         glitch reported by Ralf Wildenhues in
54742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54743
54744         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54745         Vin Shelton.
54746
54747 2007-06-11  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54750         replacement string.
54751         Reported by Eric Blake.
54752
54753 2007-06-10  Bruno Haible  <bruno@clisp.org>
54754
54755         Prepare vasnprintf code for use with Unicode strings.
54756         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54757         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54758         TYPE_U32_STRING.
54759         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54760         a_u32_string variants.
54761         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54762         * lib/printf-args.c: Don't include config.h and the specification
54763         header if PRINTF_FETCHARGS is already defined.
54764         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54765         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54766         TYPE_U16_STRING, TYPE_U32_STRING.
54767         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54768         u16_directive, u16_directives, u32_directive, u32_directives): New
54769         types.
54770         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54771         New declarations.
54772         * lib/printf-parse.c: Don't include config.h and the specification
54773         header if PRINTF_PARSE is already defined. Eliminate the set of
54774         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54775         them now. Include c-ctype.h.
54776         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54777         directive and CHAR_T_ONLY_ASCII.
54778         * lib/vasnprintf.c: Don't include config.h and the specification header
54779         if VASNPRINTF is already defined.
54780         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54781         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54782         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54783         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54784         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54785         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54786         code accordingly.
54787         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54788         pad_ourselves also in this case, with the 'c' and 's' directives, and
54789         with a different notion of "width".
54790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54791
54792 2007-06-10  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/unistr/u32-mbsnlen: New file.
54795         * lib/unistr/u32-mbsnlen.c: New file.
54796
54797         * modules/unistr/u16-mbsnlen: New file.
54798         * lib/unistr/u16-mbsnlen.c: New file.
54799
54800         * modules/unistr/u8-mbsnlen: New file.
54801         * lib/unistr/u8-mbsnlen.c: New file.
54802
54803         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54804         declarations.
54805
54806 2007-06-10  Bruno Haible  <bruno@clisp.org>
54807
54808         * lib/string_.h (mbsnlen): New declaration.
54809         * lib/mbsnlen.c: New file.
54810         * m4/mbsnlen.m4: New file.
54811         * modules/mbsnlen: New file.
54812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54813         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54814         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54815
54816 2007-06-10  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54819
54820 2007-06-10  Bruno Haible  <bruno@clisp.org>
54821
54822         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54823         * lib/mbuiter.h: Likewise.
54824
54825 2007-06-10  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54828         declaration.
54829
54830 2007-06-10  Karl Berry  <karl@gnu.org>
54831
54832         * config/srclist.txt: remove gettext entries, Bruno prefers
54833         to update individually.
54834
54835 2007-06-10  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54838         'maxlen'. Ensure only length + width bytes are allocated, not
54839         length + 1 + width.
54840
54841 2007-06-09  Bruno Haible  <bruno@clisp.org>
54842
54843         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54844         (CHAR_T): Remove macro.
54845         (VASNPRINTF): Update.
54846
54847 2007-06-09  Bruno Haible  <bruno@clisp.org>
54848
54849         * MODULES.html.sh (Unicode string functions): Add the new modules.
54850
54851         * modules/uniconv/u32-conv-to-enc: New file.
54852         * lib/uniconv/u32-conv-to-enc.c: New file.
54853         * modules/uniconv/u32-conv-to-enc-tests: New file.
54854         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54855
54856         * modules/uniconv/u16-conv-to-enc: New file.
54857         * lib/uniconv/u16-conv-to-enc.c: New file.
54858         * lib/uniconv/u-conv-to-enc.h: New file.
54859         * modules/uniconv/u16-conv-to-enc-tests: New file.
54860         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54861
54862         * modules/uniconv/u8-conv-to-enc: New file.
54863         * lib/uniconv/u8-conv-to-enc.c: New file.
54864         * modules/uniconv/u8-conv-to-enc-tests: New file.
54865         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54866
54867         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54868         u32_conv_to_encoding): New declarations.
54869
54870 2007-06-09  Bruno Haible  <bruno@clisp.org>
54871
54872         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54873
54874 2007-06-09  Bruno Haible  <bruno@clisp.org>
54875
54876         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54877         * modules/malloca: Renamed from modules/allocsa, updated.
54878         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54879         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54880         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54881         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54882         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54883         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54884         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54885         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54886         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54887         * modules/c-strcasestr (Depends-on): Update.
54888         * lib/c-strcasestr.c: Update.
54889         * modules/c-strstr (Depends-on): Update.
54890         * lib/c-strstr.c: Update.
54891         * modules/canonicalize-lgpl (Depends-on): Update.
54892         * lib/canonicalize-lgpl.c: Update.
54893         * modules/clean-temp (Depends-on): Update.
54894         * lib/clean-temp.c: Update.
54895         * modules/csharpcomp (Depends-on): Update.
54896         * lib/csharpcomp.c: Update.
54897         * modules/csharpexec (Depends-on): Update.
54898         * lib/csharpexec.c: Update.
54899         * modules/javacomp (Depends-on): Update.
54900         * lib/javacomp.c: Update.
54901         * modules/javaexec (Depends-on): Update.
54902         * lib/javaexec.c: Update.
54903         * modules/mbscasestr (Depends-on): Update.
54904         * lib/mbscasestr.c: Update.
54905         * modules/mbsstr (Depends-on): Update.
54906         * lib/mbsstr.c: Update.
54907         * modules/setenv (Depends-on): Update.
54908         * lib/setenv.c: Update.
54909         * modules/strcasestr (Depends-on): Update.
54910         * lib/strcasestr.c: Update.
54911         * modules/striconveha (Depends-on): Update.
54912         * lib/striconveha.c: Update.
54913         * modules/relocatable-prog-wrapper (Files): Update.
54914         * lib/relocwrapper.c: Update.
54915         * build-aux/install-reloc: Update.
54916         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54917
54918 2007-06-08  Bruno Haible  <bruno@clisp.org>
54919
54920         Port to uClibc.
54921         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54922         * lib/fpurge.c (fpurge): Likewise.
54923         * lib/freading.c (freading): Likewise.
54924         * lib/fseeko.c (rpl_fseeko): Likewise.
54925         * lib/fseterr.c (fseterr): Likewise.
54926         * lib/fwriting.c (fwriting): Likewise.
54927         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54928
54929 2007-06-08  Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54932         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54933         * modules/gettext (Files): Add m4/intlmacosx.m4.
54934
54935 2007-06-07  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/localename-tests: New file.
54938         * tests/test-localename.c: New file.
54939
54940         New module 'localename'.
54941         * lib/localename.h: New file.
54942         * lib/localename.c: New file, from GNU gettext.
54943         * m4/localename.m4: New file.
54944         * modules/localename: New file.
54945
54946 2007-06-07  Bruno Haible  <bruno@clisp.org>
54947
54948         Work around the lack of <wchar.h> on some builds of uClibc.
54949         * doc/headers/wchar.texi: Update.
54950         * lib/wchar_.h: Include <wchar.h> only if it exists.
54951         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54952         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54953         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54954         doesn't exist.
54955         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54956         * modules/mbfile (Depends-on): Add wchar.
54957         * modules/mbiter (Depends-on): Likewise.
54958         * modules/mbuiter (Depends-on): Likewise.
54959         Reported by Simon Josefsson.
54960
54961 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         Work around problem reported by Steven M. Schweda in
54964         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54965         Tru64 5.1B with the Compaq compiler environment installed declares
54966         an 'isblank' function but does not define it in the C library.
54967         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54968         * lib/regex_internal.h (isblank): Likewise.
54969         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54970         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54971
54972 2007-06-05  Bruno Haible  <bruno@clisp.org>
54973
54974         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54975         ia64.
54976         * modules/printf-safe: New file.
54977         * modules/fprintf-posix (Depends-on): Add printf-safe.
54978         * modules/printf-posix (Depends-on): Likewise.
54979         * modules/snprintf-posix (Depends-on): Likewise.
54980         * modules/sprintf-posix (Depends-on): Likewise.
54981         * modules/vasnprintf-posix (Depends-on): Likewise.
54982         * modules/vasprintf-posix (Depends-on): Likewise.
54983         * modules/vfprintf-posix (Depends-on): Likewise.
54984         * modules/vprintf-posix (Depends-on): Likewise.
54985         * modules/vsnprintf-posix (Depends-on): Likewise.
54986         * modules/vsprintf-posix (Depends-on): Likewise.
54987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54988         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54989         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54990         "no" on i386, x86_64, ia64.
54991         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54992         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54993         on i386, x86_64, ia64.
54994         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54995         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54996         on i386, x86_64, ia64.
54997         * tests/test-vasnprintf-posix.c: Include float.h.
54998         (LDBL80_WORDS): New macro.
54999         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55000         on i386, x86_64, ia64.
55001         * tests/test-vasprintf-posix.c: Include float.h.
55002         (LDBL80_WORDS): New macro.
55003         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55004         on i386, x86_64, ia64.
55005         * tests/test-snprintf-posix.c: Include float.h.
55006         * tests/test-sprintf-posix.c: Likewise.
55007         * tests/test-vsnprintf-posix.c: Likewise.
55008         * tests/test-vsprintf-posix.c: Likewise.
55009
55010 2007-06-05  Bruno Haible  <bruno@clisp.org>
55011
55012         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55013         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55014         non-IEEE numbers on i386, x86_64, ia64.
55015         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55016         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55017         * tests/test-isnanl.h: Include float.h.
55018         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55019
55020 2007-06-05  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55023         also the %a / %A. Handle the %a / %A code before this extra handling.
55024
55025 2007-06-05  Bruno Haible  <bruno@clisp.org>
55026
55027         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55028         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55029
55030 2007-06-05  Bruno Haible  <bruno@clisp.org>
55031
55032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55033         typo in variable name.
55034
55035 2007-06-05  Eric Blake  <ebb9@byu.net>
55036
55037         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55038         Reported by Simon Josefsson.
55039
55040 2007-06-04  Bruno Haible  <bruno@clisp.org>
55041
55042         Avoid test failures on some PowerPC platforms.
55043         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55044         Define differently for PowerPC.
55045         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55046         Reported by Gary V. Vaughan <gary@gnu.org>.
55047
55048 2007-06-02  Bruno Haible  <bruno@clisp.org>
55049
55050         Fix test-stdint failure on FreeBSD/ia64.
55051         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55052         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55053         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55054         * doc/headers/stdint.texi: Update.
55055
55056 2007-06-01  Bruno Haible  <bruno@clisp.org>
55057
55058         * tests/test-binary-io.c (main): Pass a third argument to open().
55059         Reported by Gary V. Vaughan <gary@gnu.org>.
55060
55061 2007-06-01  Bruno Haible  <bruno@clisp.org>
55062
55063         * doc/functions/frexpl.texi: Update for mingw.
55064
55065 2007-06-01  Bruno Haible  <bruno@clisp.org>
55066
55067         * tests/test-lseek.c (main): Disable test of errno for invalid third
55068         argument.
55069         * doc/functions/lseek.texi: Update.
55070         Reported by Gary V. Vaughan <gary@gnu.org>.
55071
55072 2007-05-28  Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55075
55076 2007-05-31  Eric Blake  <ebb9@byu.net>
55077
55078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55079         cross compiling.
55080
55081 2007-05-30  Eric Blake  <ebb9@byu.net>
55082         and Bruno Haible  <bruno@clisp.org>
55083
55084         Work around mingw test failures exposed by m4-1.4.9b.
55085         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55086         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55087         moment.
55088
55089 2007-05-30  Bruno Haible  <bruno@clisp.org>
55090
55091         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55092         assuming that they are closed. Needed on HP-UX 11.
55093
55094 2007-05-29  Bruno Haible  <bruno@clisp.org>
55095
55096         Fix a problem with #include_next.
55097         * lib/dirent_.h: Split the double-inclusion guard.
55098         * lib/fcntl_.h: Likewise.
55099         * lib/float_.h: Likewise.
55100         * lib/iconv_.h: Likewise.
55101         * lib/inttypes_.h: Likewise.
55102         * lib/locale_.h: Likewise.
55103         * lib/math_.h: Likewise.
55104         * lib/netinet_in_.h: Likewise.
55105         * lib/search_.h: Likewise.
55106         * lib/signal_.h: Likewise.
55107         * lib/stdint_.h: Likewise.
55108         * lib/stdio_.h: Likewise.
55109         * lib/stdlib_.h: Likewise.
55110         * lib/string_.h: Likewise.
55111         * lib/sys_select_.h: Likewise.
55112         * lib/sys_socket_.h: Likewise.
55113         * lib/sys_stat_.h: Likewise.
55114         * lib/sys_time_.h: Likewise.
55115         * lib/sysexits_.h: Likewise.
55116         * lib/time_.h: Likewise.
55117         * lib/unistd_.h: Likewise.
55118         * lib/wchar_.h: Likewise.
55119         * lib/wctype_.h: Likewise.
55120
55121 2007-05-29  Bruno Haible  <bruno@clisp.org>
55122
55123         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55124         for the moment.
55125
55126 2007-05-29  Bruno Haible  <bruno@clisp.org>
55127
55128         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55129         invocation.
55130         Reported by Eric Blake.
55131
55132 2007-05-29  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55135         compiling case.
55136
55137 2007-05-29  Eric Blake  <ebb9@byu.net>
55138             Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55141         cross compiles.
55142
55143 2007-05-28  Eric Blake  <ebb9@byu.net>
55144
55145         * modules/closein-tests (test_closein_LDADD): Support test on
55146         cygwin with libtool.
55147
55148 2007-05-28  Bruno Haible  <bruno@clisp.org>
55149
55150         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55151         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55152         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55153         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55154         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55155         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55156         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55157         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55158         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55159
55160 2007-05-28  Eric Blake  <ebb9@byu.net>
55161
55162         Unconditionally include <config.h> in unit tests.
55163         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55164         * tests/test-allocsa.c, tests/test-arcfour.c,
55165         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55166         tests/test-array_list.c, tests/test-array_oset.c,
55167         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55168         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55169         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55170         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55171         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55172         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55173         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55174         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55175         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55176         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55177         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55178         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55179         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55180         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55181         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55182         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55183         test-md5.c, test-memmem.c, test-printf-posix.c,
55184         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55185         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55186         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55187         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55188         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55189         test-vasnprintf-posix2.c, test-vasnprintf.c,
55190         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55191         test-vfprintf-posix.c, test-vprintf-posix.c,
55192         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55193         test-xvasprintf.c: Likewise.
55194
55195 2007-05-28  Bruno Haible  <bruno@clisp.org>
55196
55197         * gnulib-tool (func_import): Remember the --with-tests command-line
55198         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55199         Reported by Eric Blake.
55200
55201 2007-05-28  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/ftell-tests: New file.
55204         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55205         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55206
55207         * lib/ftell.c: New file.
55208         * modules/ftell: New file.
55209         * m4/ftell.m4: New file.
55210         * doc/functions/ftell.texi: Update.
55211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55212         REPLACE_FTELL.
55213         * lib/stdio_.h (rpl_ftell): New declaration.
55214         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55215         REPLACE_FTELL.
55216
55217 2007-05-28  Eric Blake  <ebb9@byu.net>
55218
55219         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55220
55221 2007-05-28  Bruno Haible  <bruno@clisp.org>
55222
55223         * modules/fseek-tests: New file.
55224         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55225         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55226
55227         * lib/fseek.c: New file.
55228         * modules/fseek: New file.
55229         * m4/fseek.m4: New file.
55230         * doc/functions/fseek.texi: Update.
55231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55232         REPLACE_FSEEK.
55233         * lib/stdio_.h (rpl_fseek): New declaration.
55234         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55235         REPLACE_FSEEK.
55236
55237 2007-05-28  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/stdio_.h (fflush): More comments.
55240
55241 2007-05-28  Bruno Haible  <bruno@clisp.org>
55242
55243         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55244         runtime test.
55245
55246 2007-05-28  Eric Blake  <ebb9@byu.net>
55247
55248         Improve lseek module.
55249         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55250         * lib/unistd_.h (lseek): Scale back link warning message.
55251         * tests/test-lseek.c: Beef up test.
55252         * tests/test-lseek.sh: Exercise more facets of lseek.
55253         Reported by Bruno Haible.
55254
55255 2007-05-28  Bruno Haible  <bruno@clisp.org>
55256
55257         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55258         to define.
55259
55260 2007-05-27  Bruno Haible  <bruno@clisp.org>
55261
55262         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55263
55264 2007-05-27  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/openmp: New file.
55267         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55268         Noah Misch.
55269
55270 2007-05-26  Bruno Haible  <bruno@clisp.org>
55271
55272         * modules/chdir-long (Depends-on): Add fchdir.
55273         * modules/chdir-safer (Depends-on): Likewise.
55274         * modules/fts (Depends-on): Likewise.
55275         * modules/fts-lgpl (Depends-on): Likewise.
55276         * modules/openat (Depends-on): Likewise.
55277         * modules/savewd (Depends-on): Likewise.
55278
55279 2007-05-24  Eric Blake  <ebb9@byu.net>
55280
55281         Fix lseek on mingw.
55282         * modules/lseek: New module.
55283         * m4/lseek.m4: New file.
55284         * lib/lseek.c: New file.
55285         * modules/lseek-tests: New file.
55286         * tests/test-lseek.c: New file.
55287         * tests/test-lseek.sh: New file.
55288         * MODULES.html.sh: Document lseek module.
55289         * modules/fflush (Depends-on): Add lseek, fseeko.
55290         * modules/fseeko (Depends-on): Likewise.
55291         * modules/ftello (Depends-on): Likewise.
55292         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55293         broken.
55294         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55295         broken.
55296         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55297         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55298         * lib/ftello.c (rpl_ftello): Likewise.
55299         * tests/test-fseeko.c (main): Test this.
55300         * tests/test-fseeko.sh: Likewise.
55301         * tests/test-ftello.c (main): Likewise.
55302         * tests/test-ftello.sh: Likewise.
55303         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55304         implies replacing fseek.
55305         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55306         HAVE_FTELLO.
55307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55308         * modules/unistd (Makefile.am): Likewise.
55309         * lib/unistd_.h (lseek): Declare a replacement.
55310         * doc/functions/lseek.texi (lseek): Document this fix.
55311         * doc/functions/fseek.texi (fseek): Likewise.
55312         * doc/functions/ftell.texi (ftell): Likewise.
55313
55314 2007-05-24  Bruno Haible  <bruno@clisp.org>
55315
55316         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55317         in the printed representation of a NaN.
55318         * tests/test-vasprintf-posix.c (test_function): Likewise.
55319         * tests/test-snprintf-posix.h (test_function): Likewise.
55320         * tests/test-sprintf-posix.h (test_function): Likewise.
55321         Reported by Eric Blake.
55322
55323 2007-05-23  Eric Blake  <ebb9@byu.net>
55324
55325         Fix fseeko/ftello on cygwin 1.5.24.
55326         * doc/functions/fseeko.texi (fseeko): Document the fix.
55327         * doc/functions/ftello.texi (ftello): Document the fix.
55328         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55329         * doc/functions/stdout.text (stdout): New file.
55330         * doc/functions/stderr.text (stderr): New file.
55331         * doc/gnulib.texi (Function Substitutes): Use new files.
55332         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55333         prior to 1.7.0.
55334         * tests/test-ftello.c (main): Likewise for ftello.
55335         * tests/test-fseeko.sh: New file.
55336         * tests/test-ftello.sh: New file.
55337         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55338         with seekable stdin.
55339         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55341         (gl_REPLACE_FSEEKO): New macro.
55342         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55343         * modules/fseeko (Files): Distribute fseeko.c.
55344         * modules/ftello (Files): Distribute ftello.c.
55345         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55346         mode.
55347         * lib/ftello.c (rpl_ftello): New file.
55348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55349         fseeko, ftello.
55350         (gl_STDIN_LARGE_OFFSET): New macro.
55351         * modules/stdio (Makefile.am): Perform the replacement.
55352         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55353
55354 2007-05-23  Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55357         GNULIB_POSIXCHECK is defined.
55358
55359 2007-05-21  Bruno Haible  <bruno@clisp.org>
55360
55361         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55362         Check also the output for NaN arguments. When cross-compiling, guess
55363         no on IRIX.
55364         * lib/vasnprintf.c: Update comments.
55365         * tests/test-vasnprintf-posix.c (strisnan): New function.
55366         (test_function): Use it.
55367         * tests/test-vasprintf-posix.c (strisnan): New function.
55368         (test_function): Use it.
55369         * tests/test-snprintf-posix.h (strisnan): New function.
55370         (test_function): Use it.
55371         * tests/test-sprintf-posix.h (strisnan): New function.
55372         (test_function): Use it.
55373         Reported by Eric Blake.
55374
55375 2007-05-20  Bruno Haible  <bruno@clisp.org>
55376
55377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55378         numbers that fails on BeOS.
55379         * doc/functions/frexpl.texi: Update.
55380
55381 2007-05-20  Jim Meyering  <jim@meyering.net>
55382
55383         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55384         forced upon us by glibc-2.6.
55385
55386 2007-05-20  Bruno Haible  <bruno@clisp.org>
55387
55388         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55389         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55390         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55391         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55392         NEED_PRINTF_INFINITE.
55393         (is_infinitel): New function.
55394         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55396         gl_PREREQ_VASNPRINTF_INFINITE.
55397         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55399         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55400         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55401         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55402         gl_PREREQ_VASNPRINTF_INFINITE.
55403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55410         * doc/functions/fprintf.texi: Update.
55411         * doc/functions/printf.texi: Update.
55412         * doc/functions/snprintf.texi: Update.
55413         * doc/functions/sprintf.texi: Update.
55414         * doc/functions/vfprintf.texi: Update.
55415         * doc/functions/vprintf.texi: Update.
55416         * doc/functions/vsnprintf.texi: Update.
55417         * doc/functions/vsprintf.texi: Update.
55418
55419 2007-05-20  Bruno Haible  <bruno@clisp.org>
55420
55421         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55422         was not found in libc.
55423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55424
55425 2007-05-20  Bruno Haible  <bruno@clisp.org>
55426
55427         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55428         printed as "-nan" instead of "nan".
55429         * tests/test-vasprintf-posix.c (test_function): Likewise.
55430         * tests/test-snprintf-posix.h (test_function): Likewise.
55431         * tests/test-sprintf-posix.h (test_function): Likewise.
55432         Needed for HP-UX 11.
55433
55434 2007-05-20  Jim Meyering  <jim@meyering.net>
55435
55436         Fix buggy test for the fchownat-deref bug.
55437         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55438         symlink required for the run-test.  Without it, this test would
55439         always declare that fchownat doesn't work, and client code would
55440         unnecessarily use the replacement function with fixed libc.
55441         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55442         Reported by Greg Schafer.
55443
55444 2007-05-19  Bruno Haible  <bruno@clisp.org>
55445
55446         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55447         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55448         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55449         Needed for IRIX 6.5 and Solaris 2.5.1.
55450
55451 2007-05-19  Bruno Haible  <bruno@clisp.org>
55452
55453         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55454         (test_function): Skip tests involving -0.0 on platforms where
55455         -0.0 = 0.0.
55456         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55457         (test_function): Skip tests involving -0.0 on platforms where
55458         -0.0 = 0.0.
55459         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55460         (test_function): Skip tests involving -0.0 on platforms where
55461         -0.0 = 0.0.
55462         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55463         (test_function): Skip tests involving -0.0 on platforms where
55464         -0.0 = 0.0.
55465         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55466         tests.
55467         * tests/test-printf-posix.h (test_function): Likewise.
55468         * tests/test-printf-posix.output: Remove all -0.0 related results.
55469         Needed for IRIX 6.5.
55470
55471 2007-05-19  Bruno Haible  <bruno@clisp.org>
55472
55473         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55474         printed as "nan0x7fffffff" instead of "nan".
55475         * tests/test-vasprintf-posix.c (test_function): Likewise.
55476         * tests/test-snprintf-posix.h (test_function): Likewise.
55477         * tests/test-sprintf-posix.h (test_function): Likewise.
55478         * tests/test-fprintf-posix.h (NaN): Remove macro.
55479         (test_function): Remove all NaN related tests.
55480         * tests/test-printf-posix.h (NaN): Remove macro.
55481         (test_function): Remove all NaN related tests.
55482         * tests/test-printf-posix.output: Remove all NaN related results.
55483         Needed for IRIX 6.5.
55484
55485 2007-05-19  Bruno Haible  <bruno@clisp.org>
55486
55487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55489
55490 2007-05-19  Bruno Haible  <bruno@clisp.org>
55491
55492         * lib/float_.h: New file.
55493         * m4/float_h.m4: New file.
55494         * modules/float: New file.
55495         * modules/isnanl (Dependencies): Add float.
55496         * modules/isnanl-nolibm (Dependencies): Likewise.
55497         * modules/mathl (Dependencies): Likewise.
55498         * modules/printf-frexpl (Dependencies): Likewise.
55499         * modules/signbit (Dependencies): Likewise.
55500         * modules/vasnprintf (Dependencies): Likewise.
55501         * doc/headers/float.texi: Update.
55502
55503 2007-05-19  Jim Meyering  <jim@meyering.net>
55504
55505         * lib/utimens.c (gl_futimens): Rename from futimens,
55506         now that glibc-2.6 declares futimens.
55507         * lib/utimens.h: Likewise.
55508
55509 2007-05-19  Bruno Haible  <bruno@clisp.org>
55510
55511         Avoid test failures on mingw.
55512         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55513         * tests/test-printf-posix.sh: Likewise.
55514         * tests/test-vfprintf-posix.sh: Likewise.
55515         * tests/test-vprintf-posix.sh: Likewise.
55516
55517 2007-05-19  Bruno Haible  <bruno@clisp.org>
55518
55519         Fix *printf result for NaN, Inf, -0.0 on mingw.
55520         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55521         * lib/vasnprintf.c: Include math.h and isnan.h.
55522         (is_infinite_or_zero): New function.
55523         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55524         values in the %f, %F, %e, %E, %g, %G directives.
55525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55527         gl_PRINTF_INFINITE and test its result. Invoke
55528         gl_PREREQ_VASNPRINTF_INFINITE.
55529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55532         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55536         * doc/functions/fprintf.texi: Update.
55537         * doc/functions/printf.texi: Update.
55538         * doc/functions/snprintf.texi: Update.
55539         * doc/functions/sprintf.texi: Update.
55540         * doc/functions/vfprintf.texi: Update.
55541         * doc/functions/vprintf.texi: Update.
55542         * doc/functions/vsnprintf.texi: Update.
55543         * doc/functions/vsprintf.texi: Update.
55544
55545 2007-05-19  Bruno Haible  <bruno@clisp.org>
55546
55547         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55548         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55549         Instead of multiplying with 10^k, set extra_zeroes to k.
55550         (scale10_round_long_double): Remove function.
55551
55552 2007-05-18  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55555         introduced on 2007-05-06.
55556
55557 2007-05-18  Bruno Haible  <bruno@clisp.org>
55558
55559         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55560         %g directives.
55561         * tests/test-vasprintf-posix.c (test_function): Likewise.
55562         * tests/test-snprintf-posix.h (test_function): Likewise.
55563         * tests/test-sprintf-posix.h (test_function): Likewise.
55564
55565 2007-05-18  Bruno Haible  <bruno@clisp.org>
55566
55567         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55568         (strmatch): New function.
55569         (test_function): Test the %f directive on numbers of various exponents.
55570         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55571         (strmatch): New function.
55572         (test_function): Test the %f directive on numbers of various exponents.
55573         * tests/test-snprintf-posix.h (strmatch): New function.
55574         (test_function): Test the %f directive on numbers of various exponents.
55575         * tests/test-sprintf-posix.h (strmatch): New function.
55576         (test_function): Test the %f directive on numbers of various exponents.
55577         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55578         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55579         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55580         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55581
55582 2007-05-18  Bruno Haible  <bruno@clisp.org>
55583
55584         Add support for 'long double' number output.
55585         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55586         * lib/vasnprintf.c: Include math.h and float+.h.
55587         (mp_limb_t): New type.
55588         (GMP_LIMB_BITS): New macro.
55589         (mp_twolimb_t): New type.
55590         (GMP_TWOLIMB_BITS): New macro.
55591         (mpn_t): New type.
55592         (multiply, divide, convert_to_decimal, decode_long_double,
55593         scale10_round_long_double, scale10_round_decimal_long_double,
55594         floorlog10l): New functions.
55595         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55596         for the %f, %F, %e, %E, %g, %G directives.
55597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55598         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55599         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55600         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55601         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55602         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55603         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55605         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55607         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55608         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55609         * modules/snprintf-posix (Depends-on): Likewise.
55610         * modules/sprintf-posix (Depends-on): Likewise.
55611         * modules/vasnprintf-posix (Depends-on): Likewise.
55612         * modules/vasprintf-posix (Depends-on): Likewise.
55613         * modules/vfprintf-posix (Depends-on): Likewise.
55614         * modules/vsnprintf-posix (Depends-on): Likewise.
55615         * modules/vsprintf-posix (Depends-on): Likewise.
55616         * modules/vasnprintf (Files): Add lib/float+.h.
55617         * doc/functions/fprintf.texi: Update.
55618         * doc/functions/printf.texi: Update.
55619         * doc/functions/snprintf.texi: Update.
55620         * doc/functions/sprintf.texi: Update.
55621         * doc/functions/vfprintf.texi: Update.
55622         * doc/functions/vprintf.texi: Update.
55623         * doc/functions/vsnprintf.texi: Update.
55624         * doc/functions/vsprintf.texi: Update.
55625
55626 2007-05-18  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55629
55630 2007-05-18  Bruno Haible  <bruno@clisp.org>
55631
55632         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55633         for printing 64-bit integers. Needed for mingw.
55634
55635 2007-05-18  Bruno Haible  <bruno@clisp.org>
55636
55637         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55638         gl_FUNC_FREXPL_WORKS.
55639         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55640
55641 2007-05-18  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/frexpl-nolibm-tests: New file.
55644
55645         * modules/frexpl-nolibm: New file.
55646         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55647
55648 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55649
55650         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55651         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55652         GCC 4.2, which otherwise issues a lot of warnings.
55653         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55654         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55655         Likewise.
55656         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55657         * modules/iconv_open (iconv.h): Likewise.
55658         * modules/locale (locale.h): Likewise.
55659         * modules/netinet_in (netinet/in.h): Likewise.
55660         * modules/sys_select (sys_select.h): Likewise.
55661         * modules/sys_socket (sys/socket.h): Likewise.
55662         * modules/sys_stat (sys/stat.h): Likewise.
55663         * modules/sysexits (sysexits.h): Likewise.
55664         * modules/unistd (unistd.h): Likewise.
55665
55666 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55667
55668         * modules/closein-tests (Makefile.am): Distribute
55669         `test-closein.sh'.
55670
55671 2007-05-17  Bruno Haible  <bruno@clisp.org>
55672
55673         * tests/test-printf-posix.output: Renamed from
55674         tests/test-fprintf-posix.out.
55675         * modules/fprintf-posix-tests: Update.
55676         * modules/printf-posix-tests: Update.
55677         * modules/vfprintf-posix-tests: Update.
55678         * modules/vprintf-posix-tests: Update.
55679         * tests/test-fprintf-posix.sh: Update.
55680         * tests/test-printf-posix.sh: Update.
55681         * tests/test-vfprintf-posix.sh: Update.
55682         * tests/test-vprintf-posix.sh: Update.
55683         Reported by Ralf Wildenhues.
55684
55685 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55688         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55689         GCC 4.2, which otherwise issues a lot of warnings.
55690         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55691         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55692         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55693         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55694         it should no longer be needed.
55695         * lib/string_.h: Likewise.
55696         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55697         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55698         * modules/inttypes (inttypes.h): Likewise.
55699         * modules/math (math.h): Likewise.
55700         * modules/search (search.h): Likewise.
55701         * modules/signal (signal.h): Likewise.
55702         * modules/stdint (stdint.h): Likewise.
55703         * modules/stdio (stdio.h): Likewise.
55704         * modules/stdlib (stdlib.h): Likewise.
55705         * modules/string (string.h): Likewise.
55706         * modules/sys_time (sys/time.h): Likewise.
55707         * modules/time (time.h): Likewise.
55708         * modules/wchar (wchar.h): Likewise.
55709         * modules/wctype (wtype.h): Likewise.
55710
55711 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55712
55713         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55714
55715 2007-05-13  Bruno Haible  <bruno@clisp.org>
55716
55717         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55718         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55719         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55720         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55721         (gl_PREREQ_STRTOK_R): Don't require it here.
55722
55723 2007-05-13  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55726         when used in C++ mode.
55727
55728 2007-05-12  Bruno Haible  <bruno@clisp.org>
55729
55730         * lib/linebuffer.h: Tweak doc.
55731         * lib/linebuffer.c: Likewise.
55732
55733 2007-05-12  James Youngman  <jay@gnu.org>
55734
55735         * lib/linebuffer.c (readlinebuffer_delim): New function,
55736         like readlinebuffer, but use a caller-specified delimiter.
55737         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55738         as the delimiter.
55739         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55740
55741 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55742
55743         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55744         * modules/openat (Files): Remove openat-die.c.
55745         (Depends-on): Add openat-die.
55746         * modules/openat-die: New module.
55747
55748 2007-05-06  Bruno Haible  <bruno@clisp.org>
55749
55750         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55751         Update with info about Cygwin.
55752         * doc/functions/fprintf.texi: Update.
55753         * doc/functions/printf.texi: Update.
55754         * doc/functions/snprintf.texi: Update.
55755         * doc/functions/sprintf.texi: Update.
55756         * doc/functions/vfprintf.texi: Update.
55757         * doc/functions/vprintf.texi: Update.
55758         * doc/functions/vsnprintf.texi: Update.
55759         * doc/functions/vsprintf.texi: Update.
55760         Reported by Eric Blake.
55761
55762 2007-05-06  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55765         padding ourselves for the floating-point directives.
55766         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55769         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55770         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55778         * tests/test-snprintf-posix.h (test_function): Also check the width
55779         and some flags in the %f directive.
55780         * tests/test-sprintf-posix.h (test_function): Likewise.
55781         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55782         * tests/test-vasprintf-posix.c (test_function): Likewise.
55783         * doc/functions/fprintf.texi: Update.
55784         * doc/functions/printf.texi: Update.
55785         * doc/functions/snprintf.texi: Update.
55786         * doc/functions/sprintf.texi: Update.
55787         * doc/functions/vfprintf.texi: Update.
55788         * doc/functions/vprintf.texi: Update.
55789         * doc/functions/vsnprintf.texi: Update.
55790         * doc/functions/vsprintf.texi: Update.
55791
55792 2007-05-06  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55795         pass the ' flag character to sprintf or snprintf.
55796         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55799         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55800         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55808         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55809         flag.
55810         * tests/test-sprintf-posix.h (test_function): Likewise.
55811         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55812         * tests/test-vasprintf-posix.c (test_function): Likewise.
55813         * doc/functions/fprintf.texi: Update.
55814         * doc/functions/printf.texi: Update.
55815         * doc/functions/snprintf.texi: Update.
55816         * doc/functions/sprintf.texi: Update.
55817         * doc/functions/vfprintf.texi: Update.
55818         * doc/functions/vprintf.texi: Update.
55819         * doc/functions/vsnprintf.texi: Update.
55820         * doc/functions/vsprintf.texi: Update.
55821
55822 2007-05-01  Bruno Haible  <bruno@clisp.org>
55823
55824         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55825
55826 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55829         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55830
55831 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55832
55833         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55834         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55836
55837 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55838
55839         * lib/argp-help.c (struct hol_entry): New member `ord'.
55840         (HOL_ENTRY_PTRCMP): Use ord for comparison
55841         (hol_sort): Initialize ord.
55842
55843 2007-05-01  Bruno Haible  <bruno@clisp.org>
55844
55845         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55846         Reported by Eric Blake.
55847         * doc/gnulib.texi (Function Substitutes): Update.
55848
55849 2007-05-01  Bruno Haible  <bruno@clisp.org>
55850
55851         * doc/functions.texi: Remove file, now redundant through
55852         doc/functions/*.texi.
55853
55854 2007-05-01  Bruno Haible  <bruno@clisp.org>
55855
55856         * modules/argp (Depends-on): Add sleep.
55857
55858 2007-05-01  Bruno Haible  <bruno@clisp.org>
55859
55860         * modules/sleep-tests: New file.
55861         * tests/test-sleep.c: New file.
55862
55863         * modules/sleep: New file.
55864         * lib/sleep.c: New file.
55865         * m4/sleep.m4: New file.
55866         * lib/unistd_.h (sleep): New declaration.
55867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55868         HAVE_SLEEP.
55869         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55870         * doc/functions/sleep.texi: Document the sleep module.
55871
55872 2007-05-01  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/sigprocmask.h: Remove file.
55875         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55876         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55877         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55878         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55879         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55880         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55881         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55882         HAVE_SIGSET_T as a shell variable.
55883         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55884         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55885         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55886         (Depends-on): Add signal. Remove verify.
55887         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55888         (Include): Mention <signal.h> instead of sigprocmask.h.
55889         * NEWS: Mention the change.
55890         * lib/fatal-signal.c: Don't include sigprocmask.h.
55891
55892 2007-05-01  Bruno Haible  <bruno@clisp.org>
55893
55894         * modules/signal: New file.
55895         * lib/signal_.h: New file.
55896         * m4/signal_h.m4: New file.
55897
55898 2007-05-01  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55901         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55902         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55903         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55904
55905 2007-05-01  Bruno Haible  <bruno@clisp.org>
55906
55907         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55908         configure time.
55909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55910         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55911         * modules/sys_stat (Makefile.am): Substitute their values into
55912         sys/stat.h.
55913
55914 2007-05-01  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55917         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55918         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55919
55920 2007-05-01  Bruno Haible  <bruno@clisp.org>
55921
55922         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55923         'assert' module here.
55924
55925 2007-05-01  Bruno Haible  <bruno@clisp.org>
55926
55927         * doc/functions/*.texi: New files.
55928         * doc/functions/google-ranking.txt: New file.
55929         * doc/gnulib.texi (Function Substitutes): New chapter.
55930         (ctime, inet_ntoa): Remove sections.
55931         * doc/ctime.texi: Remove file.
55932         * doc/inet_ntoa.texi: Remove file.
55933         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55934         dependencies.
55935         (%.info): New rule, specifying a --reference-limit.
55936
55937 2007-05-01  Bruno Haible  <bruno@clisp.org>
55938
55939         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55940
55941 2007-05-01  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55944         the portability of 'mkdir' to mingw systems.
55945
55946 2007-05-01  Bruno Haible  <bruno@clisp.org>
55947
55948         * doc/headers/google-ranking.txt: New file.
55949
55950 2007-04-30  Eric Blake  <ebb9@byu.net>
55951
55952         Prefer fseeko to fseek.
55953         * modules/getpass (Depends-on): Add fseeko.
55954         * lib/getpass.c (getpass): Use fseeko, not fseek.
55955
55956 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55957
55958         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55959         assumes the sorting is stable, while most qsort implementations
55960         are not.  Use argument addresses to ensure they never compare as
55961         equal.
55962
55963         * tests/test-argp-2.sh (usage-indent test): Fix output
55964         (func_compare): Restore diff options
55965         * tests/test-argp.c: Restore #include "progname.h"
55966
55967 2007-04-29  Bruno Haible  <bruno@clisp.org>
55968
55969         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55971         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55973         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55974         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55975         (TESTS, check_PROGRAMS): Add test-snprintf.
55976         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55977         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55978         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55979         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55980         assertions that fail on HP-UX, OSF/1, or IRIX.
55981         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55982
55983 2007-04-29  Bruno Haible  <bruno@clisp.org>
55984
55985         * MODULES.html.sh (posix_functions): Remove 'contents'.
55986
55987 2007-04-29  Karl Berry  <karl@gnu.org>
55988
55989         * config/srclist.txt (gendocs_template_min): new entry.
55990
55991 2007-04-29  Bruno Haible  <bruno@clisp.org>
55992
55993         Work around fpurge bug on BSD systems.
55994         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55996         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55997         fpurge to rpl_fpurge if the system already has this function.
55998         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55999         the case where the system already has this function. Correct invariants
56000         on BSD systems.
56001         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56002         BSD systems.
56003
56004 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56005
56006         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56007         proposed by Sven Verdoolaege.
56008
56009         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56010         options.
56011         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56012         (usage and help tests): Update
56013
56014 2007-04-29  Bruno Haible  <bruno@clisp.org>
56015
56016         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56017         Print more information in case of failure. Disable a test on BeOS.
56018
56019 2007-04-29  Bruno Haible  <bruno@clisp.org>
56020
56021         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56022         This helps debugging on systems on which no gdb is available.
56023
56024 2007-04-29  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/freading.h: Improve comments.
56027         * lib/fwriting.h: Likewise.
56028         * tests/test-freading.c (main): Don't check freading immediately after
56029         repositioning. Needed for glibc.
56030
56031 2007-04-29  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/freading.c (freading): Trivial simplification.
56034
56035 2007-04-28  Bruno Haible  <bruno@clisp.org>
56036
56037         * tests/test-fwriting.c (main): Also test the interaction between
56038         fflush and fwriting.
56039         * modules/fwriting-tests (Depends-on): Add fflush.
56040
56041         * tests/test-freading.c (main): Also test the interaction between
56042         fflush and freading.
56043         * modules/freading-tests (Depends-on): Add fflush.
56044
56045 2007-04-28  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56048         fseeko and ftello.
56049         Suggested by Eric Blake.
56050
56051 2007-04-28  Jim Meyering  <jim@meyering.net>
56052
56053         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56054         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56055         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56056
56057 2007-04-27  Eric Blake  <ebb9@byu.net>
56058
56059         * doc/headers/assert.texi (assert.h): Document assert module use.
56060
56061 2007-04-27  Bruno Haible  <bruno@clisp.org>
56062
56063         * doc/headers/*.texi: New files.
56064         * doc/gnulib.texi (Header File Substitutes): New chapter.
56065         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56066         dependencies.
56067         (standards.info ,standards.html, standards.dvi): Update dependencies.
56068         (mostlyclean, clean): New targets.
56069
56070 2007-04-27  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56073         * modules/sysexits (Files, Makefile.am): Update.
56074
56075         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56076         * modules/sys_socket (Files, Makefile.am): Update.
56077
56078         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56079         * modules/sys_stat (Files, Makefile.am): Update.
56080
56081 2007-04-27  Eric Blake  <ebb9@byu.net>
56082
56083         * lib/freading.h: Improve comments.
56084         * lib/fwriting.h: Likewise.
56085         * lib/fflush.c: Likewise.
56086
56087         Fix closein for mingw.
56088         * modules/closein-tests: Add tests for closein.
56089         * tests/test-closein.c: New file.
56090         * tests/test-closein.sh: Likewise.
56091         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56092         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56093
56094 2007-04-27  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56097         version is < 6.
56098         * lib/math_.h [__DECC]: Likewise.
56099         * lib/stdio_.h [__DECC]: Likewise.
56100         * lib/stdlib_.h [__DECC]: Likewise.
56101         * lib/string_.h [__DECC]: Likewise.
56102         * lib/time_.h [__DECC]: Likewise.
56103         * lib/wchar_.h [__DECC]: Likewise.
56104         * lib/wctype_.h [__DECC]: Likewise.
56105
56106 2007-04-27  Bruno Haible  <bruno@clisp.org>
56107
56108         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56109
56110 2007-04-27  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/fflush.c: Add comments.
56113         * modules/fpurge-tests (Depends-on): Add fflush.
56114         * modules/freadable-tests (Depends-on): Likewise.
56115         * modules/fwritable-tests (Depends-on): Likewise.
56116
56117 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56118
56119         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56120         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56121         Report by Bruno Haible <bruno@clisp.org>.
56122
56123 2007-04-26  Eric Blake  <ebb9@byu.net>
56124
56125         Fix fflush on mingw.
56126         * modules/fflush (Depends-on): Add freading.
56127         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56128         but unread data.
56129
56130 2007-04-26  Eric Blake  <ebb9@byu.net>
56131         and Bruno Haible  <bruno@clisp.org>
56132
56133         Implement freading and fwriting.
56134         * lib/freading.c: New file.
56135         * lib/freading.h: Likewise.
56136         * m4/freading.m4: Likewise.
56137         * modules/freading: Likewise.
56138         * modules/freading-tests: Likewise.
56139         * tests/test-freading.c: Likewise.
56140         * lib/fwriting.c: New file.
56141         * lib/fwriting.h: Likewise.
56142         * m4/fwriting.m4: Likewise.
56143         * modules/fwriting: Likewise.
56144         * modules/fwriting-tests: Likewise.
56145         * tests/test-fwriting.c: Likewise.
56146         * MODULES.html.sh (File stream based Input/Output): Mention them.
56147
56148 2007-04-26  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56151         'long' when we assume it.
56152         Suggested by Eric Blake.
56153
56154 2007-04-26  Bruno Haible  <bruno@clisp.org>
56155
56156         Ensure fseeko, ftello are declared on glibc systems.
56157         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56158         * modules/fseeko (configure.ac-early): Likewise.
56159         * modules/ftello (configure.ac-early): Likewise.
56160         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56161         AC_FUNC_FSEEKO for this.
56162         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56163         (gl_CHECK_FSEEKO): Remove macro.
56164
56165 2007-04-26  Bruno Haible  <bruno@clisp.org>
56166
56167         * tests/test-fflush.c (main): Also check the ftell result after
56168         fflush and fseek/fseeko.
56169         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56170         file descriptor position cache in the stream.
56171         * lib/fseeko.c (rpl_fseeko): Likewise.
56172
56173 2007-04-26  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/fflush-tests (Depends-on): Add fseeko.
56176
56177 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56178             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56179
56180         * lib/argz_.h: ensure error_t definition is obtained in same
56181         mechanism system argz.h would have.
56182         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56183         argz facilities are known bad.  Err on the side of caution if
56184         cross-compiling.
56185
56186 2007-04-25  Eric Blake  <ebb9@byu.net>
56187
56188         * lib/fpurge.c (includes): Use stdlib.h for free.
56189         * tests/test-fflush.c (main): Also test fflush-fseeko.
56190
56191 2007-04-25  Bruno Haible  <bruno@clisp.org>
56192
56193         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56194         * lib/fseeko.c: New file.
56195         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56196         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56197         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56198         gl_FUNC_FSEEKO.
56199         (gl_FUNC_FSEEKO): Invoke it.
56200         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56201         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56202         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56203
56204 2007-04-25  Bruno Haible  <bruno@clisp.org>
56205
56206         * modules/fflush (Depends-on): Add ftello.
56207
56208 2007-04-25  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/ftello-tests: New file.
56211         * tests/test-ftello.c: New file.
56212
56213         * modules/ftello: New file.
56214         * m4/ftello.m4: New file.
56215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56216         HAVE_FTELLO.
56217         * lib/stdio_.h (ftello): New declaration.
56218         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56219         HAVE_FTELLO.
56220
56221 2007-04-25  Bruno Haible  <bruno@clisp.org>
56222
56223         * modules/fseeko-tests: New file.
56224         * tests/test-fseeko.c: New file.
56225
56226         * modules/fseeko: New file.
56227         * m4/fseeko.m4: New file.
56228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56229         HAVE_FSEEKO.
56230         * lib/stdio_.h (fseeko): New declaration.
56231         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56232         HAVE_FSEEKO.
56233
56234 2007-04-25  Bruno Haible  <bruno@clisp.org>
56235
56236         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56237
56238 2007-04-25  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56241         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56242         * tests/test-unistd.c: Likewise.
56243         * tests/test-fcntl.c: Likewise.
56244
56245 2007-04-23  Eric Blake  <ebb9@byu.net>
56246
56247         * lib/fflush.c: Fix missing include.
56248         Reported by Bruno Haible.
56249
56250 2007-04-23  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56253         Reported by Eric Blake.
56254
56255 2007-04-23  Bruno Haible  <bruno@clisp.org>
56256
56257         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56258
56259 2007-04-23  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56262
56263 2007-04-23  Bruno Haible  <bruno@clisp.org>
56264
56265         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56266         Needed on HP-UX 11.
56267
56268 2007-04-16  Eric Blake  <ebb9@byu.net>
56269
56270         Make fflush rely on fpurge.
56271         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56272         open coding all variants.
56273         * modules/fflush (Depends-on): Add fpurge and unistd.
56274         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56275         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56276
56277         Fix --with-tests compilation on cygwin.
56278         * modules/argmatch-tests (Makefile.am): List gnulib library first
56279         in LDADD.
56280         * modules/argp-tests (Makefile.am): Likewise.
56281         * modules/array-list-tests (Makefile.am): Likewise.
56282         * modules/array-oset-tests (Makefile.am): Likewise.
56283         * modules/avltree-list-tests (Makefile.am): Likewise.
56284         * modules/avltree-oset-tests (Makefile.am): Likewise.
56285         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56286         * modules/carray-list-tests (Makefile.am): Likewise.
56287         * modules/dirname-tests (Makefile.am): Likewise.
56288         * modules/frexp-tests (Makefile.am): Likewise.
56289         * modules/isnanl-tests (Makefile.am): Likewise.
56290         * modules/linked-list-tests (Makefile.am): Likewise.
56291         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56292         * modules/lock-tests (Makefile.am): Likewise.
56293         * modules/rbtree-list-tests (Makefile.am): Likewise.
56294         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56295         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56296         * modules/tls-tests (Makefile.am): Likewise.
56297         * modules/tsearch-tests (Makefile.am): Likewise.
56298         * modules/xvasprintf-tests (Makefile.am): Likewise.
56299
56300         Fix fpurge for cygwin.
56301         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56302         value.
56303         * modules/fpurge-tests (Depends-on): Clean up trash.
56304
56305 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56306
56307         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56308
56309         * m4/autobuild.m4: Re-indent.
56310
56311 2007-04-13  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/fpurge-tests: New file.
56314         * tests/test-fpurge.c: New file.
56315
56316         * modules/fpurge: New file.
56317         * lib/fpurge.h: New file.
56318         * lib/fpurge.c: New file.
56319         * m4/fpurge.m4: New file.
56320
56321 2007-04-13  Bruno Haible  <bruno@clisp.org>
56322
56323         * modules/fbufmode-tests: New file.
56324         * tests/test-fbufmode.c: New file.
56325
56326         * modules/fbufmode: New file.
56327         * lib/fbufmode.h: New file.
56328         * lib/fbufmode.c: New file.
56329         * m4/fbufmode.m4: New file.
56330
56331 2007-04-13  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/fwritable-tests: New file.
56334         * tests/test-fwritable.c: New file.
56335
56336         * modules/fwritable: New file.
56337         * lib/fwritable.h: New file.
56338         * lib/fwritable.c: New file.
56339         * m4/fwritable.m4: New file.
56340
56341 2007-04-13  Bruno Haible  <bruno@clisp.org>
56342
56343         * modules/freadable-tests: New file.
56344         * tests/test-freadable.c: New file.
56345
56346         * modules/freadable: New file.
56347         * lib/freadable.h: New file.
56348         * lib/freadable.c: New file.
56349         * m4/freadable.m4: New file.
56350
56351 2007-04-13  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56354         MOSTLYCLEANFILES.
56355
56356 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56357
56358         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56359         gzip bootstrap.conf to avoid dragging in i18n machinery.
56360         (gnulib_tool_option): Use it.
56361
56362 2007-04-13  Bruno Haible  <bruno@clisp.org>
56363
56364         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56365         %F directives.
56366         * tests/test-vasprintf-posix.c (test_function): Likewise.
56367         * tests/test-snprintf-posix.h (test_function): Likewise.
56368         * tests/test-sprintf-posix.h (test_function): Likewise.
56369         * tests/test-fprintf-posix.h (test_function): Likewise.
56370         * tests/test-printf-posix.h (test_function): Likewise.
56371         * tests/test-fprintf-posix.out: Likewise.
56372
56373 2007-04-13  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56376         * modules/tls-tests (configure.ac): Likewise.
56377         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56378
56379 2007-04-13  Bruno Haible  <bruno@clisp.org>
56380
56381         * lib/tls.c (glthread_tls_get): Fix return type.
56382         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56383
56384 2007-04-12  Eric Blake  <ebb9@byu.net>
56385
56386         * modules/gettime (Depends-on): Remove gettime.
56387         Reported by Dmitry V. Levin.
56388
56389 2007-04-12  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/fflush (Include): Mention <stdio.h>.
56392         * modules/strtoimax (Include): Mention <inttypes.h>.
56393         * modules/strtoumax (Include): Likewise.
56394
56395 2007-04-12  Eric Blake  <ebb9@byu.net>
56396
56397         * .cvsignore: New file.
56398         * .gitignore: Likewise.
56399
56400 2007-04-12  Bruno Haible  <bruno@clisp.org>
56401
56402         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56403         not before, since $(LDADD) often contains libgnu.a.
56404         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56405         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56406         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56407         Needed on Cygwin.
56408
56409 2007-04-12  Eric Blake  <ebb9@byu.net>
56410
56411         Work around glibc's failure to flush stdin on fclose.
56412         * lib/closein.c (close_stdin): Flush stdin before closing.
56413
56414         Work around glibc's failure to reset seekable stdin on exit.
56415         * modules/closein: New module.
56416         * lib/closein.c: New file.
56417         * lib/closein.h: Likewise.
56418         * m4/closein.m4: Likewise.
56419         * MODULES.html.sh (File stream based Input/Output): Document it.
56420
56421 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56422
56423         * gnulib-tool: Rename generated 'autobuild' script to
56424         'do-autobuild' in --create-megatestdir output.
56425
56426         * doc/gnulib.texi (Build robot for gnulib): Fix.
56427
56428 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56429
56430         * modules/sysexits (Depends-on): Add absolute-header.
56431
56432 2007-04-12  Eric Blake  <ebb9@byu.net>
56433
56434         No need to preserve errno on success.
56435         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56436         Reported by Bruno Haible.
56437
56438 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56439
56440         * MODULES.html.sh (Support for maintaining and releasing
56441         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56442
56443 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56444
56445         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56446
56447 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56448
56449         * modules/autobuild: New module.
56450
56451         * m4/autobuild.m4: New file.
56452
56453 2007-04-11  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56456         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56468         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56472         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56473         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56475         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56476         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56478         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56479         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56480         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56481         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56482         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56483         Reported by Eric Blake.
56484
56485 2007-04-11  Bruno Haible  <bruno@clisp.org>
56486
56487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56488
56489 2007-04-10  Bruno Haible  <bruno@clisp.org>
56490
56491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56492         for NaN and Infinity. Needed on FreeBSD 6.1.
56493         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56494         regarding results for "%010a" of Infinity and NaN.
56495         * tests/test-vasprintf-posix.c (test_function): Likewise.
56496         * tests/test-snprintf-posix.h (test_function): Likewise.
56497         * tests/test-sprintf-posix.h (test_function): Likewise.
56498         * tests/test-fprintf-posix.h (test_function): Likewise.
56499         * tests/test-printf-posix.h (test_function): Likewise.
56500         * tests/test-fprintf-posix.out: Likewise.
56501
56502 2007-04-10  Bruno Haible  <bruno@clisp.org>
56503
56504         * modules/locale-tests: New file.
56505         * tests/test-locale.c: New file.
56506
56507         * modules/locale: New file.
56508         * lib/locale_.h: New file.
56509         * m4/locale_h.m4: New file.
56510
56511 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56512             Bruno Haible  <bruno@clisp.org>
56513
56514         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56515         be determined, test for availability of the copysignf, copysign,
56516         copysignl functions.
56517         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56518         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56519         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56520
56521 2007-04-09  Eric Blake  <ebb9@byu.net>
56522
56523         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56524         * modules/stdio (Makefile.am): Support fflush.
56525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56526         * modules/fflush: New file.
56527         * lib/fflush.c: Likewise.
56528         * m4/fflush.m4: Likewise.
56529         * modules/fflush-tests: New test.
56530         * tests/test-fflush.c: Likewise.
56531         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56532
56533 2007-04-06  Bruno Haible  <bruno@clisp.org>
56534
56535         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56536         (VASNPRINTF): Use signbit for faster determination whether to print a
56537         minus sign.
56538         * modules/vasnprintf (Files): Remove lib/float+.h.
56539         * modules/fprintf-posix (Depends-on): Add signbit.
56540         * modules/snprintf-posix (Depends-on): Likewise.
56541         * modules/sprintf-posix (Depends-on): Likewise.
56542         * modules/vasnprintf-posix (Depends-on): Likewise.
56543         * modules/vasprintf-posix (Depends-on): Likewise.
56544         * modules/vfprintf-posix (Depends-on): Likewise.
56545         * modules/vsnprintf-posix (Depends-on): Likewise.
56546         * modules/vsprintf-posix (Depends-on): Likewise.
56547
56548 2007-04-06  Bruno Haible  <bruno@clisp.org>
56549
56550         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56551         * tests/test-frexpl.c (main): Likewise.
56552         * tests/test-ldexpl.c (main): Likewise.
56553         * modules/frexp-tests (Depends-on): Add signbit.
56554         * modules/frexpl-tests (Depdends-on): Likewise.
56555         * modules/ldexpl-tests (Depdends-on): Likewise.
56556
56557 2007-04-06  Bruno Haible  <bruno@clisp.org>
56558
56559         * modules/signbit-tests: New file.
56560         * tests/test-signbit.c: New file.
56561
56562         * modules/signbit: New file.
56563         * lib/signbitf.c: New file.
56564         * lib/signbitd.c: New file.
56565         * lib/signbitl.c: New file.
56566         * m4/signbit.m4: New file.
56567         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56568         (signbit): New macro.
56569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56570         REPLACE_SIGNBIT.
56571         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56572         REPLACE_FREXPL into math.h.
56573
56574 2007-04-06  Bruno Haible  <bruno@clisp.org>
56575
56576         * modules/isnanf-nolibm-tests: New file.
56577         * tests/test-isnanf.c: New file.
56578
56579         * modules/isnanf-nolibm: New file.
56580         * lib/isnanf.h: New file.
56581         * lib/isnanf.c: New file.
56582         * lib/isnan.c: Consider the USE_FLOAT macro.
56583         * m4/isnanf.m4: New file.
56584
56585 2007-04-06  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56588         (Link): New section.
56589
56590         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56591
56592 2007-04-06  Bruno Haible  <bruno@clisp.org>
56593
56594         Assume the 'long double' type.
56595         * m4/longdouble.m4: Remove file.
56596         * config/srclist.txt: Don't mention longdouble.m4.
56597         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56598         * lib/float+.h: Likewise.
56599         * lib/frexp.c: Likewise.
56600         * lib/printf-args.h: Likewise.
56601         * lib/printf-args.c: Likewise.
56602         * lib/printf-frexp.c: Likewise.
56603         * lib/printf-parse.c: Likewise.
56604         * lib/vasnprintf.c: Likewise.
56605         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56606         * m4/intl.m4: Likewise.
56607         * m4/isnanl.m4: Likewise.
56608         * m4/printf.m4: Likewise.
56609         * m4/printf-frexpl.m4: Likewise.
56610         * m4/vasnprintf.m4: Likewise.
56611         * modules/allocsa (Files): Remove m4/longdouble.m4.
56612         * modules/gettext (Files): Likewise.
56613         * modules/relocatable-prog-wrapper (Files): Likewise.
56614         * modules/vasnprintf (Files): Likewise.
56615         * modules/isnanl (Files): Likewise.
56616         (Include): Simplify.
56617         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56618         (Include): Simplify.
56619         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56620         (Include): Simplify.
56621         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56622         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56623         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56624         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56625         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56626         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56627         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56628         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56629         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56630         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56631         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56632         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56633         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56634         * tests/test-isnanl.c: Likewise.
56635         * tests/test-snprintf-posix.h: Likewise.
56636         * tests/test-sprintf-posix.h: Likewise.
56637         * tests/test-vasnprintf-posix.c: Likewise.
56638         * tests/test-vasnprintf-posix2.c: Likewise.
56639         * tests/test-vasprintf-posix.c: Likewise.
56640
56641 2007-04-06  Bruno Haible  <bruno@clisp.org>
56642
56643         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56644         * lib/math_.h [__DECC]: Include the overridden include file through
56645         #include_next, outside the double-inclusion guard.
56646         * lib/stdio_.h [__DECC]: Likewise.
56647         * lib/stdlib_.h [__DECC]: Likewise.
56648         * lib/string_.h [__DECC]: Likewise.
56649         * lib/time_.h [__DECC]: Likewise.
56650         * lib/wchar_.h [__DECC]: Likewise.
56651         * lib/wctype_.h [__DECC]: Likewise.
56652         * lib/inttypes_.h [__DECC]: Likewise.
56653         Reported by Albert Chin <china@thewrittenword.com> in
56654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56655
56656 2007-04-04  Eric Blake  <ebb9@byu.net>
56657
56658         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56659         1.5.x.
56660
56661 2007-04-04  Bruno Haible  <bruno@clisp.org>
56662
56663         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56664         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56665
56666 2007-04-04  Bruno Haible  <bruno@clisp.org>
56667
56668         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56669         results for "%010a" of Infinity and NaN.
56670         * tests/test-vasprintf-posix.c (test_function): Likewise.
56671         * tests/test-snprintf-posix.h (test_function): Likewise.
56672         * tests/test-sprintf-posix.h (test_function): Likewise.
56673         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56674         * tests/test-printf-posix.h (test_function): Likewise.
56675         * tests/test-fprintf-posix.out: Update.
56676         Needed for FreeBSD 6.1.
56677
56678 2007-04-04  Bruno Haible  <bruno@clisp.org>
56679
56680         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56681         directly used by the gnulib modules nor by gnulib-tool.
56682
56683 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56684
56685         * DEPENDENCIES: Give overall description of version dependency
56686         desirability.  Use more-typical names for apps.
56687         Add shell, coreutils, diffutils, grep, tar, gzip.
56688
56689 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56690
56691         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56692
56693 2007-04-04  Karl Berry  <karl@gnu.org>
56694
56695         * MODULES.html.sh (func_module): missing '.
56696
56697 2007-04-03  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/argmatch-tests (Makefile.am): New variable
56700         test_argmatch_LDADD.
56701         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56702         * modules/array-list-tests (Makefile.am): New variable
56703         test_array_list_LDADD.
56704         * modules/array-oset-tests (Makefile.am): New variable
56705         test_array_oset_LDADD.
56706         * modules/avltree-list-tests (Makefile.am): New variable
56707         test_avltree_list_LDADD.
56708         * modules/avltree-oset-tests (Makefile.am): New variable
56709         test_avltree_oset_LDADD.
56710         * modules/avltreehash-list-tests (Makefile.am): New variable
56711         test_avltreehash_list_LDADD.
56712         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56713         test_canonicalize_lgpl_LDADD.
56714         * modules/carray-list-tests (Makefile.am): New variable
56715         test_carray_list_LDADD.
56716         * modules/dirname-tests (Makefile.am): New variable
56717         test_dirname_LDADD.
56718         * modules/linked-list-tests (Makefile.am): New variable
56719         test_linked_list_LDADD.
56720         * modules/linkedhash-list-tests (Makefile.am): New variable
56721         test_linkedhash_list_LDADD.
56722         * modules/rbtree-list-tests (Makefile.am): New variable
56723         test_rbtree_list_LDADD.
56724         * modules/rbtree-oset-tests (Makefile.am): New variable
56725         test_rbtree_oset_LDADD.
56726         * modules/rbtreehash-list-tests (Makefile.am): New variable
56727         test_rbtreehash_list_LDADD.
56728         * modules/xvasprintf-tests (Makefile.am): New variable
56729         test_xvasprintf_LDADD.
56730         Reported by Eric Blake.
56731
56732 2007-04-03  Eric Blake  <ebb9@byu.net>
56733
56734         * DEPENDENCIES: Weaken m4 requirements.
56735
56736 2007-04-03  Bruno Haible  <bruno@clisp.org>
56737
56738         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56739         * modules/isnanl-tests (configure.ac): Likewise.
56740
56741 2007-04-03  Ben Pfaff  <blp@gnu.org>
56742
56743         * modules/iconv_open: Add $(srcdir)/ to source directory
56744         references in Makefile fragments that call gperf, to fix VPATH
56745         builds.
56746
56747 2007-04-03  Bruno Haible  <bruno@clisp.org>
56748
56749         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56750         * lib/ldexpl.c: Undo last change.
56751
56752 2007-04-03  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/printf-frexpl (Depends-on): Undo last change.
56755         (Files): Add m4/ldexpl.m4.
56756
56757 2007-04-03  Bruno Haible  <bruno@clisp.org>
56758
56759         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56760         * modules/isnanl (Link): New section.
56761
56762         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56763         * modules/frexp (Link): New section.
56764
56765         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56766         * modules/frexpl (Link): New section.
56767
56768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56769         * modules/ldexpl (Link): New section.
56770
56771 2007-04-03  Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/TEMPLATE-EXTENDED: New file.
56774         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56775
56776 2007-04-03  Bruno Haible  <bruno@clisp.org>
56777
56778         * DEPENDENCIES: New file.
56779         Suggested by Simon Josefsson.
56780
56781 2007-04-03  Bruno Haible  <bruno@clisp.org>
56782
56783         * doc/gnulib.texi: Escape @.
56784
56785 2007-04-03  James Youngman  <jay@gnu.org>
56786         and Paul Eggert  <eggert@cs.ucla.edu>
56787
56788         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56789         birthtime on all systems that have birthtime, not just those which
56790         use st_birthtimensec rather than st_birthtim.  Putting zero in
56791         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56792         that the birth time is not available for files on an NFS mount.
56793
56794 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56795
56796         * modules/memxor: Move back from crypto/, suggested by Bruno.
56797         * modules/crypto/hmac-sha1: Fix memxor dependency.
56798
56799         * modules/crypto/gc: Moved from ../.
56800
56801 2007-04-02  Eric Blake  <ebb9@byu.net>
56802
56803         * lib/ldexpl.c (includes): Avoid libm.
56804
56805         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56806
56807 2007-04-02  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56810         on IRIX.
56811
56812 2007-04-02  Bruno Haible  <bruno@clisp.org>
56813
56814         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56815         x86 or x86_64 platforms running MacOS X.
56816         Reported by Ryan Schmidt <@ryandesign.com>.
56817
56818 2007-04-02  Bruno Haible  <bruno@clisp.org>
56819
56820         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56821         i386.
56822
56823 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56824
56825         * modules/crypto/arcfour: Moved from ../.
56826         * modules/crypto/arcfour-tests: Moved from ../.
56827         * modules/crypto/arctwo: Moved from ../.
56828         * modules/crypto/arctwo-tests: Moved from ../.
56829         * modules/crypto/des: Moved from ../.
56830         * modules/crypto/des-tests: Moved from ../.
56831         * modules/crypto/gc-arcfour: Moved from ../.
56832         * modules/crypto/gc-arcfour-tests: Moved from ../.
56833         * modules/crypto/gc-arctwo: Moved from ../.
56834         * modules/crypto/gc-arctwo-tests: Moved from ../.
56835         * modules/crypto/gc-des: Moved from ../.
56836         * modules/crypto/gc-des-tests: Moved from ../.
56837         * modules/crypto/gc-hmac-md5: Moved from ../.
56838         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56839         * modules/crypto/gc-hmac-sha1: Moved from ../.
56840         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56841         * modules/crypto/gc-md2: Moved from ../.
56842         * modules/crypto/gc-md2-tests: Moved from ../.
56843         * modules/crypto/gc-md4: Moved from ../.
56844         * modules/crypto/gc-md4-tests: Moved from ../.
56845         * modules/crypto/gc-md5: Moved from ../.
56846         * modules/crypto/gc-md5-tests: Moved from ../.
56847         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56848         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56849         * modules/crypto/gc-random: Moved from ../.
56850         * modules/crypto/gc-rijndael: Moved from ../.
56851         * modules/crypto/gc-rijndael-tests: Moved from ../.
56852         * modules/crypto/gc-sha1: Moved from ../.
56853         * modules/crypto/gc-sha1-tests: Moved from ../.
56854         * modules/crypto/gc-tests: Moved from ../.
56855         * modules/crypto/hmac-md5: Moved from ../.
56856         * modules/crypto/hmac-md5-tests: Moved from ../.
56857         * modules/crypto/hmac-sha1: Moved from ../.
56858         * modules/crypto/hmac-sha1-tests: Moved from ../.
56859         * modules/crypto/md2: Moved from ../.
56860         * modules/crypto/md2-tests: Moved from ../.
56861         * modules/crypto/md4: Moved from ../.
56862         * modules/crypto/md4-tests: Moved from ../.
56863         * modules/crypto/md5: Moved from ../.
56864         * modules/crypto/md5-tests: Moved from ../.
56865         * modules/crypto/memxor: Moved from ../.
56866         * modules/crypto/rijndael: Moved from ../.
56867         * modules/crypto/rijndael-tests: Moved from ../.
56868         * modules/crypto/sha1: Moved from ../.
56869
56870 2007-03-30  James Youngman  <jay@gnu.org>
56871
56872         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56873         rename() to change the ctime of a file (because ctime is unaffected
56874         by rename on jfs2 on AIX 5.1).
56875         (main): Start by doing cleanup, in case a previous run failed leaving
56876         test files behind.
56877
56878 2007-03-31  Bruno Haible  <bruno@clisp.org>
56879
56880         Support old proprietary implementations of iconv.
56881         * modules/iconv_open: New file.
56882         * lib/iconv_.h: New file.
56883         * m4/iconv_h.m4: New file.
56884         * lib/iconv_open.c: New file.
56885         * lib/iconv_open-aix.gperf: New file.
56886         * lib/iconv_open-hpux.gperf: New file.
56887         * lib/iconv_open-irix.gperf: New file.
56888         * lib/iconv_open-osf.gperf: New file.
56889         * m4/iconv_open.m4: New file.
56890         * modules/linebreak (Depends-on): Add iconv_open.
56891         * modules/striconv (Depends-on): Likewise.
56892         * modules/striconveh (Depends-on): Likewise.
56893         * modules/unicodeio (Depends-on): Likewise.
56894         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56895         (iconv_t)(-1).
56896         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56897         conversion if cd is (iconv_t)(-1).
56898         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56899         is not possible.
56900
56901 2007-03-31  Bruno Haible  <bruno@clisp.org>
56902
56903         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56904         work on Solaris either. Protect also second use of "autodetect_jp".
56905
56906 2007-03-31  Bruno Haible  <bruno@clisp.org>
56907
56908         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56909         the function is not present.
56910
56911 2007-03-31  Bruno Haible  <bruno@clisp.org>
56912
56913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56914         the function is not present.
56915
56916 2007-03-31  Bruno Haible  <bruno@clisp.org>
56917
56918         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56919         a bug in HP-UX iconv_open().
56920
56921 2007-03-31  Bruno Haible  <bruno@clisp.org>
56922
56923         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56924         (Mathematics <math.h>): New section, add fpieee.
56925         (Input/output <stdio.h>): Add fseterr.
56926         (Mathematics <math.h>): New section, add printf-frexp.
56927         (Container data structures): Add sublist.
56928         (Core language properties): Add fpucw, inline.
56929         (Functions for greatest-width integer types <inttypes.h>): Add
56930         imaxabs, imaxdiv, inttypes.
56931         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56932         isnanl-nolibm, ldexp.
56933         (Mathematics <math.h>): New section, add printf-frexpl.
56934         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56935         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56936         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56937         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56938         (Unicode string functions): Add unistr/u*-mbtoucr.
56939         (Java): Add javacomp-script, javaexec-script.
56940         (C#): Add csharpcomp-script, csharpexec-script.
56941         (Support for building libraries and executables): Add havelib,
56942         relocatable-*.
56943         (Support for maintaining and releasing projects): Renamed from
56944         'Support for maintaining and release projects'. Add announce-gen.
56945
56946 2007-03-31  Bruno Haible  <bruno@clisp.org>
56947
56948         * README: Talk primarily about git.
56949         (git and CVS): Renamed from CVS.
56950         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56951         gnulib is available through git.
56952         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56953
56954 2007-03-30  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56957         * lib/poll_.h: Likewise.
56958         * lib/stat_.h: Likewise.
56959         * lib/sys_time_.h: Likewise.
56960         * lib/sysexit_.h: Likewise.
56961         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56962         * lib/stdbool_.h: Likewise.
56963         * lib/byteswap_.h: Add double-inclusion guard.
56964
56965 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56966
56967         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56968
56969 2007-03-30  Karl Berry  <karl@gnu.org>
56970
56971         * config/srclist-update: double space after USA in the license
56972         substitution, since that's how it's usually (?) written.
56973
56974 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56975
56976         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56977         reported by Bruno Haible.
56978
56979 2007-03-29  Bruno Haible  <bruno@clisp.org>
56980
56981         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56982         a bug in AIX iconv().
56983
56984 2007-03-29  Bruno Haible  <bruno@clisp.org>
56985
56986         * modules/ldexpl-tests: New file.
56987         * tests/test-ldexpl.c: New file.
56988
56989 2007-03-29  Bruno Haible  <bruno@clisp.org>
56990
56991         * lib/ldexpl.c: Include fpucw.h.
56992         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56993         multiplication.
56994         * modules/ldexpl (Depends-on): Add fpucw.
56995
56996 2007-03-29  Bruno Haible  <bruno@clisp.org>
56997
56998         * modules/ldexpl: New file.
56999         * m4/ldexpl.m4: New file.
57000         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57001         set.
57002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57003         REPLACE_LDEXPL.
57004         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57005         REPLACE_LDEXPL.
57006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57007         gl_FUNC_LDEXPL_WORKS.
57008         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57009         * modules/mathl (Files): Remove lib/ldexpl.c.
57010         (Depends-on): Add ldexpl.
57011
57012 2007-03-29  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57015
57016 2007-03-29  Bruno Haible  <bruno@clisp.org>
57017
57018         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57019         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57020         and possibly also HP-UX.
57021         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57022         work on AIX, IRIX, HP-UX, OSF/1.
57023         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57024         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57025         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57026         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57027         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57028         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57029
57030 2007-03-29  Bruno Haible  <bruno@clisp.org>
57031
57032         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57033
57034 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57035
57036         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57037         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57038
57039 2007-03-29  Eric Blake  <ebb9@byu.net>
57040
57041         * lib/acl-internal.h: Remove redundant include.
57042         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57043         Cygwin when a file is locked.
57044
57045 2007-03-29  Bruno Haible  <bruno@clisp.org>
57046
57047         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57048         file.
57049         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57050
57051 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57054         try to remove a parent directory if the child couldn't be removed
57055         (except for the first rmdir, which could fail because the child
57056         doesn't exist).  Problem reported by Jeff Blaine in
57057         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57058
57059 2007-03-28  Bruno Haible  <bruno@clisp.org>
57060
57061         * lib/striconveh.c (utf8conv_carefully): New function.
57062         (mem_cd_iconveh_internal): Invoke it.
57063
57064 2007-03-28  Bruno Haible  <bruno@clisp.org>
57065
57066         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57067         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57068         input.
57069         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57070         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57071         unistr/u8-uctomb.
57072
57073 2007-03-28  Bruno Haible  <bruno@clisp.org>
57074
57075         * modules/unistr/u8-mbtoucr: New file.
57076         * lib/unistr/u8-mbtoucr.c: New file.
57077         * modules/unistr/u16-mbtoucr: New file.
57078         * lib/unistr/u16-mbtoucr.c: New file.
57079         * modules/unistr/u16-mbtoucr: New file.
57080         * lib/unistr/u16-mbtoucr.c: New file.
57081         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57082
57083 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57084             Bruno Haible  <bruno@clisp.org>
57085
57086         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57087         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57088         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57089
57090         * m4/stdio_h.m4: Add stubs for vasprintf too.
57091
57092         * modules/stdio: Support vasprintf in sed command.
57093
57094         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57095         vasprintf.h.  Add stdio module indicator.
57096
57097         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57098         vasprintf.h.
57099
57100         * lib/vasprintf.h: File removed.
57101
57102         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57103         * lib/vasprintf.c: Ditto.
57104         * lib/xvasprintf.c: Ditto.
57105         * tests/test-vasprintf-posix.c: Ditto.
57106         * tests/test-vasprintf.c: Ditto.
57107
57108 2007-03-27  Bruno Haible  <bruno@clisp.org>
57109
57110         Make vasnprintf multithread-safe.
57111         * lib/vasnprintf.c (decimal_point_char): New function.
57112         (VASNPRINTF): Use it.
57113         Suggested by Simon Josefsson.
57114
57115 2007-03-27  Eric Blake  <ebb9@byu.net>
57116
57117         Support sub-second birthtime on cygwin.
57118         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57119         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57120         (get_stat_birthtime): Also work with st_birthtim.
57121
57122 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57125         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57126         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57127         (get_stat_birthtime_ns): Simplify compile-time tests.
57128         (get_stat_birthtime): Change the API to look like
57129         get_stat_mtime etc., except return a negative tv_nsec on error.
57130         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57131         Don't check for "spare" fields.
57132         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57133         or for struct stat.st_birthtime, as these tests aren't used.
57134         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57135
57136 2007-03-27  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/stat-time.h: Include <sys/stat.h>.
57139
57140 2007-03-27  James Youngman  <jay@gnu.org>
57141
57142         * lib/stat-time.h (get_stat_birthtime): New function for
57143           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57144         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57145           and its variants.
57146         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57147         * modules/stat-time-test: New file.
57148         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57149
57150 2007-03-26  Bruno Haible  <bruno@clisp.org>
57151
57152         Better support of signalling NaNs.
57153         * lib/atanl.c: Include isnanl.h.
57154         (atanl): Perform test for NaN at the beginning of the function and
57155         through a call to isnanl.
57156         * lib/cosl.c: Include isnanl.h.
57157         (cosl): Perform test for NaN at the beginning of the function and
57158         through a call to isnanl.
57159         * lib/ldexpl.c: Include isnanl.h.
57160         (ldexpl): Perform test for NaN through a call to isnanl.
57161         * lib/logl.c: Include isnanl.h.
57162         (logl): Perform test for NaN at the beginning of the function and
57163         through a call to isnanl.
57164         * lib/sinl.c: Include isnanl.h.
57165         (sinl): Perform test for NaN at the beginning of the function and
57166         through a call to isnanl.
57167         * lib/sqrtl.c: Include isnanl.h.
57168         (sqrtl): Perform test for NaN at the beginning of the function and
57169         through a call to isnanl.
57170         * lib/tanl.c: Include isnanl.h.
57171         (tanl): Perform test for NaN at the beginning of the function and
57172         through a call to isnanl.
57173         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57174         * modules/mathl (Depends-on): Add isnanl.
57175
57176 2007-03-26  Eric Blake  <ebb9@byu.net>
57177
57178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57179         regression in logic sense of previous patch.
57180
57181 2007-03-26  Bruno Haible  <bruno@clisp.org>
57182
57183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57184         unportable shell command "if ! ...".
57185         Reported by Ralf Wildenhues.
57186
57187 2007-03-25  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57190         <sysexits.h> file, and only add EX_CONFIG.
57191         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57192         absolute file name and whether it is sufficient. Substitute also
57193         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57194         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57195         ABSOLUTE_SYSEXITS_H into sysexits.h.
57196
57197 2007-03-25  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57200         hints is NULL.
57201
57202 2007-03-25  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57205         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57206
57207 2007-03-25  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/vasnprintf.c: Include langinfo.h.
57210         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57211         multithread-safe.
57212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57221         Reported by Simon Josefsson.
57222
57223 2007-03-25  Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57226         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57227         * modules/vasnprintf (Depends-on): Add stdint.
57228
57229 2007-03-25  Bruno Haible  <bruno@clisp.org>
57230
57231         * modules/fpieee: New file.
57232         * m4/fpieee.m4: New file.
57233         * modules/isnan-nolibm (Depends-on): Add fpieee.
57234         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57235         * modules/isnanl (Depends-on): Add fpieee.
57236
57237 2007-03-25  Bruno Haible  <bruno@clisp.org>
57238
57239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57240
57241 2007-03-25  Bruno Haible  <bruno@clisp.org>
57242
57243         Avoid test failures on IRIX 6.5.
57244         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57245         (main): Use it.
57246         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57247         macros.
57248         (main): Use them.
57249
57250 2007-03-25  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57253         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57254         exists but doesn't work.
57255         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57256         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57258         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57259         math.h.
57260
57261 2007-03-25  Bruno Haible  <bruno@clisp.org>
57262
57263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57264         returns inf. Needed on IRIX 6.5.
57265
57266 2007-03-25  Bruno Haible  <bruno@clisp.org>
57267
57268         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57269         (main): Use isnanl instead of x != x idiom.
57270         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57271
57272         * tests/test-frexp.c: Include isnan.h.
57273         (main): Use isnan instead of x != x idiom.
57274         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57275
57276 2007-03-25  Bruno Haible  <bruno@clisp.org>
57277
57278         * tests/test-frexp.c (NaN): New function/macro.
57279         (main): Use it instead of 0.0 / 0.0.
57280         * tests/test-isnan.c (NaN): New function/macro.
57281         (main): Use it instead of 0.0 / 0.0.
57282         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57283         (test_function): Use it instead of 0.0 / 0.0.
57284         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57285         (test_function): Use it instead of 0.0 / 0.0.
57286         * tests/test-snprintf-posix.h (NaN): New function/macro.
57287         (test_function): Use it instead of 0.0 / 0.0.
57288         * tests/test-sprintf-posix.h (NaN): New function/macro.
57289         (test_function): Use it instead of 0.0 / 0.0.
57290         * tests/test-fprintf-posix.h (NaN): New function/macro.
57291         (test_function): Use it instead of 0.0 / 0.0.
57292         * tests/test-printf-posix.h (NaN): New function/macro.
57293         (test_function): Use it instead of 0.0 / 0.0.
57294
57295         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57296
57297 2007-03-25  Bruno Haible  <bruno@clisp.org>
57298
57299         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57300
57301 2007-03-25  Bruno Haible  <bruno@clisp.org>
57302
57303         * lib/regexec.c (merge_state_with_log): Make static.
57304
57305 2007-03-25  Bruno Haible  <bruno@clisp.org>
57306
57307         * lib/trigl.c (kernel_rem_pio2): Make static.
57308
57309 2007-03-25  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/sincosl.c (sincosl_table): Make static.
57312
57313 2007-03-25  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57316         if the compiler does not support C99.
57317
57318 2007-03-25  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/time (Makefile.am): Ensure all rule action lines start with a
57321         tab.
57322
57323 2007-03-24  Bruno Haible  <bruno@clisp.org>
57324
57325         * modules/tsearch-tests: New file.
57326         * tests/test-tsearch.sh: New file.
57327         * tests/test-tsearch.c: New file, mostly copied from glibc.
57328
57329         * modules/search-tests: New file.
57330         * tests/test-search.c: New file.
57331
57332         * modules/search: New file.
57333         * lib/search_.h: New file, incorporating lib/tsearch.h.
57334         * m4/search_h.m4: New file.
57335         * lib/tsearch.h: Remove file.
57336         * lib/tsearch.c: Include search.h instead of tsearch.h.
57337         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57338         HAVE_TSEARCH.
57339         * modules/tsearch (Files): Remove lib/tsearch.h.
57340         (Depends-on): Add search.
57341         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57342         (Include): Change tsearch.h into search.h.
57343
57344 2007-03-24  Bruno Haible  <bruno@clisp.org>
57345
57346         * modules/fpucw: New file.
57347         * lib/fpucw.h: New file.
57348         * lib/frexp.c: Include fpucw.h.
57349         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57350         (FUNC): Use them.
57351         * lib/printf-frexp.c: Include fpucw.h.
57352         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57353         (FUNC): Use them.
57354         * lib/vasnprintf.c: Include fpucw.h.
57355         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57356         'long double' calculations.
57357         * tests/test-frexpl.c: Include fpucw.h.
57358         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57359         * tests/test-printf-frexpl.c: Include fpucw.h.
57360         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57361         * modules/frexpl (Depends-on): Add fpucw.
57362         * modules/printf-frexpl (Depends-on): Likewise.
57363         * modules/fprintf-posix (Depends-on): Likewise.
57364         * modules/snprintf-posix (Depends-on): Likewise.
57365         * modules/sprintf-posix (Depends-on): Likewise.
57366         * modules/vasnprintf-posix (Depends-on): Likewise.
57367         * modules/vasprintf-posix (Depends-on): Likewise.
57368         * modules/vfprintf-posix (Depends-on): Likewise.
57369         * modules/vsnprintf-posix (Depends-on): Likewise.
57370         * modules/vsprintf-posix (Depends-on): Likewise.
57371         * modules/frexpl-tests (Depends-on): Likewise.
57372         * modules/printf-frexpl-tests (Depends-on): Likewise.
57373
57374 2007-03-24  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/float+.h: New file.
57377         * lib/isnan.c: Include float+.h.
57378         (SIZE): New macro.
57379         (FUNC): Compare only SIZE bytes of the value.
57380         * lib/vasnprintf.c: Include float+.h.
57381         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57382         SIZEOF_LDBL or SIZEOF_DBL bytes.
57383         * modules/isnan-nolibm (Files): Add lib/float+.h.
57384         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57385         * modules/isnanl (Files): Add lib/float+.h.
57386         * modules/vasnprintf (Files): Add lib/float+.h.
57387
57388 2007-03-24  Bruno Haible  <bruno@clisp.org>
57389
57390         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57391         include isnanl-nolibm.h.
57392
57393 2007-03-24  Bruno Haible  <bruno@clisp.org>
57394
57395         * tests/test-read-file.c (main): Don't produce spurious output for
57396         expected situations. Make the test fail if it encountered unexpected
57397         results.
57398
57399 2007-03-24  Bruno Haible  <bruno@clisp.org>
57400
57401         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57402         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57403
57404 2007-03-24  Bruno Haible  <bruno@clisp.org>
57405
57406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57407
57408 2007-03-24  Bruno Haible  <bruno@clisp.org>
57409
57410         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57411         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57412
57413         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57414         * modules/utf8-ucs4: Turn into a symbolic link to module
57415         unistr/u8-mbtouc.
57416
57417         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57418         utf8-ucs4-unsafe.
57419         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57420         unistr/u8-mbtouc-unsafe.
57421
57422         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57423         * modules/utf16-ucs4: Turn into a symbolic link to module
57424         unistr/u16-mbtouc.
57425
57426         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57427         utf16-ucs4-unsafe.
57428         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57429         unistr/u16-mbtouc-unsafe.
57430
57431         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57432         * modules/ucs4-utf8: Turn into a symbolic link to module
57433         unistr/u8-ubtomb.
57434
57435         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57436         * modules/ucs4-utf16: Turn into a symbolic link to module
57437         unistr/u16-ubtomb.
57438
57439 2007-03-24  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57442         Enable the function only if HAVE_INLINE.
57443         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57444         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57445         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57446         Enable the function only if HAVE_INLINE.
57447         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57448         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57449         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57450         Enable the function only if HAVE_INLINE.
57451         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57452         Enable the function only if HAVE_INLINE.
57453         * modules/utf8-ucs4: Update.
57454         * modules/utf8-ucs4-unsafe: Update.
57455         * modules/utf16-ucs4: Update.
57456         * modules/utf16-ucs4-unsafe: Update.
57457         * modules/ucs4-utf8: Update.
57458         * modules/ucs4-utf16: Update.
57459
57460 2007-03-24  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/utf8-ucs4.h: Remove file.
57463         * lib/utf8-ucs4-unsafe.h: Remove file.
57464         * lib/utf16-ucs4.h: Remove file.
57465         * lib/utf16-ucs4-unsafe.h: Remove file.
57466         * lib/ucs4-utf8.h: Remove file.
57467         * lib/ucs4-utf16.h: Remove file.
57468         * lib/unistr.h: Include their previous contents.
57469         * m4/utf-ucs4.m4: Remove file.
57470         * m4/ucs4-utf.m4: Remove file.
57471         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57472         (Depends-on): Add unistr/base.
57473         (configure.ac): Remove gl_UTF_UCS4.
57474         (Makefile.am): Update.
57475         (Include): Change to unistr.h.
57476         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57477         (Depends-on): Add unistr/base.
57478         (configure.ac): Remove gl_UTF_UCS4.
57479         (Makefile.am): Update.
57480         (Include): Change to unistr.h.
57481         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57482         (Depends-on): Add unistr/base.
57483         (configure.ac): Remove gl_UTF_UCS4.
57484         (Makefile.am): Update.
57485         (Include): Change to unistr.h.
57486         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57487         (Depends-on): Add unistr/base.
57488         (configure.ac): Remove gl_UTF_UCS4.
57489         (Makefile.am): Update.
57490         (Include): Change to unistr.h.
57491         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57492         (Depends-on): Add unistr/base.
57493         (configure.ac): Remove gl_UCS4_UTF.
57494         (Makefile.am): Update.
57495         (Include): Change to unistr.h.
57496         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57497         (Depends-on): Add unistr/base.
57498         (configure.ac): Remove gl_UCS4_UTF.
57499         (Makefile.am): Update.
57500         (Include): Change to unistr.h.
57501         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57502         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57503         utf8-ucs4-unsafe.h.
57504         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57505         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57506         utf16-ucs4-unsafe.h.
57507         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57508         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57509         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57510         * lib/unistr/u8-strchr.c: Likewise.
57511         * lib/unistr/u8-strrchr.c: Likewise.
57512         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57513         * lib/unistr/u16-strchr.c: Likewise.
57514         * lib/unistr/u16-strrchr.c: Likewise.
57515         * lib/striconveh.c: Update.
57516         * lib/linebreak.c: Update.
57517
57518 2007-03-24  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57521         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57522
57523 2007-03-22  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57526
57527 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57528
57529         * MODULES.html.sh (File system functions): New module write-any-file.
57530         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57531         * m4/write-any-file.m4: New files.
57532
57533 2007-03-23  Eric Blake  <ebb9@byu.net>
57534
57535         * gnulib-tool: Rearrange space-tab sequences, since some editors
57536         like to eat them.
57537
57538 2007-03-23  Eric Blake  <ebb9@byu.net>
57539
57540         * lib/version-etc.c (version_etc_va): Update license wording to
57541         be more concise.  Recommended by Richard Stallman.
57542
57543 2007-03-22  Bruno Haible  <bruno@clisp.org>
57544
57545         * lib/poll.c (MSG_PEEK): New fallback definition.
57546
57547 2007-03-22  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57550         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57551         (main): Update.
57552         Fixes a compilation error on BeOS.
57553
57554 2007-03-22  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/frexpl-tests: New file.
57557         * tests/test-frexpl.c: New file.
57558
57559         * modules/frexpl: New file.
57560         * m4/frexpl.m4: New file.
57561         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57562         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57564         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57565         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57566         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57567
57568 2007-03-22  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/frexpl.c: Share code with lib/frexp.c.
57571         * modules/mathl (Files): Add lib/frexp.c.
57572         (Depends-on): Add isnanl-nolibm.
57573
57574 2007-03-22  Bruno Haible  <bruno@clisp.org>
57575
57576         * modules/printf-frexp (Files): Add m4/frexp.m4.
57577         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57578         only if the found frexp function actually works.
57579
57580 2007-03-22  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/frexp.c: Remove older implementation that uses divisions.
57583
57584 2007-03-21  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/frexp-tests: New file.
57587         * tests/test-frexp.c: New file.
57588
57589         * modules/frexp: New file.
57590         * lib/frexp.c: New file.
57591         * m4/frexp.m4: New file.
57592         * lib/math_.h (frexp): New declaration.
57593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57594         REPLACE_FREXP.
57595         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57596
57597 2007-03-21  Bruno Haible  <bruno@clisp.org>
57598
57599         * modules/isnanl-tests: New file.
57600         * tests/test-isnanl.c: New file.
57601
57602         * modules/isnanl: New file.
57603         * lib/isnanl.h: New file.
57604         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57605         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57606         gl_FUNC_ISNANL_WORKS.
57607         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57608         New macros.
57609
57610 2007-03-21  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57613         lib/isnanl.h.
57614         (Include): Update.
57615         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57616         * lib/vasnprintf.c: Update.
57617         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57618         tests/test-isnanl.h, remove tests/test-isnanl.c.
57619         (Makefile.am): Update.
57620         * tests/test-isnanl-nolibm.c: New file.
57621         * tests/test-isnanl.h: New file.
57622         * tests/test-isnanl.c: Remove file.
57623
57624 2007-03-21  Jim Meyering  <jim@meyering.net>
57625
57626         When trying to open ".", treat ESTALE like EACCES.
57627         * lib/savewd.c (savewd_save): Resort to forking not just upon
57628         failure with EACCES, but also when errno is ESTALE.
57629
57630 2007-03-20  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57633         Needed on AIX 5.1. Reported by Matthew Woehlke.
57634
57635 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         Suggestions by Bruno Haible:
57638         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57639         our own.
57640         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57641         * modules/acl (Depends-on): Add gettext.
57642
57643 2007-03-19  Bruno Haible  <bruno@clisp.org>
57644
57645         * modules/iconvme: Remove file.
57646         * lib/iconvme.h: Remove file.
57647         * lib/iconvme.c: Remove file.
57648         * m4/iconvme.m4: Remove file.
57649
57650 2007-03-19  Bruno Haible  <bruno@clisp.org>
57651
57652         * doc/relocatable-maint.texi: Break long shell script line.
57653         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57654
57655 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57656
57657         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57658         handle file_has_acl.
57659         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57660         * lib/acl.c: Move header inclusions and related macro defns into
57661         lib/acl-internal.h.
57662         (S_ISLNK): Remove defn, since that's now done for us.
57663         (file_has_acl): Move to lib/file-has-acl.c.
57664         Call acl_trivial if available.  This is the crucial part of the fix.
57665         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57666         shared within the library.  Rewrite a bit, partly to make it compatible
57667         with the GNU coding style.
57668         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57669         Remove unnecessary double-quotes.
57670         Don't test for acl_to_text; the build will catch that.
57671         Replace acl_entries if it doesn't exist and it is needed.
57672         Check for -lsec and acl_trivial (as used on Solaris 10).
57673         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57674         lib/file-has-acl.c.
57675         (Depends-on): Add sys_stat, for S_ISLNK.
57676
57677 2007-03-19  Ben Pfaff  <blp@gnu.org>
57678
57679         * doc/gnulib.texi: Fix typos.
57680         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57681
57682 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57685         If size is zero here, buf must be zero.
57686
57687 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57688
57689         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57690         <bruno@clisp.org>.
57691
57692 2007-03-18  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57695         Suggested by Eric Blake.
57696
57697 2007-03-18  Ben Pfaff  <blp@gnu.org>
57698
57699         * doc/relocatable.texi: Recommend using as prefix a directory
57700         that does not exist and will never be created.  Based on
57701         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57702         and others.
57703
57704 2007-03-17  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/fchownat.c: Include lchown.h.
57707
57708 2007-03-17  Bruno Haible  <bruno@clisp.org>
57709
57710         Fix endless loop when the given allocated size was > INT_MAX.
57711         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57712         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57713         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57714         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57715         * lib/sprintf.c (sprintf): Likewise.
57716
57717 2007-03-17  Bruno Haible  <bruno@clisp.org>
57718
57719         * tests/test-argp-2.sh (func_compare): Output a context diff.
57720
57721 2007-03-17  Bruno Haible  <bruno@clisp.org>
57722
57723         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57724         locale's decimal-point character.
57725
57726 2007-03-17  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57729         before comparing it. Needed because on some platforms (e.g. x86) a
57730         'long double' occupies less bytes than sizeof (long double).
57731
57732 2007-03-17  Bruno Haible  <bruno@clisp.org>
57733
57734         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57735         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57736         * tests/test-getaddrinfo.c (simple): Likewise.
57737         * tests/test-read-file.c (main): Likewise.
57738
57739 2007-03-17  Bruno Haible  <bruno@clisp.org>
57740
57741         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57742
57743 2007-03-17  Bruno Haible  <bruno@clisp.org>
57744
57745         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57746         unused variable.
57747
57748 2007-03-17  Bruno Haible  <bruno@clisp.org>
57749
57750         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57751         * tests/test-c-strncasecmp.c: Likewise.
57752
57753 2007-03-17  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/stdlib (Depends-on): Add unistd.
57756         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57757         Needed for MacOS X 10.3.
57758
57759 2007-03-17  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57762
57763 2007-03-17  Bruno Haible  <bruno@clisp.org>
57764
57765         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57766
57767 2007-03-17  Bruno Haible  <bruno@clisp.org>
57768
57769         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57770         to reflect files copied from gnulib (with or without modifications).
57771         Suggested by Jim Meyering.
57772
57773 2007-03-17  Eric Blake  <ebb9@byu.net>
57774
57775         * NEWS: Document stdlib change from 2007-02-18.
57776
57777 2007-03-17  Jim Meyering  <jim@meyering.net>
57778
57779         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57780         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57781         someone uses a name containing shell meta-characters.
57782         Reported by Alfred M. Szmidt.
57783
57784         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57785
57786 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57787
57788         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57789         and copy gettext configuration files only if configure.ac contains
57790         a use of AM_GNU_GETTEXT_VERSION.
57791
57792 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57793
57794         * build-aux/bootstrap (gnulib_name): New variable.
57795         (gnulib_tool_options): Use it.
57796
57797 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57798
57799         * tests/test-des.c: Use new namespace.
57800
57801 2007-03-15  Bruno Haible  <bruno@clisp.org>
57802
57803         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57804         Reported by James Youngman <jay@gnu.org>.
57805
57806 2007-03-15  Bruno Haible  <bruno@clisp.org>
57807
57808         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57809         declared prototype. Needed with cc on OSF/1 5.1.
57810
57811 2007-03-15  Bruno Haible  <bruno@clisp.org>
57812
57813         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57814         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57815         (struct gl_list_implementation): Add dispose_fn argument to the
57816         'create_empty', 'create' methods.
57817         (struct gl_list_impl_base): Add field 'dispose_fn'.
57818         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57819         argument.
57820         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57821         dispose_fn argument.
57822         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57823         dispose_fn on the dropped values.
57824         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57825         dispose_fn argument.
57826         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57827         dropped values.
57828         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57829         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57830         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57831         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57832         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57833         argument.
57834         (gl_tree_list_free): Call dispose_fn on the dropped values.
57835         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57836         the dropped values.
57837         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57838         Add dispose_fn argument.
57839         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57840         Call dispose_fn on the dropped values.
57841         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57842         Add dispose_fn argument.
57843         (gl_sublist_create): Initialize the 'dispose_fn' field.
57844         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57845         * tests/test-array_list.c (main): Update.
57846         * tests/test-carray_list.c (main): Update.
57847         * tests/test-avltree_list.c (main): Update.
57848         * tests/test-rbtree_list.c (main): Update.
57849         * tests/test-avltreehash_list.c (main): Update.
57850         * tests/test-rbtreehash_list.c (main): Update.
57851         * tests/test-linked_list.c (main): Update.
57852         * tests/test-linkedhash_list.c (main): Update.
57853         * tests/test-array_oset.c (main): Update.
57854
57855 2007-03-15  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57858         (gl_oset_create_empty): Add dispose_fn argument.
57859         (struct gl_oset_implementation): Add dispose_fn argument to
57860         'create_empty' method.
57861         (struct gl_oset_impl_base): Add dispose_fn field.
57862         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57863         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57864         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57865         values.
57866         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57867         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57868         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57869         dropped value.
57870         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57871         dropped value.
57872         * tests/test-array_oset.c (main): Update.
57873         * tests/test-avltree_oset.c (main): Update.
57874         * tests/test-rbtree_oset.c (main): Update.
57875         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57876
57877 2007-03-13  Bruno Haible  <bruno@clisp.org>
57878
57879         * tests/test-stdbool.c (i): Update after last patch.
57880
57881 2007-03-12  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57884         the iswprint macro. Needed on Solaris 2.5.1.
57885
57886 2007-03-12  Bruno Haible  <bruno@clisp.org>
57887
57888         * tests/test-printf-frexp.c (main): Declare x as volatile.
57889
57890 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57891
57892         * doc/gnulib.texi (Build robot for gnulib): New section.
57893
57894 2007-03-12  Jim Meyering  <jim@meyering.net>
57895
57896         * build-aux/bootstrap: New file.
57897         * build-aux/bootstrap.conf: New file, from coreutils.
57898
57899 2007-03-11  Bruno Haible  <bruno@clisp.org>
57900
57901         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57902
57903 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57904
57905         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57906         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57907         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57908
57909 2007-03-11  Bruno Haible  <bruno@clisp.org>
57910
57911         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57912         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57913
57914 2007-03-11  Bruno Haible  <bruno@clisp.org>
57915
57916         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57917         formula. Needed for SunPRO C 5.0.
57918
57919 2007-03-11  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/long-options (Depends-on): Add getopt.
57922
57923 2007-03-11  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/modechange (Depends-on): Add stdbool.
57926
57927 2007-03-11  Bruno Haible  <bruno@clisp.org>
57928
57929         * modules/i-ring (Depends-on): Add stdbool.
57930
57931 2007-03-11  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/gc-des (Depends-on): Add stdbool.
57934
57935 2007-03-11  Bruno Haible  <bruno@clisp.org>
57936
57937         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57938
57939 2007-03-11  Bruno Haible  <bruno@clisp.org>
57940
57941         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57942
57943 2007-03-11  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57946
57947 2007-03-11  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/vasnprintf.c (sprintf): Undefine.
57950
57951 2007-03-11  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57954         initializers in SunPRO C and Compaq C compilers.
57955
57956 2007-03-11  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57959         decrementing code ANSI C compliant.
57960
57961 2007-03-11  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57964         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57965
57966 2007-03-11  Bruno Haible  <bruno@clisp.org>
57967
57968         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57969         <stdbool.h> substitute doesn't pass.
57970
57971 2007-03-11  Bruno Haible  <bruno@clisp.org>
57972
57973         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57974
57975 2007-03-11  Bruno Haible  <bruno@clisp.org>
57976
57977         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57978         script, for submission to autobuild.josefsson.org.
57979
57980 2007-03-10  Bruno Haible  <bruno@clisp.org>
57981
57982         * modules/canonicalize-lgpl-tests: New file.
57983         * tests/test-canonicalize-lgpl.sh: New file.
57984         * tests/test-canonicalize-lgpl.c: New file.
57985
57986         * modules/c-strcase-tests: New file.
57987         * tests/test-c-strcase.sh: New file.
57988         * tests/test-c-strcasecmp.c: New file.
57989         * tests/test-c-strncasecmp.c: New file.
57990
57991         * modules/atexit-tests: New file.
57992         * tests/test-atexit.sh: New file.
57993         * tests/test-atexit.c: New file.
57994
57995 2007-03-10  Bruno Haible  <bruno@clisp.org>
57996
57997         * tests/test-binary-io.sh: Use temporary filenames that are not so
57998         likely to clash with those of other tests (in a parallel make).
57999         * tests/test-binary-io.c: Likewise.
58000
58001 2007-03-10  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58004         fallback; use #error instead.
58005         Suggested by Simon Josefsson.
58006
58007 2007-03-10  Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58010         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58011         first and the last.
58012
58013 2007-03-10  Bruno Haible  <bruno@clisp.org>
58014
58015         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58016
58017 2007-03-10  Bruno Haible  <bruno@clisp.org>
58018
58019         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58020         "make distcheck".
58021         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58022         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58023         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58024
58025 2007-03-10  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58028         variable.
58029         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58030         variable.
58031
58032 2007-03-09  Eric Blake  <ebb9@byu.net>
58033         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58034
58035         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58036         types are not being provided by gnulib.
58037         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58038         types are supported.
58039
58040 2007-03-10  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/stdio_.h (__attribute__): New macro.
58043         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58044         vsprintf): Specify __attribute__ __format__ for GCC.
58045         Suggested by Eric Blake.
58046
58047 2007-03-09  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/printf-posix-tests: New file.
58050         * tests/test-printf-posix.sh: New file.
58051         * tests/test-printf-posix.c: New file.
58052
58053         * modules/printf-posix: New file.
58054         * lib/printf.c: New file.
58055         * m4/printf-posix-rpl.m4: New file.
58056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58057         REPLACE_PRINTF.
58058         * lib/stdio_.h (printf): New declaration.
58059         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58060         ____strfmon____): New macros.
58061         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58062         REPLACE_PRINTF.
58063
58064 2007-03-09  Bruno Haible  <bruno@clisp.org>
58065
58066         * tests/test-vasnprintf-posix2.sh: New file.
58067         * tests/test-vasnprintf-posix2.c: New file.
58068         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58069         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58070         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58071
58072         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58073         a locale dependent decimal point, rather than always '.'.
58074
58075 2007-03-09  Eric Blake  <ebb9@byu.net>
58076
58077         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58078         spite of platforms like Tandem/NSK that define it to -1.
58079
58080 2007-03-08  Bruno Haible  <bruno@clisp.org>
58081
58082         * modules/vprintf-posix-tests: New file.
58083         * tests/test-vprintf-posix.sh: New file.
58084         * tests/test-vprintf-posix.c: New file.
58085         * tests/test-printf-posix.h: New file.
58086
58087         * modules/vprintf-posix: New file.
58088         * lib/vprintf.c: New file.
58089         * m4/vprintf-posix.m4: New file.
58090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58091         REPLACE_VPRINTF.
58092         * lib/stdio_.h (vprintf): New declaration.
58093         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58094         REPLACE_VPRINTF.
58095
58096 2007-03-08  Bruno Haible  <bruno@clisp.org>
58097
58098         * modules/fprintf-posix-tests: New file.
58099         * tests/test-fprintf-posix.sh: New file.
58100         * tests/test-fprintf-posix.c: New file.
58101
58102         * modules/fprintf-posix: New file.
58103         * lib/fprintf.c: New file.
58104         * m4/fprintf-posix.m4: New file.
58105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58106         REPLACE_FPRINTF.
58107         * lib/stdio_.h (fprintf): New declaration.
58108         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58109         REPLACE_FPRINTF.
58110
58111 2007-03-08  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/vfprintf-posix-tests: New file.
58114         * tests/test-vfprintf-posix.sh: New file.
58115         * tests/test-vfprintf-posix.c: New file.
58116         * tests/test-fprintf-posix.h: New file.
58117         * tests/test-fprintf-posix.out: New file.
58118
58119         * modules/vfprintf-posix: New file.
58120         * lib/vfprintf.c: New file.
58121         * m4/vfprintf-posix.m4: New file.
58122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58123         REPLACE_VFPRINTF.
58124         * lib/stdio_.h (vfprintf): New declaration.
58125         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58126         REPLACE_VFPRINTF.
58127
58128 2007-03-08  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58131
58132 2007-03-08  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58135         instead of 'expr' invocations.
58136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58141         Suggested by Paul Eggert.
58142
58143 2007-03-08  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/fseterr-tests: New file.
58146         * tests/test-fseterr.c: New file.
58147
58148         * modules/fseterr: New file.
58149         * lib/fseterr.h: New file.
58150         * lib/fseterr.c: New file.
58151
58152 2007-03-08  Bruno Haible  <bruno@clisp.org>
58153
58154         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58155         * lib/getopt_.h: Likewise.
58156         * lib/mbswidth.h: Likewise.
58157         * lib/setenv.h: Likewise.
58158         * lib/vasnprintf.h: Likewise.
58159         * lib/vasprintf.h: Likewise.
58160         * lib/verror.h: Likewise.
58161         * lib/xsetenv.h: Likewise.
58162         * lib/xvasprintf.h: Likewise.
58163
58164 2007-03-08  Jim Meyering  <jim@meyering.net>
58165
58166         * users.txt: Add parted.
58167
58168         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58169
58170 2007-03-07  Bruno Haible  <bruno@clisp.org>
58171
58172         * m4/printf.m4: Make the shell script snippets copy&pastable.
58173
58174 2007-03-02  Bruno Haible  <bruno@clisp.org>
58175
58176         * lib/netinet_in_.h: New file.
58177         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58178         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58179         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58180         (Depends-on): Add absolute-header.
58181         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58182         into netinet/in.h.
58183
58184 2007-03-03  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/sys_select_.h: New file.
58187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58188         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58189         * modules/sys_select (Files): Add lib/sys_select_.h.
58190         (Depends-on): Add absolute-header.
58191         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58192         into sys/select.h.
58193
58194 2007-03-02  Bruno Haible  <bruno@clisp.org>
58195
58196         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58197         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58198         values.
58199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58200         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58201         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58202         * modules/sys_socket (Depends-on): Add absolute-header.
58203         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58204         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58205         (Include): Remove requirement of inclusion of <sys/types.h>.
58206
58207 2007-03-02  Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/byteswap_.h (bswap_32): Fix formula.
58210
58211 2007-03-06  Bruno Haible  <bruno@clisp.org>
58212
58213         * modules/sprintf-posix-tests: New file.
58214         * tests/test-sprintf-posix.c: New file.
58215
58216         * modules/sprintf-posix: New file.
58217         * lib/sprintf.c: New file.
58218         * m4/sprintf-posix.m4: New file.
58219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58220         REPLACE_SPRINTF.
58221         * lib/stdio_.h (sprintf): New declaration.
58222         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58223         REPLACE_SPRINTF.
58224
58225 2007-03-06  Bruno Haible  <bruno@clisp.org>
58226
58227         * modules/vsprintf-posix-tests: New file.
58228         * tests/test-vsprintf-posix.c: New file.
58229         * tests/test-sprintf-posix.h: New file.
58230
58231         * modules/vsprintf-posix: New file.
58232         * lib/vsprintf.c: New file.
58233         * m4/vsprintf-posix.m4: New file.
58234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58235         REPLACE_VSPRINTF.
58236         * lib/stdio_.h (vsprintf): New declaration.
58237         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58238         REPLACE_VSPRINTF.
58239
58240 2007-03-06  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/vsnprintf (Depend-on): Remove minmax.
58243
58244 2007-03-06  Bruno Haible  <bruno@clisp.org>
58245
58246         * modules/snprintf-posix-tests: New file.
58247         * tests/test-snprintf-posix.c: New file.
58248
58249         * modules/snprintf-posix: New file.
58250         * m4/snprintf-posix.m4: New file.
58251         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58252         gl_FUNC_SNPRINTF.
58253         (gl_FUNC_SNPRINTF): Invoke it.
58254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58255         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58256         is set.
58257         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58258
58259 2007-03-06  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/vsnprintf-posix-tests: New file.
58262         * tests/test-vsnprintf-posix.c: New file.
58263         * tests/test-snprintf-posix.h: New file.
58264
58265         * modules/vsnprintf-posix: New file.
58266         * m4/vsnprintf-posix.m4: New file.
58267         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58268         gl_FUNC_VSNPRINTF.
58269         (gl_FUNC_VSNPRINTF): Invoke it.
58270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58271         * lib/stdio_.h (vsnprintf): Define as a replacement if
58272         REPLACE_VSNPRINTF is set.
58273         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58274
58275 2007-03-06  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58279
58280 2007-03-06  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58283         (asinl): Declare also if HAVE_DECL_ASINL is set.
58284         (atanl): Declare also if HAVE_DECL_ATANL is set.
58285         (ceill): Declare also if HAVE_DECL_CEILL is set.
58286         (cosl): Declare also if HAVE_DECL_COSL is set.
58287         (expl): Declare also if HAVE_DECL_EXPL is set.
58288         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58289         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58290         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58291         (logl): Declare also if HAVE_DECL_LOGL is set.
58292         (sinl): Declare also if HAVE_DECL_SINL is set.
58293         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58294         (tanl): Declare also if HAVE_DECL_TANL is set.
58295         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58298         declaration of frexpl, ldexpl.
58299         * modules/printf-frexpl (Depends-on): Add math.
58300         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58301
58302 2007-03-05  Bruno Haible  <bruno@clisp.org>
58303
58304         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58305         frexpl and ldexpl are declared.
58306         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58307
58308 2007-03-05  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58311         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58312
58313 2007-03-05  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/stdio_.h: Include <stddef.h>.
58316
58317 2007-03-05  Bruno Haible  <bruno@clisp.org>
58318
58319         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58320
58321 2007-03-05  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58324         NetBSD 4, from Ralf Wildenhues.
58325
58326 2007-03-04  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/vasprintf.h: Update #if logic for the case when the functions
58329         exist but are overridden.
58330
58331 2007-03-04  Bruno Haible  <bruno@clisp.org>
58332
58333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58334         implementations: glibc-2.4 and MacOS X 10.3.
58335         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58336         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58337         * tests/test-vasprintf-posix.c (test_function): Likewise.
58338
58339 2007-03-04  Bruno Haible  <bruno@clisp.org>
58340
58341         * modules/vasprintf-posix-tests: New file.
58342         * tests/test-vasprintf-posix.c: New file.
58343
58344         * modules/vasprintf-posix: New file.
58345         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58346         defined.
58347         * m4/vasprintf-posix.m4: New file.
58348         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58349         gl_FUNC_VASPRINTF.
58350         (gl_FUNC_VASPRINTF): Invoke it.
58351         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58352         here.
58353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58354
58355 2007-03-04  Bruno Haible  <bruno@clisp.org>
58356
58357         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58358         REPLACE_GETTIMEOFDAY.
58359         * modules/sys_time (Makefile.am): Likewise.
58360         * m4/sys_time_h.m4: Likewise.
58361         * m4/gettimeofday.m4: Likewise.
58362
58363 2007-03-04  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/vasnprintf-posix-tests: New file.
58366         * tests/test-vasnprintf-posix.c: New file.
58367
58368         * modules/vasnprintf-posix: New file.
58369         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58370         printf-frexpl.h.
58371         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58372         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58373         REPLACE_VASNPRINTF is defined.
58374         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58375         gl_FUNC_VASNPRINTF.
58376         (gl_FUNC_VASNPRINTF): Invoke it.
58377         * m4/vasnprintf-posix.m4: New file.
58378         * m4/printf.m4: New file.
58379
58380 2007-03-04  Bruno Haible  <bruno@clisp.org>
58381
58382         Compile progreloc.c only if --enable-relocatable is specified.
58383         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58384         if --enable-relocatable was specified.
58385         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58386         lib_SOURCES.
58387
58388 2007-03-04  Jim Meyering  <jim@meyering.net>
58389
58390         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58391         Use it consistently, rather than enumerating errno constants.
58392
58393 2007-03-04  Bruno Haible  <bruno@clisp.org>
58394
58395         * modules/xvasprintf-tests: New file.
58396         * tests/test-xvasprintf.c: New file.
58397
58398         * modules/vasprintf-tests: New file.
58399         * tests/test-vasprintf.c: New file.
58400
58401         * modules/vasnprintf-tests: New file.
58402         * tests/test-vasnprintf.c: New file.
58403
58404         * modules/vsnprintf-tests: New file.
58405         * tests/test-vsnprintf.c: New file.
58406
58407         * modules/snprintf-tests: New file.
58408         * tests/test-snprintf.c: New file.
58409
58410 2007-03-04  Bruno Haible  <bruno@clisp.org>
58411
58412         Compile relocatable.c only if --enable-relocatable is specified.
58413         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58414         gl_RELOCATABLE_LIBRARY.
58415         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58416         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58417         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58418         gl_RELOCATABLE_LIBRARY.
58419         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58420         (Makefile.am): Remove lib_SOURCES.
58421         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58422         gl_RELOCATABLE_LIBRARY.
58423         (Makefile.am): Remove lib_SOURCES.
58424         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58425         always.
58426         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58427         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58428
58429 2007-03-04  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/argmatch-tests: New file.
58432         * tests/test-argmatch.c: New file.
58433
58434         * tests/test-allocsa.c (main): Halve the number of loop runs.
58435
58436         * modules/alloca-opt-tests: New file.
58437         * tests/test-alloca-opt.c: New file.
58438
58439 2007-03-04  Jim Meyering  <jim@meyering.net>
58440
58441         Work around difference between Linux ACLs and Solaris 10 ZFS.
58442         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58443         for EINVAL.
58444
58445 2007-03-03  Bruno Haible  <bruno@clisp.org>
58446
58447         * modules/relocatable-prog (Depends-on): Add back progreloc's
58448         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58449
58450 2007-03-03  Bruno Haible  <bruno@clisp.org>
58451
58452         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58453         * modules/relocatable-lib: New file.
58454
58455 2007-03-03  Bruno Haible  <bruno@clisp.org>
58456
58457         * modules/relocatable-prog: Renamed from modules/relocatable.
58458         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58459
58460 2007-03-03  Bruno Haible  <bruno@clisp.org>
58461
58462         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58463         m4/relocatable-lib.m4.
58464         (Depends-on): Remove 'relocatable'.
58465         (configure.ac): Add gl_RELOCATABLE_NOP.
58466
58467 2007-03-03  Bruno Haible  <bruno@clisp.org>
58468
58469         * modules/relocatable-prog-wrapper: New file.
58470         * modules/relocatable (Depends-on): Add it. Remove all other
58471         dependencies except progname.
58472         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58473
58474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58475         (gl_FUNC_STRERROR): Nop.
58476         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58477
58478         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58479         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58480
58481         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58482         (gl_FUNC_READLINK): Update.
58483
58484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58485
58486 2007-03-03  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58489         * modules/xreadlink (Depends-on): Add unistd.
58490         * modules/xreadlink-with-size (Depends-on): Likewise.
58491
58492 2007-03-03  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58495         extracted from gt_FUNC_SETENV.
58496         (gt_FUNC_SETENV): Remove macro.
58497         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58498         remove gt_FUNC_SETENV.
58499
58500 2007-03-03  Bruno Haible  <bruno@clisp.org>
58501
58502         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58503         ENABLE_RELOCATABLE here.
58504         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58505
58506 2007-03-03  Bruno Haible  <bruno@clisp.org>
58507
58508         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58509         * tests/test-rbtreehash_list.c: Include progname.h.
58510         (main): Call set_program_name.
58511
58512         * modules/rbtree-oset-tests (Depends-on): Add progname.
58513         * tests/test-rbtree_oset.c: Include progname.h.
58514         (main): Call set_program_name.
58515
58516         * modules/rbtree-list-tests (Depends-on): Add progname.
58517         * tests/test-rbtree_list.c: Include progname.h.
58518         (main): Call set_program_name.
58519
58520         * modules/linked-list-tests (Depends-on): Add progname.
58521         * tests/test-linked_list.c: Include progname.h.
58522         (main): Call set_program_name.
58523
58524 2007-03-03  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58527         All uses of __restrict changed to _Restrict_.
58528         * lib/glob_.h (__restrict): Remove macro.
58529
58530 2007-03-02  Bruno Haible  <bruno@clisp.org>
58531
58532         * modules/gettext (configure.ac): Require gettext infrastructure
58533         from version 0.16.1.
58534
58535 2007-03-02  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/linkedhash-list-tests (Depends-on): Add progname.
58538         * tests/test-linkedhash_list.c: Include progname.h.
58539         (main): Call set_program_name.
58540
58541         * modules/carray-list-tests (Depends-on): Add progname.
58542         * tests/test-carray_list.c: Include progname.h.
58543         (main): Call set_program_name.
58544
58545         * modules/avltreehash-list-tests (Depends-on): Add progname.
58546         * tests/test-avltreehash_list.c: Include progname.h.
58547         (main): Call set_program_name.
58548
58549         * modules/avltree-oset-tests (Depends-on): Add progname.
58550         * tests/test-avltree_oset.c: Include progname.h.
58551         (main): Call set_program_name.
58552
58553         * modules/avltree-list-tests (Depends-on): Add progname.
58554         * tests/test-avltree_list.c: Include progname.h.
58555         (main): Call set_program_name.
58556
58557         * modules/array-oset-tests (Depends-on): Add progname.
58558         * tests/test-array_oset.c: Include progname.h.
58559         (main): Call set_program_name.
58560
58561         * modules/array-list-tests (Depends-on): Add progname.
58562         * tests/test-array_list.c: Include progname.h.
58563         (main): Call set_program_name.
58564
58565         * modules/argp-tests (Depends-on): Add progname.
58566         * tests/test-argp.c: Include argp.h first. Include progname.h.
58567         (main): Call set_program_name.
58568
58569 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58570
58571         * doc/gnulib-tool.texi (Initial import): Reword description of
58572         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58573         limited effect even if defined after the first system include.
58574
58575 2007-03-01  Bruno Haible  <bruno@clisp.org>
58576
58577         * build-aux/config.libpath: Update to libtool-1.5.22.
58578         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58579
58580 2007-03-01  Bruno Haible  <bruno@clisp.org>
58581
58582         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58583         foo_CFLAGS.
58584         Reported by Ralf Wildenhues.
58585
58586 2007-03-01  Bruno Haible  <bruno@clisp.org>
58587
58588         * build-aux/install-reloc: Remove object files left over by some
58589         compilers.
58590         Reported by Ralf Wildenhues.
58591
58592 2007-03-01  Bruno Haible  <bruno@clisp.org>
58593
58594         * build-aux/install-reloc: Break long lines.
58595
58596 2007-03-01  Bruno Haible  <bruno@clisp.org>
58597
58598         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58599         Reported by Ralf Wildenhues.
58600
58601 2007-03-01  Bruno Haible  <bruno@clisp.org>
58602
58603         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58604         include ordering constraints.
58605
58606 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58610         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58611         as another example.
58612         * lib/time_.h: Fix misspelling.
58613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58614         Require gl_HEADER_TIME_H_DEFAULTS.
58615         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58616         * m4/time_r.m4 (gl_TIME_R): Likewise.
58617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58618
58619 2007-03-01  Bruno Haible  <bruno@clisp.org>
58620
58621         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58622         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58623
58624 2007-03-01  Jim Meyering  <jim@meyering.net>
58625
58626         * modules/xreadlink (Maintainer): Add my name.
58627         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58628
58629 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58630             Bruno Haible  <bruno@clisp.org>
58631
58632         * build-aux/install-reloc: Compile also c-ctype.c.
58633         * build-aux/relocatable.sh.in: New file.
58634         * doc/relocatable.texi: New file.
58635         * doc/relocatable-maint.texi: New file.
58636         * doc/gnulib.texi: Include relocatable-maint.texi.
58637         * lib/progreloc.c: Include unistd.h unconditionally.
58638         * lib/relocwrapper.c: Include unistd.h unconditionally.
58639         Include c-ctype.h.
58640         (add_dotbin): Use c_tolower.
58641         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58642         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58643         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58644         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58645         to m4/relocatable-lib.m4.
58646         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58647         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58648         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58649         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58650         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58651         * modules/relocatable: New file.
58652         * modules/relocatable-lib: New file.
58653         * modules/relocatable-script: New file.
58654
58655 2007-02-28  Bruno Haible  <bruno@clisp.org>
58656
58657         Import --enable-relocatable infrastructure.
58658         * build-aux/config.libpath: New file, from GNU gettext.
58659         * build-aux/install-reloc: New file, from GNU gettext.
58660         * build-aux/reloc-ldflags: New file, from GNU gettext.
58661         * lib/relocatable.h: New file, from GNU gettext.
58662         * lib/relocatable.c: New file, from GNU gettext.
58663         * lib/relocwrapper.c: New file, from GNU gettext.
58664         * m4/relocatable.m4: New file, from GNU gettext.
58665
58666 2007-02-28  Bruno Haible  <bruno@clisp.org>
58667
58668         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58669
58670         * modules/xreadlink: New file, from GNU gettext with modifications.
58671         * lib/xreadlink.c: New file, from GNU gettext.
58672         * lib/xreadlink.h: Add comments.
58673         (xreadlink): New declaration.
58674
58675         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58676         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58677         lib/xreadlink-with-size.c.
58678         (configure.ac): Remove gl_XREADLINK invocation.
58679         (Makefile.am): Augment lib_SOURCES.
58680         * m4/xreadlink.m4: Remove file.
58681         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58682         (xreadlink_with_size): Renamed from xreadink.
58683         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58684         * modules/canonicalize (Depends-on): Replace xreadlink with
58685         xreadlink-with-size.
58686         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58687
58688 2007-02-25  Jim Meyering  <jim@meyering.net>
58689
58690         * build-aux/announce-gen: When complaining about excess arguments,
58691         list them.
58692
58693 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * README: Document signed integer overflow situation more
58696         accurately.
58697
58698 2007-02-25  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58701         'a' or 'A' conversion.
58702
58703 2007-02-25  Bruno Haible  <bruno@clisp.org>
58704
58705         * modules/filename: Renamed from modules/pathname.
58706         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58707         lib/concatpath.c with lib/concat-filename.c.
58708         (Makefile.am): Update.
58709         (Include): Replace pathname.h with filename.h.
58710         * lib/filename.h: Renamed from lib/pathname.h.
58711         (concatenated_filename): Renamed from concatenated_pathname.
58712         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58713         (concatenated_filename): Renamed from concatenated_pathname.
58714         * lib/findprog.c: Include filename.h instead of pathname.h.
58715         (find_in_path): Update.
58716         * lib/javacomp.c: Include filename.h instead of pathname.h.
58717         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58718         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58719         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58720         is_oldgcj_14_13_usable, is_javac_usable): Update.
58721         * lib/javaexec.c: Include filename.h instead of pathname.h.
58722         (execute_java_class): Update.
58723         * modules/findprog: Update.
58724         * modules/javacomp: Update.
58725         * modules/javaexec: Update.
58726         * MODULES.html.sh (File system functions): Add 'filename', remove
58727         'pathname'.
58728
58729 2007-02-25  Bruno Haible  <bruno@clisp.org>
58730
58731         * modules/printf-frexpl-tests: New file.
58732         * tests/test-printf-frexpl.c: New file.
58733
58734         * modules/printf-frexpl: New file.
58735         * lib/printf-frexpl.h: New file.
58736         * lib/printf-frexpl.c: New file.
58737         * m4/printf-frexpl.m4: New file.
58738
58739 2007-02-25  Bruno Haible  <bruno@clisp.org>
58740
58741         * modules/printf-frexp-tests: New file.
58742         * tests/test-printf-frexp.c: New file.
58743
58744         * modules/printf-frexp: New file.
58745         * lib/printf-frexp.h: New file.
58746         * lib/printf-frexp.c: New file.
58747         * m4/printf-frexp.m4: New file.
58748
58749 2007-02-25  Bruno Haible  <bruno@clisp.org>
58750
58751         Assume automake >= 1.10 for the tests.
58752         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58753         * modules/arctwo-tests: Likewise.
58754         * modules/argp-tests: Likewise.
58755         * modules/avltree-list-tests: Likewise.
58756         * modules/avltree-oset-tests: Likewise.
58757         * modules/avltreehash-list-tests: Likewise.
58758         * modules/carray-list-tests: Likewise.
58759         * modules/crc-tests: Likewise.
58760         * modules/des-tests: Likewise.
58761         * modules/gc-arcfour-tests: Likewise.
58762         * modules/gc-arctwo-tests: Likewise.
58763         * modules/gc-des-tests: Likewise.
58764         * modules/gc-hmac-md5-tests: Likewise.
58765         * modules/gc-hmac-sha1-tests: Likewise.
58766         * modules/gc-md2-tests: Likewise.
58767         * modules/gc-md4-tests: Likewise.
58768         * modules/gc-md5-tests: Likewise.
58769         * modules/gc-pbkdf2-sha1-tests: Likewise.
58770         * modules/gc-rijndael-tests: Likewise.
58771         * modules/gc-sha1-tests: Likewise.
58772         * modules/gc-tests: Likewise.
58773         * modules/getaddrinfo-tests: Likewise.
58774         * modules/hmac-md5-tests: Likewise.
58775         * modules/hmac-sha1-tests: Likewise.
58776         * modules/linked-list-tests: Likewise.
58777         * modules/linkedhash-list-tests: Likewise.
58778         * modules/lock-tests: Likewise.
58779         * modules/md2-tests: Likewise.
58780         * modules/md4-tests: Likewise.
58781         * modules/md5-tests: Likewise.
58782         * modules/rbtree-list-tests: Likewise.
58783         * modules/rbtree-oset-tests: Likewise.
58784         * modules/rbtreehash-list-tests: Likewise.
58785         * modules/read-file-tests: Likewise.
58786         * modules/rijndael-tests: Likewise.
58787         * modules/stdint-tests: Likewise.
58788         * modules/tls-tests: Likewise.
58789
58790 2007-02-24  Bruno Haible  <bruno@clisp.org>
58791
58792         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58793         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58794         function; instead check whether isnan with a double argument links.
58795         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58796         function; instead check whether isnan with a 'long double' argument
58797         links.
58798         Reported by Eric Blake <ebb9@byu.net>.
58799
58800 2007-02-24  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58803         defined.
58804         * lib/isnanl.c: Remove all code. Just include isnan.c.
58805         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58806
58807 2007-02-25  Jim Meyering  <jim@meyering.net>
58808
58809         Avoid conflicting types for 'unsetenv' on FreeBSD.
58810         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58811         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58812         in stdlib.h.
58813
58814 2007-02-24  Bruno Haible  <bruno@clisp.org>
58815
58816         * modules/isnanl-nolibm-tests: New file.
58817         * tests/test-isnanl.c: New file.
58818
58819         * modules/isnanl-nolibm: New file.
58820         * lib/isnanl.h: New file.
58821         * lib/isnanl.c: New file.
58822         * m4/isnanl.m4: New file.
58823
58824 2007-02-24  Bruno Haible  <bruno@clisp.org>
58825
58826         * modules/isnan-nolibm-tests: New file.
58827         * tests/test-isnan.c: New file.
58828
58829         * modules/isnan-nolibm: New file.
58830         * lib/isnan.h: New file.
58831         * lib/isnan.c: New file.
58832         * m4/isnan.m4: New file.
58833
58834 2007-02-24  Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58837         assume that an exponent fits in 20 bits.
58838
58839 2007-02-24  Jim Meyering  <jim@meyering.net>
58840
58841         * m4/regex.m4: Update the description of the configure-time option,
58842         --without-included-regex, to state accurately what the defaults are,
58843         and perhaps to give people an idea why using this option is risky.
58844
58845 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58848         loops on small arguments.  This attempts to avoid the problem
58849         Bruno Haible reported for AIX 4.3.2 in
58850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58851
58852 2007-02-23  Bruno Haible  <bruno@clisp.org>
58853
58854         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58855         Needed for help2man.
58856
58857 2007-02-23  Karl Berry  <karl@gnu.org>
58858
58859         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58860         exists, foo.h should be cvs-ignored, not committed.
58861
58862 2007-02-23  Eric Blake  <ebb9@byu.net>
58863
58864         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58865         * lib/stat-time.h (includes): Likewise.
58866         * lib/utimecmp.c (includes): Likewise.
58867         * lib/utimens.h (includes): Likewise.
58868         * lib/getdate.y (includes): Also include "timespec.h" for use
58869         internal to the module.
58870         * modules/utimens (Depends-on): Revert yesterday's patch.
58871         * modules/nanosleep (Depends-on): Add missing dependency.
58872
58873 2007-02-22  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/glob.c: Don't include getlogin_r.h.
58876
58877 2007-02-22  Jim Meyering  <jim@meyering.net>
58878
58879         * modules/utimens (Depends-on): Add timespec, required for
58880         utimens.h's inclusion of timespec.h.
58881
58882 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58885         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58886         Schwab in
58887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58888         I'll try to think of a better way to fix the Solaris problem.
58889
58890         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58891         like glibc; on Solaris 10, it fails with errno == EINVAL.
58892         POSIX says the behavior is unspecified if the first argument is NULL,
58893         so play it safe and never pass NULL to the system getcwd.
58894
58895 2007-02-21  Jim Meyering  <jim@meyering.net>
58896
58897         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58898         of gettimeofday.  It would conflict with the one now always
58899         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58900         an IRIX 6.5 build failure.
58901
58902 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         Minor fixups to port to Solaris 10 with Sun C 5.8.
58905         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58906         * modules/getcwd (Depends-on): Add dirfd.
58907         * lib/putenv.c (putenv): #undef it.
58908         (rpl_putenv): New decl.
58909         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58910
58911 2007-02-20  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/stdio-tests: New file.
58914         * tests/test-stdio.c: New file.
58915
58916         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58917         (Depends-on): Add stdio.
58918         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58919         (Include): Use <stdio.h> instead of vsnprintf.h.
58920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58921         HAVE_DECL_VSNPRINTF.
58922         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58923
58924         * modules/snprintf (Files): Remove lib/snprintf.h.
58925         (Depends-on): Add stdio.
58926         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58927         (Include): Use <stdio.h> instead of snprintf.h.
58928         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58929         HAVE_DECL_SNPRINTF.
58930         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58931         * lib/getaddrinfo.c: Likewise.
58932
58933         * modules/stdio: New file.
58934         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58935         * lib/snprintf.h: Remove file.
58936         * lib/vsnprintf.h: Remove file.
58937         * lib/.cppi-disable: Remove snprintf.h.
58938         * m4/stdio_h.m4: New file.
58939         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58940
58941 2007-02-20  Jim Meyering  <jim@meyering.net>
58942
58943         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58944         used by e.g., mingw.  From Bruno Haible.
58945
58946 2007-02-19  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58949         warnings.
58950         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58951
58952 2007-02-19  Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58955         from mingw users.
58956
58957 2007-02-19  Bruno Haible  <bruno@clisp.org>
58958
58959         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58960         warnings.
58961         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58962
58963 2007-02-19  Jim Meyering  <jim@meyering.net>
58964
58965         Don't use FD after a successful "fdopendir (fd)".
58966         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58967         Reset it by calling dirfd on the just-obtained DIR*.
58968
58969         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58970         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58971
58972 2007-02-18  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/readlink.c: Include <unistd.h>.
58975         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58976         HAVE_READLINK.
58977         * modules/readlink (Depends-on): Add unistd.
58978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58979         (Include): Add <unistd.h>.
58980
58981         * lib/getlogin_r.h: Remove file.
58982         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58984         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58985         HAVE_DECL_GETLOGIN_R.
58986         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58988         (Include): Use <unistd.h> instead of getlogin_r.h.
58989
58990         * lib/getcwd.h: Remove file.
58991         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58992         * lib/xgetcwd.c: Likewise.
58993         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58994         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58995         * modules/getcwd (Files): Remove lib/getcwd.h.
58996         (Depends-on): Add unistd.
58997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58998         (Include): Use <unistd.h> instad of getcwd.h.
58999
59000         * lib/ftruncate.c: Include <unistd.h> first.
59001         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59002         Set HAVE_FTRUNCATE.
59003         * modules/ftruncate (Depends-on): Add unistd.
59004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59005
59006         * lib/fchdir.c: Include <unistd.h> first.
59007         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59009         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59010         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59011         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59012
59013         * lib/dup2.c: Include <unistd.h> first.
59014         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59015         HAVE_DUP2.
59016         * modules/dup2 (Depends-on): Add unistd.
59017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59018
59019         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59020         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59021         REPLACE_CHOWN. Don't define chown as a macro here.
59022         * modules/chown (Depends-on): Add unistd.
59023         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59024
59025         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59026         Add definition for GL_LINK_WARNING.
59027         (chown, dup2): New declarations.
59028         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59029         link warning.
59030         (ftruncate): New declaration.
59031         (getcwd): New declaration, taken from old getcwd.h.
59032         (getlogin_r): New declaration, taken from old getlogin_r.h.
59033         (readlink): New declaration.
59034         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59035         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59036         (gl_PREREQ_UNISTD): Remove macro.
59037         (gl_UNISTD_MODULE_INDICATOR): New macro.
59038         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59039         many new variables. Don't set UNISTD_H.
59040         * modules/unistd (Description): Change.
59041         (Depends-on): Add link-warning.
59042         (configure.ac): Update.
59043         (Makefile.am): Create unistd.h always. Substitute many new variables
59044         into it.
59045
59046 2007-02-18  Bruno Haible  <bruno@clisp.org>
59047
59048         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59049         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59050         HAVE_GETSUBOPT.
59051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59052         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59053         * lib/getsubopt.h: Remove file.
59054         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59055         (Depends-on): Add stdlib.
59056         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59057         (Includes): Use <stdlib.h> instead of getsubopt.h.
59058         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59059         Set HAVE_GETSUBOPT.
59060         * lib/getsubopt.c: Don't include getsubopt.h.
59061
59062 2007-02-18  Bruno Haible  <bruno@clisp.org>
59063
59064         * modules/fchdir (Depends-on): Add dup2.
59065
59066 2007-02-18  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/stdlib_.h: Handle glibc's special invocation convention
59069         specially.
59070
59071 2007-02-18  Bruno Haible  <bruno@clisp.org>
59072
59073         * modules/stdlib-tests: New file.
59074         * tests/test-stdlib.c: New file.
59075
59076         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59077         (Depends-on): Add stdlib.
59078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59079         (Includes): Use <stdlib.h> instead of mkstemp.h.
59080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59081         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59082         * lib/mkstemp.c: Don't include mkstemp.h.
59083         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59084         * lib/stdlib--.h: Don't include mkstemp.h.
59085
59086         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59087         (Depends-on): Add stdlib.
59088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59089         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59090         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59091         HAVE_MKDTEMP.
59092         * lib/mkdtemp.c: Don't include mkdtemp.h.
59093         * lib/clean-temp.c: Don't include mkdtemp.h.
59094
59095         * modules/exit (Files): Remove lib/exit.h.
59096         (Depends-on): Add stdlib.
59097         (Makefile.am): Remove lib_SOURCES.
59098         (Include): Use <stdlib.h> instead of exit.h.
59099         * lib/argmatch.c: Don't include exit.h.
59100         * lib/execute.c: Likewise.
59101         * lib/pagealign_alloc.c: Likewise.
59102         * lib/pipe.c: Likewise.
59103         * lib/wait-process.c: Likewise.
59104         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59105         * lib/exitfail.c: Likewise.
59106         * lib/savewd.c: Likewise.
59107         * lib/xsetenv.c: Likewise.
59108
59109         * modules/stdlib: New file.
59110         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59111         and extra comments about mkstemp().
59112         * lib/exit.h: Remove file.
59113         * lib/mkdtemp.h: Remove file.
59114         * lib/mkstemp.h: Remove file.
59115         * m4/stdlib_h.m4: New file.
59116         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59117
59118 2007-02-18  Bruno Haible  <bruno@clisp.org>
59119
59120         * modules/math-tests: New file.
59121         * tests/test-math.c: New file.
59122
59123         * modules/math: New file.
59124         * modules/mathl (Files): Remove lib/mathl.h.
59125         (Depends-on): Add math.
59126         (Makefile.am): Don't mention mathl.h.
59127         (Include): Use <math.h> instead of mathl.h.
59128         * lib/math_.h: New file.
59129         * lib/mathl.h: Remove file.
59130         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59131         mathl.h.
59132         * lib/asinl.c: Likewise.
59133         * lib/atanl.c: Likewise.
59134         * lib/ceill.c: Likewise.
59135         * lib/cosl.c: Likewise.
59136         * lib/expl.c: Likewise.
59137         * lib/floorl.c: Likewise.
59138         * lib/frexpl.c: Likewise.
59139         * lib/ldexpl.c: Likewise.
59140         * lib/logl.c: Likewise.
59141         * lib/sincosl.c: Likewise.
59142         * lib/sinl.c: Likewise.
59143         * lib/sqrtl.c: Likewise.
59144         * lib/tanl.c: Likewise.
59145         * lib/trigl.c: Likewise.
59146         * m4/math_h.m4: New file.
59147         * MODULES.html.sh (Mathematics): Add math.
59148
59149 2007-02-17  Bruno Haible  <bruno@clisp.org>
59150
59151         * modules/wctype-tests: New file.
59152         * tests/test-wctype.c: New file.
59153
59154         * modules/wchar-tests: New file.
59155         * tests/test-wchar.c: New file.
59156
59157         * modules/unistd-tests: New file.
59158         * tests/test-unistd.c: New file.
59159
59160         * modules/time-tests: New file.
59161         * tests/test-time.c: New file.
59162
59163         * modules/sysexits-tests: New file.
59164         * tests/test-sysexits.c: New file.
59165
59166         * modules/sys_time-tests: New file.
59167         * tests/test-sys_time.c: New file.
59168
59169         * modules/sys_stat-tests: New file.
59170         * tests/test-sys_stat.c: New file.
59171
59172         * modules/sys_socket-tests: New file.
59173         * tests/test-sys_socket.c: New file.
59174
59175         * modules/sys_select-tests: New file.
59176         * tests/test-sys_select.c: New file.
59177
59178         * modules/string-tests: New file.
59179         * tests/test-string.c: New file.
59180
59181         * modules/stdbool-tests: New file.
59182         * tests/test-stdbool.c: New file.
59183
59184         * modules/netinet_in-tests: New file.
59185         * tests/test-netinet_in.c: New file.
59186
59187         * modules/inttypes-tests: New file.
59188         * tests/test-inttypes.c: New file.
59189
59190         * modules/fcntl-tests: New file.
59191         * tests/test-fcntl.c: New file.
59192
59193         * modules/byteswap-tests: New file.
59194         * tests/test-byteswap.c: New file.
59195
59196         * modules/arpa_inet-tests: New file.
59197         * tests/test-arpa_inet.c: New file.
59198
59199 2007-02-17  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59202         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59203         if the corresponding module is not enabled. Emit link warnings if
59204         the function is used nevertheless.
59205         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59206         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59207         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59208         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59209         * modules/inttypes (Depends-on): Add link-warning.
59210         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59211         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59212         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59213         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59214         * modules/imaxdiv (configure.ac): Likewise.
59215         * modules/strtoimax (configure.ac): Likewise.
59216         * modules/strtoumax (configure.ac): Likewise.
59217
59218 2007-02-17  Bruno Haible  <bruno@clisp.org>
59219
59220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59221         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59222         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59223         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59224
59225 2007-02-17  Bruno Haible  <bruno@clisp.org>
59226
59227         * modules/link-warning: New file.
59228         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59229         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59230         * modules/string (Depends-on): Add link-warning.
59231         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59232         string.h.
59233         * MODULES.html.sh (Support for building libraries and executables): Add
59234         link-warning.
59235
59236 2007-02-17  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59239         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59240         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59241         long lines.
59242
59243 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59244             Bruno Haible  <bruno@clisp.org>
59245
59246         * modules/tmpfile: New file.
59247         * lib/tmpfile.c: New file.
59248         * m4/tmpfile.m4: New file.
59249         * MODULES.html.sh (func_all_modules): New section "Input/output".
59250
59251 2007-02-15  Bruno Haible  <bruno@clisp.org>
59252
59253         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59254         (supports_delete_on_close): New function.
59255         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59256
59257 2007-02-14  Bruno Haible  <bruno@clisp.org>
59258
59259         * modules/mbspcasecmp-tests: New file.
59260         * tests/test-mbspcasecmp.sh: New file.
59261         * tests/test-mbspcasecmp.c: New file.
59262
59263         New module mbspcasecmp.
59264         * modules/mbspcasecmp: New file.
59265         * lib/mbspcasecmp.c: New file.
59266         * lib/string_.h (strncasecmp): Change warning message.
59267         (mbspcasecmp): New declaration.
59268         * m4/mbspcasecmp.m4: New file.
59269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59270         GNULIB_MBSPCASECMP.
59271         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59272         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59273
59274 2007-02-14  Bruno Haible  <bruno@clisp.org>
59275
59276         * modules/mbsncasecmp-tests: New file.
59277         * tests/test-mbsncasecmp.sh: New file.
59278         * tests/test-mbsncasecmp.c: New file.
59279
59280         New module mbsncasecmp.
59281         * modules/mbsncasecmp: New file.
59282         * lib/mbsncasecmp.c: New file.
59283         * lib/string_.h (mbsncasecmp): New declaration.
59284         * m4/mbsncasecmp.m4: New file.
59285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59286         GNULIB_MBSNCASECMP.
59287         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59288         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59289
59290 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59291
59292         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59293         Verify that it doesn't overlap with our flags.
59294         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59295         do not have the desired effect in multibyte locales; instead, use
59296         mbscasecmp.
59297         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59298         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59299         we don't require GNU fnmatch ourselves (if our users require it, they
59300         should do so explicitly).
59301
59302         Fix regex code so it doesn't rely on strcasecmp.
59303         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59304         Otherwise, include gnulib's langinfo.h.
59305         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59306         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59307         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59308         * modules/regex (FILES): Remove m4/codeset.m4.
59309         (Depends-on): Add localcharset.  Remove strcase.
59310
59311 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59312
59313         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59315
59316 2007-02-13  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59320
59321 2007-02-12  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59324         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59325         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59326         time warning rather than a link error.
59327
59328 2007-02-12  Bruno Haible  <bruno@clisp.org>
59329
59330         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59333
59334 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59335
59336         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59337         args, not 2.
59338
59339 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         New module 'time', so that apps can include <time.h> as per
59342         POSIX and GNU instead of separate include files like time_r.h
59343         and timegm.h.  This implementation tries out a simpler approach
59344         for replacing decls in standard include files (as compared to
59345         the string module), somewhat as an experiment.
59346
59347         * config/srclist.txt: Comment out mktime.c for now.
59348         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59349         since it doesn't apply any more.  Use generic wording instead.
59350         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59351         'time'.
59352         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59353         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59354         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59355         Don't include <sys/types.h>; no longer needed since we assume C89.
59356         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59357         * lib/strftime.c: Likewise.
59358         * lib/time_r.c: Likewise.
59359         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59360         * lib/nanosleep.c: Include <time.h> first, to check interface.
59361         * lib/strptime.c: Likewise.
59362         * lib/time_r.c: Likewise.
59363         * lib/timegm.c: Likewise.
59364         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59365         needed.
59366         * lib/timegm.c: Don't include timegm.h; no longer needed.
59367         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59368         time.h now handles any problems in that area.
59369         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59370         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59371         that time.h defines struct timespec.
59372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59373         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59374         handles that.
59375         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59376         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59377         needed.  Set REPLACE_LOCALTIME.
59378         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59379         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59380         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59381         nanosleep; time_h.m4 now does that.  Don't require
59382         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59383         module handles this now.
59384         * modules/getdate (Depends-on): Remove timespec.  Add time.
59385         * modules/nanosleep (Depends-on): Likewise.
59386         * modules/stat-time (Depends-on): Likewise.
59387         * modules/nanosleep (Include): Include time.h, not timespec.h.
59388         * modules/strptime (Files): Remove lib/strptime.h.
59389         (Depends-on): Add extensions, time.
59390         (Include): Include time.h, not strptime.h.
59391         * modules/time_r (Files): Remove lib/time_r.h.
59392         (Depends-on): Add time.
59393         (Include): Include time.h, not time_r.h.
59394         * modules/timegm: Likewise.
59395         * modules/timespec (Description): Now does timespec-related decls
59396         of our own, instead of struct timespec itself.
59397         (Depends-on): Add time; remove extensions.
59398         (Maintainer): Add self.
59399         * modules/utimecmp (Depends-on): Add time; remove timespec.
59400         * modules/utimens (Depends-on): Likewise.
59401         * modules/xnanosleep (Depends-on): Likewise.
59402
59403 2007-02-11  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/c-strstr.c: Include allocsa.h.
59406         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59407         * lib/c-strcasestr.c: Include allocsa.h.
59408         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59409         * lib/strcasestr.c: Include allocsa.h.
59410         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59411         * lib/mbsstr.c: Include allocsa.h.
59412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59413         allocsa/freesa instead of malloc/free.
59414         * lib/mbscasestr.c: Include allocsa.h.
59415         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59416         allocsa/freesa instead of malloc/free.
59417         * modules/c-strstr (Depends-on): Add allocsa.
59418         * modules/c-strcasestr (Depends-on): Likewise.
59419         * modules/strcasestr (Depends-on): Likewise.
59420         * modules/mbsstr (Depends-on): Likewise.
59421         * modules/mbscasestr (Depends-on): Likewise.
59422
59423 2007-02-11  Bruno Haible  <bruno@clisp.org>
59424
59425         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59426
59427         * modules/mbsspn-tests: New file.
59428         * tests/test-mbsspn.sh: New file.
59429         * tests/test-mbsspn.c: New file.
59430
59431 2007-02-11  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59434
59435         * modules/mbspbrk-tests: New file.
59436         * tests/test-mbspbrk.sh: New file.
59437         * tests/test-mbspbrk.c: New file.
59438
59439 2007-02-11  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59442         unneeded cast.
59443
59444         * modules/mbscspn-tests: New file.
59445         * tests/test-mbscspn.sh: New file.
59446         * tests/test-mbscspn.c: New file.
59447
59448 2007-02-11  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/mbscasecmp-tests: New file.
59451         * tests/test-mbscasecmp.sh: New file.
59452         * tests/test-mbscasecmp.c: New file.
59453
59454 2007-02-11  Bruno Haible  <bruno@clisp.org>
59455
59456         Ensure O(n) worst-case complexity of mbscasestr.
59457         * lib/mbscasestr.c: Include stdbool.h.
59458         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59459         functions.
59460         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59461         the bookkeeping indicates that it's worth it.
59462         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59463
59464         * modules/mbscasestr-tests: New file.
59465         * tests/test-mbscasestr1.c: New file.
59466         * tests/test-mbscasestr2.sh: New file.
59467         * tests/test-mbscasestr2.c: New file.
59468         * tests/test-mbscasestr3.sh: New file.
59469         * tests/test-mbscasestr3.c: New file.
59470         * tests/test-mbscasestr4.sh: New file.
59471         * tests/test-mbscasestr4.c: New file.
59472         * m4/locale-tr.m4: New file.
59473
59474 2007-02-11  Bruno Haible  <bruno@clisp.org>
59475
59476         Ensure O(n) worst-case complexity of mbsstr.
59477         * lib/mbsstr.c: Include stdbool.h.
59478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59479         functions.
59480         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59481         bookkeeping indicates that it's worth it.
59482         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59483
59484         * modules/mbsstr-tests: New file.
59485         * tests/test-mbsstr1.c: New file.
59486         * tests/test-mbsstr2.sh: New file.
59487         * tests/test-mbsstr2.c: New file.
59488         * tests/test-mbsstr3.sh: New file.
59489         * tests/test-mbsstr3.c: New file.
59490         * m4/locale-fr.m4: New file.
59491
59492 2007-02-11  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/mbsrchr.c (mbsrchr): Fix bug.
59495
59496         * modules/mbsrchr-tests: New file.
59497         * tests/test-mbsrchr.sh: New file.
59498         * tests/test-mbsrchr.c: New file.
59499
59500 2007-02-11  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/mbschr.c (mbschr): Fix bug.
59503
59504         * modules/mbschr-tests: New file.
59505         * tests/test-mbschr.sh: New file.
59506         * tests/test-mbschr.c: New file.
59507         * m4/locale-zh.m4: New file.
59508
59509 2007-02-11  Bruno Haible  <bruno@clisp.org>
59510
59511         Support for copying multibyte string iterators.
59512         * lib/mbiter.h: Include <string.h>.
59513         (mbiter_multi_copy): New function.
59514         (mbi_copy): New macro.
59515         * lib/mbuiter.h: Include <string.h>.
59516         (mbuiter_multi_copy): New function.
59517         (mbui_copy): New macro.
59518
59519 2007-02-11  Bruno Haible  <bruno@clisp.org>
59520
59521         New module mbslen.
59522         * modules/mbslen: New file.
59523         * lib/mbslen.c: New file.
59524         * lib/string_.h (mbslen): New declaration.
59525         * m4/mbslen.m4: New file.
59526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59527         GNULIB_MBSLEN.
59528         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59529         * MODULES.html.sh (Internationalization functions): Add mbslen.
59530
59531 2007-02-11  Bruno Haible  <bruno@clisp.org>
59532
59533         Ensure O(n) worst-case complexity of strcasestr substitute.
59534         * lib/strcasestr.c: Include stdbool.h.
59535         (knuth_morris_pratt): New function.
59536         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59537         bookkeeping indicates that it's worth it.
59538         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59539
59540         * modules/strcasestr-tests: New file.
59541         * tests/test-strcasestr.c: New file.
59542
59543 2007-02-11  Bruno Haible  <bruno@clisp.org>
59544
59545         Ensure O(n) worst-case complexity of c_strcasestr.
59546         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59547         (knuth_morris_pratt): New function.
59548         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59549         the bookkeeping indicates that it's worth it.
59550         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59551
59552         * modules/c-strcasestr-tests: New file.
59553         * tests/test-c-strcasestr.c: New file.
59554
59555 2007-02-11  Bruno Haible  <bruno@clisp.org>
59556
59557         Ensure O(n) worst-case complexity of c_strstr.
59558         * lib/c-strstr.c: Include stdbool.h, string.h.
59559         (knuth_morris_pratt): New function.
59560         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59561         bookkeeping indicates that it's worth it.
59562         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59563
59564         * lib/c-strstr.c: Complete rewrite for maintainability.
59565
59566         * modules/c-strstr-tests: New file.
59567         * tests/test-c-strstr.c: New file.
59568
59569 2007-02-11  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59572         5.2.1 and earlier, whereby \055 was treated just like the range
59573         delimiter '-'.
59574         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59575
59576 2007-02-08  Bruno Haible  <bruno@clisp.org>
59577
59578         * modules/regex (Depends-on): Add stdbool.
59579         Reported by Dalibor Topic <robilad@kaffe.org>.
59580
59581 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59584         Prefer returning from main to exiting from it.
59585         Remove unnecessary parens after sizeof.
59586
59587 2007-02-05  Bruno Haible  <bruno@clisp.org>
59588
59589         New module mbssep.
59590         * modules/mbssep: New file.
59591         * lib/mbssep.c: New file.
59592         * lib/string_.h (strsep): Add a conditional link warning.
59593         (mbssep): New declaration.
59594         * m4/mbssep.m4: New file.
59595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59596         GNULIB_MBSSEP.
59597         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59598         * MODULES.html.sh (Internationalization functions): Add mbssep.
59599
59600 2007-02-05  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59603         Optimize search in case of 1 delimiter.
59604
59605 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59606
59607         * lib/acl.h: Include sys/types.h before sys/acl.h.
59608
59609 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59610
59611         Merge upstream fix for glibc bugzilla #3957:
59612
59613         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59614
59615         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59616         bit for RE_HAT_LISTS_NOT_NEWLINE.
59617         (build_charclass_op): Remove bogus comment.
59618
59619 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59620
59621         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59622
59623 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59626         * lib/memmem.c [!defined _LIBC]: Include config.h.
59627
59628 2007-02-04  Bruno Haible  <bruno@clisp.org>
59629
59630         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59631         warning message.
59632
59633 2007-02-04  Bruno Haible  <bruno@clisp.org>
59634
59635         New module mbstok_r.
59636         * modules/mbstok_r: New file.
59637         * lib/mbstok_r.c: New file.
59638         * lib/string_.h (strtok_r): Change argument names to match the
59639         comments. Add a conditional link warning.
59640         (mbstok_r): New declaration.
59641         * m4/mbstok_r.m4: New file.
59642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59643         GNULIB_MBSTOK_R.
59644         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59645         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59646
59647 2007-02-04  Bruno Haible  <bruno@clisp.org>
59648
59649         New module mbsspn.
59650         * modules/mbsspn: New file.
59651         * lib/mbsspn.c: New file.
59652         * lib/string_.h (strspn): Add a conditional link warning.
59653         (mbsspn): New declaration.
59654         * m4/mbsspn.m4: New file.
59655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59656         GNULIB_MBSSPN.
59657         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59658         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59659
59660 2007-02-04  Bruno Haible  <bruno@clisp.org>
59661
59662         New module mbspbrk.
59663         * modules/mbspbrk: New file.
59664         * lib/mbspbrk.c: New file.
59665         * lib/string_.h (strpbrk): Add a conditional link warning.
59666         (mbspbrk): New declaration.
59667         * m4/mbspbrk.m4: New file.
59668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59669         GNULIB_MBSPBRK.
59670         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59671         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59672
59673 2007-02-04  Bruno Haible  <bruno@clisp.org>
59674
59675         New module mbscspn.
59676         * modules/mbscspn: New file.
59677         * lib/mbscspn.c: New file.
59678         * lib/string_.h (strcspn): Add a conditional link warning.
59679         (mbscspn): New declaration.
59680         * m4/mbscspn.m4: New file.
59681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59682         GNULIB_MBSCSPN.
59683         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59684         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59685
59686 2007-02-04  Bruno Haible  <bruno@clisp.org>
59687
59688         New module mbscasestr, reduced goal of strcasestr.
59689         * modules/mbscasestr: New file.
59690         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59691         (mbscasestr): Renamed from strcasestr.
59692         * lib/strcasestr.c: Don't include mbuiter.h.
59693         (strcasestr): Remove support for multibyte locales.
59694         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59695         Change the conditional link warning.
59696         (mbscasestr): New declaration.
59697         * m4/mbscasestr.m4: New file.
59698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59699         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59700         REPLACE_STRCASESTR.
59701         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59703         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59704         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59705         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59706         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59707         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59708         (Depends-on): Remove mbuiter.
59709         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59710
59711 2007-02-04  Bruno Haible  <bruno@clisp.org>
59712
59713         Simplify handling of strncasecmp.
59714         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59715         the conditional link warning.
59716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59717         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59719         * modules/strcase (configure.ac): Don't invoke
59720         gl_STRING_MODULE_INDICATOR.
59721         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59722
59723 2007-02-04  Bruno Haible  <bruno@clisp.org>
59724
59725         New module mbscasecmp, reduced goal of strcasecmp.
59726         * modules/mbscasecmp: New file.
59727         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59728         (mbscasecmp): Renamed from strcasecmp.
59729         * lib/strcasecmp.c: Don't include mbuiter.h.
59730         (strcasecmp): Remove support for multibyte locales.
59731         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59732         Change the conditional link warning.
59733         (mbscasecmp): New declaration.
59734         * m4/mbscasecmp.m4: New file.
59735         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59736         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59737         REPLACE_STRCASECMP.
59738         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59740         GNULIB_MBSCASECMP.
59741         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59742         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59743         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59744         (Depends-on): Remove mbuiter.
59745         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59746
59747 2007-02-04  Bruno Haible  <bruno@clisp.org>
59748
59749         New module mbsstr. Remove module strstr.
59750         * modules/mbsstr: New file.
59751         * modules/strstr: Remove file.
59752         * lib/mbsstr.c: Renamed from lib/strstr.c.
59753         (mbsstr): Renamed from strstr.
59754         * lib/string_.h (strstr): Remove declaration. Change the conditional
59755         link warning.
59756         (mbsstr): New declaration.
59757         * m4/mbsstr.m4: New file.
59758         * m4/strstr.m4: Remove file.
59759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59760         REPLACE_STRSTR.
59761         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59762         Don't initialize GNULIB_STRSTR.
59763         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59764         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59765         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59766         (Support for systems lacking ANSI C 89): Remove strstr.
59767
59768 2007-02-04  Bruno Haible  <bruno@clisp.org>
59769
59770         New module mbsrchr.
59771         * modules/mbsrchr: New file.
59772         * lib/mbsrchr.c: New file.
59773         * lib/string_.h (strrchr): Add a conditional link warning.
59774         (mbsrchr): New declaration.
59775         * m4/mbsrchr.m4: New file.
59776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59777         GNULIB_MBSRCHR.
59778         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59779         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59780
59781 2007-02-04  Bruno Haible  <bruno@clisp.org>
59782
59783         New module mbschr.
59784         * modules/mbschr: New file.
59785         * lib/mbschr.c: New file.
59786         * lib/string_.h (strchr): Add a conditional link warning.
59787         (mbschr): New declaration.
59788         * m4/mbschr.m4: New file.
59789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59790         GNULIB_MBSCHR.
59791         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59792         * MODULES.html.sh (Internationalization functions): Add mbschr.
59793
59794 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59795
59796         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59797
59798         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59799
59800 2007-02-04  Bruno Haible  <bruno@clisp.org>
59801
59802         New module description section 'configure.ac-early'.
59803         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59804         (func_get_autoconf_early_snippet): New function.
59805         (func_import, func_create_testdir): Use it. Remove special cases for
59806         modules 'extensions' and 'lock'.
59807         * modules/extensions (configure.ac-early): Require
59808         gl_USE_SYSTEM_EXTENSIONS.
59809         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59810
59811 2007-02-04  Bruno Haible  <bruno@clisp.org>
59812
59813         Make use of gcj-4.3's -fsource and -ftarget option.
59814         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59815         and if so try the options -fsource and -ftarget.
59816         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59817         source_version, ftarget_option, target_version arguments.
59818         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59819         (is_envjavac_oldgcj_14_14_usable): Renamed from
59820         is_envjavac_gcj_14_14_usable.
59821         (is_envjavac_oldgcj_14_13_usable): Renamed from
59822         is_envjavac_gcj_14_13_usable.
59823         (is_gcj_present): Update.
59824         (is_gcj_43, is_gcj43_usable): New functions.
59825         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59826         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59827         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59828         try the options -fsource and -ftarget.
59829
59830 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59831
59832         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59833         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59834         larger value.
59835
59836 2007-02-03  Jim Meyering  <jim@meyering.net>
59837
59838         Give tools a better chance to allocate space for very large buffers.
59839         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59840
59841         Make pwd and readlink work also when run with an unreadable parent dir
59842         on systems with openat support.
59843         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59844         provided getcwd function, even when we have openat support.
59845         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59846
59847 2007-02-02  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59850         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59851         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59852         portability problems if one of these functions is only used on specific
59853         platforms.
59854         Reported by Paul Eggert.
59855
59856 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59859         is causing more trouble than it's curing.
59860         * lib/regex_internal.h (__mempcpy): Remove.
59861         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59862         (and make the code a tad smaller to boot).
59863         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59864
59865 2007-02-02  Jim Meyering  <jim@meyering.net>
59866
59867         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59868         section, not in the Makefile.am: one.
59869
59870 2007-02-02  Eric Blake  <ebb9@byu.net>
59871
59872         * lib/strchrnul.c: Always include config.h first.
59873
59874         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59875         gnulib strstr is not necessary here.
59876
59877 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59878
59879         * m4/socklen.m4: Fix typo.
59880
59881 2007-02-02  Eric Blake  <ebb9@byu.net>
59882
59883         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59884         * modules/netinet_in (Makefile.am): Likewise.
59885
59886 2007-02-01  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/string_.h (GL_LINK_WARNING): New macro.
59889         (strcasecmp, strstr, strcasestr): If provided by the system,
59890         conditionally define as a macro that leads to a warning instead of to
59891         an error.
59892         (strncasecmp): Conditionally define as a macro that leads to a warning.
59893
59894 2007-02-01  Karl Berry  <karl@gnu.org>
59895
59896         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59897
59898 2007-02-01  Bruno Haible  <bruno@clisp.org>
59899
59900         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59901         renamings.
59902
59903 2007-02-01  Eric Blake  <ebb9@byu.net>
59904
59905         * modules/regex (Depends-on): Revert dependence on mempcpy.
59906         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59907         module's definition of mempcpy.
59908         Reported by Paul Eggert.
59909
59910 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59913         the symbol XYZ before redefining it.  This fixes a problem with
59914         programs that don't use XYZ, when compiled on systems that define
59915         XYZ to something else.
59916
59917 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59920         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59921         writeable to group or other and (2) is intended to have a special
59922         mode bit that is set or cleared.  In such a case, the directory
59923         should be neither group- nor other-writeable until the special
59924         mode bits are right.
59925
59926 2007-01-31  Eric Blake  <ebb9@byu.net>
59927
59928         * modules/mountlist (Depends-on): Add strstr.
59929
59930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59931         bug.
59932         * modules/string (Makefile.am): Remove redundant replacement.
59933         * modules/regex (Depends-on): Add mempcpy.
59934
59935 2007-01-31  Bruno Haible  <bruno@clisp.org>
59936
59937         New module description field 'Link'.
59938         * gnulib-tool (func_usage): Document --extract-link-directive.
59939         (sed_extract_prog): Recognize 'Link' directive.
59940         (func_get_link_directive): New function.
59941         (func_import): Show summary of link directives.
59942         Handle --extract-link-directive option.
59943         * modules/acl (Link): New section.
59944         * modules/clock-time (Link): New section.
59945         * modules/euidaccess (Link): New section.
59946         * modules/gettext (Link): New section.
59947         * modules/iconv (Link): New section.
59948         * modules/lock (Link): New section.
59949         * modules/nanosleep (Link): New section.
59950         * modules/readline (Link): New section.
59951
59952 2007-01-27  Bruno Haible  <bruno@clisp.org>
59953
59954         Enforce the use of gnulib modules for unportable <string.h> functions.
59955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59956         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59957         (gl_HEADER_STRING_H_BODY): Require it.
59958         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59959         the symbol XYZ to one that gives a link error.
59960         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59961         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59962         * modules/mempcpy (configure.ac): Likewise.
59963         * modules/memrchr (configure.ac): Likewise.
59964         * modules/stpcpy (configure.ac): Likewise.
59965         * modules/stpncpy (configure.ac): Likewise.
59966         * modules/strcase (configure.ac): Likewise.
59967         * modules/strcasestr (configure.ac): Likewise.
59968         * modules/strchrnul (configure.ac): Likewise.
59969         * modules/strdup (configure.ac): Likewise.
59970         * modules/strndup (configure.ac): Likewise.
59971         * modules/strnlen (configure.ac): Likewise.
59972         * modules/strpbrk (configure.ac): Likewise.
59973         * modules/strsep (configure.ac): Likewise.
59974         * modules/strstr (configure.ac): Likewise.
59975         * modules/strtok_r (configure.ac): Likewise.
59976
59977 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59978
59979         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59980
59981 2007-01-30  Jim Meyering  <jim@meyering.net>
59982
59983         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59984
59985 2007-01-29  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59988         * lib/execute.c: Likewise.
59989         * lib/pipe.c: Likewise.
59990         * lib/printf-args.h: Likewise.
59991         * lib/printf-args.c: Likewise.
59992         * lib/printf-parse.c: Likewise.
59993         * lib/vasnprintf.c: Likewise.
59994
59995 2007-01-29  Eric Blake  <ebb9@byu.net>
59996
59997         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59998         declaration.
59999
60000 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * lib/strptime.h (strptime): Use 'restrict' for args where
60003         POSIX requires this.
60004         * lib/strptime.c (strptime): Likewise.
60005         Change license notice from LGPL to GPL, since gnulib-tool will
60006         change this as needed.
60007         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60008         defined.
60009         Include "strptime.h" first, to check interface.
60010         Do not #undef _LIBC and _NL_CURRENT.
60011         Do not include <stdlib.h>; no longer needed.
60012         Include "time_r.h" and declare ptime_locale_status
60013         only if _LIBC is not defined.
60014         (__P): Remove unused macro.
60015         (match_string): Bring back glibc version, but use it only if _LIBC
60016         is defined.
60017         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60018         Remove unnecessary assertion and abort() call.
60019         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60020         * m4/strptime.m4: Fix serial number comment.
60021         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60022         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60023         (Depends-on): Add time_r.
60024
60025 2007-01-29  Bruno Haible  <bruno@clisp.org>
60026
60027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60028         strptime.
60029         * modules/strptime (Depends-on): Add stdbool.
60030         * lib/strptime.h: Include <time.h> always. Add comments.
60031
60032 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60033
60034         * modules/strptime: New file.
60035         * lib/strptime.h: New file.
60036         * lib/strptime.c: New file.
60037         * m4/strptime.m4: New file.
60038
60039 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60040
60041         * MODULES.html.sh: New module mpsort.
60042         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60043
60044         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60045         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60047         All uses changed.
60048         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60049         All uses changed.
60050         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60051         to _Restrict_.
60052         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60053         the parameter matches the prototype.
60054
60055 2007-01-28  Jim Meyering  <jim@meyering.net>
60056
60057         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60058         sys/time.h here, reverting that part of the previous patch:
60059         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60060
60061 2007-01-28  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60064         value of $(SYS_TIME_H).
60065         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60066         remove it conditionally, too. [added by Jim Meyering]
60067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60069         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60070         GETTIMEOFDAY_REPLACEMENT to 1.
60071
60072 2007-01-28  Bruno Haible  <bruno@clisp.org>
60073
60074         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60075         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60077         Set UNISTD_H instead of UNISTD_H2.
60078         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60079
60080 2007-01-28  Bruno Haible  <bruno@clisp.org>
60081
60082         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60083         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60084
60085 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60086
60087         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60088         (func_create_testdir): Ensure C locale for `grep' and `tr'
60089         character ranges.
60090         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60091         ACLOCAL_AMFLAGS parsing state machine.
60092
60093 2007-01-27  Bruno Haible  <bruno@clisp.org>
60094
60095         * modules/unistr/base: Update.
60096
60097 2007-01-27  Bruno Haible  <bruno@clisp.org>
60098
60099         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60100         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60101         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60102         modules/unistr/u32-mbtouc.
60103         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60104         * lib/unistr.h: Update.
60105         * lib/linebreak.c: Update.
60106         * modules/unistr/u32-mbtouc: Renamed from
60107         modules/unistr/u32-mbtouc-safe.
60108         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60109         * lib/unistr.h: Update.
60110         * lib/unistr/u32-to-u8.c: Update.
60111         * lib/unistr/u32-to-u16.c: Update.
60112
60113 2007-01-27  Bruno Haible  <bruno@clisp.org>
60114
60115         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60116         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60117         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60118         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60119         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60120         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60121         modules/unistr/u16-mbtouc.
60122         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60123         * lib/unistr.h: Update.
60124         * lib/linebreak.c: Update.
60125         * modules/linebreak: Update.
60126         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60127         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60128         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60129         * modules/unistr/u16-mbtouc: Renamed from
60130         modules/unistr/u16-mbtouc-safe.
60131         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60132         * lib/unistr.h: Update.
60133         * lib/unistr/u16-to-u8.c: Update.
60134         * modules/unistr/u16-to-u8: Update.
60135         * lib/unistr/u16-to-u32.c: Update.
60136         * modules/unistr/u16-to-u32: Update.
60137
60138 2007-01-27  Bruno Haible  <bruno@clisp.org>
60139
60140         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60141         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60142         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60143         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60144         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60145         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60146         modules/unistr/u8-mbtouc.
60147         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60148         * lib/unistr.h: Update.
60149         * lib/striconveh.c: Update.
60150         * modules/striconveh: Update.
60151         * lib/linebreak.c: Update.
60152         * modules/linebreak: Update.
60153         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60154         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60155         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60156         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60157         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60158         * lib/unistr.h: Update.
60159         * lib/striconveh.c: Update.
60160         * modules/striconveh: Update.
60161         * lib/unistr/u8-to-u16.c: Update.
60162         * modules/unistr/u8-to-u16: Update.
60163         * lib/unistr/u8-to-u32.c: Update.
60164         * modules/unistr/u8-to-u32: Update.
60165
60166 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60167
60168         Sync from Libtool.
60169         * lib/argz.c: Do not include strings.h nor memory.h, include
60170         string.h unconditionally.  Patch by Simon Josefsson.
60171
60172 2007-01-27  Bruno Haible  <bruno@clisp.org>
60173
60174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60175         from gl_HEADER_STRING_H_BODY.
60176         (gl_HEADER_STRING_H_BODY): Require it.
60177         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60179         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60180         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60182         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60185         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60188         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60189         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60190         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60191         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60192
60193 2007-01-27  Bruno Haible  <bruno@clisp.org>
60194
60195         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60196         check_PROGRAMS into noinst_PROGRAMS.
60197         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60198         check_PROGRAMS in this case.
60199         (func_import): Set for_test to false.
60200         (func_create_testdir): Set for_test to true.
60201
60202 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60203             Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60206         (Depends-on): Add string.
60207         (Includes): Use <string.h> instead of strcasestr.h.
60208         * modules/string (Makefile.am): Also substitute the value of
60209         REPLACE_STRCASESTR.
60210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60211         assume strcasestr is declared in <string.h> not <strings.h>. Also
60212         set REPLACE_STRCASESTR.
60213         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60214         REPLACE_STRCASESTR.
60215         * lib/strcasestr.h: Remove file.
60216         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60217         * lib/string_.h (strcasestr): New declaration.
60218
60219 2007-01-27  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/string_.h: Use 'extern'.
60222
60223 2007-01-27  Jim Meyering  <jim@meyering.net>
60224
60225         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60226         of set-but-not-used local, "q".
60227
60228         * lib/mempcpy.c: Include <config.h> before <string.h>.
60229         This fixes a compilation error on HP-UX, due to the system's
60230         "restrict"-using mempcpy prototype.
60231
60232 2007-01-26  Bruno Haible  <bruno@clisp.org>
60233
60234         Small optimization.
60235         * lib/javacomp.c: Include c-strstr.h.
60236          (is_envjavac_gcj): Use c_strstr instead of strstr.
60237         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60238
60239 2007-01-26  Bruno Haible  <bruno@clisp.org>
60240
60241         * MODULES.html.sh (Unicode string functions): Add the new modules.
60242
60243         * modules/uniconv/u32-strconv-to-locale: New file.
60244         * lib/uniconv/u32-strconv-to-locale.c: New file.
60245
60246         * modules/uniconv/u16-strconv-to-locale: New file.
60247         * lib/uniconv/u16-strconv-to-locale.c: New file.
60248
60249         * modules/uniconv/u8-strconv-to-locale: New file.
60250         * lib/uniconv/u8-strconv-to-locale.c: New file.
60251
60252         * modules/uniconv/u32-strconv-from-locale: New file.
60253         * lib/uniconv/u32-strconv-from-locale.c: New file.
60254
60255         * modules/uniconv/u16-strconv-from-locale: New file.
60256         * lib/uniconv/u16-strconv-from-locale.c: New file.
60257
60258         * modules/uniconv/u8-strconv-from-locale: New file.
60259         * lib/uniconv/u8-strconv-from-locale.c: New file.
60260
60261         * modules/uniconv/u32-strconv-to-enc: New file.
60262         * lib/uniconv/u32-strconv-to-enc.c: New file.
60263         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60264         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60265
60266         * modules/uniconv/u16-strconv-to-enc: New file.
60267         * lib/uniconv/u16-strconv-to-enc.c: New file.
60268         * lib/uniconv/u-strconv-to-enc.h: New file.
60269         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60270         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60271
60272         * modules/uniconv/u8-strconv-to-enc: New file.
60273         * lib/uniconv/u8-strconv-to-enc.c: New file.
60274         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60275         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60276
60277         * modules/uniconv/u32-strconv-from-enc: New file.
60278         * lib/uniconv/u32-strconv-from-enc.c: New file.
60279         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60280         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60281
60282         * modules/uniconv/u16-strconv-from-enc: New file.
60283         * lib/uniconv/u16-strconv-from-enc.c: New file.
60284         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60285         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60286
60287         * modules/uniconv/u8-strconv-from-enc: New file.
60288         * lib/uniconv/u8-strconv-from-enc.c: New file.
60289         * lib/uniconv/u-strconv-from-enc.h: New file.
60290         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60291         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60292
60293         * modules/uniconv/u32-conv-from-enc: New file.
60294         * lib/uniconv/u32-conv-from-enc.c: New file.
60295         * modules/uniconv/u32-conv-from-enc-tests: New file.
60296         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60297
60298         * modules/uniconv/u16-conv-from-enc: New file.
60299         * lib/uniconv/u16-conv-from-enc.c: New file.
60300         * lib/uniconv/u-conv-from-enc.h: New file.
60301         * modules/uniconv/u16-conv-from-enc-tests: New file.
60302         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60303
60304         * modules/uniconv/u8-conv-from-enc: New file.
60305         * lib/uniconv/u8-conv-from-enc.c: New file.
60306         * modules/uniconv/u8-conv-from-enc-tests: New file.
60307         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60308
60309         * modules/uniconv/base: New file.
60310         * lib/uniconv.h: New file.
60311
60312 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60313
60314         * doc/gnulib-tool.texi (Initial import): Update to match current
60315         behavior with strdup module.
60316         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60317         * lib/memmem.h: Remove; all uses removed.  This is now done
60318         by <string.h>.
60319         * lib/mempcpy.h: Likewise.
60320         * lib/memrchr.h: Likewise.
60321         * lib/stpcpy.h: Likewise.
60322         * lib/stpncpy.h: Likewise.
60323         * lib/strcase.h: Likewise.
60324         * lib/strchrnul.h: Likewise.
60325         * lib/strdup.h: Likewise.
60326         * lib/strndup.h: Likewise.
60327         * lib/strnlen.h: Likewise.
60328         * lib/strpbrk.h: Likewise.
60329         * lib/strsep.h: Likewise.
60330         * lib/strstr.h: Likewise.
60331         * lib/strtok_r.h: Likewise.
60332         * lib/string_.h: New file.
60333         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60334         Rely on <string.h> instead.
60335         * lib/canon-host.c: Likewise.
60336         * lib/chdir-long.c: Likewise.
60337         * lib/concatpath.c: Likewise.
60338         * lib/exclude.c: Likewise.
60339         * lib/fchdir.c: Likewise.
60340         * lib/getaddrinfo.c: Likewise.
60341         * lib/getcwd.c: Likewise.
60342         * lib/getsubopt.c: Likewise.
60343         * lib/glob.c: Likewise.
60344         * lib/hard-locale.c: Likewise.
60345         * lib/iconvme.c: Likewise.
60346         * lib/javacomp.c: Likewise.
60347         * lib/mempcpy.c: Likewise.
60348         * lib/memrchr.c: Likewise.
60349         * lib/regex_internal.h: Likewise.
60350         * lib/stpncpy.c: Likewise.
60351         * lib/strcasecmp.c: Likewise.
60352         * lib/strchrnul.c: Likewise.
60353         * lib/strdup.c: Likewise.
60354         * lib/striconv.c: Likewise.
60355         * lib/striconveh.c: Likewise.
60356         * lib/striconveha.c: Likewise.
60357         * lib/strncasecmp.c: Likewise.
60358         * lib/strndup.c: Likewise.
60359         * lib/strnlen.c: Likewise.
60360         * lib/strsep.c: Likewise.
60361         * lib/strstr.c: Likewise.
60362         * lib/strtok_r.c: Likewise.
60363         * lib/userspec.c: Likewise.
60364         * lib/w32spawn.h: Likewise.
60365         * lib/xstrndup.c: Likewise.
60366         * lib/mountlist.c (strstr): Remove decl.
60367         * m4/string_h.m4: New file.
60368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60369         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60371         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60372         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60373         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60374         Set REPLACE_STRCASECMP if necessary.
60375         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60376         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60377         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60379         HAVE_DECL_STRDUP if necessary.
60380         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60381         since gl_FUNC_STRNDUP does that now.
60382         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60383         Check for decl here...
60384         (gl_PREREQ_STRNLEN): ... not here.
60385         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60386         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60387         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60388         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60389         necessary.
60390         * modules/string: New file.
60391         * modules/memmem (Files): Remove special-purpose include file.
60392         (Depends-on): Add string.
60393         (Include): Include <string.h>, not the removed file.
60394         * modules/mempcpy: Likewise.
60395         * modules/memrchr: Likewise.
60396         * modules/stpcpy: Likewise.
60397         * modules/stpncpy: Likewise.
60398         * modules/strcase: Likewise.
60399         * modules/strchrnul: Likewise.
60400         * modules/strdup: Likewise.
60401         * modules/strndup: Likewise.
60402         * modules/strnlen: Likewise.
60403         * modules/strpbrk: Likewise.
60404         * modules/strsep: Likewise.
60405         * modules/strstr: Likewise.
60406         * modules/strtok_r: Likewise.
60407         * tests/test-dirname.c: Don't include "strdup.h", since
60408         <string.h> now suffices.
60409         * tests/test-memmem.c: Don't include "memmem.h", since
60410         <string.h> now suffices.
60411
60412 2007-01-25  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60415         *resultp is 0.
60416
60417         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60418         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60419         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60420         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60421
60422         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60423         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60424         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60425         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60426         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60427         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60428
60429 2007-01-24  Bruno Haible  <bruno@clisp.org>
60430
60431         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60433         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60434         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60435         gl_FUNC_FTS_CORE.
60436         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60437         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60438         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60439         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60440         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60441         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60442         gl_FUNC_FCHOWNAT.
60443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60444         gl_FUNC_STRFTIME.
60445         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60446         Reported by Ralf Wildenhues.
60447
60448 2007-01-24  Bruno Haible  <bruno@clisp.org>
60449
60450         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60451         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60452         gl_GETADDRINFO.
60453         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60454         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60455         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60456
60457 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60458
60459         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60460         Don't use 'exit'; just return from 'main'.
60461         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60462
60463         * lib/fnmatch_.h: Readjust white space and comments to match
60464         glibc, to avoid spurious diffs.
60465
60466 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60469         2004-12-01 change by Jakub Jelinek, since this code won't compile
60470         if !LIBC.  Problem reported by Bob Proulx.
60471
60472 2007-01-23  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/striconveh.c: Include c-strcaseeq.h.
60475         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60476         * modules/striconveh (Depends-on): Add c-strcaseeq.
60477
60478 2007-01-23  Bruno Haible  <bruno@clisp.org>
60479
60480         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60481
60482         * modules/c-strcaseeq: New file.
60483         * lib/c-strcaseeq.h: New file.
60484
60485         * modules/streq: New file.
60486         * lib/streq.h: New file.
60487
60488 2007-01-23  Bruno Haible  <bruno@clisp.org>
60489
60490         * modules/striconveha-tests: New file.
60491         * tests/test-striconveha.c: New file.
60492
60493         * lib/striconveha.h: Include <stdbool.h>.
60494         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60495         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60496         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60497         (mem_iconveha): New function.
60498         (str_iconveha_notranslit): Renamed from str_iconveha.
60499         (str_iconveha): New function.
60500         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60501         c-strcase.
60502
60503 2007-01-23  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60506         encodings without forgiving before trying any encoding with handler.
60507         (str_iconveha): Try all encodings without forgiving before trying any
60508         encoding with handler.
60509
60510 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60511
60512         Import the following changes from libc.
60513
60514         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60515
60516         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60517
60518         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60519
60520         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60521         normal_bracket label.
60522
60523         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60524
60525         [BZ #361]
60526         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60527         to normal_bracket after fetching the next character.
60528
60529 2007-01-22  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60532         argument.
60533         * lib/striconveh.c (iconv_carefully_1): New function.
60534         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60535         argument.
60536         (str_cd_iconveh): Update.
60537         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60538         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60539         * tests/test-striconveh.c (MAGIC): New macro.
60540         (new_offsets): New function.
60541         (main): Test call with and without offsets.
60542
60543 2007-01-22  Bruno Haible  <bruno@clisp.org>
60544
60545         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60546         * modules/sys_select (Makefile.am): Likewise.
60547         * modules/sys_socket (Makefile.am): Likewise.
60548         * modules/sys_time (Makefile.am): Likewise.
60549
60550 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * modules/gettimeofday (License): Change from GPL to LGPL, since
60553         gettimeofday is a library function.
60554
60555 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60556
60557         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60558
60559 2007-01-21  Bruno Haible  <bruno@clisp.org>
60560
60561         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60562
60563 2007-01-21  Bruno Haible  <bruno@clisp.org>
60564
60565         * modules/striconveha: New file.
60566         * lib/striconveha.h: New file.
60567         * lib/striconveha.c: New file.
60568         * MODULES.html.sh (Internationalization functions): Add striconveha.
60569         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60570         string.
60571         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60572
60573 2007-01-21  Bruno Haible  <bruno@clisp.org>
60574
60575         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60576         * lib/striconveh.c (str_iconveh): Likewise.
60577
60578 2007-01-21  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/striconveh.h (mem_iconveh): New declaration.
60581         * lib/striconveh.c (mem_iconveh): New function.
60582         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60583
60584 2007-01-21  Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60587
60588         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60589         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60590         original result buffer.
60591         (str_cd_iconveh): Update.
60592         * tests/test-striconveh.c (main): Update.
60593
60594         * lib/striconv.h (mem_cd_iconv): Change specification.
60595         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60596         result buffer.
60597         (str_cd_iconv): Update.
60598         * tests/test-striconv.c (main): Update.
60599
60600 2007-01-21  Bruno Haible  <bruno@clisp.org>
60601
60602         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60603
60604 2007-01-20  Jim Meyering  <jim@meyering.net>
60605
60606         * lib/userspec.c (parse_with_separator): If a user or group string
60607         starts with "+", skip the corresponding name-to-ID look-up, since
60608         such a look-up must fail: user and group names may not include "+".
60609
60610 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60613         since we now assume the sys_time module.
60614         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60615         check for sys/time.h; no longer needed.
60616         * modules/poll (Depends-on): Depend on sys_time.
60617
60618 2007-01-18  Bruno Haible  <bruno@clisp.org>
60619
60620         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60621         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60622
60623         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60624         gettimeofday.
60625
60626         * tests/test-gettimeofday.c: Include <time.h>.
60627         (dummy): Remove variable.
60628
60629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60630         gl_HEADER_SYS_TIME_H.
60631         (gl_HEADER_SYS_TIME_H): New macro.
60632
60633         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60634         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60635         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60636         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60637         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60639         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60640         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60641         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60642         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60643         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60644
60645         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60646         last change; it caused a compilation error when cross-compiling to
60647         Cygwin.
60648
60649 2007-01-18  Jim Meyering  <jim@meyering.net>
60650
60651         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60652         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60653         than the race-prone "test -d sys || mkdir sys".
60654         (configure.ac): Use AC_PROG_MKDIR_P.
60655         * modules/sys_select: Likewise.
60656         * modules/sys_socket: Likewise.
60657         * modules/sys_time: Likewise.
60658
60659 2007-01-18  Eric Blake  <ebb9@byu.net>
60660
60661         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60662         replace gettimeofday.
60663         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60664         name, to avoid infinite recursion.
60665
60666 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60669         module sys_time.
60670         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60671         assume timespec.h defines struct timeval.
60672         * lib/settime.c: Likewise.
60673         * lib/utimens.c: Likewise.
60674         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60675         since we now assume the gettimeofday module.
60676         * lib/tempname.c (__gen_tempname): Likewise.
60677         * lib/gettimeofday.h: Remove.
60678         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60679         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60680         Include <time.h>, for 'time()'.
60681         (localtime_buffer_addr): Also use this workaround if
60682         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60683         to simplify the uses.  All uses changed.
60684         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60685         that #undef is inside {}, and 'const' follows type name consistently.
60686         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60687         (gettimeofday): Do not use the maximum possible value for
60688         tv->tv_usec, since that might break usages other than ls.c.
60689         Instead, we'll leave ls.c alone.  This undoes today's patch
60690         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60691         we've never observed the problem but might as well keep the
60692         canary.
60693         * lib/nanosleep.c: Include timespec.h first, for interface check.
60694         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60695         now assume the sys_time module.
60696         * lib/tempname.c: Likewise.
60697         * lib/timespec.h: Likewise.
60698         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60699         needed.
60700         * lib/strftime.c: Likewise.
60701         * lib/timespec.h: Likewise.
60702         * lib/posixtm.c: Include posixtm.h first, for interface check.
60703         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60704         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60705         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60706         * lib/sys_time_.h: New file.
60707         * lib/timespec.h (struct timespec): Use long int, not long.
60708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60709         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60710         Remove obsolescent call to AC_HEADER_TIME.
60711         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60713         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60714         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60715         Likewise.
60716         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60717         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60719         into the sys_time module.  Check for gettimeofday just once.
60720         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60721         for gettimeofday signature to just check the signature.  Merely
60722         compile it, since linking doesn't test signature.  Improve test for
60723         whether gettimeofday.o is actually needed.
60724         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60725         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60726         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60727         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60728         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60729         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60730         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60731         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60732         than worrying about sys/time.h.
60733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60734         Don't bother worrying about TIME_WITH_SYS_TIME.
60735         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60736         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60737         * m4/sys_time_h.m4: New file.
60738         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60739         Don't include sys/time.h.  Return from main rather than exiting.
60740         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60741         all uses changed.
60742         * modules/gethrxtime (Depends-on): Add sys_time.
60743         * modules/gettime (Depends-on): Likewise.
60744         * modules/gettimeofday (Depends-on): Likewise.
60745         * modules/nanosleep (Depends-on): Likewise.
60746         * modules/settime (Depends-on): Likewise.
60747         * modules/tempname (Depends-on): Likewise.
60748         * modules/utimens (Depends-on): Likewise.
60749         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60750         (Include): Change back to <sys/time.h>.
60751         (Maintainer): Add self.
60752         * modules/sys_time: New file.
60753         * modules/tempname (Depends-on): Add gettimeofday.
60754         * tests/test-gettimeofday.c: Include <sys/time.h>
60755         rather than gettimeofday.h.
60756
60757 2007-01-17  Bruno Haible  <bruno@clisp.org>
60758
60759         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60760         the license default to GPL.
60761         (func_create_testdir): Don't complain if a module is LGPL and its
60762         tests module depends on GPLed modules.
60763
60764 2007-01-17  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/gettimeofday.c (gettimeofday): Add code for the case
60767         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60768         maximum possible value for tv->tv_usec, rather than the minimum one.
60769
60770 2005-10-08  Martin Lambers  <marlam@marlam.de>
60771 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60772 2007-01-16  Bruno Haible  <bruno@clisp.org>
60773
60774         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60775         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60776         gl_FUNC_GETTIMEOFDAY.
60777         (Include): Add gettimeofday.h.
60778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60779         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60780         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60781         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60782         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60783         * lib/gettimeofday.h: New file.
60784         * lib/gettimeofday.c: Include <sys/timeb.h>.
60785         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60786         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60787         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60788         fall back on time().
60789
60790         * tests/test-gettimeofday.c: New file.
60791         * modules/gettimeofday-tests: New file.
60792
60793 2007-01-16  Eric Blake  <ebb9@byu.net>
60794
60795         * modules/fnmatch (Depends-on): Depend on wchar.
60796         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60797         * m4/fnmatch.m4: Likewise.
60798         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60799         * m4/mbchar.m4: Likewise.
60800         * modules/mbswidth (Depends-on): Depend on wchar.
60801         * lib/mbswidth.c: Assume <wchar.h>.
60802         * m4/mbswidth.m4: Likewise.
60803         * modules/quotearg (Depends-on): Depend on wchar.
60804         * lib/quotearg.c: Assume <wchar.h>.
60805         * m4/quotearg.m4: Likewise.
60806         * modules/regex (Depends-on): Depend on wchar.
60807         * lib/regex_internal.h: Assume <wchar.h>.
60808         * m4/regex.m4: Likewise.
60809         * modules/stdint (Depends-on): Depend on wchar.
60810         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60811         * m4/stdint.m4: Likewise.
60812         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60813         * modules/strftime (Depends-on): Depend on wchar.
60814         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60815         * modules/strtol (Depends-on): Depend on wchar.
60816         * lib/strtol.c: Assume <wchar.h>.
60817         * modules/wcwidth (Depends-on): Depend on wchar.
60818         * lib/wcwidth.h: Assume <wchar.h>.
60819         * m4/wcwidth.m4: Likewise.
60820
60821 2007-01-16  Bruno Haible  <bruno@clisp.org>
60822
60823         * modules/csharpexec-script: New, created from...
60824         * modules/csharpexec: ... this.
60825
60826 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60827
60828         * modules/javaexec-script: New, created from...
60829         * modules/javaexec: ... this.
60830
60831 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60832
60833         * modules/poll (Dependencies): Add sys_select.
60834
60835 2007-01-15  Jim Meyering  <jim@meyering.net>
60836
60837         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60838         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60839         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60840         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60841
60842 2007-01-15  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/striconveh: New file.
60845         * lib/striconveh.h: New file.
60846         * lib/striconveh.c: New file.
60847         * MODULES.html.sh (Internationalization functions): Add striconveh.
60848
60849         * modules/striconveh-tests: New file.
60850         * tests/test-striconveh.c: New file.
60851
60852 2007-01-15  Bruno Haible  <bruno@clisp.org>
60853
60854         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60855         not from GNU libiconv or GNU libc.
60856
60857 2007-01-15  Bruno Haible  <bruno@clisp.org>
60858
60859         * doc/gnulib-intro.texi (Copyright): Explain the different license
60860         terms for module descriptions, autoconf macros, tests, documentation.
60861
60862 2007-01-14  Bruno Haible  <bruno@clisp.org>
60863
60864         * modules/striconv-tests: New file.
60865         * tests/test-striconv.c: New file.
60866
60867 2007-01-14  Bruno Haible  <bruno@clisp.org>
60868
60869         * modules/iconv-tests: New file.
60870         * tests/test-iconv.c: New file.
60871
60872 2007-01-14  Bruno Haible  <bruno@clisp.org>
60873
60874         * gnulib-tool (func_get_license): For test modules, use the license of
60875         the main module.
60876
60877 2007-01-14  Bruno Haible  <bruno@clisp.org>
60878
60879         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60880         if iconv is found to exist.
60881
60882 2007-01-14  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/c-ctype-tests: New file.
60885         * tests/test-c-ctype.c: New file.
60886
60887 2007-01-14  Bruno Haible  <bruno@clisp.org>
60888
60889         * modules/binary-io-tests: New file.
60890         * tests/test-binary-io.sh: New file.
60891         * tests/test-binary-io.c: New file.
60892
60893 2007-01-14  Bruno Haible  <bruno@clisp.org>
60894
60895         * modules/array-oset-tests: New file.
60896         * tests/test-array_oset.c: New file.
60897
60898 2007-01-14  Bruno Haible  <bruno@clisp.org>
60899
60900         * modules/array-list-tests: New file.
60901         * tests/test-array_list.c: New file.
60902
60903 2007-01-14  Bruno Haible  <bruno@clisp.org>
60904
60905         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60906         and make.
60907         Reported by Simon Josefsson in
60908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60909
60910 2007-01-14  Bruno Haible  <bruno@clisp.org>
60911
60912         * modules/allocsa-tests: New file.
60913         * tests/test-allocsa.c: New file.
60914
60915 2007-01-14  Bruno Haible  <bruno@clisp.org>
60916
60917         * modules/fchdir (Depends-on): Add absolute-header.
60918         * modules/unistd (Depends-on): Likewise.
60919
60920 2006-12-30  Bruno Haible  <bruno@clisp.org>
60921
60922         * modules/fchdir: New file.
60923         * modules/unistd (Files): Add lib/unistd_.h.
60924         (Makefile.am): Generate unistd.h from unistd_.h.
60925         * lib/fchdir.c: New file.
60926         * lib/dirent_.h: New file.
60927         * lib/unistd_.h: New file.
60928         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60929         * m4/fchdir.m4: New file.
60930         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60931         (gl_HEADER_UNISTD): Invoke it.
60932         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60933         function.
60934         * lib/backupfile.c (opendir, closedir): Undefine.
60935         * lib/chown.c (open, close): Undefine.
60936         * lib/clean-temp.c (open, close): Undefine.
60937         * lib/copy-file.c (open, close): Undefine.
60938         * lib/execute.c (open, close): Undefine.
60939         * lib/fsusage.c (open, close): Undefine.
60940         * lib/gc-gnulib.c (open, close): Undefine.
60941         * lib/getcwd.c (opendir, closedir): Undefine.
60942         * lib/glob.c (opendir, closedir): Undefine.
60943         * lib/javacomp.c (open, close): Undefine.
60944         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60945         * lib/openat-proc.c (open, close): Undefine.
60946         * lib/pagealign_alloc.c (open, close): Undefine.
60947         * lib/pipe.c (open, close): Undefine.
60948         * lib/progreloc.c (open, close): Undefine.
60949         * lib/savedir.c (opendir, closedir): Undefine.
60950         * lib/utime.c (open, close): Undefine.
60951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60952
60953 2007-01-10  Bruno Haible  <bruno@clisp.org>
60954
60955         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60956
60957 2007-01-12  Eric Blake  <ebb9@byu.net>
60958
60959         Provide a robust <wchar.h>.  Further simplifications are now
60960         possible in other modules, but not included here.
60961         * modules/wchar: New module.
60962         * m4/wchar.m4: New file.
60963         * lib/wchar_.h: Likewise.
60964         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60965         of the new module.
60966         * MODULES.html.sh (Extended multibyte and wide character utilities):
60967         New section.
60968
60969 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60972         to a reasonable default for memory allocation.
60973         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60974         file system that reports garbage st_size values for symlinks.
60975         Problem reported by Liyang Hu.
60976
60977 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60978
60979         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60980         Emacs .#* auto-save files).
60981
60982 2007-01-11  Bruno Haible  <bruno@clisp.org>
60983
60984         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60985         directory.
60986
60987 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60988
60989         Use @...@ consistently in lib/wctype_.h.
60990         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60991         on it being set to 1 or 0.
60992         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60993         go back to AC_SUBSTing it.
60994         * modules/wctype (Makefile.am): Undo previous change.
60995
60996 2007-01-10  Eric Blake  <ebb9@byu.net>
60997
60998         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60999         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61000         * modules/wctype (Makefile.am): Likewise.
61001         Reported by Chris McGuire.
61002
61003 2007-01-10  Jim Meyering  <jim@meyering.net>
61004
61005         fts.c: a small readability/maintainability improvement
61006         * lib/fts.c (fts_read): Make this code slightly more readable and
61007         maintainable by hoisting the "sp->fts_cur = p" assignments to
61008         immediately follow the statements that set P.  Derived from
61009         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61010
61011 2007-01-10  Eric Blake  <ebb9@byu.net>
61012
61013         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61014         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61016         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61017         Reported by Chris McGuire.
61018
61019 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61020
61021         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61022         in sed script.
61023
61024 2007-01-09  Bruno Haible  <bruno@clisp.org>
61025
61026         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61027         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61028         variables.
61029         (func_module): Use them.
61030
61031 2007-01-09  Bruno Haible  <bruno@clisp.org>
61032
61033         * modules/unistr/base: New file.
61034         * lib/unistr.h: New file.
61035
61036         * modules/unistr/u8-to-u16: New file.
61037         * lib/unistr/u8-to-u16.c: New file.
61038
61039         * modules/unistr/u8-to-u32: New file.
61040         * lib/unistr/u8-to-u32.c: New file.
61041
61042         * modules/unistr/u16-to-u8: New file.
61043         * lib/unistr/u16-to-u8.c: New file.
61044
61045         * modules/unistr/u16-to-u32: New file.
61046         * lib/unistr/u16-to-u32.c: New file.
61047
61048         * modules/unistr/u32-to-u8: New file.
61049         * lib/unistr/u32-to-u8.c: New file.
61050
61051         * modules/unistr/u32-to-u16: New file.
61052         * lib/unistr/u32-to-u16.c: New file.
61053
61054         * modules/unistr/u8-check: New file.
61055         * modules/unistr/u16-check: New file.
61056         * modules/unistr/u32-check: New file.
61057         * lib/unistr/u8-check.c: New file.
61058         * lib/unistr/u16-check.c: New file.
61059         * lib/unistr/u32-check.c: New file.
61060
61061         * modules/unistr/u8-chr: New file.
61062         * modules/unistr/u16-chr: New file.
61063         * modules/unistr/u32-chr: New file.
61064         * lib/unistr/u8-chr.c: New file.
61065         * lib/unistr/u16-chr.c: New file.
61066         * lib/unistr/u32-chr.c: New file.
61067
61068         * modules/unistr/u8-cmp: New file.
61069         * modules/unistr/u16-cmp: New file.
61070         * modules/unistr/u32-cmp: New file.
61071         * lib/unistr/u8-cmp.c: New file.
61072         * lib/unistr/u16-cmp.c: New file.
61073         * lib/unistr/u32-cmp.c: New file.
61074
61075         * modules/unistr/u8-cpy: New file.
61076         * modules/unistr/u16-cpy: New file.
61077         * modules/unistr/u32-cpy: New file.
61078         * lib/unistr/u8-cpy.c: New file.
61079         * lib/unistr/u16-cpy.c: New file.
61080         * lib/unistr/u32-cpy.c: New file.
61081         * lib/unistr/u-cpy.h: New file.
61082
61083         * modules/unistr/u8-cpy-alloc: New file.
61084         * modules/unistr/u16-cpy-alloc: New file.
61085         * modules/unistr/u32-cpy-alloc: New file.
61086         * lib/unistr/u8-cpy-alloc.c: New file.
61087         * lib/unistr/u16-cpy-alloc.c: New file.
61088         * lib/unistr/u32-cpy-alloc.c: New file.
61089         * lib/unistr/u-cpy-alloc.h: New file.
61090
61091         * modules/unistr/u8-endswith: New file.
61092         * modules/unistr/u16-endswith: New file.
61093         * modules/unistr/u32-endswith: New file.
61094         * lib/unistr/u8-endswith.c: New file.
61095         * lib/unistr/u16-endswith.c: New file.
61096         * lib/unistr/u32-endswith.c: New file.
61097         * lib/unistr/u-endswith.h: New file.
61098
61099         * modules/unistr/u8-mblen: New file.
61100         * modules/unistr/u16-mblen: New file.
61101         * modules/unistr/u32-mblen: New file.
61102         * lib/unistr/u8-mblen.c: New file.
61103         * lib/unistr/u16-mblen.c: New file.
61104         * lib/unistr/u32-mblen.c: New file.
61105
61106         * modules/unistr/u8-mbtouc: New file.
61107         * modules/unistr/u16-mbtouc: New file.
61108         * modules/unistr/u32-mbtouc: New file.
61109         * lib/unistr/u8-mbtouc.c: New file.
61110         * lib/unistr/u16-mbtouc.c: New file.
61111         * lib/unistr/u32-mbtouc.c: New file.
61112
61113         * modules/unistr/u8-mbtouc-safe: New file.
61114         * modules/unistr/u16-mbtouc-safe: New file.
61115         * modules/unistr/u32-mbtouc-safe: New file.
61116         * lib/unistr/u8-mbtouc-safe.c: New file.
61117         * lib/unistr/u16-mbtouc-safe.c: New file.
61118         * lib/unistr/u32-mbtouc-safe.c: New file.
61119
61120         * modules/unistr/u8-move: New file.
61121         * modules/unistr/u16-move: New file.
61122         * modules/unistr/u32-move: New file.
61123         * lib/unistr/u8-move.c: New file.
61124         * lib/unistr/u16-move.c: New file.
61125         * lib/unistr/u32-move.c: New file.
61126         * lib/unistr/u-move.h: New file.
61127
61128         * modules/unistr/u8-next: New file.
61129         * modules/unistr/u16-next: New file.
61130         * modules/unistr/u32-next: New file.
61131         * lib/unistr/u8-next.c: New file.
61132         * lib/unistr/u16-next.c: New file.
61133         * lib/unistr/u32-next.c: New file.
61134
61135         * modules/unistr/u8-prev: New file.
61136         * modules/unistr/u16-prev: New file.
61137         * modules/unistr/u32-prev: New file.
61138         * lib/unistr/u8-prev.c: New file.
61139         * lib/unistr/u16-prev.c: New file.
61140         * lib/unistr/u32-prev.c: New file.
61141
61142         * modules/unistr/u8-set: New file.
61143         * modules/unistr/u16-set: New file.
61144         * modules/unistr/u32-set: New file.
61145         * lib/unistr/u8-set.c: New file.
61146         * lib/unistr/u16-set.c: New file.
61147         * lib/unistr/u32-set.c: New file.
61148         * lib/unistr/u-set.h: New file.
61149
61150         * modules/unistr/u8-startswith: New file.
61151         * modules/unistr/u16-startswith: New file.
61152         * modules/unistr/u32-startswith: New file.
61153         * lib/unistr/u8-startswith.c: New file.
61154         * lib/unistr/u16-startswith.c: New file.
61155         * lib/unistr/u32-startswith.c: New file.
61156         * lib/unistr/u-startswith.h: New file.
61157
61158         * modules/unistr/u8-stpcpy: New file.
61159         * modules/unistr/u16-stpcpy: New file.
61160         * modules/unistr/u32-stpcpy: New file.
61161         * lib/unistr/u8-stpcpy.c: New file.
61162         * lib/unistr/u16-stpcpy.c: New file.
61163         * lib/unistr/u32-stpcpy.c: New file.
61164         * lib/unistr/u-stpcpy.h: New file.
61165
61166         * modules/unistr/u8-stpncpy: New file.
61167         * modules/unistr/u16-stpncpy: New file.
61168         * modules/unistr/u32-stpncpy: New file.
61169         * lib/unistr/u8-stpncpy.c: New file.
61170         * lib/unistr/u16-stpncpy.c: New file.
61171         * lib/unistr/u32-stpncpy.c: New file.
61172         * lib/unistr/u-stpncpy.h: New file.
61173
61174         * modules/unistr/u8-strcat: New file.
61175         * modules/unistr/u16-strcat: New file.
61176         * modules/unistr/u32-strcat: New file.
61177         * lib/unistr/u8-strcat.c: New file.
61178         * lib/unistr/u16-strcat.c: New file.
61179         * lib/unistr/u32-strcat.c: New file.
61180         * lib/unistr/u-strcat.h: New file.
61181
61182         * modules/unistr/u8-strchr: New file.
61183         * modules/unistr/u16-strchr: New file.
61184         * modules/unistr/u32-strchr: New file.
61185         * lib/unistr/u8-strchr.c: New file.
61186         * lib/unistr/u16-strchr.c: New file.
61187         * lib/unistr/u32-strchr.c: New file.
61188
61189         * modules/unistr/u8-strcmp: New file.
61190         * modules/unistr/u16-strcmp: New file.
61191         * modules/unistr/u32-strcmp: New file.
61192         * lib/unistr/u8-strcmp.c: New file.
61193         * lib/unistr/u16-strcmp.c: New file.
61194         * lib/unistr/u32-strcmp.c: New file.
61195
61196         * modules/unistr/u8-strcpy: New file.
61197         * modules/unistr/u16-strcpy: New file.
61198         * modules/unistr/u32-strcpy: New file.
61199         * lib/unistr/u8-strcpy.c: New file.
61200         * lib/unistr/u16-strcpy.c: New file.
61201         * lib/unistr/u32-strcpy.c: New file.
61202         * lib/unistr/u-strcpy.h: New file.
61203
61204         * modules/unistr/u8-strcspn: New file.
61205         * modules/unistr/u16-strcspn: New file.
61206         * modules/unistr/u32-strcspn: New file.
61207         * lib/unistr/u8-strcspn.c: New file.
61208         * lib/unistr/u16-strcspn.c: New file.
61209         * lib/unistr/u32-strcspn.c: New file.
61210         * lib/unistr/u-strcspn.h: New file.
61211
61212         * modules/unistr/u8-strdup: New file.
61213         * modules/unistr/u16-strdup: New file.
61214         * modules/unistr/u32-strdup: New file.
61215         * lib/unistr/u8-strdup.c: New file.
61216         * lib/unistr/u16-strdup.c: New file.
61217         * lib/unistr/u32-strdup.c: New file.
61218         * lib/unistr/u-strdup.h: New file.
61219
61220         * modules/unistr/u8-strlen: New file.
61221         * modules/unistr/u16-strlen: New file.
61222         * modules/unistr/u32-strlen: New file.
61223         * lib/unistr/u8-strlen.c: New file.
61224         * lib/unistr/u16-strlen.c: New file.
61225         * lib/unistr/u32-strlen.c: New file.
61226         * lib/unistr/u-strlen.h: New file.
61227
61228         * modules/unistr/u8-strmblen: New file.
61229         * modules/unistr/u16-strmblen: New file.
61230         * modules/unistr/u32-strmblen: New file.
61231         * lib/unistr/u8-strmblen.c: New file.
61232         * lib/unistr/u16-strmblen.c: New file.
61233         * lib/unistr/u32-strmblen.c: New file.
61234
61235         * modules/unistr/u8-strmbtouc: New file.
61236         * modules/unistr/u16-strmbtouc: New file.
61237         * modules/unistr/u32-strmbtouc: New file.
61238         * lib/unistr/u8-strmbtouc.c: New file.
61239         * lib/unistr/u16-strmbtouc.c: New file.
61240         * lib/unistr/u32-strmbtouc.c: New file.
61241
61242         * modules/unistr/u8-strncat: New file.
61243         * modules/unistr/u16-strncat: New file.
61244         * modules/unistr/u32-strncat: New file.
61245         * lib/unistr/u8-strncat.c: New file.
61246         * lib/unistr/u16-strncat.c: New file.
61247         * lib/unistr/u32-strncat.c: New file.
61248         * lib/unistr/u-strncat.h: New file.
61249
61250         * modules/unistr/u8-strncmp: New file.
61251         * modules/unistr/u16-strncmp: New file.
61252         * modules/unistr/u32-strncmp: New file.
61253         * lib/unistr/u8-strncmp.c: New file.
61254         * lib/unistr/u16-strncmp.c: New file.
61255         * lib/unistr/u32-strncmp.c: New file.
61256
61257         * modules/unistr/u8-strncpy: New file.
61258         * modules/unistr/u16-strncpy: New file.
61259         * modules/unistr/u32-strncpy: New file.
61260         * lib/unistr/u8-strncpy.c: New file.
61261         * lib/unistr/u16-strncpy.c: New file.
61262         * lib/unistr/u32-strncpy.c: New file.
61263         * lib/unistr/u-strncpy.h: New file.
61264
61265         * modules/unistr/u8-strnlen: New file.
61266         * modules/unistr/u16-strnlen: New file.
61267         * modules/unistr/u32-strnlen: New file.
61268         * lib/unistr/u8-strnlen.c: New file.
61269         * lib/unistr/u16-strnlen.c: New file.
61270         * lib/unistr/u32-strnlen.c: New file.
61271         * lib/unistr/u-strnlen.h: New file.
61272
61273         * modules/unistr/u8-strpbrk: New file.
61274         * modules/unistr/u16-strpbrk: New file.
61275         * modules/unistr/u32-strpbrk: New file.
61276         * lib/unistr/u8-strpbrk.c: New file.
61277         * lib/unistr/u16-strpbrk.c: New file.
61278         * lib/unistr/u32-strpbrk.c: New file.
61279         * lib/unistr/u-strpbrk.h: New file.
61280
61281         * modules/unistr/u8-strrchr: New file.
61282         * modules/unistr/u16-strrchr: New file.
61283         * modules/unistr/u32-strrchr: New file.
61284         * lib/unistr/u8-strrchr.c: New file.
61285         * lib/unistr/u16-strrchr.c: New file.
61286         * lib/unistr/u32-strrchr.c: New file.
61287
61288         * modules/unistr/u8-strspn: New file.
61289         * modules/unistr/u16-strspn: New file.
61290         * modules/unistr/u32-strspn: New file.
61291         * lib/unistr/u8-strspn.c: New file.
61292         * lib/unistr/u16-strspn.c: New file.
61293         * lib/unistr/u32-strspn.c: New file.
61294         * lib/unistr/u-strspn.h: New file.
61295
61296         * modules/unistr/u8-strstr: New file.
61297         * modules/unistr/u16-strstr: New file.
61298         * modules/unistr/u32-strstr: New file.
61299         * lib/unistr/u8-strstr.c: New file.
61300         * lib/unistr/u16-strstr.c: New file.
61301         * lib/unistr/u32-strstr.c: New file.
61302         * lib/unistr/u-strstr.h: New file.
61303
61304         * modules/unistr/u8-strtok: New file.
61305         * modules/unistr/u16-strtok: New file.
61306         * modules/unistr/u32-strtok: New file.
61307         * lib/unistr/u8-strtok.c: New file.
61308         * lib/unistr/u16-strtok.c: New file.
61309         * lib/unistr/u32-strtok.c: New file.
61310         * lib/unistr/u-strtok.h: New file.
61311
61312         * modules/unistr/u8-uctomb: New file.
61313         * modules/unistr/u16-uctomb: New file.
61314         * modules/unistr/u32-uctomb: New file.
61315         * lib/unistr/u8-uctomb.c: New file.
61316         * lib/unistr/u16-uctomb.c: New file.
61317         * lib/unistr/u32-uctomb.c: New file.
61318
61319         * MODULES.html.sh (Unicode string functions): Add the new modules.
61320
61321 2007-01-08  Bruno Haible  <bruno@clisp.org>
61322
61323         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61324         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61325         subdirectories.
61326
61327 2007-01-08  Karl Berry  <karl@gnu.org>
61328
61329         * doc/error.texi: mention that main() fns must set program_name
61330         when progname is used.
61331
61332 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61335         WCTYPE_H is empty, for the benefit of builds from non-distclean
61336         directories.  Problem reported by Eric Blake in
61337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61338
61339 2007-01-08  Bruno Haible  <bruno@clisp.org>
61340
61341         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61342         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61343         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61344         PROVIDE_CANONICALIZE_FILENAME_MODE.
61345         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61346
61347 2007-01-08  Bruno Haible  <bruno@clisp.org>
61348
61349         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61350         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61351         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61352         * lib/fts.c: Likewise.
61353         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61354
61355 2006-12-25  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/utf8-ucs4-safe: New file.
61358         * lib/utf8-ucs4-safe.h: New file.
61359         * lib/unistr/utf8-ucs4-safe.c: New file.
61360
61361         * modules/utf16-ucs4-safe: New file.
61362         * lib/utf16-ucs4-safe.h: New file.
61363         * lib/unistr/utf16-ucs4-safe.c: New file.
61364
61365         * MODULES.html.sh (Unicode string functions): Add the new modules.
61366
61367 2007-01-08  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61370         (Depends-on): Add unitypes.
61371         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61372         (u8_mbtouc_aux): Move out to separate file.
61373         (u8_mbtouc): Use ucs4_t, uint8_t types.
61374         * lib/unistr/utf8-ucs4.c: New file.
61375
61376         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61377         (Depends-on): Add unitypes.
61378         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61379         (u16_mbtouc_aux): Move out to separate file.
61380         (u16_mbtouc): Use ucs4_t, uint16_t types.
61381         * lib/unistr/utf16-ucs4.c: New file.
61382
61383         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61384         (Depends-on): Add unitypes.
61385         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61386         (u8_uctomb_aux): Move out to separate file.
61387         (u8_uctomb): Use ucs4_t, uint8_t types.
61388         * lib/unistr/ucs4-utf8.c: New file.
61389
61390         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61391         (Depends-on): Add unitypes.
61392         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61393         (u16_uctomb_aux): Move out to separate file.
61394         (u16_uctomb): Use ucs4_t, uint16_t types.
61395         * lib/unistr/ucs4-utf16.c: New file.
61396
61397 2006-12-25  Bruno Haible  <bruno@clisp.org>
61398
61399         * modules/unitypes: New file.
61400         * lib/unitypes.h: New file.
61401         * MODULES.html.sh (func_all_modules): New section "Unicode string
61402         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61403         this section. Add unitypes.
61404
61405 2007-01-08  Bruno Haible  <bruno@clisp.org>
61406
61407         Avoid variable names that conflict with those from libtool.
61408         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61409         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61410         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61411         library_names_spec to acl_library_names_spec, hardcode_* to
61412         acl_hardcode_*.
61413         Reported by Ralf Wildenhues.
61414
61415 2007-01-08  Bruno Haible  <bruno@clisp.org>
61416
61417         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61418         definition.
61419         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61420         definition.
61421         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61422         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61423         definition.
61424         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61425         definition.
61426         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61427         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61428         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61429         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61430         definition.
61431         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61432         definition.
61433         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61434         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61435         GC_USE_<algorithm>.
61436         * lib/gc-libgcrypt.c: Likewise.
61437         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61438         * modules/gc-arctwo (configure.ac): Likewise.
61439         * modules/gc-des (configure.ac): Likewise.
61440         * modules/gc-hmac-md5 (configure.ac): Likewise.
61441         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61442         * modules/gc-md2 (configure.ac): Likewise.
61443         * modules/gc-md4 (configure.ac): Likewise.
61444         * modules/gc-md5 (configure.ac): Likewise.
61445         * modules/gc-random (configure.ac): Likewise.
61446         * modules/gc-rijndael (configure.ac): Likewise.
61447         * modules/gc-sha1 (configure.ac): Likewise.
61448
61449 2007-01-08  Bruno Haible  <bruno@clisp.org>
61450
61451         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61452         macro definition.
61453         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61454         definition.
61455         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61456         definition.
61457         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61458         * modules/fcntl-safer (configure.ac): Likewise.
61459         * modules/fopen-safer (configure.ac): Likewise.
61460         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61461         GNULIB_FWRITEERROR macro definition.
61462
61463 2007-01-08  Bruno Haible  <bruno@clisp.org>
61464
61465         * m4/gnulib-common.m4: New file.
61466         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61467         (func_get_filelist): Add m4/gnulib-common.m4.
61468
61469 2007-01-08  Bruno Haible  <bruno@clisp.org>
61470
61471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61472         command.
61473
61474 2007-01-08  Jim Meyering  <jim@meyering.net>
61475
61476         Use a more robust test for a "can't happen" condition.
61477         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61478         narrowed the st_size value.  Presuming the "can't happen" condition
61479         is true, that narrowing could conceivably convert an invalid st_size
61480         value into a valid one.  Instead, use a change based on Matthew
61481         Woehlke's original patch.
61482
61483         Slight readability improvement: use an assert-like macro
61484         in place of literal "abort ()" uses.
61485         * lib/fts.c (fts_assert): Define.
61486         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61487         Use this macro instead of a bare 'abort'.
61488
61489 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61492         simply work around them.
61493         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61494         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61495         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61496         declaring.
61497         Don't bother to define as macros, since the standard doesn't require it.
61498         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61499         longer worry about IRIX 5.3.
61500         (HAVE_WCTYPE_CTMP_BUG): Remove.
61501
61502 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61503
61504         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61505         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61506         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61507         Problems reported by Georg Schwarz for IRIX 5.3.
61508
61509         * gnulib-tool (autoconf_minversion): Take the maximum version number
61510         found, not the minimum.  Problem reported by James Youngman.
61511
61512 2007-01-03  Karl Berry  <karl@gnu.org>
61513
61514         * doc/error.texi: new file, explaining interaction with progname.
61515         * doc/gnulib.texi: include it.  Update copyright.
61516
61517 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61518
61519         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61520         AC_CANONICAL_HOST, to improve autobuild outputs.
61521
61522 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61523             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61524
61525         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61526         sockets, server sockets, and other file descriptors.  Count errors
61527         to compute the return value.  Reorder the code a bit to be easier
61528         to follow.  Don't set event bits that were not requested (except
61529         POLLERR and POLLHUP).
61530
61531 2007-01-01  Bruno Haible  <bruno@clisp.org>
61532
61533         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61534
61535 2007-01-03  Jim Meyering  <jim@meyering.net>
61536
61537         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61538
61539 2007-01-02  Bruno Haible  <bruno@clisp.org>
61540
61541         * modules/settime (Include): Require timespec.h.
61542         * modules/nanosleep (Include): Likewise.
61543
61544 2007-01-01  Bruno Haible  <bruno@clisp.org>
61545
61546         * gnulib-tool (func_emit_copyright_notice): Bump year.
61547         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61548
61549 2007-01-01  Bruno Haible  <bruno@clisp.org>
61550
61551         Improve support for OpenBSD.
61552         * build-aux/config.rpath (libname_spec): Export.
61553         (library_names_spec): New variable. Export.
61554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61555         library_names_spec from the config.rpath output. Locate shared library
61556         through the name pattern in library_names_spec.
61557
61558 2007-01-01  Eric Blake  <ebb9@byu.net>
61559
61560         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61561
61562 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61565         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61566         assume the C locale, and avoid an "eval" that could cause trouble.
61567         Problem with SORT reported by Bob Proulx.
61568
61569         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61570         Define.  Trivial patch from Henning Nielsen Lund, originally
61571         sent to bug-grep@gnu.org today.
61572
61573 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61576         struct stat.  Problem reported by Henning Nielsen Lund.
61577         * lib/acl.c: Include acl.h first, to check interface.  Don't
61578         bother to include sys/types.h and sys/stat.h again.
61579
61580 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         Import the following change from libc; problem reported by
61583         Sven Verdoolaege.
61584
61585         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61586
61587         [BZ #1373]
61588         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61589
61590 2006-12-28  Jim Meyering  <jim@meyering.net>
61591
61592         * build-aux/announce-gen: Do not assume that the package
61593         builds any of tar.gz, tar.bz2, and .xdelta files.
61594         Suggestion from Simon Josefsson.
61595
61596 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61597
61598         * modules/announce-gen: New file.
61599
61600 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61603         handles its gotchas now.
61604         * lib/mbswidth.c: Likewise.
61605         * lib/wcwidth.h: Likewise.
61606         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61607         and iswcntrl; the wctype module does this stuff now.
61608         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61610         * modules/mbchar (Depends-on): Add wctype.
61611         * modules/mbswidth (Depends-on): Likewise.
61612         * modules/wcwidth (Depends-on): Likewise.
61613
61614 2006-12-27  Eric Blake  <ebb9@byu.net>
61615
61616         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61617         module uses more than what <wctype.h> is required to provide.
61618
61619 2006-12-26  Eric Blake  <ebb9@byu.net>
61620
61621         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61622
61623 2006-12-26  Eric Blake  <ebb9@byu.net>
61624
61625         * modules/absolute-header: New module.
61626         * modules/fcntl (Depends-on): Depend on it.
61627         * modules/inttypes (Depends-on): Likewise.
61628         * modules/stdint (Depends-on): Likewise.
61629         * modules/sys_stat (Depends-on): Likewise.
61630         * modules/wctype (Depends-on): Likewise.
61631         * MODULES.html.sh (Support for building libraries and
61632         executables): Document it.
61633
61634 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61635
61636         * gnulib-tool (SED): Remove, undoing previous change.
61637         The problem was that it broke coreutils on Solaris, because
61638         "sed --posix" leaked into a makefile.
61639         (sed): New alias, if 'alias' and GNU sed.
61640
61641 2006-12-24  Jim Meyering  <jim@meyering.net>
61642
61643         Work around an fchownat bug in glibc-2.4:
61644         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61645         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61646         in spite of the -P option.
61647         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61648         New macros.
61649         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61650         * modules/openat (Files): Add lib/fchownat.c.
61651         * lib/openat.c (fchownat): Don't define here.  Move to...
61652         * lib/fchownat.c: ...this new file.
61653
61654 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         Fix bug reported by Bruno Haible in
61657         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61658         where quotearg.c didn't compile on Mac OS X 10.2 because it
61659         lacks <wchar.h> and wint_t.
61660         * lib/wctype_.h (__wctype_wint_t): New type.
61661         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61662         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61663         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61664         Arg is now of type __wctype_wint_t, not wint_t.
61665         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61666         substitute HAVE_WINT_T.
61667         * modules/wctype (Files): Add m4/wint_t.m4.
61668         (wctype.h): Substitute HAVE_WINT_T.
61669
61670 2006-12-23  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61673
61674 2006-12-23  Bruno Haible  <bruno@clisp.org>
61675
61676         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61677         S_ISLNK.
61678         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61679         mingw.
61680
61681 2006-12-22  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/copy-file.c: Include acl.h.
61684         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61685         Close the file descriptors only after being done with copy_acl.
61686         * modules/copy-file (Depends-on): Add acl.
61687
61688 2006-12-22  Bruno Haible  <bruno@clisp.org>
61689
61690         * gnulib-tool (SED): New variable.
61691         Use $SED instead of sed everywhere.
61692
61693 2006-12-22  Bruno Haible  <bruno@clisp.org>
61694
61695         * modules/no-c++: New file.
61696         * m4/no-c++.m4: New file.
61697         * MODULES.html.sh (Support for building libraries and executables):
61698         Add no-c++.
61699
61700 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61701
61702         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61703         Include <limits.h>, and use its INT_MAX to rewrite the
61704         j loop so that it does not overflow 'int'.  Problem reported by
61705         Ralf Wildenhues in
61706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61707         Play it safe by shifting left by 1 rather than multiplying by 2,
61708         as GCC is less likely to optimize this away when the value
61709         is signed (when it assumes overflow leads to undefined behavior).
61710         Also, don't assume time_t uses two's complement.
61711
61712 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * MODULES.html.sh: New module wctype.
61715         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61716         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61717         <wctype.h>, since the new wctype module should fix this.
61718         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61719         the wctype module should arrange for it.
61720         * lib/regex_internal.h: Likewise.
61721         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61722         since the wctype module should handle this now.
61723         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61724         * modules/fnmatch (Depends-on): Add wctype.
61725         * modules/quotearg (Depends-on): Likewise.
61726         * modules/regex (Depends-on): Likewise.
61727
61728 2006-12-19  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61731         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61732
61733 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61734
61735         * modules/savewd (Depends-on): Fix dependency on fcntl.
61736
61737 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61740         conforms to C99, rather than relying on the user's environment
61741         setting of STDINT_H.
61742
61743 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61744         and Eric Blake  <ebb9@byu.net>
61745
61746         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61747         This is more consistent with the other defines here.
61748         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61749         Port to z/OS.  Problem reported by Paul Gilmartin.
61750         Change local vars to use gl_ prefix rather than ac_.
61751         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61752         with other defines.
61753         * modules/double-slash-root: New module.
61754         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61755         (Depends-on): Add double-slash-root.
61756         * MODULES.html.sh (File system functions): Mention new module.
61757
61758 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61761         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61762         This is for the benefit of gzip, which doesn't do i18n.
61763
61764 2006-12-12  Jim Meyering  <jim@meyering.net>
61765
61766         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61767         Reported by Andreas Schwab <schwab@suse.de>.
61768
61769 2006-12-12  Bruno Haible  <bruno@clisp.org>
61770
61771         Merge these changes.
61772         2006-09-05  Bruno Haible  <bruno@clisp.org>
61773         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61774         iconv_alloc succeeded.
61775         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61776         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61777         test for " && dest " at the end - dest is always != NULL there. Call
61778         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61779         with 2xNULL arguments, also to flush the state storage. Handle the
61780         IRIX iconv behaviour. Realloc the final result, to throw away unused
61781         memory.
61782
61783 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61786         and fchmodat unconditionally, since glibc 2.4 has them.
61787         Problem reported by Arkadiusz Miskiewicz.
61788
61789 2006-12-10  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool (func_import): Show the include files only for those
61792         modules that are copied and specified.
61793         Reported by Karl Berry.
61794
61795 2006-12-08  Jim Meyering  <jim@meyering.net>
61796
61797         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61798         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61799
61800         * build-aux/announce-gen: Add two new options, both optional:
61801         --bootstrap-tools=TOOL_LIST
61802               a comma-separated list of tools, e.g.,
61803               autoconf,automake,bison,gnulib
61804         --gnulib-snapshot-date=DATE
61805               if gnulib is in the bootstrap tool list,
61806               then report this as the snapshot date.
61807               If not specified, use the current date/time.
61808               If you specify a date here, be sure it's UTC.
61809
61810 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61811
61812         * tests/test-argp-2.sh: Fix test to match actual output.
61813         (func_compare): Fix sed script to be portable.
61814
61815 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61818         workaround for this case.  It is not autoconfigured now; offhand
61819         it's hard to see how to autoconfigure it.
61820
61821 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61824         a directory that is about to be chowned.  Such a directory's
61825         initial file permissions should permit the owner only and this
61826         should not be changed until after the chown, since the group and
61827         other bits would be incorrect if they granted permission before
61828         the chown.
61829
61830         Fix porting problem for iswctype reported by Georg Schwarz in:
61831         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61832         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61833         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61835         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61836
61837 2006-12-03  Jim Meyering  <jim@meyering.net>
61838
61839         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61840         p->fts_statp may not yet be defined.
61841         (fts_read): Instead, set it in the caller, once p->fts_statp is
61842         sure to be defined, and corresponds to a top-level directory.
61843         This bug made du -x fail.  Here's the coreutils test case:
61844         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61845         Reported by Mike Frysinger.
61846
61847 2006-12-01  Jim Meyering  <jim@meyering.net>
61848
61849         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61850         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61851         Reported by Simon Josefsson.
61852
61853 2006-11-30  Jim Meyering  <jim@meyering.net>
61854
61855         * m4/warning.m4: Use the all-permissive copyright notice
61856         recommended by RMS (rather than LGPL).
61857         * m4/vararrays.m4: Likewise.
61858         * m4/flexmember.m4: Likewise.
61859
61860 2006-11-29  Bruno Haible  <bruno@clisp.org>
61861
61862         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61863         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61864         using +=.
61865         Reported by Simon Josefsson <simon@josefsson.org>.
61866
61867 2006-11-28  James Youngman <jay@gnu.org>
61868
61869         * README: Advise users that they might find the bug-gnulib@gnu.org
61870         and autotools-announce@gnu.org mailing lists useful.
61871
61872 2006-11-28  Bruno Haible  <bruno@clisp.org>
61873
61874         * m4/ptrdiff_max.m4: Remove file.
61875
61876 2006-11-21  Bruno Haible  <bruno@clisp.org>
61877
61878         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61879         _AC_COMPUTE_INT.
61880         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61881         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61882         _AC_COMPUTE_INT.
61883         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61884         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61885         _AC_COMPUTE_INT.
61886         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61887
61888 2006-11-28  Jim Meyering  <jim@meyering.net>
61889
61890         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61891         warning from "gcc -Wshadow" about shadowing the builtin.
61892
61893 2006-11-27  Bruno Haible  <bruno@clisp.org>
61894
61895         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61896         _AC_COMPUTE_INT.
61897         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61898
61899 2006-11-27  Bruno Haible  <bruno@clisp.org>
61900             Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61903
61904 2006-11-26  Bruno Haible  <bruno@clisp.org>
61905
61906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61907         noinst_LTLIBRARIES.
61908
61909 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61910             Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61913         if compiling with "gcc -ansi".
61914
61915 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61916
61917         Fix some incompatibilities with gcc -ansi -pedantic.
61918         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61919         if compiling pedantically with GCC, unless it's C99 or later.
61920         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61921         it mishandles gcc -ansi -pedantic as well.
61922         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61923         if gcc -pedantic.
61924         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61925         initializers for struct if -pedantic, unless it's C99 or later.
61926
61927 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61928
61929         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61930         Don't close an fd more than once. Identical atimes indicate
61931         success, not failure.
61932
61933 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61934
61935         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61936
61937 2006-11-23  Jim Meyering  <jim@meyering.net>
61938
61939         * build-aux/announce-gen: New file.  From coreutils.
61940
61941 2006-11-22  Jim Meyering  <jim@meyering.net>
61942
61943         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61944         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61945         (fts_read): Use a temporary to narrow the overused st_size member
61946         before using it in a switch statement.  Reported by Matthew Woehlke.
61947
61948         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61949         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61950
61951 2006-11-20  Bruno Haible  <bruno@clisp.org>
61952
61953         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61954         changequote instead of pairs of brackets.
61955         Reported by Andreas Schwab <schwab@suse.de>.
61956
61957 2006-11-21  Jim Meyering  <jim@meyering.net>
61958
61959         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61960         so as to remain compatible with older compilers.
61961         Patch from Michael Deutschmann.
61962
61963 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61964
61965         * MODULES.html.sh (File system functions): Add openat.
61966
61967         * lib/openat.h (rpl_fstatat): New macro, if
61968         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61969         (fstatat): Define to rpl_fstatat under the same conditions,
61970         unless COMPILING_FSTATAT.
61971         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61972         seems to have the bug.
61973         * lib/fstatat.c: New file.
61974         * modules/openat (Files): Add it.
61975
61976 2006-11-20  Bruno Haible  <bruno@clisp.org>
61977
61978         * Makefile: New file.
61979
61980 2006-11-20  Jim Meyering  <jim@meyering.net>
61981
61982         The beginnings of syntax-related checks for gnulib.
61983         * lib/Makefile: New file.
61984         * lib/t-idcache: New script.  Ensure that the two halves of
61985         idcache.c stay in sync.
61986
61987         * lib/idcache.c: Adjust comments in user- and group- portions to
61988         be more accurate, and to be consistent with one another.
61989
61990 2006-11-20  Jim Meyering  <jim@meyering.net>
61991
61992         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61993         continue using the flexible array member (thus, this module performs
61994         half as many malloc calls), with the addition that...
61995         (getgroup, getuser): Consistently record a non-match via an empty
61996         "name" string, and map an empty string match to a NULL return value.
61997         * modules/idcache (Depends-on): Re-add flexmember.
61998
61999         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62000         (getuidbyname, getgroup, getgidbyname): Likewise.
62001
62002         Use cleaner syntax: NULL rather than 0.
62003         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62004
62005 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62006
62007         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62008         It mishandled the case where the group was missing.
62009         Problem reported by Greg Schafer.
62010         * modules/idcache: Likewise.
62011
62012 2006-11-18  Jim Meyering  <jim@meyering.net>
62013
62014         * check-module (%exempt_header): Add exception for some
62015         conditionally-included headers.
62016
62017         * modules/i-ring (Depends-on): Add verify.
62018         (License): Change to LGPL.
62019
62020 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62023         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62024         and inttostr.h.  Use snprintf rather than uinttostr, so that
62025         LGPLed code doesn't depend on GPLed.
62026
62027 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62028
62029         * modules/inline (License): Change from GPL to LGPL.
62030
62031 2006-11-17  Jim Meyering  <jim@meyering.net>
62032
62033         * modules/d-type (License): Switch to LGPL.
62034
62035 2006-11-15  Bruno Haible  <bruno@clisp.org>
62036
62037         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62038
62039 2006-11-15  Eric Blake  <ebb9@byu.net>
62040
62041         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62042         the module dependency.
62043
62044 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62045             Bruno Haible  <bruno@clisp.org>
62046
62047         * gnulib-tool (func_create_testdir): Add license consistency check.
62048
62049 2006-11-15  Eric Blake  <ebb9@byu.net>
62050
62051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62052         random "(cached)" in configure output.
62053
62054 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62055
62056         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62057         test for conforming inttypes.h is both announced and cached.
62058
62059         * MODULES.html.sh (seen_modules, seen_files): New variables.
62060         (func_module): Rewrite to use a few less gnulib-tool and sed
62061         invocations.  Avoid a couple of quadratic algorithms for ...
62062         (missed_modules, missed_files): ... these, with ...
62063         (func_append, func_tmpdir): ... these new functions, from
62064         gnulib-tool.  Analogously, install traps for cleanup.
62065
62066         * tests/test-gc.c (main): Remove unused variables.
62067         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62068
62069 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * modules/inttostr (License): Change to LGPL.
62072
62073 2006-11-14  Eric Blake  <ebb9@byu.net>
62074
62075         * modules/tempname (License): Change to LGPL.
62076
62077 2006-11-14  Eric Blake  <ebb9@byu.net>
62078
62079         * doc/functions.texi (Function Portability): *printf functions on
62080         Cygwin now understand all POSIX size specifiers.
62081
62082 2006-11-14  Bruno Haible  <bruno@clisp.org>
62083
62084         * modules/c-ctype (License): Change to LGPL.
62085
62086 2006-11-12  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62089         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62090         for GNOME libraries, for which the include files are installed in
62091         subdirectories of $prefix/include.
62092
62093 2006-11-12  Bruno Haible  <bruno@clisp.org>
62094
62095         * m4/lib-link.m4: Require at least autoconf-2.54.
62096         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62097         name to underscores for the --with option.
62098
62099 2006-11-13  Bruno Haible  <bruno@clisp.org>
62100
62101         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62102         the tests directory.
62103         Reported by Ralf Wildenhues.
62104
62105 2006-11-13  Bruno Haible  <bruno@clisp.org>
62106
62107         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62108         (func_emit_initmacro_end): Undo the override here.
62109         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62110         Works around the famous automake error in coreutils.
62111
62112 2006-11-13  Eric Blake  <ebb9@byu.net>
62113
62114         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62115         element, not its node.
62116
62117 2006-11-12  Bruno Haible  <bruno@clisp.org>
62118
62119         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62120         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62121
62122 2006-11-12  Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool: New option --local-symlink.
62125         (func_usage): Document it.
62126         (lsymbolic): New variable.
62127         (func_import, func_create_testdir): If --symlink was not specified,
62128         test whether --local-symlink was specified and the file comes from
62129         the local_gnulib_dir.
62130
62131 2006-11-12  Bruno Haible  <bruno@clisp.org>
62132
62133         * gnulib-tool (func_ln): New function.
62134         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62135
62136 2006-11-12  Bruno Haible  <bruno@clisp.org>
62137
62138         Finish support for source files in subdirectories.
62139         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62140         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62141         AUTOMAKE_OPTIONS.
62142         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62143
62144 2006-11-12  Bruno Haible  <bruno@clisp.org>
62145
62146         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62147         EXTRA_lib_SOURCES augmentation.
62148         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62149
62150 2006-11-12  Jim Meyering  <jim@meyering.net>
62151
62152         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62153         file descriptors.  This also averts a failure on systems with
62154         native openat support when a traversed directory lacks "x" access.
62155         * lib/fts_.h: Include "i-ring.h"
62156         (struct FTS) [fts_fd_ring]: New member.
62157         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62158         (FCHDIR): Add parentheses.
62159         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62160         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62161         When descending, rather than simply closing the previous
62162         fts_cwd_fd value, push that file descriptor onto the ring.
62163         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62164         (fts_open): Initialize the new fd_ring member.
62165         (fts_close): Clear the ring.
62166         (fts_safe_changedir): When possible, use our new fd_ring to skip
62167         the diropen and fstat and dev/ino comparison that would normally
62168         accompany a virtual `chdir ("..")'.
62169
62170         * modules/fts (Depends-on): Add i-ring.
62171         * modules/i-ring: New module.
62172         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62173         * m4/i-ring.m4: New file.
62174
62175 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62176
62177         * gnulib-tool (func_create_testdir): Fix replacement of
62178         `build-aux' in configure.ac.  Run autotools in gltests
62179         subdirectory.
62180         (func_create_testdir, func_create_megatestdir, test): There is
62181         no need for '--force' in most autotool invocations in a new
62182         tree.  Actually fail the whole test if any of the tools, or the
62183         configure or make stages fail.
62184
62185         Sync from Automake.
62186         * build-aux/gnupload: Revert last change.  Add pointer to upload
62187         instructions of the GNU Maintenance Instructions.
62188         Suggestion by Karl Berry.
62189
62190 2006-11-10  Jim Meyering  <jim@meyering.net>
62191
62192         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62193
62194 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62197         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62198         (bind_textdomain_codeset) [! ENABLE_NLS]:
62199         Evaluate all the arguments.  That way, callers get compatible behavior
62200         if the arguments have side effects.  Also, it avoids some GCC
62201         diagnostics in some cases; Joel E. Denny reported problems when Bison
62202         was configured with --enable-gcc-warnigs.
62203
62204 2006-11-10  Jim Meyering  <jim@meyering.net>
62205
62206         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62207         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62208         account.
62209
62210 2006-11-10  Jim Meyering  <jim@meyering.net>
62211
62212         * modules/inline: New file/module.
62213         * modules/xalloc (Files): Remove m4/inline.m4.
62214         (Depends-on): Add inline, instead.
62215         * modules/oset: Likewise.
62216         * modules/list: Likewise.
62217
62218 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62221         Problem reported by Matthew Woehlke.
62222
62223 2006-11-09  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/tempname.c (gen_tempname): Remove variant that invokes
62226         __gen_tempname.
62227         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62228         __gen_tempname.
62229
62230 2006-11-08  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62233         to 'yes' instead of 'cross-compiling'.
62234
62235 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * lib/quotearg.h (quotearg_free): New decl.
62238         * lib/quotearg.c (quotearg_free): New function.
62239         (slot0, nslots, slotvec0, slotvec):
62240         Now file-scope so that quotearg_free can get at them.
62241
62242 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62243
62244         Sync from Automake.
62245         * build-aux/gnupload: Add missing 'gnu' to example URL.
62246         Report by Karl Berry.
62247
62248 2006-11-08  Bruno Haible  <bruno@clisp.org>
62249
62250         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62251         Suggested by Paul Eggert.
62252
62253 2006-11-08  Jim Meyering  <jim@meyering.net>
62254
62255         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62256         It's already included if !_LIBC.
62257         (fts_safe_changedir): Add a comment.
62258
62259 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62260
62261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62262         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62263         Matthew Woehlke.
62264
62265         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62266         definitions up, to avoid colliding with change below.
62267         (static_inline) [HAVE_INLINE]: New macro.
62268         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62269         Provide extern decls when !HAVE_INLINE.  Do not define unless
62270         static_inline is defined, either by us or by xmalloc.c.  Use
62271         static_inline rather than static inline.
62272         (XCALLOC): Optimize sizeof(T) = 1 case.
62273         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62274
62275 2006-11-07  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62278         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62279         AC_C_INLINE.
62280         * modules/xalloc (Files): Add m4/inline.m4.
62281
62282 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62283
62284         * README: Fix typo.
62285         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62286         (Miscellanous Notes): ...from this.
62287
62288 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62291         Mention that offsetof should be used instead of sizeof.
62292         From Bruno Haible.
62293
62294 2006-11-07  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62297
62298 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62299
62300         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62301         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62302         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62303         (gl_tree_add_before, gl_tree_add_after):
62304         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62305         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62306         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62307         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62308         (gl_linked_add_after, gl_linked_add_at): Likewise.
62309         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62310         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62311         (gl_tree_add_before, gl_tree_add_after): Likewise.
62312         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62313         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62314         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62315
62316 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62317
62318         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62319
62320 2006-11-06  Bruno Haible  <bruno@clisp.org>
62321
62322         * m4/inline.m4: New file.
62323         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62324         * modules/list (Files): Add m4/inline.m4.
62325         * modules/oset (Files): Likewise.
62326
62327 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * lib/idcache.c: Include <stddef.h>, for offsetof.
62330         (struct userid.name): Change from char * to a flexible array member.
62331         All uses changed.
62332         * modules/idcache (Depends-on): Add flexmember.
62333
62334         * MODULES.html.sh (Core language properties): New module flexmember.
62335         * modules/flexmember, m4/flexmember.m4: New files.
62336
62337         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62338         inline functions that are identical with the old xnmalloc_inline,
62339         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62340         that we can avoid some unnecessary integer multiplications and
62341         divisions in the common case where the element size is known at
62342         compile time.
62343         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62344         needed.
62345         (xnboundedmalloc): Remove.
62346         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62347         arguments, for consistency with rest of this header.
62348         (xcharalloc): Rewrite using XNMALLOC.
62349         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62350         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62351         versions have been moved to lib/xalloc.h and renamed to be the
62352         non-*_inline versions.
62353         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62354         and xnrealloc functions, since those functions are now inline and
62355         now call us.
62356         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62357         renaming described above.
62358         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62359         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62360         captures the dependency in AC_C_INLINE.
62361
62362         New module canonicalize-lgpl, proposed by Charles Wilson in
62363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62364         with a few small changes afterwards.
62365         * MODULES.html.sh (File system functions): New module
62366         canonicalize-lgpl.
62367         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62368         and canonicalize_file_name.
62369         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62370         * modules/canonicalize-lgpl: New files.
62371
62372 2006-11-05  Bruno Haible  <bruno@clisp.org>
62373
62374         * gnulib-tool (func_import, func_create_testdir): Create directories
62375         also for files in subdirectories of lib/.
62376
62377 2006-11-05  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62380         ANSI C compliant.
62381
62382 2006-11-03  Bruno Haible  <bruno@clisp.org>
62383
62384         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62385         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62386         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62387         (xnboundedmalloc): New inline function.
62388         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62389         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62390         xmalloc.
62391         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62392         xmalloc.
62393         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62394         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62395         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62396         xmalloc.
62397         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62398         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62399         xmalloc.
62400         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62401         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62402         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62403         xmalloc.
62404         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62405         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62406         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62407         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62408         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62409         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62410         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62411
62412 2006-11-03  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/c-ctype.h [C++]: Define functions without name mangling.
62415         * lib/fwriteerror.h [C++]: Likewise.
62416         * lib/gcd.h [C++]: Likewise.
62417         * lib/linebreak.h [C++]: Likewise.
62418
62419 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62422         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62423         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62424         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62425         Check for functions and headers just once.
62426         Check for declaration of canonicalize_file_name.
62427         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62428
62429 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62430
62431         * gnulib-tool (func_import): Fix typo in actioncmd.
62432
62433 2006-11-02  Bruno Haible  <bruno@clisp.org>
62434
62435         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62436         newline sequence in the Makefile.am snippet as a space, like "make"
62437         does.
62438         Reported by Roger Persson <perrog@gmail.com>.
62439
62440 2006-11-01  Bruno Haible  <bruno@clisp.org>
62441
62442         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62443         already declared in <string.h>.
62444         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62445
62446 2006-11-01  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62449         * lib/strcase.h: Include <string.h>.
62450         (strcasecmp): Define to rpl_strcasecmp here.
62451
62452 2006-11-01  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62455
62456 2006-11-01  Eric Blake  <ebb9@byu.net>
62457
62458         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62459
62460         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62461
62462 2006-10-29  Bruno Haible  <bruno@clisp.org>
62463
62464         Make it compile in C++ mode.
62465         * lib/full-write.c (full_rw): Add a cast.
62466
62467 2006-11-01  Bruno Haible  <bruno@clisp.org>
62468
62469         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62470         be POSIX compliant.
62471         Reported by Roger Persson <perrog@gmail.com>.
62472
62473 2006-11-01  Eric Blake  <ebb9@byu.net>
62474
62475         * lib/getopt_.h: Fix comments.
62476
62477 2006-10-31  Eric Blake  <ebb9@byu.net>
62478
62479         * modules/tmpdir (Depends-on): Add sys_stat.
62480         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62481         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62482         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62483         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62484         tempname.
62485
62486 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         Avoid some C++ diagnostics reported by Bruno Haible.
62489         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62490         xmalloc.
62491         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62492         (struct slotvec): Move to top level.
62493         (quotearg_n_options): Rewrite to avoid xmalloc.
62494         * lib/xalloc.h (xcharalloc): New function.
62495         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62496         [defined __cplusplus]: Add function template that provides result
62497         type propagation.  This part of the change is from Bruno Haible.
62498
62499 2006-10-29  Bruno Haible  <bruno@clisp.org>
62500
62501         Make it compile in C++ mode.
62502         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62503         * lib/strnlen1.c (strnlen1): Cast memchr result.
62504         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62505         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62506         (create_temp_dir): Rename local variable 'template'.
62507         (compile_csharp_using_sscli): Add cast.
62508         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62509         * lib/findprog.c (find_in_path): Likewise.
62510         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62511         * lib/wait-process.c (register_slave_subprocess): Likewise.
62512
62513 2006-10-22  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/tsearch: New file.
62516         * lib/tsearch.h: New file.
62517         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62518         * m4/tsearch.m4: New file.
62519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62520
62521 2006-10-29  Eric Blake  <ebb9@byu.net>
62522
62523         * lib/arcfour.c: Assume config.h.
62524         * lib/arctwo.c: Likewise.
62525         * lib/base64.c: Likewise.
62526         * lib/check-version.c: Likewise.
62527         * lib/crc.c: Likewise.
62528         * lib/des.c: Likewise.
62529         * lib/gc-gnulib.c: Likewise.
62530         * lib/gc-libgcrypt.c: Likewise.
62531         * lib/gc-pbkdf2-sha1.c: Likewise.
62532         * lib/getaddrinfo.c: Likewise.
62533         * lib/getdelim.c: Likewise.
62534         * lib/getline.c: Likewise.
62535         * lib/hmac-md5.c: Likewise.
62536         * lib/hmac-sha1.c: Likewise.
62537         * lib/iconvme.c: Likewise.
62538         * lib/md2.c: Likewise.
62539         * lib/md4.c: Likewise.
62540         * lib/memxor.c: Likewise.
62541         * lib/read-file.c: Likewise.
62542         * lib/readline.c: Likewise.
62543         * lib/rijndael-alg-fst.c: Likewise.
62544         * lib/rijndael-api-fst.c: Likewise.
62545         * lib/xgetdomainname.c: Likewise.
62546
62547 2006-10-28  Eric Blake  <ebb9@byu.net>
62548
62549         * lib/xstrndup.c: Assume config.h.
62550
62551 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62554         stat-macros.h is now for our own macros, whereas stat_h is for
62555         macros in the <sys/stat.h> name space.
62556         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62557         (STAT_MACROS_H): Remove.
62558         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62559         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62560         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62561         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62562         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62563         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62564         Move these macros to ...
62565         * lib/stat_.h: here.  Don't include stat-macros.h.
62566         * lib/canonicalize.c: Don't include stat-macros.h.
62567         * lib/chown.c: Likewise.
62568         * lib/euidaccess.c: Likewise.
62569         * lib/file-type.c: Likewise.
62570         * lib/filemode.c: Likewise.
62571         * lib/glob.c: Likewise.
62572         * lib/isapipe.c: Likewise.
62573         * lib/lchown.c: Likewise.
62574         * lib/lstat.c: Likewise.
62575         * lib/mkdir-p.c: Likewise.
62576         * lib/rmdir.c: Likewise.
62577         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62579         unless mkdir isn't declared, to speed up 'configure'.
62580         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62581         would define all the S_* symbols.
62582         * modules/canonicalize (Depends-on):
62583         Depend on sys_stat, not stat-macros.
62584         * modules/chown: Likewise.
62585         * modules/euidaccess: Likewise.
62586         * modules/filemode: Likewise.
62587         * modules/file-type: Likewise.
62588         * modules/glob: Likewise.
62589         * modules/isapipe: Likewise.
62590         * modules/lchown: Likewise.
62591         * modules/lstat: Likewise.
62592         * modules/mkancesdirs: Likewise.
62593         * modules/rmdir: Likewise.
62594         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62595         * modules/modechange: Likewise.
62596         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62597         (configure.ac): Remove gl_STAT_MACROS.
62598         * modules/sys_stat (Depends-on): Remove stat-macros.
62599
62600 2006-10-27  Bruno Haible  <bruno@clisp.org>
62601
62602         * m4/signed.m4: Remove file.
62603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62604         invocation.
62605         * modules/vasnprintf (Files): Remove m4/signed.m4.
62606
62607 2006-10-27  Bruno Haible  <bruno@clisp.org>
62608
62609         Update to GNU gettext 0.16.
62610         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62611         m4/inttypes-h.m4, m4/signed.m4.
62612         * m4/gettext.m4: Update to GNU gettext 0.16.
62613         * m4/intl.m4: New file, from GNU gettext.
62614         * m4/intldir.m4: New file, from GNU gettext.
62615         * config/srclist.txt: Update
62616
62617 2006-10-27  Eric Blake  <ebb9@byu.net>
62618
62619         * MODULES.html.sh: Document tempname.
62620         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62621         dependencies.
62622         (Files): Move lib/tempname.c...
62623         * modules/tempname: ...to this new module.
62624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62625         (gl_PREREQ_TEMPNAME): Move...
62626         * m4/tempname.m4: ...to this new file.
62627         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62628         * modules/sys_stat (Depends-on): Add stat-macros.
62629         * lib/stat_.h (includes): Pick up stat macros.
62630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62631         if stat macros are broken.
62632         * lib/tempname.c (includes): No need to include "stat-macros.h".
62633         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62634         (direxists, __path_search) [!_LIBC]: Don't compile these in
62635         gnulib; the tmpdir module covers that.
62636         * lib/tempname.h: New file.
62637
62638 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62639
62640         * COPYING: Explain how gnulib-tool converts licence headers.
62641         Almost all wording by Eric Blake.
62642
62643 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * lib/mbchar.h (is_basic_table): Make read-only.
62646         * lib/mbchar.c (is_basic_table): Likewise.
62647         Reported by John Darrington.
62648
62649 2006-10-25  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/progname.h (set_program_name): Undefine before defining.
62652
62653 2006-10-25  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62656         false for non-gcc C++ compilers.
62657         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62658
62659 2006-10-24  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62662         iconv implementations like Irix iconv.
62663
62664 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * modules/vararrays: New file.
62667         * m4/vararrays.m4: New file, taken from diffutils.
62668         * MODULES.html.sh: New module vararrays.
62669
62670 2006-10-24  Karl Berry  <karl@gnu.org>
62671
62672         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62673         Don't call GNU Unix.
62674
62675 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62676
62677         * users.txt: Add Libtool.
62678
62679         Sync from Libtool:
62680
62681         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62684         to gnulib's policy of including config.h unconditionally.
62685
62686 2006-10-24  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/wcwidth (Files): Add m4/wint_t.m4.
62689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62690         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62691
62692 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62695         to pacify GCC with some -W flags enabled.  Problem reported by
62696         Bruno Haible.
62697
62698 2006-10-24  Jim Meyering  <jim@meyering.net>
62699
62700         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62701         Reported by Karl Berry.
62702
62703 2006-10-23  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62706
62707 2006-10-24  Bruno Haible  <bruno@clisp.org>
62708
62709         * lib/gl_list.h: Use C comment style, not C++ comment style.
62710
62711 2006-10-23  Eric Blake  <ebb9@byu.net>
62712
62713         * lib/getaddrinfo.c (includes): Add missing include.
62714
62715 2006-10-23  Bruno Haible  <bruno@clisp.org>
62716             Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         Ability to rename obstack_free.
62719         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62720         obstack_free.
62721         (obstack_free): Invoke the __obstack_free macro.
62722         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62723
62724 2006-10-23  Bruno Haible  <bruno@clisp.org>
62725             Paul Eggert  <eggert@cs.ucla.edu>
62726
62727         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62728         __argc, __argv from the declaration. (They are defined as macros on
62729         mingw.)
62730
62731 2006-10-22  Bruno Haible  <bruno@clisp.org>
62732
62733         * doc/gnulib-intro.texi: New file.
62734         * doc/gnulib.texi: Include it.
62735
62736 2006-10-21  Bruno Haible  <bruno@clisp.org>
62737
62738         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62739         "Introduction", "Miscellanous Notes", "Particular Modules".
62740
62741 2006-10-21  Bruno Haible  <bruno@clisp.org>
62742
62743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62744         Change mostlyclean-local rule to avoid sh syntax error from bash
62745         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62746
62747 2006-10-23  Jim Meyering  <jim@meyering.net>
62748
62749         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62750         in place of snprintf.
62751
62752         * modules/inttostr (Files): Add lib/uinttostr.c.
62753         * lib/uinttostr.c (inttostr): New file/function.
62754         * lib/inttostr.h (uinttostr): Declare.
62755         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62756         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62757         Add uinttostr.
62758         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62759
62760 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * lib/canonicalize.c (ELOOP): Define if not already defined.
62763         Problem reported by Bruno Haible in
62764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62765
62766 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62769         Problem reported by Perry Smith and Ville Laurikari.
62770
62771         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62772         uses.
62773
62774 2006-10-19  Bruno Haible  <bruno@clisp.org>
62775
62776         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62777         for mingw.
62778
62779 2006-10-19  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62782         Needed for mingw.
62783
62784 2006-10-19  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62787
62788 2006-10-19  Bruno Haible  <bruno@clisp.org>
62789
62790         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62791         it.
62792
62793 2006-10-19  Bruno Haible  <bruno@clisp.org>
62794
62795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62796         invocation.
62797
62798 2006-10-19  Bruno Haible  <bruno@clisp.org>
62799
62800         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62801         mountlist by default.
62802
62803 2006-10-16  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/c-strstr.c: Include c-strstr.h.
62806
62807 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62808
62809         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62810         in a slash.
62811
62812 2006-10-18  Bruno Haible  <bruno@clisp.org>
62813
62814         * lib/lock.h [C++]: Wrap definitions in extern "C".
62815
62816 2006-10-18  Bruno Haible  <bruno@clisp.org>
62817
62818         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62819         gl_LIBOBJS list.
62820
62821 2006-10-18  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62824
62825 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * lib/xstrtol.h: Include gettext.h.
62828         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62829         Problem reported by Eric Blake.
62830         * modules/xstrtol (Depends-on): Add gettext-h.
62831
62832 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62833
62834         * lib/strftime.c (advance): New macro.
62835         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62836         incomplete type, so you can't add 0 to it.  Problem and patch
62837         reported by Eelco Dolstra for dietlibc.
62838
62839 2006-10-18  Jim Meyering  <jim@meyering.net>
62840
62841         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62842         type for a local, and rename it: s/up/user_proc/.
62843
62844 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62845
62846         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62847         READ_UTMP_USER_PROCESS.
62848         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62849
62850 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62853         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62854
62855 2006-10-17  Eric Blake  <ebb9@byu.net>
62856
62857         * lib/sigprocmask.c (sigprocmask): Fix typo.
62858
62859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62860
62861         * modules/clean-temp (Makefile.am): Don't add to make output...
62862         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62863         config.h.
62864
62865 2006-10-17  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62868         differently if DEFAULT_TEXT_DOMAIN is set.
62869
62870 2006-10-16  Bruno Haible  <bruno@clisp.org>
62871
62872         * lib/clean-temp.c: Include fwriteerror.h.
62873
62874 2006-10-16  Bruno Haible  <bruno@clisp.org>
62875
62876         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62877
62878 2006-10-16  Bruno Haible  <bruno@clisp.org>
62879
62880         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62881         * lib/sigprocmask.h: Include <sys/types.h>.
62882         (sigset_t): Use the system's definition if present.
62883
62884 2006-10-17  Eric Blake  <ebb9@byu.net>
62885
62886         * lib/xvasprintf.c (includes): Assume config.h.
62887         * lib/xasprintf.c (includes): Likewise.
62888
62889 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62890
62891         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62892         at least as wide as intmax_t.
62893
62894 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62895
62896         (Imported from Automake.)
62897         * build-aux/gnupload: Update to version 1.1 of directive file.
62898
62899 2006-10-16  Eric Blake  <ebb9@byu.net>
62900
62901         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62902         match Automake 1.10a.
62903
62904 2006-10-14  Bruno Haible  <bruno@clisp.org>
62905
62906         * modules/sigprocmask: New file.
62907         * lib/sigprocmask.h: New file.
62908         * lib/sigprocmask.c: New file.
62909         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62910         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62911         request sigprocmask.o.
62912         (gl_PREREQ_SIGPROCMASK): New macro.
62913         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62914         (Depends-on): Add sigprocmask.
62915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62916         gt_SIGNALBLOCKING. Test for 'raise' only once.
62917         * lib/fatal-signal.c: Include sigprocmask.h.
62918         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62919         unblock_fatal_signals): Define always.
62920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62921         sigprocmask.
62922
62923 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62924
62925         Sync from Automake.
62926         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62927         which incorrectly sets the mode of an existing destination
62928         directory.  In some cases the unpatched install-sh could do the
62929         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62930         system.  We hope this is rare in practice, but it's clearly worth
62931         fixing.  Problem reported by Alex Unleashed in
62932         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62933         Also, don't bother to check for -m bugs unless we're using -m;
62934         suggested by Stepan Kasal.
62935
62936 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62937
62938         Sync from Automake.
62939         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62940         `-c' flag, so they appear at the same position as in %FASTDEP%
62941         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62942         which ignores unknown options only after the first non-option.
62943         Bug report against M4 by Nelson H. F. Beebe.
62944
62945 2006-10-13  Jim Meyering  <jim@meyering.net>
62946
62947         Fix a bug in yesterday's change.
62948         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62949         p->fts_statp->st_dev would be used uninitialized.
62950         Ensures that we always call fts_stat on the very first entry.
62951         Miklos Szeredi reported that find -xdev stopped working.
62952
62953 2006-10-12  Bruno Haible  <bruno@clisp.org>
62954
62955         * gnulib-tool (func_get_automake_snippet): Append an automatically
62956         computed EXTRA_DIST augmentation.
62957         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62958         * modules/alloca-opt (Makefile.am): Likewise.
62959         * modules/allocsa (Makefile.am): Likewise.
62960         * modules/arcfour (Makefile.am): Likewise.
62961         * modules/arctwo (Makefile.am): Likewise.
62962         * modules/argmatch (Makefile.am): Likewise.
62963         * modules/argz (Makefile.am): Likewise.
62964         * modules/atexit (Makefile.am): Likewise.
62965         * modules/backupfile (Makefile.am): Likewise.
62966         * modules/byteswap (Makefile.am): Likewise.
62967         * modules/c-strtod (Makefile.am): Likewise.
62968         * modules/c-strtold (Makefile.am): Likewise.
62969         * modules/calloc (Makefile.am): Likewise.
62970         * modules/canon-host (Makefile.am): Likewise.
62971         * modules/canonicalize (Makefile.am): Likewise.
62972         * modules/chdir-long (Makefile.am): Likewise.
62973         * modules/chdir-safer (Makefile.am): Likewise.
62974         * modules/check-version (Makefile.am): Likewise.
62975         * modules/chown (Makefile.am): Likewise.
62976         * modules/cloexec (Makefile.am): Likewise.
62977         * modules/close-stream (Makefile.am): Likewise.
62978         * modules/closeout (Makefile.am): Likewise.
62979         * modules/crc (Makefile.am): Likewise.
62980         * modules/csharpexec (Makefile.am): Likewise.
62981         * modules/cycle-check (Makefile.am): Likewise.
62982         * modules/des (Makefile.am): Likewise.
62983         * modules/dev-ino (Makefile.am): Likewise.
62984         * modules/dirfd (Makefile.am): Likewise.
62985         * modules/dirname (Makefile.am): Likewise.
62986         * modules/dup2 (Makefile.am): Likewise.
62987         * modules/eealloc (Makefile.am): Likewise.
62988         * modules/error (Makefile.am): Likewise.
62989         * modules/euidaccess (Makefile.am): Likewise.
62990         * modules/exclude (Makefile.am): Likewise.
62991         * modules/exitfail (Makefile.am): Likewise.
62992         * modules/fcntl-safer (Makefile.am): Likewise.
62993         * modules/fcntl (Makefile.am): Likewise.
62994         * modules/file-type (Makefile.am): Likewise.
62995         * modules/fileblocks (Makefile.am): Likewise.
62996         * modules/filemode (Makefile.am): Likewise.
62997         * modules/filenamecat (Makefile.am): Likewise.
62998         * modules/fnmatch (Makefile.am): Likewise.
62999         * modules/fopen-safer (Makefile.am): Likewise.
63000         * modules/fpending (Makefile.am): Likewise.
63001         * modules/fprintftime (Makefile.am): Likewise.
63002         * modules/free (Makefile.am): Likewise.
63003         * modules/fsusage (Makefile.am): Likewise.
63004         * modules/ftruncate (Makefile.am): Likewise.
63005         * modules/fts (Makefile.am): Likewise.
63006         * modules/gc-arcfour (Makefile.am): Likewise.
63007         * modules/gc-des (Makefile.am): Likewise.
63008         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63009         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63010         * modules/gc-md4 (Makefile.am): Likewise.
63011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63012         * modules/gc-sha1 (Makefile.am): Likewise.
63013         * modules/gc (Makefile.am): Likewise.
63014         * modules/getaddrinfo (Makefile.am): Likewise.
63015         * modules/getcwd (Makefile.am): Likewise.
63016         * modules/getdelim (Makefile.am): Likewise.
63017         * modules/getdomainname (Makefile.am): Likewise.
63018         * modules/getgroups (Makefile.am): Likewise.
63019         * modules/gethostname (Makefile.am): Likewise.
63020         * modules/gethrxtime (Makefile.am): Likewise.
63021         * modules/getline (Makefile.am): Likewise.
63022         * modules/getloadavg (Makefile.am): Likewise.
63023         * modules/getlogin_r (Makefile.am): Likewise.
63024         * modules/getndelim2 (Makefile.am): Likewise.
63025         * modules/getopt (Makefile.am): Likewise.
63026         * modules/getpagesize (Makefile.am): Likewise.
63027         * modules/getpass-gnu (Makefile.am): Likewise.
63028         * modules/getpass (Makefile.am): Likewise.
63029         * modules/getsubopt (Makefile.am): Likewise.
63030         * modules/gettime (Makefile.am): Likewise.
63031         * modules/gettimeofday (Makefile.am): Likewise.
63032         * modules/getugroups (Makefile.am): Likewise.
63033         * modules/getusershell (Makefile.am): Likewise.
63034         * modules/glob (Makefile.am): Likewise.
63035         * modules/group-member (Makefile.am): Likewise.
63036         * modules/hard-locale (Makefile.am): Likewise.
63037         * modules/hash (Makefile.am): Likewise.
63038         * modules/hmac-md5 (Makefile.am): Likewise.
63039         * modules/hmac-sha1 (Makefile.am): Likewise.
63040         * modules/human (Makefile.am): Likewise.
63041         * modules/idcache (Makefile.am): Likewise.
63042         * modules/imaxabs (Makefile.am): Likewise.
63043         * modules/imaxdiv (Makefile.am): Likewise.
63044         * modules/inet_ntop (Makefile.am): Likewise.
63045         * modules/inet_pton (Makefile.am): Likewise.
63046         * modules/intprops (Makefile.am): Likewise.
63047         * modules/inttostr (Makefile.am): Likewise.
63048         * modules/inttypes (Makefile.am): Likewise.
63049         * modules/isapipe (Makefile.am): Likewise.
63050         * modules/javaversion (Makefile.am): Likewise.
63051         * modules/lchmod (Makefile.am): Likewise.
63052         * modules/lchown (Makefile.am): Likewise.
63053         * modules/localcharset (Makefile.am): Likewise.
63054         * modules/long-options (Makefile.am): Likewise.
63055         * modules/lstat (Makefile.am): Likewise.
63056         * modules/malloc (Makefile.am): Likewise.
63057         * modules/mathl (Makefile.am): Likewise.
63058         * modules/mbchar (Makefile.am): Likewise.
63059         * modules/md2 (Makefile.am): Likewise.
63060         * modules/md4 (Makefile.am): Likewise.
63061         * modules/md5 (Makefile.am): Likewise.
63062         * modules/memcasecmp (Makefile.am): Likewise.
63063         * modules/memchr (Makefile.am): Likewise.
63064         * modules/memcmp (Makefile.am): Likewise.
63065         * modules/memcoll (Makefile.am): Likewise.
63066         * modules/memcpy (Makefile.am): Likewise.
63067         * modules/memmem (Makefile.am): Likewise.
63068         * modules/memmove (Makefile.am): Likewise.
63069         * modules/mempcpy (Makefile.am): Likewise.
63070         * modules/memrchr (Makefile.am): Likewise.
63071         * modules/memset (Makefile.am): Likewise.
63072         * modules/memxor (Makefile.am): Likewise.
63073         * modules/mkancesdirs (Makefile.am): Likewise.
63074         * modules/mkdir-p (Makefile.am): Likewise.
63075         * modules/mkdir (Makefile.am): Likewise.
63076         * modules/mkdtemp (Makefile.am): Likewise.
63077         * modules/mkstemp (Makefile.am): Likewise.
63078         * modules/mktime (Makefile.am): Likewise.
63079         * modules/modechange (Makefile.am): Likewise.
63080         * modules/mountlist (Makefile.am): Likewise.
63081         * modules/nanosleep (Makefile.am): Likewise.
63082         * modules/obstack (Makefile.am): Likewise.
63083         * modules/openat (Makefile.am): Likewise.
63084         * modules/pagealign_alloc (Makefile.am): Likewise.
63085         * modules/pathmax (Makefile.am): Likewise.
63086         * modules/physmem (Makefile.am): Likewise.
63087         * modules/poll (Makefile.am): Likewise.
63088         * modules/posixtm (Makefile.am): Likewise.
63089         * modules/posixver (Makefile.am): Likewise.
63090         * modules/putenv (Makefile.am): Likewise.
63091         * modules/quote (Makefile.am): Likewise.
63092         * modules/quotearg (Makefile.am): Likewise.
63093         * modules/raise (Makefile.am): Likewise.
63094         * modules/read-file (Makefile.am): Likewise.
63095         * modules/readline (Makefile.am): Likewise.
63096         * modules/readlink (Makefile.am): Likewise.
63097         * modules/readtokens (Makefile.am): Likewise.
63098         * modules/readutmp (Makefile.am): Likewise.
63099         * modules/realloc (Makefile.am): Likewise.
63100         * modules/regex (Makefile.am): Likewise.
63101         * modules/rename-dest-slash (Makefile.am): Likewise.
63102         * modules/rename (Makefile.am): Likewise.
63103         * modules/rijndael (Makefile.am): Likewise.
63104         * modules/rmdir (Makefile.am): Likewise.
63105         * modules/rpmatch (Makefile.am): Likewise.
63106         * modules/safe-read (Makefile.am): Likewise.
63107         * modules/safe-write (Makefile.am): Likewise.
63108         * modules/same-inode (Makefile.am): Likewise.
63109         * modules/same (Makefile.am): Likewise.
63110         * modules/save-cwd (Makefile.am): Likewise.
63111         * modules/savedir (Makefile.am): Likewise.
63112         * modules/setenv (Makefile.am): Likewise.
63113         * modules/settime (Makefile.am): Likewise.
63114         * modules/sha1 (Makefile.am): Likewise.
63115         * modules/sig2str (Makefile.am): Likewise.
63116         * modules/snprintf (Makefile.am): Likewise.
63117         * modules/stat-macros (Makefile.am): Likewise.
63118         * modules/stat-time (Makefile.am): Likewise.
63119         * modules/stdbool (Makefile.am): Likewise.
63120         * modules/stdint (Makefile.am): Likewise.
63121         * modules/stdlib-safer (Makefile.am): Likewise.
63122         * modules/stpcpy (Makefile.am): Likewise.
63123         * modules/stpncpy (Makefile.am): Likewise.
63124         * modules/strcase (Makefile.am): Likewise.
63125         * modules/strcasestr (Makefile.am): Likewise.
63126         * modules/strchrnul (Makefile.am): Likewise.
63127         * modules/strcspn (Makefile.am): Likewise.
63128         * modules/strdup (Makefile.am): Likewise.
63129         * modules/strerror (Makefile.am): Likewise.
63130         * modules/strftime (Makefile.am): Likewise.
63131         * modules/strndup (Makefile.am): Likewise.
63132         * modules/strnlen (Makefile.am): Likewise.
63133         * modules/strpbrk (Makefile.am): Likewise.
63134         * modules/strsep (Makefile.am): Likewise.
63135         * modules/strstr (Makefile.am): Likewise.
63136         * modules/strtod (Makefile.am): Likewise.
63137         * modules/strtoimax (Makefile.am): Likewise.
63138         * modules/strtok_r (Makefile.am): Likewise.
63139         * modules/strtol (Makefile.am): Likewise.
63140         * modules/strtoll (Makefile.am): Likewise.
63141         * modules/strtoul (Makefile.am): Likewise.
63142         * modules/strtoull (Makefile.am): Likewise.
63143         * modules/strtoumax (Makefile.am): Likewise.
63144         * modules/strverscmp (Makefile.am): Likewise.
63145         * modules/sys_socket (Makefile.am): Likewise.
63146         * modules/sys_stat (Makefile.am): Likewise.
63147         * modules/sysexits (Makefile.am): Likewise.
63148         * modules/time_r (Makefile.am): Likewise.
63149         * modules/timegm (Makefile.am): Likewise.
63150         * modules/timespec (Makefile.am): Likewise.
63151         * modules/tmpfile-safer (Makefile.am): Likewise.
63152         * modules/trim (Makefile.am): Likewise.
63153         * modules/unistd-safer (Makefile.am): Likewise.
63154         * modules/unlinkdir (Makefile.am): Likewise.
63155         * modules/unlocked-io (Makefile.am): Likewise.
63156         * modules/userspec (Makefile.am): Likewise.
63157         * modules/utime (Makefile.am): Likewise.
63158         * modules/utimecmp (Makefile.am): Likewise.
63159         * modules/utimens (Makefile.am): Likewise.
63160         * modules/vasnprintf (Makefile.am): Likewise.
63161         * modules/vasprintf (Makefile.am): Likewise.
63162         * modules/vsnprintf (Makefile.am): Likewise.
63163         * modules/xalloc (Makefile.am): Likewise.
63164         * modules/xgetcwd (Makefile.am): Likewise.
63165         * modules/xnanosleep (Makefile.am): Likewise.
63166         * modules/xreadlink (Makefile.am): Likewise.
63167         * modules/xstrtod (Makefile.am): Likewise.
63168         * modules/xstrtol (Makefile.am): Likewise.
63169         * modules/xstrtold (Makefile.am): Likewise.
63170         * modules/yesno (Makefile.am): Likewise.
63171         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63172
63173 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * modules/error (Makefile.am): Distribute files through
63176         EXTRA_DIST, not lib_SOURCES.
63177
63178 2006-10-12  Eric Blake  <ebb9@byu.net>
63179
63180         * modules/error (Makefile.am): Distribute files in /lib.
63181         * modules/obstack (Makefile.am): Likewise.
63182
63183 2006-10-12  Bruno Haible  <bruno@clisp.org>
63184
63185         * modules/acl (Makefile.am): Distribute all files in lib/ through
63186         EXTRA_DIST.
63187         * modules/arcfour (Makefile.am): Likewise.
63188         * modules/arctwo (Makefile.am): Likewise.
63189         * modules/argmatch (Makefile.am): Likewise.
63190         * modules/argz (Makefile.am): Likewise.
63191         * modules/atexit (Makefile.am): Likewise.
63192         * modules/backupfile (Makefile.am): Likewise.
63193         * modules/c-strtod (Makefile.am): Likewise.
63194         * modules/c-strtold (Makefile.am): Likewise.
63195         * modules/calloc (Makefile.am): Likewise.
63196         * modules/canon-host (Makefile.am): Likewise.
63197         * modules/canonicalize (Makefile.am): Likewise.
63198         * modules/chdir-long (Makefile.am): Likewise.
63199         * modules/chdir-safer (Makefile.am): Likewise.
63200         * modules/check-version (Makefile.am): Likewise.
63201         * modules/chown (Makefile.am): Likewise.
63202         * modules/cloexec (Makefile.am): Likewise.
63203         * modules/close-stream (Makefile.am): Likewise.
63204         * modules/closeout (Makefile.am): Likewise.
63205         * modules/crc (Makefile.am): Likewise.
63206         * modules/cycle-check (Makefile.am): Likewise.
63207         * modules/des (Makefile.am): Likewise.
63208         * modules/dirfd (Makefile.am): Likewise.
63209         * modules/dirname (Makefile.am): Likewise.
63210         * modules/dup2 (Makefile.am): Likewise.
63211         * modules/euidaccess (Makefile.am): Likewise.
63212         * modules/exclude (Makefile.am): Likewise.
63213         * modules/exitfail (Makefile.am): Likewise.
63214         * modules/fcntl-safer (Makefile.am): Likewise.
63215         * modules/file-type (Makefile.am): Likewise.
63216         * modules/fileblocks (Makefile.am): Likewise.
63217         * modules/filemode (Makefile.am): Likewise.
63218         * modules/filenamecat (Makefile.am): Likewise.
63219         * modules/fnmatch (Makefile.am): Likewise.
63220         * modules/fopen-safer (Makefile.am): Likewise.
63221         * modules/fpending (Makefile.am): Likewise.
63222         * modules/fprintftime (Makefile.am): Likewise.
63223         * modules/free (Makefile.am): Likewise.
63224         * modules/fsusage (Makefile.am): Likewise.
63225         * modules/ftruncate (Makefile.am): Likewise.
63226         * modules/fts (Makefile.am): Likewise.
63227         * modules/gc (Makefile.am): Likewise.
63228         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63229         * modules/getaddrinfo (Makefile.am): Likewise.
63230         * modules/getcwd (Makefile.am): Likewise.
63231         * modules/getdelim (Makefile.am): Likewise.
63232         * modules/getdomainname (Makefile.am): Likewise.
63233         * modules/getgroups (Makefile.am): Likewise.
63234         * modules/gethostname (Makefile.am): Likewise.
63235         * modules/gethrxtime (Makefile.am): Likewise.
63236         * modules/getline (Makefile.am): Likewise.
63237         * modules/getloadavg (Makefile.am): Likewise.
63238         * modules/getlogin_r (Makefile.am): Likewise.
63239         * modules/getopt (Makefile.am): Likewise.
63240         * modules/getpass (Makefile.am): Likewise.
63241         * modules/getpass-gnu (Makefile.am): Likewise.
63242         * modules/getsubopt (Makefile.am): Likewise.
63243         * modules/gettime (Makefile.am): Likewise.
63244         * modules/gettimeofday (Makefile.am): Likewise.
63245         * modules/getugroups (Makefile.am): Likewise.
63246         * modules/getusershell (Makefile.am): Likewise.
63247         * modules/glob (Makefile.am): Likewise.
63248         * modules/group-member (Makefile.am): Likewise.
63249         * modules/hard-locale (Makefile.am): Likewise.
63250         * modules/hash (Makefile.am): Likewise.
63251         * modules/hmac-md5 (Makefile.am): Likewise.
63252         * modules/hmac-sha1 (Makefile.am): Likewise.
63253         * modules/human (Makefile.am): Likewise.
63254         * modules/idcache (Makefile.am): Likewise.
63255         * modules/imaxabs (Makefile.am): Likewise.
63256         * modules/imaxdiv (Makefile.am): Likewise.
63257         * modules/inet_ntop (Makefile.am): Likewise.
63258         * modules/inet_pton (Makefile.am): Likewise.
63259         * modules/inttostr (Makefile.am): Likewise.
63260         * modules/isapipe (Makefile.am): Likewise.
63261         * modules/lchown (Makefile.am): Likewise.
63262         * modules/long-options (Makefile.am): Likewise.
63263         * modules/lstat (Makefile.am): Likewise.
63264         * modules/malloc (Makefile.am): Likewise.
63265         * modules/mathl (Makefile.am): Likewise.
63266         * modules/mbchar (Makefile.am): Likewise.
63267         * modules/md2 (Makefile.am): Likewise.
63268         * modules/md4 (Makefile.am): Likewise.
63269         * modules/md5 (Makefile.am): Likewise.
63270         * modules/memcasecmp (Makefile.am): Likewise.
63271         * modules/memchr (Makefile.am): Likewise.
63272         * modules/memcmp (Makefile.am): Likewise.
63273         * modules/memcoll (Makefile.am): Likewise.
63274         * modules/memcpy (Makefile.am): Likewise.
63275         * modules/memmem (Makefile.am): Likewise.
63276         * modules/memmove (Makefile.am): Likewise.
63277         * modules/mempcpy (Makefile.am): Likewise.
63278         * modules/memrchr (Makefile.am): Likewise.
63279         * modules/memset (Makefile.am): Likewise.
63280         * modules/memxor (Makefile.am): Likewise.
63281         * modules/mkancesdirs (Makefile.am): Likewise.
63282         * modules/mkdir (Makefile.am): Likewise.
63283         * modules/mkdir-p (Makefile.am): Likewise.
63284         * modules/mkdtemp (Makefile.am): Likewise.
63285         * modules/mkstemp (Makefile.am): Likewise.
63286         * modules/mktime (Makefile.am): Likewise.
63287         * modules/modechange (Makefile.am): Likewise.
63288         * modules/mountlist (Makefile.am): Likewise.
63289         * modules/nanosleep (Makefile.am): Likewise.
63290         * modules/openat (Makefile.am): Likewise.
63291         * modules/pagealign_alloc (Makefile.am): Likewise.
63292         * modules/physmem (Makefile.am): Likewise.
63293         * modules/poll (Makefile.am): Likewise.
63294         * modules/posixtm (Makefile.am): Likewise.
63295         * modules/posixver (Makefile.am): Likewise.
63296         * modules/putenv (Makefile.am): Likewise.
63297         * modules/quote (Makefile.am): Likewise.
63298         * modules/quotearg (Makefile.am): Likewise.
63299         * modules/raise (Makefile.am): Likewise.
63300         * modules/read-file (Makefile.am): Likewise.
63301         * modules/readline (Makefile.am): Likewise.
63302         * modules/readlink (Makefile.am): Likewise.
63303         * modules/readtokens (Makefile.am): Likewise.
63304         * modules/readutmp (Makefile.am): Likewise.
63305         * modules/realloc (Makefile.am): Likewise.
63306         * modules/regex (Makefile.am): Likewise.
63307         * modules/rename (Makefile.am): Likewise.
63308         * modules/rename-dest-slash (Makefile.am): Likewise.
63309         * modules/rijndael (Makefile.am): Likewise.
63310         * modules/rmdir (Makefile.am): Likewise.
63311         * modules/rpmatch (Makefile.am): Likewise.
63312         * modules/safe-read (Makefile.am): Likewise.
63313         * modules/safe-write (Makefile.am): Likewise.
63314         * modules/same (Makefile.am): Likewise.
63315         * modules/save-cwd (Makefile.am): Likewise.
63316         * modules/savedir (Makefile.am): Likewise.
63317         * modules/setenv (Makefile.am): Likewise.
63318         * modules/settime (Makefile.am): Likewise.
63319         * modules/sha1 (Makefile.am): Likewise.
63320         * modules/sig2str (Makefile.am): Likewise.
63321         * modules/snprintf (Makefile.am): Likewise.
63322         * modules/stdlib-safer (Makefile.am): Likewise.
63323         * modules/stpcpy (Makefile.am): Likewise.
63324         * modules/stpncpy (Makefile.am): Likewise.
63325         * modules/strcase (Makefile.am): Likewise.
63326         * modules/strcasestr (Makefile.am): Likewise.
63327         * modules/strchrnul (Makefile.am): Likewise.
63328         * modules/strcspn (Makefile.am): Likewise.
63329         * modules/strdup (Makefile.am): Likewise.
63330         * modules/strerror (Makefile.am): Likewise.
63331         * modules/strftime (Makefile.am): Likewise.
63332         * modules/strndup (Makefile.am): Likewise.
63333         * modules/strnlen (Makefile.am): Likewise.
63334         * modules/strpbrk (Makefile.am): Likewise.
63335         * modules/strsep (Makefile.am): Likewise.
63336         * modules/strstr (Makefile.am): Likewise.
63337         * modules/strtod (Makefile.am): Likewise.
63338         * modules/strtoimax (Makefile.am): Likewise.
63339         * modules/strtok_r (Makefile.am): Likewise.
63340         * modules/strtol (Makefile.am): Likewise.
63341         * modules/strtoll (Makefile.am): Likewise.
63342         * modules/strtoul (Makefile.am): Likewise.
63343         * modules/strtoull (Makefile.am): Likewise.
63344         * modules/strtoumax (Makefile.am): Likewise.
63345         * modules/strverscmp (Makefile.am): Likewise.
63346         * modules/time_r (Makefile.am): Likewise.
63347         * modules/timegm (Makefile.am): Likewise.
63348         * modules/tmpfile-safer (Makefile.am): Likewise.
63349         * modules/unistd-safer (Makefile.am): Likewise.
63350         * modules/unlinkdir (Makefile.am): Likewise.
63351         * modules/userspec (Makefile.am): Likewise.
63352         * modules/utime (Makefile.am): Likewise.
63353         * modules/utimecmp (Makefile.am): Likewise.
63354         * modules/utimens (Makefile.am): Likewise.
63355         * modules/vasnprintf (Makefile.am): Likewise.
63356         * modules/vasprintf (Makefile.am): Likewise.
63357         * modules/vsnprintf (Makefile.am): Likewise.
63358         * modules/xalloc (Makefile.am): Likewise.
63359         * modules/xgetcwd (Makefile.am): Likewise.
63360         * modules/xnanosleep (Makefile.am): Likewise.
63361         * modules/xreadlink (Makefile.am): Likewise.
63362         * modules/xstrtod (Makefile.am): Likewise.
63363         * modules/xstrtol (Makefile.am): Likewise.
63364         * modules/xstrtold (Makefile.am): Likewise.
63365         * modules/yesno (Makefile.am): Likewise.
63366
63367 2006-10-12  Jim Meyering  <jim@meyering.net>
63368
63369         * m4/getloadavg.m4: Revert the change below.
63370
63371         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63372         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63373         fail with a symlink, which is what coreutils' ./bootstrap now
63374         creates by default.
63375
63376 2006-10-12  Bruno Haible  <bruno@clisp.org>
63377
63378         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63379         mingw.
63380         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63381         MSVC and mingw explicitly.
63382
63383 2006-10-11  Simon Josefsson  <jas@extundo.com>
63384             Bruno Haible  <bruno@clisp.org>
63385
63386         Add support for multiple gnulib-tool invocations in the scope of a
63387         single configure.ac file.
63388         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63389         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63390         with the same contents as the _LIBADD variable.
63391         (func_emit_initmacro_start, func_emit_initmacro_end,
63392         func_emit_initmacro_done): New functions.
63393         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63394         gl_LIBOBJS and gl_LTLIBOBJS.
63395
63396 2006-10-11  Bruno Haible  <bruno@clisp.org>
63397
63398         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63399         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63400         autoreconf. Instead, invoke autopoint explicitly but move back the
63401         *.m4 files from gnulib.
63402
63403 2006-10-11  Bruno Haible  <bruno@clisp.org>
63404
63405         * gnulib-tool (func_usage): Make module names after --create-testdir
63406         optional.
63407         (func_create_testdir): If no module was specified, use nearly all
63408         modules.
63409
63410 2006-10-12  Jim Meyering  <jim@meyering.net>
63411
63412         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63413         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63414         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63415         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63416         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63417         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63418         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63419         (fts_set_stat_required): New function.
63420         (fts_open): Defer the calls to fts_stat, if possible or requested.
63421         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63422         into fts_stat itself.
63423         (fts_read): Perform any required (deferred) fts_stat call.
63424         (fts_build): Likewise, for the directory we're about to open and read.
63425         In the readdir loop, carefully decide whether each entry will require
63426         an eventual call to fts_stat, using dirent.d_type info if available.
63427         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63428         a command line argument into this function.  Update all callers.
63429         Map a return value of FTS_DOT to FTS_D for a command line argument.
63430         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63431         Thanks to Miklos Szeredi for his tenacity and for the initial
63432         bug report about "find" failing on a FUSE-based file system.
63433
63434         * lib/fts.c (fts_open): Use consistent indentation.
63435
63436 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63439         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63440         reported by Jim Meyering.  All uses of cache variables renamed
63441         to match Autoconf's.
63442         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63443         the other one.
63444
63445         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63446         Fix misspelling in diagnostic.
63447
63448 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63451         defined.  Problem reported by Matthew Woehlke.
63452
63453         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63454         Add support for Tandem NonStop R series.
63455         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63456         Use new macro.
63457
63458         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63459         (has_trailing_slash): Omit size arg; all callers changed.
63460         Omit 'inline', since it doesn't help performance and we'd
63461         need to configure it.
63462         Don't count //, ///, etc. as having a trailing slash.
63463         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63464         (rpl_rename_dest_slash): On failure, use rename's errno rather
63465         than (in some cases) an incorrect or junk errno.
63466         Simplify code by removing need to compute length; this does
63467         cause it to make two passes instead of one over the file name,
63468         but it's worth it.
63469
63470         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63471         change, since Autoconf's version may no longer be appropriate now
63472         that we are using CVS Autoconf's version.  Add support for Tandem.
63473
63474 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63475             Bruno Haible  <bruno@clisp.org>
63476
63477         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63478         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63479         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63480         gl_AC_TYPE_LONG_LONG.
63481
63482         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63483         instead of HAVE_LONG_LONG.
63484         * lib/printf-args.c (printf_fetchargs): Likewise.
63485         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63486         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63488         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63489         gl_AC_TYPE_LONG_LONG.
63490
63491 2006-10-11  Bruno Haible  <bruno@clisp.org>
63492
63493         * m4/longlong.m4: Add comments.
63494         * m4/ulonglong.m4: Likewise.
63495
63496 2006-10-10  Bruno Haible  <bruno@clisp.org>
63497
63498         Make it possible to #define stpcpy, strdup to aliases.
63499         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63500         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63501
63502 2006-10-10  Bruno Haible  <bruno@clisp.org>
63503
63504         Make it possible to #define gcd to an alias.
63505         * lib/gcd.c: Include config.h.
63506
63507 2006-10-10  Bruno Haible  <bruno@clisp.org>
63508
63509         Make it possible to #define c_isascii to an alias.
63510         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63511         defined. Undefine the macros before defining them, to avoid gcc
63512         warnings.
63513         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63514         define NO_C_CTYPE_MACROS early.
63515
63516 2006-10-10  Bruno Haible  <bruno@clisp.org>
63517
63518         Make it possible to #define set_program_name to an alias.
63519         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63520         ENABLE_RELOCATABLE early.
63521
63522 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63523
63524         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63525         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63526         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63527         More generally, don't assume that 64-bit signed int is available
63528         if unsigned int is, and vice versa.
63529         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63530         unsigned symbols, not on their signed counterparts.
63531         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63532         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63533         (UINT64_C, UINTMAX_C):
63534         Likewise.
63535         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63536         unsigned counterparts.
63537         (Have_long_long, Unsigned): New macros.
63538         (Int): Renamed from INT.
63539         (strtoimax): Use the new macros.
63540         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63541         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63542         * modules/inttypes (inttypes.h): Substitute
63543         HAVE_UNSIGNED_LONG_LONG_INT.
63544         * modules/stdint (stdint.h): Likewise.
63545         (Files): Add m4/ulonglong.m4.
63546
63547 2006-10-10  Bruno Haible  <bruno@clisp.org>
63548
63549         Fix a gcc -Wshadow warning.
63550         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63551         to 'bucket'.
63552         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63553         gl_linked_indexof_from_to): Likewise.
63554         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63555         Likewise.
63556         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63557         Likewise.
63558         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63559         Reported by Eric Blake.
63560
63561 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63562
63563         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63564         for NetBSD.  Problem reported by Bruno Haible.
63565
63566 2006-10-09  Jim Meyering  <jim@meyering.net>
63567
63568         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63569         Patch from Bruno Haible.
63570
63571 2006-10-09  Jim Meyering  <jim@meyering.net>
63572
63573         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63574         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63575         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63576
63577 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63578
63579         Don't include <config.h> twice; this doesn't work in some cases,
63580         e.g., when config.h has "#define intmax_t long long int" and
63581         we include <config.h>, <inttypes.h>, <config.h> in that order.
63582         Problem reported by Matthew Woehlke in:
63583         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63584         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63585         * lib/fts-cycle.c: Don't include config.h.
63586         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63587         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63588         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63589         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63590         inttypes.h.
63591         * lib/xstrtoumax.c: Likewise.
63592         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63593         __strtol and the like, so that this module is more like its siblings.
63594         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63595         Remove; no longer needed now that we assume gnulib inttypes.h.
63596
63597 2006-10-08  Bruno Haible  <bruno@clisp.org>
63598
63599         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63600         option.
63601
63602 2006-10-07  Jim Meyering  <jim@meyering.net>
63603
63604         * modules/inttypes (inttypes.h): Revert what seems to have been
63605         an inadvertent part of today's change: use "|", not "/" in the
63606         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63607
63608 2006-10-07  Bruno Haible  <bruno@clisp.org>
63609
63610         * modules/sublist: New file.
63611
63612 2006-10-07  Bruno Haible  <bruno@clisp.org>
63613
63614         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63615         * modules/argz (argz.h): Likewise.
63616         * modules/arpa_inet (arpa/inet.h): Likewise.
63617         * modules/byteswap (byteswap.h): Likewise.
63618         * modules/configmake (configmake.h): Likewise.
63619         * modules/fcntl (fcntl.h): Likewise.
63620         * modules/fnmatch (fnmatch.h): Likewise.
63621         * modules/getopt (getopt.h): Likewise.
63622         * modules/glob (glob.h): Likewise.
63623         * modules/inttypes (inttypes.h): Likewise.
63624         * modules/netinet_in (netinet/in.h): Likewise.
63625         * modules/poll (poll.h): Likewise.
63626         * modules/stdbool (stdbool.h): Likewise.
63627         * modules/stdint (stdint.h): Likewise.
63628         * modules/sys_select (sys/select.h): Likewise.
63629         * modules/sys_socket (sys/socket.h): Likewise.
63630         * modules/sys_stat (sys/stat.h): Likewise.
63631         * modules/sysexits (sysexits.h): Likewise.
63632         * modules/unistd (unistd.h): Likewise.
63633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63634         Add a "DO NOT EDIT" comment to the generated file.
63635         (func_import): Likewise for gnulib-comp.m4.
63636
63637 2006-10-07  Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/gl_sublist.h: New file.
63640         * lib/gl_sublist.c: New file.
63641
63642 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63645         name (relative to the original working directory) and the file
63646         name component (relative to the temporary working directory).  All
63647         callers changed.
63648         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63649         * lib/mkdir-p.c (make_dir_parents): Likewise.
63650         * lib/mkdir-p.h (make_dir_parents): Likewise.
63651
63652 2006-10-06  Eric Blake  <ebb9@byu.net>
63653
63654         Define several macros for use by the clean-temp module.
63655         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63656         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63657         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63658
63659         * lib/clean-temp.h (close_stream_temp): New declaration.
63660         * lib/clean-temp.c (includes): Pull in headers according to what
63661         other modules are in use.
63662         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63663
63664 2006-10-06  Bruno Haible  <bruno@clisp.org>
63665
63666         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63667         instead of fopen, fwriteerror.
63668
63669 2006-10-06  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63672         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63673         int.
63674         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63675         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63676         Return an error indicator.
63677         Suggested by Eric Blake.
63678
63679 2006-10-06  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63682         Reported by Eric Blake.
63683
63684 2006-10-06  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/closeout (Description): Mention stderr too.
63687
63688 2006-10-06  Bruno Haible  <bruno@clisp.org>
63689         and Paul Eggert  <eggert@cs.ucla.edu>
63690
63691         * lib/closeout.c (close_stdout): Also close stderr.
63692         * lib/closeout.h: Update comment.
63693
63694 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63695
63696         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63697         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63698         * lib/dirchownmod.c: Include lchown.h.
63699         * lib/lchown.c: Don't include files that lchown.h now includes.
63700         Don't declare chown, since lchown.h now does that.
63701         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63702         (lchown): Define to rpl_chown if lchown is declared but
63703         does not exist.  Declare using a prototype if lchown is not
63704         declared.  Add a copyright notice.
63705         * lib/mkstemp.h: Include <unistd.h>.
63706         * lib/openat.c: Include lchown.h.
63707
63708         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63709         we now test for that separately.
63710         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63711         rather than O_NOFOLLOW, when testing whether it's possible to
63712         avoid a race condition reliably.
63713         * lib/savewd.c (savewd_chdir): Likewise.
63714
63715         Remove macros that are no longer needed now that stdint.h is
63716         reliable.
63717         * lib/fsusage.c (UINTMAX_MAX): Remove.
63718         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63719         * lib/utimecmp.c (SIZE_MAX): Remove.
63720
63721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63722
63723         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63724         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63725         O_NOATIME works.
63726
63727 2006-10-05  Bruno Haible  <bruno@clisp.org>
63728
63729         * lib/gl_list.h (gl_sortedlist_search_from_to,
63730         gl_sortedlist_indexof_from_to): New declarations.
63731         (gl_list_implementation): New fields sortedlist_search_from_to,
63732         sortedlist_indexof_from_to.
63733         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63734         inline functions.
63735         * lib/gl_list.c (gl_sortedlist_search_from_to,
63736         gl_sortedlist_indexof_from_to): New functions.
63737         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63738         function.
63739         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63740         (gl_array_sortedlist_search_from_to): New function.
63741         (gl_array_list_implementation): Update.
63742         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63743         function.
63744         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63745         (gl_carray_sortedlist_search_from_to): New function.
63746         (gl_carray_list_implementation): Update.
63747         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63748         gl_linked_sortedlist_indexof_from_to): New functions.
63749         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63750         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63751         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63752         gl_tree_sortedlist_indexof_from_to): New functions.
63753         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63754         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63755         Update.
63756         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63757         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63758         Update.
63759
63760 2006-10-05  Bruno Haible  <bruno@clisp.org>
63761
63762         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63763         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63764         (struct gl_list_implementation): Add fields search_from_to,
63765         indexof_from_to. Remove fields search, indexof.
63766         (gl_list_search): Use the search_from_to method.
63767         (gl_list_search_from, gl_list_search_from_to): New functions.
63768         (gl_list_indexof): Use the indexof_from_to method.
63769         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63770         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63771         (gl_list_search_from, gl_list_search_from_to): New functions.
63772         (gl_list_indexof): Use the indexof_from_to method.
63773         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63774         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63775         gl_array_indexof. Add start_index, end_index arguments.
63776         (gl_array_search_from_to): Renamed from gl_array_search. Add
63777         start_index, end_index arguments.
63778         (gl_array_remove, gl_array_list_implementation): Update.
63779         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63780         gl_carray_indexof. Add start_index, end_index arguments.
63781         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63782         start_index, end_index arguments.
63783         (gl_carray_remove, gl_carray_list_implementation): Update.
63784         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63785         gl_linked_search. Add start_index, end_index arguments.
63786         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63787         start_index, end_index arguments.
63788         (gl_linked_remove): Update.
63789         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63790         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63791         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63792         field to 'size_t'.
63793         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63794         gl_tree_search. Add start_index, end_index arguments.
63795         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63796         start_index, end_index arguments.
63797         (gl_tree_remove): Update.
63798         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63799         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63800         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63801         function.
63802         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63803         gl_tree_search. Add start_index, end_index arguments.
63804         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63805         start_index, end_index arguments.
63806         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63807         Update.
63808         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63809
63810 2006-10-05  Bruno Haible  <bruno@clisp.org>
63811
63812         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63813
63814         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63815         fwriteerror_temp): New declarations.
63816         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63817         (descriptors): New variable.
63818         (cleanup): First, close the descriptors.
63819         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63820         fclose_temp, fwriteerror_temp): New functions.
63821
63822 2006-10-04  Jim Meyering  <jim@meyering.net>
63823
63824         * lib/fts.c (fts_open): Tiny comment change.
63825
63826 2006-10-04  Bruno Haible  <bruno@clisp.org>
63827
63828         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63830         gl_LOCK_BODY.
63831         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63832         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63833         gl_LOCK_EARLY_BODY.
63834         (gl_LOCK): Require gl_LOCK_BODY.
63835
63836 2006-10-04  Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63839         (gl_oset_search_atleast): New declaration.
63840         (struct gl_oset_implementation): Add field 'search_atleast'.
63841         (gl_oset_search_atleast): New inline function.
63842         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63843         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63844         (gl_array_oset_implementation): Update.
63845         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63846         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63847         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63848
63849 2006-10-04  Bruno Haible  <bruno@clisp.org>
63850
63851         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63852
63853 2006-10-03  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63856         from gl_avltreehash_list_implementation.
63857
63858 2006-10-03  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/gl_oset.c (gl_oset_add): Fix return type.
63861
63862 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63863
63864         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63865
63866 2006-10-02  Eric Blake  <ebb9@byu.net>
63867
63868         * modules/strnlen (Depends-on): Add extensions.
63869
63870 2006-10-02  Eric Blake  <ebb9@byu.net>
63871
63872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63873         definition in 2.60+.
63874
63875 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63876
63877         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63878         checks.
63879
63880 2006-10-02  Bruno Haible  <bruno@clisp.org>
63881
63882         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63883         to the AUTOMAKE_OPTIONS.
63884         Reported by Jim Meyering.
63885
63886 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         Work around bug in Solaris 10 /proc file system:
63889         /proc/self/fd/NNN/.. isn't the parent directory of
63890         the directory whose file descriptor is NNN.  This needs to
63891         be worked around at run time, not compile time, since a
63892         program might be built on Solaris 8, where things work, and
63893         run on Solaris 10.
63894         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63895         to use the following interface instead:
63896         (OPENAT_BUFFER_SIZE): New macro.
63897         (openat_proc_name): New function.
63898         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63899         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63900         Likewise.
63901         * lib/openat-proc.c: New file.
63902         * modules/openat (Files): Add lib/openat-proc.c.
63903         (Depends-on): Add same-inode, stdbool.
63904         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63905
63906 2006-09-29  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63909         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63910         argument. Set stdout_closed before testing for ferror, not after.
63911         (fwriteerror, fwriteerror_no_ebadf): New functions.
63912
63913 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63914
63915         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63916
63917 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63918
63919         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63920         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63921
63922 2006-09-28  Jim Meyering  <jim@meyering.net>
63923
63924         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63925         Include <unistd.h>.
63926
63927 2006-09-28  Bruno Haible  <bruno@clisp.org>
63928
63929         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63930         * modules/linkedhash-list (Depends-on): Likewise.
63931         * modules/rbtreehash-list (Depends-on): Likewise.
63932
63933 2006-09-28  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/strndup.h: Simplify the redefinition of strndup.
63936         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63937         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63938
63939 2006-09-28  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63942         * lib/gl_linkedhash_list.c: Likewise.
63943         * lib/gl_rbtreehash_list.c: Likewise.
63944
63945 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63948         getaddrinfo.
63949
63950         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63951         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63952         it causes <stdio_ext.h> to cause a compile-time error.
63953         Problem reported by Nelson H. F. Beebe.
63954         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63955         of HAVE_DECL___PENDING.
63956
63957         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63959         declaration.
63960
63961 2006-09-27  Jim Meyering  <jim@meyering.net>
63962
63963         This file could end up with a definition for a function
63964         named __strndup, rather than rpl_strndup on a system with
63965         incomplete weak_alias support.
63966         * lib/strndup.c (strndup): Rename from __strndup.
63967         Remove #defines that used to map __strndup to strndup.
63968         Don't use K&R prototypes.
63969         Remove LIBC-related code, since this file is not sync'd with glibc.
63970         * lib/strndup.h: Revamp, accordingly.
63971         * m4/strndup.m4: Modernize.
63972
63973 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63974
63975         * modules/savewd (Depends-on): Add 'raise'.
63976         * lib/savewd.c: Include <signal.h>, for 'raise'.
63977
63978 2006-09-26  Jim Meyering  <jim@meyering.net>
63979
63980         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63981         when we detect Darwin 8.7.0's acl_get_file bug.
63982         Rearrange to perform the new (below) run-test while $LIBS
63983         contains any acl-related library.  Set USE_ACL at the end.
63984         (gl_ACL_GET_FILE): New function.
63985
63986 2006-09-26  Eric Blake  <ebb9@byu.net>
63987
63988         * lib/verror.c: Include <config.h> unconditionally.
63989
63990 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * modules/clock-time (Maintainer): Add self.
63993         * modules/getlogin_r (Depends-on): Add extensions.
63994
63995 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63996
63997         * modules/clock-time: New module.
63998         * modules/nanosleep (Depends-on): Add clock-time.
63999         * modules/gethrxtime (Depends-on): Likewise.
64000         * modules/gettime (Depends-on): Likewise.
64001         * modules/settime (Depends-on): Likewise.
64002
64003         * modules/fts-lgpl: Depend on openat.
64004         * modules/mkancesdirs: Depend on savewd.
64005         * modules/mkdir-p: Likewise.
64006
64007 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64008
64009         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64010
64011         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64012         `gl_have_arbitrary_file_name_length_limit' to
64013         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64014         actually works between configure runs.
64015
64016 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64017             Bruno Haible  <bruno@clisp.org>
64018
64019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64020
64021 2006-09-25  Jim Meyering  <jim@meyering.net>
64022
64023         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64024         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64025
64026 2006-09-25  Eric Blake  <ebb9@byu.net>
64027
64028         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64029         exec's in 2006-09-18 patch when shuffling fds.
64030
64031 2006-09-25  Bruno Haible  <bruno@clisp.org>
64032
64033         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64034         Reported by Jim Meyering.
64035
64036 2006-09-24  Jim Meyering  <jim@meyering.net>
64037
64038         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64039         compare a pointer against a literal "0".  That caused failures with
64040         at least HP-UX's hpcc.
64041
64042 2006-09-22  Simon Josefsson  <jas@extundo.com>
64043
64044         * modules/gc-sha1:
64045         * modules/gc-md4:
64046         * modules/gc-hmac-sha1:
64047         * modules/gc-hmac-md5:
64048         * modules/gc-des:
64049         * modules/gc-arcfour: Distribute more files.
64050
64051 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64052
64053         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64054         (gl_linked_iterator_from_to): Initialize struct completely.
64055         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64056         (gl_tree_iterator_from_to): Likewise
64057         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64058         * lib/gl_array_list.c [lint] (gl_array_iterator)
64059         (gl_array_iterator_from_to): Likewise.
64060         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64061         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64062         (gl_carray_iterator_from_to): Likewise.
64063
64064         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64065         * lib/md4.c (md4_process_block): Remove unused variable.
64066         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64067         parentheses for clarity.
64068
64069 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64070
64071         * modules/bison-i18n (Depends-on): Add gettext.
64072
64073 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64074
64075         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64076         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64077         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64078         also add missing comma that caused broken test.
64079         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64080         stdlib.h, for `abort'.
64081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64082         variables.
64083         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64084         include unistd.h if present, for `rmdir'.
64085         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64086         variables.
64087         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64088         in the process include standard headers for prototypes.
64089         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64090         gets declared on GNU/Linux.
64091         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64092         unistd.h, for `rmdir'.
64093         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64094
64095         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64096         always true.
64097         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64098
64099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64100
64101 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         * gnulib-tool (func_version): Create output all at once.  This
64104         may help avoid triggering unnecessary SIGPIPEs, and at any
64105         rate it doesn't hurt.
64106
64107 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64108             Bruno Haible  <bruno@clisp.org>
64109
64110         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64111         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64112         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64113
64114         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64115         (gl_FUNC_VASPRINTF): Invoke it.
64116
64117 2006-09-22  Bruno Haible  <bruno@clisp.org>
64118
64119         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64120         getloadavg.c as first argument.
64121
64122 2006-09-22  Bruno Haible  <bruno@clisp.org>
64123
64124         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64125         at the beginning of the gl_INIT macro.
64126         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64127         gl_GETLOADAVG.
64128
64129 2006-09-22  Bruno Haible  <bruno@clisp.org>
64130
64131         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64132         module.
64133         Suggested by Ralf Wildenhues.
64134
64135 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         Import this patch from libc:
64138
64139         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64140
64141         * lib/regex_internal.c (re_string_reconstruct): Handle
64142         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64143         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64144         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64145         re_string_context_at.
64146
64147         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64148         now requires it.
64149         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64150         gl_REGEX now does it for us.
64151         (gl_REGEX): Add test taken from
64152         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64153
64154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64155         Check that large offsets work.  Modernize Autoconf usages.
64156         Prefer "yes" to mean a good thing rather than a bad.
64157         Don't put "#define mkstemp" in config.h, as this might interfere
64158         with standard system headers that "#define mkstemp mkstemp64".
64159
64160         * modules/mkstemp (Depends-on): Add extensions, so that
64161         mkstemp is visible on some platforms.
64162         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64163         (Include): Change to "mkstemp.h" from <stdlib.h>.
64164         (Files): Add mkstemp.h.
64165
64166         * lib/mkstemp.h: New file, since some standard headers
64167         #define mkstemp.
64168         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64169         Include "mkstemp.h".
64170         Make the _LIBC code resemble glibc original more,
64171         e.g., use K&R style.
64172         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64173         (mkstemp): Remove, since mkstemp.h does this for us.
64174         * lib/stdlib--.h: Include mkstemp.h.
64175
64176         Import this patch from libc:
64177
64178         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64179
64180         * lib/tempname.c (__gen_tempname): Change attempts_min
64181         into a macro.  Use preprocessor to decide how to initialize
64182         attempts [Coverity CID 67].
64183
64184 2006-09-20  Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/mkdtemp.c: Import from libc.
64187         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64188                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64189                 attempts_min into a macro.  Use preprocessor to decide how to
64190                 initialize attempts [Coverity CID 67].
64191         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64192                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64193                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64194
64195 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64196
64197         * gnulib-tool (func_exit): New function, to allow to pass the
64198         exit status portably through the trap.  Use everywhere.
64199         (--help, --version): Signal a write error.
64200         (trap): catch SIGPIPE, for write errors.
64201         Exit at the end of the trap, with the correct exit status.
64202
64203 2006-09-19  Karl Berry  <karl@gnu.org>
64204
64205         * doc/gnulib.texi: note about the license texinfo files.
64206
64207 2006-09-19  Eric Blake  <ebb9@byu.net>
64208
64209         * gnulib-tool: Avoid space-tab.
64210
64211 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64214         that prevented coreutils 6.1 from building.  Problem reported
64215         by Petter Reinholdtsen.
64216
64217 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * gnulib-tool (avoidlist): Fix typo that broke options like
64220         --avoid=lock that are used by coreutils bootstrap.
64221
64222 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64223
64224         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64225         more systematically.
64226
64227 2006-09-18  Jim Meyering  <jim@meyering.net>
64228
64229         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64230
64231 2006-09-18  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64234
64235 2006-09-18  Bruno Haible  <bruno@clisp.org>
64236
64237         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64238         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64239         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64240         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64241         * m4/gettext.m4: Require autoconf >= 2.52.
64242         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64243         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64244         of gl_cv_header_inttypes_h.
64245
64246 2006-09-18  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/javaversion.c: Include configmake.h.
64249
64250 2006-09-18  Bruno Haible  <bruno@clisp.org>
64251
64252         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64253         avoid that the while loops be executed in a subshell.
64254
64255 2006-09-18  Bruno Haible  <bruno@clisp.org>
64256
64257         * MODULES.html.sh (func_module): Break long lines.
64258         Suggested by Bruce Korb <bkorb@gnu.org>.
64259
64260 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64261
64262         Speed up by a factor of 1.12.
64263         * gnulib-tool (nl): New variable.
64264         (func_import): Rewrite include directive extraction to only read each
64265         directive once.
64266
64267 2006-09-17  Bruno Haible  <bruno@clisp.org>
64268
64269         * modules/javaversion (Makefile.am): Remove DEFS setting.
64270         (Depends-on): Add configmake, for PKGDATADIR definition.
64271
64272 2006-09-17  Bruno Haible  <bruno@clisp.org>
64273
64274         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64275
64276 2006-09-17  Bruno Haible  <bruno@clisp.org>
64277
64278         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64279         (func_modules_transitive_closure, func_modules_add_dummy,
64280         func_modules_to_filelist, func_import, func_create_testdir,
64281         func_create_megatestdir, ...): Use it wherever possible.
64282         Suggested by Ralf Wildenhues.
64283
64284 2006-09-16  Karl Berry  <karl@gnu.org>
64285
64286         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64287         to avoid sectioning errors.
64288         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64289         [ifinfo]: blank line after @center-ed titles.
64290         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64291         Spell FSF address consistently with others.
64292         (These changes approved by rms.)
64293
64294 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64295
64296         Speed up by a factor of 1.61.
64297         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64298         already checked module names again.
64299
64300 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64301
64302         Speed up by a factor of 1.13.
64303         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64304         for new_files, and the input to func_add_or_update.
64305
64306 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64307
64308         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64309         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64310
64311 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * modules/mkancesdirs (Depends-on): Add fcntl.
64314         * modules/savewd: New file.
64315         * MODULES.html.sh (File system functions): Add savewd.
64316
64317         * modules/configmake (Makefile.am): Add support for the
64318         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64319
64320 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * m4/savewd.m4: New file.
64323
64324 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64325
64326         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64327         (dirchownmod): New arg FD.  All callers changed.
64328         Use FD rather than opening the directory ourself, as opening is
64329         now the caller's responsibility.
64330         * lib/dirchownmod.h: Likewise.
64331         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64332         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64333         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64334         (test_dir): Remove.
64335         (mkancesdirs): Return length of prefix of FILE that has already
64336         been made, or -2 if there is a child doing the work.  Redo
64337         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64338         ".", and treat ".." specially since it might stray back into
64339         already-created areas.  Use a subprocess if necessary.  New arg
64340         WD; all users changed.  MAKE_DIR function should now return 1
64341         if it creates a directory that is not readable.  Return -2 if
64342         a child process is spun off.
64343         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64344         Adjust signature to match code.
64345         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64346         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64347         all users changed.
64348         * lib/savewd.c, lib/savewd.h: New files.
64349
64350 2006-09-15  Jim Meyering  <jim@meyering.net>
64351
64352         * modules/rename-dest-slash: New module.
64353         * MODULES.html.sh (posix_compat): Add it here.
64354
64355         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64356
64357 2006-09-15  Jim Meyering  <jim@meyering.net>
64358
64359         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64360         file.
64361
64362         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64363
64364 2006-09-15  Jim Meyering  <jim@meyering.net>
64365
64366         * lib/rename-dest-slash.c (has_trailing_slash): Use
64367         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64368         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64369         test before testing whether SRC is a directory.
64370         Suggestions from Bruno Haible.
64371
64372         Avoid a warning about an unused variable.
64373         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64374         into the #ifdef block where it's used.
64375
64376         * lib/rename-dest-slash.c: New file.
64377
64378 2006-09-14  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/allocsa.c: Include <config.h> unconditionally.
64381         * lib/asnprintf.c: Likewise.
64382         * lib/asprintf.c: Likewise.
64383         * lib/c-strcasecmp.c: Likewise.
64384         * lib/c-strcasestr.c: Likewise.
64385         * lib/c-strncasecmp.c: Likewise.
64386         * lib/c-strstr.c: Likewise.
64387         * lib/classpath.c: Likewise.
64388         * lib/clean-temp.c: Likewise.
64389         * lib/concatpath.c: Likewise.
64390         * lib/copy-file.c: Likewise.
64391         * lib/csharpcomp.c: Likewise.
64392         * lib/csharpexec.c: Likewise.
64393         * lib/execute.c: Likewise.
64394         * lib/fatal-signal.c: Likewise.
64395         * lib/findprog.c: Likewise.
64396         * lib/fwriteerror.c: Likewise.
64397         * lib/gl_array_list.c: Likewise.
64398         * lib/gl_array_oset.c: Likewise.
64399         * lib/gl_avltree_list.c: Likewise.
64400         * lib/gl_avltree_oset.c: Likewise.
64401         * lib/gl_avltreehash_list.c: Likewise.
64402         * lib/gl_carray_list.c: Likewise.
64403         * lib/gl_linked_list.c: Likewise.
64404         * lib/gl_linkedhash_list.c: Likewise.
64405         * lib/gl_list.c: Likewise.
64406         * lib/gl_oset.c: Likewise.
64407         * lib/gl_rbtree_list.c: Likewise.
64408         * lib/gl_rbtree_oset.c: Likewise.
64409         * lib/gl_rbtreehash_list.c: Likewise.
64410         * lib/imaxabs.c: Likewise.
64411         * lib/imaxdiv.c: Likewise.
64412         * lib/javacomp.c: Likewise.
64413         * lib/javaexec.c: Likewise.
64414         * lib/javaversion.c: Likewise.
64415         * lib/linebreak.c: Likewise.
64416         * lib/localcharset.c: Likewise.
64417         * lib/lock.c: Likewise.
64418         * lib/mbchar.c: Likewise.
64419         * lib/mbswidth.c: Likewise.
64420         * lib/mkdtemp.c: Likewise.
64421         * lib/pipe.c: Likewise.
64422         * lib/printf-args.c: Likewise.
64423         * lib/printf-parse.c: Likewise.
64424         * lib/progname.c: Likewise.
64425         * lib/progreloc.c: Likewise.
64426         * lib/readlink.c: Likewise.
64427         * lib/sh-quote.c: Likewise.
64428         * lib/stpcpy.c: Likewise.
64429         * lib/stpncpy.c: Likewise.
64430         * lib/strcasecmp.c: Likewise.
64431         * lib/strcasestr.c: Likewise.
64432         * lib/strcspn.c: Likewise.
64433         * lib/striconv.c: Likewise.
64434         * lib/strncasecmp.c: Likewise.
64435         * lib/strnlen1.c: Likewise.
64436         * lib/strstr.c: Likewise.
64437         * lib/strtok_r.c: Likewise.
64438         * lib/tls.c: Likewise.
64439         * lib/tmpdir.c: Likewise.
64440         * lib/unicodeio.c: Likewise.
64441         * lib/unsetenv.c: Likewise.
64442         * lib/vasnprintf.c: Likewise.
64443         * lib/vasprintf.c: Likewise.
64444         * lib/wait-process.c: Likewise.
64445         * lib/xallocsa.c: Likewise.
64446         * lib/xsetenv.c: Likewise.
64447         * lib/xstriconv.c: Likewise.
64448
64449 2006-09-13  Simon Josefsson  <jas@extundo.com>
64450
64451         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64452         that internally, suggested by Ralf Wildenhues
64453         <Ralf.Wildenhues@gmx.de>.
64454
64455 2006-09-13  Simon Josefsson  <jas@extundo.com>
64456
64457         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64458         @LIBOBJS@.
64459         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64460
64461 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64464         longer worry about uses that don't define HAVE_CONFIG_H.
64465         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64466         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64467         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64468         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64469         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64470         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64471         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64472         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64473         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64474         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64475         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64476         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64477         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64478         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64479         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64480         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64481         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64482         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64483         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64484         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64485         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64486         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64487         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64488         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64489         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64490         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64491         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64492         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64493         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64494         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64495         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64496         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64497         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64498         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64499         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64500         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64501         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64502         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64503         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64504         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64505         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64506         Likewise.
64507
64508 2006-09-13  Eric Blake  <ebb9@byu.net>
64509
64510         * lib/getopt.c: Fix typo in last commit.
64511
64512 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64513
64514         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64515         dgettext.
64516
64517 2006-09-12  Jim Meyering  <jim@meyering.net>
64518
64519         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64520         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64521         Reported by Nelson H. F. Beebe.
64522
64523 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64524
64525         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64526         program_invocation_name and program_invocation_short_name are
64527         initialized.
64528         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64529         and program_invocation_short_name to argp.h, so they are visible
64530         to user programs.
64531         * lib/argp.h: Likewise
64532
64533 2006-09-10  Bruno Haible  <bruno@clisp.org>
64534
64535         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64536         m4/inttypes_h.m4, m4/uintmax_t.m4.
64537
64538 2006-09-10  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64541         gl_AC_TYPE_UINTMAX_T.
64542
64543 2006-09-10  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64546
64547 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64548
64549         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64550         convention.  Text proposed by Bruno Haible.
64551         (struct argp_option): Document the use of N_() wrappers.
64552
64553         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64554         '\v', and translate the two parts separately, instead of feeding
64555         the whole string to gettext.  This allows to exclude
64556         '\v' from the strings visible to the translator by writing doc
64557         strings as N_("..") "\v" N_("..").
64558
64559 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * config/srclist.txt: Undo latest change; the bug was fixed.
64562
64563 2006-09-09  Bruno Haible  <bruno@clisp.org>
64564
64565         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64566         assignments if building a library without libtool.
64567         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64568         in func_emit_lib_Makefile_am.
64569         (func_import): When building a static library libfoo.a, arrange to
64570         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64571         (func_create_testdir): Likewise.
64572         * modules/gc (configure.ac, Makefile.am): If building statically,
64573         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64574         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64575         * modules/striconv (configure.ac, Makefile.am): Likewise.
64576         Based on a suggestion by Ralf Wildenhues.
64577
64578 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64579
64580         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64581         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64582         Also:
64583
64584         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64585         Add year_2050_test to catch glibc bug 2821
64586         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64587
64588         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64589         Prefer #ifdef to #if.
64590
64591         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64592         Return from 'main' instead of calling 'exit'.
64593
64594 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64597         returned the maximum time_t value rather than (time_t) -1.
64598         Problem originally reported by William Bardwell
64599         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64600
64601         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64602         Moved to here ...
64603         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64604         ... from here.
64605
64606 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64609         2821 is fixed.
64610
64611 2006-09-08  Jim Meyering  <jim@meyering.net>
64612
64613         Don't make generated files read-only.  That would bother too many
64614         people.  However, do retain the ability to work when targets are
64615         read-only: remove the destination and temporary files before writing
64616         them (when generated via sed or echo), or by using the -f option for
64617         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64618         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64619         * modules/byteswap, modules/configmake, modules/fcntl:
64620         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64621         * modules/localcharset, modules/netinet_in, modules/poll:
64622         * modules/stdbool, modules/stdint, modules/sys_select:
64623         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64624
64625 2006-09-08  Jim Meyering  <jim@meyering.net>
64626
64627         Avoid new build failure on FreeBSD 6.0.
64628         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64629         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64630         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64631
64632 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64633
64634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64635
64636 2006-09-07  Jim Meyering  <jim@meyering.net>
64637
64638         Fix global typo in last change: use chmod u-w, not chmod u-x.
64639         Spotted by Paul Eggert and Bruce Korb.
64640         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64641         * modules/byteswap, modules/configmake, modules/fcntl:
64642         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64643         * modules/localcharset, modules/netinet_in, modules/poll:
64644         * modules/stdbool, modules/stdint, modules/sys_select:
64645         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64646
64647 2006-09-06  Jim Meyering  <jim@meyering.net>
64648
64649         Make generated files be read-only.
64650         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64651         Ensure that each generated file is now read-only.
64652         * modules/argz: Likewise.
64653         * modules/arpa_inet: Likewise.
64654         * modules/byteswap: Likewise.
64655         * modules/configmake: Likewise.
64656         * modules/fcntl: Likewise.
64657         * modules/fnmatch: Likewise.
64658         * modules/getopt: Likewise.
64659         * modules/glob: Likewise.
64660         * modules/inttypes: Likewise.
64661         * modules/netinet_in: Likewise.
64662         * modules/poll: Likewise.
64663         * modules/stdbool: Likewise.
64664         * modules/stdint: Likewise.
64665         * modules/sys_select: Likewise.
64666         * modules/sys_socket: Likewise.
64667         * modules/sys_stat: Likewise.
64668         * modules/sysexits: Likewise.
64669         * modules/localcharset: Same as above, but continue using temporary
64670         file named "t-$@" (why different?) rather than the "$@-t" used
64671         everywhere else.
64672
64673         * modules/sysexits (Makefile.am): Replace literal occurrences
64674         of "sysexit.h" more readable, and more consistent, "$@".
64675
64676 2006-09-06  Bruno Haible  <bruno@clisp.org>
64677
64678         * modules/striconv: New file.
64679         * modules/xstriconv: New file.
64680         * MODULES.html.sh (Internationalization functions): Add striconv,
64681         xstriconv.
64682
64683 2006-09-06  Bruno Haible  <bruno@clisp.org>
64684
64685         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64686         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64687         not using libtool correctly.
64688
64689 2006-09-06  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/striconv.h: New file.
64692         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64693         iconvstring.c.
64694         * lib/xstriconv.h: New file.
64695         * lib/xstriconv.c: New file.
64696
64697 2006-09-06  Bruno Haible  <bruno@clisp.org>
64698
64699         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64700         lib_..._LDFLAGS.
64701
64702 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64703
64704         * lib/argz_.h: Sync from Libtool.
64705
64706         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64707                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64708
64709         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64710
64711 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64712
64713         * modules/trim: New file.
64714
64715 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64716
64717         * lib/trim.h: New file.
64718         * lib/trim.c: New file.
64719
64720 2006-09-05  Bruno Haible  <bruno@clisp.org>
64721
64722         * MODULES.html.sh (String handling): Add trim.
64723
64724 2006-09-04  Karl Berry  <karl@gnu.org>
64725
64726         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64727         until next release.
64728
64729 2006-09-03  Bruno Haible  <bruno@clisp.org>
64730
64731         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64732         correctly.
64733
64734 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64737         not gl_GETLOADAVG.  Omit unneeded semicolons.
64738         Problems reported by Ralf Wildenhues in
64739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64740         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64741         at the end, which is the usual gnulib style.
64742
64743         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64744         of doing all the work ourselves.
64745         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64746         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64747
64748 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64751         Problem reported by Ralf Wildenhues in
64752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64753
64754         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64755         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64756
64757 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64760         yesterday's patch by changing test -n to test -z.
64761
64762 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64765         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64766         the former is now obsolescent.
64767
64768         * modules/chdir-long (Depends-on): Add fcntl.
64769
64770 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64773         obsolescent, and programs should use gnulib instead.
64774         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64775         but with prefixes changed.
64776
64777 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64780         or stdbool.h, because they might not exist while configuring.
64781
64782         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64783         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64784         does that for us.
64785         (O_DIRECTORY): Remove.
64786
64787 2006-08-31  Eric Blake  <ebb9@byu.net>
64788
64789         * gnulib-tool: Don't let emacs change spaces to TAB.
64790
64791 2006-08-31  Bruno Haible  <bruno@clisp.org>
64792
64793         * gnulib-tool: When calling func_import more than once, do it in a
64794         subshell.
64795         Reported by Eric Blake <ebb9@byu.net>.
64796
64797 2006-08-31  Bruno Haible  <bruno@clisp.org>
64798
64799         * gnulib-tool (nl): Remove variable.
64800         (sed_transform_lib_file): Use more robust test for config-h module.
64801         (func_import): Fix typo in 2006-08-25 patch.
64802
64803 2006-08-31  Bruno Haible  <bruno@clisp.org>
64804
64805         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64806         specified, augment Makefile.am variables instead of assigning them.
64807
64808 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         Work around a bug in both the Linux and SunOS 64-bit kernels:
64811         nanosleep mishandles sleeps for longer than 2**31 seconds.
64812         Problem reported by Frank v Waveren in
64813         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64815         Check for nanosleep bug.
64816         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64817
64818 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         Work around a bug in both the Linux and SunOS 64-bit kernels:
64821         nanosleep mishandles sleeps for longer than 2**31 seconds.
64822         Problem reported by Frank v Waveren in
64823         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64824         * lib/nanosleep.c (BILLION): New constant.
64825         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64826         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64827         implementation.
64828
64829 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * modules/nanosleep (Depends-on): Add gettime.
64832
64833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64834         and Simon Josefsson  <jas@extundo.com>
64835         and Oskar Liljeblad  <oskar@osk.mine.nu>
64836
64837         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64838         * gnulib-tool (func_import): New license type 'unmodifiable license
64839         text'.
64840         * modules/fdl: Use it.  Longer description.
64841         * module/gpl, module/lgpl: New files.
64842
64843 2006-08-30  Jim Meyering  <jim@meyering.net>
64844
64845         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64846         shadowing the parameter.
64847
64848 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64849
64850         Sync from Libtool:
64851
64852         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64853
64854         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64855         sharing with gnulib.  Report by Eric Blake.
64856
64857 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * modules/isapipe: New file.
64860         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64861
64862 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * modules/configmake (Makefile.am): Add a comment, and omit
64865         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64866         by Bruno Haible.
64867
64868 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * m4/isapipe.m4: New file.
64871
64872 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * lib/isapipe.c, lib/isapipe.h: New files.
64875
64876 2006-08-29  Jim Meyering  <jim@meyering.net>
64877
64878         * modules/configmake (Makefile.am): Make configmake.h depend on
64879         Makefile.  Otherwise, a stale configmake.h could hang around.
64880
64881 2006-08-29  Eric Blake  <ebb9@byu.net>
64882
64883         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64884         resolution of upstream bug 3044.
64885
64886 2006-08-29  Bruno Haible  <bruno@clisp.org>
64887
64888         * modules/localcharset (Depends-on): Add configmake.
64889         (Makefile.am): Remove setting of LIBDIR through DEFS.
64890
64891 2006-08-29  Bruno Haible  <bruno@clisp.org>
64892
64893         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64894         defined.
64895
64896 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64897
64898         * modules/fcntl: New file.
64899         * modules/chdir-safer (Depends-on): Add fcntl.
64900         * modules/fts: Likewise.
64901         * modules/mkdir-p: Likewise.
64902
64903         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64904         This undoes the most recent change, since we're now addressing the
64905         problem in a different way.
64906
64907         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64908         into output, since the output might be called Makefile.am even
64909         if $makefile_name is something different.
64910         (func_import): Use $makefile_am rather than
64911         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64912         empty.
64913
64914         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64915
64916 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64919         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64920         recent change to stdint.m4, since we're now addressing the problem in a
64921         different way.
64922
64923 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * m4/fcntl_h.m4: New file.
64926
64927 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * lib/fcntl_.h: New file.
64930         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64931         the fcntl module.
64932         * lib/dirchownmod.c: Likewise.
64933         * lib/fts.c: Likewise.
64934
64935         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64936         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64937         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64938         just before including <inttypes.h>, to avoid circular inclusion.
64939
64940 2006-08-28  Jim Meyering  <jim@meyering.net>
64941
64942         * doc/visibility.texi: Actually read and correct the grammar of the
64943         sentence affected by yesterday's change.
64944
64945 2006-08-28  Eric Blake  <ebb9@byu.net>
64946
64947         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64948         needs wrapper.
64949
64950 2006-08-28  Eric Blake  <ebb9@byu.net>
64951
64952         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64953
64954 2006-08-28  Eric Blake  <ebb9@byu.net>
64955
64956         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64957
64958 2006-08-28  Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/c-strstr: New file, from GNU gettext.
64961         * MODULES.html.sh (String handling): Add c-strstr.
64962
64963 2006-08-28  Bruno Haible  <bruno@clisp.org>
64964
64965         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64966         macros.
64967         Reported by Eric Blake.
64968
64969 2006-08-28  Bruno Haible  <bruno@clisp.org>
64970
64971         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64972         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64973         * lib/vasprintf.c: Include errno.h, limits.h.
64974         (EOVERFLOW): New fallback definition.
64975         (vasprintf): Test here whether the string length is > INT_MAX.
64976         * lib/vsnprintf.c: Include errno.h, limits.h.
64977         (EOVERFLOW): New fallback definition.
64978         (vsnprintf): Fix bug when generated string was too long for the buffer.
64979         Test here whether the string length is > INT_MAX.
64980
64981 2006-08-28  Bruno Haible  <bruno@clisp.org>
64982
64983         * lib/inttypes_.h (SCNX*): Remove definitions.
64984         Reported by Eric Blake.
64985
64986 2006-08-28  Bruno Haible  <bruno@clisp.org>
64987
64988         * lib/c-strstr.h: New file, from GNU gettext.
64989         * lib/c-strstr.c: New file, from GNU gettext.
64990
64991 2006-08-28  Bruno Haible  <bruno@clisp.org>
64992
64993         * gnulib-tool: Reorder some statements.
64994
64995 2006-08-28  Bruno Haible  <bruno@clisp.org>
64996
64997         * gnulib-tool: New option --makefile-name.
64998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64999         $makefile_name.
65000         (func_import): Write $makefile_name to the cache file, and read it from
65001         there unless explicitly specified. Use $makefile_name as file name
65002         instead of Makefile.am. Adjust the recommendations accordingly.
65003
65004 2006-08-28  Bruno Haible  <bruno@clisp.org>
65005
65006         * gnulib-tool (func_verify_module): Check against misapplying patch.
65007
65008 2006-08-28  Bruno Haible  <bruno@clisp.org>
65009
65010         * gnulib-tool (func_relativize, func_relconcat): New functions.
65011         Give an error if --local-dir is given with --update.
65012         Remove trailing slashes from $local_gnulib_dir.
65013         (func_import): Store the relativized $local_gnulib_dir in
65014         gnulib-cache.m4, and read it from there if not specified explicitly.
65015
65016 2006-08-28  Bruno Haible  <bruno@clisp.org>
65017
65018         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65019         is the current directory. Respect also $local_gnulib_dir.
65020
65021 2006-08-28  Bruno Haible  <bruno@clisp.org>
65022             Simon Josefsson  <jas@extundo.com>
65023
65024         BeOS portability.
65025         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65026
65027 2006-08-27  Jim Meyering  <jim@meyering.net>
65028
65029         * doc/visibility.texi: Remove duplicate word: "pointer".
65030
65031 2006-08-26  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65034         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65035         (Makefile.am): Create inttypes.h from inttypes_.h.
65036         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65037
65038         * modules/imaxabs: New file.
65039
65040         * modules/imaxdiv: New file.
65041
65042 2006-08-26  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/inttypes.m4: New file.
65045         * m4/_inttypes_h.m4: Remove file.
65046         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65047         PRI_MACROS_BROKEN.
65048         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65049
65050         * m4/imaxabs.m4: New file.
65051
65052         * m4/imaxdiv.m4: New file.
65053
65054 2006-08-26  Bruno Haible  <bruno@clisp.org>
65055
65056         * lib/inttypes_.h: New file.
65057         * lib/inttypes.h: Remove file.
65058         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65059
65060         * lib/imaxabs.c: New file.
65061
65062         * lib/imaxdiv.c: New file.
65063
65064 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         New config-h module, so that "make" output needn't be cluttered
65067         by -DHAVE_CONFIG_H.
65068         * MODULES.html.sh (Support for building libraries and executables):
65069         Add config-h.
65070         * modules/config-h: New file.
65071         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65072         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65073         the config-h module is used.
65074
65075         New configmake module, so that "make" output needn't be cluttered
65076         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65077         * MODULES.html.sh (Support for building libraries and executables):
65078         Add configmake.
65079         * modules/configmake: New file.
65080
65081 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65082
65083         * m4/config-h.m4: New file.
65084
65085 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * config/srclist.txt: Add elisp-comp.
65088
65089 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * MODULES.html.sh (Support for building libraries and executables):
65092         Add elisp-comp.
65093         * build-aux/elisp-comp: New file.
65094         * modules/elisp-comp: New file.
65095
65096 2006-08-24  Bruno Haible  <bruno@clisp.org>
65097
65098         * gnulib-tool (func_create_testdir): Use non-default values of
65099         sourcebase and m4base.
65100
65101 2006-08-24  Bruno Haible  <bruno@clisp.org>
65102
65103         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65104         HTML structure.
65105
65106 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * modules/openat (Depends-on): Add lchown.
65109
65110 2006-08-23  Bruno Haible  <bruno@clisp.org>
65111
65112         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65113         of gl_LOCK_EARLY instead of gl_LOCK.
65114
65115 2006-08-23  Bruno Haible  <bruno@clisp.org>
65116
65117         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65118         on OSF/1 to no.
65119         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65120
65121 2006-08-23  Bruno Haible  <bruno@clisp.org>
65122
65123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65124         as unusable.
65125
65126         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65127         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65128         (gl_LOCK): New macro.
65129
65130 2006-08-22  Simon Josefsson  <jas@extundo.com>
65131
65132         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65133         to md5 module.
65134
65135 2006-08-22  Simon Josefsson  <jas@extundo.com>
65136
65137         * MODULES.html.sh: Add "Support for maintaining and release
65138         projects".
65139
65140         * build-aux/gnupload: New file, from coreutils.
65141
65142 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         Avoid the need for AC_LIBSOURCES in m4 macros.
65145         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65146         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65147         * modules/check-version (EXTRA_DIST): Add check-version.h.
65148         * modules/crc (EXTRA_DIST): Add crc.h.
65149         * modules/des (EXTRA_DIST): Add des.h.
65150         * modules/gc (EXTRA_DIST): Add gc.h.
65151         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65152         * modules/getline (EXTRA_DIST): Add getline.h.
65153         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65154         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65155         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65156         * modules/md2 (EXTRA_DIST): Add md2.h.
65157         * modules/md4 (EXTRA_DIST): Add md4.h.
65158         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65159         * modules/read-file (EXTRA_DIST): Add read-file.h.
65160         * modules/readline (EXTRA_DIST): Add readline.h.
65161         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65162         rijndael-api-fst.h.
65163
65164 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65165
65166         * m4/rijndael.m4 (gl_ARCFOUR):
65167         * m4/arctwo.m4 (gl_ARCTWO):
65168         * m4/check-version.m4 (gl_CHECK_VERSION):
65169         * m4/crc.m4 (gl_CRC):
65170         * m4/des.m4 (gl_DES):
65171         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65172         * m4/gc.m4 (gl_GC):
65173         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65174         * m4/getline.m4 (gl_FUNC_GETLINE):
65175         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65176         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65177         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65178         * m4/md2.m4 (gl_MD2):
65179         * m4/md4.m4 (gl_MD4):
65180         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65181         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65182         * m4/readline.m4 (gl_FUNC_READLINE):
65183         * m4/rijndael.m4 (gl_RIJNDAEL):
65184         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65185         to get the necessary .h files and whatnot.
65186
65187 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65190         gnulib rather than the other way around.
65191         * config/srclistvars.sh (COREUTILS): Remove.
65192
65193 2006-08-22  Jim Meyering  <jim@meyering.net>
65194
65195         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65196
65197         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65198
65199 2006-08-22  Eric Blake  <ebb9@byu.net>
65200
65201         * modules/regexprops-generic: New file.
65202         * MODULES.html.sh (Support for building documentation): List it.
65203
65204 2006-08-22  Eric Blake  <ebb9@byu.net>
65205
65206         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65207         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65208         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65209         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65210
65211 2006-08-22  Bruno Haible  <bruno@clisp.org>
65212
65213         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65214         and lib_LTLIBRARIES like the other lib_* variables.
65215
65216 2006-08-22  Bruno Haible  <bruno@clisp.org>
65217
65218         * build-aux/x-to-1.in: New file, from GNU gettext.
65219
65220 2006-08-22  Bruno Haible  <bruno@clisp.org>
65221
65222         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65223         <utmpx.h> exists.
65224
65225 2006-08-22  Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65228         <utmpx.h> exists.
65229
65230 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         BeOS portability.
65233         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65234         exist.
65235         Problem reported by Bruno Haible.
65236
65237 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         Avoid the need for AC_LIBSOURCES in m4 macros.
65240         * modules/acl (EXTRA_DIST): Add acl.h.
65241         * modules/argmatch (Files): Add m4/argmatch.m4.
65242         (configure.ac): Add gl_ARGMATCH.
65243         (EXTRA_DIST): Renamed from lib_SOURCES, for
65244         consistency with the other modules.  Remove argmatch.c.
65245         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65246         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65247         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65248         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65249         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65250         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65251         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65252         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65253         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65254         * modules/closeout (EXTRA_DIST): Add closeout.h.
65255         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65256         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65257         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65258         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65259         dirname.h; remove basename.c and stripslash.c.
65260         * modules/exclude (EXTRA_DIST): Add exclude.h.
65261         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65262         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65263         * modules/file-type (EXTRA_DIST): Add file-type.h.
65264         * modules/filemode (EXTRA_DIST): Add filemode.h.
65265         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65266         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65267         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65268         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65269         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65270         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65271         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65272         * modules/getdate (EXTRA_DIST): Add getdate.c.
65273         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65274         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65275         * modules/getpass (EXTRA_DIST): Add getpass.h.
65276         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65277         * modules/group-member (EXTRA_DIST): Add group-member.h.
65278         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65279         * modules/hash (EXTRA_DIST): Add hash.h.
65280         * modules/human (EXTRA_DIST): Add human.h.
65281         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65282         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65283         * modules/lchown (EXTRA_DIST): Add lchown.h.
65284         * modules/long-options (EXTRA_DIST): Add long-options.h.
65285         * modules/lstat (EXTRA_DIST): Add lstat.h.
65286         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65287         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65288         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65289         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65290         * modules/memxor (EXTRA_DIST): Add memxor.h.
65291         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65292         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65293         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65294         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65295         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65296         * modules/physmem (EXTRA_DIST): Add physmem.h.
65297         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65298         * modules/posixver (EXTRA_DIST): Add posixver.h.
65299         * modules/quote (EXTRA_DIST): Add quote.h.
65300         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65301         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65302         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65303         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65304         regex_internal.h regexec.c.
65305         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65306         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65307         * modules/same (EXTRA_DIST): Add same.h.
65308         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65309         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65310         * modules/savedir (EXTRA_DIST): Add savedir.h.
65311         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65312         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65313         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65314         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65315         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65316         * modules/strdup (EXTRA_DIST): Add strdup.h.
65317         * modules/strftime (EXTRA_DIST): Add strftime.h.
65318         * modules/strndup (EXTRA_DIST): Add strndup.h.
65319         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65320         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65321         * modules/time_r (EXTRA_DIST): Add time_r.h.
65322         * modules/timespec (EXTRA_DIST): Add timespec.h.
65323         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65324         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65325         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65326         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65327         * modules/userspec (EXTRA_DIST): Add userspec.h.
65328         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65329         * modules/utimens (EXTRA_DIST): Add utimens.h.
65330         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65331         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65332         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65333         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65334         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65335         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65336         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65337         * modules/yesno (EXTRA_DIST): Add yesno.h.
65338
65339 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65342
65343         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65344         * m4/dev-ino.m4, same-inode.m4: Remove.
65345
65346         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65347         * m4/acl.m4 (AC_FUNC_ACL):
65348         * m4/backupfile.m4 (gl_BACKUPFILE):
65349         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65350         * m4/canon-host.m4 (gl_CANON_HOST):
65351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65352         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65354         * m4/cloexec.m4 (gl_CLOEXEC):
65355         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65356         * m4/closeout.m4 (gl_CLOSEOUT):
65357         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65358         * m4/dirname.m4 (gl_DIRNAME):
65359         * m4/exclude.m4 (gl_EXCLUDE):
65360         * m4/exitfail.m4 (gl_EXITFAIL):
65361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65362         * m4/file-type.m4 (gl_FILE_TYPE):
65363         * m4/filemode.m4 (gl_FILEMODE):
65364         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65365         * m4/fpending.m4 (gl_FUNC_FPENDING):
65366         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65367         * m4/fts.m4 (gl_FUNC_FTS):
65368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65369         * m4/getdate.m4 (gl_GETDATE):
65370         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65371         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65372         * m4/getpass.m4 (gl_FUNC_GETPASS):
65373         * m4/gettime.m4 (gl_GETTIME):
65374         * m4/getugroups.m4 (gl_GETUGROUPS):
65375         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65376         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65377         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65378         * m4/hash.m4 (gl_HASH):
65379         * m4/idcache.m4 (gl_IDCACHE):
65380         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65381         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65382         * m4/long-options.m4 (gl_LONG_OPTIONS):
65383         * m4/lstat.m4 (gl_FUNC_LSTAT):
65384         * m4/md5.m4 (gl_MD5):
65385         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65386         * m4/memcoll.m4 (gl_MEMCOLL):
65387         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65388         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65389         * m4/memxor.m4 (gl_MEMXOR):
65390         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65392         * m4/modechange.m4 (gl_MODECHANGE):
65393         * m4/mountlist.m4 (gl_MOUNTLIST):
65394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65395         * m4/openat.m4 (gl_FUNC_OPENAT):
65396         * m4/pathmax.m4 (gl_PATHMAX):
65397         * m4/physmem.m4 (gl_PHYSMEM):
65398         * m4/posixtm.m4 (gl_POSIXTM):
65399         * m4/posixver.m4 (gl_POSIXVER):
65400         * m4/quote.m4 (gl_QUOTE):
65401         * m4/quotearg.m4 (gl_QUOTEARG):
65402         * m4/readtokens.m4 (gl_READTOKENS):
65403         * m4/readutmp.m4 (gl_READUTMP):
65404         * m4/regex.m4 (gl_REGEX):
65405         * m4/safe-read.m4 (gl_SAFE_READ):
65406         * m4/safe-write.m4 (gl_SAFE_WRITE):
65407         * m4/same.m4 (gl_SAME):
65408         * m4/save-cwd.m4 (gl_SAVE_CWD):
65409         * m4/savedir.m4 (gl_SAVEDIR):
65410         * m4/settime.m4 (gl_SETTIME):
65411         * m4/sha1.m4 (gl_SHA1):
65412         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65413         * m4/stat-macros.m4 (gl_STAT_MACROS):
65414         * m4/stat-time.m4 (gl_STAT_TIME):
65415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65416         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65417         * m4/strdup.m4 (gl_FUNC_STRDUP):
65418         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65419         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65420         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65421         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65422         * m4/time_r.m4 (gl_TIME_R):
65423         * m4/timespec.m4 (gl_TIMESPEC):
65424         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65425         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65426         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65427         * m4/userspec.m4 (gl_USERSPEC):
65428         * m4/utimecmp.m4 (gl_UTIMECMP):
65429         * m4/utimens.m4 (gl_UTIMENS):
65430         * m4/xalloc.m4 (gl_XALLOC):
65431         * m4/xgetcwd.m4 (gl_XGETCWD):
65432         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65433         * m4/xreadlink.m4 (gl_XREADLINK):
65434         * m4/xstrtod.m4 (gl_XSTRTOD):
65435         * m4/yesno.m4 (gl_YESNO):
65436         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65437         to get the necessary .h files and whatnot.
65438
65439 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65440             Bruno Haible  <bruno@clisp.org>
65441
65442         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65443         /bin/sh understanding of '!' conditional negation.
65444
65445 2006-08-21  Jim Meyering  <jim@meyering.net>
65446
65447         * modules/openat (Depends-on): Really alphabetize.
65448
65449         * modules/acl (Depends-on): Add error and quote.
65450
65451         * check-module (find_included_lib_files): Add at-func.c to the
65452         ok-to-include-more-than-once white list.
65453
65454         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65455
65456 2006-08-21  Bruno Haible  <bruno@clisp.org>
65457
65458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65459         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65460         Reported by Martin Lambers <marlam@marlam.de>.
65461
65462 2006-08-21  Bruno Haible  <bruno@clisp.org>
65463
65464         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65465         specify an installation location, don't emit a noinst_LIBRARIES or
65466         noinst_LTLIBRARIES assignment.
65467
65468 2006-08-21  Bruno Haible  <bruno@clisp.org>
65469
65470         BeOS portability.
65471         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65472         BeOS has mbrtowc() but no <wctype.h>.
65473
65474 2006-08-21  Bruno Haible  <bruno@clisp.org>
65475
65476         BeOS portability.
65477         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65478         exist.
65479
65480 2006-08-21  Bruno Haible  <bruno@clisp.org>
65481
65482         BeOS portability.
65483         * lib/mbchar.h: Include <wctype.h> only if it exists.
65484
65485 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         Remove files that are no longer needed by their respective modules.
65488         * m4/obstack.m4: Remove.
65489         * m4/strerror_r.m4: Remove.
65490         * m4/uint32_t.m4: Remove.
65491         * m4/uintptr_t.m4: Remove.
65492         * m4/ullong_max.m4: Remove.
65493         * m4/xstrtoimax.m4: Remove.
65494         * m4/xstrtoumax.m4: Remove.
65495
65496         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65497         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65498         dependencies now capture this.
65499
65500         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65501         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65502         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65503         * m4/human.m4 (gl_HUMAN): Likewise.
65504         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65505         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65506
65507         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65508
65509         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65510         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65511         stdint.
65512         * m4/human.m4 (gl_HUMAN): Likewise.
65513         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65514         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65515         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65516         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65517         * m4/xstrtol (gl_XSTRTOL): Likewise.
65518
65519         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65520         AC_TYPE_LONG_LONG_INT.
65521         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65522         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65523         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65524         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65525
65526         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65527         on stdbool.
65528
65529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65530         (gl_PREREQ_XSTRTOUL): Remove.
65531
65532         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65533
65534         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65535         mode.
65536
65537 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         Add and change modules to make it easier for coreutils to use
65540         gnulib-tool.
65541         * modules/backupfile (Files): Remove m4/d-ino.m4.
65542         (Depends-on): Add d-ino.
65543         * modules/cycle-check (Depends-on): Add stdint.
65544         (lib_SOURCES): Add cycle-check.h.
65545         * modules/d-ino: New module.
65546         * modules/d-type: New module.
65547         * modules/error (Files): Remove m4/strerror_r.m4.
65548         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65549         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65550         m4/inttypes_h.m4, m4/uintmax_t.m4.
65551         (Depends-on): Add stdint.
65552         (lib_SOURCES): Add fsusage.h.
65553         * modules/getcwd (Files): Remove d-ino.m4.
65554         (Depends-on): Add d-ino.
65555         * modules/getndelim2 (Depends-on): Add stdint.
65556         * modules/glob (Files): Remove m4/d-type.m4.
65557         (Depends-on): Add d-type.
65558         * modules/host-os: New module.
65559         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65560         m4/inttypes_h.m4, m4/uintmax_t.m4.
65561         * Depends-on: Add stdint.
65562         (lib_SOURCES): Add human.h.
65563         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65564         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65565         m4/uintmax_t.m4, m4/ulonglong.m4.
65566         (Depends-on): Add stdint.
65567         (EXTRA_DIST): Add inttostr.h.
65568         * modules/lchmod: New module.
65569         * modules/link-follow: New module.
65570         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65571         (Depends-on): Add lchmod.
65572         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65573         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65574         (Depends-on): Add stdint.
65575         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65576         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65577         (Depends-on): Add stdint.
65578         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65579         * modules/perl: New module.
65580         * modules/regex (Depends-on): Add stdint.
65581         * modules/rmdir-errno: New module.
65582         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65583         m4/intmax_t.m4.
65584         (Depends-on): Add stdint.
65585         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65586         m4/uintmax_t.m4.
65587         (Depends-on): Add stdint.
65588         * modules/unlink-busy: New module.
65589         * modules/utimecmp (Depends-on): Add stdint.
65590         * modules/uptime: New module.
65591         * modules/winsz-ioctl: New module.
65592         * modules/winsz-termios: New module.
65593         * modules/xnanosleep (Depends-on): Add nanosleep.
65594         * modules/ullong_max: Remove.
65595         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65596         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65597         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65599         (Depends-on): Add inttypes.
65600         (lib_SOURCES): Add xstrtol.h.
65601         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65602         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65603         * MODULES.html.sh: Move 'assert' into the assert section.
65604         Move 'dummy' into the linking section.
65605         Remove ullong_max.
65606         Add section for compatibility checks for POSIX:2001 functions,
65607         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65608         winsz-ioctl, and winsz-termios into it.
65609         Add lchmod.
65610         Add top-level Misc section and put host-os, perl, and uptime
65611         into it.
65612
65613 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65616         now assume the stdint module.  Do not include inttypes.h.
65617         * lib/fsusage.h: Likewise.
65618         * lib/getndelim2.c: Likewise.
65619         * lib/human.h: Likewise.
65620         * lib/inttostr.h: Likewise.
65621         * lib/obstack.c: Likewise.
65622         * lib/regex_internal.h: Likewise.
65623         * lib/tempname.c: Likewise.
65624         * lib/utimecmp.c: Likewise.
65625         * lib/xstrtol.h: Likewise.
65626
65627         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65628
65629         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65630         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65631         * lib/xtime.h: Likewise.
65632
65633 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65634
65635         * modules/openat (Files): Add lib/fchmodat.c.
65636         Fixes problem reported by Jay Youngman.
65637
65638 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65639
65640         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65641         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65642
65643 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65644             Bruno Haible  <bruno@clisp.org>
65645
65646         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65647         and is a script that invokes bison. Tighten the code. Add comments.
65648
65649 2006-08-18  Jim Meyering  <jim@meyering.net>
65650
65651         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65652         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65653         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65654         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65655
65656 2006-08-18  Bruno Haible  <bruno@clisp.org>
65657
65658         * modules/bison-i18n: New file.
65659         * MODULES.html.sh (Internationalization functions): Add it.
65660
65661 2006-08-18  Bruno Haible  <bruno@clisp.org>
65662
65663         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65664         sys/statvfs.h. When getmntinfo was found, check its declaration and
65665         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65666
65667 2006-08-18  Bruno Haible  <bruno@clisp.org>
65668
65669         * m4/bison-i18n.m4: New file, from bison.
65670
65671 2006-08-18  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65674         (ME_DUMMY): Treat "kernfs" as a dummy.
65675         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65676
65677 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         Update from coreutils.
65680
65681         2006-08-15  Jim Meyering  <jim@meyering.net>
65682
65683         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65684
65685         2006-01-17  Jim Meyering  <jim@meyering.net>
65686
65687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65688
65689         2006-01-11  Jim Meyering  <jim@meyering.net>
65690
65691         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65692         Check for the lchmod function.
65693
65694 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         Update from coreutils.
65697
65698         * lib/__fpending.h: Add copyright notice.
65699         * lib/fprintftime.h: Likewise.
65700         * lib/savedir.c: Use (C) in copyright notice.
65701         * lib/savedir.h: Likewise.
65702
65703         2006-08-15  Jim Meyering  <jim@meyering.net>
65704
65705         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65706         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65707         in support of the EXPECTED_ERRNO macro.
65708         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65709         definitions.  Instead, define the appropriate symbols and include
65710         "at-func.c".
65711         * lib/mkdirat.c (mkdirat): Likewise.
65712         * lib/fchmodat.c (fchmodat): Likewise.
65713         (ENOSYS): Remove definition.
65714         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65715         it.  Don't include "unistd--.h" -- it wasn't ever used.
65716
65717         2006-01-17  Jim Meyering  <jim@meyering.net>
65718
65719         Rewrite fts.c not to change the current working directory,
65720         by using openat, fstatat, fdopendir, etc..
65721
65722         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65723         (HAVE_OPENAT_SUPPORT): Define.
65724         [_LIBC] (fchdir): Don't undef or define; no longer used.
65725         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65726         Now, this `function' always succeeds, and consumes its file descriptor
65727         parameter -- so callers must not close such FDs.  Update callers.
65728         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65729         (diropen): Add parameter, SP.  Adjust all callers.
65730         Implement using diropen_fd, rather than open.
65731         (fts_open): Initialize new member, fts_cwd_fd.
65732         Remove fts_rft-setting code.
65733         (fts_close): Close fts_cwd_fd, if necessary.
65734         (__opendir2): Define in terms of opendir or opendirat,
65735         depending on whether the FST_NOCHDIR flag is set.
65736         (fts_build): Since fts_safe_changedir consumes its FD, and since
65737         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65738         and close the dup'd file descriptor upon failure.
65739         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65740         (fts_safe_changedir): Tweak semantics to reflect that this function
65741         now calls cwd_advance_fd and hence consumes its FD argument.
65742         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65743         [struct FTS] (fts_rft): Remove now-unused member.
65744         [struct FTS] (fts_cycle.state): Improve comment.
65745
65746         * lib/openat.c (openat_needs_fchdir): New function.
65747         * lib/openat.h (openat_needs_fchdir): Declare it.
65748
65749 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65750
65751         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65752         Problem and fix reported by Pádraig Brady in
65753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65754
65755 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65758
65759 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * lib/memcoll.c (memcoll): Optimize for the common case where the
65762         arguments are bytewise equal.
65763
65764 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         * doc/regexprops-generic.texi: Add a copyright notice.
65767
65768 2006-08-15  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/tmpdir (License): Change to LGPL.
65771
65772 2006-08-15  Bruno Haible  <bruno@clisp.org>
65773
65774         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65775         module.
65776
65777 2006-08-14  Simon Josefsson  <jas@extundo.com>
65778
65779         * config/srclist.txt: Add gnupload.
65780
65781 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         Change copyright notice from LGPL 2 to GPL 2, since that's the
65784         standard form used in the gnulib repository.
65785         * tests/test-lock.c: Likewise.
65786         * tests/test-stdint.c: Likewise.
65787         * tests/test-tls.c: Likewise.
65788
65789         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65790         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65791         Add copyright notice.
65792
65793         * check-module: Add copyright notice.  Output a copyright
65794         notice if "--version" is specified.
65795         * modules/COPYING: New file.
65796         * tests/test-getaddrinfo.c: Add copyright notice.
65797         * tests/test-verify.c: Likewise.
65798
65799 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65800
65801         Change copyright notice from LGPL 2 to GPL 2, since that's the
65802         standard form used in the gnulib repository.
65803         * lib/lock.c: LGPL -> GPL.
65804         * lib/lock.h: Likewise.
65805         * lib/strnlen1.c: Likewise.
65806         * lib/strnlen1.h: Likewise.
65807         * lib/tls.c: Likewise.
65808         * lib/tls.h: Likewise.
65809         * lib/tmpdir.c: Likewise.
65810
65811         * lib/TODO: Remove; this belongs only in coreutils.
65812
65813 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         Add copyright notices to long-enough files that lack them, since
65816         otherwise the files aren't clearly free.  Use the same notice that
65817         getdate.texi already uses.
65818         * doc/alloca-opt.texi: Add copyright notice.
65819         * doc/alloca.texi: Likewise.
65820         * doc/ctime.texi: Likewise.
65821         * doc/functions.texi: Likewise.
65822         * doc/gcd.texi: Likewise.
65823         * doc/gnulib-tool.texi: Likewise.
65824         * doc/inet_ntoa.texi: Likewise.
65825         * doc/visibility.texi: Likewise.
65826
65827         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65828         * doc/quote.texi: Add copyright notice.
65829
65830         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65831         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65832         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65833         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65834         is now obsolete, and give a pointer to the Sun list.
65835         Add copyright notice.
65836
65837 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * config/srclistvars.sh: Add copyright notice.
65840
65841 2006-08-14  Eric Blake  <ebb9@byu.net>
65842
65843         Import the following change from libc:
65844
65845         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65846
65847         Upstream bug 2997.
65848         * lib/misc/error.c: Add space between program name and message if file
65849         name is missing.
65850
65851 2006-08-12  Karl Berry  <karl@gnu.org>
65852
65853         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65854         remove, these originate in gnulib now.
65855
65856 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65857
65858         * doc/Makefile (standards.info standards.html standards.dvi):
65859         Also depend on make-stds.texi.
65860
65861 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65864         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65865
65866         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65867         in wchar_t.  Problem reported by Eric Blake.
65868
65869         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65870         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65871         Also, help the compiler to keep LEN in a register.
65872
65873 2006-08-11  Eric Blake  <ebb9@byu.net>
65874
65875         * users.txt: Sort.  Add tar.
65876
65877 2006-08-11  Bruno Haible  <bruno@clisp.org>
65878
65879         * users.txt: New file.
65880
65881 2006-08-11  Bruno Haible  <bruno@clisp.org>
65882
65883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65884         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65885
65886 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * modules/snprintf (Depends-on): Remove minmax.
65889         (Maintainer): Add self and Bruno.
65890
65891 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65892
65893         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65894         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65895         (EOVERFLOW): Define if the system does not.
65896         Do not include "minmax.h"; it wasn't used.
65897         (snprintf): Don't assume size_t promotes to an unsigned type.
65898         Fix bug when generated string was too long for the buffer: the
65899         buffer's contents are supposed to be the initial prefix of the
65900         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65901         exceeds INT_MAX; do the check ourselves.
65902
65903         Import the following changes from libc:
65904
65905         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65906
65907         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65908         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65909         set wc to the byte which couldn't be converted.
65910         (re_string_reconstruct): Don't clear valid_raw_len before calling
65911         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65912         tip_context using re_string_context_at.
65913
65914         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65915
65916         * lib/posix/regex.h: g++ still cannot handled [restrict].
65917
65918         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65919
65920         * lib/posix/regex.h: Remove special handling for VMS.
65921
65922 2006-08-10  Jim Meyering  <jim@meyering.net>
65923
65924         * modules/same-inode: New module.
65925         * modules/dev-ino: New module.
65926         * modules/cycle-check: Depend on these modules, rather than simply
65927         including their .h files.
65928         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65929         required via m4/cycle-check.m4.
65930         * modules/same: Depend on new same-inode module, rather than
65931         including same-inode.h.
65932         * modules/chdir-safer: New file.
65933
65934         * modules/chown (Depends-on): Add stat-macros.
65935
65936 2006-08-10  Jim Meyering  <jim@meyering.net>
65937
65938         * m4/cycle-check.m4: New file.
65939         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65940         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65941
65942 2006-08-10  Eric Blake  <ebb9@byu.net>
65943
65944         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65945         in from original proposal.
65946
65947 2006-08-10  Eric Blake  <ebb9@byu.net>
65948         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65949
65950         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65951         namespace.
65952
65953 2006-08-10  Bruno Haible  <bruno@clisp.org>
65954
65955         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65956         as well.
65957
65958 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65959
65960         Sync from coreutils.
65961
65962         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65963
65964         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65965         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65966
65967 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * modules/restrict: Remove; no longer needed now that we assume
65970         Autoconf 2.59 or later.
65971         * MODULES.html.sh: Remove 'restrict'.
65972         * modules/argp (Depends-on): Remove 'restrict'.
65973         * modules/base64 (Depends-on): Likewise.
65974         * modules/gc (Depends-on): Likewise.
65975         * modules/getaddrinfo (Depends-on): Likewise.
65976         * modules/glob (Depends-on): Likewise.
65977         * modules/inet_ntop (Depends-on): Likewise.
65978         * modules/inet_pton (Depends-on): Likewise.
65979         * modules/memxor (Depends-on): Likewise.
65980         * modules/regex (Depends-on): Likewise.
65981         * modules/strtok_r (Depends-on): Likewise.
65982         * modules/time_r (Depends-on): Likewise.
65983
65984 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65987         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65988         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65989         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65990         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65991         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65992         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65993         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65994
65995         Merge from coreutils.
65996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65997         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65999         * m4/time_r.m4 (gl_TIME_R): Likewise.
66000
66001 2006-08-09  Karl Berry  <karl@gnu.org>
66002
66003         * config/srclist.txt: no more gettext-tools, per Bruno.
66004
66005 2006-08-08  Eric Blake  <ebb9@byu.net>
66006
66007         * modules/verror: New module.
66008         * MODULES.html.sh: Document it.
66009
66010 2006-08-08  Eric Blake  <ebb9@byu.net>
66011
66012         * lib/verror.h, lib/verror.c: New files.
66013
66014 2006-08-08  Eric Blake  <ebb9@byu.net>
66015
66016         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66017         verror_at_line output complies with GNU Coding Standards even when
66018         file is NULL.
66019
66020 2006-08-07  Bruno Haible  <bruno@clisp.org>
66021
66022         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66023         versions of AIX.
66024         Reported by Ralf Wildenhues.
66025
66026 2006-08-07  Bruno Haible  <bruno@clisp.org>
66027
66028         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66029         in an AC_DEFUN. Needed so that the autoconf snippets can use
66030         AC_REQUIRE.
66031
66032 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66033
66034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66035         Initialize pkgdata_DATA.
66036         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66037         overriding it.
66038
66039 2006-08-06  Eric Blake  <ebb9@byu.net>
66040
66041         * lib/error.h: Fold in some upstream changes from glibc.
66042         * lib/error.c: Likewise.
66043
66044 2006-08-04  Bruno Haible  <bruno@clisp.org>
66045
66046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66047         Make the mostlyclean-local rule depend on mostlyclean-generic.
66048         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66049
66050 2006-07-31  Bruno Haible  <bruno@clisp.org>
66051
66052         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66053         <stdlib.h>, <string.h>.
66054
66055 2006-07-30  Bruno Haible  <bruno@clisp.org>
66056
66057         * modules/readlink (License): Change to LGPL.
66058
66059 2006-07-30  Bruno Haible  <bruno@clisp.org>
66060
66061         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66062         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66063         set PKGDATADIR to point to it.
66064
66065 2006-07-30  Bruno Haible  <bruno@clisp.org>
66066
66067         * modules/csharpexec (configure.ac): Comment out macro invocation.
66068         * modules/javaexec (configure.ac): Likewise.
66069         * modules/javacomp-script (configure.ac): Likewise.
66070
66071         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66072
66073 2006-07-30  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66076         linked-list.
66077
66078 2006-07-30  Bruno Haible  <bruno@clisp.org>
66079
66080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66081
66082 2006-07-30  Bruno Haible  <bruno@clisp.org>
66083
66084         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66085         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66086         get removed.
66087
66088 2006-07-29  Bruno Haible  <bruno@clisp.org>
66089
66090         Make it possible for gnulib-tool to work with locally modified or
66091         augmented gnulib repositories.
66092         * gnulib-tool (func_usage): Document --local-dir option.
66093         (local_gnulib_dir): New variable.
66094         Handle --local-dir option.
66095         (func_lookup_file): New function.
66096         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66097         (func_get_description, func_get_filelist, func_get_description,
66098         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66099         func_get_automake_snippet, func_get_include_directive,
66100         func_get_license, func_get_maintainer): Use func_lookup_file.
66101         (func_import, func_create_testdir): Use func_lookup_file.
66102
66103 2006-07-29  Bruno Haible  <bruno@clisp.org>
66104
66105         * modules/setenv (Depends-on): Add unistd.
66106
66107 2006-07-29  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66110
66111 2006-07-29  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66114
66115 2006-07-29  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool (import, update): If there is no Makefile.am, look at
66118         aclocal.m4, instead of bailing out.
66119
66120 2006-07-29  Bruno Haible  <bruno@clisp.org>
66121
66122         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66123         Categorize the options by when they are useful.
66124
66125 2006-07-29  Bruno Haible  <bruno@clisp.org>
66126
66127         * gnulib-tool (func_usage): Document option --no-libtool.
66128         Handle option --no-libtool.
66129         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66130         for changed semantics of $libtool variable.
66131         (func_import): Likewise. If libtool is not used, show this through
66132         an option --no-libtool.
66133         (func_create_testdir): Update.
66134
66135 2006-07-29  Bruno Haible  <bruno@clisp.org>
66136
66137         * gnulib-tool (func_import): Extend error message about missing
66138         --doc-base.
66139
66140 2006-07-29  Bruno Haible  <bruno@clisp.org>
66141
66142         * gnulib-tool (func_import): Don't create the $docbase directory if
66143         there is no file to store there.
66144
66145 2006-07-29  Bruno Haible  <bruno@clisp.org>
66146
66147         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66148         relevant, look for configure.ac there, not in the current directory.
66149         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66150
66151 2006-07-29  Bruno Haible  <bruno@clisp.org>
66152
66153         * gnulib-tool (SORT): New variable.
66154         (func_usage): Undocument --assume-autoconf option.
66155         Remove --assume-autoconf option handling.
66156         (autoconf_minversion): Determine from the contents of configure.ac.
66157         (func_import): Remove autoconf_minversion handling.
66158         Suggested by Eric Blake.
66159
66160 2006-07-29  Bruno Haible  <bruno@clisp.org>
66161
66162         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66163
66164 2006-07-29  Bruno Haible  <bruno@clisp.org>
66165
66166         * config/srclist.txt (*setenv.[ch]): Remove rules.
66167
66168 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66169
66170         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66171
66172 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66173
66174         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66175         arpa/inet.h.
66176
66177 2006-07-28  Simon Josefsson  <jas@extundo.com>
66178
66179         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66180         * modules/inet_pton (Depends-on): Likewise.
66181
66182 2006-07-28  Simon Josefsson  <jas@extundo.com>
66183
66184         * m4/netinet_in_h.m4: New file.
66185
66186 2006-07-28  Simon Josefsson  <jas@extundo.com>
66187
66188         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66189         #include's.
66190
66191 2006-07-28  Simon Josefsson  <jas@extundo.com>
66192
66193         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66194         #include's.
66195
66196 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66199         setgid on directories only if they set these bits.
66200         * lib/modechange.h: Remove obsolete comment about masks.
66201
66202 2006-07-28  Eric Blake  <ebb9@byu.net>
66203
66204         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66205         macro expansion.
66206
66207 2006-07-28  Bruno Haible  <bruno@clisp.org>
66208
66209         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66210
66211 2006-07-28  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66214
66215 2006-07-28  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66218         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66219         Define fallbacks.
66220         Avoids link error on FreeBSD 4.x.
66221         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66222
66223         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66224         encoding.
66225         * lib/mbswidth.c (iswcntrl): Likewise.
66226
66227 2006-07-27  Bruno Haible  <bruno@clisp.org>
66228
66229         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66230         test.
66231
66232 2006-07-27  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66235         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66236         defined.
66237
66238 2006-07-26  Eric Blake  <ebb9@byu.net>
66239
66240         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66241
66242 2006-07-26  Eric Blake  <ebb9@byu.net>
66243
66244         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66245         like mingw that lack mkstemp.
66246         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66247         avoid compilation warning on mingw.
66248
66249 2006-07-26  Bruno Haible  <bruno@clisp.org>
66250
66251         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66252         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66253         INT_FAST*_MIN, INTPTR_MIN.
66254
66255 2006-07-25  Bruno Haible  <bruno@clisp.org>
66256
66257         * modules/version-etc (Depends-on): Add stdarg.
66258
66259 2006-07-25  Bruno Haible  <bruno@clisp.org>
66260
66261         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66262         complex commands.
66263
66264 2006-07-25  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66267         defined in <stdarg.h> or config.h.
66268
66269 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66272         (gl_STDIO_SAFER): Remove.
66273
66274 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * MODULES.html.sh (File stream based Input/Output):
66277         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66278         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66279         * modules/fopen-safer, modules/tmpfile-safer: New files.
66280         * modules/stdio-safer: Remove.
66281
66282 2006-07-24  Bruno Haible  <bruno@clisp.org>
66283
66284         * modules/tmpdir: New file.
66285         * MODULES.html.sh (File system functions): Add it.
66286
66287 2006-07-24  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66290         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66291
66292 2006-07-24  Bruno Haible  <bruno@clisp.org>
66293
66294         * modules/clean-temp: New file.
66295
66296 2006-07-24  Bruno Haible  <bruno@clisp.org>
66297
66298         * m4/tmpdir.m4: New file, from GNU gettext.
66299
66300 2006-07-24  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/tmpdir.h: New file, from GNU gettext.
66303         * lib/tmpdir.c: New file, from GNU gettext.
66304
66305 2006-07-24  Bruno Haible  <bruno@clisp.org>
66306
66307         * lib/clean-temp.h: New file, from GNU gettext.
66308         * lib/clean-temp.c: New file, from GNU gettext.
66309
66310 2006-07-23  Eric Blake  <ebb9@byu.net>
66311
66312         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66313         (Depends-on): Add binary-io.
66314
66315 2006-07-23  Eric Blake  <ebb9@byu.net>
66316
66317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66318
66319 2006-07-23  Eric Blake  <ebb9@byu.net>
66320
66321         * lib/tmpfile-safer.c: New file.
66322         * lib/stdio-safer.h (fopen_safer): Add prototype.
66323         * lib/stdio--.h (tmpfile): Make safer.
66324
66325 2006-07-23  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66328         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66329         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66330         gl_linked_remove_at): Use it.
66331
66332 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66333         and Simon Josefsson <jas@extundo.com>
66334
66335         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66336
66337         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66338
66339 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * modules/close-stream: New file.
66342         * modules/closeout (Description): Make it clear that it exits
66343         with a diagnostic on error.
66344         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66345         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66346
66347 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * m4/close-stream.m4: New file.
66350
66351 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66352
66353         * lib/close-stream.c, lib/close-stream.h: New files.
66354
66355 2006-07-22  Bruno Haible  <bruno@clisp.org>
66356
66357         Merge from GNU gettext 0.15.
66358
66359         2006-05-01  Bruno Haible  <bruno@clisp.org>
66360
66361                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66362
66363         2006-07-22  Bruno Haible  <bruno@clisp.org>
66364
66365                 * modules/javaversion: New file.
66366                 * MODULES.html.sh (Java): Add javaversion.
66367
66368         2006-03-12  Bruno Haible  <bruno@clisp.org>
66369
66370                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66371
66372         2005-12-04  Bruno Haible  <bruno@clisp.org>
66373
66374                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66375                 (untested).
66376
66377         2006-06-21  Bruno Haible  <bruno@clisp.org>
66378
66379                 Avoid warnings from recent versions of mcs.
66380                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66381                 -o, -L, -r any more. Use options documented since mcs-1.0
66382                 instead. Similarly for -g.
66383
66384         2005-12-04  Bruno Haible  <bruno@clisp.org>
66385
66386                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66387                 .resources, not .resource.
66388
66389         2005-07-09  Bruno Haible  <bruno@clisp.org>
66390
66391                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66392                 add a .dll suffix.
66393                 Reported by Mark Junker <mjscod@gmx.de>.
66394
66395         2006-07-22  Bruno Haible  <bruno@clisp.org>
66396
66397                 * modules/gettext: Upgrade to gettext-0.15.
66398                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66399                 m4/visibility.m4.
66400                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66401
66402 2006-07-22  Bruno Haible  <bruno@clisp.org>
66403
66404         Merge from GNU gettext 0.15.
66405
66406         2006-03-25  Bruno Haible  <bruno@clisp.org>
66407
66408                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66409
66410         2006-07-21  Bruno Haible  <bruno@clisp.org>
66411
66412                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66413                 "1.1".
66414
66415         2006-05-09  Bruno Haible  <bruno@clisp.org>
66416
66417                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66418                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66419                 for the conftestver execution.
66420
66421         2006-05-01  Bruno Haible  <bruno@clisp.org>
66422
66423                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66424                 optional target-version argument. Verify that the compiler
66425                 groks source of the specified source-version, or add -source
66426                 option as necessary. Verify that the compiler produces
66427                 bytecode in the specified target-version, or add -target and
66428                 -source options as necessary. Make the result of the test
66429                 available as variable CONF_JAVAC. Also log error output in
66430                 config.log.
66431
66432         2006-03-11  Bruno Haible  <bruno@clisp.org>
66433
66434                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66435
66436         2006-05-09  Bruno Haible  <bruno@clisp.org>
66437
66438                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66439                 CLASSPATH_SEPARATOR to a semicolon.
66440
66441         2006-03-12  Bruno Haible  <bruno@clisp.org>
66442
66443                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66444                 available as variable CONF_JAVA, for subsequent autoconf
66445                 tests. Also log error output in config.log.
66446
66447         2006-07-19  Bruno Haible  <bruno@clisp.org>
66448
66449                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66450                 that getline works on glibc2 systems. Needed to avoid trouble
66451                 in relocatable.c.
66452                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66453
66454         2005-12-04  Bruno Haible  <bruno@clisp.org>
66455
66456                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66457                 launcher (untested).
66458
66459         2005-12-04  Bruno Haible  <bruno@clisp.org>
66460
66461                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66462
66463         2006-07-22  Bruno Haible  <bruno@clisp.org>
66464
66465                 * gettext.m4: Update from GNU gettext-0.15.
66466                 * nls.m4: Likewise.
66467                 * po.m4: Likewise.
66468                 * inttypes-pri.m4: Likewise.
66469                 * inttypes-h.m4: Renamed from inttypes.m4.
66470                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66471
66472 2006-07-22  Bruno Haible  <bruno@clisp.org>
66473
66474         Merge from GNU gettext 0.15.
66475
66476         2005-07-05  Bruno Haible  <bruno@clisp.org>
66477
66478                 * printf-args.c (printf_fetchargs): Work around broken
66479                 definition of wint_t on mingw.
66480
66481         2005-02-12  Bruno Haible  <bruno@clisp.org>
66482
66483                 * xallocsa.h: Add extern "C" for C++.
66484
66485         2006-05-17  Bruno Haible  <bruno@clisp.org>
66486
66487                 Cygwin portability.
66488                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66489
66490         2006-04-30  Bruno Haible  <bruno@clisp.org>
66491
66492                 * progreloc.c: Include <mach-o/dyld.h> if available.
66493                 (find_executable): Use _NSGetExecutablePath when possible.
66494
66495         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66496
66497                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66498                 function.
66499
66500         2005-12-29  Bruno Haible  <bruno@clisp.org>
66501
66502                 * progreloc.c (set_program_name_and_installdir): Fix
66503                 compilation error.
66504
66505         2005-12-04  Bruno Haible  <bruno@clisp.org>
66506
66507                 Cygwin portability.
66508                 * progreloc.c: Include <windows.h> also on Cygwin.
66509                 (find_executable): Add support for Cygwin.
66510                 (set_program_name_and_installdir): Handle also platforms with
66511                 nonempty EXEEXT.
66512
66513         2006-07-11  Bruno Haible  <bruno@clisp.org>
66514
66515                 * javacomp.c: Fix a comment.
66516                 Reported by Jim Meyering.
66517
66518         2006-04-30  Bruno Haible  <bruno@clisp.org>
66519
66520                 * javacomp.h (compile_java_class): Add source_version,
66521                 target_version arguments.
66522                 * javacomp.c: Rewritten to choose only a compiler that
66523                 respects the specified source_version and target_version.
66524
66525         2006-06-27  Bruno Haible  <bruno@clisp.org>
66526
66527                 Assume correct S_ISDIR macro.
66528                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66529
66530         2006-07-22  Bruno Haible  <bruno@clisp.org>
66531
66532                 * javaversion.h: New file, from GNU gettext.
66533                 * javaversion.c: New file, from GNU gettext.
66534                 * javaversion.java: New file, from GNU gettext.
66535                 * javaversion.class: New file, from GNU gettext.
66536
66537         2006-05-17  Bruno Haible  <bruno@clisp.org>
66538
66539                 Cygwin portability.
66540                 * javaexec.c (execute_java_class): Test for jview program
66541                 also on Cygwin.
66542
66543         2006-04-09  Bruno Haible  <bruno@clisp.org>
66544
66545                 * fatal-signal.c: Don't include string.h.
66546                 (at_fatal_signal): Use a copying loop instead of memcpy.
66547
66548         2005-12-04  Bruno Haible  <bruno@clisp.org>
66549
66550                 * csharpexec.c: Add support for 'clix' launcher (untested).
66551                 (execute_csharp_using_sscli): New function.
66552                 (execute_csharp_program): Call it.
66553
66554         2006-06-21  Bruno Haible  <bruno@clisp.org>
66555
66556                 Avoid warnings from recent versions of mcs.
66557                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66558                 -o, -L, -r any more. Use options documented since mcs-1.0
66559                 instead. Similarly for -g.
66560
66561         2005-07-09  Bruno Haible  <bruno@clisp.org>
66562
66563                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66564                 add a .dll suffix.
66565                 Reported by Mark Junker <mjscod@gmx.de>.
66566
66567         2006-06-17  Bruno Haible  <bruno@clisp.org>
66568
66569                 * config.charset: Update for NetBSD 3.0.
66570
66571         2006-05-17  Bruno Haible  <bruno@clisp.org>
66572
66573                 Cygwin portability.
66574                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66575
66576         2006-05-16  Bruno Haible  <bruno@clisp.org>
66577
66578                 * localcharset.c [CYGWIN]: Include <windows.h>.
66579                 (get_charset_aliases): For Cygwin, return the same CPxxx
66580                 aliases list as under WIN32.
66581                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66582                 the environment variables. Fall back to GetACP().
66583
66584         2006-04-05  Bruno Haible  <bruno@clisp.org>
66585
66586                 * config.charset: Update Juan Manuel Guerrero's address.
66587
66588         2005-02-12  Bruno Haible  <bruno@clisp.org>
66589
66590                 * allocsa.h: Add extern "C" for C++.
66591
66592         2005-02-10  Bruno Haible  <bruno@clisp.org>
66593
66594                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66595                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66596
66597         2006-07-22  Bruno Haible  <bruno@clisp.org>
66598
66599                 * gettext.h: Update to GNU gettext-0.15.
66600
66601 2006-07-22  Bruno Haible  <bruno@clisp.org>
66602
66603         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66604         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66605         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66606
66607 2006-07-21  Eric Blake  <ebb9@byu.net>
66608
66609         * modules/stdlib-safer: New file.
66610         * MODULES.html.sh (File stream based Input/Output): Add
66611         stdlib-safer.
66612
66613 2006-07-21  Eric Blake  <ebb9@byu.net>
66614
66615         * lib/stdlib-safer.h: New file from coreutils, required by
66616         stdlib--.h.
66617
66618 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66621
66622 2006-07-20  Bruno Haible  <bruno@clisp.org>
66623
66624         * gnulib-tool: Recognize new option --assume-autoconf.
66625         (autoconf_minversion): New variable.
66626         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66627
66628 2006-07-20  Bruno Haible  <bruno@clisp.org>
66629
66630         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66631
66632 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66633
66634         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66635         Reindent and repaginate.
66636
66637 2006-07-19  Derek Price  <derek@ximbiot.com>
66638
66639         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66640         Correct grammar.
66641
66642 2006-07-17  Bruno Haible  <bruno@clisp.org>
66643
66644         * modules/list: New file.
66645         * modules/array-list: New file.
66646         * modules/carray-list, modules/carray-list-tests: New files.
66647         * modules/linked-list, modules/linked-list-tests: New files.
66648         * modules/avltree-list, modules/avltree-list-tests: New files.
66649         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66650         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66651         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66652         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66653         * modules/oset: New file.
66654         * modules/array-oset: New file.
66655         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66656         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66657         * tests/test-carray_list.c: New file.
66658         * tests/test-linked_list.c: New file.
66659         * tests/test-avltree_list.c: New file.
66660         * tests/test-rbtree_list.c: New file.
66661         * tests/test-linkedhash_list.c: New file.
66662         * tests/test-avltreehash_list.c: New file.
66663         * tests/test-rbtreehash_list.c: New file.
66664         * tests/test-avltree_oset.c: New file.
66665         * tests/test-rbtree_oset.c: New file.
66666         * MODULES.html.sh (Container data structures): New section.
66667
66668 2006-07-17  Bruno Haible  <bruno@clisp.org>
66669
66670         * m4/gl_list.m4: New file.
66671
66672 2006-07-17  Bruno Haible  <bruno@clisp.org>
66673
66674         * lib/gl_list.h: New file.
66675         * lib/gl_list.c: New file.
66676         * lib/gl_array_list.h: New file.
66677         * lib/gl_array_list.c: New file.
66678         * lib/gl_carray_list.h: New file.
66679         * lib/gl_carray_list.c: New file.
66680         * lib/gl_linked_list.h: New file.
66681         * lib/gl_linked_list.c: New file.
66682         * lib/gl_anylinked_list1.h: New file.
66683         * lib/gl_anylinked_list2.h: New file.
66684         * lib/gl_avltree_list.h: New file.
66685         * lib/gl_avltree_list.c: New file.
66686         * lib/gl_anyavltree_list1.h: New file.
66687         * lib/gl_anyavltree_list2.h: New file.
66688         * lib/gl_rbtree_list.h: New file.
66689         * lib/gl_rbtree_list.c: New file.
66690         * lib/gl_anyrbtree_list1.h: New file.
66691         * lib/gl_anyrbtree_list2.h: New file.
66692         * lib/gl_anytree_list1.h: New file.
66693         * lib/gl_anytree_list2.h: New file.
66694         * lib/gl_linkedhash_list.h: New file.
66695         * lib/gl_linkedhash_list.c: New file.
66696         * lib/gl_anyhash_list1.h: New file.
66697         * lib/gl_anyhash_list2.h: New file.
66698         * lib/gl_avltreehash_list.h: New file.
66699         * lib/gl_avltreehash_list.c: New file.
66700         * lib/gl_rbtreehash_list.h: New file.
66701         * lib/gl_rbtreehash_list.c: New file.
66702         * lib/gl_anytreehash_list1.h: New file.
66703         * lib/gl_anytreehash_list2.h: New file.
66704
66705         * lib/gl_oset.h: New file.
66706         * lib/gl_oset.c: New file.
66707         * lib/gl_array_oset.h: New file.
66708         * lib/gl_array_oset.c: New file.
66709         * lib/gl_avltree_oset.h: New file.
66710         * lib/gl_avltree_oset.c: New file.
66711         * lib/gl_rbtree_oset.h: New file.
66712         * lib/gl_rbtree_oset.c: New file.
66713         * lib/gl_anytree_oset.h: New file.
66714
66715 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * m4/mkancesdirs.m4: New file.
66718         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66719         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66720         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66721         it.
66722
66723 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66724
66725         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66726         * lib/mkancesdirs.h: New files.
66727         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66728         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66729         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66730         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66731         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66732         callers changed.  Revamp internals significantly, by not
66733         attempting to create directories that are temporarily more
66734         permissive than the final results.  Do not attempt to use
66735         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66736         This removes some race conditions, fixes some bugs, and simplifies
66737         things.  Use new dirchownmod function to do owner and mode changes.
66738         * lib/mkdir-p.h: Likewise.
66739         * lib/modechange.c (octal_to_mode): New function.
66740         (struct mode_change): New member mentioned.
66741         (make_node_op_equals): New arg mentioned.  All callers changed.
66742         (mode_compile): Keep track of which mode bits the user has explicitly
66743         mentioned.
66744         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66745         New arg PMODE_BITS, to keep track of which mode bits the user
66746         mentioned; it treats S_ISUID and S_ISGID speciall.
66747         All callers changed.
66748         * lib/modechange.h: Likewise.
66749
66750 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66751
66752         * MODULES.html.sh: Add mkancestors.
66753         * modules/mkancesdirs: New module.
66754         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66755         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66756         The chdir-safer and afs files are now orphans; I'll remove them
66757         unless someone speaks up.
66758         Add lib/dirchownmod.c, lib/dirchownmod.h.
66759         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66760         Add lchown, mkancesdirs.
66761         (Maintainer): Add self.
66762
66763 2006-07-15  Karl Berry  <karl@gnu.org>
66764
66765         * gnulib-tool: help message wording/arrangement.
66766
66767 2006-07-14  Simon Josefsson  <jas@extundo.com>
66768
66769         * doc/gnulib.texi (Libtool and Windows): New section.
66770
66771 2006-07-12  Simon Josefsson  <jas@extundo.com>
66772
66773         * modules/gendocs (License): Fix license, approved by Karl.
66774
66775 2006-07-12  Eric Blake  <ebb9@byu.net>
66776
66777         * MODULES.html.sh: Add gendocs.
66778
66779 2006-07-11  Eric Blake  <ebb9@byu.net>
66780
66781         * modules/fdl: New module, to install doc/fdl.texi.
66782         * MODULES.html.sh: Add new section for documentation modules.
66783         * gnulib-tool: Avoid space-tab.
66784         (--doc-base): New option, to manage files from doc.
66785
66786 2006-07-11  Eric Blake  <ebb9@byu.net>
66787
66788         * m4/absolute-header.m4: Fix comments to match recent change.
66789
66790 2006-07-11  Eric Blake  <ebb9@byu.net>
66791
66792         * gnulib-tool: List --doc-base before --tests-base.
66793
66794 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66795
66796         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66797
66798 2006-07-11  Bruno Haible  <bruno@clisp.org>
66799
66800         * README: Mention where to put documentation.
66801
66802 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66803
66804         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66805
66806 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66809         to stdint.m4.
66810
66811 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66814         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66815         "no/such/file/stdint.h" when there is no such file, so that
66816         the resulting C code can be parsed by dodgy compilers.
66817         Problems reported by Bob Proulx.
66818
66819 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66820
66821         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66822         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66823         macros into the GNU _D_EXACT_NAMLEN.
66824         * lib/savedir.c:  Likewise.
66825         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66826
66827 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66828         and Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66831         * m4/savedir.m4:
66832         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66833         macros into the GNU _D_EXACT_NAMLEN.
66834
66835 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66838         around the absolute name, to work around a problem with the HP-UX
66839         11.23 native C compiler, reported by Bob Proulx.
66840
66841 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         * doc/maintain.texi, make-stds.texi: Sync from
66844         <http://savannah.gnu.org/projects/gnustandards>.
66845
66846 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66849
66850 2006-07-09  Jim Meyering  <jim@meyering.net>
66851
66852         * m4/glob.m4: Remove a doubled word in a comment.
66853
66854 2006-07-09  Jim Meyering  <jim@meyering.net>
66855
66856         * lib/argp-pv.c: Remove a doubled word in a comment.
66857         * lib/check-version.c (check_version): Likewise.
66858         * lib/javacomp.c (compile_java_class): Likewise.
66859
66860 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66863         for the benefit of people using Autoconf 2.60.  If you want to
66864         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66865         (or m4/onceonly.m4, if pre-2.57) manually.
66866
66867 2006-07-08  Jim Meyering  <jim@meyering.net>
66868
66869         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66870         comment.
66871         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66872         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66873         comment.
66874
66875 2006-07-08  Jim Meyering  <jim@meyering.net>
66876
66877         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66878
66879 2006-07-07  Simon Josefsson  <jas@extundo.com>
66880
66881         * tests/test-crc.c: Change expected crc value, the test vector
66882         were probably computed using the old broken crc.c?
66883
66884 2006-07-06  Simon Josefsson  <jas@extundo.com>
66885
66886         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66887         now the canonical place for the M4 file).
66888
66889         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66890         from the sys_socket dependency now.
66891
66892         * modules/inet_pton (Files): Ditto.
66893
66894         * modules/inet_ntop (Files): Ditto.
66895
66896 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66897
66898         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66899         not gl_PREREQ_GETUSERSHELL.
66900
66901 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66902
66903         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66904         with only one argument, for Autoconf 2.60.
66905         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66906         expand to nothing, so add a shell command to avoid syntax error.
66907         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66908
66909 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66910
66911         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66912
66913 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66916         no longer needed.  Check for isblank decl.
66917         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66918         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66919         of existence.
66920
66921 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66922
66923         * lib/getloadavg.c: Use __VMS, not VMS.
66924         * lib/getopt.c: Likewise.
66925         * lib/getpagesize.h: Likewise.
66926         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66927         and probably does not work.
66928
66929 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * lib/.cppi-disable: Add wcwidth.
66932         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66933         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66934         (ISGRAPH): Remove.  All uses changed to isgraph.
66935         (FOLD) [!defined _LIBC]: Remove special case.
66936         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66937         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66938         HAVE_ISBLANK.
66939         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66940         case.
66941
66942 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66943
66944         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66945         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66946         brackets.  Other minor changes to suppress some compiler
66947         warnings.
66948
66949 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66950         and Paul Eggert  <eggert@cs.ucla.edu>
66951
66952         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66953         of invoking obsolescent AC_HEADER_DIRENT macro.
66954         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66955         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66956         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66957         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66958         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66959         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66960         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66961         * m4/readdir.m4: Remove; no longer needed.
66962
66963 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66964         and Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66967         Don't worry about this obsolete case any more.
66968         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66969         directories.
66970         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66971         worry about this obsolete case any more.
66972         * lib/fts.c: Likewise.
66973         * lib/getcwd.c: Likewise.
66974         * lib/glob.h: Likewise.
66975         * lib/savedir.c: Likewise.
66976
66977 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66980         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66981         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66982         needed.
66983         All uses removed.
66984         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66985         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66986         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66987         needed.
66988         * m4/getdate.m4 (gl_GETDATE): Likewise.
66989         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66990         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66991         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66992         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66993         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66995         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66996         needed.
66997
66998 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * lib/memcasecmp.c: Include <limits.h>.
67001         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67002         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67003         Don't assume isdigit succeeds only on '0' through '9'.
67004
67005 2006-07-05  Eric Blake  <ebb9@byu.net>
67006
67007         * modules/getaddrinfo (Depends-on): Add snprintf.
67008
67009 2006-07-05  Eric Blake  <ebb9@byu.net>
67010
67011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67012         to avoid 'header present but could not be compiled' on cygwin.
67013
67014 2006-07-05  Eric Blake  <ebb9@byu.net>
67015
67016         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67017         missing from netdb.h.
67018         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67019
67020 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67021
67022         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67023         no longer needed.
67024         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67025         * m4/getdate.m4 (gl_GETDATE): Likewise.
67026         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67027         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67028         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67029         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67030         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67031
67032 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67033
67034         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67035         All uses of is_space replaced by isspace.
67036         * lib/exit.h: Don't talk about STDC_HEADERS.
67037         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67038         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67039         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67040         replaced by isprint etc.
67041         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67042         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67043         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67044         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67045         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67046         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67047
67048 2006-07-05  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67051         the function exists, before testing against AIX.
67052         Reported by Martin Lambers <marlam@marlam.de>.
67053
67054 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67055
67056         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67057         From Mark D. Baushke.
67058
67059 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67060
67061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67062         to the absolute name, not just one, to bypass Sun C 5.8's
67063         "warning: #include of /usr/include/... may be non-portable".
67064
67065 2006-07-04  Eric Blake  <ebb9@byu.net>
67066
67067         * modules/dirname-tests: New test module.
67068         * tests/test-dirname.c: New file, replacing dirname.c
67069         TEST_DIRNAME section that was recently deleted.
67070
67071 2006-07-04  Bruno Haible  <bruno@clisp.org>
67072
67073         Assume ANSI C header files and <ctype.h> functions.
67074         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67075         (mbsnwidth): Use isprint, iscntrl instead.
67076
67077 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67078
67079         Merge from coreutils.
67080         * MODULES.html.sh: Add xstrtold.
67081         * modules/xstrtold: New file.
67082         * modules/cycle-check (Files): Add lib/same-inode.h.
67083         * modules/dirname (Files): Add m4/double-slash-root.m4.
67084         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67085         * modules/mkdir-p (Files): Add lib/same-inode.h.
67086         * modules/same (Files): Add lib/same-inode.h.
67087
67088 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67091         This is to keep the terminology clean; POSIX talks about
67092         "absolute pathnames", not "full pathnames", but the GNU
67093         Coding Standards say to use "path" for something else;
67094         so use "absolute" to keep both sides happy.
67095         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67096         Set gl_absolute_header, not gl_full_header_path.
67097         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67098         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67099         All uses changed.
67100
67101         Merge from coreutils.
67102
67103         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67106         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67107         want to require the building of c-strtod.o.
67108         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67109         needs -lm directly.
67110         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67111
67112         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67115         --as-needed option if available.  Problem reported by Albert Chin in
67116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67117         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67118         cc merely issues a bunch of annoying warnings for --as-needed
67119         (this problem was reported by Bob Proulx).  Also, try linking with
67120         -lm to detect a bug in binutils 2.16 (this problem was reported
67121         by Ralf Wildenhues).
67122
67123         2006-06-18  Jim Meyering  <jim@meyering.net>
67124
67125         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67126         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67127         macro.
67128         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67129         also check for glibc-2.4's abort-inducing bug.
67130
67131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67132         Low-probability clean-up should be to use rmdir to get rid of
67133         the just-created directory, not unlink.
67134
67135         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67136         configure fail, and request a bug report to inform us about it.
67137         Add a comment that, barring reports to the contrary, in 2007 we'll
67138         assume ftruncate is universally available.
67139
67140         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67143
67144         2006-03-12  Jim Meyering  <jim@meyering.net>
67145
67146         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67147         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67148         * m4/same.m4 (gl_SAME): Likewise.
67149         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67150
67151         2006-03-11  Eric Blake  <ebb9@byu.net>
67152
67153         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67154         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67155         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67156         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67157
67158 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67161         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67162         reported by Mark D. Baushke, one in
67163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67164
67165         Merge from coreutils.
67166
67167         * lib/.cppi-disable: Add stdint_.h.
67168         * lib/.cvsignore: Add stdint.h.
67169
67170         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67171
67172         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67173         both double and long double versions.
67174         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67175         * lib/xstrtold.c: New file.
67176         * lib/xstrtod.h (xstrtold): New decl.
67177
67178         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * lib/filemode.c (setst): Remove.
67181         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67182         (arguably) clearer, and the generated code is a bit smaller on my
67183         Debian GNU/Linux stable x86 host.
67184
67185         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67186
67187         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67188         Assume that filemode.h includes sys/types.h and sys/stat.h.
67189         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67190         (ftypelet): Reorder to put common cases first, for efficiency.
67191         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67192         to do 'M'.
67193         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67194         of 10, for compatibility with FreeBSD.  All callers changed.
67195         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67196         types that can't be deduced solely from st_mode.  First arg is now a
67197         const pointer.
67198         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67199         (strmode): Renamed from mode_string.
67200         (filemodestring): New decl.
67201         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67202         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67203         needed.
67204         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67205
67206         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67209         fsusage.h now does that.  Include fsusage.h first, to test interface.
67210         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67211         at most one method (the old code could have generated decls that
67212         didn't conform to C89, not that this was ever exercised).
67213         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67214
67215         2006-03-19  Jim Meyering  <jim@meyering.net>
67216
67217         Work even in a chroot where d_ino values for entries in "/"
67218         don't match the stat.st_ino values for the same names.
67219         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67220         number, iterate through all entries again, using lstat instead.
67221         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67222         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67223
67224         * lib/getcwd.c (__getcwd): Clarify a comment.
67225         Use memcpy in place of a call to strcpy.
67226
67227         2006-03-12  Jim Meyering  <jim@meyering.net>
67228
67229         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67230         matches that of the current directory (which we're about to chdir ".."
67231         out of), then save the dev-ino of the parent, instead.
67232
67233         * lib/same-inode.h (SAME_INODE): New file/macro.
67234         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67235         Include "same-inode.h", instead.
67236         * lib/same.c: Likewise.
67237         * lib/cycle-check.h: Include "same-inode.h".
67238         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67239         * lib/cycle-check.c (SAME_INODE): Remove definition.
67240         * lib/root-dev-ino.h: Include "same-inode.h".
67241
67242         2006-03-11  Eric Blake  <ebb9@byu.net>
67243
67244         * lib/same.c (same_name): s/base_name/last_component/
67245         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67246         * lib/filenamecat.c (file_name_concat): Likewise.
67247
67248         2006-03-11  Eric Blake  <ebb9@byu.net>,
67249                     Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67252         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67253         drive prefix.
67254         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67255         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67256         (last_component): New method.
67257         * lib/dirname.c (dir_len): Determine when drive letters need a
67258         subsequent slash.  Preserve // when it is special.
67259         (dir_name): Don't append dot when drive letter is absolute.
67260         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67261         * lib/basename.c (base_name): New semantics - malloc the result.
67262         Preserve // when it is special.  Preserve relative files that look
67263         like drive letters.
67264         (base_len): Preserve // when it is special.
67265         (last_component): New method, similar to old base_name semantics.
67266         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67267         base_name.  Strip redundant slashes from ///.
67268
67269 2006-07-03  Jim Meyering  <jim@meyering.net>
67270
67271         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67272         macro is used before the first cycle_check call.
67273
67274 2006-07-03  Eric Blake  <ebb9@byu.net>
67275
67276         * modules/dirname (Depends-on): Add xstrndup.
67277
67278 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67279
67280         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67281         test cases, so that config.log is a bit easier to follow.
67282
67283 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67284
67285         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67286         both are 64 bits, since this seems to be the tradition, and this
67287         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67288         we ever run into a host that prefers long long to long in this
67289         case, we'll need another configure-time test.  Problem reported by
67290         Jim Meyering.
67291
67292 2006-07-02  Eric Blake  <ebb9@byu.net>
67293
67294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67295
67296 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67297
67298         * modules/inttypes (Depends-on): No longer depends on stdint.
67299         * modules/stdint (Description): Say more about assumptions.
67300         Say that the fast types might differ.  Say macros are used.
67301         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67302         (Makefile.am): Revise list of substituted symbols to match
67303         new stdint.m4.
67304         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67305         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67306         * tests/test-stdint.c (verify_same_types)
67307         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67308         the code conforms to C99/C89.
67309         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67310         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67311
67312 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67315         but fix a bug, by requiring at least 64 bits.
67316         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67317         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67318         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67319         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67320
67321         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67322         changes.  Make 2.59 a prerequisite.  Check and substitute for
67323         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67324         inttypes.h.  Do not use special include files; just use the
67325         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67326         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67327         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67328         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67329         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67330         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67331         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67332         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67333         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67334         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67335         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67336         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67337         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67338         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67339         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67340         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67341         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67342         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67343         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67344         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67345         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67346         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67347         not check for things that C99 does not require, e.g., int8_t.  If
67348         a test isn't needed unless <stdint.h> isn't working, and is
67349         unlikely to be needed for any other reason, then don't do it
67350         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67351         size_t, since we assume C89 freestanding at least.  Do not check
67352         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67353         the right thing even if the types are not defined.  Instead use:
67354         (gl_STDINT_TYPE_PROPERTIES): New macro.
67355         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67356         testing whether <sys/types.h> clashes, as Autoconf does this for
67357         us now.  All uses removed.
67358         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67359         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67360         (gl_CHECK_TYPE_SAME):
67361         Remove; no longer needed.
67362         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67363         exists, since we'll return 0 anyway in that case.
67364         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67365
67366 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67367
67368         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67369         possible collision with system files.
67370         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67371         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67372         WCHAR_MIN and WCHAR_MAX in this case.
67373         (<stddef.h>): Do not include; no longer needed.
67374         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67375         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67376         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67377         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67378         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67379         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67380         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67381         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67382         !defined(__c99))]: Include in this case too, since it's harmless
67383         now.
67384         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67385         dangerous to do so.
67386         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67387         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67388         (_STDINT_MIN, _STDINT_MAX): New macros.
67389         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67390         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67391         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67392         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67393         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67394         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67395         macros, not typedefs; this simplifies things quite a bit.
67396         Use long int for all types narrower than int64_t.
67397         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67398         Define in terms of long long int or int64_t or long int,
67399         not int64_t or int32_t.  This saves some compile-time testing.
67400         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67401         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67402         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67403         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67404         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67405         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67406         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67407         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67408         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67409         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67410         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67411         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67412         undef any previous version and define our own version, for
67413         simplicity and consistency with the new macros for types.
67414         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67415         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67416         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67417         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67418         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67419         @WINT_T_SUFFIX@ to keep things simple here.
67420         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67421         Simplify by assuming typical 8/16/32/64 host, since we're
67422         already doing that elsewhere anyway.
67423         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67424         and assume long long int is 64 bits if available.  This
67425         speeds up 'configure'.
67426
67427 2006-07-01  Eric Blake  <ebb9@byu.net>
67428
67429         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67430         Reported by Andreas Buening.
67431
67432 2006-07-01  Eric Blake  <ebb9@byu.net>
67433
67434         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67435
67436 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67437
67438         * lib/getaddrinfo.c: fixed typo
67439
67440 2006-06-29  Jim Meyering  <jim@meyering.net>
67441
67442         * modules/strftime (Maintainer): Add my name, since with the
67443         FPRINTFTIME changes strftime.c has forked from glibc.
67444
67445 2006-06-29  Eric Blake  <ebb9@byu.net>
67446
67447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67448
67449 2006-06-29  Eric Blake  <ebb9@byu.net>
67450
67451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67452
67453 2006-06-29  Eric Blake  <ebb9@byu.net>
67454
67455         * lib/stat_.h: New file.
67456
67457 2006-06-29  Eric Blake  <ebb9@byu.net>
67458
67459         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67460         unused static function.
67461
67462 2006-06-29  Eric Blake  <ebb9@byu.net>
67463
67464         * doc/functions.texi (Function Portability): Document missing lstat
67465         on mingw.
67466
67467 2006-06-29  Eric Blake  <ebb9@byu.net>
67468
67469         * MODULES.html.sh: Add sys_stat.
67470         * modules/sys_stat: New module.
67471         * modules/mkstemp (Depends-on): Add sys_stat.
67472
67473 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67474
67475         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67476
67477 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67478
67479         * m4/c-bs-a.m4: Removed.
67480
67481 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67482
67483         * lib/strftime.c: Assume strftime() exists.
67484
67485 2006-06-29  Derek Price  <derek@ximbiot.com>
67486
67487         * modules/c-bs-a: Removed - \a is C89.
67488         * MODULES.html.sh: Remove c-bs-a.
67489
67490 2006-06-29  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/wcwidth (License): Change to LGPL.
67493
67494 2006-06-28  Simon Josefsson  <jas@extundo.com>
67495
67496         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67497         on _WIN32.
67498
67499         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67500         getnameinfo.
67501
67502 2006-06-28  Simon Josefsson  <jas@extundo.com>
67503
67504         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67505
67506 2006-06-28  Simon Josefsson  <jas@extundo.com>
67507
67508         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67509         functions there.  It will succeed on Windows XP, but on Windows
67510         2000 and (presumably) earlier, it will fail, and use the internal
67511         re-implementation.
67512         (use_win32_p): New function.
67513         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67514         Support AI_NUMERICSERV to disable getservbyname.
67515         (getnameinfo): New function, only supports
67516         NI_NUMERICHOST|NI_NUMERICSERV for now.
67517
67518         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67519         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67520         getnameinfo.
67521
67522 2006-06-28  Eric Blake  <ebb9@byu.net>
67523
67524         * modules/wcwidth: New file.
67525         * modules/mbchar (Depends-on): Add wcwidth.
67526         * modules/mbswidth (Depends-on): Add wcwidth.
67527         * MODULES.html.sh: Add wcwidth.
67528
67529 2006-06-28  Eric Blake  <ebb9@byu.net>
67530
67531         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67533
67534 2006-06-28  Eric Blake  <ebb9@byu.net>
67535
67536         * lib/xvasprintf.h: Fix comments.
67537
67538 2006-06-28  Eric Blake  <ebb9@byu.net>
67539
67540         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67541         * lib/mbswidth.c (wcwidth): Move from here...
67542         * lib/wcwidth.h: ...to this new file.
67543
67544 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67545
67546         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67547
67548         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67549         it's obsolete.
67550         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67551
67552 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67553
67554         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67555         Autoconf 2.60 says this stuff was obsolete.
67556
67557 2006-06-28  Bruno Haible  <bruno@clisp.org>
67558
67559         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67560
67561 2006-06-28  Bruno Haible  <bruno@clisp.org>
67562
67563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67564         gt_TYPE_WCHAR_T.
67565
67566 2006-06-28  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67569         declaration for wcwidth.
67570         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67571
67572 2006-06-28  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67575         (mkdir): Define using _mkdir.
67576
67577 2006-06-28  Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/getaddrinfo.h: Fix POSIX URL.
67580         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67581         _WIN32.
67582         (use_win32_p): Make static.
67583         (getaddrinfo): Reject service name if it is empty or does not consist
67584         solely of decimal digits, or if its value is > 65535.
67585         (getnameinfo): Remove useless casts.
67586
67587 2006-06-27  Simon Josefsson  <jas@extundo.com>
67588
67589         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67590         Eggert and Martin Lambers.
67591
67592 2006-06-27  Simon Josefsson  <jas@extundo.com>
67593
67594         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67595         Eggert and Martin Lambers.
67596
67597 2006-06-27  Bruno Haible  <bruno@clisp.org>
67598
67599         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67600         result to 0, not to empty.
67601         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67602
67603 2006-06-27  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67606
67607 2006-06-26  Simon Josefsson  <jas@extundo.com>
67608
67609         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67610         present.
67611
67612 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67615         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67617
67618 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67619
67620         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67621
67622 2006-06-26  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67625
67626 2006-06-26  Bruno Haible  <bruno@clisp.org>
67627
67628         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67629
67630 2006-06-26  Bruno Haible  <bruno@clisp.org>
67631
67632         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67633         SGI C compiler in pre-C99 mode.
67634         Suggested by Mark D. Baushke and Larry Jones.
67635
67636 2006-06-26  Bruno Haible  <bruno@clisp.org>
67637
67638         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67639         WCHAR_MAX.
67640         Reported by Mark D. Baushke and Larry Jones.
67641
67642 2006-06-26  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67645         in pre-C99 mode.
67646         Suggested by Mark D. Baushke and Larry Jones.
67647
67648 2006-06-23  Simon Josefsson  <jas@extundo.com>
67649             Bruno Haible  <bruno@clisp.org>
67650
67651         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67652         Emit mostlyclean-local rule.
67653         (func_emit_tests_Makefile_am): Likewise.
67654         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67655
67656 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67657
67658         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67659
67660 2006-06-23  Bruno Haible  <bruno@clisp.org>
67661
67662         * tests/test-stdint.c: Update to match ISO C 99 Technical
67663         Corrigendum 1.
67664
67665 2006-06-23  Bruno Haible  <bruno@clisp.org>
67666
67667         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67668
67669 2006-06-23  Bruno Haible  <bruno@clisp.org>
67670
67671         * lib/stdint_.h: Treat IRIX like OpenBSD.
67672
67673 2006-06-23  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67676         ISO C 99 Technical Corrigendum 1.
67677
67678 2006-06-22  Simon Josefsson  <jas@extundo.com>
67679
67680         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67681         MinGW.
67682
67683 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67686         needed.  Some compiler complained about some of them.  Problem reported
67687         by Larry Jones in
67688         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67689
67690 2006-06-21  Simon Josefsson  <jas@extundo.com>
67691
67692         * tests/test-getaddrinfo.c: New file.
67693
67694         * modules/getaddrinfo-tests: New file.
67695
67696         * MODULES.html.sh: Add inet_pton.
67697
67698         * modules/inet_pton: New file.
67699
67700 2006-06-21  Simon Josefsson  <jas@extundo.com>
67701
67702         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67703         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67704         of using the (limited) gnulib implementation on Windows XP.
67705
67706         * m4/inet_pton.m4: New file.
67707
67708 2006-06-21  Simon Josefsson  <jas@extundo.com>
67709
67710         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67711         variable.
67712
67713         * lib/socket_.h: Don't define WINVER.
67714
67715         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67716         slightly modified to work in gnulib.
67717
67718 2006-06-21  Simon Josefsson  <jas@extundo.com>
67719
67720         * doc/gnulib.texi (Windows sockets): Add.
67721
67722 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * lib/read-file.c (fread_file): Start with buffer allocation of
67725         0 bytes rather than 1 byte; this simplifies the code.
67726         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67727         code to free buffer and save/restore errno.
67728         (internal_read_file): Remove unused local.
67729
67730 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67733         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67734         Problem reported by Denis Excoffier in
67735         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67736
67737 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67738
67739         * modules/sys_socket, modules/socklen: Include sys/types since
67740         FreeBSD 4.x's sys/socket.h needs it.
67741
67742 2006-06-19  Simon Josefsson  <jas@extundo.com>
67743
67744         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67745
67746 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67749
67750 2006-06-19  Bruno Haible  <bruno@clisp.org>
67751
67752         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67753         and FULL_PATH_INTTYPES_H in angle brackets.
67754         Reported by Mark D. Baushke <mdb@gnu.org>.
67755
67756 2006-06-17  Eric Blake  <ebb9@byu.net>
67757
67758         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67759         errno.
67760
67761 2006-06-17  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67764         <sys/inttypes.h>.
67765
67766 2006-06-17  Bruno Haible  <bruno@clisp.org>
67767
67768         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67769         whether errno is declared. Assume <errno.h> declares errno.
67770
67771 2006-06-17  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67774
67775 2006-06-17  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67778         problem on Solaris 2.5.1.
67779
67780 2006-06-16  Eric Blake  <ebb9@byu.net>
67781
67782         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67783         * lib/unicodeio.c [!defined errno]: Likewise.
67784         * lib/strtol.c [!defined errno]: Likewise.
67785         * lib/strtod.c [!defined errno]: Likewise.
67786
67787 2006-06-15  Eric Blake  <ebb9@byu.net>
67788
67789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67790
67791 2006-06-15  Eric Blake  <ebb9@byu.net>
67792
67793         * config/srclist.txt (ssize_t.m4): Lose sync.
67794
67795 2006-06-15  Bruno Haible  <bruno@clisp.org>
67796
67797         * modules/stdint (Files): Include m4/full-header-path.m4,
67798         m4/size_max.m4, m4/wchar_t.m4.
67799         (Makefile.am): Many more substitutions.
67800         * modules/stdint-tests: New file.
67801         * tests/test-stdint.c: New file.
67802
67803 2006-06-15  Bruno Haible  <bruno@clisp.org>
67804
67805         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67806         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67807         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67808         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67809         gl_CHECK_TYPE_SAME): New macros.
67810
67811 2006-06-15  Bruno Haible  <bruno@clisp.org>
67812
67813         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67814
67815 2006-06-15  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/stdint_.h: Rewritten to be fully auto-configured.
67818         Fixes bug on HP-UX/IA64.
67819
67820 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * lib/getdate.y (__attribute__): Don't define if already defined.
67823         Problem reported by Larry Jones.
67824         * lib/utimens.c (__attribute__): Likewise.
67825
67826 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67829         reported by Andreas Schwab.
67830
67831 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67832             Bruno Haible  <bruno@clisp.org>
67833
67834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67835         check for the declaration of strnlen and a run test that exposes the
67836         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67837         rpl_strndup.
67838
67839 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67840             Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67843
67844 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67845
67846         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67847         compile test, for Tru64 4.0D.
67848
67849 2006-05-28  Karl Berry  <karl@gnu.org>
67850
67851         * config/srclist.txt (printf-args.c): lose sync.
67852
67853 2006-05-26  Martin Lambers  <marlam@marlam.de>
67854
67855         * lib/getpass.c: Updates the test for the native W32 API, and adds
67856         missing includes, thus fixing compilation warnings.
67857
67858 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67859
67860         * lib/exclude.c (exclude_fnmatch): New function.
67861         (excluded_file_name): Call exclude_fnmatch.
67862         * lib/exclude.h (excluded_file_name): New prototype
67863
67864 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * lib/tempname.c (small_open, large_open): New macros.
67867         (__open, __open64) [!_LIBC]: Remove.
67868         (__gen_tempname): Use small_open and large_open instead of __open
67869         and __open64.  This fixes a portability bug on HP-UX 11.11i
67870         reported by Simon Wing-Tang in
67871         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67872
67873 2006-05-24  Bruno Haible  <bruno@clisp.org>
67874
67875         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67876         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67877         Reported by Thorsten Maerz <torte@netztorte.de> via
67878         Aaron Stone <aaron@serendipity.cx>.
67879
67880 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67883         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67884         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67885         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67886         not really conditional on the cache.
67887         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67888
67889 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67892         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67893         (my_usleep): Don't mishandle maximum value.
67894
67895 2006-05-19  Jim Meyering  <jim@meyering.net>
67896
67897         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67898
67899 2006-05-17  Bruno Haible  <bruno@clisp.org>
67900
67901         Cygwin portability.
67902         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67903
67904 2006-05-17  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/stdint_.h: Fix recognition of Cygwin.
67907
67908 2006-05-15  Bruno Haible  <bruno@clisp.org>
67909
67910         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67911         on libtool patch by Ralf Wildenhues.
67912
67913 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67916         test for C99 conformance; (bool) 0.5 is an integer constant
67917         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67918         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67919
67920 2006-05-11  Simon Josefsson  <jas@extundo.com>
67921
67922         * m4/xvasprintf.m4: Fix obvious typo.
67923
67924 2006-05-11  Jim Meyering  <jim@meyering.net>
67925
67926         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67927         James Lemley.
67928
67929 2006-05-10  Simon Josefsson  <jas@extundo.com>
67930
67931         * lib/md4.c: Typo fix, update copyright years.
67932         (K1, K2): Don't use L because it turn computations into 64-bit on
67933         64-bit platforms.
67934
67935 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67938         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67939         unwanted sign propagation, e.g., on hosts with 64-bit int.
67940         There still are some problems with reeelly weird theoretical hosts
67941         (e.g., 33-bit int) but it's not worth worrying about now.
67942         * lib/sha1.c (rol): Likewise.
67943         (K1, K2, K3, K4): Remove unnecessary L suffix.
67944
67945 2006-05-10  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/des.c: Cast to avoid warnings.
67948
67949 2006-05-09  Bruno Haible  <bruno@clisp.org>
67950
67951         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67952         (Depends-on): Depend also on xsize, stdarg.
67953         (configure.ac): Add gl_XVASPRINTF.
67954
67955 2006-05-09  Bruno Haible  <bruno@clisp.org>
67956
67957         * m4/xvasprintf.m4: New file.
67958
67959 2006-05-09  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67962         (EOVERFLOW): Define fallback value.
67963         (xstrcat): New function.
67964         (xvasprintf): Recognize the special case of a string concatenation.
67965
67966 2006-05-08  Eric Blake  <ebb9@byu.net>
67967
67968         * gnulib-tool (func_version): Base copyright year on CVS date.
67969         (func_emit_copyright_notice): New function.
67970         (func_emit_lib_Makefile_am): Use it.
67971         (func_emit_tests_Makefile_am): Likewise.
67972         (func_import): Likewise.
67973
67974 2006-05-08  Bruno Haible  <bruno@clisp.org>
67975
67976         * modules/stdarg: New file.
67977         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67978
67979 2006-05-08  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/stdarg.m4: New file, from GNU gettext.
67982
67983 2006-05-08  Bruno Haible  <bruno@clisp.org>
67984
67985         * config/srclist.txt (build-aux/config.rpath): different from latest
67986         release.
67987
67988 2006-05-08  Bruno Haible  <bruno@clisp.org>
67989
67990         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67991
67992 2006-05-05  Jim Meyering  <jim@meyering.net>
67993
67994         * m4/warning.m4: New file, derived from bison's file by the same name.
67995
67996 2006-05-03  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/stdint_.h: Shorter URL.
67999         * lib/inttypes.h: Likewise.
68000
68001 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68004
68005 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * lib/verify.h: Document the internals better.  Most of this change
68008         was written by Bruno Haible.
68009
68010 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * doc/verify.texi: New file, partly based on a proposal by
68013         Bruno Haible.
68014
68015 2006-05-02  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68018         test from here...
68019         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68020
68021 2006-04-29  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68024         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68025
68026 2006-04-29  Bruno Haible  <bruno@clisp.org>
68027
68028         * gnulib-tool: Make --update option actually work.
68029
68030 2006-04-29  Bruno Haible  <bruno@clisp.org>
68031
68032         * doc/gcd.texi: New file.
68033         * doc/gnulib.texi: Include it.
68034
68035 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * lib/getdate.y (get_date): When adding relative date, start with the
68038         initial time, not with the result of the first mktime call.
68039
68040 2006-04-25  Bruno Haible  <bruno@clisp.org>
68041
68042         * gnulib-tool (func_import): Output the include directives in three
68043         blocks, sorted separately.
68044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68045
68046 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68049         to define main with arguments, for C++.  Reported by Eric Blake.
68050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68051         Prefer 'int main ()' to 'int main (void)', for C++.
68052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68053         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68054         for 'main', for C99 and C++.
68055
68056 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68059         Don't assume that exit status -1 is valid.
68060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68061         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68062         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68063         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68064         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68065         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68066         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68067         functions can be used without declaring them, or that you can
68068         exit with status -1.
68069         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68070
68071 2006-04-24  Karl Berry  <karl@gnu.org>
68072
68073         * config/srclist.txt (longdouble.m4): sync lost.
68074
68075 2006-04-24  Eric Blake  <ebb9@byu.net>
68076
68077         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68078
68079 2006-04-24  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68082         poll() implementation in AIX.
68083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68084
68085 2006-04-24  Bruno Haible  <bruno@clisp.org>
68086
68087         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68088         assigned exactly once.
68089
68090 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68091             Bruno Haible  <bruno@clisp.org>
68092
68093         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68094         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68095         for AM_CPPFLAGS.
68096
68097 2006-04-23  Bruno Haible  <bruno@clisp.org>
68098
68099         * modules/copy-file: Depend on unistd.
68100         * modules/execute: Likewise.
68101         * modules/fatal-signal: Likewise.
68102         * modules/findprog: Likewise.
68103         * modules/mkdtemp : Likewise.
68104         * modules/pipe: Likewise.
68105         * modules/wait-process: Likewise.
68106
68107 2006-04-23  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68110         condition was already detected.
68111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68112
68113 2006-04-23  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/copy-file.c: Include <unistd.h> unconditionally.
68116         * lib/execute.c: Likewise.
68117         * lib/fatal-signal.c: Likewise.
68118         * lib/findprog.c: Likewise.
68119         * lib/mkdtemp.c: Likewise.
68120         * lib/pipe.h: Likewise.
68121         * lib/pipe.c: Likewise.
68122         * lib/wait-process.h: Likewise.
68123
68124 2006-04-23  Bruno Haible  <bruno@clisp.org>
68125
68126         * gnulib-tool (func_usage): Fix --import description. Document
68127         --update.
68128         (func_import): Create temporary file in a temporary directory, if
68129         --dry-run is specified. Silence errors from 'grep' when there are no
68130         m4 files in $m4dir.
68131         (func_create_testdir): Silence errors from 'grep' when there are no
68132         m4 files in $m4dir.
68133         Reported by Karl Berry <karl@freefriends.org>.
68134
68135 2006-04-20  Bruno Haible  <bruno@clisp.org>
68136
68137         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68138         one argument, so that the code will be portable to Autoconf 2.60.
68139         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68140         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68141         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68142
68143 2006-04-19  Derek Price  <derek@ximbiot.com>
68144             Eric Blake  <ebb9@byu.net>
68145
68146         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68147         rather than "/full/path.h".  Update comment to match.  Shorten &
68148         generalize m4_translit call via AS_TR_CPP.
68149
68150 2006-04-19  Derek Price  <derek@ximbiot.com>
68151             Eric Blake  <ebb9@byu.net>
68152
68153         * lib/inttypes.h: Correct grammar in comment.
68154
68155 2006-04-18  Derek Price  <derek@ximbiot.com>
68156             Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * modules/inttypes: New file.
68159         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68160
68161 2006-04-18  Derek Price  <derek@ximbiot.com>
68162             Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68165         New files.
68166
68167 2006-04-18  Derek Price  <derek@ximbiot.com>
68168             Paul Eggert  <eggert@cs.ucla.edu>
68169
68170         * lib/inttypes.h: New file.
68171         * lib/strtoimax.c: Assume <inttypes.h>.
68172
68173 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68176         isn't mounted.  Problem reported by Kir Kolyshkin.
68177
68178 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68181         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68182         Derek R. Price.
68183         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68184         implementation.
68185
68186 2006-04-12  Eric Blake  <ebb9@byu.net>
68187
68188         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68189         is now done automatically by the corresponding Autoconf macro.
68190
68191 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68194         time_r.h.
68195
68196 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         Merge regex changes from libc, removing some of our
68199         POSIX-conformance changes that were rejected and redoing them in a
68200         less-intrusive way.
68201
68202         * lib/regcomp.c (re_compile_internal, init_dfa):
68203         Length arg is now size_t, not Idx.  All uses changed.
68204         (peek_token): Forward decl now says internal_function.
68205         (__re_error_msgid, __re_error_msgid_idx):
68206         Now static rather than extern with attribute_hidden.
68207         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68208         For some reason libc prefers K&R style defns for external functions.
68209         (regerror) [!defined _LIBC]: Likewise.
68210         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68211         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68212         (build_range_exp, build_collating_symbol):
68213         Use K&R-style defn.
68214         (re_compile_fastmap): Use '\0' to memset, not 0.
68215         (utf8_sb_map): Make the calculations more obvious.
68216         (init_dfa, parse_bracket_exp, build_charclass_op):
68217         Call calloc and cast result, as glibc does.
68218         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68219         (build_range_exp, build_collating_symbol):
68220         Now internal functions.
68221
68222         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68223
68224         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68225         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68226         Don't depend on VMS; depend on __VMS instead, for POSIX
68227         namespace cleanness.
68228         (regoff_t): Define to ssize_t, not long int.
68229
68230         Remove the REG_ macros named below.  Instead, make the old names
68231         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68232         __USE_GNU_REGEX.
68233         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68234         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68235         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68236         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68237         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68238         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68239         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68240         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68241         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68242         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68243         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68244         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68245         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68246         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68247         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68248         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68249         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68250         (REG_NREGS):
68251         Remove.  All uses replaced by the old RE_* names.
68252         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68253         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68254         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68255         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68256         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68257         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68258         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68259         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68260         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68261         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68262         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68263         Don't bother having these macros be independent of each others'
68264         values, since they no longer exist in the POSIX name space.
68265
68266         Rename the following member names back to their old names,
68267         unless !__USE_GNU_REGEX.  All uses changed back.
68268         (buffer): Renamed from re_buffer.
68269         (allocated): Renamed from re_allocated.
68270         (used): Renamed from re_used.
68271         (syntax): Renamed from re_syntax.
68272         (fastmap): Renamed from re_fastmap.
68273         (translate): Renamed from re_translate.
68274         (can_be_null): Renamed from re_can_be_null.
68275         (regs_allocated): Renamed from re_regs_allocated.
68276         (fastmap_accurate): Renamed from re_fastmap_accurate.
68277         (no_sub): Renamed from re_no_sub.
68278         (not_bol): Renamed from re_not_bol.
68279         (not_eol): Renamed from re_not_eol.
68280         (newline_anchor): Renamed from re_newline_anchor.
68281         (num_regs): Renamed from rm_num_regs.
68282         (start): Renamed from rm_start.
68283         (end): Renamed from rm_end.
68284
68285         (free_state): Move up a bit.
68286
68287         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68288         #define to be empty.
68289         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68290         when that is what is intended.
68291         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68292         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68293         (MAX): New macro.
68294         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68295         All uses changed back to re_malloc, etc.  It's now the caller's
68296         responsibility to check for overflow; all callers changed.
68297         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68298         (re_x2nrealloc): Remove.
68299         (free_state): Remove decl.
68300
68301         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68302         (re_set_registers, re_exec):
68303         Use K&R-style defn.
68304
68305         2006-01-31  Roland McGrath  <roland@redhat.com>
68306
68307         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68308         Reported by Mike Frysinger <vapier@gentoo.org>.
68309
68310         2006-01-15  Andreas Jaeger  <aj@suse.de>
68311
68312         [BZ #1950]
68313         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68314         build_wcs_upper_buffer change.
68315         (build_wcs_upper_buffer): Change return type.
68316
68317         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68318
68319         * lib/regex_internal.h: Include <stdint.h> if available.
68320
68321         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68322
68323         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68324
68325         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68326
68327         * lib/regcomp.c: Adjust for changed secondary hash function.
68328
68329         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68330
68331         * lib/regex.h: Pretty printing.
68332         Clean up namespace a bit.
68333
68334         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68335
68336         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68337         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68338
68339         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68340                     Ulrich Drepper  <drepper@redhat.com>
68341
68342         [BZ #1302]
68343         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68344         changed.
68345         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68346
68347         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68348
68349         [BZ #281]
68350         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68351         * lib/regcomp.c: Remove unnecessary uses of
68352         unsigned RE_TRANSLATE_TYPE.
68353         * lib/regex_internal.h: Likewise.
68354         * lib/regex_internal.c: Likewise.
68355         * lib/regexec.c: Likewise.
68356         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68357
68358         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68359
68360         * lib/regexec.c (find_recover_state): Remove unnecessary
68361         initialization.
68362         (transit_state_bkref): Make DFA a const pointer.
68363         (get_subexp): Likewise.
68364         (check_arrival): Likewise.
68365         (update_cur_sifted_state): Likewise.
68366         (re_search_internal): Likewise.
68367         (prune_impossible_nodes): Likewise.
68368         (acquire_init_state_context): Likewise.
68369         (proceed_next_node): Likewise.
68370         (set_regs): Likewise.
68371         (free_fail_stack_return): Likewise.
68372         (check_arrival_expand_ecl): Mark DFA parameter as const.
68373         (check_arrival_expand_ecl_sub): Likewise.
68374         (check_subexp_limits): Likewise.
68375         (sub_epsilon_src_nodes):  Likewise.
68376         (add_epsilon_src_nodes):  Likewise.
68377         (merge_state_array): Likewise.
68378         (update_regs): Likewise.
68379         (build_trtable): Likewise.
68380         (sift_states_backward): Mark MCTX parameter as const.
68381         (build_sifted_states): Likewise.
68382         (update_cur_sifted_state): Likewise.
68383         (sift_states_mkref): Likewise.
68384         (check_arrival_expand_ecl): Mark eclosure as const.
68385         (check_dst_limits_calc_pos_1): Likewise.
68386         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68387         pointer.
68388
68389         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68390
68391         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68392         (transit_state_sb): Likewise.
68393         (transit_state_mb): Likewise.
68394         (sift_states_iter_mb): Likewise.
68395         (check_arrival_add_next_nodes): Likewise.
68396         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68397         [_LIBC] (re_search_2_stub): Use mempcpy.
68398
68399         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68400         mbrtowc for very simple UTF-8 case.
68401
68402         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68403         a pointer-to-const.
68404         (re_acquire_state_context): Likewise.
68405         * lib/regex_internal.h: Adjust prototypes.
68406
68407         * lib/regex.c: Prevent using C++ compilers.
68408
68409         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68410         (re_acquire_state_context): Likewise.
68411
68412 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * modules/regex (Depends-on): Add ssize_t.
68415
68416 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68419         translation table.
68420
68421 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68424
68425 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68426             Bruno Haible  <bruno@clisp.org>
68427
68428         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68429         <sys/types.h> and <inttypes.h>.
68430
68431 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68432
68433         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68434         `__error_t_defined', so argp.h will not typedef the former.
68435
68436 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68439         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68440         glibc names.  Even if glibc is changed to conform to POSIX, the
68441         traditional names will be available anyway, since regex depends on
68442         the extensions module.  Also, fix a longstanding typo in the
68443         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68444         reported by Emanuele Giaquinta.  Also, change sense of cached
68445         variable, so that the message makes sense.
68446
68447 2006-03-24  Simon Josefsson  <jas@extundo.com>
68448
68449         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68450         including some doc fixes.
68451         (base64_encode_alloc): Fix +1 bug on allocation failures.
68452
68453 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68454
68455         * lib/base64.c (base64_encode): Do not read past end of array with
68456         unsanitized input on systems with CHAR_BIT > 8.
68457
68458 2006-03-24  Eric Blake  <ebb9@byu.net>
68459
68460         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68461
68462 2006-03-22  Karl Berry  <karl@gnu.org>
68463
68464         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68465         * config/srclistvars.sh (COREUTILS): new var.
68466
68467 2006-03-17  Jim Meyering  <jim@meyering.net>
68468
68469         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68470         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68471
68472 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68475         no longer needs it.  Instead, check that regoff_t is as least
68476         as wide as ptrdiff_t.
68477
68478         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68479         so that our regex.h stays compatible with the installed regex.
68480         This is helpful for installers who configure --without-included-regex.
68481         Problem reported by Emanuele Giaquinta.
68482
68483 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68484
68485         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68486         Typedef to long int, not to off_, as POSIX will likely change
68487         in that direction.
68488
68489 2006-03-15  Eric Blake  <ebb9@byu.net>
68490
68491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68492
68493 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68494
68495         * lib/argp-help.c (validate_uparams): Fix typo
68496         * lib/argp-parse.c (argp_default_options): Consistently begin help
68497         messages with a lowercase letter.
68498
68499 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68502         overrun buffers and shouldn't be used (much as gets shouldn't be
68503         used).
68504         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68505
68506 2006-03-08  Simon Josefsson  <jas@extundo.com>
68507
68508         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68509         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68510
68511 2006-03-08  Simon Josefsson  <jas@extundo.com>
68512
68513         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68514         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68515
68516 2006-03-08  Simon Josefsson  <jas@extundo.com>
68517
68518         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68519         signal that configure disabled the device.
68520
68521 2006-03-08  Simon Josefsson  <jas@extundo.com>
68522
68523         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68524         languages.
68525
68526 2006-03-07  Simon Josefsson  <jas@extundo.com>
68527
68528         * modules/getopt (Depends-on): Add unistd.
68529
68530         * modules/unistd: New file.
68531
68532 2006-03-07  Simon Josefsson  <jas@extundo.com>
68533
68534         * modules/gc-random: New file.
68535
68536 2006-03-07  Simon Josefsson  <jas@extundo.com>
68537
68538         * m4/unistd_h.m4: New file.
68539
68540 2006-03-07  Simon Josefsson  <jas@extundo.com>
68541
68542         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68543         test to be side-effect free by storing the result in the cache
68544         variable gl_cv_lib_readline, and moving the assignment of
68545         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68546         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68547
68548 2006-03-07  Simon Josefsson  <jas@extundo.com>
68549
68550         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68551         error on missing devices (the functions will return an error).
68552
68553         * m4/gc.m4: Move random stuff to gc-random.m4
68554
68555 2006-03-07  Simon Josefsson  <jas@extundo.com>
68556
68557         * lib/unistd_.h: New file.
68558
68559 2006-03-07  Simon Josefsson  <jas@extundo.com>
68560
68561         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68562
68563 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68566         Problem reported by Juan Manuel Guerrero.
68567
68568 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68571         the unistd module.
68572         * lib/getlogin_r.c: Likewise.
68573         * lib/getlogin_r.h: Likewise.
68574         * lib/glob.c: Likewise.
68575         * lib/pagealign_alloc.c: Likewise.
68576         * lib/unistd_.h: Remove; no longer needed.
68577
68578 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68581         Add unistd.
68582         * modules/c-stack (Depends-on): Add unistd.
68583         * modules/getlogin_r: Likewise.
68584         * modules/glob: Likewise.
68585         * modules/pagealign_alloc: Likewise.
68586         * modules/unistd (Files): Remove lib/unistd_.h.
68587         (EXTRA_DIST): Remove.
68588         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68589         need unistd_.h.
68590         (MOSTLYCLEANFILES): Remove unistd.h-t.
68591
68592 2006-03-03  Simon Josefsson  <jas@extundo.com>
68593
68594         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68595
68596 2006-03-03  Simon Josefsson  <jas@extundo.com>
68597
68598         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68599         libidn and bison.
68600
68601 2006-03-03  Simon Josefsson  <jas@extundo.com>
68602
68603         * build-aux/maint.mk: Add indent target.
68604
68605 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68606
68607         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68608         our replacement poll.h in any case, to avoid a differing
68609         declaration from a system header.  Seen on AIX.
68610
68611 2006-03-01  Simon Josefsson  <jas@extundo.com>
68612
68613         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68614         <kasal@ucw.cz>.
68615
68616 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * modules/gettime (Depends-on): Add extensions module.
68619         * modules/nanosleep (Depends-on): Likewise.
68620         * modules/settime (Depends-on): Likewise.
68621
68622 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68625         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68626         pedantically.
68627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68628         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68629
68630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68631         not "==".  Reported by Ralf Wildenhues.
68632
68633 2006-03-01  Karl Berry  <karl@gnu.org>
68634
68635         * doc/Copyright/request-*: new files, synced from gnuorg.
68636
68637 2006-03-01  Karl Berry  <karl@gnu.org>
68638
68639         * config/srclist.txt (Copyright/*): new entries.
68640
68641 2006-02-28  Simon Josefsson  <jas@extundo.com>
68642
68643         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68644
68645 2006-02-27  Simon Josefsson  <jas@extundo.com>
68646
68647         * lib/base64.h: Indent #define's.  From Jim Meyering
68648         <jim@meyering.net>.
68649
68650 2006-02-27  Jim Meyering  <jim@meyering.net>
68651
68652         Revert the change of 2006-02-24, so these files can continue
68653         to be sync'd from gettext.
68654         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68655         of `config.h'.
68656
68657 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * modules/intprops: New file.
68660         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68661         Add intprops.
68662         * modules/getloadavg (Files): Remove lib/intprops.h.
68663         (Depends-on): Add intprops.
68664         * modules/human: Likewise.
68665         * modules/inttostr: Likewise.
68666         * modules/openat: Likewise.
68667         * modules/sig2str: Likewise.
68668         * modules/userspec: Likewise.
68669         * modules/utimecmp: Likewise.
68670         * modules/xnanosleep: Likewise.
68671         * modules/xstrtol: Likewise.
68672
68673 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68674
68675         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68676         * modules/lock-tests (TESTS): Use $(EXEEXT).
68677         * modules/tls-tests: Likewise.
68678         * modules/argp-tests: Likewise.
68679         (check_PROGRAMS): New var, replacing...
68680         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68681
68682 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68683
68684         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68685         `config.h'.
68686
68687 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68690
68691 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68692
68693         Sync from coreutils.
68694         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68695         gl_CHDIR_SAFER.
68696
68697 2006-02-22  Jim Meyering  <jim@meyering.net>
68698
68699         Sync from coreutils.
68700         * m4/chdir-safer.m4: New file.
68701
68702 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68705         AT_FDCWD exceeds INT_MAX.
68706         * lib/openat.h (AT_FDCWD): Likewise.
68707
68708 2006-02-17  Eric Blake  <address@hidden>
68709
68710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68711
68712 2006-02-16  Simon Josefsson  <jas@extundo.com>
68713
68714         * modules/getaddrinfo (Depends-on): Add sys_socket.
68715
68716 2006-02-15  Simon Josefsson  <jas@extundo.com>
68717
68718         * build-aux/maint.mk: Add dsyntax-check rule.
68719
68720 2006-02-15  Eric Blake  <ebb9@byu.net>
68721
68722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68723         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68724         'present but cannot compile' warnings on cygwin.
68725         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68726         use ws2tcpip.h if sys/socket.h works.
68727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68728         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68729
68730 2006-02-14  Simon Josefsson  <jas@extundo.com>
68731
68732         * modules/maintainer-makefile (Files): Rename.
68733
68734         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68735         and (the local) Makefile.cfg to maint-cfg.mk.
68736
68737         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68738         to the latter.
68739
68740         * modules/maintainer-makefile: New module.
68741
68742         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68743         severaly stripped to make it possible to build it up from scratch
68744         with reliable tests.
68745
68746         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68747         fixes to permit overriding the default actions when configure and
68748         makefile are not available.
68749
68750 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         Sync from coreutils.
68753         * modules/lstat (Depends-on): Don't depend on xalloc.
68754         (License): Change from GPL to LGPL, since this is now simply a
68755         replacement for a libc function.
68756
68757 2006-02-14  Jim Meyering  <jim@meyering.net>
68758
68759         Sync from coreutils.
68760
68761         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68762         failure on deficient systems, and simplify gnulib lgpl dependencies.
68763         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68764         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68765
68766         * lib/xalloc-die.c: Remove unused definition of N_.
68767
68768 2006-02-14  Jim Meyering  <jim@meyering.net>
68769
68770         Sync from coreutils.
68771         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68772         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68773         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68774         double-quote uses of that variable, to accommodate the rare case in
68775         which getmntent is available in none of the libraries checked.  This
68776         happens at least on FreeBSD 5.0.
68777
68778 2006-02-13  Simon Josefsson  <jas@extundo.com>
68779
68780         * gnulib-tool (Usage): Fix --import, from
68781         karl@freefriends.org (Karl Berry).
68782
68783 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68784
68785         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68786
68787 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68788
68789         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68790         "autoupdate" on 2005-12-12.
68791
68792 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         * modules/closeout (Depends-on): Remove atexit.
68795
68796 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68799         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68800
68801 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68802
68803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68804         __EXTENSIONS__ if this causes compilation to fail.  Problem
68805         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68806         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68807
68808 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68811         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68813         All uses changed.
68814
68815 2006-01-26  Simon Josefsson  <jas@extundo.com>
68816
68817         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68818         prototype is visible on mingw32.
68819
68820         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68821         for mingw32.
68822
68823         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68824         mingw32).
68825
68826 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68829         attempt to open for write; this always fails, at least on POSIX
68830         hosts.  This reinstates the 2006-01-09 change, which was
68831         inadvertently removed.
68832
68833 2006-01-26  Bruno Haible  <bruno@clisp.org>
68834
68835         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68836         Reported by Paul Eggert.
68837
68838 2006-01-26  Bruno Haible  <bruno@clisp.org>
68839             Paul Eggert  <eggert@cs.ucla.edu>
68840
68841         * lib/stdbool_.h (_Bool)
68842         [(! (defined __cplusplus || defined __BEOS__)
68843           && !defined __GNUC__
68844           && !(defined __HP_cc || defined __xlc__
68845                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68846                || defined __sgi))]:
68847         #define to signed char in these cases too; this simplifies
68848         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68849         etc., separately) and makes it more conservative.
68850
68851 2006-01-25  Simon Josefsson  <jas@extundo.com>
68852
68853         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68854         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68855         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68856
68857 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68858
68859         * lib/argp-namefrob.h: Bugfix. Remove stray #
68860
68861 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68864         so that we test the test.
68865         Check for yet another HP-UX cc bug involving *bool |= bool.
68866
68867 2006-01-25  Karl Berry  <karl@gnu.org>
68868
68869         * config/srclist.txt (vasnprintf.c): sync lost.
68870
68871 2006-01-25  Jim Meyering  <jim@meyering.net>
68872
68873         Sync from the stable (b5) branch of coreutils:
68874
68875         * lib/fts.c (fts_children): Don't let close() clobber errno from
68876         failed fchdir().
68877
68878         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68879         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68880         a dangling symlink.  That can also happen at least for ELOOP.
68881         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68882         FYI, this bug predates the inclusion of fts.c in coreutils.
68883
68884         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68885         in their own block, so pre-c99 compilers don't object.
68886
68887         Avoid the double-free (first in fts_read, second in fts_close) that
68888         would occur when an `active' directory is made inaccessible (e.g.,
68889         via chmod a-x) during a traversal.
68890         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68891         before returning.  Reproduce this failure by
68892         mkdir -p a/b; cd a; chmod a-x . b
68893         Reported by Stavros Passas.
68894
68895 2006-01-25  Jim Meyering  <jim@meyering.net>
68896
68897         * lib/fileblocks.c: Remove more useless parentheses.
68898         * lib/readutmp.h: Likewise.
68899
68900 2006-01-25  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68903         warnings.
68904         Reported by Paul Eggert.
68905
68906 2006-01-25  Bruno Haible  <bruno@clisp.org>
68907
68908         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68909         rid of a trap command. For Solaris sh.
68910         Reported by Mark D. Baushke <mdb@gnu.org>.
68911
68912 2006-01-24  Simon Josefsson  <jas@extundo.com>
68913
68914         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68915         Bruno.
68916
68917 2006-01-24  Karl Berry  <karl@gnu.org>
68918
68919         * config/srclist.txt (argp-namefrob.h): sync lost.
68920
68921 2006-01-24  Jim Meyering  <jim@meyering.net>
68922
68923         * modules/openat (Files): Add lib/intprops.h.
68924         From Mark D. Baushke.
68925
68926 2006-01-24  Jim Meyering  <jim@meyering.net>
68927
68928         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68929         Reported by Mark D. Baushke.
68930
68931 2006-01-24  Jim Meyering  <jim@meyering.net>
68932
68933         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68934
68935 2006-01-24  Bruno Haible  <bruno@clisp.org>
68936
68937         * modules/strnlen (Maintainer): Change from glibc to all.
68938
68939 2006-01-24  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68942         Patch by Paul Eggert.
68943
68944 2006-01-24  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68947         already has it.
68948         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68949         2005-11-26.
68950
68951         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68952         'signed char' to avoid problems with the built-in _Bool type.
68953         Reported by Paul Eggert on 2005-11-26.
68954
68955 2006-01-24  Bruno Haible  <bruno@clisp.org>
68956
68957         * gnulib-tool (func_import): Avoid constructing complicated sed
68958         expressions inside backquote.
68959         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68960
68961 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68962
68963         These changes imported from libc.
68964         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68965         test and two separate function calls.
68966         * lib/strndup.c (__strndup): Add libc_hidden_def.
68967
68968 2006-01-23  Simon Josefsson  <jas@extundo.com>
68969
68970         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68971         Remove the test_*_SOURCES variable: automake infers it by default.
68972         * modules/tls-tests: Likewise.
68973
68974 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         Work around porting bugs reported by Dieter in
68977         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68978         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68979         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68980         Include "getopt.h" first, to check interface.
68981         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68982         !HAVE_DECL_GETENV.
68983         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68984         (__strndup): Revert to K&R-style function dfns, the glibc style.
68985         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68986         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68987         Include strnlen.h first, to get prototype properly.
68988         (strnlen): Renamed from __strnlen.
68989         Remove weak alias.
68990
68991 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68994
68995 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * config/srclist.txt: Adjust to reflect glibc reorganization.
68998         This affects only comments.
68999
69000 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69001
69002          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69003          Reported by Bruce Korb <bkorb@gnu.org>.
69004
69005 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69008         to pacify gcc -Wswitch-default.
69009
69010 2006-01-22  Bruno Haible  <bruno@clisp.org>
69011
69012         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69013         temporary buffer for sprintf, take into account the precision also
69014         for 'd', 'i', 'u', 'o', 'x', 'X'.
69015
69016 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69017
69018         * modules/argp-tests: New module
69019         * tests/test-argp.c: New file
69020         * tests/test-argp-2.sh: New file
69021
69022 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69023
69024         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69025         (__argp_base_name): Removed
69026         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69027         typo.
69028         (__argp_base_name): Provide macro definition or extern declaration
69029         depending on the configuration
69030
69031 2006-01-20  Simon Josefsson  <jas@extundo.com>
69032
69033         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69034
69035 2006-01-20  Simon Josefsson  <jas@extundo.com>
69036
69037         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69038
69039 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69042         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69043         Suggested by Bruno Haible.
69044
69045 2006-01-20  Karl Berry  <karl@gnu.org>
69046
69047         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69048         until changes propagate, I guess.
69049
69050 2006-01-19  Simon Josefsson  <jas@extundo.com>
69051
69052         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69053
69054 2006-01-19  Simon Josefsson  <jas@extundo.com>
69055
69056         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69057
69058 2006-01-19  Simon Josefsson  <jas@extundo.com>
69059
69060         * gnulib-tool: Set check_PROGRAMS.
69061
69062         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69063         modules/des-tests, modules/gc-arcfour-tests,
69064         modules/gc-arctwo-tests, modules/gc-des-tests,
69065         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69066         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69067         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69068         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69069         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69070         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69071         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69072         test_*_SOURCES.
69073
69074 2006-01-18  Simon Josefsson  <jas@extundo.com>
69075
69076         * modules/socklen (Depends-on): Depend on sys_socket.
69077
69078 2006-01-18  Simon Josefsson  <jas@extundo.com>
69079
69080         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69081         modules/des-tests, modules/gc-arcfour-tests,
69082         modules/gc-arctwo-tests, modules/gc-des-tests,
69083         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69084         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69085         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69086         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69087         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69088         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69089         $(EXEEXT) to automake TESTS variable, for mingw32.
69090
69091 2006-01-17  Simon Josefsson  <jas@extundo.com>
69092
69093         * modules/socklen (Include): Need sys/socket.h.
69094
69095 2006-01-17  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/ssize_t (Include): Add <sys/types.h>.
69098
69099 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69102         it's not portable and it doesn't work with cross-compiles.
69103         Problem reported by Bruno Haible.  Fix missing-$ typo in
69104         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69105         -zignore from being used with Sun's C compiler.
69106
69107 2006-01-12  Simon Josefsson  <jas@extundo.com>
69108
69109         * lib/base64.c: Fix warning, reported by Bruno Haible
69110         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69111
69112 2006-01-12  Bruno Haible  <bruno@clisp.org>
69113
69114         * modules/ldd: New file.
69115         * build-aux/ldd.sh.in: New file.
69116         * MODULES.html.sh (Support for building libraries and executables): Add
69117         ldd.
69118
69119 2006-01-12  Bruno Haible  <bruno@clisp.org>
69120
69121         * m4/ldd.m4: New file.
69122
69123 2006-01-12  Bruno Haible  <bruno@clisp.org>
69124
69125         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69126         endless loop while replacing $auxdir with build-aux.
69127
69128 2006-01-11  Simon Josefsson  <jas@extundo.com>
69129
69130         * lib/stdint_.h (SIZE_MAX): Add missing (.
69131
69132 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         Sync from coreutils.
69135         * lib/md5.c: Fix commentary typos.
69136         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69137         * lib/md5.h (__attribute__): Remove; unused.
69138         * lib/sha1.c: Fix commentary to match md5 better.
69139         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69140         so that we don't need to worry about alignment.  All uses changed.
69141         This merges the 2005-10-28 md5 change into sha1.
69142
69143 2006-01-11  Jim Meyering  <jim@meyering.net>
69144
69145         Sync from coreutils.
69146         * lib/md5.c (OP): Fix spacing.
69147
69148 2006-01-11  Bruno Haible  <bruno@clisp.org>
69149
69150         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69151         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69152         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69153
69154 2006-01-11  Bruno Haible  <bruno@clisp.org>
69155
69156         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69157         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69158         the "early" section as well.
69159
69160 2006-01-11  Bruno Haible  <bruno@clisp.org>
69161
69162         Avoid "ar: no archive members specified" error on MacOS X.
69163         * gnulib-tool (func_modules_add_dummy): New function.
69164         (func_import, func_create_testdir): Invoke it.
69165
69166 2006-01-11  Bruno Haible  <bruno@clisp.org>
69167
69168         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69169         with $auxdir in AC_CONFIG_FILES statements.
69170
69171 2006-01-11  Bruno Haible  <bruno@clisp.org>
69172
69173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69174         Initialize also noinst_HEADERS to empty.
69175
69176 2006-01-11  Bruno Haible  <bruno@clisp.org>
69177
69178         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69179         variables.
69180         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69181         autoreconf.
69182
69183 2006-01-11  Bruno Haible  <bruno@clisp.org>
69184
69185         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69186         overridable by the user.
69187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69188
69189 2006-01-10  Simon Josefsson  <jas@extundo.com>
69190
69191         * modules/sys_socket: New file.
69192
69193 2006-01-10  Simon Josefsson  <jas@extundo.com>
69194
69195         * m4/sys_socket_h.m4: New file.
69196
69197 2006-01-10  Simon Josefsson  <jas@extundo.com>
69198
69199         * lib/socket_.h: New file.
69200
69201 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * modules/readutmp (Maintainer): Add myself.
69204
69205 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69208         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69209         People who are still concerned with buggy memcmp implementations
69210         can invoke gl_FUNC_MEMCMP themselves.
69211
69212 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * lib/regex_internal.h (BITSET_WORD_BITS):
69215         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69216         preprocessor mishandles large unsigned values as if they were signed.
69217         Problem reported by Claudio Fontana in
69218         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69219
69220 2006-01-10  Jim Meyering  <jim@meyering.net>
69221
69222         Avoid the double-free (first in fts_read, second in fts_close) that
69223         would occur when an `active' directory is made inaccessible (e.g.,
69224         via chmod a-x) during a traversal.
69225         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69226         before returning.  Reproduce this failure by
69227         mkdir -p a/b; cd a; chmod a-x . b
69228         Reported by Stavros Passas.
69229
69230         Sync from coreutils.
69231         * lib/sha1.c: Tweak grammar in a comment.
69232
69233 2006-01-10  Jim Meyering  <jim@meyering.net>
69234
69235         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69236         Patch by Joerg Sonnenberger.
69237
69238 2006-01-10  Bruno Haible  <bruno@clisp.org>
69239
69240         * modules/readutmp: Depend on module free.
69241         * modules/strtok_r: Depend on module restrict.
69242
69243 2006-01-10  Bruno Haible  <bruno@clisp.org>
69244
69245         * modules/gettext (configure.ac): Add an invocation of
69246         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69247
69248 2006-01-10  Bruno Haible  <bruno@clisp.org>
69249
69250         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69251         Reported by Werner Lemberg <wl@gnu.org>.
69252
69253 2006-01-10  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/localcharset.c: Update from GNU gettext.
69256
69257 2006-01-10  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/argp.h (__const): Remove macro. Use const instead.
69260         * lib/argp-fmtstream.h (__const): Likewise.
69261         * lib/glob_.h (__const): Remove macro.
69262         * lib/glob-libc.h: Use const instead of __const.
69263
69264 2006-01-10  Bruno Haible  <bruno@clisp.org>
69265
69266         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69267         variable.
69268         Needed to avoid an automake error regarding the 'gettext' module.
69269
69270 2006-01-09  Simon Josefsson  <jas@extundo.com>
69271
69272         * modules/inet_ntop (Depends-on): Add restrict.
69273
69274 2006-01-09  Simon Josefsson  <jas@extundo.com>
69275
69276         * modules/gc-rijndael-tests (License): Put under LGPL.
69277
69278         * modules/gc-des-tests (License): Likewise.
69279
69280         * modules/gc-arcfour-tests (License): Likewise.
69281
69282         * modules/gc-arctwo-tests (License): Likewise.
69283
69284         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69285
69286         * modules/gc-hmac-sha1-tests (Files): Likewise.
69287
69288         * modules/gc-hmac-md5-tests (License): Likewise.
69289
69290         * modules/gc-sha1-tests (License): Likewise.
69291
69292         * modules/gc-md5-tests (License): Likewise.
69293
69294         * modules/gc-md4-tests (License): Likewise.
69295
69296         * modules/gc-md2-tests (License): Likewise.
69297
69298         * modules/gc-tests (License): Likewise.
69299
69300         * modules/des-tests (License): Likewise.
69301
69302         * modules/md4-tests (License): Likewise.
69303
69304         * modules/md2-tests (License): Likewise.
69305
69306 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         Sync from coreutils:
69309
69310         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69311         * modules/lib-ignore: New file.
69312         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69313         chdir-safer.m4, lchmod.m4.
69314         * modules/openat: Add mkdirat.c, openat-priv.h.
69315
69316 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         Sync from coreutils.
69319         * m4/lib-ignore.m4: New file.
69320         * m4/lchmod.m4: New file.
69321
69322 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         Sync from coreutils.
69325         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69326         for write access: POSIX says that must fail.
69327         * lib/fts.c (diropen): Likewise.
69328         * lib/save-cwd.c (save_cwd): Likewise.
69329         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69330         well, for minor improvements on hosts that lack O_DIRECTORY.
69331         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69332         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69333         Fall back on chown if open failed with EACCES.
69334
69335         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69336         Report an error at compile-time if only a 1-second nominal clock
69337         resolution is found.
69338
69339         * lib/lchmod.h: New file.
69340         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69341         (make_dir_parents): Use lchown rather than chown, and
69342         lchmod rather than chmod.
69343
69344         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69345         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69346         "proc" reported by n0dalus.
69347
69348         * lib/mountlist.c: Include <limits.h>.
69349         (dev_from_mount_options)
69350         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69351         New function.  It no longer assumes "dev=" has the System V meaning
69352         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69353         (read_file_system_list)
69354         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69355         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69356         dev= in that case.
69357
69358         * lib/posixtm.h (PDS_PRE_2000): New macro.
69359         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69360         allow_century.  All usages changed.  Reject dates outside the range
69361         1969-1999 if PDS_PRE_2000 is used.
69362
69363 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         Sync from coreutils.
69366         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69367         (Time of day items): Mention the possibility of leap seconds.
69368         Problem reported by Dr. David Alan Gilbert.
69369
69370 2006-01-09  Jim Meyering  <jim@meyering.net>
69371
69372         Sync from coreutils.
69373
69374         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69375
69376         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69377
69378         * lib/modechange.c (mode_compile): Reject an invalid mode string
69379         that starts with an octal digit.  From Andreas Gruenbacher.
69380
69381         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69382         and dup to open_safer and dup_safer, respectively.
69383         (openat_permissive): Fix typo in comment.
69384
69385         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69386         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69387         (_): Remove; no longer needed.
69388         (openat): Renamed from rpl_openat; no need for rpl_openat
69389         since openat.h renames openat for us.
69390         Replace most of the body with a call to openat_permissive,
69391         to avoid duplicate code.
69392         Port to (probably hypothetical) environments were mode_t is
69393         wider than int.
69394         (openat_permissive): Require mode arg, so that we can check
69395         types better.  Put it just after flags.  Change cwd failure
69396         indicator from pointer-to-bool to pointer-to-errno-value.
69397         All callers changed.
69398         Invoke openat_save_fail and/or openat_restore_fail if
69399         cwd_errno is null, so that openat can call us.
69400         (openat_permissive, fdopendir, fstatat, unlinkat):
69401         Simplify errno handling to avoid some duplicate code,
69402         as it's OK to set errno on success.
69403         * lib/openat.h: Revamp code so that function macros depend on
69404         __OPENAT_PREFIX only, not also on AT_FDCWD.
69405         (openat_ro): Remove.  Caller changed to use openat_permissive.
69406         (openat_permissive): Now a macro, if not a function.
69407         (openat_restore_fail, openat_save_fail): Now always functions,
69408         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69409
69410         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69411         and openat.c.
69412         * lib/mkdirat.c: Include openat-priv.h.
69413         Remove definitions of macros defined therein.
69414         * lib/openat.c: Likewise.
69415
69416         * lib/mkdirat.c (mkdirat): New file and function.
69417         * lib/openat.h (mkdirat): Declare.
69418
69419         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69420
69421         * lib/openat.h (openat_permissive): Declare.
69422         (openat_ro): Define.
69423
69424         * lib/openat.c (EXPECTED_ERRNO): New macro.
69425         (openat_permissive): New function -- used in remove.c rewrite.
69426         (all functions): Set errno just before returning, only if there
69427         was an actual failure.
69428         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69429
69430         Emulate openat-family functions using Linux's procfs, if possible.
69431         Idea and some code based on Ulrich Drepper's glibc changes.
69432
69433         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69434         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69435         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69436         before falling back on save_cwd and restore_cwd.
69437         (fdopendir, fstatat, unlinkat): Likewise.
69438
69439         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69440         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69441
69442         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69443         as second argument to va_arg.  Otherwise, some versions of gcc
69444         warn that `if this code is reached, the program will abort'.
69445
69446 2006-01-09  Jim Meyering  <jim@meyering.net>
69447
69448         Sync from coreutils.
69449         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69450         Require openat-priv.h.
69451
69452 2006-01-09  Bruno Haible  <bruno@clisp.org>
69453
69454         * modules/strnlen (Include): Use strnlen.h.
69455
69456 2006-01-09  Bruno Haible  <bruno@clisp.org>
69457
69458         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69459
69460 2006-01-09  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/sysexit_.h (EX_OK): New macro.
69463         Suggested by Martin Lambers <marlam@marlam.de>.
69464
69465 2006-01-09  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69468         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69469
69470 2006-01-09  Bruno Haible  <bruno@clisp.org>
69471
69472         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69473         numbers.
69474
69475 2006-01-09  Bruno Haible  <bruno@clisp.org>
69476
69477         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69478         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69479         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69480         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69481
69482 2006-01-09  Bruno Haible  <bruno@clisp.org>
69483
69484         * build-aux/javacomp.sh.in: New file, moved from lib/.
69485         * modules/javacomp-script (Files): Update.
69486         (configure.ac): Add AC_CONFIG_FILES invocation.
69487         (EXTRA_DIST): Remove variable.
69488
69489         * build-aux/javaexec.sh.in: New file, moved from lib/.
69490         * modules/javaexec (Files): Update.
69491         (configure.ac): Add AC_CONFIG_FILES invocation.
69492         (EXTRA_DIST): Remove javaexec.sh.in.
69493
69494         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69495         * modules/csharpcomp-script (Files): Update.
69496         (configure.ac): Add AC_CONFIG_FILES invocation.
69497         (EXTRA_DIST): Remove variable.
69498
69499         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69500         * modules/csharpexec (Files): Update.
69501         (configure.ac): Add AC_CONFIG_FILES invocation.
69502         (EXTRA_DIST): Remove csharpexec.sh.in.
69503
69504 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69505
69506         Sync from coreutils.
69507
69508         Add POSIX ACL support
69509         * lib/acl.h (copy_acl, set_acl): Add declarations.
69510         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69511         systems other than Linux.
69512         (chmod_or_fchmod): New function: use fchmod when possible,
69513         and chmod otherwise.
69514         (file_has_acl): Add a POSIX ACL implementation, with a
69515         Linux-specific subcase.
69516         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69517         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69518         acls are unsupported.
69519         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69520         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69521         are unsupported.
69522
69523 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69524
69525         Sync from coreutils.
69526         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69527
69528 2006-01-07  Bruno Haible  <bruno@clisp.org>
69529
69530         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69531         gl_EARLY.
69532
69533 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69536         Problem reported for Mingw by Mark Junker.
69537
69538 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * README: Gnulib normally doesn't generate a tarball.
69541
69542 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69545         long int, not int, for nanosecond counts, so that people who are
69546         used to POSIX struct timespec won't be surprised.  Reported by Jim
69547         Meyering.
69548
69549 2005-12-28  Bruno Haible  <bruno@clisp.org>
69550
69551         * build-aux/config.rpath: Update from GNU gettext.
69552
69553 2005-12-16  Jim Meyering  <jim@meyering.net>
69554
69555         * modules/fprintftime: New module.
69556         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69557
69558 2005-12-16  Jim Meyering  <jim@meyering.net>
69559
69560         * m4/fprintftime.m4: New file.
69561
69562 2005-12-16  Jim Meyering  <jim@meyering.net>
69563
69564         * lib/fprintftime.c, lib/fprintftime.h: New files.
69565
69566 2005-12-15  Simon Josefsson  <jas@extundo.com>
69567
69568         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69569         new m4/socklen.m4.
69570
69571 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69572
69573         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69574         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69575
69576 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69577
69578         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69579         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69580         struct uparams is valid. Fall back to the default values if it is
69581         not.
69582
69583 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69584
69585         * modules/argp (Files): Add argp-pin.c
69586         (Depends-on): dirname
69587         (lib_SOURCES): Add argp-pin.c
69588
69589 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69590
69591         * m4/argp.m4:  Check if program_invocation_name and
69592         program_invocation_short_name are declared and define appropriate
69593         macros if they are not.
69594
69595 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69596
69597         * lib/argp-help.c (__argp_base_name): New function
69598         (__argp_short_program_name): Rewrite using __argp_base_name
69599         * lib/argp-namefrob.h: Define program_invocation_name and
69600         program_invocation_short_name if requested
69601         (__argp_base_name): Add prototype
69602         * lib/argp-parse.c (argp_def): Use gettext wrappers
69603         (argp_default_parser): Use __argp_base_name
69604         * lib/argp-pin.c: New file. Defines program_invocation_name and
69605         program_invocation_short_name on systems that lack them.
69606
69607 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69610         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69611         porting problem reported by Georg Schwarz in
69612         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69613
69614 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69617         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69618         porting problem reported by Georg Schwarz in
69619         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69620
69621 2005-12-05  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69624         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69625         Reported by Mark Junker <mjscod@gmx.de>.
69626
69627 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69630         Use implementation from Albert Chin, with some
69631         comments/corrections by Stepan Kasal and myself.
69632
69633 2005-12-02  Bruno Haible  <bruno@clisp.org>
69634
69635         * gnulib-tool (func_import): Accept GPLed build tool modules when
69636         --lgpl is given.
69637         * modules/csharpcomp-script: New file.
69638         * modules/csharpcomp: Depend on it.
69639         * modules/javacomp-script: New file.
69640         * modules/javacomp: Depend on it.
69641         Suggested by Simon Josefsson.
69642
69643 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69646         statement, to work around an HP-UX 10.20 compiler bug reported by
69647         Peter O'Gorman.
69648
69649 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * modules/savedir (Depends-on): Add openat.
69652
69653 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69654
69655         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69656         (uintmax_t) [defined uintmax_t]: Do not declare.
69657         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69658         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69659         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69660         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69661         sake of portability to weird hosts that C allows (though we don't
69662         know of any practical examples).
69663
69664         * lib/savedir.h (fdsavedir): New decl.
69665         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69666         contains most of the former guts of savedir.
69667         (savedir): Use savedirstream.
69668         Include "openat.h".
69669
69670 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * modules/obstack (Files): Add m4/ulonglong.m4.
69673         Problem reported by Davide Angelocola.
69674
69675 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69678         coreutils no longer futzes with rounding modes.
69679
69680 2005-11-14  Jim Meyering  <jim@meyering.net>
69681
69682         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69683         replacement of mkstemp.
69684
69685 2005-11-10  Simon Josefsson  <jas@extundo.com>
69686
69687         * lib/readline.c: Remove EOL.
69688
69689 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * modules/gethrxtime (Depends-on): Add gettime.
69692
69693 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69696         or gettimeofday; no longer needed.
69697
69698 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69699
69700         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69701         time business.
69702         (gethrxtime) [! (HAVE_NANOUPTIME
69703         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69704         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69705         our own approximation.
69706
69707 2005-11-08  Eric Blake  <ebb9@byu.net>
69708
69709         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69710
69711 2005-11-08  Eric Blake  <ebb9@byu.net>
69712
69713         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69714
69715 2005-11-04  Bruno Haible  <bruno@clisp.org>
69716
69717         * gnulib-tool: Implement --update mode.
69718
69719 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         Fix porting problem reported by Theodoros V. Kalamatianos.
69722         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69723         Don't assume that futimes failing means we must fail.
69724
69725 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69728         variables to suggest the intended function of the PATH_MAX check.
69729
69730 2005-10-30  Kean Johnston  <jkj@sco.com>
69731
69732         Trivial changes to support SCO systems.
69733         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69734         as PATH_MAX.
69735         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69736         where __ptr is null when no I/O is pending.
69737
69738 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69741         leave errno alone.  Problem reported by Dmitry V. Levin.
69742
69743 2005-10-28  Simon Josefsson  <jas@extundo.com>
69744
69745         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69746         Test more.
69747
69748         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69749
69750         * modules/md2, modules/md2-tests: New files.
69751
69752 2005-10-28  Simon Josefsson  <jas@extundo.com>
69753
69754         * m4/inet_ntop.m4: More tests.
69755
69756         * m4/gc-md2.m4, md2.m4: New file.
69757
69758 2005-10-28  Simon Josefsson  <jas@extundo.com>
69759
69760         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69761         "restrict" keywords, as per POSIX.  Protect the function
69762         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69763         Don't use K&R prototypes.  Check the sprintf return values.
69764         Re-define EAFNOSUPPORT if not present.  Indent.
69765
69766         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69767         suggested by Bruno Haible <bruno@clisp.org>.
69768
69769         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69770
69771         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69772
69773         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69774         libgcrypt).
69775
69776         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69777
69778         * lib/md2.h, lib/md2.c: New files.
69779
69780 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69783         errno alone.  Problem reported by Frederic Jolliton.
69784
69785 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         * modules/verify (License): Change from GPL to LGPL.  This is a
69788         tiny module and there are apparently near-equivalents that are
69789         under the BSD license.
69790
69791 2005-10-24  Simon Josefsson  <jas@extundo.com>
69792
69793         * modules/sha1: Relicense to LGPL.
69794
69795 2005-10-24  Simon Josefsson  <jas@extundo.com>
69796
69797         * lib/md4.h: Shrink buffer size, now that we changed the type.
69798
69799 2005-10-23  Simon Josefsson  <jas@extundo.com>
69800
69801         * gnulib-tool (func_import): Fix --tests-base.
69802
69803 2005-10-22  Simon Josefsson  <jas@extundo.com>
69804
69805         * modules/arcfour (Depends-on): Need stdint.
69806
69807 2005-10-22  Simon Josefsson  <jas@extundo.com>
69808
69809         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69810         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69811
69812 2005-10-22  Simon Josefsson  <jas@extundo.com>
69813
69814         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69815         suggested by Bruno Haible <bruno@clisp.org>.
69816
69817 2005-10-22  Simon Josefsson  <jas@extundo.com>
69818
69819         * lib/crc.h: Include stddef.h, for size_t.
69820
69821 2005-10-22  Simon Josefsson  <jas@extundo.com>
69822
69823         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69824         arcfour_context struct (simplify test vector testing in GNU
69825         Shishi).
69826
69827 2005-10-21  Simon Josefsson  <jas@extundo.com>
69828
69829         * modules/des, modules/des-tests: New files.
69830
69831         * modules/gc-des, modules/gc-des-tests: New files.
69832
69833         * tests/test-des.c, tests/test-gc-des.c: New file.
69834
69835 2005-10-21  Simon Josefsson  <jas@extundo.com>
69836
69837         * modules/arctwo, modules/arctwo-tests: New files.
69838
69839         * tests/test-arctwo.c: New file.
69840
69841         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69842
69843         * tests/test-gc-arctwo.c: New file.
69844
69845 2005-10-21  Simon Josefsson  <jas@extundo.com>
69846
69847         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69848         Bruno Haible <bruno@clisp.org>.
69849
69850         * m4/gc-des.m4: New file.
69851
69852 2005-10-21  Simon Josefsson  <jas@extundo.com>
69853
69854         * m4/arctwo.m4: New file.
69855
69856         * m4/gc-arctwo.m4: New file.
69857
69858 2005-10-21  Simon Josefsson  <jas@extundo.com>
69859
69860         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69861         block.
69862
69863 2005-10-21  Simon Josefsson  <jas@extundo.com>
69864
69865         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69866         <bruno@clisp.org>.
69867
69868         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69869
69870         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69871         Bruno Haible <bruno@clisp.org>.
69872
69873         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69874         <bruno@clisp.org>.
69875
69876 2005-10-21  Simon Josefsson  <jas@extundo.com>
69877
69878         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69879
69880 2005-10-21  Simon Josefsson  <jas@extundo.com>
69881
69882         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69883
69884 2005-10-21  Simon Josefsson  <jas@extundo.com>
69885
69886         * lib/des.h, lib/des.c: New files.
69887
69888         * lib/gc-gnulib.c: Support DES.c
69889
69890 2005-10-21  Simon Josefsson  <jas@extundo.com>
69891
69892         * lib/arctwo.h, lib/arctwo.c: New files.
69893
69894         * lib/gc-gnulib.c: Support ARCTWO.
69895
69896 2005-10-21  Simon Josefsson  <jas@extundo.com>
69897
69898         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69899         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69900
69901 2005-10-21  Simon Josefsson  <jas@extundo.com>
69902
69903         * gnulib-tool (func_import, func_create_testdir): Define automake
69904         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69905         Makefile.am snippet),
69906         suggested by Bruno Haible <bruno@clisp.org>.
69907
69908         * modules/gc (Makefile.am): Use it.
69909
69910 2005-10-21  Bruno Haible  <bruno@clisp.org>
69911
69912         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69913         patch.
69914
69915 2005-10-19  Simon Josefsson  <jas@extundo.com>
69916
69917         * tests/test-gc-rijndael.c: New file.
69918
69919         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69920
69921 2005-10-19  Simon Josefsson  <jas@extundo.com>
69922
69923         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69924         interface too.
69925
69926 2005-10-19  Simon Josefsson  <jas@extundo.com>
69927
69928         * tests/test-gc-arcfour.c: New file.
69929
69930         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69931
69932 2005-10-19  Simon Josefsson  <jas@extundo.com>
69933
69934         * modules/gc-md4, modules/gc-md4-tests: New file.
69935
69936         * tests/test-gc-md4.c: New file.
69937
69938 2005-10-19  Simon Josefsson  <jas@extundo.com>
69939
69940         * m4/gc-md4.m4: New file.
69941
69942 2005-10-19  Simon Josefsson  <jas@extundo.com>
69943
69944         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69945         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69946         <kasal@ucw.cz>.
69947
69948 2005-10-19  Simon Josefsson  <jas@extundo.com>
69949
69950         * m4/gc-arcfour.m4: New file.
69951
69952         * m4/gc-rijndael.m4: New file.
69953
69954 2005-10-19  Simon Josefsson  <jas@extundo.com>
69955
69956         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69957
69958 2005-10-19  Simon Josefsson  <jas@extundo.com>
69959
69960         * lib/gc-gnulib.c: Support ARCFOUR.
69961
69962 2005-10-19  Simon Josefsson  <jas@extundo.com>
69963
69964         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69965         support.
69966
69967         * lib/gc.h: Add ECB enum type.
69968
69969         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69970
69971 2005-10-18  Simon Josefsson  <jas@extundo.com>
69972
69973         * tests/test-md5.c: New file.
69974
69975         * modules/md5-tests: New file.
69976
69977 2005-10-18  Simon Josefsson  <jas@extundo.com>
69978
69979         * tests/test-md4.c: New file.
69980
69981         * modules/md4, modules/md4-tests: New files.
69982
69983 2005-10-18  Simon Josefsson  <jas@extundo.com>
69984
69985         * m4/md4.m4: New file.
69986
69987 2005-10-18  Simon Josefsson  <jas@extundo.com>
69988
69989         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69990
69991 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69992
69993         * gnulib-tool (func_create_testdir): Omit the second check whether
69994         BUILT_SOURCES in nonempty.
69995
69996 2005-10-17  Simon Josefsson  <jas@extundo.com>
69997
69998         * tests/test-rijndael.c: New file.
69999
70000 2005-10-17  Simon Josefsson  <jas@extundo.com>
70001
70002         * modules/sha1: Depend on stdint instead of md5.
70003
70004         * modules/md5: Depend on stdint, remove uint32_t.
70005
70006 2005-10-17  Simon Josefsson  <jas@extundo.com>
70007
70008         * modules/gc-sha1-tests: New file.
70009
70010         * tests/test-gc-sha1.c: New file.
70011
70012 2005-10-17  Simon Josefsson  <jas@extundo.com>
70013
70014         * m4/md5.m4: Remove call to uint32_t.m4.
70015
70016 2005-10-17  Simon Josefsson  <jas@extundo.com>
70017
70018         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70019
70020         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70021         md5.h.
70022
70023         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70024
70025         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70026
70027 2005-10-17  Simon Josefsson  <jas@extundo.com>
70028
70029         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70030
70031 2005-10-17  Simon Josefsson  <jas@extundo.com>
70032
70033         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70034
70035 2005-10-17  Simon Josefsson  <jas@extundo.com>
70036
70037         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70038
70039         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70040
70041 2005-10-17  Bruno Haible  <bruno@clisp.org>
70042
70043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70044         that it can also be used in a test.
70045
70046 2005-10-16  Bruno Haible  <bruno@clisp.org>
70047
70048         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70049         TESTS_ENVIRONMENT, so that individual tests can augment it.
70050
70051         * gnulib-tool (func_create_testdir): Use an intermediate target for
70052         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70053         macros, like $(ALLOCA_H), which cannot be passed through the command
70054         line.
70055
70056 2005-10-15  Simon Josefsson  <jas@extundo.com>
70057
70058         * modules/rijndael-tests: New file.
70059
70060         * modules/rijndael: New file.
70061
70062 2005-10-15  Simon Josefsson  <jas@extundo.com>
70063
70064         * m4/rijndael.m4: New file.
70065
70066 2005-10-15  Simon Josefsson  <jas@extundo.com>
70067
70068         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70069
70070         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70071
70072 2005-10-14  Simon Josefsson  <jas@extundo.com>
70073
70074         * tests/test-arcfour.c: New file.
70075
70076         * modules/arcfour, modules/arcfour-tests: New files.
70077
70078 2005-10-14  Simon Josefsson  <jas@extundo.com>
70079
70080         * m4/arcfour.m4: New file.
70081
70082 2005-10-14  Simon Josefsson  <jas@extundo.com>
70083
70084         * lib/arcfour.h, lib/arcfour.c: New files.
70085
70086 2005-10-14  Roland McGrath  <roland@redhat.com>
70087
70088         Import from libc.  [BZ #1331]
70089         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70090         macro argument.
70091         Reported by Matej Vela <vela@debian.org>.
70092
70093 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70094
70095         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70096         include <wchar.h>; no longer needed.
70097
70098 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70101
70102 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70103         and  Ulrich Drepper  <drepper@redhat.com>
70104
70105         Import from libc.
70106         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70107         instead of inline stream orientation test and two separate
70108         function calls.  Pay no attention to USE_IN_LIBIO.
70109
70110 2005-10-13  Simon Josefsson  <jas@extundo.com>
70111
70112         * modules/gc-hmac-md5-tests: New file.
70113
70114         * tests/test-gc-hmac-sha1.c: New file.
70115
70116         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70117
70118         * modules/gc-hmac-md5-tests: New file.
70119
70120         * tests/test-gc-md5.c: New file.
70121
70122         * modules/gc-md5-tests: New file.
70123
70124 2005-10-13  Simon Josefsson  <jas@extundo.com>
70125
70126         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70127         Move memory allocation outside of loop.
70128
70129 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70132         intermediate directory is in a read-only file system.  Problem
70133         reported by Eric Blake.
70134
70135 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70136
70137         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70138
70139 2005-10-12  Simon Josefsson  <jas@extundo.com>
70140
70141         * tests/test-hmac-sha1.c: New file.
70142
70143         * modules/hmac-sha1-tests: New file.
70144
70145         * modules/hmac-sha1: New file.
70146
70147 2005-10-12  Simon Josefsson  <jas@extundo.com>
70148
70149         * modules/gc-sha1: New file.
70150
70151 2005-10-12  Simon Josefsson  <jas@extundo.com>
70152
70153         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70154
70155         * tests/test-gc-pbkdf2-sha1.c: New file.
70156
70157 2005-10-12  Simon Josefsson  <jas@extundo.com>
70158
70159         * modules/gc-md5, modules/gc-hmac-md5: New files.
70160
70161         * modules/gc (Files): Remove md5, memxor and hmac files.
70162
70163 2005-10-12  Simon Josefsson  <jas@extundo.com>
70164
70165         * m4/gc-pbkdf2-sha1.m4: New file.
70166
70167         * m4/gc-hmac-sha1.m4: New file.
70168
70169         * m4/gc-sha1: New file.
70170
70171         * m4/hmac-sha1.m4: New file.
70172
70173 2005-10-12  Simon Josefsson  <jas@extundo.com>
70174
70175         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70176
70177         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70178
70179 2005-10-12  Simon Josefsson  <jas@extundo.com>
70180
70181         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70182         suggested by Bruno Haible <bruno@clisp.org>.
70183
70184 2005-10-12  Simon Josefsson  <jas@extundo.com>
70185
70186         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70187
70188 2005-10-12  Simon Josefsson  <jas@extundo.com>
70189
70190         * lib/gc-pbkdf2-sha1.c: New file.
70191
70192         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70193
70194 2005-10-12  Simon Josefsson  <jas@extundo.com>
70195
70196         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70197
70198         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70199
70200 2005-10-12  Simon Josefsson  <jas@extundo.com>
70201
70202         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70203         GC_USE_HMAC_MD5, respectively.
70204
70205         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70206         (gc_md5): Fix typo.
70207
70208         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70209
70210         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70211
70212         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70213
70214 2005-10-12  Bruno Haible  <bruno@clisp.org>
70215
70216         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70217         Reported by Stepan Kasal <kasal@ucw.cz>.
70218
70219 2005-10-11  Simon Josefsson  <jas@extundo.com>
70220
70221         * tests/test-crc.c: New file.
70222
70223         * modules/crc, modules/crc-tests: New files.
70224
70225 2005-10-11  Simon Josefsson  <jas@extundo.com>
70226
70227         * m4/crc.m4: New file.
70228
70229 2005-10-11  Simon Josefsson  <jas@extundo.com>
70230
70231         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70232
70233         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70234
70235         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70236
70237 2005-10-11  Simon Josefsson  <jas@extundo.com>
70238
70239         * lib/crc.h, lib/crc.c: New files.
70240
70241         * lib/gc.h (gc_hash_buffer): Add doc.
70242
70243 2005-10-11  Bruno Haible  <bruno@clisp.org>
70244
70245         * modules/c-strcasestr: New file.
70246         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70247
70248 2005-10-11  Bruno Haible  <bruno@clisp.org>
70249
70250         * modules/c-strcase: New file.
70251         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70252
70253 2005-10-11  Bruno Haible  <bruno@clisp.org>
70254
70255         * lib/strcasecmp.c: Include limits.h.
70256         (strcasecmp): Avoid integer overflow on exotic platforms.
70257         * lib/strncasecmp.c: Include limits.h.
70258         (strncasecmp): Avoid integer overflow on exotic platforms.
70259         Reported by Paul Eggert.
70260
70261 2005-10-11  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/c-strcasestr.h: New file, from GNU gettext.
70264         * lib/c-strcasestr.c: New file, from GNU gettext.
70265
70266 2005-10-11  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/c-strcase.h: New file, from GNU gettext.
70269         * lib/c-strcasecmp.c: New file, from GNU gettext.
70270         * lib/c-strncasecmp.c: New file, from GNU gettext.
70271
70272 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         * modules/mempcpy (License): GPL -> LGPL.
70275         * modules/strchrnul (License): Likewise.
70276         * modules/sysexits (License): Likewise.
70277
70278 2005-10-08  Simon Josefsson  <jas@extundo.com>
70279
70280         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70281
70282 2005-10-07  Simon Josefsson  <jas@extundo.com>
70283
70284         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70285
70286 2005-10-06  Simon Josefsson  <jas@extundo.com>
70287
70288         * tests/test-hmac-md5.c: New file.
70289
70290         * modules/hmac-md5-tests: New file.
70291
70292         * modules/hmac-md5: New file.
70293
70294 2005-10-06  Simon Josefsson  <jas@extundo.com>
70295
70296         * m4/hmac-md5.m4: New file.
70297
70298         * m4/memxor.m4: Require gl_C_RESTRICT.
70299
70300 2005-10-06  Simon Josefsson  <jas@extundo.com>
70301
70302         * lib/memxor.c (memxor): Avoid casts and warnings.
70303
70304 2005-10-06  Simon Josefsson  <jas@extundo.com>
70305
70306         * lib/hmac-md5.c: New file.
70307
70308         * lib/hmac.h: New file.
70309
70310 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70313         promotes to int, not unsigned int, to catch the AIX 5.3
70314         compiler bug.
70315
70316 2005-10-05  Simon Josefsson  <jas@extundo.com>
70317
70318         * modules/memxor: New file.
70319
70320         * modules/iconv (Files): Move config.rpath to havelib, it is used
70321         there.
70322
70323         * modules/havelib (Files): Add config.rpath.
70324
70325 2005-10-05  Simon Josefsson  <jas@extundo.com>
70326
70327         * m4/memxor.m4: New file.
70328
70329 2005-10-05  Simon Josefsson  <jas@extundo.com>
70330
70331         * lib/memxor.c (memxor): Fix compiler error.
70332
70333         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70334         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70335
70336         * lib/memxor.h, lib/memxor.c: New files.
70337
70338         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70339         we assume all systems have it, suggested by Jim Meyering
70340         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70341         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70342         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70343         same reasons.
70344
70345 2005-10-05  Simon Josefsson  <jas@extundo.com>
70346
70347         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70348
70349 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70352         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70353         needed, since the source code now assumes these .h files.
70354
70355 2005-10-05  Derek Price  <derek@ximbiot.com>
70356
70357         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70358
70359 2005-10-05  Bruno Haible  <bruno@clisp.org>
70360
70361         * modules/stdint (License): Change to LGPL.
70362
70363 2005-10-04  Simon Josefsson  <jas@extundo.com>
70364
70365         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70366         D. Baushke" <mdb@gnu.org>.
70367
70368 2005-10-04  Bruno Haible  <bruno@clisp.org>
70369
70370         * lib/verify.h (verify_true): Provide alternative definition for C++.
70371
70372 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70375         (SSIZE_MAX): New macro, if not already defined.
70376         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70377         than 2 GiB.
70378
70379 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70380
70381         Sync from coreutils.
70382         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70383         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70384         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70385         ULLONG_MAX doesn't work with 2.7.2.1.
70386
70387 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70390         From Ben Pfaff.
70391
70392         * modules/exclude (Depends-on): Depend on verify.
70393         * modules/strtoimax (Depends-on): Likewise.
70394         * modules/utimecmp (Depends-on): Likewise.
70395
70396 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         * lib/exclude.c: Include verify.h.
70399         (verify): Remove.  All callers changed to use verify.h's version.
70400         * lib/strtoimax.c: Likewise.
70401         * lib/utimecmp.c: Likewis.e
70402
70403         Sync from coreutils.
70404         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70405         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70406         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70407         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70408         bother returning ENOSYS if settimeofday or stime fails; just let
70409         them return whatever errno they want to return.
70410         * lib/utimens.c: Include unistd.h, for dup2.
70411         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70412         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70413
70414 2005-10-02  Jim Meyering  <jim@meyering.net>
70415
70416         Sync from coreutils.
70417         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70418         from glibc-2.2.5 that fails for read-only files.
70419
70420 2005-10-02  Jim Meyering  <jim@meyering.net>
70421
70422         Sync from coreutils.
70423         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70424         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70425         `#if HAVE_CONFIG_H'.
70426         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70427         Remove AT_FDCWD test.
70428         Do not consume the fd unless successful.
70429         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70430         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70431         block, so that we don't even try to compile it if settimeofday is
70432         available.  This works around a compilation failure on OSF1 V5.1,
70433         due to stime requiring a `long int*' while tv_sec is `int'.
70434
70435 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70436
70437         Sync from coreutils.
70438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70439         against `yes', rather than just testing for nonempty.
70440
70441 2005-10-01  Simon Josefsson  <jas@extundo.com>
70442
70443         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70444         and Darwin.
70445
70446         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70447         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70448         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70449         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70450         Check if struct addrinfo is declared.
70451
70452 2005-10-01  Simon Josefsson  <jas@extundo.com>
70453
70454         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70455         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70456         AI_* and EAI_* definitions.  Protect function declarations.
70457
70458 2005-10-01  Jim Meyering  <jim@meyering.net>
70459
70460         Sync from coreutils.
70461
70462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70463         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70464         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70466         in the inet and nsl libraries.  Required on Solaris 5.7.
70467
70468 2005-10-01  Jim Meyering  <jim@meyering.net>
70469
70470         Sync from coreutils.
70471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70472         in the inet and nsl libraries.  Required on Solaris 5.7.
70473
70474 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70475
70476         * lib/getdelim.c (getdelim): Remove unused variables.
70477
70478 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70481         so that the code works even with ancient cpp.  Portability problem
70482         with GCC 2.7.2.1 reported by Thomas M.Ott.
70483
70484 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * modules/regex (Depends-on): Add strcase.
70487
70488         * modules/gethostname (Licence): Change from GPL to LGPL, since
70489         gethostname.c is a trivial implementation of a standard library
70490         function.
70491         * modules/poll (License): Change from GPL to LGPL, since it's
70492         derived from LGPL code.
70493
70494 2005-09-27  Jim Meyering  <jim@meyering.net>
70495
70496         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70497         HAVE_CONFIG_H.
70498
70499         * lib/intprops.h (signed_type_or_expr__): Define.
70500         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70501         for unsigned types.
70502
70503 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * lib/verify.h (verify_expr): Remove, replacing with:
70506         (verify_true): New macro that returns true instead of void.
70507         (verify_type__): Remove.
70508         (verify): Use verify_true rather than verify_type__.
70509
70510 2005-09-26  Bruno Haible  <bruno@clisp.org>
70511
70512         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70513         is necessary.
70514         (lib_SOURCES): Remove mbchar.c.
70515         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70516         (Files): Add m4/mbrtowc.m4.
70517         * modules/mbiter: Likewise.
70518         * modules/mbuiter: Likewise.
70519
70520 2005-09-26  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70523         compile mbchar.c if they are not both present.
70524         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70525         * m4/mbiter.m4 (gl_MBITER): Likewise.
70526         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70527         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70528         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70529
70530 2005-09-25  Jim Meyering  <jim@meyering.net>
70531
70532         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70533         also uses socklen_t.
70534
70535 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         * lib/utimens.c (ENOSYS): Define if not already defined.
70538         (futimens): Support having a null PATH if the file descriptor
70539         is nonnegative.
70540
70541         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70542         Remove.
70543         (__attribute): Define to empty unless GCC 3.1 or later.
70544         This works around a core dump on OpenBSD 3.4, which has GCC
70545         2.95.3, which dumps core when given __attribute__(()).  It also
70546         simplifies other tests, since we really don't want to bother with
70547         worrying about which ancient version of GCC supported what.
70548         Original problem reported by Yoann Vandoorselaere, with part of
70549         the fix suggested by Derek Price.
70550
70551 2005-09-24  Jim Meyering  <jim@meyering.net>
70552
70553         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70554         so we can once again use a positive bitfield width of 1 -- now we
70555         don't have to explain why we were using a bitfield width of 2.
70556
70557 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70558
70559         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70560         and similarly for the other external symbols.  Problem reported
70561         by James Gallager.
70562
70563         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70564         bug reported by Jim Meyering.
70565
70566         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70567         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70568         not needed, since socklen is a prerequisite module.
70569
70570 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70573         Problem reported by Eric Blake.
70574         (getaddrinfo): Initialize se so that it's not garbage.
70575         Redo internal storage allocation so that it doesn't make unportable
70576         assumptions about alignment.
70577         Fix a memory leak.
70578
70579         * lib/utimens.c (futimens): Use futimesat if available.
70580         Prefer it to futimes since it doesn't have the futimes bug.
70581
70582         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70583         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70584         Instead, declare a function that returns a pointer to an array,
70585         and use verify_type__ to declare the size of the array.
70586         Problem and germ of a solution reported by Bruno Haible.
70587         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70588         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70589
70590 2005-09-23  Jim Meyering  <jim@meyering.net>
70591
70592         Sync from coreutils.
70593         Correct build failure (socklen_t not defined) on at least
70594         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70596
70597 2005-09-23  Jim Meyering  <jim@meyering.net>
70598
70599         * modules/getaddrinfo (Depends-on): Add socklen.
70600
70601 2005-09-23  Bruno Haible  <bruno@clisp.org>
70602
70603         * tests/test-verify.c: New file.
70604
70605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         Sync from coreutils.
70608
70609         * modules/argmatch (Depends-on): Add verify.
70610         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70611         unistd-safer.
70612         * modules/save-cwd (Depends-on): Likewise.
70613
70614         * modules/openat (Files): Add lib/openat-die.c.
70615         (Depends-on): Remove error, exitfail.
70616         Add dirname.
70617
70618         * modules/verify: New file.
70619         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70620         with "verify" module.
70621
70622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70623
70624         Sync from coreutils.
70625
70626         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70627         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70628         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70629         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70630         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70631         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70632         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70633         Don't bother checking for string.h, stdlib.h, unistd.h.
70634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70635         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70636         module's job.
70637         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70638         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70639
70640         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70641         (gl_GETDATE): Use it.
70642
70643         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70644
70645 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         Sync from coreutils.
70648
70649         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70650         stat-time.h.
70651         * lib/argmatch.h: Include verify.h
70652         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70653         (ARGMATCH_ASSERT): Remove; unused.
70654         * lib/canonicalize.c: Assume STDC_HEADERS.
70655         * lib/exclude.c: Include "strcase.h".
70656         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70657         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70658         and stdio-safer.h.
70659         (getusershell): Call fopen, not fopen_safer.
70660         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70661         Do not include unistd-safer.h.
70662         (save_cwd): Don't call fd_safer; no longer needed
70663         now that we include fcntl--.h.
70664
70665         * lib/getdate.y (relative_time): New type.
70666         (RELATIVE_TIME_0): New constant.
70667         (parser_control): Use relative_time instead of doing it ourselves.
70668         (%union): Add new relative_time rel member.
70669         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70670         Now typeless.
70671         (relunit, relunit_snumber): Now of type rel.
70672         (zone, rel, relunit, get_date): Adjust to above changes.
70673
70674         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70675         Do not include unistd-safer.h.
70676         (getloadavg): Don't call fd_safer; no longer needed
70677         now that we include fcntl--.h.
70678
70679         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70680         (make_dir_parents): Treat ENOSYS like EEXIST.
70681
70682         Improve quality of diagnostics on restore_cwd failure.
70683         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70684         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70685         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70686         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70687         each time through the loop.  Do not diagnose restore_cwd failure;
70688         that is the caller's job (and perhaps the caller does not care).
70689
70690         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70691         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70692         If the file already exists but is not a directory, don't bother
70693         to try to make its parents.
70694         Close potential file descriptor leak if we can't chdir("/") (!).
70695         Don't always return true if chdir($PWD) fails; return true only
70696         if the requested action was done successfully (except for the
70697         chdir($PWD)).
70698         Don't log final directory unless we actually made it.
70699         Refactor to avoid duplicate code to fix up permissions.
70700         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70701
70702         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70703         to make it a bit faster and (I hope) clearer.
70704         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70705         Fix bug in formats like %2N.
70706
70707         * lib/verify.h: New file.
70708
70709 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         Sync from coreutils.
70712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70713
70714 2005-09-22  Jim Meyering  <jim@meyering.net>
70715
70716         Sync from coreutils.
70717
70718         * m4/lstat.m4 (gl_FUNC_LSTAT):
70719         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70720         Remove obsolete comment.
70721         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70722         * m4/xstrtod.m4: Likewise.
70723
70724         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70725
70726 2005-09-22  Jim Meyering  <jim@meyering.net>
70727
70728         Sync from coreutils.
70729
70730         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70731
70732         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70733         the .tm_year member, since otherwise gcc-4.0 would now warn about
70734         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70735
70736         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70737         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70738
70739         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70740         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70741         when run in a time zone for which daylight savings time is in effect
70742         for the starting date.
70743
70744         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70745         stop us from restricting permissions of just-created absolute-named
70746         directories.
70747         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70748         to restore initial working directory.
70749         * lib/mkdir-p.c (make_dir_parents): New parameter:
70750         different_working_dir, to tell caller if/when we change the working
70751         directory and are unable to return to the initial one.
70752         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70753         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70754         `return false'.  This fixes a bug introduced on 2004-07-30.
70755
70756         * lib/openat.c (fdopendir): Be sure to close the supplied
70757         file descriptor before returning.  This makes our replacement
70758         implementation a little closer to Solaris's, where fdopendir
70759         ties the file descriptor to the returned DIR* pointer.
70760         * lib/openat.c (unlinkat): New function.
70761         * lib/openat.h (unlinkat): Add prototype.
70762         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70763         (openat_restore_fail): Rename from openat_restore_die.
70764         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70765
70766         Provide an alternative to exiting immediately upon save_cwd or
70767         restore_cwd failure.  Now, an application can arrange e.g.,
70768         to perform a longjump in that case.
70769         * lib/openat.c: Include dirname.h.
70770         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70771         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70772         and openat_restore_die rather than calling error directly.
70773         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70774
70775         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70776         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70777         define.
70778
70779         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70780         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70781                             int utc, int nanoseconds);
70782         Background:
70783         date should not have to allocate a megabyte of virtual memory to
70784         handle a format argument like +%1048575T.  When implemented with
70785         strftime, it must allocate such a buffer, use strftime to fill it
70786         in, print it, then free it.
70787         With fprintftime, it simply prints everything and exits.
70788         With no need for memory allocation, that's one fewer way to fail.
70789         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70790         optional field width, not before, so we accept %9:z, not %:9z.
70791         (my_strftime): Be sure to use L_('x') for literals.
70792
70793         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70794         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70795         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70796         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70797         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70798         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70799         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70800         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70801         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70802         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70803         * lib/xgethostname.c, lib/xreadlink.c:
70804         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70805
70806         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70807         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70808         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70809         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70810         and don't include <sys/file.h>).
70811
70812 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70813
70814         Sync from coreutils.
70815
70816         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70817         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70818         [!LDAV_DONE]: Avoid unused variable warning.
70819
70820 2005-09-21  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/unicodeio.h (unicode_to_mb): New declaration.
70823
70824 2005-09-20  Derek Price  <derek@ximbiot.com>
70825
70826         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70827         getaddrinfo.h.
70828
70829 2005-09-20  Bruno Haible  <bruno@clisp.org>
70830
70831         * gnulib-tool: Remove trailing slashes from the values specified for
70832         --source-base, --m4-base, --tests-base, --aux-dir.
70833         Suggested by Simon Josefsson <jas@extundo.com>.
70834
70835 2005-09-20  Bruno Haible  <bruno@clisp.org>
70836
70837         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70838         func_modules_to_filelist, func_import, func_create_testdir): Make all
70839         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70840         change when gnulib-tool is invoked in a different locale.
70841
70842 2005-09-19  Simon Josefsson  <jas@extundo.com>
70843
70844         * m4/socklen.m4: Fix typo.
70845
70846 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70847
70848         Use a consistent style for including <config.h>.
70849         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70850         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70851         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70852         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70853         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70854         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70855         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70856         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70857         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70858         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70859         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70860         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70861         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70862         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70863         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70864         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70865         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70866         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70867         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70868         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70869         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70870         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70871         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70872         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70873         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70874         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70875         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70876         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70877         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70878         lib/xstrtoumax.c, lib/yesno.c:
70879         Standardize inclusion of config.h.
70880         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70881         lib/inttostr.h:  Removed inclusion of config.h from header files.
70882         * lib/inttostr.c:  Adjusted in-tree users.
70883         * lib/timespec.h: Remove superfluous warning to include config.h.
70884         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70885         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70886         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70887         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70888         config.h with HAVE_CONFIG_H.
70889
70890 2005-09-19  Jim Meyering  <jim@meyering.net>
70891
70892         * modules/pathmax (License): Change to LGPL.
70893
70894 2005-09-19  Derek Price  <derek@ximbiot.com>
70895
70896         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70897
70898 2005-09-19  Bruno Haible  <bruno@clisp.org>
70899
70900         * gnulib-tool (import): Provide default for --tests-base.
70901
70902 2005-09-19  Bruno Haible  <bruno@clisp.org>
70903
70904         * doc/quote.texi: New file, extracted from gnulib.texi.
70905         * doc/ctime.texi: New file, extracted from gnulib.texi.
70906         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70907         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70908         * doc/gnulib.texi: Include them.
70909
70910 2005-09-18  Bruno Haible  <bruno@clisp.org>
70911
70912         Portability fix.
70913         * gnulib-tool (func_readlink): New function.
70914         (func_ln_if_changed): Use it.
70915
70916 2005-09-18  Bruno Haible  <bruno@clisp.org>
70917
70918         * gnulib-tool: Support --with-tests also with --import.
70919         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70920         (func_import): Use variables $testsbase and $inctests. Emit a
70921         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70922         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70923         SUBDIRS += $testsdir.
70924         (func_create_testdir): Update.
70925
70926 2005-09-18  Bruno Haible  <bruno@clisp.org>
70927
70928         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70929         instead of $dry_run.
70930         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70931         (func_ln_if_changed): Don't handle dry-run here.
70932         (func_import): In dry-run mode, detect more precisely which actions
70933         would be performed, and don't use "...ing" verbs.
70934
70935 2005-09-18  Bruno Haible  <bruno@clisp.org>
70936
70937         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70938         (func_import): Use join on two temporary files instead of three nested
70939         loops, in order to determine which files are new or old.
70940
70941 2005-09-18  Bruno Haible  <bruno@clisp.org>
70942
70943         * gnulib-tool (func_import): Comment out code that spits out the
70944         new files with --dry-run.
70945
70946 2005-09-18  Bruno Haible  <bruno@clisp.org>
70947
70948         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70949
70950 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * lib/stat-time.h: New file.
70953         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70954         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70955         in a different way.
70956         (timespec_cmp): New function.
70957         * lib/utimecmp.c: Include stat-time.h.
70958         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70959         members exist, not on the obsolescent ST_MTIM_NSEC.
70960         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70961
70962 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70965
70966 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * MODULES.html.sh (File system functions): Add stat-time.
70969         * modules/stat-time: New file.
70970         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70971         is now done in a different way, by the stat-time module.
70972         * modules/utimecmp (Depends-on): Add stat-time.
70973
70974 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * m4/st_mtim.m4: Remove.  Superseded by...
70977         * m4/stat-time.m4: New file.
70978         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70979         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70980
70981 2005-09-15  Derek Price  <derek@ximbiot.com>
70982
70983         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70984
70985 2005-09-15  Derek Price  <derek@ximbiot.com>
70986
70987         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70988         * lib/regex_internal.c: Ditto, using this...
70989         (__GNUC_PREREQ): ...new macro.
70990         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70991         using...
70992         (__GNUC_PREREQ): ...this new macro.
70993
70994         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70995
70996 2005-09-15  Derek Price  <derek@ximbiot.com>
70997             Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71000         changes, consolidating in...
71001         * lib/regex_internal.h: ...this file.
71002
71003 2005-09-13  Jim Meyering  <jim@meyering.net>
71004
71005         * lib/canon-host.c: Filter through gnu indent and reword comments
71006         slightly.
71007         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71008
71009 2005-09-13  Derek Price  <derek@ximbiot.com>
71010
71011         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71012         failure.
71013         Reported by Jim Meyering  <jim@meyering.net>.
71014
71015 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71016
71017         * lib/base64.c: Typo.
71018         (base64_encode): Put b64str in initialized data section.
71019
71020 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71021
71022         Merge glibc and coreutils changes into gnulib, plus a few
71023         extra fixes.
71024         * lib/md5.c: Use #error rather than a string.
71025         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71026         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71027         (__attribute__): Define to empty for non recent-GCC.
71028         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71029         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71030         Renamed from their non-__ counterparts, with new macros replacing
71031         them if not _LIBC.  Add __THROW attribute.
71032         (rol): Remove.
71033         (struct md5_ctx): Align buffer if using GCC.
71034         * lib/sha1.h (struct sha1_ctx): Likewise.
71035         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71036         The old name was backwards.
71037         (NOTSWAP): Remove; not used.
71038         (rol): New macro, moved here from md5.h.
71039         (sha1_process_block): Remove a FIXME that doesn't make sense.
71040
71041 2005-09-12  Derek Price  <derek@ximbiot.com>
71042
71043         Return usable errors from canon-host.
71044         * lib/canon-host.h: New file.
71045         * lib/canon-host.c (canon_host): Wrap...
71046         (canon_host_r): ...this new function, which now relies exclusively on
71047         getaddrinfo.
71048         (ch_strerror): New function.
71049         (last_cherror): New global.
71050         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71051         interface.
71052         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71053         void *.
71054         (freeaddrinfo): Free ai->ai_canonname when set.
71055
71056 2005-09-12  Derek Price  <derek@ximbiot.com>
71057
71058         Make canon-host require getaddrinfo.
71059         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71060         AC_LIBSOURCE canon-host.h.  Call...
71061         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71062         gl_GETADDRINFO.
71063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71064
71065 2005-09-12  Derek Price  <derek@ximbiot.com>
71066
71067         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71068         LGPL.
71069         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71070
71071 2005-09-12  Derek Price  <derek@ximbiot.com>
71072
71073         * lib/gai_strerror.c: Include config.h when available.  Include
71074         getaddrinfo.h before other headers to test interface.
71075         Reported by Larry Jones <lawrence.jones@ugs.com>.
71076
71077 2005-09-12  Derek Price  <derek@ximbiot.com>
71078             Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         * modules/glob (Files): Add glob-libc.h.
71081
71082 2005-09-12  Derek Price  <derek@ximbiot.com>
71083             Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71086         glob_.h, glob-libc.h.
71087         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71088
71089 2005-09-12  Derek Price  <derek@ximbiot.com>
71090             Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71093         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71094         protecting things that should be done only in gnulib contexts.
71095         * lib/glob_.h: New file, containing only the glob things needed for
71096         gnulib.
71097         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71098         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71099         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71100         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71101         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71102         and to respect the namespace rules better.
71103
71104 2005-09-08  Simon Josefsson  <jas@extundo.com>
71105
71106         * modules/socklen: New file.
71107
71108 2005-09-08  Simon Josefsson  <jas@extundo.com>
71109
71110         * m4/socklen.m4: New file.
71111
71112 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * modules/utimens (Files): Add m4/utimbuf.m4, since
71115         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71116         Reported by Sergey Poznyakoff.
71117
71118 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71121         definitions, since that's the preferred style in glibc.
71122         Fix a minor spacing issue, and update copyright notice to match
71123         glibc's.
71124
71125 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71128
71129 2005-09-06  Simon Josefsson  <jas@extundo.com>
71130
71131         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71132         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71133
71134 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71137         warning.
71138
71139 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         * config/srclist.txt: Add glibc bug 1302.
71142
71143 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         Change bitset word type from unsigned int to unsigned long int,
71146         as this has better performance on typical 64-bit hosts.
71147         Port bitset code to hosts with unusual word sizes.
71148         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71149         (build_collating_symbol):
71150         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71151         argument is a bitset.  This is merely a style issue, but it makes
71152         it clearer that an entire array is expected.
71153         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71154         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71155         Port to the case where bitset_word is not the same as unsigned int.
71156         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71157         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71158         Likewise.
71159         * lib/regexec.c (check_dst_limits_calc_pos_1,
71160         check_subexp_matching_top):
71161         (build_trtable, group_nodes_into_DFAstates):
71162         Likewise.
71163         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71164         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71165         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71166         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71167         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71168         * lib/regcomp.c (optimize_subexps, lower_subexp):
71169         Work even if bitset_word has holes in its bitwise representation.
71170         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71171         * lib/regexec.c (check_dst_limits_calc_pos_1,
71172         check_subexp_matching_top):
71173         Likewise.
71174         * lib/regex_internal.c (re_string_reconstruct):
71175         Don't assume UCHAR_MAX == 255.
71176         * lib/regex_internal.h (bitset_set_all): Likewise.
71177         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71178         All uses changed.
71179         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71180         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71181         All uses changed.
71182         (BITSET_WORD_MAX): New macro.
71183         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71184         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71185         (bitset_empty, bitset_copy):
71186         Prefer sizeof (bitset) to multiplying it out ourselves.
71187         (bitset_not_merge): Remove; unused.
71188         (bitset_contain): Return bool, not unsigned int with one bit on.
71189         All callers changed.
71190         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71191         alignment than re_node_set; do this by defining a new internal
71192         type struct dests_alloc and using it to allocate memory.
71193
71194 2005-09-05  Bruno Haible  <bruno@clisp.org>
71195
71196         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71197         links.
71198
71199 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71200
71201         * modules/size_max (Makefile.am): Add size_max.h
71202
71203 2005-09-04  Derek Price  <derek@ximbiot.com>
71204
71205         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71206
71207 2005-09-03  Simon Josefsson  <jas@extundo.com>
71208
71209         * gnulib-tool: Fix typo.
71210
71211 2005-09-03  Simon Josefsson  <jas@extundo.com>
71212
71213         * config/srclist.txt: Add glibc bug 1293.
71214
71215 2005-09-03  Derek Price  <derek@ximbiot.com>
71216
71217         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71218         From Larry Jones <lawrence.jones@ugs.com>.
71219
71220 2005-09-02  Simon Josefsson  <jas@extundo.com>
71221
71222         * modules/socklen: New file.
71223
71224 2005-09-02  Simon Josefsson  <jas@extundo.com>
71225
71226         * modules/havelib: New module.
71227
71228         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71229         Use havelib.
71230
71231 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         Check for arithmetic overflow when calculating sizes, to prevent
71234         some buffer-overflow issues.  These patches are conservative, in the
71235         sense that when I couldn't determine whether an overflow was possible,
71236         I inserted a run-time check.
71237         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71238         macros.
71239         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71240         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71241         (re_xnrealloc, re_x2nrealloc): New inline functions.
71242         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71243         parse_bracket_exp):
71244         (build_equiv_class, build_charclass): Check for arithmetic overflow
71245         in size expression calculations.
71246         * lib/regex_internal.c (re_string_realloc_buffers):
71247         (build_wcs_upper_buffer, re_node_set_add_intersect):
71248         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71249         (re_dfa_add_node, register_state): Likewise.
71250         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71251         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71252         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71253         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71254
71255 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71258         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71259
71260 2005-09-02  Bruno Haible  <bruno@clisp.org>
71261
71262         Support for lib vs. lib64 distinction on biarch platforms.
71263         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71264         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71265         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71266
71267 2005-09-02  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool (import): In the other first-use case, provide defaults
71270         as well.
71271
71272 2005-09-02  Bruno Haible  <bruno@clisp.org>
71273
71274         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71275         patches not yet found in the latest gettext release.
71276
71277 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71280         to avoid a collision with bits/local_lim.h in glibc.
71281         All uses changed.  Problem reported by Dmitry V. Levin in
71282         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71283
71284         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71285         bugs in int versus size_t comparisons.
71286         (re_string_context_at): Fix bug where the code assumed that
71287         Idx is signed.
71288
71289         Use bool where appropriate.
71290         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71291         All callers changed.
71292         (calc_eclosure_iter): Likewise, for ROOT arg.
71293         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71294         (build_charclass_op): Likewise, for NON_MATCH arg.
71295         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71296         (re_string_construct_common): Likewise, for ICASE arg.
71297         * lib/regexec.c (re_search_2_stub, re_search_stub):
71298         Likewise, for RET_LEN arg.
71299         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71300         (set_regs): Likewise, for FL_BACKTRACK arg.
71301         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71302         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71303         (calc_eclosure_iter, parse_bracket_exp):
71304         Use bool for internal variables that are booleans.
71305         * lib/regexec.c (re_search_internal, check_matching,
71306         proceed_next_node):
71307         (set_regs, build_sifted_states, sift_states_bkref):
71308         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71309         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71310         (find_collation_sequence_value):
71311         Likewise.
71312         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71313         (re_node_set_compare):
71314         Return bool, not int. All callers changed.
71315         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71316         (build_trtable, check_node_accept): Likewise.
71317         * lib/regex_internal.h: Include stdbool.h.
71318
71319         Fix bugs uncovered when converting to bool.
71320         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71321         failure instead of charging ahead blindly.
71322         * lib/regex_internal.c (register_state): Likewise.
71323         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71324         for freeing internal storage.
71325         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71326         bitset pieces used as boolean, to avoid undefined behavior
71327         on hosts that do int overflow checking.
71328
71329 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * config/srclist.txt: Add glibc bugs 1285-1287.
71332
71333 2005-09-01  Jim Meyering  <jim@meyering.net>
71334
71335         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71336         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71337         Require gl_STAT_MACROS, too.
71338
71339 2005-09-01  Bruno Haible  <bruno@clisp.org>
71340
71341         * gnulib-tool (import): In the first-use case, provide defaults.
71342
71343 2005-09-01  Bruno Haible  <bruno@clisp.org>
71344
71345         * gnulib-tool (func_import): Remove the .tmp files.
71346
71347 2005-09-01  Bruno Haible  <bruno@clisp.org>
71348
71349         * gnulib-tool (func_import): Fix handling of symbolic links.
71350
71351 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71354         old glibc regex code mishandles strings longer than 2**31 bytes.
71355         This patch fixes this when the regex code is used in gnulib
71356         (i.e., outside glibc).
71357
71358         This patch should not affect the use of the regex code inside
71359         glibc.  No doubt this problem also needs to be handled for glibc
71360         as well, but the result will be an incompatible change to the
71361         glibc ABI, and the old ABI will have to be supported too.  That
71362         can be the the subject for another patch.
71363
71364         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71365         governing whether the rest of this patch is active.  By default,
71366         the macro is disabled and the patch has no effect.
71367         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71368         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71369         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71370         (re_match_2, re_set_registers): Use the new types.
71371         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71372         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71373         New macros.
71374         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71375         (re_string_context_at, bin_tree_t, re_dfastate_t):
71376         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71377         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71378         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71379         (re_string_char_size_at, re_string_wchar_at):
71380         (re_string_elem_size_at):
71381         Use the new types and macros to port to 64-bit hosts.
71382         Use unsigned types for internal values, so that the code
71383         mostly works even for arrays larger than SSIZE_MAX.
71384         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71385         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71386         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71387         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71388         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71389         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71390         (calc_inveclosure, parse_dup_op, build_range_exp):
71391         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71392         (fetch_number, create_token_tree, mark_opt_subexp):
71393         Likewise.
71394         * lib/regex_internal.c (re_string_construct_common,
71395         create_ci_newstate):
71396         (create_cd_newstate, re_string_allocate, re_string_construct):
71397         (re_string_realloc_buffers, build_wcs_upper_buffer):
71398         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71399         (re_string_reconstruct, re_string_peek_byte_case):
71400         (re_string_fetch_byte_case, re_string_context_at):
71401         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71402         (re_node_set_init_copy, re_node_set_add_intersect):
71403         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71404         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71405         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71406         (re_acquire_state, re_acquire_state_context, register_state):
71407         Likewise.
71408         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71409         search_cur_bkref_entry):
71410         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71411         (re_search_internal, re_search_2_stub, re_search_stub)
71412         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71413         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71414         (update_cur_sifted_state, check_dst_limits):
71415         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71416         (check_subexp_limits, sift_states_bkref, merge_state_array):
71417         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71418         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71419         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71420         (expand_bkref_cache, check_node_accept_bytes):
71421         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71422         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71423         (acquire_init_state_context, check_halt_node_context):
71424         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71425         (sift_states_backward, clean_state_log_if_needed):
71426         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71427         (find_recover_state, transit_state_sb, transit_state_mb):
71428         (transit_state_bkref, build_trtable, match_ctx_clean):
71429         Likewise.
71430         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71431         to work around an assumption that REG_MISSING is negative.
71432
71433         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71434         (seek_collating_symbol_entry) [defined _LIBC]:
71435         (lookup_collation_sequence_value) [defined _LIBC]:
71436         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71437         Use prototypes rather than old-style function definitions.
71438         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71439         (transit_state_sb) [0]:
71440         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71441
71442         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71443         rm_eo.
71444
71445         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71446         (optimize_subexps, lower_subexp):
71447         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71448         since the signed shift might overflow.  Use 1u<<31 instead.
71449         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71450         Likewise.
71451         * lib/regexec.c (check_dst_limits_calc_pos_1,
71452         check_subexp_matching_top): Likewise.
71453
71454         * lib/regcomp.c (optimize_subexps, lower_subexp):
71455         Use CHAR_BIT rather than 8, for clarity.
71456         * lib/regexec.c (check_dst_limits_calc_pos_1):
71457         (check_subexp_matching_top): Likewise.
71458         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71459         have to worry about portability issues when shifting it left.
71460         Remove no-longer-needed test for table_size > 0.
71461         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71462         in a word, as the resulting behavior is undefined.
71463         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71464         in one case, a <= should have been an <, and in another case the
71465         whole test was missing.
71466         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71467         the standard name CHAR_BIT.
71468         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71469         this is not true on one's complement and signed-magnitude hosts.
71470
71471         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71472         next_last_offset.
71473         (struct re_dfa_t): Remove unused member states_alloc.
71474         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71475
71476 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71479         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71480         and large-file glibc and in 32-bit large-file Solaris.
71481
71482 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71485         lengths fit in regoff_t; this isn't true if regoff_t is the same
71486         width as size_t.
71487         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71488         (= START + RANGE) instead of RANGE.  This avoids overflow
71489         problems when regoff_t is the same width as size_t.
71490         All callers changed.
71491         (re_search_2_stub): Check for overflow when adding the
71492         sizes of the two strings.
71493         (re_search_stub): Check for overflow when adding START
71494         to RANGE; if it occurs, substitute the extreme value.
71495
71496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71499
71500 2005-08-31  Jim Meyering  <jim@meyering.net>
71501
71502         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71503         a pointer-to-const.
71504         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71505         (register_state): Likewise.
71506         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71507         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71508         (group_nodes_into_DFAstates): Likewise.
71509
71510 2005-08-31  Jim Meyering  <jim@meyering.net>
71511
71512         * check-module: Add a FIXME comment.
71513
71514 2005-08-31  Eric Blake  <ebb9@byu.net>
71515
71516         * modules/unistd-safer (Files): Add unistd--.h.
71517         * modules/stdio-safer (Files): Add stdio--.h.
71518
71519 2005-08-31  Derek Price  <derek@ximbiot.com>
71520
71521         * lib/getdelim.c (getdelim): Return EOF on EOF.
71522         Reported by Larry Jones <lawrence.jones@ugs.com>.
71523
71524 2005-08-31  Bruno Haible  <bruno@clisp.org>
71525
71526         Avoid unnecessary diffs in the generated lib/Makefile.am.
71527         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71528         the generated files.
71529         (func_import): Don't set cmd.
71530
71531 2005-08-31  Bruno Haible  <bruno@clisp.org>
71532
71533         * lib/strstr.c: Include <stddef.h>, for NULL.
71534         * lib/strcasestr.c: Likewise.
71535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71536
71537 2005-08-31  Bruno Haible  <bruno@clisp.org>
71538
71539         * gnulib-tool: New option --macro-prefix.
71540         (func_import): Use macro_prefix.
71541         (import): Handle option --macro-prefix.
71542
71543 2005-08-31  Bruno Haible  <bruno@clisp.org>
71544
71545         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71546         Also use new variables cached_lgpl, cached_libtool.
71547
71548 2005-08-31  Bruno Haible  <bruno@clisp.org>
71549
71550         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71551         always instantiating them.
71552
71553 2005-08-31  Bruno Haible  <bruno@clisp.org>
71554
71555         * gnulib-tool (func_import): Read the previous cached settings
71556         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71557         earlier added by gnulib but are now dropped. Warn when a gnulib file
71558         overwrites a non-gnulib file.
71559
71560 2005-08-31  Bruno Haible  <bruno@clisp.org>
71561
71562         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71563         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71564         projects that don't keep autogenerated files in CVS. Put into
71565         actioncmd only the specified modules, not the transitive closure.
71566
71567 2005-08-31  Bruno Haible  <bruno@clisp.org>
71568
71569         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71570         Create directories that shall be filled.
71571         (import): Don't look for gl_* macros in configure.ac. Recurse across
71572         all directories containing a gnulib-cache.m4 files, if meaningful.
71573
71574 2005-08-31  Bruno Haible  <bruno@clisp.org>
71575
71576         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71577         (import): Set seen_libtool when we see gl_LIBTOOL.
71578
71579 2005-08-31  Bruno Haible  <bruno@clisp.org>
71580
71581         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71582         declaration macro definitions from generated gnulib.m4.
71583
71584 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71585
71586         * lib/iconvme.h: Add prototype for iconv_alloc.
71587
71588 2005-08-29  Simon Josefsson  <jas@extundo.com>
71589
71590         * lib/iconvme.c: Fix errno.
71591
71592 2005-08-29  Bruno Haible  <bruno@clisp.org>
71593
71594         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71595         that it works when the directory contains spaces.
71596
71597 2005-08-29  Bruno Haible  <bruno@clisp.org>
71598
71599         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71600
71601 2005-08-29  Bruno Haible  <bruno@clisp.org>
71602
71603         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71604         Emit more advice.
71605
71606 2005-08-29  Bruno Haible  <bruno@clisp.org>
71607         and Stepan Kasal  <kasal@ucw.cz>
71608
71609         * check-module: If more parameters are given, check each of them
71610         separately; add more exceptions, as noted by Jim Meyering.
71611         (check_module): New procedure.
71612         (%exempt_header): Now contains all exceptions.
71613
71614 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71615
71616         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71617
71618 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71619
71620         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71621
71622 2005-08-28  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/gnulib-tool.m4: New file.
71625
71626 2005-08-27  Jim Meyering  <jim@meyering.net>
71627
71628         * modules/unistd-safer (Files): Add pipe-safer.c.
71629         * modules/fcntl-safer (Files): Add creat-safer.c.
71630
71631 2005-08-27  Jim Meyering  <jim@meyering.net>
71632
71633         * m4/stdlib-safer.m4: New file.  From coreutils.
71634         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71635         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71636         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71637         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71638         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71639
71640 2005-08-27  Jim Meyering  <jim@meyering.net>
71641
71642         * lib/fopen-safer.c: Merge minor changes from coreutils.
71643         * lib/dup-safer.c: Likewise.
71644         * lib/fd-safer.c: Likewise.
71645
71646         Merge from coreutils.
71647         * lib/stdio--.h: New file.
71648         * lib/stdlib--.h: New file.
71649         * lib/mkstemp-safer.c: New file.
71650
71651         GNU tar needs these.
71652         * lib/pipe-safer.c: New file.
71653         * lib/creat-safer.c: New file.
71654         * lib/fcntl--.h (creat): Define to creat_safer.
71655         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71656         * lib/unistd--.h (pipe): Define to pipe_safer.
71657         * lib/unistd-safer.h: Declare pipe_safer.
71658
71659 2005-08-26  Simon Josefsson  <jas@extundo.com>
71660
71661         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71662         Haible <bruno@clisp.org>.
71663
71664 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * lib/regex_internal.h: Remove all references to
71667         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71668         or better.
71669         (bitset_not, bitset_merge, bitset_not_merge):
71670         (bitset_mask, re_string_allocate, re_string_construct):
71671         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71672         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71673         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71674         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71675         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71676         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71677         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71678         (re_acquire_state_context):
71679         Remove unnecessary forward decls.
71680         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71681         Put __attribute at function definition,
71682         now that the function decl has been removed.
71683         * lib/regex_internal.c (re_string_peek_byte_case):
71684         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71685         Likewise.
71686
71687 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71688
71689         * m4/regex.m4: Add AC_PREREQ(2.50).
71690         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71691
71692 2005-08-25  Simon Josefsson  <jas@extundo.com>
71693
71694         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71695         __fsetlocking.
71696
71697 2005-08-25  Simon Josefsson  <jas@extundo.com>
71698
71699         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71700         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71701         GLIBC specific code.
71702
71703 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         Make regex safe for g++.  This fixes one real bug (an "err"
71706         that should have been "*err").  g++ problem reported by
71707         Sam Steingold.
71708         * lib/regex_internal.h (re_calloc): New macro, consistent with
71709         re_malloc etc.  All callers of calloc changed to use re_calloc.
71710         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71711         not int.  All callers changed.
71712         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71713         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71714         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71715         (find_recover_state): Change "err" to "*err"; this fixes what
71716         appears to be a real bug.
71717         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71718         versus int.
71719
71720 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * modules/regex (Depends-on): Add malloc, since the code
71723         assumes that !malloc(0) means failure.
71724
71725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71728
71729         alloca modernization/simplification for regex.
71730         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71731         needs to be at the start of the file, and can be moved into
71732         regex_internal.h and simplified.
71733         * lib/regex_internal.h: Include <alloca.h>.
71734         (__libc_use_alloca) [!defined _LIBC]: New macro.
71735         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71736         now works outside glibc.
71737
71738 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * config/srclist.txt: Add glibc bugs 1241, 1245.
71741
71742 2005-08-25  Jim Meyering  <jim@meyering.net>
71743
71744         * lib/open-safer.c: Include <config.h>.
71745         Otherwise, we'd lose LARGEFILE support in any file using
71746         e.g. "fcntl--.h"
71747
71748 2005-08-25  Bruno Haible  <bruno@clisp.org>
71749
71750         * m4/minmax.m4: Require autoconf 2.52.
71751         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71752         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71753         alternatives of translit over the alphabet.
71754         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71755
71756 2005-08-24  Simon Josefsson  <jas@extundo.com>
71757
71758         * tests/test-getpass.c: New file.
71759
71760 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71761
71762         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71763         for GNU regex features.
71764
71765 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71768         * lib/regex.h (regerror): Likewise.
71769
71770         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71771         requires this.  (The code never needed it.)
71772
71773         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71774         All uses of recently-renamed identifiers changed to use the new,
71775         POSIX-compliant names.  The code will build and run just fine
71776         without these changes, but it's better to eat our own dog food
71777         and use the standard-conforming names.
71778
71779         * lib/regex.h: Fix a multitude of POSIX name space violations.
71780         These changes have an effect only for programs that define
71781         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71782         do not change anything for programs compiled in the normal way.
71783         Also, there is no effect on the ABI.
71784
71785         (_REGEX_SOURCE): New macro.
71786         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71787         defined and _GNU_SOURCE is not; this fixes a name space violation.
71788
71789         Rename the following macros to obey POSIX requirements.
71790         The old names are still visible as macros if _REGEX_SOURCE is defined.
71791         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71792         RE_BACKSLASH_ESCAPE_IN_LISTS.
71793         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71794         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71795         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71796         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71797         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71798         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71799         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71800         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71801         (REG_INTERVALS): renamed from RE_INTERVALS.
71802         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71803         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71804         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71805         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71806         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71807         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71808         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71809         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71810         RE_UNMATCHED_RIGHT_PAREN_ORD.
71811         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71812         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71813         (REG_DEBUG): renamed from RE_DEBUG.
71814         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71815         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71816         unusual, since we can't clash with the POSIX REG_ICASE.
71817         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71818         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71819         (REG_NO_SUB): renamed from RE_NO_SUB.
71820         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71821         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71822         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71823         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71824         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71825         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71826         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71827         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71828         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71829         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71830         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71831         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71832         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71833         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71834         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71835         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71836         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71837         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71838         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71839         (REG_FIXED): Renamed from REGS_FIXED.
71840         (REG_NREGS): Renamed from RE_NREGS.
71841
71842         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71843         of other REG_* macros, since POSIX says the user is allowed to
71844         #undef these macros selectively.
71845
71846         (reg_errcode_t): Update comment stating what other tables need
71847         to be consistent.
71848
71849         Rename the following enum values to obey POSIX requirements.
71850         The old names are still visible as macros.
71851         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71852         is not defined, since GNU is supposed to be a superset of POSIX as
71853         much as possible, and since we want reg_errcode_t to be a signed
71854         type for implementation consistency.
71855         (_REG_NOERROR): Renamed from REG_NOERROR.
71856         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71857         (_REG_BADPAT): Renamed from REG_BADPAT.
71858         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71859         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71860         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71861         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71862         (_REG_EBRACK): Renamed from REG_EBRACK.
71863         (_REG_EPAREN): Renamed from REG_EPAREN.
71864         (_REG_EBRACE): Renamed from REG_EBRACE.
71865         (_REG_BADBR): Renamed from REG_BADBR.
71866         (_REG_ERANGE): Renamed from REG_ERANGE.
71867         (_REG_ESPACE): Renamed from REG_ESPACE.
71868         (_REG_BADRPT): Renamed from REG_BADRPT.
71869         (_REG_EEND): Renamed from REG_EEND.
71870         (_REG_ESIZE): Renamed from REG_ESIZE.
71871         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71872         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71873         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71874         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71875         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71876
71877         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71878         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71879         changed.  But support the old name if the new one is not defined
71880         and if _REGEX_SOURCE.
71881
71882         Change the following member names in struct re_pattern_buffer.
71883         The old names are still supported if !_REGEX_SOURCE.
71884         The new names are always supported, regardless of _REGEX_SOURCE.
71885         (re_buffer): Renamed from buffer.
71886         (re_allocated): Renamed from allocated.
71887         (re_used): Renamed from used.
71888         (re_syntax): Renamed from syntax.
71889         (re_fastmap): Renamed from fastmap.
71890         (re_translate): Renamed from translate.
71891         (re_can_be_null): Renamed from can_be_null.
71892         (re_regs_allocated): Renamed from regs_allocated.
71893         (re_fastmap_accurate): Renamed from fastmap_accurate.
71894         (re_no_sub): Renamed from no_sub.
71895         (re_not_bol): Renamed from not_bol.
71896         (re_not_eol): Renamed from not_eol.
71897         (re_newline_anchor): Renamed from newline_anchor.
71898
71899         Change the following member names in struct re_registers.
71900         The old names are still supported if !_REGEX_SOURCE.
71901         The new names are always supported, regardless of _REGEX_SOURCE.
71902         (rm_num_regs): Renamed from num_regs.
71903         (rm_start): Renamed from start.
71904         (rm_end): Renamed from end.
71905
71906         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71907         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71908         Prepend __ to parameter names.
71909
71910         Undo yesterday's changes.
71911
71912 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71915         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71916         lib/regex.c.
71917
71918 2005-08-24  Jim Meyering  <jim@meyering.net>
71919
71920         Sync from coreutils.
71921         * m4/fcntl-safer.m4: New file.
71922
71923         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71924         and object files for this module.
71925
71926 2005-08-24  Jim Meyering  <jim@meyering.net>
71927
71928         Sync from coreutils.
71929         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71930
71931 2005-08-24  Jim Meyering  <jim@meyering.net>
71932
71933         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71934         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71935
71936 2005-08-24  Jim Meyering  <jim@meyering.net>
71937
71938         * modules/fcntl-safer: New module.
71939         * modules/fts (Depends-on): Add fcntl-safer.
71940         * MODULES.html.sh (File descriptor based Input/Output):
71941         Add fcntl-safer.
71942
71943 2005-08-24  Bruno Haible  <bruno@clisp.org>
71944
71945         Support for unit test modules.
71946         * modules/README: Mention tests modules.
71947         * modules/TEMPLATE-TESTS: New file.
71948         * gnulib-tool: New options --extract-tests-module, --with-tests and
71949         --tests-base (unused for the moment).
71950         (testsbase, inctests): New variables.
71951         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71952         (func_verify_module): Exclude TEMPLATE-TESTS.
71953         (func_verify_nontests_module, func_verify_tests_module): New functions.
71954         (func_get_dependencies): Add implicit dependency for tests modules.
71955         (func_get_tests_module): New function.
71956         (func_modules_transitive_closure): When --with-tests was specified,
71957         include the unit tests as well, unless explicitly avoided.
71958         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71959         (func_emit_tests_Makefile_am): New function.
71960         (func_create_testdir): When --with-tests was specified, emit a
71961         tests/ directory.
71962         * MODULES.html.sh (Future developments): Update.
71963
71964 2005-08-24  Bruno Haible  <bruno@clisp.org>
71965
71966         * modules/tls-tests: New file.
71967         * tests/test-tls.c: New file, from GNU gettext.
71968
71969 2005-08-24  Bruno Haible  <bruno@clisp.org>
71970
71971         * modules/lock-tests: New file.
71972         * tests/test-lock.c: New file, from GNU gettext.
71973
71974 2005-08-24  Bruno Haible  <bruno@clisp.org>
71975
71976         * lib/lock.h: Add multiple inclusion guard.
71977         * lib/tls.h: Add multiple inclusion guard.
71978
71979 2005-08-24  Bruno Haible  <bruno@clisp.org>
71980
71981         * gnulib-tool: Add support for the --aux-dir option to
71982         --create-testdir, --create-megatestdir, --test, --megatest.
71983         (func_create_testdir, func_create_megatestdir): Optionally emit a
71984         AC_CONFIG_AUX_DIR directive.
71985         (create-testdir, create-megatestdir, test, megatest): Provide a
71986         default value for $auxdir.
71987
71988 2005-08-24  Bruno Haible  <bruno@clisp.org>
71989
71990         * gnulib-tool (import): Use compound statement instead of subshell
71991         where possible.
71992
71993 2005-08-24  Bruno Haible  <bruno@clisp.org>
71994
71995         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71996
71997 2005-08-24  Bruno Haible  <bruno@clisp.org>
71998
71999         * gnulib-tool (func_version): Update.
72000
72001 2005-08-24  Bruno Haible  <bruno@clisp.org>
72002
72003         * gnulib-tool (func_import, func_create_testdir,
72004         func_create_megatestdir): Quote all autoconf macro arguments.
72005
72006 2005-08-24  Bruno Haible  <bruno@clisp.org>
72007
72008         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72009         option --force, because --force causes the aclocal.m4 of each
72010         subdirectory to be newer than the corresponding config.h.in.
72011
72012 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72015         All contents moved to gl_REGEX.
72016         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72017         assume that it does.
72018
72019 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * lib/regex.h (REG_NOSYS)
72022         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72023         Define, since POSIX requires it as of 2001.
72024         (_REG_ENOSYS)
72025         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72026         New private symbol, used to keep the enum signed in all cases.
72027         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72028         Youngman in
72029         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72030
72031         * lib/regex_internal.c (re_string_skip_chars, register_state):
72032         (calc_state_hash):
72033         Remove forward decls; no longer needed now that we use prototypes.
72034         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72035         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72036         (clean_state_log_if_needed): Likewise.
72037
72038 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * config/srclist.txt: Add glibc bugs 1231-1233.
72041
72042 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         Fix problems reported by Sam Steingold in
72045         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72046         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72047         assumed that reg_errcode_t is a signed type, which is not
72048         necessarily true if _XOPEN_SOURCE is not defined.
72049         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72050         since some compilers warn about it otherwise.
72051
72052 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72055         (init_word_char, create_initial_state, duplicate_node_closure):
72056         (fetch_token, peek_token_bracket, build_range_exp):
72057         (build_collating_symbol): Remove forward decls; no longer needed
72058         now that we use prototypes.
72059
72060         * lib/regcomp.c:
72061         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72062         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72063         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72064         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72065         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72066         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72067         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72068         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72069         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72070         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72071         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72072         (build_charclass, build_charclass_op, fetch_number, create_tree):
72073         (create_token_tree, mark_opt_subexp, duplicate_tree):
72074         Use prototypes rather than old-style definitions.
72075
72076         * lib/regex_internal.c:
72077         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72078         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72079         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72080         (re_string_reconstruct, re_string_peek_byte_case):
72081         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72082         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72083         (re_node_set_init_copy, re_node_set_add_intersect):
72084         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72085         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72086         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72087         (re_acquire_state, re_acquire_state_context, register_state):
72088         (create_ci_newstate, create_cd_newstate, free_state):
72089         Likewise.
72090         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72091         re_search_2):
72092         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72093         (re_search_internal, prune_impossible_nodes):
72094         (acquire_init_state_context, check_matching, static):
72095         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72096         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72097         (update_regs, sift_states_backward, build_sifted_states):
72098         (clean_state_log_if_needed, merge_state_array):
72099         (update_cur_sifted_state, add_epsilon_src_nodes):
72100         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72101         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72102         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72103         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72104         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72105         (check_arrival, check_arrival_add_next_nodes):
72106         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72107         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72108         (check_node_accept_bytes, check_node_accept, extend_buffers):
72109         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72110         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72111         (sift_ctx_init):
72112         Likewise.
72113
72114         * lib/regex_internal.h:
72115         (re_string_allocate, re_string_construct, re_string_reconstruct):
72116         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72117         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72118         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72119         (re_string_context_at, re_string_peek_byte_case):
72120         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72121         is defined, since we now use prototypes always.
72122
72123         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72124         C89 or better.  All uses removed.
72125
72126 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * config/srclist.txt: Add glibc bugs 1220-1227.
72129
72130 2005-08-20  Jim Meyering  <jim@meyering.net>
72131
72132         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72133         of unused local, dfa.
72134
72135 2005-08-20  Bruno Haible  <bruno@clisp.org>
72136
72137         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72138
72139 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72140
72141         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72142         (re_node_set_insert_last, re_dfa_add_node):
72143         Rename local variables to avoid GCC shadowing warnings.
72144
72145 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72148         [defined lint]: Suppress bogus uninitialized-variable warnings.
72149
72150         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72151         and let the caller return REG_ESPACE if out of space.  This
72152         removes an uninitialied-variable warning with GCC 4.0.1, and also
72153         avoids taking the address of a local variable.  All callers
72154         changed.
72155
72156 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72159         $LIBCSRC/posix/regexec.c.
72160         Add glibc bug 1217 for regcomp.c.
72161
72162 2005-08-19  Jim Meyering  <jim@meyering.net>
72163
72164         * lib/regexec.c (proceed_next_node): Redo local variables to
72165         avoid GCC shadowing warnings.
72166
72167 2005-08-18  Bruno Haible  <bruno@clisp.org>
72168
72169         * lib/strstr.c (strstr): Fix return value in multibyte case.
72170         * lib/strcasestr.c (strcasestr): Likewise.
72171
72172 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72175
72176 2005-08-17  Jim Meyering  <jim@meyering.net>
72177
72178         Make the %s format (seconds since the epoch) work for a negative
72179         number and when used with a zero-padded field width, e.g. %015s.
72180
72181         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72182         label so that it precedes the code to set `digits'.  Otherwise,
72183         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72184         print `00-22'.  Now, it prints `-0022', as it should.
72185
72186 2005-08-17  Bruno Haible  <bruno@clisp.org>
72187
72188         * modules/strstr (Files): Add m4/mbrtowc.m4.
72189         (Depends-on): Add mbuiter.
72190
72191 2005-08-17  Bruno Haible  <bruno@clisp.org>
72192
72193         * modules/strcasestr: New file.
72194         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72195         strcasestr.
72196
72197 2005-08-17  Bruno Haible  <bruno@clisp.org>
72198
72199         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72200
72201 2005-08-17  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/mbuiter: New file.
72204         * MODULES.html.sh (Extended multibyte and wide character utilities):
72205         Add mbuiter.
72206
72207 2005-08-17  Bruno Haible  <bruno@clisp.org>
72208
72209         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72210         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72211
72212 2005-08-17  Bruno Haible  <bruno@clisp.org>
72213
72214         * m4/strcasestr.m4: New file.
72215
72216 2005-08-17  Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72219         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72220
72221 2005-08-17  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/strcasestr.h: New file.
72224         * lib/strcasestr.c: New file.
72225
72226 2005-08-17  Bruno Haible  <bruno@clisp.org>
72227
72228         * lib/strcasecmp.c: Use mbuiter.h.
72229
72230 2005-08-17  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/mbuiter.h: New file.
72233
72234 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72237         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72238         and gl_GETOPT are both invoked via different paths (as happens
72239         with GNU tar CVS because it uses both argp and getopt), the former
72240         wins.
72241
72242 2005-08-16  Bruno Haible  <bruno@clisp.org>
72243
72244         * modules/tls: New file.
72245         * MODULES.html.sh (Multithreading): Add tls.
72246
72247 2005-08-16  Bruno Haible  <bruno@clisp.org>
72248
72249         * modules/strnlen1: New file.
72250         * MODULES.html.sh (String handling): Add strnlen1.
72251
72252 2005-08-16  Bruno Haible  <bruno@clisp.org>
72253
72254         * modules/strcase (Files): Add m4/mbrtowc.m4.
72255         (Depends-on): Add strnlen1, mbchar.
72256
72257 2005-08-16  Bruno Haible  <bruno@clisp.org>
72258
72259         * modules/mbiter: New file.
72260         * MODULES.html.sh (Extended multibyte and wide character utilities):
72261         Add mbiter.
72262
72263 2005-08-16  Bruno Haible  <bruno@clisp.org>
72264
72265         * modules/mbfile: New file.
72266         * MODULES.html.sh (Extended multibyte and wide character utilities):
72267         Add mbfile.
72268
72269 2005-08-16  Bruno Haible  <bruno@clisp.org>
72270
72271         * modules/mbchar: New file.
72272         * MODULES.html.sh (Extended multibyte and wide character utilities):
72273         New section.
72274
72275 2005-08-16  Bruno Haible  <bruno@clisp.org>
72276
72277         * m4/tls.m4: New file, from GNU gettext.
72278
72279 2005-08-16  Bruno Haible  <bruno@clisp.org>
72280
72281         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72282         always.
72283         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72284
72285 2005-08-16  Bruno Haible  <bruno@clisp.org>
72286
72287         * m4/mbiter.m4: New file.
72288
72289 2005-08-16  Bruno Haible  <bruno@clisp.org>
72290
72291         * m4/mbfile.m4: New file.
72292
72293 2005-08-16  Bruno Haible  <bruno@clisp.org>
72294
72295         * m4/mbchar.m4: New file.
72296
72297 2005-08-16  Bruno Haible  <bruno@clisp.org>
72298
72299         * lib/tls.h: New file, from GNU gettext.
72300         * lib/tls.c: New file, from GNU gettext.
72301
72302 2005-08-16  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/strnlen1.h: New file.
72305         * lib/strnlen1.c: New file.
72306
72307 2005-08-16  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72310         (mbi_init): Update.
72311         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72312         NUL byte, not after it.
72313
72314 2005-08-16  Bruno Haible  <bruno@clisp.org>
72315
72316         * lib/strcase.h (strcasecmp): Add note in comments.
72317         * lib/strncasecmp.c: Use code from strcasecmp.c.
72318         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72319         (strcasecmp): Work correctly in multibyte locales.
72320
72321 2005-08-16  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/mbiter.h: New file.
72324
72325 2005-08-16  Bruno Haible  <bruno@clisp.org>
72326
72327         * lib/mbfile.h: New file.
72328
72329 2005-08-16  Bruno Haible  <bruno@clisp.org>
72330
72331         * lib/mbchar.h: New file.
72332         * lib/mbchar.c: New file.
72333
72334 2005-08-16  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72337         the valid ones. Makes the comparison operations transitive:
72338         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72339         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72340
72341 2005-08-15  Simon Josefsson  <jas@extundo.com>
72342
72343         * modules/ssize_t (License): Change to 'unlimited'.
72344
72345         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72346
72347 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72350         Add comments for each pending glibc patch.
72351
72352 2005-08-15  Bruno Haible  <bruno@clisp.org>
72353
72354         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72355         __cplusplus is defined.
72356
72357 2005-08-14  Jim Meyering  <jim@meyering.net>
72358
72359         Sync from coreutils.
72360
72361         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72362         Use the hash-table-based cycle-detection code not just when
72363         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72364         Reported by James Youngman in
72365         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72366         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72367         FTS_TIGHT_CYCLE_CHECK.
72368         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72369         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72370         once again.
72371         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72372         * lib/fts.c (fd_safer): Remove decl.
72373         Include fcntl--.h rather than unistd-safer.h
72374         (fts_safe_changedir): Don't call fd_safer; no longer needed
72375         now that we include fcntl--.h.
72376
72377 2005-08-12  Simon Josefsson  <jas@extundo.com>
72378
72379         * modules/getndelim2: Use ssize_t module.
72380         * modules/getnline: Likewise.
72381         * modules/safe-read: Likewise.
72382         * modules/xreadlink: Likewise.
72383
72384         * modules/ssize_t: New file.
72385
72386 2005-08-12  Simon Josefsson  <jas@extundo.com>
72387
72388         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72389
72390 2005-08-12  Simon Josefsson  <jas@extundo.com>
72391
72392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72393         ssize_t.
72394
72395 2005-08-12  Simon Josefsson  <jas@extundo.com>
72396
72397         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72398         readline, getdelim and check_version.
72399         (Support for systems lacking ISO C 99: Sizes of integer types):
72400         Add size_max.
72401
72402 2005-08-12  Bruno Haible  <bruno@clisp.org>
72403
72404         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72405
72406 2005-08-11  Simon Josefsson  <jas@extundo.com>
72407
72408         * modules/readline: New file.
72409
72410         * modules/strnlen (Files): Add strnlen.h.
72411
72412 2005-08-11  Simon Josefsson  <jas@extundo.com>
72413
72414         * m4/readline.m4: New file.
72415
72416 2005-08-11  Simon Josefsson  <jas@extundo.com>
72417
72418         * lib/readline.h, readline.c: New file.
72419
72420 2005-08-11  Simon Josefsson  <jas@extundo.com>
72421
72422         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72423         gl_AVOID.
72424
72425 2005-08-11  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72428
72429 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72430
72431         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72432
72433 2005-08-10  Simon Josefsson  <jas@extundo.com>
72434
72435         * tests/test-iconvme.c: New file.
72436
72437 2005-08-10  Simon Josefsson  <jas@extundo.com>
72438
72439         * m4/strnlen.m4: New file.
72440
72441         * m4/strndup.m4: Don't check for strnlen declaration, done in
72442         strnlen.m4.
72443
72444 2005-08-10  Simon Josefsson  <jas@extundo.com>
72445
72446         * lib/strndup.c: Use strnlen.h.
72447
72448         * lib/strnlen.h: New file.
72449
72450 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72451
72452         * README: Typos.
72453
72454 2005-08-02  Simon Josefsson  <jas@extundo.com>
72455
72456         * modules/readline: New file.
72457
72458 2005-08-02  Simon Josefsson  <jas@extundo.com>
72459
72460         * modules/getdelim: New file.
72461
72462         * modules/getline: Rewrite, don't use getndelim2.
72463
72464 2005-08-02  Simon Josefsson  <jas@extundo.com>
72465
72466         * m4/getline.m4: Separate out getdelim stuff into separate module.
72467
72468         * m4/getdelim.m4: New file.
72469
72470 2005-08-02  Simon Josefsson  <jas@extundo.com>
72471
72472         * lib/getline.h, getline.c: Rewrite.
72473
72474         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72475
72476 2005-07-31  Bruno Haible  <bruno@clisp.org>
72477
72478         * lib/lock.h (gl_lock_initializer): New macro.
72479         (gl_lock_define_initialized): Use it.
72480         (gl_rwlock_initializer): New macro.
72481         (gl_rwlock_define_initialized): Use it.
72482         (gl_recursive_lock_initializer): New macro.
72483         (gl_recursive_lock_define_initialized): Use it.
72484
72485 2005-07-30  Karl Berry  <karl@gnu.org>
72486
72487         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72488         Report from Ben Pfaff, regarding getopt.
72489
72490 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72493         normal way.
72494         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72495         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72496         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72497         (gl_GETOPT): Use the new macros.  Most of the implementation
72498         is moved to the new macros.  This is for programs like Emacs
72499         that don't want all the functionality of gl_GETOPT.
72500
72501 2005-07-26  Bruno Haible  <bruno@clisp.org>
72502
72503         * m4/lock.m4: Update from GNU gettext.
72504
72505 2005-07-26  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/lock.h: Update from GNU gettext.
72508         * lib/lock.c: Update from GNU gettext.
72509
72510 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72513         obsolescent AC_TRY_RUN.  Include the default includes files, for
72514         'exit'.
72515
72516 2005-07-24  Bruno Haible  <bruno@clisp.org>
72517
72518         * modules/visibility: New file.
72519         * MODULES.html.sh (Misc): Add visibility.
72520
72521 2005-07-24  Bruno Haible  <bruno@clisp.org>
72522
72523         * m4/visibility.m4: New file.
72524
72525 2005-07-24  Bruno Haible  <bruno@clisp.org>
72526
72527         * doc/visibility.texi: New file.
72528
72529 2005-07-22  Bruno Haible  <bruno@clisp.org>
72530
72531         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72532         $(ALLOCA_H), redundant through BUILT_SOURCES.
72533         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72534         redundant through BUILT_SOURCES.
72535         * modules/byteswap (Makefile.am): Remove explicit dependency on
72536         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72537         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72538         $(FNMATCH_H), redundant through BUILT_SOURCES.
72539         * modules/getopt (Makefile.am): Remove explicit dependency on
72540         $(GETOPT_H), redundant through BUILT_SOURCES.
72541         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72542         redundant through BUILT_SOURCES.
72543         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72544         redundant through BUILT_SOURCES.
72545         * modules/stdbool (Makefile.am): Remove explicit dependency on
72546         $(STDBOOL_H), redundant through BUILT_SOURCES.
72547         * modules/stdint (Makefile.am): Remove explicit dependency on
72548         $(STDINT_H), redundant through BUILT_SOURCES.
72549         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72550         Remove explicit dependency on $(SYSEXITS_H).
72551         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72552
72553 2005-07-18  Simon Josefsson  <jas@extundo.com>
72554
72555         * lib/check-version.c (check_version): Accept identical versions too.
72556
72557 2005-07-18  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/lock: New file.
72560         * MODULES.html.sh (Multithreading): New section.
72561
72562 2005-07-18  Bruno Haible  <bruno@clisp.org>
72563
72564         * m4/lock.m4: New file, from GNU gettext.
72565
72566 2005-07-18  Bruno Haible  <bruno@clisp.org>
72567
72568         * lib/lock.h: New file, from GNU gettext.
72569         * lib/lock.c: New file, from GNU gettext.
72570
72571 2005-07-18  Bruno Haible  <bruno@clisp.org>
72572
72573         * lib/lock.h (gl_once_t): New type.
72574         (gl_once_define, gl_once): New macros.
72575         * lib/lock.c (fresh_once): New variable.
72576         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72577         functions.
72578
72579 2005-07-16  Simon Josefsson  <jas@extundo.com>
72580
72581         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72582         workaround, suggested by Bruno.
72583
72584 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * modules/xalloc (Depends-on): Add xalloc-die.
72587         * modules/xvasprintf (Depends-on): Add xalloc-die.
72588
72589 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72592         with a minor change.
72593
72594 2005-07-15  Bruno Haible  <bruno@clisp.org>
72595
72596         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72597         When using lib/poll.c, define poll as rpl_poll.
72598
72599 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * modules/argp (Depends-on): Remove unlocked-io.
72602
72603 2005-07-14  Derek Price  <derek@ximbiot.com>
72604
72605         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72606         for glob symlink bug.
72607
72608 2005-07-14  Bruno Haible  <bruno@clisp.org>
72609
72610         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72611         Instead, test for *_unlocked function declarations directly.
72612
72613 2005-07-11  Simon Josefsson  <jas@extundo.com>
72614
72615         * modules/size_max: New file.
72616
72617         * modules/xsize: Depend on size_max module for size_max.m4.
72618
72619 2005-07-11  Simon Josefsson  <jas@extundo.com>
72620
72621         * lib/size_max.h: New file.
72622
72623 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72626         copyright symbol and the year.
72627         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72628         (version_etc_va): Use parameterized copyright notice.
72629         Reword to conform to the current GNU coding standards.
72630
72631 2005-07-11  Karl Berry  <karl@gnu.org>
72632
72633         * doc/gnulib.texi (Quoting): new node.
72634         (Initial import): more info, from Patrice.
72635
72636 2005-07-11  Bruno Haible  <bruno@clisp.org>
72637
72638         * gnulib-tool (func_usage): Document option --avoid.
72639         (Command line options): Handle --avoid.
72640         (func_acceptable): New function.
72641         (func_modules_transitive_closure): Use it.
72642
72643 2005-07-11  Bruno Haible  <bruno@clisp.org>
72644
72645         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72646         Reported by Jim Meyering.
72647
72648 2005-07-10  Bruno Haible  <bruno@clisp.org>
72649
72650         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72651         Needed when size_t is smaller than 'unsigned int'.
72652         Reported by Paul Eggert.
72653
72654 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72655
72656         * modules/argp (Depends-on): Add unlocked-io
72657
72658 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72659
72660         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72661         block of defines.
72662
72663 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72666         fix now.
72667
72668 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72669         and Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72672         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72673
72674 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * modules/regex (Files): Add lib/regex_internal.c,
72677         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72678         (Depends-on): Add extensions.
72679         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72680
72681 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72682
72683         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72684         pathconf.
72685         * m4/same.m4 (gl_SAME): Likewise.
72686         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72687
72688         * m4/regex.m4: Adjust to new libc regex implementation.
72689         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72690         all the .c and .h parts of (the new) regex.
72691         Quote the m4 stuff better.
72692         Check for RE_ICASE bug of old gnulib.
72693         Check for REG_STARTEND of recent libc.
72694         Rename local variables from jm_* to gl_*.
72695         Quote operand of "test -f".
72696         Say "recent enough" version of libc, not "version 2".
72697         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72698         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72699         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72700         Remove check for btowc, isascii.
72701         Require AM_LANGINFO_CODESET.
72702
72703 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * lib/regex.c, regex.h: Sync from libc.
72706         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72707         * lib/regexec.c:
72708         New files, synced from libc, except that regex_internal.h
72709         currently has a small porting fix.
72710
72711 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72714         regex_internal.c, regexec.c.
72715         Add regex_internal.h too, but as a comment, since the libc version
72716         is currently broken in gnulib mode.
72717
72718 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         Support programs like Emacs that use gnulib but not gettext.
72721         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72722         * modules/gettext-h: New file.
72723         * modules/gettext (Files): Remove lib/gettext.h.
72724         (Depends-on): Add gettext-h.
72725         (Makefile.am): Remove lib_SOURCES.
72726         * modules/argmatch, modules/c-stack, modules/closeout:
72727         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72728         * modules/execute, modules/file-type, modules/getaddrinfo:
72729         * modules/getopt, modules/human, modules/javacomp:
72730         * modules/javaexec, modules/mkdir-p, modules/obstack:
72731         * modules/openat, modules/pagealign_alloc, modules/pipe:
72732         * modules/quotearg, modules/regex, modules/rpmatch:
72733         * modules/unicodeio, modules/userspec, modules/version-etc:
72734         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72735         * modules/xsetenv:
72736         Depend on gettext-h, not gettext.
72737
72738 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         * gnulib-tool (func_import): Add support for 'public domain' license.
72741         * modules/alloca, modules/atexit, modules/memmove:
72742         Now public domain, not GPL.
72743         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72744         * modules/realloc, modules/strerror, modules/strtod:
72745         Now LGPL, not GPL.
72746
72747 2005-07-05  Bruno Haible  <bruno@clisp.org>
72748
72749         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72750         autoconf CVS. Needed for mingw.
72751
72752 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         Remove the dependency of the strftime module on the tzset module.
72755         * modules/strftime (Depends-on): Remove dependency on tzset.
72756
72757 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         Remove the dependency of the strftime module on the tzset module.
72760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72761         gl_FUNC_TZSET_CLOBBER.
72762
72763 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         Remove the dependency of the strftime module on the tzset module.
72766         * lib/strftime.c (my_strftime)
72767         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72768         Copy the input structure, to work around some of the bug with
72769         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72770         Solaris releases, you should also use the tzset module, but we won't
72771         require it as a dependency any more since we don't want LGPLed code
72772         to depend on GPLed code.
72773
72774 2005-07-02  Jim Meyering  <jim@meyering.net>
72775
72776         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72777         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72778         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72779         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72780
72781 2005-07-02  Jim Meyering  <jim@meyering.net>
72782
72783         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72784
72785 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72788         declares only 'struct timespec;' (!).
72789
72790 2005-07-01  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72793         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72794         * lib/save-cwd.c, tempname.c:
72795         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72796         and don't include <sys/file.h>).
72797
72798 2005-06-29  Jim Meyering  <jim@meyering.net>
72799
72800         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72801         type name.  Use the variable name instead.
72802         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72803         Likewise.
72804
72805 2005-06-28  Simon Josefsson  <jas@extundo.com>
72806
72807         * modules/check-version (Files): Add check-version.m4.
72808
72809 2005-06-28  Simon Josefsson  <jas@extundo.com>
72810
72811         * m4/check-version.m4: New file, suggested by Jim Meyering
72812         <jim@meyering.net>.
72813
72814 2005-06-28  Simon Josefsson  <jas@extundo.com>
72815
72816         * lib/check-version.h, lib/check-version.c: New files.
72817
72818 2005-06-28  Simon Josefsson  <jas@extundo.com>
72819
72820         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72821         collision with global variable.  Better indentation.  Don't
72822         increment buffer pointer beyond buffer end.  Based on comments
72823         from Paul Eggert <eggert@cs.ucla.edu>.
72824
72825         * lib/base64.h: Indent.
72826
72827 2005-06-28  Simon Josefsson  <jas@extundo.com>
72828
72829         * doc/gnulib.texi (Library version handling): New section.
72830
72831 2005-06-28  Jim Meyering  <jim@meyering.net>
72832
72833         * check-module (find_included_lib_files): Hard-code another
72834         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72835         but modules/fts-lgpl (correctly) does not list those files.
72836
72837         * modules/canonicalize (Files): Add lib/pathmax.h.
72838
72839 2005-06-25  Simon Josefsson  <jas@extundo.com>
72840
72841         * modules/check-version: New file.
72842
72843 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72846         initializer of struct addrinfo, as an indication that we don't
72847         care how many members the structure has.
72848
72849 2005-06-24  Derek Price  <derek@ximbiot.com>
72850         and Bruno Haible  <bruno@clisp.org>
72851
72852         Remove stat module & update lstat.
72853         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72855         * m4/stat.m4: Remove this file.
72856
72857 2005-06-24  Derek Price  <derek@ximbiot.com>
72858         and Bruno Haible  <bruno@clisp.org>
72859
72860         Remove stat module & update lstat.
72861         * lib/stat.c: Remove this file...
72862         (slash_aware_lstat): ...moving this content and its support...
72863         * lib/lstat.c (rpl_lstat): ...into here.
72864         * lib/lstat.h: New file.
72865
72866 2005-06-24  Derek Price  <derek@ximbiot.com>
72867         and Bruno Haible  <bruno@clisp.org>
72868
72869         Remove stat module & update lstat.
72870         * config/srclist.txt (libc sources): Remove stat.
72871
72872 2005-06-24  Derek Price  <derek@ximbiot.com>
72873         and Bruno Haible  <bruno@clisp.org>
72874
72875         Remove stat module & update lstat.
72876         * MODULES.html.sh (stat): Remove.
72877         * MODULES.html: Regenerated.
72878         * modules/lstat (Description): Correct function name.
72879         (Files): Add "lstat.h".
72880         (Depends-on): Remove stat, add xalloc, stat-macros.
72881         * modules/stat: Remove this file.
72882         (Include): Add "lstat.h", remove <sys/stat.h>.
72883
72884 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72887         (ranged_convert): Don't save conversion in a temporary struct.
72888         This causes a warning with GCC 4.0.0, and anyway in the typical
72889         case it's not worth the extra 100 bytes or so of code.
72890         (ranged_convert, __mktime_internal): When calling a function via a
72891         pointer P, use P () rather than (*P) (), as we now assume C89 or
72892         better.
72893
72894 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72897         "who -r" failed to give output.  Problem reported by Tim Waugh.
72898
72899         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72900         (xcalloc): Use it to avoid needless tests.
72901         Problem reported by Jim Meyering.
72902
72903 2005-06-20  Derek Price  <derek@ximbiot.com>
72904
72905         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72906         unnecessary for Autoconfs > 2.59c.
72907
72908 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72909
72910         * lib/argp.h (__option_is_short): Check upper limit of
72911         __key. Isprint() requires its argument to have the value
72912         of an unsigned char or EOF.
72913
72914 2005-06-16  Jim Meyering  <jim@meyering.net>
72915
72916         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72917         when either N or S is zero.
72918
72919 2005-06-16  Derek Price  <derek@ximbiot.com>
72920
72921         * m4/bison.m4: Declare YACC & YFLAGS precious.
72922
72923 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72924
72925         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72926         multibyte string or pattern, fall back on unibyte matching.
72927         Problem reported by James Youngman.
72928
72929 2005-06-08  Bruno Haible  <bruno@clisp.org>
72930
72931         * modules/csharpcomp: New file.
72932         * MODULES.html.sh (C#): Add csharpcomp.
72933
72934 2005-06-08  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/csharpcomp.m4: New file, from GNU gettext.
72937
72938 2005-06-08  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/csharpcomp.h: New file, from GNU gettext.
72941         * lib/csharpcomp.c: New file, from GNU gettext.
72942         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72943
72944 2005-06-08  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72947         warning on mingw.
72948
72949 2005-06-07  Derek Price  <derek@ximbiot.com>
72950
72951         Sync from CVS.
72952         * lib/glob_.h: Indent nested #ifdef.
72953
72954 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         Sync from coreutils.
72957         Use "file name" when talking about file names, instead of "filename"
72958         or "path", as per the GNU coding standards.
72959         * lib/mkdir-p.c: Renamed from makepath.c.
72960         (make_dir_parents): Renamed from make_path.  All callers changed.
72961         * lib/mkdir-p.h: Likewise.  All includers changed.
72962         * lib/filenamecat.c: Renamed from path-concat.c.
72963         (file_name_concat): Renamed from path_concat.  All callers changed.
72964         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72965         * lib/filenamecat.h: Likewise.  All includers changed.
72966         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72967         in comments or local variable names.
72968         * lib/basename.c: Likewise.
72969         * lib/canonicalize.c, canonicalize.h: Likewise.
72970         * lib/dirname.c, dirname.h: Likewise.
72971         * lib/euidaccess.c: Likewise.
72972         * lib/exclude.c: Likewise
72973         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72974         * lib/fsusage.c, fsuage.h: Likewise.
72975         * lib/fts.c, fts_.h: Likewise.
72976         * lib/getcwd.c: Likewise.
72977         * lib/getloadavg.c: Likewise.
72978         * lib/mkstemp.c: Likewise.
72979         * lib/mountlist.c, mountlist.h: Likewise.
72980         * lib/openat.c, openat.h: Likewise.
72981         * lib/readlink-stub.c: Likewise.
72982         * lib/readutmp.c, readutmp.h: Likewise.
72983         * lib/rename.c: Likewise.
72984         * lib/rmdir.c: Likewise.
72985         * lib/same.c: Likewise.
72986         * lib/savedir.c: Likewise.
72987         * lib/stripslash.c: Likewise.
72988         * lib/tempname.c: Likewise.
72989         * lib/xreadlink.c: Likewise.
72990         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72991         All uses changed.
72992         * lib/exclude.h: Likewise.
72993
72994         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72995         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72996         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72997         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72998         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72999         files have been getting away with it for years (MORE/BSD 4.3
73000         is extinct now).
73001         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73002         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73003
73004         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73005         Define to 256, not 255, as per modern POSIX.
73006
73007 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         Sync from coreutils.
73010         Use "file name" when talking about file names, instead of "filename"
73011         or "path", as per the GNU coding standards.
73012         * MODULES.html.sh: mkdir-p renamed from makepath.
73013         filenamecat renamed from path-concat.
73014         * modules/filenamecat: Renamed from modules/path-concat.
73015         (Files): filenamecat.h and filenamecat.c renamed from
73016         path-concat.h and path-concat.c.
73017         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73018         (Include): filenamecat.h, not path-concat.h.
73019         * modules/mkdir-p: Renamed from modules/makepath.
73020         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73021         makepath.c.
73022         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73023         (Include): mkdir-p.h, not makepath.h.
73024
73025 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         Sync from coreutils.
73028         * m4/mkdir-p.m4: Renamed from makepath.m4.
73029         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73030         Rename files from makepath.c to mkdir-p.c, and from
73031         makepath.h to mkdir-p.h.
73032         * m4/filenamecat.m4: Renamed from path-concat.m4.
73033         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73034         Rename files from path-concat.c to filenamecat.c,
73035         and from path-concat.h to filenamecat.h.
73036         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73037         "file name" in local variables or comments.
73038         * m4/rename.m4: Likewise.
73039
73040 2005-06-01  Bruno Haible  <bruno@clisp.org>
73041
73042         * modules/csharpexec: New file.
73043         * MODULES.html.sh (C#): New section.
73044
73045 2005-06-01  Bruno Haible  <bruno@clisp.org>
73046
73047         * m4/csharp.m4: New file, from GNU gettext.
73048         * m4/csharpexec.m4: New file, from GNU gettext.
73049
73050 2005-06-01  Bruno Haible  <bruno@clisp.org>
73051
73052         * lib/csharpexec.h: New file, from GNU gettext.
73053         * lib/csharpexec.c: New file, from GNU gettext.
73054         * lib/csharpexec.sh.in: New file, from GNU gettext.
73055
73056 2005-05-31  Derek Price  <derek@ximbiot.com>
73057             Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         Sync from cvs.
73060         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73061
73062 2005-05-31  Derek Price  <derek@ximbiot.com>
73063             Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         Sync from cvs.
73066         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73067
73068 2005-05-29  Derek Price  <derek@ximbiot.com>
73069
73070         * config/srclist.txt (glob_.h, glob.c): Add these files.
73071
73072 2005-05-29  Derek Price  <derek@ximbiot.com>
73073
73074         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73075         * modules/glob: New file.
73076         * modules/getlogin_r: Add link to POSIX spec in description.
73077
73078 2005-05-29  Derek Price  <derek@ximbiot.com>
73079             Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * m4/glob.m4: New file.
73082
73083 2005-05-29  Derek Price  <derek@ximbiot.com>
73084             Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * lib/glob_.h, lib/glob.c: New files.
73087
73088 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73091         * modules/fts-lgpl (Depends-on): Remove gettext.
73092
73093 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73096         and don't require gt_INTTYPES_PRI.
73097
73098 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73101
73102         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73103         the configuration hassle isn't worth it.
73104         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73105         (LONGEST_MODIFIER, PRIuMAX): Remove.
73106
73107 2005-05-27  Bruno Haible  <bruno@clisp.org>
73108
73109         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73110
73111 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73114         _POSIX_PTHREAD_SEMANTICS for Solaris.
73115
73116 2005-05-25  Derek Price  <derek@ximbiot.com>
73117
73118         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73119
73120 2005-05-25  Derek Price  <derek@ximbiot.com>
73121             Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73124         * lib/getlogin_r.c, getlogin_r.h: New files.
73125
73126 2005-05-25  Bruno Haible  <bruno@clisp.org>
73127             Derek Price  <derek@ximbiot.com>
73128
73129         * lib/getlogin_r.h: Simplify API documentation.
73130
73131 2005-05-23  Derek Price  <derek@ximbiot.com>
73132
73133         * modules/minmax (Files): Add m4/minmax.m4.
73134         (configure.ac): Add gl_MINMAX.
73135
73136 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73139         so that unistd-safer.h (GPL'ed code) need not be included.
73140
73141 2005-05-22  Bruno Haible  <bruno@clisp.org>
73142
73143         * m4/minmax.m4: New file.
73144         Based on a patch by Derek Price <derek@ximbiot.com>.
73145
73146 2005-05-22  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73149         (INT64_MIN): Fix definition.
73150         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73151
73152         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73153         NEED_SIGNED_INT_TYPES.
73154
73155         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73156         HAVE_SYSTEM_INTTYPES.
73157
73158 2005-05-22  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73161         Also include <sys/param.h> if it defines MIN, MAX.
73162         Based on a patch by Derek Price <derek@ximbiot.com>.
73163
73164 2005-05-21  Jim Meyering  <jim@meyering.net>
73165
73166         * modules/fts (Files): Add m4/inttypes-pri.m4.
73167         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73168
73169 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         New fts module.
73172         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73173         (setup_dir, free_dir): New functions.
73174         (enter_dir, leave_dir): Define trivial
73175         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73176         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73177         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73178         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73179         Move to fts-cycle.c.
73180         (fts_open): Use setup_dir.
73181         (fts_close): Use free_dir.
73182         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73183         This adds a label and some gotos, but the alternatives were messier.
73184         Check for memory allocation failure when entering a dir.
73185         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73186         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73187         (FTS): New member fts_cycle, that is a union that contains the
73188         old active_dir_ht and cycle_state.  All uses changed to mention
73189         fts_cycle.ht and fts_cycle.state.
73190         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73191         fts.c, with the following changes:
73192         (setup_dir, free_dir): New functions.
73193         (enter_dir): Now returns bool.  Return true if successful, false
73194         if memory exhausted.  All callers changed.
73195         Do not bother partly cleaning up on
73196         memory allocation failure; that is free_dir's job.
73197         However, free ad if hash_insert fails, to avoid memory leak.
73198         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73199         fts->fts_options to see which union member to use.
73200
73201 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73204         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73205
73206 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73209
73210 2005-05-20  Jim Meyering  <jim@meyering.net>
73211
73212         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73213         Now a macro, to pacify GCC.
73214
73215 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73216
73217         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73218         of -1.
73219
73220 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73221
73222         * lib/chown.c (rpl_chown): Return -1 on failure.
73223
73224 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73227         Don't check for stddef.h.
73228         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73229         don't use its results.
73230         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73231         since we include them unconditionally.  Don't require
73232         AM_STDBOOL_H, since stdbool is a prerequisite.
73233         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73234         since we assume C89 or better.
73235         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73236         as we don't use their results.
73237         Don't check for fchdir, memmove, memset, strrchr, as we use
73238         them unconditionally.
73239         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73240         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73241
73242 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73245         Include <stddef.h> unconditionally, since we assume C89 now.
73246         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73247         * lib/fts.c: Include fts_.h first, to check interface.
73248         Do not include intprops.h; no longer needed.
73249         Include cycle-check.h and hash.h, since fts_.h no longer does.
73250         Remove unnecessary casts of closedir to void.
73251         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73252         decide whether to decrement nlinks.
73253         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73254         (FTS): Use struct hash_table * instead of Hash_table, so that
73255         we no longer need to include hash.h here.
73256
73257 2005-05-18  Jim Meyering  <jim@meyering.net>
73258
73259         * modules/dirfd (License): Change to LGPL.  Most of the code
73260         is already in the public domain.
73261
73262 2005-05-18  Jim Meyering  <jim@meyering.net>
73263
73264         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73265         Reported by Yoann Vandoorselaere.
73266
73267 2005-05-17  Jim Meyering  <jim@meyering.net>
73268
73269         * m4/fts.m4: New file, from coreutils.
73270
73271 2005-05-17  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73274
73275 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         Sync from coreutils.
73278         * m4/unlinkdir.m4: New file.
73279
73280 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         Sync from coreutils.
73283         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73284         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73285         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73286         White space changes only.
73287         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73288         special.
73289         * lib/yesno.c: Include getline.h, not ctype.h.
73290         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73291         Use getline to remove arbitrary restriction on response length.
73292
73293 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73294
73295         * config/srclist-update: Spell out "Street" in FSF postal
73296         mail address; this is the style the FSF seems to prefer.
73297
73298         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73299         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73300         this updates FSF postal mail address.
73301
73302         Sync from coreutils.
73303         * modules/unlinkdir: New file.
73304         * modules/yesno (Depends-on): Add getline.
73305         * MODULES.html.sh (File system functions): Add unlinkdir.
73306
73307 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73310         lib/strsep.h:
73311         Change the initial comment to refer to GPL, not LGPL.
73312         gnulib-tool will change it to LGPL as needed.
73313
73314         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73315         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73316         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73317         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73318         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73319         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73320         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73321         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73322         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73323         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73324         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73325         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73326         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73327         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73328         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73329         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73330         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73331         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73332         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73333         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73334         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73335         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73336         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73337         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73338         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73339         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73340         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73341         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73342         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73343         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73344         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73345         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73346         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73347         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73348         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73349         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73350         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73351         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73352         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73353         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73354         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73355         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73356         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73357         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73358         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73359         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73360         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73361         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73362         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73363         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73364         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73365         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73366         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73367         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73368         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73369         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73370         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73371         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73372         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73373         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73374         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73375         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73376         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73377         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73378         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73379         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73380         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73381         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73382         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73383         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73384         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73385         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73386         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73387         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73388         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73389         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73390         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73391         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73392         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73393         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73394         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73395         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73396         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73397         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73398         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73399         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73400         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73401         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73402         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73403         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73404         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73405         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73406         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73407         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73408         lib/yesno.c, lib/yesno.h:
73409         Update FSF postal mail address.
73410
73411 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73414         tests/test-memmem.c, tests/test-stpncpy.c:
73415         Update FSF postal mail address.
73416
73417 2005-05-13  Bruno Haible  <bruno@clisp.org>
73418
73419         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73420         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73421         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73422         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73423         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73424         Add support for 64-bit integers in the MSVC compiler.
73425
73426 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73427
73428         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73429
73430 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73431
73432         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73433
73434 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * doc/getdate.texi (General date syntax): Don't say that date
73437         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73438         Problem reported by Nic Ferrier.
73439
73440 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73441
73442         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73443         specified in ai_socktype. Fix invalid ai_protocol
73444         check. ai_protocol is usually set to 0 or depending on
73445         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73446         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73447         ai_socktype / ai_protocol in the returned addrinfo structure.
73448
73449 2005-05-10  Simon Josefsson  <jas@extundo.com>
73450
73451         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73452         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73453
73454 2005-05-10  Karl Berry  <karl@gnu.org>
73455
73456         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73457         (from http://www.gnu.org/licenses).
73458         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73459         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73460         fdl.texi suffices.
73461
73462 2005-05-10  Karl Berry  <karl@gnu.org>
73463
73464         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73465         (COPYING.DOC): remove.
73466
73467         * config/srclist-update: new FSF address.
73468
73469 2005-05-10  Derek Price  <derek@ximbiot.com>
73470
73471         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73472         possible.
73473
73474 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73475             Bruno Haible  <bruno@clisp.org>
73476
73477         * modules/inet_ntop: New file.
73478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73479         inet_ntop.
73480
73481 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73482             Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/inet_ntop.m4: New file.
73485
73486 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73487             Bruno Haible  <bruno@clisp.org>
73488
73489         * lib/inet_ntop.h: New file.
73490         * lib/inet_ntop.c: New file, from glibc with modifications.
73491
73492 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * modules/time_r (License): Change to LGPL.
73495         * modules/extensions (License): Change to LGPL.  Actually,
73496         the license is more permissive than that, but currently gnulib-tool
73497         doesn't know how to handle more-permissive licenses.
73498
73499         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73500         Problem reported by Dave Love.
73501
73502 2005-05-08  Jim Meyering  <jim@meyering.net>
73503
73504         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73505         blank.
73506
73507 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * modules/argmatch (Depends-on): Add stdbool.
73510         * modules/backupfile (Depends-on): Likewise.
73511         * modules/chdir-long (Depends-on): Likewise.
73512         * modules/closeout (Depends-on): Likewise.
73513         * modules/cycle-check (Depends-on): Likewise.
73514         * modules/dirname (Depends-on): Likewise.
73515         * modules/fnmatch (Depends-on): Likewise.
73516         * modules/fsusage (Depends-on): Likewise.
73517         * modules/fwriteerror (Depends-on): Likewise.
73518         * modules/getcwd (Depends-on): Likewise.
73519         * modules/getloadavg (Depends-on): Likewise.
73520         * modules/hard-locale (Depends-on): Likewise.
73521         * modules/makepath (Depends-on): Likewise.
73522         * modules/mountlist (Depends-on): Likewise.
73523         * modules/nanosleep (Depends-on): Likewise.
73524         * modules/posixtm (Depends-on): Likewise.
73525         * modules/quotearg (Depends-on): Likewise.
73526         * modules/readtokens (Depends-on): Likewise.
73527         * modules/readtokens0 (Depends-on): Likewise.
73528         * modules/readutmp (Depends-on): Likewise.
73529         * modules/save-cwd (Depends-on): Likewise.
73530         * modules/strftime (Depends-on): Likewise.
73531         * modules/userspec (Depends-on): Likewise.
73532         * modules/utimecmp (Depends-on): Likewise.
73533         * modules/xgetcwd (Depends-on): Likewise.
73534         * modules/xnanosleep (Depends-on): Likewise.
73535         * modules/xstrtod (Depends-on): Likewise.
73536         * modules/yesno (Depends-on): Likewise.
73537
73538 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73541         needless checks.
73542
73543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         Merge from coreutils.  Among other things,
73546         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73547         * lib/fd-safer.c: New file.
73548         * lib/fcntl-safer.h, open-safer.c: Remove.
73549         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73550         * lib/dup-safer.c: Include unistd-safer.h first.
73551         Don't include errno.h.
73552         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73553         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73554         * lib/file-type.c: Rely on file-type.h change.
73555         * lib/getloadavg.c: Include unistd-safer.h.
73556         (getloadavg): Use safer open.
73557         * lib/getusershell.c: Include "stdio-safer.h".
73558         (getusershell): Use safer fopen.
73559         * lib/long-options.c (long_options): Use NULL rather than 0.
73560         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73561         'free'.
73562         * lib/modechange.c: Likewise.
73563         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73564         (MODE_DONE): New constant.
73565         (struct mode_change): Remove 'next' member.
73566         (make_node_op_equals): New function; like the old one of the
73567         same name, except it allocates an array.
73568         (mode_compile, mode_create_from_ref): Use it.
73569         (mode_compile): Allocate result as an array, not a linked list.
73570         Parse octal string ourself, so that we catch mistakes like "+0".
73571         (mode_adjust): Arg is an array, not a linked list.
73572         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73573         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73574         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73575         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73576         Remove.  This is now stat-macros.h's job.
73577         (talloc): Remove.  All callers replaced by xalloc, so that
73578         our invokers don't have to worry about reporting memory failures.
73579         (make_node_op_equals): Remove.
73580         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73581         New constants.
73582         (struct mode_change): Moved here from modechange.h.
73583         (mode_append_entry): Remove.
73584         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73585         apps to have incorrect behavior.  Use simpler algorithm for head
73586         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73587         Detect more invalid usages rather than having somewhat-random behavior.
73588         Don't insert an "a=" action, as that leads to incorrect behavior.
73589         (mode_compile, mode_create_from_ref): Return NULL on error instead
73590         of an enum, since now there's only one way to have an error.  All
73591         callers changed.
73592         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73593         at the correct time.  Simplify calculation of "+u" and its ilk.
73594         Don't mishandle "+X".
73595         (mode_free): Remove "register" and localize decls.
73596         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73597         (struct mode_change): Move to modechange.c; callers don't
73598         need to see this stuff.
73599         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73600         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73601         (mode_change, mode_adjust): Reflect the new signatures noted above.
73602         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73603         that might redefine system include files.
73604         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73605         (my_usleep): Use NULL rather than (void *) 0.
73606         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73607         Use siginterrupt to specify that system calls should be interrupted.
73608         (rpl_nanosleep): Move initialization of suspended closer to call of
73609         my_usleep.
73610         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73611         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73612         (desirable_utmp_entry): New function.
73613         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73614         using x2nrealloc, to simplify logic.
73615         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73616         size calculation.  Do not assume utmp file is a regular file.
73617         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73618         (READ_UTMP_CHECK_PIDS): New constant.
73619         * lib/save-cwd.c: Include unistd-safer.h.
73620         (save_cwd): Use fd_safer.
73621         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73622         [!_LIBC] Include "stat-macros.h" instead.
73623         * lib/unistd-safer.h (fd_safer): New decl.
73624
73625 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73626
73627         * modules/getloadavg (Depends-on): Add unistd-safer.
73628         * modules/getusershell (Depends-on): Add stdio-safer.
73629         * modules/lstat (Depends-on): Remove xalloc.
73630         * modules/mkstemp (Depends-on): Add stat-macros.
73631         * modules/modechange (Depends-on): Remove xstrtol.
73632         Add stat-macros, xalloc.
73633         * modules/save-cwd (Depends-on): Add unistd-safer.
73634         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73635         * modules/unistd-safer (Files): Add lib/fd-safer.c
73636         (Makefile.am): Remove lib_SOURCES.
73637
73638         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73639         Remove fcntl-safer; unistd-safer supersedes it.
73640
73641 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73644         AC_HEADER_STAT.
73645         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73646         (gl_PREREQ_CHOWN): Remove.
73647         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73648         it.  Don't require AC_HEADER_STAT.
73649         (gl_PREREQ_LSTAT): Remove.
73650         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73651         Don't require AC_HEADER_STAT.
73652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73653         (gl_PREREQ_RMDIR): Remove.
73654         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73655         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73656         the stat-macros module a prerequisite.
73657         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73658         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73659         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73660         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73661         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73662         variable names.
73663         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73664         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73665         variable prefixes.
73666         * m4/fcntl-safer.m4: Remove.
73667         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73668         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73669         Invoke gl_PREREQ_FD_SAFER.
73670         (gl_PREREQ_FD_SAFER): New macro.
73671         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73672         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73673         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73674         Remove duplicate call to AC_LIBOBJ(readutmp).
73675         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73676
73677         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73678         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73679
73680 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * MODULES.html.sh (Misc): Add byteswap.
73683
73684 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73685
73686         * modules/getcwd (Depends-on): Add extensions.
73687         * modules/openat (Depends-on): Likewise.
73688
73689 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73690
73691         * modules/byteswap: New file.
73692
73693 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73694
73695         * m4/byteswap.m4: New file.
73696
73697 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73698
73699         * lib/byteswap_.h: New file.
73700
73701 2005-04-25  Karl Berry  <karl@gnu.org>
73702
73703         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73704
73705 2005-04-25  Albert Chin  <china@thewrittenword.com>
73706
73707         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73708         Toolkit C bug.
73709
73710 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73711
73712         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73713         (func_ln_if_changed): Remove forcibly for no error message
73714         in case file does not exist.
73715
73716 2005-04-19  Simon Josefsson  <jas@extundo.com>
73717
73718         * gnulib-tool (Options): Make --symlink mean --symbolic.
73719
73720 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73721
73722         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73723
73724 2005-04-16  Simon Josefsson  <jas@extundo.com>
73725
73726         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73727
73728 2005-04-15  Simon Josefsson  <jas@extundo.com>
73729
73730         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73731
73732 2005-04-15  Simon Josefsson  <jas@extundo.com>
73733
73734         * gnulib-tool: Rename --symlink to --symbolic.
73735
73736 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73737
73738         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73739         symbolic links to files instead of copying/moving.  Add --aux-dir,
73740         specifying directory relative --dir where auxiliary build tools
73741         are placed.
73742
73743 2005-04-14  Bruno Haible  <bruno@clisp.org>
73744
73745         * modules/allocsa (License): Change to LGPL.
73746         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73747
73748 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73751         that "UTC +1 second" continues to work.  Problem reported
73752         by Dmitry V. Levin.
73753         (relunit_snumber): New rule.
73754         (relunit): Use it.
73755
73756 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * lib/getdate.y (universal_time_zone_table): New constant.
73759         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73760         universal_time_zone_table.
73761         (lookup_zone): Prefer universal_time_zone_table to
73762         local_time_zone_table, so that "GMT" time stamps are allowed in
73763         London during the summer.  Problem reported by Ian Abbott.
73764
73765 2005-04-12  Jim Meyering  <jim@meyering.net>
73766
73767         * lib/human.c (humblock): Set *options even when returning due to
73768         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73769         warning from gcc-4.
73770
73771 2005-04-09  Jim Meyering  <jim@meyering.net>
73772
73773         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73774         -Wuninitialized: initialize tm0.tm_year.
73775
73776 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73779         count, since there's no maximum.  All uses changed.
73780         Add member dsts_seen.
73781         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73782         not being INT_MAX.
73783         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73784         Use pc_rels_seen to decide whther a date is absolute.
73785
73786         * lib/getdate.y (number): Don't overwrite year.
73787         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73788         check.
73789
73790 2005-04-02  Simon Josefsson  <jas@extundo.com>
73791
73792         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73793         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73794
73795 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73796
73797         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73798         where no absolute path name can be longer than PATH_MAX.
73799
73800 2005-03-27  Jim Meyering  <jim@meyering.net>
73801
73802         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73803
73804 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73807         "one's complement" -> "ones' complement" in comment, as per Knuth.
73808         "value of type" -> "type or expression" in comment.
73809         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73810
73811 2005-03-26  Jim Meyering  <jim@meyering.net>
73812
73813         Comment nits.
73814         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73815         Correct typos: s/or/of/.
73816
73817 2005-03-26  Jim Meyering  <jim@meyering.net>
73818
73819         * modules/check-include-files: Move to ../ and rename to...
73820         * check-module: ...this.
73821
73822 2005-03-25  Jim Meyering  <jim@meyering.net>
73823
73824         * modules/xvasprintf (Files): Add xalloc.h.
73825
73826 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * modules/gettext (Files): config/config.rpath ->
73829         build-aux/config.rpath
73830         * modules/iconv (Files): Likewise.
73831         Problem reported by Oskar Liljeblad.
73832
73833 2005-03-23  Jim Meyering  <jim@meyering.net>
73834
73835         * modules/check-include-files: New script to check for
73836         missing dependencies, multiple includes, etc.
73837
73838         * modules/c-strtold (Depends-on): Add xalloc.
73839         * modules/c-strtod (Depends-on): Add xalloc.
73840         * modules/hash (Depends-on): Add xalloc.
73841         (Files): Remove lib/xalloc.h.
73842
73843         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73844         * modules/userspec (Files): Add lib/inttostr.h.
73845
73846 2005-03-23  Jim Meyering  <jim@meyering.net>
73847
73848         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73849
73850 2005-03-22  Jim Meyering  <jim@meyering.net>
73851
73852         * modules/stat-macros: New module.
73853         * modules/canonicalize, modules/euidaccess, modules/file-type,
73854         * modules/filemode, modules/lchown, modules/makepath,
73855         * modules/rmdir, modules/stat: Depend on new stat-macros module
73856         rather than listing lib/stat-macros.h manually.
73857         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73858
73859 2005-03-22  Jim Meyering  <jim@meyering.net>
73860
73861         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73862
73863 2005-03-22  Bruno Haible  <bruno@clisp.org>
73864
73865         * config/srclist.txt: Replace target directory 'config' with
73866         'build-aux'.
73867         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73868         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73869         ../build-aux/.
73870
73871 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         * modules/chdir-long (Depends-on): Add mempcpy.
73874
73875         * modules/acl, modules/backupfile, modules/c-strtod,
73876         modules/c-strtold, modules/canon-host, modules/canonicalize,
73877         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73878         modules/exclude, modules/exitfail, modules/file-type,
73879         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73880         modules/getdate, modules/getline, modules/getpagesize,
73881         modules/getpass, modules/getugroups, modules/group-member,
73882         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73883         modules/inttostr, modules/long-options, modules/makepath,
73884         modules/md5, modules/memcasecmp, modules/memcoll,
73885         modules/modechange, modules/mountlist, modules/path-concat,
73886         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73887         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73888         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73889         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73890         modules/strftime, modules/strndup, modules/strverscmp,
73891         modules/timespec, modules/unlocked-io, modules/userspec,
73892         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73893         modules/yesno:
73894         Remove lib_SOURCES line from Makefile.am section, as this is now
73895         done automatically by the corresponding Autoconf macro.
73896
73897 2005-03-21  Jim Meyering  <jim@meyering.net>
73898
73899         Changes imported from coreutils.
73900
73901         * lib/cycle-check.c: Don't include xalloc.h.
73902
73903         * lib/path-concat.c: Don't include assert.h.
73904         (path_concat): Remove assertion that would have triggered
73905         for ABASE starting with more than one slash.
73906         Reported by Andreas Schwab.
73907
73908         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73909         properly when ABASE is an absolute file name.
73910         Correct the description of this function.
73911         Include <assert.h>.
73912         Add an assertion and a test driver.
73913         This fixes a bug introduced on 2004-07-02.
73914         Andreas Schwab reported the resulting failure of cp --parents:
73915         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73916
73917 2005-03-21  Jim Meyering  <jim@meyering.net>
73918
73919         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73920         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73921
73922 2005-03-21  Jim Meyering  <jim@meyering.net>
73923         and  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73926         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73927         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73928         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73929         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73930         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73931         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73932         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73933         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73934         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73935         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73936         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73937         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73938         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73939         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73940         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73941         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73942         for these modules.
73943
73944 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73947         (which shouldn't happen), generate nothing instead of returning 0
73948         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73949
73950 2005-03-16  Bruno Haible  <bruno@clisp.org>
73951
73952         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73953         HAVE_LONGLONG_64BIT.
73954
73955 2005-03-16  Bruno Haible  <bruno@clisp.org>
73956
73957         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73958         HAVE_LONGLONG_64BIT.
73959
73960 2005-03-16  Bruno Haible  <bruno@clisp.org>
73961
73962         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73963         HAVE_LONGLONG_64BIT.
73964
73965 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73968         reliably distinguish strftime failure from empty output on POSIX
73969         hosts.
73970
73971 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73974         (iconv_string): Don't guess a size-zero buffer, as that might cause
73975         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73976         result would be 'too large', where 'too large' is (heuristically)
73977         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73978         overflow concerns.  This will prevent some unwanted malloc failures
73979         when the inputs are very large.
73980
73981 2005-03-15  Karl Berry  <karl@gnu.org>
73982
73983         * config/srclist.txt (config.rpath): from gettext.
73984         * config/config.rpath: update.
73985
73986 2005-03-15  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73989         to 'negate'.
73990
73991         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73992         variable.
73993
73994         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73995         results.
73996
73997 2005-03-14  Simon Josefsson  <jas@extundo.com>
73998
73999         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74000         <fx@gnu.org>.
74001
74002 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74005         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74006         intprops.h.
74007         * lib/strtol.c: Likewise.
74008
74009 2005-03-14  Jim Meyering  <jim@meyering.net>
74010
74011         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74012         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74013         to be nonzero so that we (and caller) can detect the difference
74014         between a valid zero-length expansion and an error return, even
74015         when the underlying strftime fails before writing anything into
74016         that location.
74017
74018 2005-03-14  Bruno Haible  <bruno@clisp.org>
74019
74020         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74021         Update from GNU gettext 0.14.3.
74022
74023 2005-03-10  Jim Meyering  <jim@meyering.net>
74024
74025         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74026
74027 2005-03-10  Jim Meyering  <jim@meyering.net>
74028
74029         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74030         so that this module works on systems without fchdir.
74031
74032 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         Factor int-properties macros into a single file, except for
74035         glibc-related files.
74036         * lib/intprops.h: New file.
74037         * lib/getloadavg.c: Include it instead of limits.h.
74038         (INT_STRLEN_BOUND): Remove.
74039         * lib/human.c: Include intprops.h.
74040         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74041         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74042         302/1000.
74043         * lib/inttostr.h: Include intprops.h instead of limits.h.
74044         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74045         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74046         for consistency with intprops.h.
74047         (time_t_is_integer, twos_complement_arithmetic): Use them.
74048         * lib/sig2str.h: Include <signal.h>, intprops.h.
74049         (INT_STRLEN_BOUND): Remove.
74050         * lib/strftime.c (TYPE_SIGNED): Remove.
74051         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74052         * lib/strtol.c: Adjust comments to match intprops.h.
74053         * lib/userspec.c: Include intprops.h.
74054         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74055         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74056         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74057         instead of rolling our own expressions.
74058         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74059
74060         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74061         instead of int.
74062         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74063         the right thing even if adding 1900 would overflow.  Similarly
74064         for tm_mon + 1 and tm_yday + 1.
74065         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74066         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74067         (DO_SIGNED_NUMBER): New macro.
74068         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74069
74070 2005-03-07  Bruno Haible  <bruno@clisp.org>
74071
74072         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74073
74074 2005-03-07  Bruno Haible  <bruno@clisp.org>
74075
74076         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74077
74078 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74079
74080         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74081         (func_import): Only replace files via --import when they have actually
74082         changed.
74083
74084 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74085
74086         * m4/mmap-anon.m4: New file.
74087         * m4/pagealign_alloc.m4: New file.
74088
74089 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74090             Bruno Haible  <bruno@clisp.org>
74091
74092         * modules/pagealign_alloc: New file.
74093         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74094
74095 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74096             Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/pagealign_alloc.h: New file.
74099         * lib/pagealign_alloc.c: New file.
74100
74101 2005-03-03  Bruno Haible  <bruno@clisp.org>
74102
74103         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74104         Use an all-permissive copyright notice, recommended by RMS.
74105
74106 2005-03-02  Bruno Haible  <bruno@clisp.org>
74107
74108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74109         of AIX, the replacement has to be done only after <string.h> is
74110         included, therefore not in config.h. stpncpy.h does the replacement,
74111         and stpncpy.c uses it.
74112
74113 2005-03-02  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74116         stpncpy.c uses it.
74117
74118 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74121         The workaround isn't strictly needed for POSIX conformance, and
74122         it's too much of a pain to configure and maintain.  We'll ask
74123         people to fix their kernels instead.
74124         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74125         (NANOSLEEP_BUG_WORKAROUND): Remove.
74126         (xnanosleep): Remove the workaround.
74127
74128 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74131         Reported by Derek Price.
74132         (Include): Add "timespec.h".
74133
74134         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74135
74136 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74139         to detect nanosleep bug.
74140
74141 2005-03-01  Bruno Haible  <bruno@clisp.org>
74142
74143         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74144
74145 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * modules/gethrxtime: New file.
74148         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74149         (Depends-on): Add gethrxtime.
74150         (configure.ac): Add gl_XNANOSLEEP.
74151         (Makefile.am): Remove lib_SOURCES line.
74152
74153 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74156         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74157
74158 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74161         * lib/timespec.h (gettime): Return void, since it always
74162         succeeds now.  All uses changed.
74163         * lib/gettime.c (gettime): Likewise.
74164         [HAVE_NANOTIME]: Prefer nanotime.
74165         Assume gettimeofday succeeds, as POSIX requires.
74166         Assime time () succeeds, since other code already does.
74167         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74168         (timespec_subtract): Remove.
74169         (NANOSLEEP_BUG_WORKAROUND): New constant.
74170         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74171         things considerably.  Use it only on GNU/Linux hosts, since the
74172         workaround shouldn't be needed elsewhere.
74173
74174 2005-02-24  Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/gettext (Files): Add m4/glibc2.m4.
74177
74178 2005-02-24  Bruno Haible  <bruno@clisp.org>
74179
74180         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74181         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74182         * m4/progtest.m4:
74183         Update from GNU gettext 0.14.2.
74184         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74185
74186 2005-02-24  Bruno Haible  <bruno@clisp.org>
74187
74188         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74189         * lib/config.charset: Update from GNU gettext 0.14.2.
74190
74191 2005-02-24  Bruno Haible  <bruno@clisp.org>
74192
74193         * lib/gettext.h: Update from GNU gettext 0.14.2.
74194
74195 2005-02-23  Simon Josefsson  <jas@extundo.com>
74196
74197         * m4/iconvme.m4: New file.
74198
74199 2005-02-23  Jim Meyering  <jim@meyering.net>
74200
74201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74202         change.
74203         Thanks to Bruno Haible for catching it.
74204
74205 2005-02-22  Simon Josefsson  <jas@extundo.com>
74206
74207         * modules/iconvme: New file.
74208
74209         * MODULES.html.sh: Add iconvme.
74210
74211 2005-02-22  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74214
74215 2005-02-22  Simon Josefsson  <jas@extundo.com>
74216
74217         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74218
74219 2005-02-22  Jim Meyering  <jim@meyering.net>
74220
74221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74222         s/ifndef/ifdef/.
74223
74224 2005-02-20  Neil Conway  <neilc@samurai.com>
74225
74226         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74227         returned by OSX/Darwin if the specified buffer is not large
74228         enough for the hostname.
74229
74230 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74231
74232         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74233         pass it to _help, otherwise the latter coredumps trying to
74234         dereference state.root_argp.
74235
74236 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * modules/chdir-long (Depends-on): Add memrchr.
74239         * modules/memrchr (Files): Add lib/memrchr.h.
74240         (Include): "memrchr.h".
74241
74242 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74243
74244         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74245
74246 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         * lib/memrchr.h: New file.
74249         * lib/chdir-long.c: Include it.
74250         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74251         Don't bother including stddef.h.
74252
74253 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74256         inclusion.
74257         Include <sys/types.h>, for dev_t.
74258         (ME_DUMMY, ME_REMOTE): Move from here....
74259         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74260         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74261         Dmitry V. Levin.
74262         Include mountlist.h first, to test the interface.
74263
74264 2005-01-29  Bruno Haible  <bruno@clisp.org>
74265
74266         * lib/progname.c (program_name): Initialize.
74267         Needed when linking statically on MacOS X.
74268
74269 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         Sync from coreutils.
74272         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74273         (Depends-on): Add c-strtod.
74274         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74275
74276 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         Sync from coreutils.
74279         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74280
74281         Remove files that are specific to coreutils.
74282         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74283
74284 2005-01-28  Bruno Haible  <bruno@clisp.org>
74285
74286         * modules/javacomp: New file.
74287         * MODULES.html.sh (Java): Add javacomp.
74288
74289 2005-01-28  Bruno Haible  <bruno@clisp.org>
74290
74291         * m4/javacomp.m4: New file, from GNU gettext.
74292
74293 2005-01-28  Bruno Haible  <bruno@clisp.org>
74294
74295         * lib/javacomp.sh.in: New file, from GNU gettext.
74296         * lib/javacomp.h: New file, from GNU gettext.
74297         * lib/javacomp.c: New file, from GNU gettext.
74298
74299 2005-01-26  Simon Josefsson  <jas@extundo.com>
74300
74301         * lib/gai_strerror.c: Use GPL in header.
74302
74303 2005-01-26  Bruno Haible  <bruno@clisp.org>
74304
74305         * modules/javaexec: New file.
74306         * MODULES.html.sh (Java): Add javaexec.
74307
74308 2005-01-26  Bruno Haible  <bruno@clisp.org>
74309
74310         * m4/javaexec.m4: New file, from GNU gettext.
74311
74312 2005-01-26  Bruno Haible  <bruno@clisp.org>
74313
74314         * lib/javaexec.sh.in: New file, from GNU gettext.
74315         * lib/javaexec.h: New file, from GNU gettext.
74316         * lib/javaexec.c: New file, from GNU gettext.
74317
74318 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74319
74320         * modules/lchown (Depends-on): Remove lchown.h
74321
74322 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74323
74324         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74325         must be defined if the header file was not found, in order
74326         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74327
74328 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74329
74330         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74331         initializers for struct pentry_state.
74332         (__argp_error): Check return value of __asprintf
74333         (__argp_failure): Translate error message
74334
74335         * lib/argp-parse.c: Removed braces around the expansion of N_()
74336
74337 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74340         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74341         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74342         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74343         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74344         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74345         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74346         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74347         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74348         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74349         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74350         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74351         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74352         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74353         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74354         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74355         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74356         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74357         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74358         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74359         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74360         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74361         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74362         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74363         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74364         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74365         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74366         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74367         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74368         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74369         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74370         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74371         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74372         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74373         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74374         Use an all-permissive copyright notice, recommended by RMS.
74375
74376 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74377
74378         * modules/chdir-long (Depends-on): Remove mempcpy.
74379
74380 2005-01-21  Jim Meyering  <jim@meyering.net>
74381
74382         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74383         same value as for Solaris 9.
74384
74385         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74386         component length.  This included changing the parameter to be
74387         of type `char *' rather than `char const *'.
74388         * lib/chdir-long.h (chdir_long): Update prototype.
74389
74390         * lib/openat.c (fdopendir, fstatat): New functions.
74391         * lib/openat.h: Include headers required for use of DIR and struct
74392         stat.
74393         [AT_SYMLINK_NOFOLLOW]: Define.
74394         (fdopendir, fstatat): Add prototypes.
74395
74396 2005-01-21  Bruno Haible  <bruno@clisp.org>
74397
74398         * modules/classpath: New file.
74399         * MODULES.html.sh (Java): Add classpath.
74400
74401 2005-01-21  Bruno Haible  <bruno@clisp.org>
74402
74403         * lib/classpath.h: New file, from GNU gettext.
74404         * lib/classpath.c: New file, from GNU gettext.
74405
74406 2005-01-20  Simon Josefsson  <jas@extundo.com>
74407
74408         * modules/version-etc-fsf: New file.
74409
74410 2005-01-20  Simon Josefsson  <jas@extundo.com>
74411
74412         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74413         * lib/version-etc.c: Remove version_etc_copyright.
74414         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74415         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74416
74417 2005-01-20  Simon Josefsson  <jas@extundo.com>
74418
74419         * lib/base64.h (isbase64): Add.
74420
74421         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74422         using a unsigned prototype, don't inline.
74423         (base64_decode): Use it.
74424
74425 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74428         it.
74429
74430 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         * lib/save-cwd.c (save_cwd): Remove code to support the case
74433         where fchdir is missing or flaky.
74434
74435 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74438
74439 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74442         AC_LIBSOURCES now does this.
74443         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74444         with new ullong_max module.
74445
74446 2005-01-19  Bruno Haible  <bruno@clisp.org>
74447
74448         * modules/sh-quote: New file.
74449         * MODULES.html.sh (Executing programs): Add sh-quote.
74450
74451 2005-01-19  Bruno Haible  <bruno@clisp.org>
74452
74453         * lib/sh-quote.h: New file, from GNU gettext.
74454         * lib/sh-quote.c: New file, from GNU gettext.
74455
74456 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         Merge from coreutils.
74459         * m4/ullong_max.m4: New file.
74460         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74461         (gl_MACROS): Assume localeconv exists.
74462
74463 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         Merge changes from coreutils, as described below in several
74466         changelogs dated today.
74467
74468         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74469         (O_DIRECTORY): Remove; not needed here, since "." must be
74470         a directory.  All uses removed.
74471         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74472         universal on Suns, and we also need to test for IRIX.
74473         Revamp code to use 'if' rather than '#if'.
74474         Avoid unnecessary comparison of cwd->desc to 0.
74475
74476         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74477         for known valid error numbers rather than observed invalid ones.
74478
74479 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * modules/ullong_max: New file.
74482
74483         * modules/chdir-long, modules/openat: New files.
74484         * modules/save-cwd (Depends-on): Depend on chdir-long.
74485         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74486
74487 2005-01-18  Jim Meyering  <jim@meyering.net>
74488
74489         Merge from coreutils.
74490         * m4/chdir-long.m4, m4/openat.m4: New files.
74491         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74492         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74493         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74494         is sane and DOES follow symlinks.  Besides, testing 20 different
74495         systems found no broken chown implementations.
74496         Prompted by a change in rsync's copy of this macro.
74497         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74498
74499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74500
74501         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74502         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74503         NULL-means-set-to-current-time semantics.
74504         Remove temporary file immediately, rather than waiting
74505         for configure's at-exit trap code to do it.
74506
74507 2005-01-18  Jim Meyering  <jim@meyering.net>
74508
74509         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74510
74511         * lib/utimens.c (futimens): Account for the fact that futimes
74512         can also fail with errno == ENOSYS or errno == ENOENT.
74513         Patch from Dmitry V. Levin.
74514
74515         Change the name of the robust chdir function from chdir to chdir_long.
74516         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74517         (restore_cwd): Use chdir_long, not chdir.
74518         * lib/chdir-long.c: Renamed from chdir.c.
74519         * lib/chdir-long.h: Renamed from chdir.h.
74520         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74521         Hurd.
74522
74523 2005-01-18  Bruno Haible  <bruno@clisp.org>
74524
74525         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74526         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74527         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74528         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74529         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74530         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74531         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74532         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74533         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74534         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74535         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74536         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74537         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74538         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74539         Use an all-permissive copyright notice, recommended by RMS.
74540
74541 2005-01-18  Bob Proulx  <bob@proulx.com>
74542
74543         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74544         simplify offsetof() macro construct to avoid compile failure with
74545         native HP-UX 11.0 ANSI C compiler.
74546
74547 2005-01-17  Bruno Haible  <bruno@clisp.org>
74548
74549         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74550         redundant because stpncpy.m4 takes care of it.
74551
74552 2005-01-17  Bruno Haible  <bruno@clisp.org>
74553
74554         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74555
74556 2005-01-17  Bruno Haible  <bruno@clisp.org>
74557
74558         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74559         used.
74560
74561 2005-01-17  Bruno Haible  <bruno@clisp.org>
74562
74563         * lib/fwriteerror.h (fwriteerror): Change specification to include
74564         fclose.
74565         * lib/fwriteerror.c: Include <stdbool.h>.
74566         (fwriteerror): At the end, close the file stream. Record whether
74567         stdout was already closed.
74568
74569 2005-01-17  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/execute.c (environ): Declare if needed.
74572         * lib/pipe.c (environ): Likewise.
74573         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74574
74575 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74576
74577         * modules/argp: Depend on vsnprintf
74578
74579 2005-01-10  Jim Meyering  <jim@meyering.net>
74580
74581         * modules/closeout (Depends-on): Add atexit.
74582
74583 2005-01-06  Bruno Haible  <bruno@clisp.org>
74584
74585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74586
74587 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74590         definitions to be after all include files, to avoid collisions.
74591         Problem reported by Bob Proulx.
74592
74593 2005-01-04  Jim Meyering  <jim@meyering.net>
74594
74595         Changes imported from coreutils.
74596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74597         as the mkstemp template, use a temporary directory and an
74598         8.3-friendly template to avoid trouble on systems like DJGPP.
74599         Reported by Juan M. Guerrero via Stepan Kasal.
74600         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74601         close. Remove the temporary directory right away, rather than waiting
74602         for configure's at-exit trap code to do it.
74603         Suggestion from Stepan Kasal.
74604
74605 2005-01-01  Simon Josefsson  <jas@extundo.com>
74606
74607         * gnulib-tool: Print #include directives when --import'ing.
74608
74609 2004-12-28  Simon Josefsson  <jas@extundo.com>
74610
74611         * tests/test-base64.c: Include required header files.  Remove
74612         unused variables.
74613
74614 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         * modules/error (Depends-on): Remove gettext.
74617
74618 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74621         not needed.  This removes a dependency on the gettext module.
74622         [defined _LIBC]: Do not include <libintl.h>; not needed.
74623
74624 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74627         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74628
74629 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74632         HAVE_DECL_STRTOLD.
74633
74634 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * modules/getdate (Depends-on): Remove alloca-opt.
74637
74638 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74639
74640         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74641
74642 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * lib/argp-parse.c: Include <stddef.h>.
74645         (alignof, alignto): New macros.
74646         (parser_init): Don't assume that void * is aligned sufficiently
74647         for struct option.
74648
74649         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74650         need to extend the stack.
74651         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74652         large.
74653
74654 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74655
74656         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74657
74658 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74661         (2004-10-24) change.  Apparently this was a false alarm.
74662
74663         * modules/getdate: Depend on alloca-opt, not alloca.
74664
74665 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74668         Remove now-obsolete comment about AIX.
74669         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74670         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74671         (YYMAXDEPTH): New macro.
74672
74673 2004-12-18  Simon Josefsson  <jas@extundo.com>
74674
74675         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74676
74677 2004-12-18  Bruno Haible  <bruno@clisp.org>
74678
74679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74680
74681 2004-12-18  Bruno Haible  <bruno@clisp.org>
74682
74683         * lib/fatal-signal.c (fatal_signals): Make non-const.
74684         (init_fatal_signals): New function.
74685         (uninstall_handlers, install_handlers): Ignore signals that were set to
74686         SIG_IGN.
74687         (at_fatal_signal): Call init_fatal_signals.
74688         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74689         SIG_IGN.
74690         Reported by Paul Eggert.
74691
74692 2004-12-18  Bruno Haible  <bruno@clisp.org>
74693
74694         * doc/alloca.texi: New file.
74695         * doc/alloca-opt.texi: New file.
74696
74697 2004-12-17  Jim Meyering  <jim@meyering.net>
74698
74699         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74700         Otherwise, install-sh could exit with improper exit status when
74701         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74702
74703 2004-12-16  Simon Josefsson  <jas@extundo.com>
74704
74705         * tests/test-base64.c: Add license.
74706
74707 2004-12-15  Stepan Kasal  <address@hidden>
74708
74709         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74710
74711 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * modules/getcwd (Files): Add m4/d-ino.m4.
74714         Suggested by Mark D. Baushke.
74715
74716 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * lib/getdate.y (textint): New member "negative".
74719         (time_zone_hhmm): New function.
74720         Expect 14 shift-reduce conflicts, not 13.
74721         (o_colon_minutes): New rule.
74722         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74723         (yylex): Set the "negative" member of signed numbers.
74724
74725 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * doc/getdate.texi (Time of day items, Time zone items):
74728         Describe new formats +00:00, UTC+00:00.
74729
74730 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74733         spurious "-l"s.  Problem reported by Stepan Kasal.
74734
74735 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74738         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74739
74740 2004-12-04  Simon Josefsson  <jas@extundo.com>
74741
74742         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74743         Vandoorselaere <yoann@prelude-ids.org>.
74744
74745 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74746
74747         Changes imported from coreutils.
74748         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74749         exist.
74750         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74751
74752 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         Changes imported from coreutils.
74755         * lib/hard-locale.c: Assume <locale.h> exists.
74756         Include "strdup.h".
74757         (GLIBC_VERSION): New macro.
74758         (hard_locale): Assume setlocale exists.
74759         Rewrite to avoid #ifdef.
74760         Use strdup rather than malloc + strcpy.
74761         * lib/human.c: Assume <locale.h> exists.
74762         (human_readable): Assume localeconv exists.
74763
74764 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * modules/hard-locale (Depends-on): Add strdup.
74767
74768 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74769
74770         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74771         convert T2, not T.  (Imported from libc.)
74772
74773 2004-11-30  Simon Josefsson  <jas@extundo.com>
74774
74775         * modules/restrict (License): Change to LGPL.
74776
74777 2004-11-30  Simon Josefsson  <jas@extundo.com>
74778
74779         * m4/restrict.m4: Add copyright and copying conditions.
74780
74781 2004-11-30  Simon Josefsson  <jas@extundo.com>
74782
74783         * m4/base64.m4: New file.
74784
74785 2004-11-30  Simon Josefsson  <jas@extundo.com>
74786
74787         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74788         base64.
74789
74790         * tests/test-base64.c: New file.
74791
74792         * modules/base64: New file.
74793
74794 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74797         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74798
74799         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74800
74801 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74804         (__getcwd.c): Don't restore errno; glibc doesn't.
74805         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74806         first, falling back to our code only if its results look suspicious.
74807         Ensure that the resulting buffer is only as large as necessary.
74808
74809         * lib/readutmp.c: Include readutmp.h first.
74810         Include <errno.h>, since readutmp.h no longer does that.
74811         * lib/readutmp.h: Don't include <errno.h>,
74812         <sys/param.h>, <time.h>; not needed to establish interface.
74813         (errno): Remove decl.
74814         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74815         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74816         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74817
74818 2004-11-28  Simon Josefsson  <jas@extundo.com>
74819
74820         * lib/base64.h, base64.c: New file.
74821
74822 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74825
74826 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74829         (Depends-on): Remove pathmax, same.  Add mempcpy.
74830         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74831         (Makefile.am): Append getcwd.h to lib_SOURCES.
74832         (Include): Add getcwd.h.
74833         (Maintainer): Change from Jim Meyering to "all, glibc",
74834         since getdate now uses intended-for-glibc code.
74835         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74836         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74837
74838 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74841         HP's ANSI C compiler.
74842         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74843         Declaring int functions causes warnings on some modern systems and
74844         shouldn't be needed to compile on ancient ones.
74845         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74846         defined.
74847
74848         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74849         with the following changes.
74850         (__set_errno): Parenthesize properly.
74851         Include <stdbool.h>.
74852         (MIN, MAX, MATCHING_INO): New macros.
74853         (__getcwd): Define with prototype, not K&R form.
74854         Use heuristics to allocate default buffer on stack if possible.
74855         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74856         behavior, and to avoid the PATH_MAX limit when computing
74857         ../../../../...
74858         Use MATCHING_INO to compare inode number to file.
74859         Check for arithmetic overflow in size calculations.
74860         Fix bug in reallocation of dot array that caused getcwd to fail
74861         on directories nested deeper than 75.
74862         Be more careful about saving errno on error.
74863         Do not use realloc; use only free+malloc, as this is a bit
74864         more flexible and avoids a needless copy operation.
74865         Do not inspect st_dev and st_ino for symbolic links; POSIX
74866         doesn't specify the latter.
74867         Check for closedir errors.
74868         Avoid needless casts.
74869         Use "#ifdef weak_alias" around weak_alias, to be like other
74870         glibc code.
74871         The following changes to getcwd.c have effect only when used in
74872         gnulib; they have no effect inside glibc proper.
74873         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74874         as alloca isn't used.
74875         (alloca, __alloca): Likewise.
74876         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74877         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74878         unconditionally, as gnulib assumes C89 or better.
74879         Do not include <sys/param.h>.
74880         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74881         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74882         better.
74883         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74884         Include <dirent.h> in a way that is compatible with modern Autoconf.
74885         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74886         New macros, if not already defined.
74887         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74888         Use "_LIBC", not "defined _LIBC", for consistency.
74889         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74890         a mempcpy module.
74891         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74892         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74893         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74894         credit only to Jim Meyering and adjust the copyright dates.
74895         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74896         <stdlib.h>, <unistd.h>, "pathmax.h".
74897         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74898         (INITIAL_BUFFER_SIZE): Remove.
74899         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74900
74901 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74904         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74905         Use the _ONCE methods, for efficiency.
74906         Check for fcntl.h.  In test program, include <errno.h>
74907         and <fcntl.h> if available.  Remove old K&R cruft from
74908         test program.  Check for common errors in GNU/Linux,
74909         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74910         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74911         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74912         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74913         name accordingly.
74914         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74915         accommodate new getcwd.c.
74916         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74917         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74918         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74919         that's all we need now.
74920
74921 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74922
74923         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74924         argp-parse.c depends on getopt internals, that means we should
74925         always use our getopt, to be on the safe side.
74926         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74927         order not to spoil the result of an eventual previous invocation
74928         of gl_GETOPT_SUBSTITUTE.
74929
74930 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74931
74932         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74933         redefinition warnings. To avoid them, include the defines
74934         in `#if !defined __need_getopt ... #endif'. The only place
74935         where __getopt_argv_const is used is in definitions
74936         of getopt_long and getopt_long_only below, which are as well
74937         protected by `#ifndef __need_getopt'.
74938         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74939         __need_getopt after including <stdio.h> and <unistd.h> These
74940         headers might have defined it.
74941
74942 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74945
74946 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74949         (futimens): New function, which uses futimes if available.
74950         (futimens, utimens): Support timespec==NULL, with same semantics
74951         as utime and utimens.
74952         * lib/utimens.h (futimens): New decl.
74953
74954 2004-11-23  Jim Meyering  <jim@meyering.net>
74955
74956         * lib/getopt_.h: Remove trailing blanks.
74957
74958 2004-11-23  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/__fpending.c: Add comment.
74961
74962 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * modules/canonicalize (Depends-on): Add xreadlink.
74965         Problem reported by James Youngman.
74966
74967 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74970         New macros.
74971         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74972         optopt): Use them instead of invoking ## directly; otherwise, the
74973         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74974
74975 2004-11-19  Bruno Haible  <bruno@clisp.org>
74976
74977         * lib/strtok_r.c: Move comments from here...
74978         * lib/strtok_r.h: ... to here.
74979
74980 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74983         implementations that mishandle size_t overflow.
74984
74985 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74986
74987         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74988         might fail.  Problem reported by Yoann Vandoorselaere.
74989         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74990         implementations that mishandle size_t overflow.
74991
74992 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * modules/canon-host (Depends-on): Add strdup.
74995
74996 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74999
75000 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * lib/canon-host.c: Include "strdup.h".
75003         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75004         Use strdup instead of malloc/strcpy to duplicate strings.
75005
75006         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75007         (human_space_before_unit): New constant.
75008         * lib/human.c (human_readable): Support it.
75009
75010         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75011         (xgetcwd): Set errno correctly when failing.
75012         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75013         the failure is actually due to a PATH_MAX problem.
75014
75015         Further getopt changes to make it more likely that glibc will
75016         buy the changes back.
75017         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75018         (getopt): Use it, so to preserve glibc semantic
75019         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75020         when compiling for libc.
75021         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75022         (getopt_long, getopt_long_only): Use it.
75023
75024         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75025         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75026         (getopt): Argv is now char * const *, as per standard.
75027         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75028         not char *__getopt_argv_const *.
75029         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75030         _getopt_long_only_r): Likewise.
75031         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75032         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75033         _getopt_long_r, _getopt_long_only_r): Likewise.
75034         * lib/getopt_.h (__getopt_argv_const): Remove.
75035         (getopt): Argv is now char * const *, as per standard.
75036
75037         * lib/getdate.y (tORDINAL): New token.
75038         (day, relunit): Allow it for relative times.
75039         (relative_time_table): Use tORDINAL for ordinals.
75040
75041 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75044         Document that "second" isn't allowed as an ordinal number.
75045
75046 2004-11-16  Jim Meyering  <jim@meyering.net>
75047
75048         * modules/closeout (Depends-on): Add fpending.
75049
75050 2004-11-15  Jim Meyering  <jim@meyering.net>
75051
75052         * lib/closeout.c: Include "__fpending.h" once again.
75053         Include <stdbool.h>.
75054         (close_stdout): Don't fail just because stdout was closed initially,
75055         since some programs don't write to stdout in the normal course of
75056         operation (other than --version and --help), and we don't want this
75057         function to make e.g. `touch file >&-' fail.
75058         But do fail if it was closed and someone has tried to write to it.
75059         E.g., `printf foo >&-' must fail.
75060
75061 2004-11-13  Jim Meyering  <jim@meyering.net>
75062
75063         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75064
75065 2004-11-12  Simon Josefsson  <jas@extundo.com>
75066
75067         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75068         small doc fix is still pending.
75069
75070 2004-11-11  Simon Josefsson  <jas@extundo.com>
75071
75072         * modules/strtok_r: New file.
75073
75074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75075         strtok_r.
75076
75077 2004-11-11  Simon Josefsson  <jas@extundo.com>
75078
75079         * m4/strtok_r.m4: New file.
75080
75081         * m4/getopt.m4: Replace opterr.
75082
75083 2004-11-11  Simon Josefsson  <jas@extundo.com>
75084
75085         * lib/strtok_r.h, strtok_r.c: New file.
75086
75087 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75090         of replacing opterr, getopt, etc.  This should handle the
75091         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75092
75093 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75096         we can stop lying to compilers about the constness of argv when we
75097         are compiled outside glibc.
75098         (getopt, getopt_long, getopt_long_only): Use it.
75099         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75100         _getopt_internal, getopt): Likewise.
75101         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75102         _getopt_long_only_r): Likewise.
75103         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75104         _getopt_long_r, _getopt_long_only_r): Likewise.
75105
75106         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75107         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75108         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75109         the other external symbols.
75110         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75111         declaration, since the above renaming now works around collisions.
75112
75113 2004-11-11  Jim Meyering  <jim@meyering.net>
75114
75115         * lib/linebreak.c: Remove trailing blanks.
75116         * lib/alloca_.h: Likewise.
75117         * lib/acosl.c: Likewise.
75118         * lib/euidaccess.c: Likewise.
75119         * lib/allocsa.h: Likewise.
75120
75121 2004-11-10  Simon Josefsson  <jas@extundo.com>
75122
75123         * m4/getaddrinfo.m4: New file.
75124
75125 2004-11-10  Simon Josefsson  <jas@extundo.com>
75126
75127         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75128
75129 2004-11-10  Simon Josefsson  <jas@extundo.com>
75130
75131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75132         getaddrinfo.
75133
75134         * modules/getaddrinfo: New file.
75135
75136 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75139
75140 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75141
75142         * lib/mktime.c (SHR): New macro, which is a portable
75143         substitute for >> that should work even on Crays.
75144         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75145         Problem reported by Mark D. Baushke in
75146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75147         * lib/getdate.y (SHR): Likewise.
75148         (tm_diff): Use it.
75149         * lib/strftime.c (SHR): Likewise.
75150         (tm_diff): Use it.
75151         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75152         quote_these_too, so that right shifts are well defined.  All uses
75153         changed.
75154
75155 2004-11-10  Jim Meyering  <jim@meyering.net>
75156
75157         Ensure that no close failure goes unreported.
75158         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75159         return early when it seems there's nothing to flush.
75160         Don't include __fpending.h.
75161
75162 2004-11-10  Jim Meyering  <jim@meyering.net>
75163
75164         * modules/closeout (Depends-on): Remove fpending.
75165
75166 2004-11-10  Jim Meyering  <jim@meyering.net>
75167
75168         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75169
75170 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75173         gl_FUNC_STRFTIME.
75174         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75175         and AC_REQUIRE when possible, to avoid duplicate checks.
75176         Check for <wchar.h>.
75177
75178 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75181
75182 2004-11-09  Bruno Haible  <bruno@clisp.org>
75183
75184         * m4/sockpfaf.m4: New file.
75185
75186 2004-11-05  Bruno Haible  <bruno@clisp.org>
75187
75188         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75189         Reported by Mark D. Baushke <mdb@cvshome.org>.
75190
75191 2004-11-04  Bruno Haible  <bruno@clisp.org>
75192
75193         2004-09-11  Bruno Haible  <bruno@clisp.org>
75194                 * allocsa.valgrind: New file.
75195         2004-02-06  Bruno Haible  <bruno@clisp.org>
75196                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75197                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75198                 Reported by Christopher Seip <chris.seip@hp.com>.
75199
75200 2004-11-04  Bruno Haible  <bruno@clisp.org>
75201
75202         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75203         (Makefile.am): Distribute it.
75204
75205 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75208         with errno == ERANGE if the buffer is too small.
75209         Problem reported by Mark D. Baushke.
75210
75211 2004-11-03  Albert Chin  <china@thewrittenword.com>
75212             Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75215         equivalent, substitute $ac_type for equivalent type rather than
75216         blindly using uint32_t *always* which won't work if uint32_t is not
75217         available.  Define _UINT32_T to work around typedef of uint32_t if
75218         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75219         2.5.1.
75220
75221 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * m4/jm-macros.m4: Sync from coreutils.
75224         (gl_MACROS): Check for mbrlen, for pathchk.
75225         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75226
75227 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/xreadlink.c (MAXSIZE): New macro.
75230         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75231         size does not exceed MAXSIZE.  Avoid cast.
75232         As suggested by Mark D. Baushke in
75233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75234         if readlink fails with buffer size just under MAXSIZE, try again
75235         with MAXSIZE.
75236
75237 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75240
75241 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75242         and  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75245         (get_date): Overparenthesize to avoid GCC warning.
75246
75247 2004-11-02  Bruno Haible  <bruno@clisp.org>
75248
75249         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75250         returns void.
75251
75252 2004-11-02  Bruno Haible  <bruno@clisp.org>
75253
75254         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75255         function returns void.
75256
75257 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75260         fflush_unlocked, flockfile, funlockfile, funlockfile,
75261         fputs_unlocked, putc_unlocked.
75262
75263 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75266         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75267         already declared.
75268
75269 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * modules/getdate (Files): Add doc/getdate.texi.
75272         (Depends-on): Add setenv, xalloc.
75273
75274 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * lib/getdate.y: Add support for TZ="foo" within a date string.
75277         Fix some bugs near time_t boundaries.  Reject dates with
75278         out-of-range components, e.g., "Sept 31".
75279         Include <stdlib.h>, "setenv.h", "xalloc.h".
75280         (ISDIGIT_LOCALE): Remove; unused.
75281         Note that the TZ and time functions used here are not reentrant.
75282         (mktime_ok, get_tz): New functions.
75283         (TZBUFSIZE): New constant.
75284         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75285         This requires that we sometimes generate our own TZ="XXX..." setting.
75286
75287 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * doc/getdate.texi: New file, from coreutils with modifications for
75290         the new TZ parsing.
75291
75292 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75293
75294         * lib/mktime.c (not_equal_tm): Remove redundant check.
75295
75296 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * modules/regex (lib_SOURCES): Add regex.c.
75299         Reported by James Youngman in
75300         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75301
75302 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * lib/getdate.y: Use Bison 1.875 features, and some minor
75305         code cleanups.  This change does not affect semantics.
75306         Don't include <stdlib.h>; no longer needed.
75307         Don't include unlocked-io.h; only the "#if TEST" code uses
75308         stdio, and performance isn't crucial there.
75309         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75310         Bison 1.875 features as described below.
75311         All uses of "PC." replaced by "pc->".
75312         (YYSTYPE): Add a forward declaration.
75313         (yylex, yyerror): Use full prototypes in forward decls.
75314         Use "%pure-parser" rather than obsolescent "%pure_parser".
75315         Use %parse-param and %lex-param instead of obsolescent
75316         YYPARSE_PARAM and YYLEX_PARAM.
75317         (meridian_table, month_and_day_table, time_units_table,
75318         relative_time_table, time_zone_table, military_table,
75319         lookup_zone, lookup_word, get_date):
75320         Use NULL instead of 0 where appropriate.
75321         (to_hour): Avoid abort (), to avoid a dependency on
75322         stdlib.h.
75323         (yyerror, yylex): Now accepts parser_control * arg.
75324         (main) [TEST]: Use '\0' rather than 0 for char.
75325
75326 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75329
75330 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75333         It's now the caller's responsibility to handle the case where
75334         !HAVE_GETPAGESIZE && !defined getpagesize.
75335
75336         * lib/mktime.c (leapyear): Arg is long int, not int.
75337
75338 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75341
75342 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75345         missing.  Problem reported by James Youngman.
75346
75347 2004-10-16  Simon Josefsson  <jas@extundo.com>
75348
75349         * gnulib-tool: Fix comments.  Fix parse problem.
75350         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75351
75352 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75355         implementation of getopt_long.  Problem reported by Alexander Taler in:
75356         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75357
75358 2004-10-15  Bruno Haible  <bruno@clisp.org>
75359
75360         * gnulib-tool: Untabify. Initialize supplied_libname.
75361         (func_usage): More homogenous output.
75362         (func_modules_transitive_closure, func_modules_to_filelist,
75363         func_emit_lib_Makefile_am): New functions.
75364         (func_import): New function, extracted from big case statement. Use
75365         func_get_license, func_modules_transitive_closure,
75366         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75367         opt_lgpl. Don't use test -a, as it's not portable.
75368         (func_create_testdir): Use func_modules_transitive_closure,
75369         func_modules_to_filelist, func_emit_lib_Makefile_am.
75370
75371 2004-10-15  Bruno Haible  <bruno@clisp.org>
75372
75373         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75374
75375 2004-10-15  Bruno Haible  <bruno@clisp.org>
75376
75377         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75378         the portions belonging to each module.
75379         Suggested by Derek Robert Price <derek@ximbiot.com>.
75380
75381 2004-10-12  Simon Josefsson  <jas@extundo.com>
75382
75383         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75384         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75385         to real functions.
75386
75387 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75388
75389         * modules/vsnprintf: New file.
75390
75391 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75392
75393         * m4/vsnprintf.m4: New file.
75394
75395 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75396
75397         * lib/vsnprintf.h: New file.
75398         * lib/vsnprintf.c: New file.
75399
75400 2004-10-11  Bruno Haible  <bruno@clisp.org>
75401
75402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75403         vsnprintf.
75404
75405 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75408
75409 2004-10-07  Bruno Haible  <bruno@clisp.org>
75410
75411         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75412         fits into the provided buffer.
75413
75414 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/diacrit.c, diacrit.h: Add GPL notice.
75417
75418         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75419         notice.
75420         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75421         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75422         This avoids a potential constant-folding bug.
75423
75424 2004-10-05  Bruno Haible  <bruno@clisp.org>
75425
75426         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75427         for the declaration of strsep.
75428
75429 2004-10-05  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75432
75433 2004-10-04  Simon Josefsson  <jas@extundo.com>
75434
75435         * modules/memmem: New file.
75436         * tests/test-memmem.c: New file.
75437         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75438
75439 2004-10-04  Simon Josefsson  <jas@extundo.com>
75440
75441         * m4/memmem.m4: New file.
75442
75443 2004-10-04  Simon Josefsson  <jas@extundo.com>
75444
75445         * lib/memmem.h: New file.
75446         * lib/memmem.c: New file, taken from glibc.
75447
75448 2004-10-04  Simon Josefsson  <jas@extundo.com>
75449
75450         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75451         '#ifdef USE_UNLOCKED_IO'.
75452
75453 2004-10-04  Simon Josefsson  <jas@extundo.com>
75454
75455         * config/srclist.txt: Add memmem from glibc.
75456
75457 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75460
75461         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75462         modules/exclude, modules/getdate, modules/getline,
75463         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75464         modules/getusershell, modules/linebuffer, modules/md5,
75465         modules/mountlist, modules/posixtm, modules/readtokens,
75466         modules/readutmp, modules/regex, modules/sha1,
75467         modules/version-etc, modules/yesno:
75468         Remove dependency on unlocked-io.
75469
75470 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75473
75474         * m4/unlocked-io.m4: Add copyright notice.
75475         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75476
75477 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75480         * lib/xmalloc.c (xmemdup): Likewise.
75481         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75482         XFREE): Remove these long-obsolescent macros.
75483         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75484         * lib/xstrdup.c: Remove.
75485
75486         * lib/regex.c (re_comp): Cast gettext return value to char *,
75487         Problem reported by Martin Neitzel via Mark D. Baushke.
75488
75489 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75492         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75493         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75494         regex.c, sha1.c, version-etc.c, yesno.c:
75495         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75496         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75497         the includer's responsibility.
75498
75499         Sync from coreutils.
75500
75501         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75502         points to the start of a string, as the C Standard says the
75503         resulting behavior is undefined.
75504
75505         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75506         simple -> simple_backups, numbered_existing ->
75507         numbered_existing_backups, numbered -> numbered_backups
75508         to avoid shadowing problems.  All uses changed.
75509         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75510         * lib/backupfile.c (check_extension, numbered_backup):
75511         Rename locals to avoid shadowing 'basename'.
75512         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75513         once.
75514
75515         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75516         * lib/.cvsignore: Add getopt.h.
75517
75518 2004-10-04  Bruno Haible  <bruno@clisp.org>
75519
75520         * modules/README: New file.
75521         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75522         not a module.
75523
75524 2004-10-02  Jim Meyering  <jim@meyering.net>
75525
75526         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75527
75528 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75529
75530         * modules/strsep: New file.
75531
75532 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75533
75534         * m4/strsep.m4: New file.
75535
75536 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75537
75538         * lib/strsep.h: New file.
75539         * lib/strsep.c: New file.
75540
75541 2004-10-01  Simon Josefsson  <jas@extundo.com>
75542
75543         * lib/snprintf.c (snprintf): Handle size==0.
75544
75545 2004-10-01  Simon Josefsson  <jas@extundo.com>
75546             Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75549         (snprintf): Declare 'args'.
75550
75551 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         * lib/snprintf.c: Remove comments as to why each header is needed.
75554
75555 2004-10-01  Bruno Haible  <bruno@clisp.org>
75556
75557         * MODULES.html.sh: Add strsep.
75558
75559 2004-09-30  Simon Josefsson  <jas@extundo.com>
75560
75561         * modules/snprintf: New file.
75562
75563 2004-09-30  Simon Josefsson  <jas@extundo.com>
75564
75565         * m4/snprintf.m4: New file.
75566
75567 2004-09-30  Simon Josefsson  <jas@extundo.com>
75568
75569         * lib/snprintf.h, lib/snprintf.c: New files.
75570
75571 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75572
75573         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75574         (hol_entry_help): Never translate an empty string.
75575         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75576         * lib/argp.h (OPTION_NO_TRANS): New option.
75577
75578 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * modules/argp (Maintainer): Replace Simon Josefsson
75581         by Sergey Poznyakoff.
75582
75583 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75586         changes merged back into glibc.
75587
75588 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75589
75590         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75591
75592 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75593
75594         * lib/xvasprintf.c: Include xalloc.h.
75595         (xvasprintf): Use xalloc_die, not xmalloc_die.
75596
75597 2004-09-29  Bruno Haible  <bruno@clisp.org>
75598
75599         * modules/alloca-opt: New file, derived from modules/alloca.
75600         * modules/allocsa: Depend on alloca-opt instead of alloca.
75601         * modules/setenv: Likewise.
75602         * modules/vasnprintf: Likewise.
75603         * MODULES.html.sh: Add alloca-opt.
75604
75605 2004-09-28  Simon Josefsson  <jas@extundo.com>
75606
75607         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75608         LGPL, and to replace license template from GPL to LGPL.
75609
75610 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * modules/dummy: Change license to LGPL.
75613
75614 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75617
75618 2004-09-24  Simon Josefsson  <jas@extundo.com>
75619
75620         * modules/minmax (License): Change from GPL to LGPL.
75621
75622 2004-09-23  Simon Josefsson  <jas@extundo.com>
75623
75624         * gnulib-tool (--import): Typo.
75625
75626 2004-09-23  Simon Josefsson  <jas@extundo.com>
75627
75628         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75629
75630 2004-09-22  Bruno Haible  <bruno@clisp.org>
75631
75632         * modules/*: Add 'License' field.
75633         * gnulib-tool: Accept --extract-license option.
75634         (func_get_license): New function.
75635
75636 2004-09-21  Bruno Haible  <bruno@clisp.org>
75637
75638         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75639         Reported by Simon Josefsson.
75640
75641 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75644         gl_AC_TYPE_LONG_LONG.
75645
75646 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75647
75648         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75649
75650 2004-09-18  Simon Josefsson  <jas@extundo.com>
75651         and  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75654         calls with autoreconf.  Define GL_LIB.
75655
75656 2004-09-14  Karl Berry  <karl@gnu.org>
75657
75658         * config/srclist.txt: unsync setenv.c, sigh.
75659
75660 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75663         Problem reported by Bruno Haible in:
75664         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75665
75666 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * config/srclist.txt: Comment out argp-pvh.c.
75669
75670 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75673         in case some system header has #define'd it.  Problem reported by
75674         Soeren D. Schulze in
75675         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75676
75677 2004-09-09  Karl Berry  <karl@gnu.org>
75678
75679         * regex.[ch]: delete from the root.  These were supposed to be
75680                 synced with emacs cvs, but this has not happened for about
75681                 a year, and anyway nothing else uses emacs regex.[ch].
75682                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75683                 lib/regex[.ch] is untouched.
75684
75685 2004-09-09  Bruno Haible  <bruno@clisp.org>
75686
75687         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75688
75689 2004-09-09  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75692         modifications.
75693         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75694
75695 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75696
75697         * modules/xvasprintf: New file.
75698         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75699
75700 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75701
75702         * lib/xvasprintf.h: New file.
75703         * lib/xvasprintf.c: New file.
75704         * lib/xasprintf.c: New file.
75705
75706 2004-09-08  Bruno Haible  <bruno@clisp.org>
75707
75708         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75709
75710 2004-09-08  Bruno Haible  <bruno@clisp.org>
75711
75712         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75713         length is > INT_MAX.
75714         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75715         more.
75716
75717 2004-09-08  Bruno Haible  <bruno@clisp.org>
75718
75719         * lib/stdint_.h: New file, taken from GNU clisp.
75720
75721 2004-09-08  Bruno Haible  <bruno@clisp.org>
75722             Oskar Liljeblad  <oskar@osk.mine.nu>
75723
75724         * modules/stdint: New file.
75725         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75726
75727 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         Import from coreutils.
75730         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75731         strings on unbounded length.  alloca's performance benefits aren't
75732         that important here.
75733         (V_STRDUP): Remove.
75734         (parse_with_separator): New function, with most of the internals
75735         of the old parse_user_spec.  Allow user to omit both user and group,
75736         for compatibility with FreeBSD.
75737         Clone only the user name, not the entire spec.
75738         Do not set *uid, *gid unless entirely successful.
75739         Avoid memory leak in some failing cases.
75740         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75741         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75742         (parse_user_spec): Rewrite to use parse_with_separator.
75743
75744 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * modules/userspec: Don't depend on alloca.
75747
75748 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75751
75752 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75753
75754         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75755         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75756         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75757
75758 2004-08-16  Simon Josefsson  <jas@extundo.com>
75759
75760         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75761         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75762         Add --dry-run for --import.
75763         Let user provided command line parameters override configure.ac
75764         settings.
75765
75766 2004-08-12  Simon Josefsson  <jas@extundo.com>
75767
75768         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75769         as discussed with Paul Eggert in threads rooted at
75770         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75771         and
75772         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75773         Before, the test was empty, and relied on ELIDE_CODE in source
75774         code.)
75775         (gl_PREREQ_GETOPT): New macro.
75776         (gl_GETOPT): Use them.
75777
75778 2004-08-12  Simon Josefsson  <jas@extundo.com>
75779
75780         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75781         * lib/getopt_.h: Renamed from getopt.h.
75782
75783 2004-08-12  Simon Josefsson  <jas@extundo.com>
75784
75785         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75786         Change default library name from libfoo to libgnu.
75787         Now, if you have a configure.ac that says:
75788                 gl_SOURCE_BASE(gl)
75789                 gl_M4_BASE(gl/m4)
75790                 gl_MODULES(error getopt etcetera)
75791                 gl_INIT
75792         you can import all you need by running:
75793                 ../gnulib/gnulib-tool --import
75794
75795         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75796         (Makefile.am): Rewrite, use logic from argz.
75797         (Include): Use <getopt.h> instead of "getopt.h".
75798
75799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75800
75801         * modules/argp (Files): Add m4/unlocked-io.m4.
75802         (Depends-on): Add extensions.
75803
75804 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75807         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75808         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75809         Check for program_invocation_name, program_invocation_short_name,
75810         flockfile, funlockfile, features.h, _getopt_long_only_r.
75811
75812 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75815         its complicated substitute.
75816         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75817         and program_invocation_name.
75818         (__argp_basename) [!_LIBC]: Remove; the only use was
75819         replaced by its body.
75820         (__argp_short_program_name): Change condition from
75821         !defined __argp_short_program_name to
75822         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75823         to match argp-namefrob.h.
75824         (__argp_failure): Don't assume strerror_r returns char *.
75825         * lib/argp-parse.c (N_): Define unconditionally.
75826         (argp_default_options): Fill out initializers with 0 to avoid
75827         gcc warnings.
75828
75829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75832         getopt1.c.
75833
75834 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         Merge from coreutils.
75837
75838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75839
75840         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75841         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75842
75843 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75844
75845         Merge from coreutils.
75846
75847         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75848         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75849         for Reliant Unix 5.43.
75850
75851         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75852         (union fooround): Use uintmax_t, not long int.
75853         The rest is a merge from libc:
75854         [defined _LIBC]: Include <shlib-compat.h>.
75855         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75856
75857         * lib/settime.c (settime): Recode to avoid warning with
75858         Sun Forte C 6U2.
75859
75860         * lib/strverscmp.c: Convert to UTF-8.
75861
75862 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75865         m4/uintmax_t.m4.
75866
75867 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * modules/xalloc-die: New file.
75870         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75871
75872         * modules/md5 (Files): Add m4/uint32_t.m4.
75873         * modules/sha1: Renamed from modules/sha.
75874         (Files):
75875         Rename lib/sha.h to lib/sha1.h.
75876         Rename lib/sha.c to lib/sha1.c.
75877         Rename m4/sha.m4 to m4/sha1.m4.
75878         (lib_SOURCES): Likewise.
75879         (configure.ac): Rename gl_SHA to gl_SHA1.
75880         (Include): sha.h -> sha1.h.
75881
75882 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75885         * m4/sha1.m4: Renamed from sha.m4.
75886         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75887
75888 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * lib/obstack.h (obstack_empty_p):
75891         Don't assume that chunk->contents is suitably aligned.
75892         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75893         Likewise. Problem reported by Benno in
75894         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75895
75896         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75897         readable.  This could be improved further but it'd take some work.
75898
75899 2004-08-08  Simon Josefsson  <jas@extundo.com>
75900
75901         * modules/xgethostname (Depends-on): Remove exit and error (not
75902         used).
75903
75904         * modules/getpass-gnu: Add getpass.h.
75905         (Depends-on): Add stdbool.
75906         * modules/getpass: Add getpass.h.
75907
75908 2004-08-08  Simon Josefsson  <jas@extundo.com>
75909
75910         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75911         Check getpass declaration.
75912
75913 2004-08-08  Simon Josefsson  <jas@extundo.com>
75914
75915         * lib/xgethostname.c: Don't include error.h (not used).
75916
75917         * lib/getpass.h: Add.
75918         * lib/getpass.c: Include getpass.h first.
75919
75920 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         * lib/xalloc-die.c: New file.
75923         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75924         All uses removed.
75925         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75926         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75927         xalloc-die.c.
75928         (_, N_, xalloc_die): Move to xalloc-die.c.
75929         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75930         so that we needn't mess with xalloc_msg_memory_exhausted.
75931
75932         * lib/sha1.h: Renamed from sha.h.
75933         (SHA1_H): Renamed from _SHA_H.
75934         (sha1_ctx): Renamed from sha_ctx.
75935         (sha1_init_ctx): Renamed from sha_init_ctx.
75936         (sha1_process_block): Renamed from sha_process_block.
75937         (sha1_process_bytes): Renamed from sha_process_bytes.
75938         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75939         (sha1_read_ctx): Renamed from sha_read_ctx.
75940         (sha1_stream): Renamed from sha_stream.
75941         (sha1_buffer): Renamed from sha_buffer.
75942         * lib/sha1.c: Likewise; renamed from sha.c.
75943         Do not include <sys/types.h>.
75944         Include <stddef.h> rather than <stdlib.h>.
75945
75946 2004-08-08  Bruno Haible  <bruno@clisp.org>
75947
75948         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75949         FILESYSTEM_PREFIX_LEN.
75950         * lib/progreloc.c: Likewise.
75951         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75952
75953 2004-08-06  Simon Josefsson  <jas@extundo.com>
75954
75955         * modules/progname (Depends-on): Don't depend on stdbool.
75956
75957 2004-08-06  Simon Josefsson  <jas@extundo.com>
75958
75959         * modules/getsubopt: New file.
75960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75961         getsubopt.
75962
75963 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         More merge from coreutils.
75966
75967         * m4/utimens.m4, m4/utimecmp.m4: New files.
75968         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75969         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75970         prereq.m4, sha.m4: Import changes from coreutils.
75971
75972 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         More merge from coreutils.
75975         * modules/raise, modules/readtokens0, modules/utimens:
75976         * modules/utimecmp, module/xnanosleep: New files.
75977         * modules/strftime: Add lib/strftime.h.
75978         Change include from <time.h> to "strftime.h".
75979         * modules/yesno: Add lib/yesno.h.
75980         * modules/backupfile: Remove lib/addext.c.
75981         * modules/euidaccess: Add stat-macros.h.
75982         * modules/canonicalize, modules/euidaccess,
75983         modules/filemode, modules/lchown, modules/makepath,
75984         modules/rmdir, modules/stat: Likewise.
75985
75986 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         Merge from tar.
75989         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75990         SIZE_MAX is a valid preprocessor constant.
75991         (__argp_basename): Change from "#ifndef _LIBC"
75992         to "#ifndef __argp_short_program_name", so that
75993         we don't compile these functions for tar.
75994
75995         More merges from coreutils.
75996         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75997         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75998         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75999         * lib/addext.c: Remove; no longer needed.
76000         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76001         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76002         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76003         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76004         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76005         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76006         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76007         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76008         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76009         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76010         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76011         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76012         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76013         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76014         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76015         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76016         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76017         Import changes from coreutils.
76018
76019 2004-08-05  Simon Josefsson  <jas@extundo.com>
76020
76021         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76022
76023 2004-08-05  Simon Josefsson  <jas@extundo.com>
76024
76025         * m4/getsubopt.m4: New file.
76026
76027 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         Merge from coreutils.
76030
76031         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76032         * m4/getcwd-path-max.m4: New files.
76033
76034         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76035         FILESYSTEM_PREFIX_LEN ->
76036         FILE_SYSTEM_PREFIX_LEN.
76037         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76038         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76039         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76040         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76041
76042         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76043         prerequisite modules now handle the DOS stuff.
76044         Don't check for unistd.h.
76045
76046 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         Merge from coreutils.
76049
76050         * lib/.gdb-history: Remove; this doesn't belong here.
76051
76052         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76053         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76054         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76055         * lib/getcwd.c: New files.
76056
76057         * lib/dirname.h: Include <stdbool.h>.
76058         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76059         for consistency with POSIX terminology.  All uses changed.
76060         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76061         (strip_trailing_slashes): Use bool for booleans.
76062         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76063
76064         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76065         sometimes returns a positive errno value even when it succeeds.
76066         (print_errno_message) [!LIBC]: Fall back on strerror if
76067         __strerror_r fails.
76068
76069         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76070         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76071         (longest_relative_suffix): New function.
76072         (path_concat): Use it.  Assume first argument is not NULL.
76073         Port to DOS.  Omit redundant separators.
76074         Report an error instead of returning NULL.
76075         Use mempcpy instead of memcpy.
76076         (xpath_concat): Remove: not declared or used.
76077
76078         * lib/same.h: Include <stdbool.h>
76079         (same_name): Return bool, not int.
76080         * lib/same.c (same_name): Likewise.
76081         (errno): Don't declare; we assume C89 or better now.
76082
76083         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76084         if not already defined.
76085
76086         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76087         * lib/dup-safer.c (errno): Likewise.
76088
76089 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         Merge from coreutils.
76092         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76093         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76094         * modules/path-concat: Don't depend on strdup.
76095
76096 2004-08-03  Simon Josefsson  <jas@extundo.com>
76097
76098         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76099         * lib/progname.h: Don't include stdbool.h.
76100
76101 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76104         * MODULES.html.sh (func_all_modules): Remove fatal.
76105
76106 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76109
76110 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76113         working.
76114
76115 2004-08-02  Simon Josefsson  <jas@extundo.com>
76116
76117         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76118         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76119         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76120
76121 2004-08-01  Simon Josefsson  <jas@extundo.com>
76122
76123         * lib/xgetdomainname.c: Include stdlib.h, for free().
76124
76125 2004-07-19  Bruno Haible  <bruno@clisp.org>
76126
76127         * MODULES.html.sh (func_all_modules): Add dummy.
76128
76129 2004-07-16  Simon Josefsson  <jas@extundo.com>
76130
76131         * modules/dummy: New file.
76132
76133 2004-07-16  Simon Josefsson  <jas@extundo.com>
76134
76135         * lib/dummy.c: New file.
76136
76137 2004-07-16  Bruno Haible  <bruno@clisp.org>
76138
76139         * lib/backupfile.h: Add extern "C" for C++.
76140         * lib/closeout.h: Likewise.
76141         * lib/copy-file.h: Likewise.
76142         * lib/findprog.h: Likewise.
76143         * lib/full-write.h: Likewise.
76144         * lib/pathname.h: Likewise.
76145         * lib/progname.h: Likewise.
76146         * lib/stpcpy.h: Likewise.
76147         * lib/stpncpy.h: Likewise.
76148         * lib/strcase.h: Likewise.
76149         * lib/strstr.h: Likewise.
76150         * lib/xalloc.h: Likewise.
76151
76152         * lib/mbswidth.h: Add extern "C" for C++.
76153         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76154
76155 2004-07-13  Robert Millan  <robertmh@gnu.org>
76156
76157         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76158
76159 2004-07-09  Simon Josefsson  <jas@extundo.com>
76160
76161         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76162         failed without this.)
76163
76164 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * modules/chown (Files): Add lib/fchown-stub.c, since
76167         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76168
76169 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * lib/fchown-stub.c: New file.
76172
76173 2004-06-24  Jim Meyering  <jim@meyering.net>
76174
76175         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76176
76177 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * modules/argz: Omit "#include".
76180
76181         * MODULES.html.sh (func_all_modules): Add calloc, to match
76182         2004-06-01 addition of calloc module.
76183
76184 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * m4/argz.m4: New file, which is autoupdated from libtool.
76187
76188 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76191         libtool.
76192
76193 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * config/srclist-update: Don't insist on "USA." before the
76196         close-comment, as libtool omits the period and puts the */ on a
76197         separate line.
76198         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76199         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76200
76201 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76202
76203         * modules/argz: New file.
76204         * MODULES.html.sh (func_all_modules): Add argz.
76205
76206 2004-06-12  Jim Meyering  <jim@meyering.net>
76207         and  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * modules/hash (Files): Add lib/xalloc.h.
76210         * modules/pipe (Depends-on): Add wait-process.
76211         * modules/stat (Depends-on): Add xalloc.
76212         * modules/userspec (Files): Add lib/userspec.h.
76213         * modules/xstrto
76214
76215         Upgrade from gettext-0.13.
76216         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76217         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76218         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76219
76220 2004-06-10  Jim Meyering  <jim@meyering.net>
76221
76222         * lib/calloc.c: New file.
76223
76224 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         * lib/getdate.y (yylex): Allow space between sign and number.
76227         Problem reported by Dan Jacobson.
76228
76229 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         Merge from coreutils CVS.
76232
76233         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76234         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76235         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76236         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76237         xstrtol.m4: Fix copyright date and/or serial number.
76238
76239         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76240         See if we need an fchown replacement.
76241         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76242         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76243         and use the replacement function if we detect either defect.
76244
76245         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76246         gl_UTIMECMP.
76247
76248 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76249         and  Jim Meyering  <jim@meyering.net>
76250
76251         Merge from coreutils CVS.
76252
76253         * lib/stat-macros.h: New file, with contents from file-type.h
76254         and coreutils' system.h.
76255         * lib/file-type.c: Include "stat-macros.h".
76256         * lib/file-type.h (file_type): Move all macro definitions to new file,
76257         stat-macros.h.
76258
76259         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76260         Wrap old code with this conditional.
76261         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76262         function that does not dereference symlinks.
76263         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76264
76265         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76266         dependency problems.
76267         (xreadlink): Accept new arg SIZE, for efficiency.
76268         All decls and uses changed.
76269         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76270
76271         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76272         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76273
76274         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76275         sysexits.h.
76276
76277 2004-06-01  Jim Meyering  <jim@meyering.net>
76278
76279         * m4/calloc.m4: New file.
76280
76281 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76284         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76285         Also, fix a typo in a diagnostic.
76286
76287 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76290         or AC_FUNC_REALLOC.
76291
76292 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76293
76294         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76295         macros to be defined.
76296         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76297         the allocator returns NULL because the requested size is zero.
76298
76299 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76302         var.  Add comment explaining why libc still defines it.  This
76303         merges the following patch from glibc:
76304         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76305
76306 2004-05-20  Andreas Schwab  <schwab@suse.de>
76307
76308         * m4/free.m4: Replace free if it not known to work, not the other
76309         way round.
76310
76311 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76314         present in glibc since revision 1.1 of this file.
76315         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76316         obstack_alignment_mask, obstack_alloc, obstack_base,
76317         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76318         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76319         obstack_grow0, obstack_init, obstack_int_grow,
76320         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76321         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76322         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76323         nonexistent functions.
76324
76325 2004-05-18  Karl Berry  <karl@gnu.org>
76326
76327         * config/srclist.txt: break link for vasnprintf.c.
76328
76329 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         Port obstack to the AS/400, where pointers are 16 bytes wide and
76332         you cannot cast an integer to a valid pointer.  This patch is
76333         currently waiting to be integrated into glibc; see
76334         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76335
76336         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76337         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76338         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76339         (struct obstack): temp member is now a union of a pointer and
76340         an integer, instead of an integer.  All integer uses changed.
76341         This does not affect the physical layout of struct obstack,
76342         except on hosts (like the AS/400) where the size or alignment of
76343         void * is greater than that of ptrdiff_t.
76344         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76345         __STDC__)]: Store temporary in pointer member of union, not
76346         integer member.
76347         * lib/obstack.c: Include <stddef.h>, for offsetof.
76348         (struct fooalign): Remove; it doesn't need a name.
76349         (union fooround): Change double to long double, and add void *.
76350         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76351         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76352         not a macro.  Hence the values are always int; so remove all
76353         casts-to-int in uses.
76354
76355 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76358         we can get this patch merged into glibc.
76359
76360 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76361             Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * m4/argp: Depend on alloca.
76364
76365 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76366             Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76369         freecoding.
76370
76371 2004-05-17  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76374         precision that consists of a '.' followed by an empty digit string.
76375         Patch by Tor Lillqvist <tml@iki.fi>.
76376
76377 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76380         for backward compatibility with older code.  We need our own
76381         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76382         it under some other name, and our alloca.h will define it.
76383
76384 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76385             Derek Price  <derek@ximbiot.com>
76386
76387         * lib/alloca.c: Include <alloca.h>, to get our interface.
76388         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76389         include <alloca.h> first.  Use C89 prototype for alloca; this
76390         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76391         Use #elif for simplicity, since we can assume C89 now.
76392         Don't try to source the system alloca.h since it will not be found
76393         and to prevent recursively including its replacement.
76394         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76395         * lib/regex.c: Likewise.
76396
76397 2004-05-16  Derek Price  <derek@ximbiot.com>
76398             Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         getline cleanup.  This changes the getndelim2 API: both order of
76401         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76402         no delimiter).
76403
76404         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76405         interface does that.
76406         (getline): Always use getdelim, so that we don't have two
76407         copies of this code.
76408         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76409         if available.
76410         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76411         (GETNDELIM2_MAXIMUM): New macro.
76412         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76413         instead of the old practice of delim2==0.  All callers changed.
76414         Return -1 on overflow, instead of returning junk.
76415         Do not set *linesize unless allocation succeeds.
76416         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76417         that we include sys/types.h.
76418         * lib/getnline.h: Likewise.
76419         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76420         (getndelim2): Reorder arguments.
76421         * lib/getnline.c (getnline, getndelim):
76422         Don't discard the NMAX argument.
76423         (getnline): Invoke getndelim, to avoid code duplication.
76424         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76425         of (size_t) -1 by callers of the getnline family.
76426
76427 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76430         Check for gettimeofday.
76431         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76432         Check for settimeofday, stime.
76433
76434 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76435
76436         * lib/nanosleep.c (suspended): Change its type from int to
76437         sig_atomic_t volatile.
76438         (first_call): Make it private to rpl_nanosleep, and have it
76439         be zero initially as that's a bit faster.
76440         (my_usleep): Round up fractional times instead of truncating them,
76441         as this is the usual meaning for 'sleep'.
76442
76443         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76444         doesn't work.
76445         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76446         (ENOSYS): Define if not defined.
76447         (settime): Fall back on stime if it exists and settimeofday fails.
76448         But don't bother with fallbacks if a method fails with errno == EPERM.
76449
76450 2004-05-11  Jim Meyering  <jim@meyering.net>
76451
76452         Prior to this change, the save_cwd caller required read access to the
76453         current directory on most systems (ones with the fchdir function).
76454
76455         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76456         fails, try write-only, and finally, resort to using xgetcwd.
76457
76458 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * lib/obstack.c, obstack.h: Import changes from libc.
76461
76462 2004-04-28  Bruno Haible  <bruno@clisp.org>
76463
76464         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76465         also implicitly appends .exe to executables.
76466         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76467         accepts Windows pathnames.
76468         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76469         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76470         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76471         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76472         Reported by Derek Robert Price <derek@ximbiot.com>.
76473
76474 2004-04-21  Karl Berry  <karl@gnu.org>
76475
76476         * config/srclist.txt (localcharset.c): break sync.
76477
76478 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76479
76480         * m4/host-os.m4: Add a copyright notice.
76481
76482 2004-04-20  Jim Meyering  <jim@meyering.net>
76483
76484         Change UTILS_ to gl_ in AC_DEFINE'd names.
76485         Change utils_- and jm_-prefixed variables, too.
76486         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76487         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76489
76490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76491         Don't emit trailing blanks.
76492         Also rename jm_-prefixed variables to have gl_ prefix.
76493
76494         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76495         Also rename jm_-prefixed variables to have gl_ prefix.
76496
76497         * m4/jm-macros.m4: Reflect the renamings.
76498         * m4/prereq.m4: Likewise.
76499
76500 2004-04-20  Jim Meyering  <jim@meyering.net>
76501
76502         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76503         memory.
76504
76505 2004-04-20  Jim Meyering  <jim@meyering.net>
76506             Bruno Haible  <bruno@clisp.org>
76507
76508         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76509         memory when realloc fails.
76510
76511 2004-04-19  Jim Meyering  <jim@meyering.net>
76512
76513         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76514         now that readutmp.c may call `free (0)'.
76515
76516 2004-04-19  Bruno Haible  <bruno@clisp.org>
76517
76518         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76519         * m4/inttypes_h.m4: Likewise.
76520         * m4/stdint_h.m4: Likewise.
76521         * m4/intmax_t.m4: Likewise.
76522         * m4/uintmax_t.m4: Likewise.
76523
76524 2004-04-18  Jim Meyering  <jim@meyering.net>
76525
76526         * m4/prereq.m4: Don't forbid jm_ prefix.
76527
76528         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76529         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76530         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76531         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76532         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76533         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76534         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76535         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76536         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76537         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76538         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76539         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76540         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76541         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76542         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76543         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76544         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76545         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76546         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76547
76548 2004-04-18  Jim Meyering  <jim@meyering.net>
76549
76550         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76551         failure, don't leak memory and do call END_UTMP_ENT.
76552
76553 2004-04-16  Jim Meyering  <jim@meyering.net>
76554
76555         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76556         coreutils' stat program.
76557         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76558
76559 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76560
76561         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76562         C89.
76563         (CHAR_BIT): Remove, since we assume C89.
76564         Include <stdint.h> if available, as per current Autoconf CVS advice.
76565
76566 2004-03-31  Jim Meyering  <jim@meyering.net>
76567
76568         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76569         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76570         * m4/xalloc.m4: Likewise.
76571
76572 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76573
76574         Merge from coreutils.
76575
76576         * m4/inttostr.m4: New file.
76577         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76578         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76579         Require gl_CLOCK_TIME.
76580         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76581
76582 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76583
76584         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76585         not bool, to be more consistent with Unix conventions.
76586         Suggested by Bruno Haible.
76587
76588         Merge from coreutils.
76589
76590         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76591         * lib/umaxtostr.c: New files.
76592
76593         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76594         the usual <time.h> dance.
76595         (get_date): Change signature to support fractional time stamps.
76596         All callers changed.
76597         * lib/getdate.y: Include "getdate.h" first, as we can now
76598         assume C89 and don't need to worry about 'const'.
76599         Similarly, include "unlocked-io.h" near start, not in middle.
76600         Include <limits.h>.
76601         (textint.value): Use long int rather than int.
76602         (textint.digits): Use size_t rather than int.
76603         (BILLION, LOG10_BILLION): New constants.
76604         (parser_control): New member rel_ns.  Members day_ordinal,
76605         time_zone, month, day, hour, minutes, rel_year, rel_month,
76606         rel_day, rel_hour, rel_minutes, rel_seconds
76607         are now long int, not int.  Member seconds is now struct timespec,
76608         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76609         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76610         not int.
76611         (%union.intval): Now long int, not int.
76612         New member timespec.
76613         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76614         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76615         (spec): Now is a timespec or an item list.
76616         (timespec, items): New nonterminals.
76617         (time, rel, relunit, number, get_date):
76618         Add support for fractional seconds.
76619         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76620         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76621         (to_hour): First arg is now long int, not int.
76622         (to_year): Returns long int, not int.
76623         Don't treat year -70 like 70.
76624         (tm_diff): Returns long int, not int.
76625         (lookup_word): Use bool instead of int when appropriate.
76626         (yylex): Use size_t for count, not int.
76627         Detect overflow when parsing large integer constants.
76628         Add support for fractions.
76629         (get_date): Make pointers 'const' if possible.
76630         Use more-portable code to detect integer overflow.
76631         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76632         Don't use ctime; it's not reliable if the year has >4 digits.
76633
76634         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76635         This is for compatibility with BSD.
76636
76637         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76638         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76639         From coreutils' system.h.
76640
76641         * lib/userspec.c: Don't include "posixver.h".
76642         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76643         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76644         compatible extension.  Simplify code by removing a boolean int
76645         that was always nonzero if a string was nonnull.
76646
76647 2004-03-30  Jim Meyering  <jim@meyering.net>
76648
76649         Merge from coreutils.
76650
76651         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76652         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76653         on some systems one must include <grp.h> before it.
76654         Reported by Christian Krackowizer.
76655
76656 2004-03-30  Jim Meyering  <jim@meyering.net>
76657
76658         Merge from coreutils.
76659
76660         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76661
76662         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76663         an empty input stream.
76664
76665         * lib/readtokens.c: Include <stdbool.h>.
76666         (readtoken): Use `size_t' rather than int/long.
76667         All callers adjusted.
76668         Use `bool' rather than `int' where appropriate.
76669         Use memset rather than an explicit loop.
76670         Use x2nrealloc rather than xrealloc.
76671         Allow the use of `\0' as a delimiter.
76672         (readtokens): Likewise.
76673         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76674
76675 2004-03-30  Jim Meyering  <jim@meyering.net>
76676
76677         * m4/realloc.m4: Remove file, since now it does no more than
76678         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76679         the `configure.ac' section of module/realloc.
76680         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76681
76682 2004-03-30  Bruno Haible  <bruno@clisp.org>
76683
76684         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76685         nonnull.
76686
76687 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76688
76689         Merge changes to getloadavg.c from coreutils and Emacs.
76690
76691         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76692         Define to an expression, not to the empty string.
76693         Include cloexec.h and xalloc.h.
76694         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76695         Use set_cloexec_flag rather than rolling our own.
76696         * lib/cloexec.c, lib/cloexec.h: New files.
76697
76698 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76699
76700         * m4/cloexec.m4: New file.
76701
76702 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76703
76704         * lib/getopt.h: Sync with libc CVS.
76705
76706 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76707             Bruno Haible  <bruno@clisp.org>
76708
76709         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76710         mbswidth.
76711
76712 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76713             Bruno Haible  <bruno@clisp.org>
76714
76715         * lib/mbswidth.h: Include <wchar.h> only if
76716         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76717         <wchar.h>.
76718         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76719
76720 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76721
76722         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76723         Sync with libc CVS.
76724         * lib/getopt_int.h: New file, also synced from libc.
76725
76726 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76727
76728         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76729         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76730         Bring back getopt.c, getopt.h, getopt1.c.
76731
76732 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76733
76734         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76735         All uses changed.  Check for sa_sigaction member; this fixes
76736         a bug first reported by Jason Andrade in
76737         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76738
76739 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76740
76741         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76742         '#if' expressions.  Unlike the code it replaces, it does not
76743         depend on (defined _SC_PAGESIZE).  However, it does depend on
76744         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76745         first reported by Jason Andrade in
76746         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76747
76748 2004-02-25  Simon Josefsson  <jas@extundo.com>
76749
76750         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76751
76752 2004-02-25  Simon Josefsson  <jas@extundo.com>
76753
76754         * lib/strdup.h: New file.
76755         * lib/strdup.c: Include it.
76756         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76757         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76758
76759 2004-02-23  Karl Berry  <karl@gnu.org>
76760
76761         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76762         (from fencepost.gnu.org:/gd/gnuorg).
76763
76764 2004-02-23  Karl Berry  <karl@gnu.org>
76765
76766         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76767         * config/srclist.txt: add maintain/standards documents.
76768
76769 2004-02-18  Bruno Haible  <bruno@clisp.org>
76770
76771         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76772         Reported by Derek Robert Price <derek@ximbiot.com>.
76773
76774 2004-02-16  Karl Berry  <karl@gnu.org>
76775
76776         * config/mkinstalldirs, install-sh: update from automake.
76777
76778 2004-02-06  Karl Berry  <karl@gnu.org>
76779
76780         * m4/po.m4: update from gettext 0.14.1.
76781
76782 2004-02-06  Karl Berry  <karl@gnu.org>
76783
76784         * lib/config.charset: update from gettext 0.14.1.
76785
76786 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76787
76788         Add comments and code, prompted by suggestions from Bruno Haible
76789         for sh-quote.
76790         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76791         describing the enum quoting_style values.
76792         * lib/quotearg.c (quotearg_alloc): New function.
76793         (quotearg_buffer_restyled): Treat lone { and } as special.
76794         Treat = as special.  Work around bug with older shells
76795         that "see" a '\' that is really the 2nd byte of a multibyte char.
76796         Quote empty string with shell_quoting_style.
76797
76798 2004-02-03  Bruno Haible  <bruno@clisp.org>
76799
76800         * m4/pipe.m4: New file, from GNU gettext.
76801
76802 2004-02-03  Bruno Haible  <bruno@clisp.org>
76803
76804         * lib/pipe.h: New file, from GNU gettext.
76805         * lib/pipe.c: New file, from GNU gettext.
76806
76807 2004-01-27  Bruno Haible  <bruno@clisp.org>
76808
76809         * m4/execute.m4: New file, from GNU gettext.
76810
76811 2004-01-27  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/execute.h: New file, from GNU gettext.
76814         * lib/execute.c: New file, from GNU gettext.
76815         * lib/w32spawn.h: New file, from GNU gettext.
76816
76817 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76818
76819         Merge from diffutils.
76820
76821         * lib/file-type.c (file_type): Add typed memory objects.
76822         * lib/file-type.h (S_TYPEISTMO): New macro.
76823
76824         * lib/c-stack.h (c_stack_action): Remove argv argument.
76825         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76826         (die): Don't calculate message unless segv_action returns.
76827         (get_stack_location, min_address_from_argv, max_address_from_argv,
76828         volatile stack_base, volatile_stack_size): Remove.
76829         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76830         that every segmentation violation is a stack overflow.  (Ouch!)
76831         See Debian bug 136249 (still outstanding) for more info about why
76832         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76833
76834 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76835
76836         Exit-status fix from coreutils.
76837
76838         Use exit_failure consistently in place of EXIT_FAILURE,
76839         so that program exit statuses are consistent on failure.
76840
76841         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76842         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76843         * lib/argmatch.h: Comment fix to match the above.
76844         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76845         Now a macro referring to exit_failure, instead of a separate
76846         variable.  Include "exitfail.h" to get it.
76847         * lib/xstrtol.h: Include "exitfail.h".
76848         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76849
76850         * lib/long-options.c (parse_long_options): Use prototype
76851         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76852         for clarity.
76853
76854 2004-01-21  Jim Meyering  <jim@meyering.net>
76855
76856         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76857         so as not to conflict with a different-sized __mktime_internal
76858         function in GNU libc.
76859         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76860         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76861
76862 2004-01-20  Karl Berry  <karl@gnu.org>
76863
76864         * config/config.guess: update from config.
76865
76866         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76867
76868 2004-01-20  Bruno Haible  <bruno@clisp.org>
76869
76870         Safer stack allocation.
76871         * lib/setenv.c: Include allocsa.h.
76872         (alloca): Remove fallback definition.
76873         (freea): Remove macro.
76874         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76875         instead of freea.
76876
76877 2004-01-20  Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/eealloc.m4: New file, from GNU gettext.
76880
76881 2004-01-20  Bruno Haible  <bruno@clisp.org>
76882
76883         * m4/allocsa.m4: New file, from GNU gettext.
76884
76885 2004-01-20  Bruno Haible  <bruno@clisp.org>
76886
76887         * lib/xallocsa.h: New file, from GNU gettext.
76888         * lib/xallocsa.c: New file, from GNU gettext.
76889
76890 2004-01-20  Bruno Haible  <bruno@clisp.org>
76891
76892         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76893
76894 2004-01-20  Bruno Haible  <bruno@clisp.org>
76895
76896         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76897         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76898         specially.
76899
76900 2004-01-20  Bruno Haible  <bruno@clisp.org>
76901
76902         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76903         patch.
76904
76905 2004-01-20  Bruno Haible  <bruno@clisp.org>
76906
76907         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76908
76909 2004-01-20  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/eealloc.h: New file.
76912
76913 2004-01-20  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/binary-io.h: Avoid warnings on Cygwin.
76916
76917 2004-01-20  Bruno Haible  <bruno@clisp.org>
76918
76919         * lib/allocsa.h: New file, from GNU gettext.
76920         * lib/allocsa.c: New file, from GNU gettext.
76921
76922 2004-01-18  Karl Berry  <karl@gnu.org>
76923
76924         * doc/gpl.texi, doc/lgpl.texi: new files.
76925
76926 2004-01-18  Karl Berry  <karl@gnu.org>
76927
76928         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76929         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76930
76931 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76932
76933         Merge from coreutils.
76934
76935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76936         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76937         (gl_DEFAULT_POSIX2_VERSION): Move
76938         the documentation from 'configure' into 'config.hin',
76939         so that 'configure --help' isn't burdened by it and
76940         we don't have to worry about its formatting there.
76941         Reword the documentation so that it's more succinct
76942         and can be run together into a single paragraph.
76943         * m4/same.m4 (gl_SAME): Check for pathconf.
76944
76945 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76946
76947         Merge from coreutils.
76948
76949         * lib/posixver.c: Include posixver.h.
76950
76951         * lib/same.c: Include <stdbool.h>, <limits.h>.
76952         (_POSIX_NAME_MAX): Define if not defined.
76953         (MIN): New macro.
76954         (same_name): If file names are silently truncated, report
76955         that the file names are the same if they are the same after
76956         the silent truncation.
76957
76958         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76959         conversion function.
76960         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76961         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76962         longer needed.
76963
76964 2004-01-15  Jim Meyering  <jim@meyering.net>
76965
76966         Merge from coreutils.
76967
76968         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76969         if no library is required.
76970         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76971         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76972         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76973         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76974         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76975         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76976         value, $ac_cv_search_crypt, if it's "none required".
76977         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76978         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76979         not gl_FUNC_GETLOADAVG.
76980         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76981         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76982
76983 2004-01-15  Jim Meyering  <jim@meyering.net>
76984
76985         Merge from coreutils.
76986
76987         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76988         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76989         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76990
76991         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76992         optional configure-time default.
76993
76994         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76995
76996         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76997
76998 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76999
77000         Merge from coreutils.
77001
77002         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77003         value, $ac_cv_search_nanosleep, if it's "none required".
77004
77005 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77006
77007         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77008         with like-named macro in fnmatch.c.
77009         (EXT): Use an internal constant instead.
77010
77011         Merge fnmatch patches from glibc.
77012         * lib/fnmatch.c (mbsinit): Remove define.
77013         Add libc_hidden_ver (__fnmatch, fnmatch).
77014         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77015         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77016
77017 2004-01-14  Karl Berry  <karl@gnu.org>
77018
77019         * config/install-sh: update from automake.
77020
77021 2004-01-13  Karl Berry  <karl@gnu.org>
77022
77023         * config/install-sh: update from automake.
77024
77025 2004-01-09  Karl Berry  <karl@gnu.org>
77026
77027         * config/install-sh: update from automake.
77028
77029 2004-01-05  Karl Berry  <karl@gnu.org>
77030
77031         * config/config.{sub,guess}: update from config.
77032
77033 2003-12-31  Karl Berry  <karl@gnu.org>
77034
77035         * config/depcomp: update from automake.
77036
77037 2003-12-14  Karl Berry  <karl@gnu.org>
77038
77039         * lib/config.charset: update from gettext-runtime.
77040
77041 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77042
77043         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77044         Bug reported by Alfred M. Szmidt.
77045
77046 2003-12-03  Bruno Haible  <bruno@clisp.org>
77047
77048         * m4/gettext.m4: Upgrade from gettext-0.13.
77049         * m4/po.m4: Upgrade from gettext-0.13.
77050         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77051         * m4/intmax.m4: New file, from gettext-0.13.
77052         * m4/printf-posix.m4: New file, from gettext-0.13.
77053
77054 2003-11-29  Karl Berry  <karl@gnu.org>
77055
77056         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77057
77058 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77059             Bruno Haible  <bruno@clisp.org>
77060
77061         * lib/printf-parse.h: Don't include sys/types.h.
77062         (ARG_NONE): New macro.
77063         (char_directive): Change type of *arg_index fields to size_t.
77064         * lib/printf-parse.c: Don't include sys/types.h.
77065         (SSIZE_MAX): Remove macro.
77066         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77067         Remove unnecessary overflow check.
77068         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77069         fields.
77070
77071 2003-11-25  Bruno Haible  <bruno@clisp.org>
77072
77073         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77074
77075 2003-11-25  Bruno Haible  <bruno@clisp.org>
77076
77077         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77078         gt_TYPE_SSIZE_T.
77079
77080 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77081
77082         * modules/alloca: Remove dependency on xalloc.
77083
77084 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77085
77086         * lib/alloca.c: Remove dependency on xalloc module.
77087         (xalloc_die): Remove.
77088         (memory_full) [!defined emacs]: New macro.
77089         [!defined emacs]: Don't include xalloc.h.
77090         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77091         address arithmetic overflows.  Change datatypes a bit to avoid
77092         unnecessary casts.
77093
77094 2003-11-22  Jim Meyering  <jim@meyering.net>
77095
77096         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77097         s/size/size_t/.
77098
77099 2003-11-21  Karl Berry  <karl@gnu.org>
77100
77101         * config/config.{sub,guess}: update from config.
77102
77103 2003-11-18  Karl Berry  <karl@gnu.org>
77104
77105         * config/config.{sub,guess}: update from config.
77106
77107         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77108
77109 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77110
77111         * README: Mention that S+T cannot overflow if S is the size of
77112         an existing object and T is sufficiently small.
77113
77114 2003-11-17  Jim Meyering  <jim@meyering.net>
77115
77116         On systems without utime and without a utimes function capable of
77117         dealing with a NULL struct utimbuf* argument, this utime replacement
77118         could -- in unusual circumstances -- leak a file descriptor.
77119         * lib/utime.c: Include <unistd.h> and <errno.h>.
77120         (utime_null): Be sure to close `fd' and to preserve errno.
77121         Reported by Geoff Collyer via Arnold Robbins.
77122
77123 2003-11-17  Bruno Haible  <bruno@clisp.org>
77124
77125         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77126         (Depends-on): Add xsize.
77127
77128 2003-11-17  Bruno Haible  <bruno@clisp.org>
77129
77130         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77131
77132 2003-11-17  Bruno Haible  <bruno@clisp.org>
77133
77134         * lib/vasnprintf.c (alloca): Remove fallback definition.
77135         (freea): Remove definition.
77136         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77137         Reported by Paul Eggert.
77138
77139 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77140             Bruno Haible  <bruno@clisp.org>
77141
77142         Protect against address arithmetic overflow.
77143         * lib/printf-args.h: Include stddef.h.
77144         (arguments): Change type of field 'count' to size_t.
77145         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77146         'unsigned int' where appropriate.
77147         * lib/printf-parse.h: Include sys/types.h.
77148         (char_directive): Change type of *arg_index fields to ssize_t.
77149         (char_directives): Change type of fields 'count', max_*_length to
77150         size_t.
77151         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77152         (SSIZE_MAX): Define fallback value.
77153         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77154         instead of 'int' where appropriate. Check a_allocated, d_allocated
77155         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77156         * lib/vasnprintf.c: Include xsize.h.
77157         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77158         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77159         overflow. Avoid wraparound when converting a width or precision from
77160         decimal to binary.
77161
77162 2003-11-16  Bruno Haible  <bruno@clisp.org>
77163
77164         Update from GNU gettext.
77165         * lib/printf-parse.c: Generalize to it can be compiled for wide
77166         strings.
77167         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77168         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77169         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77170         SNPRINTF): New macros.
77171         Don't include <alloca.h> if the file is used inside libintl.
77172         (local_wcslen): New function, for Solaris 2.5.1.
77173         (VASNPRINTF): Use it instead of wcslen.
77174
77175 2003-11-16  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/xsize.h (xmax): New function.
77178         (xsum, xsum3, xsum4): Declare as "pure" functions.
77179
77180 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77181
77182         * modules/xalloc (Files): Undo latest change, since xalloc.h
77183         no longer needs SIZE_MAX or PTRDIFF_MAX.
77184
77185 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77186
77187         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77188         gl_PTRDIFF_MAX.
77189
77190 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77191
77192         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77193         "return", to pacify some unknown compiler.  Problem reported
77194         by Joerg Schilling.
77195
77196 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77197
77198         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77199         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77200         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77201         heuristic is just as accurate as far as we know, and it removes a
77202         dependency on size_max.m4 and ptrdiff_max.m4.
77203
77204 2003-11-11  Bruno Haible  <bruno@clisp.org>
77205
77206         * modules/xsize (Files): Add m4/size_max.m4.
77207         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77208
77209 2003-11-11  Bruno Haible  <bruno@clisp.org>
77210
77211         * m4/size_max.m4: New file.
77212         * m4/ptrdiff_max.m4: New file.
77213         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77214         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77215         (gl_XALLOC): Invoke it.
77216
77217 2003-11-11  Bruno Haible  <bruno@clisp.org>
77218
77219         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77220         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77221         defined.
77222
77223 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77224
77225         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77226         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77227         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77228         From Bruno Haible.
77229         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77230         not (size_t) -1, since it's defined here.
77231
77232 2003-11-09  Karl Berry  <karl@gnu.org>
77233
77234         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77235
77236 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77237
77238         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77239         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77240         Reject sizes of exactly SIZE_MAX bytes.
77241         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77242         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77243
77244 2003-11-05  Bruno Haible  <bruno@clisp.org>
77245
77246         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77247         SIZE_MAX defined in <limits.h> on Solaris.
77248
77249 2003-11-04  Jim Meyering  <jim@meyering.net>
77250
77251         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77252         variable names, rather than @VAR@.
77253         * modules/poll: Likewise.
77254
77255 2003-11-04  Bruno Haible  <bruno@clisp.org>
77256
77257         * modules/xsize: New file.
77258         * modules/linebreak: Depend on xsize.
77259         * MODULES.html.sh (func_all_modules): Add xsize.
77260
77261 2003-11-04  Bruno Haible  <bruno@clisp.org>
77262
77263         * m4/xsize.m4: New file.
77264
77265 2003-11-04  Bruno Haible  <bruno@clisp.org>
77266
77267         * lib/xsize.h: New file.
77268         * lib/linebreak.c: Include xsize.h.
77269         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77270         argument for overflow.
77271         Suggested by Paul Eggert.
77272
77273 2003-11-03  Karl Berry  <karl@gnu.org>
77274
77275         * config/config.{guess,sub}: update from config.
77276
77277 2003-11-03  Jim Meyering  <jim@meyering.net>
77278
77279         * modules/userspec (lib_SOURCES): Add userspec.h.
77280         (Include): Add "userspec.h".
77281         Improve description.
77282
77283 2003-11-03  Jim Meyering  <jim@meyering.net>
77284
77285         * lib/userspec.c: Include "userspec.h".
77286         * lib/userspec.h: New file.
77287
77288 2003-11-03  Bruno Haible  <bruno@clisp.org>
77289
77290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77291
77292 2003-11-03  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77295         available, to avoid (extremely rare) race condition.
77296         Suggested by Paul Eggert.
77297
77298 2003-11-02  Karl Berry  <karl@gnu.org>
77299
77300         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77301
77302 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77303
77304         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77305         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77306         (read_filesystem_list): Set and use me_type_malloced.
77307         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77308         whatever the type happens to be), for brevity and consistency.
77309         Check for size calculation overflow on Alphas running OSF/1.
77310
77311 2003-10-31  Jim Meyering  <jim@meyering.net>
77312
77313         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77314
77315         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77316
77317 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77318             Bruno Haible  <bruno@clisp.org>
77319
77320         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77321         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77322
77323 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77324
77325         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77326         netbsd*-gnu*.  Suggested by Robert Millan.
77327
77328 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77329
77330         * modules/group-member: Depend on stdbool.
77331
77332 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77333
77334         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77335
77336 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77337
77338         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77339         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77340         after the 'gnu' in these cases.  This fixes some bugs in the
77341         previous change, and is based on suggestions by Robert Millan.
77342
77343 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77344
77345         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77346         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77347         no longer needed.
77348         * lib/quotearg.c (quotearg_n_options): Use it.
77349         * lib/group-member.c: Include <stdbool.h>.
77350         (free_group_info): Arg is now const *; don't free arg.
77351         (get_group_info): Now returns bool and accepts struct group_info *,
77352         rather than returning a malloc'ed struct group_info *.
77353         All uses changed.  Check for overflow in internal size calculation.
77354
77355         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77356         rather than xmalloc/xrealloc.
77357         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77358         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77359         conformance bug: the old code used a pointer after freeing the
77360         storage that it addressed.
77361         * lib/hash.c (hash_initialize): Simplify the code by using
77362         xalloc_oversized rather than doing it by hand.
77363         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77364         the buffer preserved.  Use free and xmalloc instead.
77365         * lib/quotearg.c (quotearg_n_options): Likewise.
77366         Use a simpler test for size overflow.  Don't use xalloc_oversized
77367         because unsigned int might be wider than size_t (!); this suggests
77368         that we should switch from unsigned int to size_t for slot numbers.
77369
77370 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77371
77372         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77373         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77374         NetBSD kernels.  Requested by Richard Stallman.
77375
77376 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77377
77378         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77379         to allocate the returned structure.  Do not allocate a subarray,
77380         as x2nrealloc will do that.
77381         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77382         instead of xnrealloc.
77383         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77384
77385 2003-10-27  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/stdbool_.h: Better support for BeOS.
77388
77389 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77390
77391         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77392         now uses inline.
77393
77394 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77395
77396         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77397         callers that want to do their own size-overflow checking.  Include
77398         <stdbool.h>, since xalloc_oversized returns bool.
77399         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77400         to use xalloc_oversized.
77401
77402         Add two functions x2realloc, x2nrealloc, for programs that grow
77403         arrays dynamically by doubling their sizes.
77404         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77405         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77406         New functions.
77407
77408         Port to C99 semantics for 'inline' of external functions.
77409         Bug reported by Bruno Haible.
77410         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77411         with the old contents of xnmalloc.
77412         (xnmalloc, xmalloc): Use it.
77413         (xnrealloc_inline): New static inline function,
77414         with the old contents of xnrealloc.
77415         (xnrealloc, xrealloc): Use it.
77416
77417         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77418         that.
77419
77420 2003-10-26  Karl Berry  <karl@gnu.org>
77421
77422         * config/srclist.txt (COPYING.DOC): no longer available from
77423         /gd/gnuorg; don't know where the ultimate source is.
77424
77425 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77426
77427         Fix several address-calculation bugs in the hash modules,
77428         plus some minor code cleanup.
77429
77430         * lib/hash.h: Include <stdbool.h>, for bool.
77431         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77432         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77433         hash_get_n_entries, hash_get_max_bucket_length,
77434         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77435         hash_rehash): Use size_t rather than unsigned.
77436         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77437         hash_get_n_buckets_used, hash_get_n_entries,
77438         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77439         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77440         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77441         Likewise.
77442         (SIZE_MAX): Define if not defined.
77443         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77444         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77445         hash_print):
77446         Use const * when possible.
77447         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77448         (check_tuning): Fix bug: if tuning parameters were very close to
77449         0 or 1, rounding errors could have caused subscript violations.
77450         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77451         (hash_initialize): Add 'fail:' label
77452         to free table and return NULL, and use it to simplify code.
77453         Use calloc rather than clearing the storage ourself.
77454         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77455         buffer size calculations.
77456         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77457         Include <stddef.h>, for size_t.
77458         * lib/hash-pjw.c (hash_pjw): Likewise.
77459         Switch to method described by Bruno Haible.
77460         Include <limits.h>, for CHAR_BIT.
77461         (SIZE_BITS): New macro.
77462
77463 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77464
77465         * m4/getline.m4 (AM_FUNC_GETLINE):
77466         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77467         hosts.  Problem reported by Derek Robert Price in
77468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77469         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77470         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77471
77472 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77473
77474         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77475         ceiling the allocation at NMAX bytes rather than silently
77476         discarding input bytes before NMAX is reached.  This makes
77477         a difference only if NMAX exceeds SIZE_MAX / 2.
77478
77479         * lib/obstack.c: Merge from glibc.
77480         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77481         Add libc_hidden_def (_obstack_newchunk).
77482         (_obstack_free) [! defined _LIBC]: Remove.
77483         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77484         a clone of the function body.
77485         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77486         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77487
77488         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77489         glibc.
77490         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77491         arg to memcpy.
77492
77493         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77494         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77495         Don't use lvalue casts, as GCC plans to remove support for them
77496         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77497         was also present in the non-GCC version, indicating that this
77498         code had always been buggy and had never been widely used.
77499         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77500         Use the fast variant of each macro, rather than copying the
77501         definiens of the fast variant; that way, we'll be more likely to
77502         catch future bugs in the fast variants.
77503
77504 2003-10-20  Bruno Haible  <bruno@clisp.org>
77505
77506         * modules/wait-process: New file.
77507         * MODULES.html.sh (func_all_modules): Add wait-process.
77508
77509 2003-10-20  Bruno Haible  <bruno@clisp.org>
77510
77511         * m4/wait-process.m4: New file.
77512
77513 2003-10-20  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/wait-process.h: New file, from GNU gettext.
77516         * lib/wait-process.c: New file, from GNU gettext.
77517
77518 2003-10-19  Jim Meyering  <jim@meyering.net>
77519
77520         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77521         HPUX 10.20.
77522
77523 2003-10-18  Karl Berry  <karl@gnu.org>
77524
77525         * config/config.guess: update from config.
77526
77527 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77528
77529         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77530         (getgroups): First arg is int, not size_t.
77531         Don't let 'free' mangle errno.
77532
77533 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77534
77535         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77536
77537 2003-10-16  Karl Berry  <karl@gnu.org>
77538
77539         * config/config.{guess,sub}: update from config.
77540
77541 2003-10-16  Jim Meyering  <jim@meyering.net>
77542
77543         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77544         memcpy.
77545
77546 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77547
77548         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77549         (SIZE_MAX): Remove.
77550         (new_exclude, add_exclude_file): Initial size no longer needs to
77551         be a power of 2.
77552         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77553         our own address arithmetic overflow checking.
77554
77555         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77556         (fnmatch): Do not alloca more than 2000 wide characters;
77557         instead, use malloc for large buffers.
77558         Check for address arithmetic overflow, and return -1
77559         with errno set to ENOMEM in that case.
77560         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77561         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77562         instead, return -1.  Check for address arithmetic overflow.
77563
77564 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77565
77566         Handle invalid suffixes and overflow independently, so that
77567         callers can treat them independently as needed.  Fix some bugs in
77568         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77569         suffix for a human-readable blocksize.  The major caller-visible
77570         change is the addition of a new
77571         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77572         that both overflow and suffix chars were found.
77573
77574         * lib/human.c (humblock): Don't check separately for invalid suffix
77575         char; that is xstrtoumax's job (now that its bug is fixed).
77576         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77577         INTMAX_MAX]: New macros.
77578         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77579         TYPE_MAXIMUM): New macros.
77580         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77581         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77582         if overflow occurs, as it's what __strtol does and it's more useful
77583         in practice.
77584         (__xstrtol): If __strtol reports some error other than ERANGE,
77585         reflect it to the caller as LONGINT_INVALID.  If it reports
77586         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77587         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77588         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77589         value.
77590         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77591         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77592         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77593         [defined UINTMAX_MAX]: New macros.
77594
77595 2003-10-14  Bruno Haible  <bruno@clisp.org>
77596
77597         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77598
77599 2003-10-14  Bruno Haible  <bruno@clisp.org>
77600
77601         * m4/sig_atomic_t: New file, from GNU gettext.
77602         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77603
77604 2003-10-14  Bruno Haible  <bruno@clisp.org>
77605
77606         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77607         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77608         Also use volatile where needed.
77609
77610 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77611
77612         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77613         Change maintainer from Bruno Haible to 'all'.
77614
77615 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77616
77617         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77618
77619 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77620
77621         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77622         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77623         and define in terms of the other primitives.
77624         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77625         (SIZE_MAX): Define if not already defined.
77626         (array_size_overflow): New function.
77627         (xalloc_die): Abort instead of exiting if 'error' returns.
77628         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77629         (xmalloc, xrealloc): Use them.
77630         (xcalloc): Check for address arithmetic overflow.
77631         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77632         a bit faster than strcpy.
77633
77634 2003-10-10  Simon Josefsson  <jas@extundo.com>
77635
77636         * modules/argp (Depends-on): Add restrict and strcase.
77637
77638 2003-10-10  Simon Josefsson  <jas@extundo.com>
77639
77640         * m4/argp.m4: Add AC_C_INLINE.
77641
77642 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77643
77644         Merge getpass from libc, plus a few fixes.
77645
77646         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77647         Include <stdbool.h>.
77648         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77649         __fsetlocking to empty.
77650         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77651         do include <bits/libc-lock.h>.
77652         Do not include <fcntl.h>; not needed.
77653         [_LIBC]: Include <wchar.h>.
77654         (NOTCANCEL_MODE): New macro.
77655         (flockfile, funlockfile) [_LIBC]: New macros.
77656         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77657         [!_LIBC]: New macros.
77658         (call_fclose): New function.
77659         (getpass): Use it.  Save tty stream separately; this simplifies the
77660         code and makes it more reliable if stdin happens to equal stdout.
77661         Invoke __fsetlocking on tty.
77662         Handle thread cancellation if needed.
77663         Namespace cleanup (use __tcgetattr, __getline).
77664         Use bool for Booleans.
77665         [USE_IN_LIBIO]: Handle wide streams.
77666         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77667         stream might go where.
77668
77669         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77670         doesn't have to include <stdio.h> before us.
77671         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77672         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77673         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77674         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77675         if not declared, so that we can use getpass.c code from libc without
77676         rewriting it.
77677         (flockfile, ftrylockfile, funlockfile): New macros.
77678
77679 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77680
77681         * modules/getpass: Depend on stdbool.
77682
77683 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77684
77685         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77686
77687 2003-10-07  Karl Berry  <karl@gnu.org>
77688
77689         * config/config.{guess,sub}: update from config.
77690
77691 2003-10-06  Jim Meyering  <jim@meyering.net>
77692             Bruno Haible  <bruno@clisp.org>
77693
77694         This lets translators provide better translations for the
77695         "Written by ..." part of --version output.
77696         * lib/version-etc.h: Include stdarg.h.
77697         (version_etc_copyright): Declare as readonly.
77698         (version_etc): Make this function variadic with a NULL-terminated list
77699         of author name strings.
77700         (version_etc_va): New declaration.
77701         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77702         (version_etc_copyright): Declare as readonly.
77703         (version_etc_va): New function. Provide a different translatable string
77704         for each possible number of authors < 10. Abbreviate when there are 10
77705         authors or more.
77706         (version_etc): Make this function variadic. Call version_etc_va.
77707         Suggestion from Gary V. Vaughan.
77708
77709         * lib/long-options.h (parse_long_options): Change prototype: the
77710         authors string is moved to the end and becomes variadic.
77711         * lib/long-options.c: Include stdarg.h.
77712         (parse_long_options): Make this function variadic, too.
77713         Call version_etc_va, not version_etc.
77714
77715 2003-10-06  Bruno Haible  <bruno@clisp.org>
77716
77717         * modules/version-etc-2: Remove file.
77718         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77719
77720 2003-10-06  Bruno Haible  <bruno@clisp.org>
77721
77722         * modules/fatal-signal: New file.
77723         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77724
77725 2003-10-06  Bruno Haible  <bruno@clisp.org>
77726
77727         * m4/fatal-signal.m4: New file.
77728         * m4/signalblocking.m4: New file, from GNU gettext.
77729
77730 2003-10-06  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/version-etc-2.h: Remove file.
77733         * lib/version-etc-2.c: Remove file.
77734
77735 2003-10-06  Bruno Haible  <bruno@clisp.org>
77736
77737         * lib/fatal-signal.h: New file, from GNU gettext.
77738         * lib/fatal-signal.c: New file, from GNU gettext.
77739
77740 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77741
77742         * README: Rework advice for preventing empty .o files.
77743         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77744         not <sys/types.h>.
77745
77746 2003-10-04  Karl Berry  <karl@gnu.org>
77747
77748         * lib/argp*: update from libc.
77749
77750 2003-10-04  Karl Berry  <karl@gnu.org>
77751
77752         * config/config.{guess,sub}: update from config.
77753
77754 2003-10-02  Bruno Haible  <bruno@clisp.org>
77755
77756         * modules/lchown (Include): Add lchown.h.
77757         * modules/time_r (Include): Use "..." syntax.
77758         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77759
77760 2003-10-01  Simon Josefsson  <jas@extundo.com>
77761
77762         * MODULES.html.sh (func_all_modules): Move gethostname from section
77763         'based on' to section 'lacking' POSIX:2001.
77764
77765 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77766
77767         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77768         to output mode on the same stream.
77769
77770 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77771
77772         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77773         Fix arg typo in previous patch.
77774
77775 2003-09-28  Jim Meyering  <jim@meyering.net>
77776
77777         * lib/error.c: Correct cpp indentation.
77778
77779 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77780
77781         * modules/free: New file.
77782
77783 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77784
77785         * m4/free.m4: New file.
77786
77787 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77788
77789         * lib/minmax.h (MIN, MAX)
77790         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77791         Omit the special code that used __typeof__, since we worry that
77792         it could be more trouble than it's worth.  See:
77793         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77794         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77795
77796         * lib/free.c: New file.
77797
77798 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77799
77800         Trivial fixes to Makefile.am parts of module listings.
77801         * modules/strstr: Append strstr.h to lib_SOURCES.
77802         * modules/strcase: Likewise, for strcase.h.
77803
77804 2003-09-27  Karl Berry  <karl@gnu.org>
77805
77806         * config/mkinstalldirs: update from automake.
77807
77808 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77809
77810         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77811         (error_tail): Do not loop, reallocating temporary buffer, since
77812         the output cannot contain more wide characters than the input
77813         contains bytes, the size must be big enough already.  This avoids
77814         one potential size overflow calculation.  Check for size overflow
77815         when calculating temporary buffer size.  Free temporary buffer
77816         when done, if it was allocated with malloc; this plugs a memory
77817         leak.  Remove casts from void * to pointers, that are no longer
77818         needed now that we're assuming C89 or better.
77819
77820         Merge error changes from glibc.
77821
77822         * lib/error.c, error.h: Update copyright notice header to match glibc.
77823         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77824         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77825         Disable cancellation while printing error.
77826         * lib/error.h: Prepend __ to parameter names.
77827
77828 2003-09-26  Jim Meyering  <jim@meyering.net>
77829
77830         * lib/error.c (error_tail): Move some declarations
77831         into inner scope where the local variables are used.
77832
77833 2003-09-26  Bruno Haible  <bruno@clisp.org>
77834
77835         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77836         stpncpy().
77837         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77838
77839 2003-09-26  Bruno Haible  <bruno@clisp.org>
77840
77841         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77842         (stpncpy): Define as alias for gnu_stpncpy.
77843         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77844
77845 2003-09-25  Simon Josefsson  <jas@extundo.com>
77846
77847         * lib/xgetdomainname.h: New file.
77848         * lib/xgetdomainname.c: New file.
77849
77850 2003-09-25  Simon Josefsson  <jas@extundo.com>
77851             Bruno Haible  <bruno@clisp.org>
77852
77853         * modules/getdomainname: New file.
77854         * modules/xgetdomainname: New file.
77855         * MODULES.html.sh (func_all_modules): Add getdomainname,
77856         xgetdomainname.
77857
77858 2003-09-25  Simon Josefsson  <jas@extundo.com>
77859             Bruno Haible  <bruno@clisp.org>
77860
77861         * m4/getdomainname.m4: New file.
77862
77863 2003-09-25  Simon Josefsson  <jas@extundo.com>
77864             Bruno Haible  <bruno@clisp.org>
77865
77866         * lib/getdomainname.h: New file.
77867         * lib/getdomainname.c: New file.
77868
77869 2003-09-25  Karl Berry  <karl@gnu.org>
77870
77871         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77872
77873 2003-09-25  Karl Berry  <karl@gnu.org>
77874
77875         * config/install-sh: update from automake.
77876
77877 2003-09-25  Bruno Haible  <bruno@clisp.org>
77878
77879         * modules/version-etc-2: New file, from modules/version-etc with
77880         modifications.
77881         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77882
77883 2003-09-25  Bruno Haible  <bruno@clisp.org>
77884
77885         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77886         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77887
77888 2003-09-24  Simon Josefsson  <jas@extundo.com>
77889
77890         * modules/xgethostname: Add xgethostname.h.
77891
77892 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77893
77894         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77895         the buffer associated with the argument.  Bug reported by
77896         Simon Josefsson.
77897
77898 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77899
77900         * README: Document assumptions that 'int' is at least 32 bits
77901         wide, that integer arithmetic is 2's complement without overflow,
77902         that there are no holes in integer values, that adding sizes of
77903         two nonoverlapping objects can't overflow, and that all-bits-zero
77904         yields scalar zero.  Fix spelling and capitalization typos.
77905
77906 2003-09-19  Karl Berry  <karl@gnu.org>
77907
77908         * lib/argp.h: update from libc.
77909
77910 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77911
77912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77913         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77914         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77915
77916 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77917
77918         * gnulib-tool: Use "test -h", not "test -L", for portability
77919         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77920         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77921         (sed_extract_prog): Issue s commands one-by-one, rather than
77922         using \| in one s command.
77923
77924 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77925
77926         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77927         input error, instead of returning NULL the next time we are called
77928         (and therefore losing track of errno).
77929
77930 2003-09-16  Bruno Haible  <bruno@clisp.org>
77931
77932         * gnulib-tool (func_create_testdir): Warn about duplicated
77933         dependencies.
77934
77935 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77936
77937         * modules/argmatch, modules/fatal, modules/obstack,
77938         modules/xalloc, modules/xgethostname: Sort dependencies by
77939         importance, not alphabetically.
77940
77941 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77942
77943         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77944         fails, so that the caller gets the proper errno.
77945
77946         * lib/readutmp.c (read_utmp): Likewise.
77947         Check for fstat error.  Close stream and free storage
77948         when failing.
77949
77950 2003-09-14  Karl Berry  <karl@gnu.org>
77951
77952         * config/srclist.txt (strdup.c): disable for c89 changes.
77953
77954 2003-09-14  Jim Meyering  <jim@meyering.net>
77955
77956         * lib/getloadavg.c: Correct cpp indentation.
77957         * lib/strdup.c: Likewise.
77958         * lib/vasnprintf.c: Likewise.
77959
77960 2003-09-14  Bruno Haible  <bruno@clisp.org>
77961
77962         * modules/fwriteerror: New file.
77963         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77964
77965 2003-09-14  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/fwriteerror.h: New file.
77968         * lib/fwriteerror.c: New file.
77969
77970 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77971
77972         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77973         modules/xgethostname, modules/xalloc: Depend on exit.
77974
77975 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77976
77977         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77978
77979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77980         and AC_MINIX, too, so that their extensions are available.
77981
77982         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77983         This macro has been superseded by gl_BACKUPFILE.
77984
77985         More patches to assume C89 or better.
77986
77987         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77988
77989         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77990         unconditionally.
77991         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77992         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77993         Include <string.h>, <stdlib.h> unconditionally.
77994         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77995         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77996         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77997         headers or for string.h.
77998         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77999         or strtoul.
78000
78001         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78002         headers.
78003         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78004         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78005         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78006         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78009         memcpy, memset.
78010         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78011         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78012         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78013         strtol.
78014         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78015         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78016         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78017         strtoul.
78018
78019 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78020
78021         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78022         * lib/obstack.c [!defined _LIBC]: Likewise.
78023         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78024         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78025         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78026
78027         More changes to assume C89 or better.
78028
78029         * lib/error.c (error_tail): Assume vprintf.
78030
78031         * lib/argmatch.c (getenv): Remove decl.
78032         * lib/progreloc.c (get_full_program_name): Define via prototype.
78033         * lib/setenv.c (clearenv): Likewise.
78034         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78035         needed.
78036         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78037         (malloc, memcpy): Remove decls.
78038         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78039         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78040         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78041         (memcpy): Remove macro.
78042         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78043         (__P): Remove.  All uses removed.
78044         (PTR): Remove.  All uses changed to void *.
78045         (CHAR_BIT, NULL): Remove.
78046         (spaces, zeros, memset_space, memset_zero)
78047         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78048         Remove.
78049         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78050         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78051         Define with prototype.
78052         Remove now-unnecessary prototype decl.
78053         (extra_args_spec): Assume ANSI C.  All uses changed.
78054         (extra_args_spec_iso): Remove.
78055         (my_strftime, emacs_strftimeu): Define via prototype.
78056         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78057         unconditionally.
78058         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78059         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78060         (strtoul, strtol): Remove decls.
78061         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78062         LONG_MAX): Remove.
78063         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78064         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78065         (LOCALE_PARAM_PROTO): New macro.
78066         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78067         (INTERNAL (strtol), strtol): Define with a prototype.
78068         (PARAMS): Remove.  All uses removed.
78069         * lib/tempname.c: Include <string.h> unconditionally.
78070         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78071         * lib/xgethostname.c (main): Define with a prototype.
78072         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78073         Include <stdlib.h> unconditionally.
78074         (calloc, malloc, realloc, free): Remove decls.
78075         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78076         Include <stdlib.h> unconditionally.  Sort include file names.
78077         (strtod): Remove.
78078         (xstrtod): Define with a prototype.
78079         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78080         (strtol, strtoul): Remove decls.
78081
78082 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78083
78084         More patches to assume C89 or better.
78085         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78086         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78087         string.h, memchr, STDC_HEADERS.
78088
78089 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78090
78091         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78092         Include <stdlib.h>, <string.h> unconditionally.
78093         Remove now-unnecessary cast to char *.
78094         * lib/strnlen.c: Include <string.h> unconditionally.
78095         * lib/yesno.c (yesno): Define with a prototype.
78096
78097 2003-09-11  Bruno Haible  <bruno@clisp.org>
78098
78099         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78100
78101 2003-09-10  Jim Meyering  <jim@meyering.net>
78102
78103         * lib/error.c: Correct indentation of cpp directives.
78104
78105 2003-09-10  Bruno Haible  <bruno@clisp.org>
78106
78107         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78108         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78109         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78110         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78111         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78112         <stdlib.h> and <string.h> checks.
78113         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78114         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78115
78116 2003-09-10  Bruno Haible  <bruno@clisp.org>
78117
78118         * lib/strcspn.c: Include <string.h> unconditionally.
78119         * lib/strpbrk.c: Include <string.h> unconditionally.
78120         * lib/strstr.c: Include <string.h> unconditionally.
78121         * lib/unicodeio.c: Include <string.h> unconditionally.
78122         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78123         * lib/unsetenv.c: Likewise.
78124         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78125         * lib/yesno.c: Include <stdlib.h> unconditionally.
78126         (rpmatch): Add prototype.
78127
78128 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78129
78130         More patches to assume C89 or better.
78131         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78132         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78133         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78134         or for string.h.
78135         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78136         stdlib.h.
78137         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78138         C headers.
78139         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78140         string.h.
78141         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78142         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78143         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78144         or for string.h.
78145         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78146         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78147         C headers.
78148         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78149         memcpy.
78150         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78151         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78152         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78153         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78154         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78155         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78156         string.h, free.
78157         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78158         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78159         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78160         C headers, or for string.h.
78161         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78162         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78163         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78164         headers, memory.h, stdlib.h, string.h, strings.h.
78165         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78166         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78167         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78168         strchr.
78169         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78170         headers, memory.h, string.h.
78171         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78172         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78173         free.
78174         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78175         headers.
78176         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78177         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78178         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78179         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78180         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78181
78182 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78183
78184         More K&R removal.
78185
78186         * lib/acosl.c (main): Use a prototype.
78187         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78188         tanl.c: Likewise.
78189
78190         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78191
78192         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78193         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78194         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78195         with a prototype.
78196         * lib/getopt.c (const): Remove macro.
78197         Include <string.h> unconditionally.
78198         (my_index): Remove; all uses changed to strchr.
78199         (strlen): Remove decl.
78200         (exchange): Remove forward decl; no longer needed.
78201         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78202         Define with prototype.
78203         * lib/getopt1.c (const): Remove macro.
78204         (getopt_long, getopt_long_only, main): Define with prototype.
78205
78206         * lib/getugroups.c: Include <string.h> unconditionally.
78207
78208         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78209         (getusershell, setusershell, endusershell, readname, main):
78210         Define with prototypes.
78211
78212         * lib/group-member.c: Include group-member.h first.
78213         Include <stdlib.h> unconditionally.
78214
78215         * lib/hard-locale.c: Include hard-locale.h first.
78216         Include <stdlib.h>, <string.h> unconditionally.
78217
78218         * lib/hash.c (free, malloc): Remove decls.
78219         Include <stdlib.h> unconditionally.
78220
78221         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78222         (getenv): Do not declare.
78223
78224         * lib/idcache.c: Include <string.h> unconditionally.
78225
78226         * lib/long-options.c: Include long-options.h first, to test interface.
78227         Include <stdlib.h> unconditionally.
78228
78229         * lib/makepath.c: Include makepath.h first, to test interface.
78230         Include <stdlib.h> and <string.h> unconditionally.
78231
78232         * lib/linebuffer.c: Include <stdlib.h>.
78233         (free): Remove decl.
78234
78235         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78236         stddef.h. rpl_malloc returns void *, not char *.
78237         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78238         prototype.
78239
78240         * lib/md5.h: Include <limits.h> unconditionally.
78241         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78242         (__P): Remove; all uses removed.
78243         * lib/md5.c: Include "md5.h" first.
78244         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78245         md5_buffer, md5_process_bytes, md5_process_block):
78246         Define with prototypes.
78247         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78248         * lib/sha.c: Include "sha.h" first.
78249         Include <stdlib.h>, <string.h> unconditionally.
78250
78251         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78252         * lib/memcmp.c (__ptr_t): Likewise.
78253         * lib/memrchr.c (__ptr_t): Likewise.
78254         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78255         Include <string.h> unconditionally.
78256         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78257         * lib/memchr.c: Include <stdlib.h> unconditionally.
78258         * lib/memchr.c (LONG_MAX): Remove.
78259         * lib/memrchr.c (LONG_MAX): Likewise.
78260         * lib/memchr.c (__memchr): Define via a prototype.
78261         * lib/memrchr.c (__memrchr): Likewise.
78262         * lib/memcmp.c (__P): Remove, and remove all uses.
78263         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78264         Remove forward decls; no longer needed.
78265         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78266         Use types required by C89 in prototype.
78267
78268         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78269         * lib/savedir.c: Likewise.
78270         * lib/mkdir.c (free): Remove decl.
78271         * lib/rmdir.c (rmdir): Define with a prototype.
78272         * lib/savedir.c: Include savedir.h first, to test interface.
78273
78274         * lib/mktime.c (STDC_HEADERS): Remove.
78275         Include <stdlib.h>, <string.h> unconditionally.
78276
78277         * lib/modechange.c: Include <stdlib.h> unconditionally.
78278         (malloc): Remove decl.
78279
78280         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78281         (free): Remove decl.
78282
78283         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78284         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78285         (This type really should be intptr_t, but that's a C99ism.)
78286         (_obstack_memcpy): Remove: all uses changed to memcpy.
78287         Include <string.h> unconditionally.
78288         (struct obstack): Assume __STDC__ for types of members
78289         chunkfun, freefun, extra_arg.
78290         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78291         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78292         obstack_begin, obstack_specify_allocation,
78293         obstack_specify_allocation_with_arg, obstack_chunkfun,
78294         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78295         Remove unprototyped decls and the macros that use them.
78296         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78297         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78298         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78299         (defined __STDC__ && __STDC__)]:
78300         Remove nonprototyped code.
78301         Include <stdlib.h> unconditionally.
78302         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78303         _obstack_allocated_p, _obstack_free, obstack_free,
78304         _obstack_memory_used, print_and_abort):
78305         Define using prototypes.
78306         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78307         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78308         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78309         obstack_next_free, obstack_object_size, obstack_room) [0]:
78310         Remove unused, unprototyped code.
78311
78312         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78313
78314         * lib/physmem.c (physmem_total, physmem_available, main): Define
78315         with prototypes.
78316
78317         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78318         (main): Define with a prototype.
78319
78320         * lib/posixver.c (getenv): Remove decl.
78321
78322         * lib/putenv.c (malloc): Returns void *, not char *.
78323         Include <string.h> unconditionally.
78324         (strchr, memcpy, NULL): Do not define.
78325
78326         * lib/readtokens.c: Include readtokens.h first, to test interface.
78327         Include <stdlib.h>, <string.h> unconditionally.
78328         (init_tokenbuffer): Define with a prototype.
78329
78330         * lib/regex.c (PARAMS): Remove.  All uses removed.
78331         All uses of _RE_ARGS removed, too.
78332         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78333         unconditionally.
78334         (bzero): Assume memset exists.
78335         (memcmp, memcpy, NULL): Remove.
78336         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78337         char, or assignments to local vars of type signed char.
78338         (init_syntax_once, PREFIX(extract_number_and_incr),
78339         PREFIX(print_partial_compiled_pattern),
78340         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78341         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78342         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78343         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78344         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78345         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78346         wcs_compile_range, byte_compile_range, truncate_wchar,
78347         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78348         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78349         count_mbs_length, wcs_re_match_2_internal,
78350         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78351         PREFIX(alt_match_null_string_p),
78352         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78353         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78354         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78355         now-unnecessary declaration, if any.
78356         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78357         regcomp, regexec):
78358         Remove now-unnecessary casts among pointer types.
78359         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78360
78361         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78362         (free): Remove decl.
78363
78364         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78365
78366         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78367         (free): Remove decl.
78368
78369         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78370         * lib/xgetcwd.c: Likewise.
78371
78372         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78373         (free): Remove decl.
78374
78375         * lib/strchrnul.c (strchrnul): Define with a prototype.
78376         Fix bug: c_in was not converted to char before searching.
78377
78378         The following changes are not K&R related:
78379
78380         * lib/group-member.h: Include <sys/types.h>, so that this file is
78381         self-contained.
78382         * lib/makepath.h: Likewise.
78383
78384         * lib/getusershell.c (readname, default_index, line_size, readname):
78385         Use size_t, not int, for sizes.
78386         (readname): If the size overflows, report an error instead of
78387         looping forever.
78388
78389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78390
78391         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78392         libc.
78393
78394 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78395
78396         * README: New section: portability guidelines.
78397
78398 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78399
78400         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78401         C89 spec.
78402
78403 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78404
78405         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78406
78407 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78408
78409         Assume C89 or better; remove K&R cruft.
78410         A few of these changes were first proposed by Derek Robert Price
78411         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78412
78413         * lib/addext.c: Include <string.h> unconditionally.
78414         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78415         Don't declare getenv or malloc.
78416
78417         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78418         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78419         (NULL): Remove.
78420         (find_stack_direction, alloca): Use prototypes.
78421
78422         * lib/atexit.c (atexit): Define using a prototype.
78423
78424         * lib/basename.c, dirname.c, stripslash.c:
78425         Include <string.h> unconditionally.
78426
78427         * lib/bcopy.c: Include <stddef.h>.
78428         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78429
78430         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78431
78432         * lib/error.h (error, error_at_line, error_print_progname)
78433         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78434         * lib/error.c: Include error.h first, to check interface.
78435         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78436         (VA_START): Remove; all uses changeed to va_start.
78437         (exit, strerror): Remove decls.
78438         (error_print_progname): Prototype uncondionally.
78439         Don't include <errno.h>; no longer needed.
78440         (private_strerror): Remove.
78441         (error_tail): Always define.
78442         (error, error_at_line): Assume C89 or better; always use prototypes.
78443         * lib/fatal.c: Include "fatal.h" first, to test interface.
78444         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78445         (VA_START): Remove; all uses changed to va_start.
78446         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78447         this case.
78448         (exit): Remove decl.
78449         (fatal): Prototype unconditionally.  Assume va_start works.
78450         Abort at end, to pacify gcc.
78451
78452         * lib/euidaccess.c (main): Define with a prototype.
78453
78454         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78455
78456         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78457
78458         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78459         prototypes.
78460         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78461         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78462         (getenv): Remove decl.
78463         (fnmatch): Define using a prototype.
78464         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78465         (FCT): Define using a prototype.
78466
78467         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78468
78469         * lib/gethostname.c: Include <stddef.h>.
78470         (gethostname): Define with prototype.  Length is size_t, not int.
78471
78472 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78473
78474         Assume C89 or better; remove K&R cruft.
78475         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78476         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78477         string.h, getenv, malloc.
78478         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78479         headers.
78480         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78481         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78482         do not check for strerror.
78483         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78484         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78485         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78486         do not check for doprnt or vprintf.
78487         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78488         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78489
78490 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78491
78492         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78493         getversion.c should have been removed then, but was accidentally
78494         preserved.
78495
78496         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78497         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78498
78499 2003-09-08  Karl Berry  <karl@gnu.org>
78500
78501         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78502                 config, forget about prep.
78503
78504         * config/depcomp, missing: update from automake.
78505
78506 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78507
78508         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78509         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78510
78511 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78512
78513         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78514         copy_tm_result.  Bug reported by Simon Josefsson in
78515         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78516
78517 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78518
78519         * m4/time_r.m4: New file.
78520         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78521         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78522         is. Check for timegm declaration.
78523         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78524         Do not check for gmtime_r.
78525         Replace mktime if __mktime_internal does not exist and if mktime
78526         hasn't been replaced already.
78527
78528 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78529
78530         * lib/time_r.c, lib/time_r.h: New files.
78531
78532         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78533         __localtime_r.
78534         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78535         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78536
78537         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78538         __gmtime_r.
78539         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78540         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78541         Include <time_r.h>.
78542
78543         * lib/timegm.c: Switch to glibc implementation, with the following
78544         changes:
78545         [defined HAVE_CONFIG_H]: Include <config.h>.
78546         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78547         (__mktime_internal) [!defined _LIBC]: New decl.
78548         (__gmtime_r) [!defined _LIBC]: New macro and function.
78549         (timegm): Use a prototype, since gnulib assumes C89.
78550         Do not bother declaring tmp to be const, as it's not really usefu.
78551         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78552         (timegm): Declare only if HAVE_DECL_TIMEGM.
78553
78554 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78555
78556         * MODULES.html.sh (func_all_modules): Add time_r.
78557         * modules/time_r: New file.
78558         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78559         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78560
78561 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78562
78563         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78564         Bug reported by Lute Kamstra in
78565         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78566
78567         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78568         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78569         course with correspondingly smaller numbers for tomorrow and
78570         yesterday.  From Tadayoshi Funaba.  Originally installed into
78571         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78572         coreutils merge?).
78573
78574 2003-08-31  Simon Josefsson  <jas@extundo.com>
78575
78576         * modules/timegm: New file.
78577         * MODULES.html.sh (func_all_modules): Add timegm.
78578
78579 2003-08-31  Simon Josefsson  <jas@extundo.com>
78580
78581         * m4/timegm.m4: New file.
78582
78583 2003-08-31  Simon Josefsson  <jas@extundo.com>
78584
78585         * lib/timegm.h: New file.
78586         * lib/timegm.c: New file.  Based on
78587         wget-1.8.2/src/http.c:mktime_from_utc.
78588
78589 2003-08-31  Karl Berry  <karl@gnu.org>
78590
78591         * lib/argp.h: update from libc.
78592
78593 2003-08-28  Bruno Haible  <bruno@clisp.org>
78594
78595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78596         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78597         followed by '#define fnmatch fnmatch_posix' gives an error.
78598
78599 2003-08-28  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78602         warning on QNX, which defines O_BINARY to 000000.
78603
78604 2003-08-27  Jim Meyering  <jim@meyering.net>
78605
78606         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78607         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78608         would fail after 32.  Reported by Danny Levinson.  Details here:
78609         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78610
78611 2003-08-24  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78614         MSVC7 <stdio.h> is included later.
78615
78616 2003-08-22  Simon Josefsson  <jas@extundo.com>
78617
78618         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78619
78620 2003-08-20  Karl Berry  <karl@gnu.org>
78621
78622         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78623
78624 2003-08-20  Bruno Haible  <bruno@clisp.org>
78625
78626         * modules/progname: New file.
78627         * MODULES.html.sh (func_all_modules): Add progname.
78628
78629 2003-08-20  Bruno Haible  <bruno@clisp.org>
78630
78631         * lib/progname.h: New file, from GNU gettext.
78632         * lib/progname.c: New file, from GNU gettext.
78633         * lib/progreloc.c: New file, from GNU gettext.
78634
78635 2003-08-19  Jim Meyering  <jim@meyering.net>
78636
78637         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78638         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78639
78640 2003-08-19  Bruno Haible  <bruno@clisp.org>
78641
78642         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78643         more.
78644
78645 2003-08-19  Bruno Haible  <bruno@clisp.org>
78646
78647         * lib/xstrdup.c: Assume <string.h> exists.
78648
78649 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78650
78651         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78652         in makefile rules.
78653
78654 2003-08-18  Jim Meyering  <jim@meyering.net>
78655
78656         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78657         * m4/lib-ld.m4: Likewise.
78658
78659 2003-08-18  Jim Meyering  <jim@meyering.net>
78660
78661         * lib/setenv.h: Indent nested cpp directive.
78662         * lib/vasnprintf.c: Remove trailing blanks.
78663
78664 2003-08-17  Simon Josefsson  <jas@extundo.com>
78665
78666         * modules/xstrndup: New file.
78667         * MODULES.html.sh (func_all_modules): Add xstrndup.
78668
78669 2003-08-17  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/argp: Fix autoconf macro name. Add more dependencies.
78672
78673 2003-08-17  Simon Josefsson  <jas@extundo.com>
78674
78675         * m4/xstrndup.m4: New file.
78676
78677 2003-08-17  Simon Josefsson  <jas@extundo.com>
78678
78679         * m4/argp.m4: New file.
78680
78681 2003-08-17  Simon Josefsson  <jas@extundo.com>
78682             Bruno Haible  <bruno@clisp.org>
78683
78684         * lib/xstrndup.h: New file.
78685         * lib/xstrndup.c: New file.
78686
78687 2003-08-17  Bruno Haible  <bruno@clisp.org>
78688
78689         * modules/strndup (Files, Include): Add lib/strndup.h.
78690
78691 2003-08-17  Bruno Haible  <bruno@clisp.org>
78692
78693         * modules/euidaccess (Files): Add lib/euidaccess.h.
78694
78695 2003-08-17  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/strndup.h: New file.
78698
78699 2003-08-17  Bruno Haible  <bruno@clisp.org>
78700
78701         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78702         like AC_GNU_SOURCE.
78703         * modules/extensions (configure.ac): Comment out the invocation of
78704         gl_USE_SYSTEM_EXTENSIONS.
78705
78706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78707
78708         Merges from coreutils, etc.
78709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78710         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78711         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78712         fixing a typo.
78713         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78714         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78715
78716 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78717
78718         Document merge from coreutils.
78719         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78720         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78721         * modules/utime: Add m4/utimes-null.m4.
78722
78723 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78724
78725         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78726         space, undoing this 2003-08-12 change:
78727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78728
78729 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78730
78731         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78732         strtoul.c from libc, undoing this 2003-08-12 change:
78733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78734
78735 2003-08-16  Jim Meyering  <jim@meyering.net>
78736
78737         Merges from coreutils.
78738         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78739         prefix.  Adjust cache variables similarly.  Create 500 rather than
78740         just 300 files, to exercise bug on Darwin6.5, too.
78741         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78742         $missing_dir.
78743         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78744         AM_SYS_POSIX_TERMIOS.
78745         Reported by mkc@mathdogs.com.
78746         Also change use of $am_cv_sys_posix_termios
78747         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78748         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78749         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78750         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78751         in /proc/mounts until it finds one with matching device number.  This
78752         is unnecessary when the FILE argument *is* a mount point.  No stat call
78753         is necessary in that case.  So, disable the statvfs-testing code on
78754         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78755         as RedHat bug# 84846.
78756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78757         to 1MB, so as not to render systems with no stack size limit (e.g.,
78758         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78759         Include <unistd.h>.  On some systems,
78760         it is required for the definition of _SC_PAGESIZE.
78761
78762 2003-08-16  Jim Meyering  <jim@meyering.net>
78763
78764         Merge from coreutils.
78765         * lib/xstrtoimax.c: #else #if -> #elif.
78766         * lib/xstrtoumax.c: Likewise.
78767
78768 2003-08-16  Jim Meyering  <jim@meyering.net>
78769
78770         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78771         * m4/utimes.m4: Removed.
78772         * m4/utimes-null.m4: Renamed from utimes.m4.
78773
78774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78775         to 1MB, so as not to render systems with no stack size limit (e.g.,
78776         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78777         Include <unistd.h>.  On some systems,
78778         it is required for the definition of _SC_PAGESIZE.
78779
78780 2003-08-16  Jim Meyering  <jim@meyering.net>
78781         and Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         Merges from coreutils, etc.
78784
78785         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78786         using the latest version from cvs.  This avoids problems with #line
78787         directives using a vendor (Sun) compiler.
78788         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78789         Don't set GETGROUPS_LIB here; now it's
78790         done via getgroups.m4's wrapper function.
78791         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78792         rather than just in sh-util/configure.in, so that the
78793         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78794         same.
78795         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78796         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78797         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78798         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78799         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78800         Remove code that is now done by the newly-required macros.
78801         Append $(EXEEXT) to DF_PROG.
78802         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78803         Do not invoke or require the following here,
78804         since prereq.m4 or some gnulib .m4 now does this for us:
78805         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78806         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78807         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78808         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78809         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78810         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78811         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78812         AC_FUNC_OBSTACK.
78813         Do not replace the following functions, as this is now the job
78814         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78815         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78816         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78817         atexit getpass, strdup, getpagesize.
78818         Replace 'raise'.
78819         Do not check for the following functions, as this is now the job
78820         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78821         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78822         setregid.
78823         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78824         Check for sys/sysctl.h.
78825         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78826         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78827         of checking for ssize_t ourselves.
78828
78829         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78830         Require every macro that gnulib/modules/* suggests for us.
78831         (jm_PREREQ_ADDEXT): New macro.
78832         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78833         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78834
78835         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78836         (gl_PHYSMEM): Use it.
78837         Also check for `table' function.
78838         Check for new headers and functions.
78839         Add check for sys/sysmp.h.
78840         With suggestions from Kaveh Ghazi.
78841         Ignore headers that are present but cannot be compiled.  This
78842         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78843         C 5.4.
78844
78845 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78846
78847         Document merge from coreutils.
78848         * modules/userspec: Depend on posixver.
78849         * modules/strftime: Depend on tzset.
78850
78851 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78852
78853         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78854         rather than tab, after '#' in shell-script copyright notices.
78855         Suggested by Bruno Haible.
78856
78857 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78858
78859         * config/srclist-update: Use three spaces, rather than tab, after '#'
78860         in shell-script copyright notices.  Suggested by Bruno Haible.
78861         Remove unnecessary parenthesization in regular expression.
78862
78863 2003-08-15  Jim Meyering  <jim@meyering.net>
78864
78865         Merge from coreutils.
78866         * lib/xgethostname.c: Include <stdlib.h>.
78867         (xghostname): Don't exit for anything other than memory-related
78868         failure; just return NULL.
78869         * lib/userspec.c: Include "posixver.h".
78870         (parse_user_spec): Accept `.' as a separator only
78871         in pre-POSIX-200112 mode.
78872         * lib/strtoimax.c: Use #elif rather than #else #if.
78873         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78874         Remove function, now that we can rely on a working tzset function.
78875         [!_LIBC]: Ensure that the required autoconf test has been run.
78876         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78877         Use underlying_strftime for %r.
78878         * lib/sha.c: Merge in some clean-up and optimization changes from
78879         glibc.
78880         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78881         Ensure that it is a multiple of 64.
78882         Rearrange loop exit tests so as to avoid performing an
78883         additional fread after encountering an error or EOF.
78884         * lib/realloc.c: Update copyright date.
78885
78886 2003-08-15  Jim Meyering  <jim@meyering.net>
78887         and Paul Eggert  <eggert@twinsun.com>
78888
78889         Merge from coreutils.
78890         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78891         member but strut utmpx does not.  Needed for AIX 4.3.3.
78892         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78893
78894 2003-08-15  Jim Meyering  <jim@meyering.net>
78895         and Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         Merges from coreutils, etc.
78898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78899         Require gl_FUNC_TZSET_CLOBBER.
78900         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78901         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78902         members.
78903
78904 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78905
78906         Help the merge from coreutils.
78907         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78908         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78909         * m4/tzset.m4: Use it too.
78910
78911 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78912
78913         * modules/tzset: New file.
78914
78915 2003-08-14  Jim Meyering  <jim@meyering.net>
78916
78917         Merges from coreutils.
78918         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78919         variable names, rather than @FNMATCH_H@.
78920         * modules/alloca: Likewise for $(ALLOCA_H).
78921
78922         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78923         the three copies of the literal target, `fnmatch.h'.
78924         * modules/alloca (alloca.h): Likewise.
78925
78926 2003-08-14  Jim Meyering  <jim@meyering.net>
78927
78928         Merge from coreutils.
78929         * m4/tzset.m4: New file.
78930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78931         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78932         otherwise, AIX 5.1 systems would end up using the latter.
78933         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78934         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78935         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78936         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78937
78938 2003-08-14  Jim Meyering  <jim@meyering.net>
78939
78940         Merge from coreutils.
78941         * lib/obstack.h: Whitespace changes.
78942         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78943         and xcalloc return values.
78944         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78945         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78946         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78947         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78948         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78949         error from mntctl.
78950         Use mntctl's return value to drive the entry-processing loop, since
78951         we can't rely on the value of the vmt_length member in the last
78952         entry.  On some systems doing so could result in exhausting
78953         virtual memory.  Based in part on a patch from Mike Jetzer.
78954
78955 2003-08-14  Jim Meyering  <jim@meyering.net>
78956         and Paul Eggert  <eggert@twinsun.com>
78957
78958         Merges from coreutils, plus other fixes.
78959         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78960         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78961         for credits and details.  Thanks to Kaveh Ghazi for helping
78962         to keep these files in sync.
78963         (ARRAY_SIZE): Define it.
78964         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78965         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78966         (memcasecmp): Don't assume size_t fits in unsigned int.
78967         Remove casts and duplicate code.
78968         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78969         (memcpy): Remove definition.
78970         Merge in some clean-up and optimization changes from glibc.
78971         [BLOCKSIZE]: Move definition to top of file.
78972         Ensure that it is a multiple of 64.
78973         Rearrange loop exit tests so as to avoid performing an
78974         additional fread after encountering an error or EOF.
78975         * lib/md5.h (md5_uintptr): Define.
78976         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78977         return to the initial working directory.  Preserve errno
78978         for caller.
78979         * lib/idcache.c: Include "xalloc.h".
78980         (xmalloc, xrealloc): Remove decls.
78981         (getuser): Remove casts no longer required in C89.
78982         * lib/human.c: Include stdio.h, for sprintf.
78983         * lib/group-member.c: Include "xalloc.h".
78984         (xmalloc, xrealloc): Remove decls.
78985         (get_group_info): Remove casts no longer required in C89.
78986         * lib/getusershell.c (readname): Remove casts no longer required in
78987         C89.
78988         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78989         * lib/getline.c: Whitespace fix, from coreutils.
78990
78991 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78992
78993         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78994         Check for isascii.
78995
78996         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78997         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78998         Undo previous (whitespace-only) change.
78999
79000 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79001
79002         * lib/exclude.c: Include <ctype.h>
79003         (IN_CTYPE_DOMAIN): New macro.
79004         (is_space): New fn.
79005         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79006         and empty lines.
79007
79008         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79009         Undo previous (whitespace-only) change.
79010
79011 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79012
79013         * config/srclist-update: Change update back to the old behavior,
79014         leaving whitespace alone.  Use one 'sed' command rather than a
79015         pipeline.
79016         (fixlicense): Now a variable, not a function.
79017         (remove_trailing_blanks): Remove.
79018         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79019         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79020         Undo previous (whitespace-only) change.
79021
79022 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79023
79024         Merge from coreutils.
79025         * modules/euidaccess: Add lib_SOURCES, include for new
79026         file euidaccess.h
79027
79028 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79029
79030         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79031         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79032         Normalize leading white space and remove trailing white space.
79033
79034         Merge from coreutils
79035         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79036
79037         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79038         0.12.1.  These files are now being upgraded automatically by
79039         ../config/srclist-update.
79040
79041 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79042
79043         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79044         Normalize leading white space and remove trailing white space.
79045         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79046         notice, as per ../config/srclist-update.
79047
79048         Merge from coreutils.
79049         * lib/euidaccess.h: New file.
79050         * lib/euidaccess.c: Include it.
79051         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79052         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79053         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79054
79055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79056
79057         * config/srclist-update: Add copyright notice.
79058         (remove_id_lines, remove_trailing_blanks): New constants.
79059         (fixfile): Use them to normalize spacing a bit in copied files.
79060         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79061         Normalize leading white space and remove trailing white space.
79062
79063         * config/texinfo.tex: Sync with texinfo.
79064
79065         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79066         strtoul.c from libc, to merge coreutils whitespace changes.
79067
79068         * config/srclist.txt: Get the following m4 files from gettext:
79069         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79070         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79071         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79072         wint_t.m4.
79073
79074 2003-08-12  Karl Berry  <karl@gnu.org>
79075
79076         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79077         been made.
79078
79079 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79080
79081         * modules/gnu-source, m4/gnu-source.m4:
79082         Remove; we're assuming Autoconf 2.54 or later now.
79083         Suggested by Bruno Haible.
79084         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79085
79086 2003-08-11  Bruno Haible  <bruno@clisp.org>
79087
79088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79089
79090 2003-08-11  Bruno Haible  <bruno@clisp.org>
79091
79092         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79093         (vasnprintf): Use it instead of wcslen.
79094
79095 2003-08-11  Bruno Haible  <bruno@clisp.org>
79096
79097         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79098         value to ensure that _Bool promotes to int. Use #define for _Bool when
79099         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79100
79101 2003-08-10  Karl Berry  <karl@gnu.org>
79102
79103         * lib/regex.h: update from libc (whitespace fix).
79104
79105 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79106
79107         Merge some files from coreutils.  These changes were
79108         originally made by Jim Meyering.
79109         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79110         many older Unixes require this.
79111         * lib/alloca.c (alloca): Remove cast to argument of free;
79112         no longer needed in C89.
79113         * lib/alloca_.h, regex.h: Fix white space to match
79114         what GNU indent does.
79115
79116 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79117
79118         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79119         apparently Emacs's Unicode mode got confused before my 2003-08-05
79120         checkin.
79121
79122 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79123
79124         * m4/extensions.m4: New file.
79125         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79126         Require gl_USE_SYSTEM_EXTENSIONS.
79127         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79128         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79129
79130 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79131
79132         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79133         * modules/extensions, modules/gnu-source: New files.
79134         * modules/timespec, modules/unlocked-io: Depend on extensions.
79135
79136 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79137
79138         * modules/restrict: New file.
79139         * MODULES.html.sh (func_all_modules): Add restrict.
79140         * modules/regex: Depend on restrict.
79141
79142 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79143
79144         * m4/restrict.m4: New file.
79145         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79146
79147 2003-08-07  Bruno Haible  <bruno@clisp.org>
79148
79149         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79150         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79151
79152 2003-08-07  Bruno Haible  <bruno@clisp.org>
79153
79154         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79155         makes the module 'getndelim2' compatible with the module 'getline'.
79156
79157 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79158
79159         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79160         byte with "\201" to avoid glitches when editing that source file
79161         with multi-gnome-terminal.
79162
79163 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79164
79165         * lib/bumpalloc.h: Remove.
79166
79167 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79168
79169         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79170         * modules/bumpalloc: Remove.
79171
79172 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79173
79174         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79175         GNU coding style.
79176
79177         Merge from coreutils.
79178         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79179         1. From glibc.
79180         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79181         from Karl Berry, implemented by Jim Meyering.
79182         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79183         from Dmitry V. Levin.
79184         Remove anachronistic cast of xrealloc.
79185         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79186         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79187         type. Otherwise, it wouldn't compile with at least /bin/cc on
79188         ymp-cray-unicos9.0.2.X.
79189         Combine two mostly-identical uses of alloca into one.
79190         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79191
79192 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79193
79194         [From Emacs.]
79195
79196         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79197         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79198         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79199         obsolete NLIST_NAME_UNION.
79200         [__GNU__]: Undef BSD and FSCALE.
79201         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79202
79203 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79204
79205         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79206         an enum type, so that it's guaranteed to promote to int.  See:
79207         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79208
79209 2003-08-03  Karl Berry  <karl@gnu.org>
79210
79211         * config/depcomp: update from automake.
79212
79213 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79214
79215         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79216         (strerror): Don't assume that a printable int fits in 14 bytes.
79217
79218 2003-07-31  Bruno Haible  <bruno@clisp.org>
79219
79220         * modules/getpass-gnu: New file.
79221         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79222
79223 2003-07-31  Bruno Haible  <bruno@clisp.org>
79224
79225         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79226
79227 2003-07-24  Karl Berry  <karl@gnu.org>
79228
79229         * config/missing: update from automake.
79230
79231 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79232             Bruno Haible  <bruno@clisp.org>
79233
79234         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79235         * lib/getline.c (getline, getdelim): Likewise.
79236         Remove _GNU_SOURCE define; now it's defined in config.h through
79237         m4/getline.m4.
79238
79239 2003-07-23  Karl Berry  <karl@gnu.org>
79240
79241         * config/config.sub: update from prep.
79242
79243 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79244
79245         * modules/xalloc (Depends-on): Add exitfail.
79246         * modules/xmemcoll: Likewise.
79247
79248 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79249
79250         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79251         over-parenthesization in macros.
79252
79253         Sync with coreutils.
79254
79255         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79256         required by C99.
79257
79258         Use `exit_failure' for xalloc and xmemcoll instead of their own
79259         private exit-failure variables.
79260         * lib/xalloc.h (xalloc_exit_failure): Remove.
79261         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79262         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79263         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79264         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79265         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79266
79267 2003-07-20  Jim Meyering  <jim@meyering.net>
79268
79269         * modules/closeout (Depends-on): Add exitfail.
79270         Suggestion from Bruno Haible.
79271
79272 2003-07-19  Karl Berry  <karl@gnu.org>
79273
79274         * config/config.sub: update from prep.
79275
79276 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79277
79278         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79279         Remove.
79280         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79281         to test that it can stand by itself.  Include "exitfail.h".
79282         Clients should set exit_failure instead.
79283         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79284
79285 2003-07-18  Bruno Haible  <bruno@clisp.org>
79286
79287         * modules/getndelim2: New file.
79288         * modules/getline: Share files with module getndelim2.
79289         * modules/getnline: Depend on getndelim2 instead of sharing files with
79290         it. Add getnline.c to lib_SOURCES.
79291         * MODULES.html.sh (func_all_modules): Add getndelim2.
79292
79293 2003-07-18  Bruno Haible  <bruno@clisp.org>
79294
79295         * m4/getndelim2.m4: New file.
79296         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79297         invoke gl_PREREQ_GETNDELIM2.
79298         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79299         gl_PREREQ_GETNDELIM2.
79300         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79301         gl_GETNDELIM2.
79302
79303 2003-07-18  Bruno Haible  <bruno@clisp.org>
79304
79305         * lib/getndelim2.h: New file.
79306         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79307         getndelim2.h.
79308         (getndelim2): Make non-static. Change return type to ssize_t.
79309         * lib/getline.h: Change argument names.
79310         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79311         * lib/getnline.c: Include getndelim2.h.
79312
79313 2003-07-18  Andreas Schwab  <schwab@suse.de>
79314
79315         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79316
79317 2003-07-17  Karl Berry  <karl@gnu.org>
79318
79319         * config/config.sub: update from prep.
79320
79321 2003-07-17  Bruno Haible  <bruno@clisp.org>
79322
79323         * modules/getnline: New file.
79324         * modules/getline: Add lib/getndelim2.c to source file list.
79325         * MODULES.html.sh (func_all_modules): Add getnline.
79326
79327 2003-07-17  Bruno Haible  <bruno@clisp.org>
79328
79329         * m4/getnline.m4: New file.
79330
79331 2003-07-17  Bruno Haible  <bruno@clisp.org>
79332
79333         * m4/Makefile.am.in: Remove file.
79334         * m4/Makefile.am: Remove file.
79335         * m4/Makefile.in: Remove file.
79336
79337 2003-07-17  Bruno Haible  <bruno@clisp.org>
79338
79339         * lib/getnline.h: New file.
79340         * lib/getnline.c: New file.
79341         * lib/getndelim2.c: New file, extracted from getline.c.
79342         (getndelim2): Renamed from getdelim2, with added nmax argument.
79343         * lib/getline.c: Include getndelim2.c.
79344         (getdelim2): Moved out to getndelim2.c.
79345         (getline, getdelim): Update.
79346
79347 2003-07-17  Bruno Haible  <bruno@clisp.org>
79348
79349         * lib/Makefile.am: Remove file.
79350         * lib/Makefile.in: Remove file.
79351
79352 2003-07-17  Bruno Haible  <bruno@clisp.org>
79353
79354         * configure.in: Remove file.
79355         * Makefile.in: Remove file.
79356
79357 2003-07-17  Bruno Haible  <bruno@clisp.org>
79358
79359         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79360
79361 2003-07-16  Karl Berry  <karl@gnu.org>
79362
79363         * config/srclist-update: was running fixlicense twice, which caused
79364                 texinfo.tex to be nullified for some reason.  Simplify,
79365                 $gplsrc is no longer needed as far as I can see?
79366
79367 2003-07-16  Jim Meyering  <jim@meyering.net>
79368
79369         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79370
79371 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79372
79373         * config/srclist.txt: Get the following files from gettext-runtime/intl
79374         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79375         ref-del.sin.  From Bruno Haible.
79376         * config/srclist-update (fixfile): Change grep pattern again, since the
79377         previous fix didn't work (there was another trailing $).  Use
79378         '[$]' to escape the $s.
79379
79380 2003-07-15  Karl Berry  <karl@gnu.org>
79381
79382         * lib/vasnprintf.c: update from gettext.
79383
79384 2003-07-15  Karl Berry  <karl@gnu.org>
79385
79386         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79387         gets expanded when surrounded by '$'.
79388
79389 2003-07-15  Jim Meyering  <jim@meyering.net>
79390
79391         * modules/save-cwd: Don't depend on error.  From Derek Price.
79392
79393 2003-07-15  Jim Meyering  <jim@meyering.net>
79394
79395         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79396
79397 2003-07-14  Simon Josefsson  <jas@extundo.com>
79398
79399         * modules/mempcpy: New file.
79400         * MODULES.html.sh (func_all_modules): Add mempcpy.
79401
79402 2003-07-14  Simon Josefsson  <jas@extundo.com>
79403
79404         * m4/mempcpy.m4: New file.
79405
79406 2003-07-14  Simon Josefsson  <jas@extundo.com>
79407
79408         * lib/mempcpy.h: New file.
79409         * lib/mempcpy.c: New file.
79410
79411 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79412
79413         * modules/getdate, modules/posixtm: Depend on mktime.
79414
79415 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79416
79417         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79418         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79419         unicodeio.c, unicodeio.h, unlocked-io.h:
79420         Switch from LGPL to GPL.
79421
79422 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79423
79424         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79425         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79426         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79427         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79428         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79429         updated automatically by ../config/srclist-update.  This changes
79430         their license from LPGL to GPL.
79431
79432 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79433
79434         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79435         assumed to refer to the root of the most recent stable gettext version.
79436         * config/srclistvars.sh: Add defaults for eggert.
79437         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79438         Match "This program" as well as "The program".  This is needed
79439         for gettext.
79440
79441 2003-07-14  Jim Meyering  <jim@meyering.net>
79442
79443         Don't emit diagnostics.  Let callers do that.
79444         * lib/save-cwd.c: Don't include "error.h".
79445         (save_cwd): Don't call error.  Ensure that errno is valid
79446         when returning nonzero.
79447
79448         * lib/save-cwd.h (restore_cwd): Update prototype.
79449         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79450         Simplify.  Don't call error upon failure.  Let callers do that.
79451         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79452         when auditing is enabled.  But don't bother updating the #if.
79453
79454 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79455
79456         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79457         it breaks C++ compilation.
79458         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79459
79460 2003-07-10  Simon Josefsson  <jas@extundo.com>
79461
79462         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79463
79464 2003-07-10  Jim Meyering  <jim@meyering.net>
79465
79466         * m4/clock_time.m4: Remove trailing blank.
79467         * m4/intmax_t.m4: Likewise.
79468
79469 2003-07-10  Jim Meyering  <jim@meyering.net>
79470
79471         * lib/vasnprintf.c: Remove trailing blanks.
79472         Make cpp indentation consistent.
79473
79474 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79475
79476         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79477         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79478         Switch from LGPL to GPL.
79479
79480 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79481
79482         * config/srclist.txt: Sort sublists.  Add
79483         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79484         that differ from gnulib for one reason or another; we'd like this list
79485         to be smaller but for now let's document what we have.
79486
79487 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79488
79489         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79490         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79491         and sweeter "eval x=$x".
79492         * config/srclist.txt: Get lib/argp* from glibc.
79493
79494 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79495
79496         * lib/mktime.c: Fix some boundary cases and remove need for floating
79497         point.
79498
79499         Issue a compile-time diagnostic if time_t is floating point, or if
79500         two's complement arithmetic is not in effect, or if arithmetic
79501         right shift does not propagate the sign.  These assumptions were
79502         all in the original code but they weren't checked.
79503
79504         (TIME_T_MIDPOINT, verify): New macros.
79505         (__isleap): Remove; it has integer overflow problems.
79506         (leapyear): New function, without those problems.
79507         (ydhms_tm_diff): Remove; splitting into two parts.
79508         (ydhms_diff): New function, containing the arithmetic part of
79509         the old ydhms_tm_diff function.  Issue a compile-time
79510         diagnostic if we are not using C99 integer division.
79511         Avoid casts when possible.
79512         (guess_time_tm): New function, containing the checking part of
79513         the old ydhms_tm_diff function.  Return the new value, rather than
79514         the difference between it and the old.  Accept a new argument T
79515         so that *T specifies the old value.  Check for overflow in the result.
79516
79517         (__mktime_internal): Use a time_t offset, not a long int offset.
79518         This undoes the 2003-06-04 change, which is no longer needed now
79519         that we have better overflow checking.
79520         (localtime_offset): Likewise.
79521
79522         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79523         and long are 64-bit but int is only 32-bit.
79524         (ydhms_diff): Use long int to store year1 and yday1.
79525         Issue a compile-time diagnostic if long int is not wide enough.
79526
79527         (__mktime_internal): Use long int to store adjusted year and yday.
79528         Use plain C rather than preprocessor commands, if that doesn't
79529         affect efficiency.
79530         Check for overflow (and try to repair) after each probe
79531         rather than checking only at the very end.  This avoids some bugs
79532         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79533         does not equal GMT offset at maximum time).
79534         Use integer to check for overflow rather than floating point; this
79535         is more portable to non-IEEE hosts, and is a tad faster.
79536         When we detect that we are oscillating between two values,
79537         don't check whether tm_isdst has the requested value, since
79538         we already know the answer.  When tm_isdst has the wrong value,
79539         use a different heuristic to find the right one, based on the
79540         extreme values actually observed in practice in tz2003a,
79541         rather than the (overly optimistic) "previous 3 calendar quarters".
79542
79543         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79544         "T const" to accommodate glibc style.
79545         (check_result): Use less-confusing report format.  "long" -> "long int.
79546         (main): Likewise.
79547         Don't loop if the iteration overflows time_t.
79548         Allow a negative step in the iteration.
79549
79550 2003-07-06  Karl Berry  <karl@gnu.org>
79551
79552         * config/depcomp: update from automake.
79553         * config/config.sub: update from prep.
79554
79555 2003-07-03  Karl Berry  <karl@gnu.org>
79556
79557         * config/config.guess: update from prep.
79558
79559 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79560
79561         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79562         xreadlink.c now includes it unconditionally.
79563
79564 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79565
79566         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79567         having it depend on HAVE_SYS_TYPES_H.
79568
79569 2003-07-01  Bruno Haible  <bruno@clisp.org>
79570
79571         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79572         <sys/types.h> should be sufficient.
79573         Reported by Paul Eggert.
79574
79575 2003-06-26  Karl Berry  <karl@gnu.org>
79576
79577         * config/depcomp: update from automake.
79578
79579 2003-06-26  Bruno Haible  <bruno@clisp.org>
79580
79581         * modules/human: Depend on module stdbool.
79582
79583 2003-06-25  Bruno Haible  <bruno@clisp.org>
79584
79585         * modules/readlink: New file.
79586         * modules/xreadlink: Depend on it.
79587         * MODULES.html.sh (func_all_modules): Add readlink.
79588
79589 2003-06-25  Bruno Haible  <bruno@clisp.org>
79590
79591         * m4/readlink.m4: New file.
79592
79593 2003-06-25  Bruno Haible  <bruno@clisp.org>
79594
79595         * lib/readlink.c: New file.
79596
79597 2003-06-22  Karl Berry  <karl@gnu.org>
79598
79599         * config/srclist.txt: update mkinstalldirs from automake.
79600         * config/mkinstalldirs: update.
79601
79602 2003-06-22  Bruno Haible  <bruno@clisp.org>
79603
79604         Portability to mingw32.
79605         * m4/ssize_t.m4: New file, from GNU gettext.
79606         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79607         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79608
79609 2003-06-22  Bruno Haible  <bruno@clisp.org>
79610
79611         * modules/safe-read: Add m4/ssize_t.m4.
79612         * modules/xreadlink: Add m4/ssize_t.m4.
79613
79614 2003-06-20  Bruno Haible  <bruno@clisp.org>
79615
79616         Assume C89, so PARAMS isn't needed.
79617         * lib/unicodeio.h (PARAMS): Remove.
79618         * lib/unicodeio.c: Don't use PARAMS.
79619
79620 2003-06-18  Karl Berry  <karl@gnu.org>
79621
79622         * config/config.{guess,sub}: update from prep.
79623
79624 2003-06-18  Jim Meyering  <jim@meyering.net>
79625
79626         Merge changes from coreutils.
79627         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79628         Remove explicit declarations of xmalloc and realloc.
79629         Include xalloc.h.
79630         (read_utmp): Remove anachronistic cast of xmalloc.
79631
79632 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79633
79634         Assume C89, so PARAMS isn't needed.
79635         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79636         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79637         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79638         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79639         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79640         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79641         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79642         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79643         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79644         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79645         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79646         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79647         no longer needed. Anyway, config.h should always be included before any
79648         other file.
79649
79650 2003-06-11  Simon Josefsson  <jas@extundo.com>
79651
79652         * modules/sysexits: New file.
79653         * MODULES.html.sh (func_all_modules): Add sysexits.
79654
79655 2003-06-11  Simon Josefsson  <jas@extundo.com>
79656
79657         * lib/sysexit_.h: New file.
79658
79659 2003-06-11  Derek Price  <derek@ximbiot.com>
79660
79661         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79662         necessary.
79663
79664 2003-06-11  Bruno Haible  <bruno@clisp.org>
79665
79666         * m4/sysexits.m4: New file.
79667
79668 2003-06-10  Simon Josefsson  <jas@extundo.com>
79669
79670         * lib/argp.h: New file, from glibc.
79671         * lib/argp-ba.c: New file, from glibc.
79672         * lib/argp-eexst.c: New file, from glibc.
79673         * lib/argp-fmtstream.c: New file, from glibc.
79674         * lib/argp-fmtstream.h: New file, from glibc.
79675         * lib/argp-fs-xinl.c: New file, from glibc.
79676         * lib/argp-help.c: New file, from glibc.
79677         * lib/argp-namefrob.h: New file, from glibc.
79678         * lib/argp-parse.c: New file, from glibc.
79679         * lib/argp-pv.c: New file, from glibc.
79680         * lib/argp-pvh.c: New file, from glibc.
79681         * lib/argp-xinl.c: New file, from glibc.
79682
79683 2003-06-10  Simon Josefsson  <jas@extundo.com>
79684
79685         * modules/strchrnul: New file.
79686
79687 2003-06-10  Simon Josefsson  <jas@extundo.com>
79688
79689         * modules/argp: New file.
79690
79691 2003-06-10  Simon Josefsson  <jas@extundo.com>
79692
79693         * m4/strchrnul.m4: New file.
79694
79695 2003-06-10  Simon Josefsson  <jas@extundo.com>
79696
79697         * lib/strchrnul.h: New file.
79698         * lib/strchrnul.c: New file.
79699
79700 2003-06-10  Bruno Haible  <bruno@clisp.org>
79701
79702         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79703
79704 2003-06-07  Karl Berry  <karl@gnu.org>
79705
79706         * config/config.{guess,sub}: update from prep.
79707
79708 2003-06-07  Jim Meyering  <jim@meyering.net>
79709
79710         * modules/strtod: Use $(...) notation, not @...@ for
79711         AC_REPLACE'd variables.
79712         * modules/localcharset: Likewise.
79713
79714 2003-06-07  Jim Meyering  <jim@meyering.net>
79715
79716         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79717         in place of my name in the copyright comment.
79718         Remove definition and uses of __P.
79719
79720         From coreutils.
79721         * lib/stat.c: Don't declare xmalloc explicitly.
79722         Instead, include "xalloc.h".
79723         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79724         xrealloc, and xcalloc return values.
79725         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79726         Improve comment.
79727         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79728
79729 2003-06-07  Bruno Haible  <bruno@clisp.org>
79730
79731         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79732         avoid AC_CONFIG_LINKS.
79733         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79734         fnmatch.h, to avoid AC_CONFIG_LINKS.
79735         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79736
79737 2003-06-07  Bruno Haible  <bruno@clisp.org>
79738
79739         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79740         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79741         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79742         directory.
79743         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79744         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79745         directory.
79746
79747 2003-06-06  Jim Meyering  <jim@meyering.net>
79748
79749         Merge from coreutils.
79750         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79751         Consolidate declarations and initializations of *_base* locals.
79752
79753         Merge from coreutils.
79754         This avoids a core dump on systems without GNU putenv,
79755         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79756         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79757         (unsetenv): New static function, from GNU libc.
79758         (rpl_putenv): Use it.
79759
79760         * lib/modechange.c: Remove trailing blanks.
79761
79762         Merge from coreutils.
79763         * lib/fsusage.c: Remove declaration of statfs.
79764         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79765
79766         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79767
79768 2003-06-06  Jim Meyering  <jim@meyering.net>
79769
79770         * lib/stdbool_.h: Renamed from stdbool.h.in.
79771
79772 2003-06-06  Jim Meyering  <jim@meyering.net>
79773             Bruno Haible  <bruno@clisp.org>
79774
79775         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79776         Adjust Makefile.am snippet not to redirect directly to target.
79777         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79778
79779 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79780
79781         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79782         mismatch, look in future quarters as well as past.  This fixes a
79783         bug when processing fall-backwards gaps immediately after a long
79784         period of daylight-saving time.
79785
79786         * lib/mktime.c: Assume freestanding C89 or better.
79787         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79788         (__P): Remove; not used.
79789         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79790         (mktime, not_equal_tm, print_tm, check_result,
79791         main): Use prototypes.  Use const * where appropriate.
79792         (main): Fix typo in testing code that uncovered by above changes.
79793         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79794
79795 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79796
79797         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79798         locale.h, localeconv.  This merges changes from coreutils.
79799
79800         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79801         It can be removed after the next Autoconf is released.
79802         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79803         needed.
79804
79805 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79806
79807         * lib/mktime.c: Fix Debian bug 177940
79808         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79809         (localtime_offset): Now long int, not time_t, because we want it
79810         to be guaranteed to be signed.  All uses changed.
79811         (__mktime_internal): If overflow would occur when adding offset,
79812         don't add it.
79813
79814         Merge 'human' changes from coreutils.  Rewrite to support
79815         locale-specific notations like thousands separators.
79816         * lib/human.c: Simplify authorship notice.
79817         Include human.h immediately after config.h.
79818         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79819         <limits.h>: Do not include, since human.h does.
79820         (SIZE_MAX, UINTMAX_MAX): New macros.
79821         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79822         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79823         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79824         (power_letter): Renamed from suffixes.
79825         (generate_suffix_backwards): Remove.
79826         (adjust_value): Now takes int style (because of human.h changes)
79827         and long double value (for greater precision on some platforms).
79828         (group_number): New function.
79829         (human_readable): Use it.  Use integer options, not enum.
79830         Put the options before the sizes in the arg list.
79831         Support all the new options.
79832         The old human_readable function has been removed;
79833         use inttostr.h instead.
79834         (human_readable, default_block_size, humblock):
79835         Use uintmax_t, not int, for block sizes.
79836         (human_readable_inexact, block_size_types): Remove.
79837         (block_size_opts): New constant.
79838         (human_options): Renamed from human_block_size, with new signature
79839         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79840         * lib/human.h: Add copyright and authorship notice.
79841         Include <limits.h> and <stdbool.h> unconditionally.
79842         (PARAMS): Remove.  All uses removed.
79843         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79844         (enum human_inexact_style): Remove tag; now a nameless enum.
79845         (human_floor, human_ceiling, human_round_to_even): Now have
79846         values 2, 0, 1 rather than -1, 1, 0.
79847         (human_group_digits, human_suppress_point_zero, human_autoscale,
79848         human_base_1024, human_SI, human_B): New constants.
79849         (human_readable_inexact, human_block_size): Remove.
79850         (human_readable): Size args are now uintmax_t, not int.
79851         (human_options): New decl.
79852
79853         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79854         unnecessary now that we assume C89 or better.  This change
79855         imported from coreutils.
79856
79857         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79858         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79859         in the 2003-05-30 sync from glibc.
79860
79861         .h files should stand alone, but we shouldn't include <sys/types.h>
79862         if we can get away with just <stddef.h>.
79863
79864         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79865         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79866         rather than <sys/types.h>, as we merely need size_t.
79867         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79868         to get size_t.
79869         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79870         Include <stdio.h>, to get FILE.
79871         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79872         memcasecmp.h has included <stddef.h> and all we need is size_t.
79873         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79874         our interface, instead of including <sys/types.h>
79875
79876 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79877
79878         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79879         now, as glibc mktime is buggy on non-glibc systems.
79880
79881 2003-06-03  Karl Berry  <karl@gnu.org>
79882
79883         * config/config.sub: update from prep.
79884
79885 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79886
79887         [from coreutils]
79888         Fix some minor time-related bugs with POSIX time arguments.
79889         Some valid time stamps were being rejected (notably -1, and
79890         time stamps before 1900 on 64-bit hosts).  And some invalid
79891         time stamps were being accepted, e.g. September 31.
79892
79893         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79894         that we can return (time_t) -1 successfully.
79895         * lib/posixtm.c: Likewise.
79896         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79897         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79898         (t): Remove static var.
79899         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79900         of static var.  All uses changed.
79901         (year): Do not reject years before 1900; they can occur with
79902         64-bit time_t.
79903         (posix_time_parse): Do not check for out-of-range components;
79904         that is now the caller's responsibility, since our checks were
79905         only approximations.
79906         (posixtime): Use mktime to check for out-of-range components,
79907         since it knows them exactly.
79908         If mktime returns (time_t) -1, check whether an error actually occurred
79909         by invoking localtime on -1.
79910         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79911         posixtime failures better.
79912         Improve the test data (in comments only).
79913
79914 2003-06-02  Karl Berry  <karl@gnu.org>
79915
79916         * config/mkinstalldirs (version): new variable.
79917         (--version): new option.
79918         (usage): improve message.
79919
79920 2003-05-30  Karl Berry  <karl@gnu.org>
79921
79922         * lib/mktime.c: update from libc.
79923
79924 2003-05-30  Bruno Haible  <bruno@clisp.org>
79925
79926         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79927         * config/config.rpath: Upgrade to gettext-0.12.1.
79928
79929 2003-05-30  Bruno Haible  <bruno@clisp.org>
79930
79931         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79932         * m4/nls.m4: New file, from gettext-0.12.1.
79933         * m4/po.m4: New file, from gettext-0.12.1.
79934         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79935
79936 2003-05-30  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79939         * lib/localcharset.h: Likewise.
79940         * lib/localcharset.c: Likewise.
79941
79942 2003-05-29  Karl Berry  <karl@gnu.org>
79943
79944         * config/config.rpath: update from gettext.
79945
79946 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79947
79948         Assume the headers required for C89 freestanding compilers.
79949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79950         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79951         * m4/human.m4 (gl_HUMAN): Likewise.
79952         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79953         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79954         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79955         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79957         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79958
79959 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79960
79961         Assume the headers required for C89 freestanding compilers.
79962         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79963         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79964         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79965         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79966         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79967         define, since <limits.h> is guaranteed to do that.
79968         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79969         * lib/exclude.c: Include <stdbool.h> unconditionally.
79970         * lib/tempname.c: Include <stddef.h> unconditionally.
79971         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79972         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79973         <stddef.h> does that.
79974         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79975         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79976         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79977         needed.
79978         * lib/xstrtol.c: Likewise.
79979         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79980         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79981
79982         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79983         warnings on some platforms.
79984
79985         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79986         arbitrarily.
79987
79988 2003-05-26  Jim Meyering  <jim@meyering.net>
79989
79990         Merge in a change from coreutils:
79991         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79992         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79993         that condition, rather than `-1' which is slightly misleading.
79994         Change the name of the cache variable to have the gl_ prefix.
79995         Prompted by a patch from Richard Dawe for DJGPP.
79996
79997 2003-05-24  Karl Berry  <karl@gnu.org>
79998
79999         * config/config.guess: update from prep.
80000
80001 2003-05-22  Karl Berry  <karl@gnu.org>
80002
80003         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80004
80005 2003-05-20  Karl Berry  <karl@gnu.org>
80006
80007         * config/config.guess: update from prep.
80008
80009 2003-05-18  Karl Berry  <karl@gnu.org>
80010
80011         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80012         might actually be set by the user.
80013
80014         * config/depcomp, install-sh, mdate-sh: update from automake.
80015
80016 2003-05-17  Bruno Haible  <bruno@clisp.org>
80017
80018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80019         invalid expansion for AC_EGREP_CPP.
80020         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80021         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80022         Suggested by Akim Demaille <akim@epita.fr> in
80023         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80024
80025 2003-05-12  Jim Meyering  <jim@meyering.net>
80026
80027         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80028         the space-padded-by-default conversion specifiers, %e, %k, %l.
80029
80030 2003-05-12  Bruno Haible  <bruno@clisp.org>
80031
80032         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80033         the string is longer than 4 KB.
80034
80035 2003-05-11  Karl Berry  <karl@gnu.org>
80036
80037         * config/config.{guess,sub}: update from prep.
80038
80039 2003-05-09  Bruno Haible  <bruno@clisp.org>
80040
80041         * modules/error: Add m4/strerror_r.m4 to file list.
80042
80043 2003-05-03  Bruno Haible  <bruno@clisp.org>
80044
80045         Upgrade to Unicode-4.0.
80046         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80047         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80048         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80049         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80050         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80051         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80052         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80053         Change width of U+E0100..U+E01EF from 1 to 0.
80054
80055 2003-04-25  Jim Meyering  <jim@meyering.net>
80056
80057         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80058         of type size_t, not int.
80059
80060 2003-04-25  Bruno Haible  <bruno@clisp.org>
80061
80062         * lib/copy-file.c: Include <stddef.h>, for size_t.
80063
80064 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80065
80066         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80067         code which expansion is under static control.  Patch imported from
80068         Akim Demaille's patch to Bison; see
80069         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80070
80071 2003-04-14  Bruno Haible  <bruno@clisp.org>
80072
80073         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80074
80075 2003-04-11  Jim Meyering  <jim@meyering.net>
80076
80077         Merge changes from Coreutils.
80078
80079         2003-03-22  Jim Meyering  <jim@meyering.net>
80080
80081         * lib/strftime.c (widen): Cast alloca return value to proper type.
80082
80083         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80084
80085         From GNU libc.
80086         * lib/strftime.c (my_strftime): Handle very large width
80087         specifications for numeric values correctly.  Improve checks for
80088         overflow.
80089
80090         2003-01-19  Jim Meyering  <jim@meyering.net>
80091
80092         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80093         definitions.
80094         (nl_get_alt_digit) [! defined my_strftime]: Define.
80095         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80096         _nl_get_alt_digit and _nl_get_walt_digit.
80097
80098         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80099         libc. These changes have no effect outside of _LIBC.
80100
80101 2003-04-10  Bruno Haible  <bruno@clisp.org>
80102
80103         * modules/findprog: New file.
80104         * MODULES.html.sh (func_all_modules): Add it.
80105
80106 2003-04-10  Bruno Haible  <bruno@clisp.org>
80107
80108         * m4/findprog.m4: New file.
80109         * m4/eaccess.m4: New file.
80110
80111 2003-04-10  Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/findprog.h: New file, from GNU gettext.
80114         * lib/findprog.c: New file, from GNU gettext.
80115
80116 2003-04-05  Jim Meyering  <jim@meyering.net>
80117
80118         Merge changes from Coreutils.
80119
80120         * lib/exclude.h (PARAMS): Remove definition and uses.
80121         * lib/exclude.c: Remove uses of `PARAMS'.
80122
80123         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80124         Add test-cases for DOS filenames. Declare program_name.
80125         (main): Set up program_name.  Patch by Rich Dawe.
80126
80127         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80128         error from mntctl.
80129         Use mntctl's return value to drive the entry-processing loop, since
80130         we can't rely on the value of the vmt_length member in the last
80131         entry.  On some systems doing so could result in exhausting
80132         virtual memory.  Based in part on a patch from Mike Jetzer.
80133
80134 2003-04-04  Bruno Haible  <bruno@clisp.org>
80135
80136         * modules/linebreak: New file.
80137         * MODULES.html.sh (func_all_modules): Add it.
80138
80139 2003-04-04  Bruno Haible  <bruno@clisp.org>
80140
80141         * m4/linebreak.m4: New file.
80142
80143 2003-04-04  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/linebreak.h: New file, from GNU gettext.
80146         * lib/linebreak.c: New file, from GNU gettext with slight
80147         modifications.
80148         * lib/lbrkprop.h: New file, from GNU gettext.
80149
80150 2003-04-03  Bruno Haible  <bruno@clisp.org>
80151
80152         * modules/utf8-ucs4: New file.
80153         * modules/utf16-ucs4: New file.
80154         * modules/ucs4-utf8: New file.
80155         * modules/ucs4-utf16: New file.
80156         * MODULES.html.sh (func_all_modules): Add them.
80157
80158 2003-04-03  Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/utf-ucs4.m4: New file.
80161         * m4/ucs4-utf.m4: New file.
80162
80163 2003-04-03  Bruno Haible  <bruno@clisp.org>
80164
80165         * lib/utf8-ucs4.h: New file, from GNU gettext.
80166         * lib/utf16-ucs4.h: New file, from GNU gettext.
80167         * lib/ucs4-utf8.h: New file, from GNU gettext.
80168         * lib/ucs4-utf16.h: New file, from GNU gettext.
80169
80170 2003-04-02  Bruno Haible  <bruno@clisp.org>
80171
80172         * modules/binary-io: New file.
80173         * MODULES.html.sh (func_all_modules): Add it.
80174
80175 2003-04-02  Bruno Haible  <bruno@clisp.org>
80176
80177         * lib/binary-io.h: New file, from GNU gettext.
80178
80179 2003-04-01  Bruno Haible  <bruno@clisp.org>
80180
80181         * modules/pathname: New file.
80182         * MODULES.html.sh (func_all_modules): Add it.
80183
80184 2003-04-01  Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/pathname.h: New file, from GNU gettext.
80187         * lib/concatpath.c: New file, from GNU gettext.
80188
80189 2003-03-30  Bruno Haible  <bruno@clisp.org>
80190
80191         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80192
80193 2003-03-30  Bruno Haible  <bruno@clisp.org>
80194
80195         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80196         function chown() doesn't exist.
80197
80198 2003-03-28  Bruno Haible  <bruno@clisp.org>
80199
80200         * modules/copy-file: New file.
80201         * MODULES.html.sh (func_all_modules): Add it.
80202
80203 2003-03-28  Bruno Haible  <bruno@clisp.org>
80204
80205         * m4/copy-file.m4: New file.
80206
80207 2003-03-28  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/copy-file.h: New file, from GNU gettext.
80210         * lib/copy-file.c: New file, from GNU gettext.
80211
80212 2003-03-18  Jim Meyering  <jim@meyering.net>
80213
80214         * lib/quote.c (quote_n): Fix typo in comment.
80215
80216 2003-03-18  Bruno Haible  <bruno@clisp.org>
80217
80218         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80219         checking.
80220         * m4/onceonly_2_57.m4: Likewise.
80221
80222 2003-03-17  Bruno Haible  <bruno@clisp.org>
80223
80224         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80225         (m4_quote): Remove macro.
80226         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80227
80228 2003-03-14  Jim Meyering  <jim@meyering.net>
80229
80230         Merge changes from Coreutils.
80231         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80232         to be const, in order to avoid warnings.
80233         (obstack_room): Likewise.
80234         (obstack_empty_p): Likewise.
80235
80236 2003-03-14  Bruno Haible  <bruno@clisp.org>
80237
80238         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80239         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80240
80241 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80242
80243         Merge changes from Bison.
80244         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80245         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80246         when compiling Bison 1.875's `bitset bset = obstack_alloc
80247         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80248         * lib/hash.c: Include <stdbool.h> unconditionally.
80249
80250 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80251
80252         * m4/onceonly.m4 (m4_quote): New macro.
80253         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80254         Quote AC_FOREACH variable-expansions properly.
80255
80256 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80257
80258         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80259
80260 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80261
80262         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80263         Reported by Bruce Becker; see:
80264         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80265
80266 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80267             Bruno Haible  <bruno@clisp.org>
80268
80269         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80270         Reported by John Hughes, see
80271         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80272
80273 2003-02-20  Bruno Haible  <bruno@clisp.org>
80274
80275         * MODULES.html.sh (func_all_modules): Add poll.
80276
80277 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80278
80279         * modules/poll: New file.
80280
80281 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80282
80283         * lib/poll_.h: New file.
80284         * lib/poll.c: New file.
80285
80286 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80287
80288         * m4/poll.m4: New file.
80289
80290 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80291
80292         * modules/mathl: New file.
80293
80294 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80295
80296         * lib/mathl.h: New file.
80297         * lib/acosl.c: New file.
80298         * lib/asinl.c: New file.
80299         * lib/atanl.c: New file.
80300         * lib/ceill.c: New file.
80301         * lib/cosl.c: New file.
80302         * lib/expl.c: New file.
80303         * lib/floorl.c: New file.
80304         * lib/frexpl.c: New file.
80305         * lib/ldexpl.c: New file.
80306         * lib/logl.c: New file.
80307         * lib/sincosl.c: New file.
80308         * lib/sinl.c: New file.
80309         * lib/sqrtl.c: New file.
80310         * lib/tanl.c: New file.
80311         * lib/trigl.c: New file.
80312         * lib/trigl.h: New file.
80313
80314 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80315
80316         * m4/mathl.m4: New file.
80317
80318 2003-02-18  Bruno Haible  <bruno@clisp.org>
80319
80320         * MODULES.html.sh (func_all_modules): Add mathl.
80321
80322 2003-02-17  Bruno Haible  <bruno@clisp.org>
80323
80324         * modules/mkdtemp: New module.
80325         * MODULES.html.sh (func_all_modules): Add it.
80326
80327 2003-02-17  Bruno Haible  <bruno@clisp.org>
80328
80329         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80330
80331 2003-02-17  Bruno Haible  <bruno@clisp.org>
80332
80333         * lib/mkdtemp.h: New file, from GNU gettext.
80334         * lib/mkdtemp.c: New file, from GNU gettext.
80335
80336 2003-02-02  Jim Meyering  <jim@meyering.net>
80337
80338         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80339         e.g. glibc-2.2.93.
80340
80341 2003-01-31  Bruno Haible  <bruno@clisp.org>
80342
80343         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80344         'rpl_rename'.
80345         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80346         'rpl_strnlen'.
80347         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80348         'rpl_strtod'.
80349         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80350         'rpl_utime'.
80351
80352 2003-01-31  Bruno Haible  <bruno@clisp.org>
80353
80354         * lib/rename.c: #undef rename before defining rpl_rename.
80355         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80356
80357 2003-01-30  Bruno Haible  <bruno@clisp.org>
80358
80359         * modules/vasnprintf, modules/vasprintf: New modules.
80360         * MODULES.html.sh (func_all_modules): Add them.
80361
80362 2003-01-30  Bruno Haible  <bruno@clisp.org>
80363
80364         * m4/signed.m4: New file, from GNU gettext.
80365         * m4/longdouble.m4: New file, from GNU gettext.
80366         * m4/wchar_t.m4: New file, from GNU gettext.
80367         * m4/wint_t.m4: New file, from GNU gettext.
80368         * m4/vasnprintf.m4: New file.
80369         * m4/vasprintf.m4: New file.
80370
80371 2003-01-30  Bruno Haible  <bruno@clisp.org>
80372
80373         * lib/printf-args.h: New file, from GNU gettext.
80374         * lib/printf-args.c: New file, from GNU gettext.
80375         * lib/printf-parse.h: New file, from GNU gettext.
80376         * lib/printf-parse.c: New file, from GNU gettext.
80377         * lib/vasnprintf.h: New file, from GNU gettext.
80378         * lib/vasnprintf.c: New file, from GNU gettext.
80379         * lib/asnprintf.c: New file, from GNU gettext.
80380         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80381         * lib/vasprintf.c: New file, from GNU gettext.
80382         * lib/asprintf.c: New file, from GNU gettext.
80383
80384 2003-01-29  Bruno Haible  <bruno@clisp.org>
80385
80386         * modules/stpncpy: New module.
80387         * MODULES.html.sh (func_all_modules): Add it.
80388
80389 2003-01-29  Bruno Haible  <bruno@clisp.org>
80390
80391         * m4/stpncpy.m4: New file.
80392
80393 2003-01-29  Bruno Haible  <bruno@clisp.org>
80394
80395         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80396         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80397
80398 2003-01-28  Bruno Haible  <bruno@clisp.org>
80399
80400         * modules/c-ctype: New module.
80401         * MODULES.html.sh (func_all_modules): Add it.
80402
80403 2003-01-28  Bruno Haible  <bruno@clisp.org>
80404
80405         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80406         Paul Eggert.
80407         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80408         Paul Eggert.
80409
80410 2003-01-27  Bruno Haible  <bruno@clisp.org>
80411
80412         * modules/xsetenv: New module.
80413         * MODULES.html.sh (func_all_modules): Add it.
80414
80415 2003-01-27  Bruno Haible  <bruno@clisp.org>
80416
80417         * lib/xsetenv.h: New file, from GNU gettext.
80418         * lib/xsetenv.c: New file, from GNU gettext.
80419
80420 2003-01-23  Jim Meyering  <jim@meyering.net>
80421
80422         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80423         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80424
80425 2003-01-23  Bruno Haible  <bruno@clisp.org>
80426
80427         * modules/minmax: New module.
80428         * MODULES.html.sh (func_all_modules): Add it.
80429
80430 2003-01-23  Bruno Haible  <bruno@clisp.org>
80431
80432         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80433         Eggert.
80434
80435 2003-01-22  Bruno Haible  <bruno@clisp.org>
80436
80437         * modules/exit: New module.
80438         * MODULES.html.sh (func_all_modules): Add it.
80439
80440 2003-01-22  Bruno Haible  <bruno@clisp.org>
80441
80442         * lib/exit.h: New file, from GNU gettext.
80443
80444 2003-01-19  Bruno Haible  <bruno@clisp.org>
80445
80446         * gnulib-tool: Recognize option --extract-maintainer.
80447         (func_get_maintainer): New function.
80448         * modules/*: Add Maintainer entry.
80449
80450 2003-01-16  Jim Meyering  <jim@meyering.net>
80451
80452         * m4/regex.m4: The `regex' struct is both input and output.
80453         Initialize it before each use.  Patch by Tim Waugh.
80454
80455 2003-01-16  Bruno Haible  <bruno@clisp.org>
80456
80457         * MODULES.html.sh: Add a table of contents. Add the module name as
80458         leftmost column. Add hyperlinks.
80459
80460 2003-01-15  Bruno Haible  <bruno@clisp.org>
80461
80462         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80463
80464 2003-01-15  Bruno Haible  <bruno@clisp.org>
80465
80466         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80467         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80468         suffix.
80469
80470 2003-01-15  Bruno Haible  <bruno@clisp.org>
80471
80472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80473
80474 2003-01-15  Bruno Haible  <bruno@clisp.org>
80475
80476         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80477         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80478
80479 2003-01-14  Jim Meyering  <jim@meyering.net>
80480
80481         * lib/same.c (same_name): Tweak a comment.
80482
80483 2003-01-14  Bruno Haible  <bruno@clisp.org>
80484
80485         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80486         when a string comparison is sufficient.
80487
80488 2003-01-14  Bruno Haible  <bruno@clisp.org>
80489
80490         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80491         'unsigned int'.
80492
80493 2003-01-14  Bruno Haible  <bruno@clisp.org>
80494
80495         * lib/hash-pjw.c: Add comment about low quality of this function.
80496
80497 2003-01-13  Bruno Haible  <bruno@clisp.org>
80498
80499         * modules/stpcpy: Distribute lib/stpcpy.h.
80500         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80501
80502 2003-01-13  Bruno Haible  <bruno@clisp.org>
80503
80504         * modules/*: Add a description.
80505         * modules/strpbrk: Fix Makefile.am snippet.
80506         * modules/strtoimax: Fix dependencies.
80507         * modules/strtoumax: Likewise.
80508
80509 2003-01-13  Bruno Haible  <bruno@clisp.org>
80510
80511         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80512         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80513         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80514
80515 2003-01-13  Bruno Haible  <bruno@clisp.org>
80516
80517         * gnulib-tool (func_create_testdir): Store config/* files in the main
80518         directory.
80519         * config.rpath: Move to ...
80520         * config/config.rpath: ... here.
80521         * modules/gettext: Contains config/config.rpath, not config.rpath.
80522         * modules/iconv: Likewise.
80523
80524 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80525
80526         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80527         to avoid collisions with libcurses and libreadline.
80528
80529         * m4/getstr.m4: Remove.
80530         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80531
80532 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80533
80534         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80535         to avoid collisions with libcurses and libreadline.
80536
80537         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80538         * lib/getstr.h, getstr.c: Remove.
80539         * lib/getline.c: Include "getline.h", to check interface.
80540         Move body of old getstr.c here: this defines MIN_CHUNK and
80541         declares getdelim2, which is renamed from getstr.
80542         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80543
80544         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80545         All uses changed.
80546         * lib/linebuffer.h: Likewise.
80547         (readline): Remove backward-compatibility macro.
80548
80549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80550
80551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80552         to avoid collisions with libcurses and libreadline.
80553         * getstr: Remove.
80554         * MODULES.html.sh: Remove getstr.
80555         * modules/getline: Depend on unlocked-io, not getstr.
80556
80557 2003-01-12  Jim Meyering  <jim@meyering.net>
80558
80559         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80560
80561 2003-01-10  Bruno Haible  <bruno@clisp.org>
80562
80563         * modules/alloca: Change Makefile.am requirements. Simplify Include
80564         requirements. Add lib/alloca_.h to file list.
80565
80566 2003-01-10  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80569
80570 2003-01-10  Bruno Haible  <bruno@clisp.org>
80571
80572         * lib/alloca_.h: New file.
80573         * lib/getdate.y: Unconditionally include alloca.h.
80574         * lib/makepath.c: Likewise.
80575         * lib/setenv.c: Likewise.
80576         * lib/userspec.c: Likewise.
80577
80578 2003-01-09  Karl Berry  <karl@gnu.org>
80579
80580         * MODULES.html.sh: include `dirname $0` in PATH, to find
80581         gnulib-tool.
80582
80583 2003-01-09  Bruno Haible  <bruno@clisp.org>
80584
80585         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80586         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80587
80588 2003-01-09  Bruno Haible  <bruno@clisp.org>
80589
80590         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80591
80592 2003-01-09  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/stdbool.h.in: New file.
80595
80596 2003-01-09  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80599         * MODULES.html.sh: Likewise.
80600
80601 2003-01-08  Jim Meyering  <jim@meyering.net>
80602
80603         * lib/full-write.c: Undefine and define-away `const' after inclusion
80604         of errno.h, not before.  Suggestion from Bruno Haible.
80605
80606 2003-01-08  Bruno Haible  <bruno@clisp.org>
80607
80608         * modules/full-read: Depend on full-write.
80609
80610 2003-01-08  Bruno Haible  <bruno@clisp.org>
80611
80612         * lib/safe-read.c: Include specification header first, to ensure its
80613         selfcontainedness.
80614         * lib/full-write.c: Likewise.
80615
80616 2003-01-07  Jim Meyering  <jim@meyering.net>
80617
80618         * lib/full-write.c: Rework so that it may serve to define full_read,
80619         too.
80620         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80621
80622 2003-01-07  Bruno Haible  <bruno@clisp.org>
80623
80624         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80625         <inttypes.h>.
80626         * lib/xstrtol.h: Likewise.
80627         * lib/xstrtoimax.c: Likewise.
80628         * lib/xstrtoumax.c: Likewise.
80629         * lib/human.h: Likewise.
80630
80631         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80632         on systems that have <inttypes.h> but not <stdint.h>.
80633
80634 2003-01-07  Bruno Haible  <bruno@clisp.org>
80635
80636         * MODULES.html.sh: Add copyright notice.
80637         (missed_files): Omit CVS directory entries.
80638         (func_module): Make it work with sed-3.02.
80639         * MODULES.txt: Remove file.
80640
80641 2003-01-06  Jim Meyering  <jim@meyering.net>
80642
80643         * lib/version-etc.c: Update year in translatable copyright string.
80644
80645 2003-01-03  Karl Berry  <karl@gnu.org>
80646
80647         * config/config.{guess,sub}: update from prep.
80648
80649 2003-01-02  Karl Berry  <karl@gnu.org>
80650
80651         * doc/COPYING.DOC: belatedly updated to 1.2.
80652
80653 2003-01-01  Karl Berry  <karl@gnu.org>
80654
80655         * gnulib-tool (func_verify_module): report module name $module in
80656         error message, not $1.
80657         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80658         be created, only if it doesn't exist.
80659         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80660
80661 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80662
80663         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80664
80665 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80666
80667         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80668         memcmp if strcoll doesn't work.
80669
80670 2002-12-31  Bruno Haible  <bruno@clisp.org>
80671
80672         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80673         nonempty.
80674
80675 2002-12-31  Bruno Haible  <bruno@clisp.org>
80676
80677         * lib/memcoll.c (STRCOLL): New macro.
80678         (memcoll): Use it.
80679
80680 2002-12-31  Bruno Haible  <bruno@clisp.org>
80681
80682         * lib/localcharset.h: New file.
80683         * lib/localcharset.c: Include it.
80684         * lib/unicodeio.c: Likewise.
80685
80686 2002-12-31  Bruno Haible  <bruno@clisp.org>
80687
80688         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80689         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80690
80691 2002-12-31  Bruno Haible  <bruno@clisp.org>
80692
80693         * lib/getline.h: Include <stddef.h>, for size_t.
80694
80695         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80696         * lib/unicodeio.c: Don't include <stddef.h>.
80697
80698 2002-12-31  Bruno Haible  <bruno@clisp.org>
80699
80700         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80701         HAVE_TM_ZONE.
80702
80703 2002-12-24  Karl Berry  <karl@gnu.org>
80704
80705         * config/config.guess: update from prep.
80706
80707 2002-12-24  Bruno Haible  <bruno@clisp.org>
80708
80709         General infrasructure.
80710         * m4/README: Rewritten.
80711         * m4/onceonly.m4: New file.
80712         * m4/onceonly_2_57.m4: New file.
80713
80714         Module atexit.
80715         * m4/atexit.m4: New file.
80716
80717         Module strtod.
80718         * m4/strtod.m4: New file.
80719
80720         Module strtol.
80721         * m4/strtol.m4: New file.
80722
80723         Module strtoul.
80724         * m4/strtoul.m4: New file.
80725
80726         Module memchr.
80727         * m4/memchr.m4: New file.
80728
80729         Module memcmp.
80730         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80731         (jm_FUNC_MEMCMP): Invoke it.
80732
80733         Module memcpy.
80734         * m4/memcpy.m4: New file.
80735
80736         Module memmove.
80737         * m4/memmove.m4: New file.
80738
80739         Module memset.
80740         * m4/memset.m4: New file.
80741
80742         Module strcspn.
80743         * m4/strcspn.m4: New file.
80744
80745         Module strpbrk.
80746         * m4/strpbrk.m4: New file.
80747
80748         Module strstr.
80749         * m4/strstr.m4: New file.
80750
80751         Module strerror.
80752         * m4/strerror.m4: New file.
80753
80754         Module mktime.
80755         * m4/mktime.m4: Renamed from jm-mktime.m4.
80756         (gl_PREREQ_MKTIME): New macro.
80757         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80758
80759         Module malloc.
80760         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80761         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80762         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80763
80764         Module realloc.
80765         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80766         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80767         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80768
80769         Module strftime.
80770         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80771         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80772         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80773         gl_TM_GMTOFF.
80774         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80775
80776         Module xalloc.
80777         * m4/xalloc.m4: New file.
80778
80779         Module alloca.
80780         * m4/alloca.m4: New file.
80781
80782         Module putenv.
80783         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80784         (jm_FUNC_PUTENV): Invoke it.
80785
80786         Module setenv.
80787         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80788         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80789         when invoked twice.
80790         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80791         gt_FUNC_SETENV.
80792
80793         Module memrchr.
80794         * m4/memrchr.m4: New file.
80795
80796         Module stpcpy.
80797         * m4/stpcpy.m4: New file.
80798
80799         Module strcase.
80800         * m4/strcase.m4: New file.
80801
80802         Module strdup.
80803         * m4/strdup.m4: New file.
80804
80805         Module strnlen.
80806         * m4/strnlen.m4: New file.
80807
80808         Module strndup.
80809         * m4/strndup.m4: New file.
80810
80811         Module xstrtod.
80812         * m4/xstrtod.m4: New file.
80813
80814         Module xstrtol.
80815         * m4/xstrtol.m4: New file.
80816
80817         Module getdate.
80818         * m4/getdate.m4: New file.
80819
80820         Module unlocked-io.
80821         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80822         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80823         * m4/jm-glibc-io.m4n: Remove file.
80824
80825         Module long-options.
80826         * m4/long-options.m4: New file.
80827
80828         Module md5.
80829         * m4/md5.m4: New file.
80830
80831         Module sha.
80832         * m4/sha.m4: New file.
80833
80834         Module getstr.
80835         * m4/getstr.m4: New file.
80836
80837         Module getline.
80838         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80839         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80840         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80841         simply getline. Infoke gl_PREREQ_GETLINE.
80842
80843         Module obstack.
80844         * m4/obstack.m4: New file.
80845
80846         Module hash.
80847         * m4/hash.m4: New file.
80848
80849         Module readtokens.
80850         * m4/readtokens.m4: New file.
80851
80852         Module strverscmp.
80853         * m4/strverscmp.m4: New file.
80854
80855         Module stdbool.
80856         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80857         OSF/1.
80858
80859         Module strtoll.
80860         * m4/strtoll.m4: New file.
80861
80862         Module strtoull.
80863         * m4/strtoull.m4: New file.
80864
80865         Module strtoimax.
80866         * m4/strtoimax.m4: New file.
80867
80868         Module strtoumax.
80869         * m4/strtoumax.m4: New file.
80870
80871         Module xstrtoimax.
80872         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80873         jm_AC_PREREQ_XSTRTOIMAX.
80874         Moved the strtol prerequisites to strtol.m4.
80875         Moved the strtoll prerequisites to strtoll.m4.
80876         Moved the strtoimax prerequisites to strtoimax.m4.
80877
80878         Module xstrtoumax.
80879         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80880         jm_AC_PREREQ_XSTRTOUMAX.
80881         Moved the strtoul prerequisites to strtoul.m4.
80882         Moved the strtoull prerequisites to strtoull.m4.
80883         Moved the strtoumax prerequisites to strtoumax.m4.
80884
80885         Module chown.
80886         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80887         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80888
80889         Module dup2.
80890         * m4/dup2.m4: New file.
80891
80892         Module ftruncate.
80893         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80894         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80895
80896         Module getgroups.
80897         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80898         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80899
80900         Module gettimeofday.
80901         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80902         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80903         gl_PREREQ_GETTIMEOFDAY.
80904
80905         Module mkdir.
80906         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80907         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80908
80909         Module mkstemp.
80910         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80911         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80912         jm_AC_TYPE_UINTMAX_T.
80913         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80914
80915         Module stat.
80916         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80917         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80918
80919         Module lstat.
80920         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80921         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80922
80923         Module timespec.
80924         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80925         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80926         * m4/st_mtim.m4: Indentation.
80927
80928         Module nanosleep.
80929         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80930         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80931         gl_PREREQ_NANOSLEEP.
80932
80933         Module regex.
80934         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80935         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80936         (gl_REGEX): New macro.
80937
80938         Module rename.
80939         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80940         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80941
80942         Module rmdir.
80943         * m4/rmdir.m4: New file.
80944
80945         Module utime.
80946         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80947         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80948         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80949
80950         Module dirname.
80951         * m4/dirname.m4: New file.
80952
80953         Module getopt.
80954         * m4/getopt.m4: New file.
80955
80956         Module unistd-safer.
80957         * m4/unistd-safer.m4: New file.
80958
80959         Module fnmatch.
80960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80961         declaration.
80962         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80963         (gl_FUNC_FNMATCH_POSIX): New macro.
80964         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80965         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80966         simply fnmatch.
80967
80968         Module exclude.
80969         * m4/exclude.m4: New file.
80970
80971         Module human.
80972         * m4/human.m4: New file.
80973
80974         Module acl.
80975         * m4/acl.m4: Nop.
80976
80977         Module backupfile.
80978         * m4/backupfile.m4: New file.
80979         * m4/d-ino.m4: Indentation.
80980
80981         Module fsusage.
80982         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80983         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80984         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80985
80986         Module dirfd.
80987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80988         requirements.
80989
80990         Module euidaccess.
80991         * m4/euidaccess.m4: New file.
80992
80993         Module file-type.
80994         * m4/file-type.m4: New file.
80995
80996         Module fileblocks.
80997         * m4/fileblocks.m4: New file.
80998
80999         Module filemode.
81000         * m4/filemode.m4: New file.
81001
81002         Module isdir.
81003         * m4/isdir.m4: New file.
81004
81005         Module lchown.
81006         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81007         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81008
81009         Module makepath.
81010         * m4/makepath.m4: New file.
81011
81012         Module modechange.
81013         * m4/modechange.m4: New file.
81014
81015         Module mountlist.
81016         * m4/mountlist.m4: New file.
81017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81018         Indentation.
81019
81020         Module path-concat.
81021         * m4/path-concat.m4: New file.
81022
81023         Module pathmax.
81024         * m4/pathmax.m4: New file.
81025
81026         Module same.
81027         * m4/same.m4: New file.
81028
81029         Module save-cwd.
81030         * m4/save-cwd.m4: New file.
81031
81032         Module savedir.
81033         * m4/savedir.m4: New file.
81034
81035         Module xgetcwd.
81036         * m4/xgetcwd.m4: New file.
81037         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81038
81039         Module xreadlink.
81040         * m4/xreadlink.m4: New file.
81041
81042         Module safe-read.
81043         * m4/safe-read.m4: New file.
81044
81045         Module safe-write.
81046         * m4/safe-write.m4: New file.
81047
81048         Module closeout.
81049         * m4/closeout.m4: New file.
81050
81051         Module stdio-safer.
81052         * m4/stdio-safer.m4: New file.
81053
81054         Module getpass.
81055         * m4/getpass.m4: New file.
81056
81057         Module getugroups.
81058         * m4/getugroups.m4: New file.
81059
81060         Module group-member.
81061         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81062         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81063
81064         Module idcache.
81065         * m4/idcache.m4: New file.
81066
81067         Module userspec.
81068         * m4/userspec.m4: New file.
81069
81070         Module gettime.
81071         * m4/clock_time.m4: New file.
81072         * m4/gettime.m4: New file.
81073
81074         Module settime.
81075         * m4/settime.m4: New file.
81076
81077         Module posixtm.
81078         * m4/posixtm.m4: New file.
81079
81080         Module gethostname.
81081         * m4/gethostname.m4: New file.
81082
81083         Module canon-host.
81084         * m4/canon-host.m4: New file.
81085
81086         Module gettext.
81087         * m4/codeset.m4: New file, from gettext-0.11.5.
81088         * m4/gettext.m4: New file, from gettext-0.11.5.
81089         * m4/glibc21.m4: New file, from gettext-0.11.5.
81090         * m4/iconv.m4: New file, from gettext-0.11.5.
81091         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81092         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81093         * m4/inttypes.m4: New file, from gettext-0.11.5.
81094         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81095         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81096         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81097         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81098         * m4/lib-link.m4: New file, from gettext-0.11.5.
81099         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81100         * m4/progtest.m4: New file, from gettext-0.11.5.
81101         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81102         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81103         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81104
81105         Module localcharset.
81106         * m4/localcharset.m4: New file.
81107
81108         Module hard-locale.
81109         * m4/hard-locale.m4: New file.
81110
81111         Module mbswidth.
81112         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81113         onceonly macros.
81114         * m4/mbrtowc.m4: Add comment.
81115
81116         Module memcasecmp.
81117         * m4/memcasecmp.m4: New file.
81118
81119         Module memcoll.
81120         * m4/memcoll.m4: New file.
81121
81122         Module unicodeio.
81123         * m4/unicodeio.m4: New file.
81124
81125         Module rpmatch.
81126         * m4/rpmatch.m4: New file.
81127
81128         Module yesno.
81129         * m4/yesno.m4: New file.
81130
81131         Module exitfail.
81132         * m4/exitfail.m4: New file.
81133
81134         Module c-stack.
81135         * m4/c-stack.m4 (gl_C_STACK): New macro.
81136         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81137
81138         Module error.
81139         * m4/error.m4 (gl_ERROR): New macro.
81140         (jm_PREREQ_ERROR): Use onceonly macros.
81141
81142         Module fatal.
81143         * m4/fatal.m4: New file.
81144
81145         Module getloadavg.
81146         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81147         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81148
81149         Module getpagesize.
81150         * m4/getpagesize.m4: New file.
81151
81152         Module getusershell.
81153         * m4/getusershell.m4: New file.
81154
81155         Module physmem.
81156         * m4/physmem.m4: New file.
81157
81158         Module posixver.
81159         * m4/posixver.m4: New file.
81160
81161         Module quotearg.
81162         * m4/quotearg.m4: New file.
81163
81164         Module quote.
81165         * m4/quote.m4: New file.
81166
81167         Module readutmp.
81168         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81169
81170         Module sig2str.
81171         * m4/sig2str.m4: New file.
81172
81173         Other.
81174         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81175         ulonglong.m4.
81176         * m4/intmax_t.m4: New file.
81177         * m4/d-type.m4: Indentation.
81178         * m4/jm-macros.m4: Update.
81179         * m4/prereq.m4 (jm_PREREQ): Update.
81180         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81181         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81182         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81183         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81184         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81185         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81186         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81187         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81188         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81189         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81190         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81191         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81192         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81193         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81194         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81195         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81196         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81197         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81198         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81199
81200 2002-12-24  Bruno Haible  <bruno@clisp.org>
81201
81202         * MODULES.txt: Update according to m4/ changes.
81203
81204         Module gettext.
81205         * config.rpath: New file, from gettext-0.11.5.
81206
81207         * modules/*: New module descriptions.
81208         * gnulib-tool: New file.
81209         * MODULES.html.sh: New file.
81210
81211 2002-12-21  Karl Berry  <karl@gnu.org>
81212
81213         * doc/fdl.texi: update to version 1.2.
81214
81215 2002-12-19  Karl Berry  <karl@gnu.org>
81216
81217         * config/config.guess: update from prep.
81218
81219 2002-12-18  Bruno Haible  <bruno@clisp.org>
81220
81221         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81222         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81223
81224 2002-12-17  Bruno Haible  <bruno@clisp.org>
81225
81226         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81227         stdlib.h, string.h.
81228
81229 2002-12-17  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/canon-host.c (strdup): Remove unused declaration.
81232
81233         * lib/fsusage.c: Include full_read.h.
81234         (get_fs_usage): Use full_read instead of safe_read.
81235
81236         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81237
81238 2002-12-12  Karl Berry  <karl@gnu.org>
81239
81240         * config/config.guess: update from prep.
81241
81242 2002-12-11  Bruno Haible  <bruno@clisp.org>
81243
81244         * m4/setenv.m4: New file, from gettext-0.11.5.
81245
81246 2002-12-11  Bruno Haible  <bruno@clisp.org>
81247
81248         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81249         not unsetenv().
81250         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81251         modifications:
81252
81253         2002-12-11  Bruno Haible  <bruno@clisp.org>
81254
81255                 * setenv.c (alloca): Fall back to malloc.
81256                 (freea): New macro.
81257                 (setenv): Use freea() to free memory allocated with alloca().
81258
81259         2002-11-13  Bruno Haible  <bruno@clisp.org>
81260
81261                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81262                 function declarations.
81263                 * unsetenv.c (unsetenv): Likewise.
81264
81265         2002-03-04  Bruno Haible  <bruno@clisp.org>
81266
81267                 Portability to AIX 4.3.3.
81268                 * unsetenv.c: New file, extracted from setenv.c.
81269                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81270
81271         2001-12-20  Bruno Haible  <bruno@clisp.org>
81272
81273                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81274                 use malloc instead. For SunOS 4.
81275
81276         2001-12-11  Bruno Haible  <bruno@clisp.org>
81277
81278                 * setenv.c: Declare alloca.
81279                 (compar_fn_t): New typedef.
81280                 (KNOWN_VALUE, STORE_VALUE): Use it.
81281
81282         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81283         setenv.h.
81284
81285 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81286
81287         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81288         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81289         Choose values that are less likely to collide with system fnmatch
81290         options.
81291         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81292         defined (e.g., a pure POSIX system).
81293         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81294         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81295
81296 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81297
81298         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81299         a pain in practice to deal with generated m4 files.  This change
81300         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81301
81302         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81303         and jm-glibc-io.m4, as they are no longer a special case.
81304         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81305         kludge and the auto-generation stuff.  Check only whether the
81306         functions are declared, not whether they exist, since older hosts
81307         that don't declare the functions can't use the optimization anyway.
81308
81309 2002-12-06  Jim Meyering  <jim@meyering.net>
81310
81311         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81312
81313         Merge in changes from libc's misc/error.c, in preparation
81314         for the merge of gnulib's changes back into libc.
81315
81316         * lib/error.c (_): Define only if not already defined.
81317         Move definition to follow all #include directives.
81318         Include unlocked-io.h only if !_LIBC.
81319         [_LIBC]: Include <libio/libioP.h>.
81320         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81321         (fflush): Tweak definition to use INTUSE.
81322         (putc): Define.
81323
81324 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81325
81326         * lib/alloca.c [defined emacs]: Include "lisp.h".
81327         (xalloc_die) [defined emacs]: New macro.
81328         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81329         [! defined emacs]: Include <xalloc.h>.
81330         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81331         (pointer): Typedef to POINTER_TYPE *.
81332         (malloc): Remove decl; we now always use xmalloc.
81333         (alloca): Use old-style definition, since Emacs needs this.
81334         Check for arithmetic overflow when computing combined size.
81335
81336 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81337
81338         Do not generate unlocked-io.h automatically, since it's easier to
81339         maintain it by hand.
81340
81341         * lib/unlocked-io.h: New file, from GNU diffutils,
81342         but with proper copyright notice and attribution.
81343         * lib/gen-uio: Remove.
81344         * lib/Makefile.am: Add copyright notice.
81345         (libfetish_a_SOURCES): Add unlocked-io.h.
81346         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81347         (DISTCLEANFILES, io_functions): Remove macros.
81348         (EXTRA_DIST): Remove gen_uio.
81349         (unlocked-io.h): Remove rule.
81350
81351 2002-12-04  Jim Meyering  <jim@meyering.net>
81352
81353         Reflect the fact that stat.c and lstat.c are no longer generated.
81354         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81355         (DISTCLEANFILES): Likewise.
81356         (EXTRA_DIST): Likewise.
81357         (all_local): Don't depend on stat.c or lstat.c.
81358         (stat.c, lstat.c): Remove rules.
81359         (EXTRA_DIST): Remove xstat.in.
81360
81361         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81362         * lib/stat.c: New file.  Contents mostly from xstat.in.
81363         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81364         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81365
81366         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81367         too.
81368         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81369
81370 2002-12-03  Jim Meyering  <jim@meyering.net>
81371
81372         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81373         but not semantics, to minimize the differences between these two files.
81374         (safe_read): Change comment to mention SAFE_READ_ERROR.
81375
81376         * lib/safe-read.c (IS_EINTR): Define.
81377         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81378
81379 2002-12-02  Jim Meyering  <jim@meyering.net>
81380
81381         * lib/safe-read.c (EINTR): Define.
81382         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81383         (INT_MAX): Provide fallback.
81384         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81385
81386         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81387
81388 2002-12-02  Bruno Haible  <bruno@clisp.org>
81389
81390         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81391         Define, taken from safe-read.c.
81392         (INT_MAX): Provide fallback.
81393         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81394         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81395
81396         * lib/safe-read.c (EINTR): Remove definition.
81397         (safe_read): Don't use EINTR if it is absent.
81398
81399 2002-12-01  Jim Meyering  <jim@meyering.net>
81400
81401         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81402         zero.
81403         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81404
81405 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81406
81407         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81408         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81409         with `if (! (value < limit)) abort ();', for readability.
81410
81411 2002-11-26  Karl Berry  <karl@gnu.org>
81412
81413         * lib/strdup.c: copy from libc again, with jim's ok.
81414         * lib/.cppi-disable: re-add strdup.c
81415
81416 2002-11-25  Karl Berry  <karl@gnu.org>
81417
81418         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81419         instead of "strtol.c".
81420
81421 2002-11-25  Karl Berry  <karl@gnu.org>
81422
81423         * config/install-sh: update from automake for variable quoting, $0 in
81424         error msgs, etc.
81425
81426         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81427         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81428         entry.
81429
81430 2002-11-25  Jim Meyering  <jim@meyering.net>
81431
81432         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81433
81434 2002-11-24  Karl Berry  <karl@gnu.org>
81435
81436         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81437         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81438
81439 2002-11-24  Jim Meyering  <jim@meyering.net>
81440
81441         Update from coreutils:
81442
81443         * lib/mktime.c: Merge in changes from libc.
81444
81445         Avoid a link-time failure on some Linux systems.
81446         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81447         (otherwise).
81448         (__mon_yday): Declare with the STATIC attribute.
81449         (__mktime_internal): Likewise.
81450         Based on a report from Greg Schafer.
81451
81452 2002-11-23  Jim Meyering  <jim@meyering.net>
81453
81454         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81455         Use `unsigned', not `int', as type of index.
81456
81457         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81458
81459         * lib/fsusage.c: Remove unneeded parentheses around operands of
81460         `defined'.
81461
81462 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81465         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81466         so that we can be included first.
81467         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81468         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81469         No need to include stddef.h or sys/types.h any more.
81470         Surround local include files with "", not "<>".
81471         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81472         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81473         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81474         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81475         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81476         (ISPRINT): Remove; no longer needed now that we assume C89.
81477
81478         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81479         Preserve errno.
81480
81481         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81482         quotearg_char): Use SIZE_MAX rather than
81483         (size_t) -1 when we are talking about "infinity".
81484
81485         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81486
81487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81488
81489         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81490         hint that one should use `if (! x) abort ();' rather than `assert
81491         (x);', and anyway it's one less thing to worry about configuring.
81492         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81493         hash_rehash, hash_insert): Use abort rather than assert.
81494
81495 2002-11-22  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/safe-read.h: Assume C89. Add comments.
81498         (safe_read): Change return type to size_t.
81499         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81500         byte counts > SSIZE_MAX correctly.
81501         * lib/safe-write.h: New file.
81502         * lib/safe-write.c: New file.
81503         * lib/full-read.h: New file.
81504         * lib/full-read.c: New file.
81505         * lib/full-write.h: Assume C89. Add comments.
81506         * lib/full-write.c: Include safe-write.h.
81507         (full_write): Rewritten to use safe_write.
81508         Suggested by Jim Meyering and Paul Eggert.
81509
81510 2002-11-21  Jim Meyering  <jim@meyering.net>
81511
81512         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81513
81514         Merge in changes from the coreutils.
81515
81516         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81517         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81518         <stdint.h>.
81519         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81520         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81521         int.  Work more efficiently if X is the same width as uintmax_t.
81522         Do not compare X to -1, to avoid bogus compiler warning.
81523         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81524         Don't assume that f_frsize and f_bsize are the same type.
81525
81526         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81527         warning on FreeBSD.
81528
81529         * lib/makepath.c (make_path): Restore umask *before* creating the final
81530         component.
81531         (make_path): Minor reformatting.
81532
81533         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81534         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81535         HAVE_MALLOC/HAVE_REALLOC.
81536
81537         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81538         dummy ones.  At least on GNU/Linux systems, `auto' means something
81539         else.
81540         From Michael Stone.
81541
81542 2002-11-21  Bruno Haible  <bruno@clisp.org>
81543
81544         Remove case insensitive option matching.
81545         * lib/argmatch.h (argcasematch): Remove declaration.
81546         (ARGCASEMATCH): Remove macro.
81547         (__xargmatch_internal): Remove case_sensitive argument.
81548         (XARGMATCH): Update.
81549         (XARGCASEMATCH): Remove macro.
81550         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81551         case_sensitive argument.
81552         (argcasematch): Remove function.
81553         (__xargmatch_internal): Remove case_sensitive argument.
81554         (main): Use XARGMATCH instead of XARGCASEMATCH.
81555
81556         * lib/xmalloc.c: Change compile-time error message. Add comment about
81557         required autoconf version.
81558
81559 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81560
81561         Merge argmatch cleanups from Bison.  Assume C89.
81562
81563         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81564         Include stdlib.h, for EXIT_FAILURE.
81565         Always include <string.h>, since we assume C89.
81566         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81567         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81568         Include <stddef.h> instead, since it's all we need for size_t.
81569         (PARAMS): Remove.  All uses removed.
81570         (ARRAY_CARDINALITY): Do not bother to #undef.
81571         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81572         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81573         Remove unnecessary parentheses.
81574         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81575         Insert necessary parentheses.
81576         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81577         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81578
81579 2002-11-19  Bruno Haible  <bruno@clisp.org>
81580
81581         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81582         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81583
81584         * lib/mbswidth.h (PARAMS): Remove macro.
81585         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81586         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81587
81588         * lib/gcd.h (PARAMS): Remove macro.
81589         (gcd): Use ANSI C function declarations.
81590         * lib/gcd.c (gcd): Likewise.
81591
81592 2002-11-15  Bruno Haible  <bruno@clisp.org>
81593
81594         * lib/strcspn.c: Include <stddef.h>.
81595         (strcspn): Use ANSI C function declaration. Change return type to
81596         size_t. Use NULL.
81597         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81598         (strpbrk): Use NULL.
81599         * lib/strpbrk.h (PARAMS): Remove macro.
81600         (strpbrk): Use ANSI C function declaration.
81601         * lib/strstr.c: Don't include <sys/types.h>.
81602         * lib/strstr.h (PARAMS): Remove macro.
81603         (strstr): Use ANSI C function declarations.
81604
81605 2002-11-14  Karl Berry  <karl@gnu.org>
81606
81607         * config/mkinstalldirs: `do' on separate line, instead of
81608         `for var; do'.
81609
81610 2002-11-06  Bruno Haible  <bruno@clisp.org>
81611
81612         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81613         * lib/gcd.c (gcd): Likewise.
81614
81615 2002-11-05  Bruno Haible  <bruno@clisp.org>
81616
81617         * lib/gcd.h: New file, from gettext-0.11.5.
81618         * lib/gcd.c: New file, from gettext-0.11.5.
81619
81620 2002-11-05  Bruno Haible  <bruno@clisp.org>
81621
81622         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81623         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81624         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81625         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81626
81627         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81628         <libintl.h>.
81629         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81630         <libintl.h>.
81631
81632         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81633         * lib/human.c: Include gettext.h instead of <libintl.h>.
81634         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81635         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81636         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81637         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81638         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81639         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81640         (textdomain): Remove definition.
81641         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81642
81643         * lib/long-options.c: Remove include of <libintl.h> and definition of
81644         _.
81645         * lib/same.c: Remove include of <libintl.h> and definition of _.
81646
81647 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81648
81649         * lib/config.charset: A few additions for Solaris.
81650
81651 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81652
81653         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81654         * lib/localcharset.c (locale_charset): Declare as extern "C".
81655
81656 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81657
81658         * lib/config.charset: msdos in uk_UA uses CP1125.
81659
81660 2002-11-04  Bruno Haible  <bruno@clisp.org>
81661
81662         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81663         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81664         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81665         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81666         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81667
81668 2002-11-04  Bruno Haible  <bruno@clisp.org>
81669
81670         * lib/localcharset.c (locale_charset): Don't return an empty string.
81671
81672 2002-11-04  Bruno Haible  <bruno@clisp.org>
81673
81674         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81675         aliases.
81676
81677 2002-11-04  Bruno Haible  <bruno@clisp.org>
81678
81679         * lib/config.charset: Update for newest glibc. Add canonical names
81680         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81681
81682 2002-11-04  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/config.charset: Add support for NetBSD.
81685
81686 2002-11-04  Bruno Haible  <bruno@clisp.org>
81687
81688         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81689
81690 2002-11-01  Bruno Haible  <bruno@clisp.org>
81691
81692         * configure.in: Add AC_CONFIG_AUX_DIR call.
81693         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81694         test/Makefile.
81695         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81696
81697 2002-09-28  Karl Berry  <karl@gnu.org>
81698
81699         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81700         installed automake until the next release, since changes have been
81701         made.
81702
81703 2002-09-25  Karl Berry  <karl@gnu.org>
81704
81705         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81706         * lib/getopt*: copy from libc/posix.
81707         * lib/gettext.h: copy from gettext.
81708         * lib/.cppi-disable: add strdup.c, gettext.h.
81709
81710 2002-09-25  Karl Berry  <karl@gnu.org>
81711
81712         * config/srclist.txt: enable gettext.h check.
81713         * config/config.{guess,sub}: update from prep.
81714         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81715                 from automake 1.6.3.
81716         See srclist*.
81717
81718 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81719
81720         * regex.c (PATFETCH): Remove the translating fetch.
81721         (PATFETCH_RAW): Rename to PATFETCH.
81722         (set_image_of_range): New fun.
81723         (SET_RANGE_TABLE_WORK_AREA): Use it.
81724         (regex_compile): Don't translate the pattern chars so eagerly.
81725         Only do it when inserting an `exactn' bytecode or when handling
81726         a char-range.
81727         (mutually_exclusive_p): Avoid empty statement.
81728
81729 2002-07-06  Jim Meyering  <meyering@lucent.com>
81730
81731         * m4/README: Don't mention Makefile.am.in.
81732         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81733
81734 2002-07-01  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/c-stack.c: Include sys/time.h.
81737         From Volker Borchert.
81738
81739 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81740
81741         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81742
81743 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81744
81745         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81746         New macro.  Use it uniformly instead of
81747         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81748         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81749         reported by Vin Shelton.
81750
81751 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81752
81753         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81754         Do not assume SA_SIGINFO behavior.
81755         Bug reported by Jim Meyering on NetBSD 1.5.2.
81756
81757 2002-06-22  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81760         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81761
81762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81763         now that configure.ac uses AC_GNU_SOURCE.
81764         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81765         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81766
81767         Update to latest tools.  Suggestions from Paul Eggert.
81768         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81769         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81770         * m4/fnmatch.m4: Likewise.
81771         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81772         to AC_HEADER_STDBOOL
81773
81774 2002-06-22  Jim Meyering  <meyering@lucent.com>
81775
81776         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81777         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81778
81779 2002-06-22  Jim Meyering  <meyering@lucent.com>
81780
81781         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81782
81783         * lib/exitfail.c, exitfail.h: Likewise.
81784         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81785
81786         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81787         of fnmatch.h.
81788         (EXTRA_DIST): Add fnmatch_loop.c.
81789         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81790
81791         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81792         * lib/fnmatch.c: Update from diffutils-2.8.2.
81793         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81794         * lib/fnmatch.h: Remove file.
81795
81796 2002-06-21  Jim Meyering  <meyering@lucent.com>
81797
81798         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81799         * m4/mbrtowc.m4: Likewise.
81800
81801         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81802         * m4/mbswidth.m4: Reflect name change:
81803         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81805
81806         * m4/lib-link.m4: Update from gettext-0.11.2.
81807         * m4/gettext.m4: Likewise.
81808
81809         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81810         From Alfred M. Szmidt.
81811
81812 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81813
81814         * lib/file-type.h: Report an error if neither S_ISREG nor
81815         S_IFREG is defined, instead of using a test specific to glibc
81816         2.2.  This should be safe, since POSIX requires S_ISREG and
81817         Unix Version 7 had S_IFREG.  We don't need to check for
81818         <sys/types.h> since we don't use any symbols that it defines.
81819
81820 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81821
81822         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81823         $@-t, so that each temporary file name is unique and valid in the first
81824         8 characters, for operation under DOS.
81825
81826 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81827
81828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81829
81830 2002-06-15  Jim Meyering  <meyering@lucent.com>
81831
81832         Work even with DJGPP 2.03, which lacks support for symlinks.
81833         From Richard Dawe.
81834         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81835         is defined.
81836         * lib/lchown.c (S_ISLNK): Likewise.
81837
81838 2002-06-15  Jim Meyering  <meyering@lucent.com>
81839
81840         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81841         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81842         have been included before this file.
81843
81844 2002-06-14  Jim Meyering  <meyering@lucent.com>
81845
81846         * lib/file-type.h: Use the version from diffutils-2.8.2.
81847         * lib/file-type.c: Likewise.
81848
81849 2002-06-07  Jim Meyering  <meyering@lucent.com>
81850
81851         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81852         They're needed at least for NetBSD 1.5.2.
81853         ($statxfs_includes): Include those same headers.
81854         ($statxfs_includes): Include sys/vfs.h if available.
81855         ($statxfs_includes): Likewise for sys/statvfs.h.
81856         Check for the following members in both structs statfs and statvfs:
81857         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81858
81859 2002-06-01  Jim Meyering  <meyering@lucent.com>
81860
81861         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81862         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81863
81864 2002-05-28  Jim Meyering  <meyering@lucent.com>
81865
81866         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81867         Reported by Volker Borchert.
81868
81869 2002-05-27  Jim Meyering  <meyering@lucent.com>
81870
81871         Fix a problem seen only on nonconforming systems whereby ls.c's
81872         use of localtime, and then of gettimeofday would cause trouble:
81873         the localtime call used to initialize rpl_gettimeofday's save
81874         mechanism would clobber ls's current local time information so
81875         that in any long listing the first file would always be listed
81876         with date 1970-01-01.  Analysis by Volker Borchert.
81877
81878         * lib/gettimeofday.c (localtime): Undefine.
81879         (rpl_localtime): New function.
81880
81881 2002-05-27  Jim Meyering  <meyering@lucent.com>
81882
81883         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81884         localtime.
81885
81886         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81887         use the replacement function; it wouldn't resolve at link time.
81888         Reported by Volker Borchert.
81889
81890 2002-05-22  Jim Meyering  <meyering@lucent.com>
81891
81892         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81893         file-type.h.
81894         * lib/file-type.h: New file.
81895         * lib/file-type.c (file_type): New file/function.  Extracted from
81896         diffutils.
81897
81898 2002-04-30  Jim Meyering  <meyering@lucent.com>
81899
81900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81901
81902 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81903
81904         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81905
81906 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81907
81908         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81909         Do not check for alloca.h (no longer used) or stdbool.h (was never
81910         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81911
81912 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81913
81914         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81915
81916 2002-04-29  Jim Meyering  <meyering@lucent.com>
81917
81918         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81919         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81920         Use AC_FUNC_STRNLEN here instead.
81921
81922         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81923         With autoconf-2.53a, it's part of AC_PROG_CC.
81924
81925 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81926
81927         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81928         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81929
81930 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81931
81932         * lib/sig2str.h, lib/sig2str.c: New files.
81933         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81934
81935 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81936
81937         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81938         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81939         of 127, since 64 is the largest conceivable number for ancient
81940         nonstandard hosts.
81941         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81942
81943 2002-04-28  Jim Meyering  <meyering@lucent.com>
81944
81945         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81946
81947 2002-04-24  Jim Meyering  <meyering@lucent.com>
81948
81949         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81950         (jm_PREREQ): Use it.
81951
81952         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81953         mach/mach.h fcntl.h.
81954         Check for this function: setlocale.
81955
81956 2002-04-24  Jim Meyering  <meyering@lucent.com>
81957
81958         * lib/gettext.h: New file, from Gettext.
81959         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81960         (libfetish_a_SOURCES): Add gettext.h.
81961
81962 2002-04-16  Jim Meyering  <meyering@lucent.com>
81963
81964         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81965         ut_pid, ut_id, ut_exit.
81966
81967 2002-04-16  Jim Meyering  <meyering@lucent.com>
81968
81969         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81970         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81971         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81972
81973 2002-04-12  Jim Meyering  <meyering@lucent.com>
81974
81975         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81976         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81977         existence of the getmntinfo function.  Needed for Darwin 5.3.
81978
81979         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81980         This is necessary at least on Darwin 5.3.
81981
81982         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81983         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81984         strnlen.o in the library, and that makes some versions of ranlib
81985         object.
81986
81987 2002-04-12  Jim Meyering  <meyering@lucent.com>
81988
81989         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81990
81991 2002-04-09  Jim Meyering  <meyering@lucent.com>
81992
81993         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81994         to be more precise.  Rather than saying we're checking whether the
81995         function `works', say what we're testing.
81996         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81997         Reported by Bruno Haible.
81998
81999 2002-03-10  Jim Meyering  <meyering@lucent.com>
82000
82001         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82002         Suggestion from Santiago Vila.
82003
82004 2002-03-08  Jim Meyering  <meyering@lucent.com>
82005
82006         * lib/rename.c: Mention that this wrapper is needed also on
82007         mips-dec-ultrix4.4 systems.
82008
82009 2002-03-02  Jim Meyering  <meyering@lucent.com>
82010
82011         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82012         not HAVE_CLOCK_SETTIME.
82013
82014 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82015
82016         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82017         Check for clock_settime.
82018
82019 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82020
82021         * lib/nanosleep.h: Rename to....
82022         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82023
82024         * lib/gettime.c: New file.
82025         * lib/settime.c: New file.
82026         * lib/stime.c: Remove.
82027
82028         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82029         timespec.h.  Remove nanosleep.h.
82030
82031 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82032
82033         * m4/acl.m4: New file.
82034         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82035         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82036
82037 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82038
82039         * lib/acl.c, lib/acl.h: New files.
82040         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82041
82042 2002-02-24  Jim Meyering  <meyering@lucent.com>
82043
82044         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82045         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82046         cause trouble.  Reported by Nelson Beebe.
82047
82048 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82049
82050         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82051         compilers that don't know that xalloc_die never returns.
82052
82053 2002-02-20  Jim Meyering  <meyering@lucent.com>
82054
82055         * lib/getdate.c: Regenerate using bison-1.33.
82056
82057 2002-02-17  Jim Meyering  <meyering@lucent.com>
82058
82059         * config/config.guess (main): Don't use `head -1'; it's no longer
82060         portable. Use `sed 1q' instead.
82061
82062 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82063
82064         * m4/codeset.m4: Upgrade to gettext-0.11.
82065         * m4/gettext.m4: Upgrade to gettext-0.11.
82066         * m4/glibc21.m4: Upgrade to gettext-0.11.
82067         * m4/iconv.m4: Upgrade to gettext-0.11.
82068         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82069         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82070         * m4/lib-ld.m4: New file, from gettext-0.11.
82071         * m4/lib-link.m4: New file, from gettext-0.11.
82072         * m4/lib-prefix.m4: New file, from gettext-0.11.
82073         * m4/progtest.m4: Upgrade to gettext-0.11.
82074
82075 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82076
82077         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82078         (jm_PREREQ): Use it.
82079
82080 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82081
82082         * lib/posixver.c, lib/posixver.h: New files.
82083         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82084
82085 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82086             Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82089         (fwrite_success_callback): New declaration.
82090         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82091         print_unicode_char. Call failure callback instead of error.
82092         (fwrite_success_callback): New function.
82093         (exit_failure_callback): New function.
82094         (fallback_failure_callback): New function.
82095         (print_unicode_char): Call unicode_to_mb.
82096
82097 2002-01-26  Jim Meyering  <meyering@lucent.com>
82098
82099         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82100         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82101
82102 2002-01-26  Jim Meyering  <meyering@lucent.com>
82103
82104         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82105
82106 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82107
82108         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82109
82110 2002-01-22  Jim Meyering  <meyering@lucent.com>
82111
82112         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82113         Otherwise, some versions of automake would omit the rule that makes
82114         Makefile from Makefile.in.
82115
82116 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82117
82118         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82119         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82120         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82121         (memcoll): Set errno to zero if there is no error.
82122
82123         * lib/quotearg.c (quotearg_buffer_restyled):
82124         Fix bug with quoting buffers containing NUL when backslashing escapes.
82125         This bug was exposed by the other changes in this patch.
82126         (quotearg_n_options): New arg ARGSIZE.
82127         All callers changed.
82128         (quoting_options_from_style): New function.
82129         (quotearg_n_style): Use it.
82130         (quotearg_n_style_mem): New function.
82131
82132         * lib/quotearg.h (quotearg_n_style_mem): New function.
82133
82134 2002-01-19  Jim Meyering  <meyering@lucent.com>
82135
82136         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82137         Remove useless quotes: DF_PROG="df".
82138         * m4/strnlen.m4: New file.
82139
82140 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82141
82142         * lib/backupfile.c (ISDIGIT): Comment fix.
82143         * lib/getdate.y (ISDIGIT): Likewise.
82144         * lib/posixtm.c (ISDIGIT, year): Likewise.
82145         * lib/strverscmp.c (ISDIGIT): Likewise.
82146         * lib/userspec.c (ISDIGIT): Likewise.
82147
82148 2002-01-16  Jim Meyering  <meyering@lucent.com>
82149
82150         * lib/getdate.y: Add three semicolons, each just before a closing
82151         brace. Bison (as of version 1.31) no longer papers over that mistake.
82152
82153 2002-01-05  Jim Meyering  <meyering@lucent.com>
82154
82155         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82156
82157 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82158
82159         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82160         not silently exit merely because the output buffer happens to
82161         have nothing pending.
82162
82163 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82164
82165         See the big note in ../ChangeLog.
82166         * lib/human.c (suffixes): Prefer K to k for 1024.
82167         (generate_suffix_backwards): New function.
82168         (human_readable_inexact): Use it.
82169         * lib/xstrtol.c (__xstrtol): If there is no number but there
82170         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82171         Accept 'K' as well as 'k'.
82172
82173 2001-12-15  Jim Meyering  <meyering@lucent.com>
82174
82175         * lib/regex.h (__restrict_arr): Update from libc.
82176
82177         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82178         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82179         (STREQ): Define.
82180
82181 2001-12-14  Jim Meyering  <meyering@lucent.com>
82182
82183         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82184         Suggestion from Bruno Haible.
82185
82186 2001-12-10  Jim Meyering  <meyering@lucent.com>
82187
82188         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82189         xrealloc, Instead, include "xalloc.h".
82190         (initbuffer): Don't cast xmalloc return value to char*.
82191         (readline): Reword comment.
82192         Don't cast xrealloc return value to char*
82193         Return NULL, not 0.
82194
82195 2001-12-09  Jim Meyering  <meyering@lucent.com>
82196
82197         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82198         about `signed and unsigned type in conditional expression'.
82199         * lib/posixtm.c (posix_time_parse): Likewise.
82200
82201         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82202
82203         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82204         to avoid a pedantic warning.
82205
82206         * lib/getstr.c: Don't include assert.h.
82207         (getstr): Remove warning-evoking assertions.
82208         Return -1 if offset parameter is out of bounds.
82209         Change the type of a local from int to size_t.
82210
82211         * lib/strftime.c (my_strftime_localtime_r): Include this function
82212         definition in the `#if ! HAVE_TM_GMTOFF' block.
82213
82214         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82215         Include xalloc.h instead.
82216
82217 2001-12-02  Jim Meyering  <meyering@lucent.com>
82218
82219         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82220         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82221         included.
82222
82223         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82224         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82225
82226 2001-11-30  Akim Demaille  <akim@epita.fr>
82227
82228         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82229         before being defined.
82230
82231 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82232
82233         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82234         First arg is int, not unsigned.
82235         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82236         (SIZE_MAX, UINT_MAX): New macros.
82237         (quotearg_n_options): Abort if N is negative.
82238         Avoid overflow check on hosts where size_t is 64 bits and int
82239         is 32 bits, as overflow is impossible there.
82240         Fix off-by-one typo that caused unnecessary reallocation.
82241
82242 2001-11-27  Jim Meyering  <meyering@lucent.com>
82243
82244         * lib/tempname.c: Merge with version from libc.
82245         * lib/regex.c: Likewise.
82246
82247         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82248         systems for which STDC_HEADERS is 0, it was not included, resulting in
82249         a warning about an integer-to-pointer conversion problem with getenv.
82250         Reported by Volker Borchert.
82251
82252 2001-11-26  Jim Meyering  <meyering@lucent.com>
82253
82254         * lib/gtod.h: Remove file.
82255         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82256         * lib/gettimeofday.c: Don't include gtod.h.
82257         (GTOD_init): Remove function.
82258         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82259         Suggestion from Volker Borchert.
82260
82261 2001-11-23  Jim Meyering  <meyering@lucent.com>
82262
82263         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82264         it.
82265         * lib/hash.c (struct hash_table): Define it here instead.
82266
82267 2001-11-22  Jim Meyering  <meyering@lucent.com>
82268
82269         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82270
82271 2001-11-20  Jim Meyering  <meyering@lucent.com>
82272
82273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82274         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82275
82276 2001-11-19  Jim Meyering  <meyering@lucent.com>
82277
82278         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82279         directory.  Use "conftestXXXXXX" as the template.
82280         Suggestion from Paul Eggert.
82281
82282         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82283         immediately, so the test doesn't mistakenly hit the max-open-files
82284         limit.
82285
82286 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82287
82288         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82289         (TEMPORARIES): New macro.
82290         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82291         removes an artificial limitation (e.g. HP-UX 10.20, where
82292         TMP_MAX is 17576).
82293
82294 2001-11-18  Jim Meyering  <meyering@lucent.com>
82295
82296         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82297
82298 2001-11-18  Jim Meyering  <meyering@lucent.com>
82299
82300         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82301         on SunOS 4.
82302
82303         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82304         files will be created before anything else.
82305
82306 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82307
82308         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82309         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82310
82311 2001-11-17  Jim Meyering  <meyering@lucent.com>
82312
82313         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82314         Prompted by a report from Bob Proulx.
82315
82316         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82317         Instead, require UTILS_FUNC_MKSTEMP.
82318
82319 2001-11-17  Jim Meyering  <meyering@lucent.com>
82320
82321         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82322         Now, that's done as part of AC_FUNC_STRTOD.
82323
82324 2001-11-17  Jim Meyering  <meyering@lucent.com>
82325
82326         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82327         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82328         rather than group writable.  Patch by Juan F. Codagnone.
82329
82330         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82331         xrealloc, Instead, include "xalloc.h".
82332
82333         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82334         Remove explicit declarations of xmalloc, xrealloc,
82335         and xstrdup.  Instead, include "xalloc.h".
82336
82337         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82338         unlocked-io.h.
82339         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82340         Likewise.
82341         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82342
82343         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82344         Reported by Padraig Brady.
82345
82346         * lib/mkstemp.c: #undef mkstemp.
82347         Include config.h.
82348         (rpl_mkstemp): Rename from mkstemp.
82349         Protoize.
82350
82351 2001-11-16  Jim Meyering  <meyering@lucent.com>
82352
82353         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82354         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82355         determine the amount of total physical memory, use pstat_getstatic.
82356         HPUX-11 doesn't define _SC_PHYS_PAGES.
82357         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82358         If sysconf couldn't be used to determine the amount of available
82359         physical memory, use both pstat_getstatic and pstat_getdynamic.
82360         Based on a patch from Bob Proulx.
82361
82362 2001-11-10  Jim Meyering  <meyering@lucent.com>
82363
82364         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82365         (jm_PREREQ): Use it.
82366
82367 2001-11-09  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/jm-macros.m4: Require autoconf-2.52f.
82370         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82371         Use these AC_-prefixed names, not the AM_-prefixed ones.
82372
82373         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82374
82375 2001-11-05  Jim Meyering  <meyering@lucent.com>
82376
82377         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82378
82379 2001-11-04  Jim Meyering  <meyering@lucent.com>
82380
82381         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82382         $DEFS.
82383
82384 2001-11-03  Jim Meyering  <meyering@lucent.com>
82385
82386         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82387         of AC_DEFUN.
82388
82389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82390         know the name of the variable in the macro definition.
82391
82392 2001-11-03  Jim Meyering  <meyering@lucent.com>
82393
82394         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82395         in argmatch_to_argument call.
82396
82397         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82398         argument.
82399
82400         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82401         e.g., a fault due to an attempt to free a NULL pointer.
82402
82403 2001-11-01  Jim Meyering  <meyering@lucent.com>
82404
82405         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82406         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82407
82408 2001-11-01  Jim Meyering  <meyering@lucent.com>
82409
82410         * lib/dirfd.c, lib/dirfd.h: New files.
82411         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82412
82413         * lib/hash.c (hash_print) [TESTING]: Clean up.
82414
82415 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82416
82417         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82418         to avoid a warning if -Wall.
82419
82420 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82421
82422         * README: New file
82423         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82424         (per RMS's instructions, this is now the canonical source)
82425         * lgpl/, gpl/: New directories.
82426
82427 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82428
82429         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82430
82431 2001-10-21  Jim Meyering  <meyering@lucent.com>
82432
82433         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82434         this code would end up calling gettext even in packages built
82435         with --disable-nls.
82436         * lib/getopt.c (_): Likewise.
82437         * lib/regex.c (_): Likewise.
82438
82439 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82440
82441         * m4/error.m4 (jm_PREREQ_ERROR):
82442         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82443         AC_FUNC_STRERROR_R does that.
82444         Check for strerror declaration.
82445
82446         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82447         are supposed to have them these days.
82448         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82449         Merge changes from latest Autoconf CVS.
82450         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82451         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82452         POSIX decided to standardize on the int flavor of strerror_r.
82453
82454 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82455
82456         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82457         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82458         Use strerror_r that is only a macro, even if it is not a function.
82459         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82460         (private_strerror): Use prototypes, not old-style function definition.
82461         (print_errno_message): New function.
82462         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82463         char*-flavored one.
82464         (error_tail, error, error_at_line): Use it.
82465
82466 2001-10-11  Jim Meyering  <meyering@lucent.com>
82467
82468         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82469         and quote_n (1, ... to avoid clobbering a buffer.
82470
82471 2001-10-05  Jim Meyering  <meyering@lucent.com>
82472
82473         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82474         hash-pjw.h.
82475         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82476         * lib/hash-pjw.h: New file.
82477
82478 2001-09-30  Jim Meyering  <meyering@lucent.com>
82479
82480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82481         `struct fsstat' has the `f_fstypename' member.
82482         Use that to define FS_TYPE, which is now used to make
82483         the getfsstat link test tighter.
82484
82485 2001-09-30  Jim Meyering  <meyering@lucent.com>
82486
82487         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82488         Include <sys/ucred.h>, for Apple Darwin.
82489         Include sys/mount.h and sys/fs_types.h only if available.
82490         (FS_TYPE): Define.
82491         (read_filesystem_list): Use FS_TYPE.
82492
82493 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82494
82495         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82496         a boolean context.
82497
82498 2001-09-29  Jim Meyering  <meyering@lucent.com>
82499
82500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82501         [one-argument getmntent function]): Include stdio.h before mntent.h.
82502         SunOS 4.1.x needs it for the declaration of `FILE'.
82503         Patch by Volker Borchert.
82504
82505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82506         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82507         sys/fs_types.h, and make the link-test for getfsstat guard #include
82508         directives with appropriate #if HAVE_*_H tests so that we can
82509         detect getfsstat on Apple Darwin1.3.7 systems.
82510         Reported by Nelson Beebe.
82511         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82512
82513 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82514
82515         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82516         #defines strtoimax.  Also treat the other strto* functions
82517         like strtoimax.
82518
82519         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82520         Check for strtoul and strtoumax,
82521         as those declarations are made even in the signed case.
82522         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82523         Likewise, for strtol and strtoimax.
82524
82525 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82526
82527         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82528         #defines strtoimax.  Also treat the other strto* functions
82529         like strtoimax.
82530
82531         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82532         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82533         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82534
82535 2001-09-26  Jim Meyering  <meyering@lucent.com>
82536
82537         Most macros in unlocked-io.h had the wrong number of arguments.
82538         * lib/gen-uio: New script.
82539         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82540         * lib/unlocked-io.hin: Remove file.
82541         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82542         rather than trying to embed it here.
82543         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82544         Reported by Padraig Brady.
82545
82546 2001-09-25  Volker Borchert  <bt@teknon.de>
82547
82548         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82549         `result'.
82550
82551 2001-09-24  Jim Meyering  <meyering@lucent.com>
82552
82553         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82554
82555 2001-09-23  Jim Meyering  <meyering@lucent.com>
82556
82557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82558         instead of the mere test for existence of mntent.h.  The latter
82559         would get a false-positive on AIX 3.4 systems.
82560         In the outer getmntent if-block, don't die if neither of the getmntent
82561         tests succeeds.  Instead, just fall through and continue with the
82562         remaining tests.
82563
82564 2001-09-23  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/mountlist.c: Remove useless parentheses in #if directives.
82567         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82568         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82569
82570 2001-09-22  Jim Meyering  <meyering@lucent.com>
82571
82572         * m4/gettext.m4: New file.  From gettext.
82573         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82574         * m4/progtest.m4: Likewise
82575         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82576         * m4/glibc21.m4: Likewise.
82577
82578         * m4/libintl.m4: Remove.  No longer used.
82579
82580 2001-09-22  Jim Meyering  <meyering@lucent.com>
82581
82582         * lib/localcharset.c: Update from latest gettext.
82583         * lib/config.charset: Likewise.
82584
82585 2001-09-20  Jim Meyering  <meyering@lucent.com>
82586
82587         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82588         strtoimax.
82589         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82590         strtoumax.
82591
82592 2001-09-20  Jim Meyering  <meyering@lucent.com>
82593
82594         * lib/xstrtol.c (strtoimax): Guard declaration with
82595         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82596         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82597         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82598         (strtoumax): Likewise, for completeness (it wasn't necessary).
82599
82600 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82601
82602         * lib/strtoimax.c (HAVE_LONG_LONG):
82603         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82604         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82605         to work around bug in IBM C compiler.
82606
82607 2001-09-17  Jim Meyering  <meyering@lucent.com>
82608
82609         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82610         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82611         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82612         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82613         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82614         whenever the right hand side need not be expanded by the shell.
82615
82616 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82617
82618         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82619         library.  It's not correct, as some older glibcs are buggy.
82620         fnmatch wasn't fixed until glibc 2.2.
82621
82622         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82623         special shell magic here.
82624
82625 2001-09-16  Jim Meyering  <meyering@lucent.com>
82626
82627         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82628         * m4/jm-macros.m4: Require it.
82629
82630 2001-09-16  Jim Meyering  <meyering@lucent.com>
82631
82632         * lib/mkdir.c: New file.
82633
82634 2001-09-15  Jim Meyering  <meyering@lucent.com>
82635
82636         * m4/jm-macros.m4: Check for help2man.
82637
82638 2001-09-11  Jim Meyering  <meyering@lucent.com>
82639
82640         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82641         The body, by Paul Eggert, was moved here from configure.in.
82642         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82643
82644 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82645
82646         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82647         (jm_PREREQ): Use it.
82648
82649 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82650
82651         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82652         Use ssize_t, not int, to store result of readlink.
82653         Check for ssize_t overflow as well as size_t overflow,
82654         as POSIX says the result of readlink is implementation-defined
82655         when ssize_t overflows.
82656         Remove unnecessary cast to char*.
82657         Use free+malloc instead of realloc, as the storage doesn't need
82658         to be preserved and it's clearer and can be more efficient that way.
82659         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82660         * lib/xreadlink.h (xreadlink): Update prototype.
82661
82662 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82663
82664         * lib/xgetcwd.c: Revert some of the previous change; intead,
82665         fix the HAVE_GETCWD_NULL code to behave more like the
82666         !HAVE_GETCWD_NULL code used to.
82667
82668         Include "xalloc.h".
82669         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82670         invoke xalloc_die.
82671
82672 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82673
82674         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82675         sys/param.h, as pathmax.h includes them.
82676
82677 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82678
82679         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82680         (jm_PREREQ_XGETCWD): New macro.
82681
82682         * m4/getcwd.m4: New file.
82683
82684 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82685
82686         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82687         like the HAVE_GETCWD_NULL code.
82688         Include pathmax.h if not HAVE_GETCWD.
82689         Do not include xalloc.h.
82690         (INITIAL_BUFFER_SIZE): New symbol.
82691         Do not use xmalloc / xrealloc, since the caller is responsible for
82692         handling errors.  Preserve errno around `free' during failure.
82693         Do not overrun buffer when using getwd.
82694
82695 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82696
82697         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82698         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82699         getcwd (NULL, 0).
82700
82701 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82702
82703         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82704         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82705         spotted by Jim Meyering.
82706
82707 2001-09-03  Jim Meyering  <meyering@lucent.com>
82708
82709         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82710         failure.
82711
82712 2001-09-02  Jim Meyering  <meyering@lucent.com>
82713
82714         * lib/error.c: Update from GNU libc.
82715
82716 2001-09-01  Jim Meyering  <meyering@lucent.com>
82717
82718         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82719         Used by df.
82720
82721 2001-09-01  Jim Meyering  <meyering@lucent.com>
82722
82723         * lib/xreadlink.c: New file.
82724         * lib/xreadlink.h: New file.
82725         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82726         xreadlink.h.
82727
82728         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82729         doesn't conflict with sparc Solaris 7's definition in
82730         /usr/include/sys/int_types.h.
82731
82732         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82733         files.
82734         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82735         and strncasecmp as r-values.  Unixware didn't have declarations.
82736
82737 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82738
82739         * lib/xstrtol.h: Add copyright notice.
82740         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82741         LONGINT_INVALID_SUFFIX_CHAR.
82742
82743 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82744
82745         * lib/xstrtol.c (strtoimax): New decl.
82746
82747 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82748
82749         * lib/xgetcwd.c: Don't include pathmax.h.
82750         Include stdlib.h and unistd.h if available.
82751         Include xalloc.h.
82752         (xmalloc, xstrdup, free): Remove decls.
82753         (xgetcwd): Don't assume sizes fit in unsigned.
82754         Check for overflow when computing sizes.
82755         Simplify reallocation code.
82756
82757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82758
82759         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82760         a directory's st_size can have an arbitrary value, so the old
82761         usage could waste an arbitrary amount of memory.  All uses
82762         changed.
82763         * lib/savedir.h: Update prototype.
82764
82765 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82766
82767         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82768
82769         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82770         old strtoimax.c.
82771
82772         Also, make the following further changes to make this file's
82773         configuration more similar to that of strtol.c:
82774         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82775         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82776         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82777         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82778         changed to signed values.
82779
82780         And make the following changes as well:
82781         Fix copyright notice, as 1999 was missing.
82782         (verify): New macro.
82783         (strtoimax): Check sizes at compile-time, not run-time.
82784         Prefer strtol to strtoll if both work.
82785         (main): Remove; it was not that useful and was a pain to maintain.
82786
82787         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82788
82789 2001-08-31  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82792         Use an initial, malloc'd, buffer of length 128 rather than
82793         a statically allocated one of length 1024.
82794
82795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82796
82797         Simplify code, partly by assuming autoconf 2.52 semantics.
82798
82799         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82800
82801         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82802         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82803         All uses removed.
82804         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82805         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82806         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82807         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82808         jm_AC_HEADER_INTTYPES_H.
82809         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82810
82811         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82812
82813         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82814         Quote first arg of AC_DEFUN.
82815         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82816         since they are needed to parse the include file even if we need
82817         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82819         but with opposite signedness.
82820
82821 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82822
82823         Merge 'exclude' changes from tar 1.13.22.
82824         This fixes one or two unlikely storage allocation overflow bugs,
82825         but doesn't change user-visible behavior otherwise.
82826
82827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82828
82829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82830         (jm_PREREQ_EXCLUDE): New macro.
82831
82832 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82833
82834         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82835         tm to be declared.
82836
82837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82838
82839         * lib/hash.c: Remove '2001' from copyright notice.
82840
82841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82842
82843         * lib/full-write.h: New file.
82844         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82845         * lib/full-write.c: Correct credits, as cccp.c no longer
82846         exists and anyway it was so heavily changed from the old cccp
82847         code as to be unrecognizable.  Include full-write.h.
82848         (full_write): Return size_t, with short writes meaning failure.
82849         All callers changed.  This fixes a bug with large buffers
82850         on 64-bit hosts.
82851         * lib/utime.c: Include full-write.h.
82852
82853 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82854
82855         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82856         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82857         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82858         Include if available.
82859         (<xalloc.h>): Include
82860         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82861         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82862         collide with FNM macros.
82863         (struct patopts): New struct.
82864         (struct exclude): Use it, as exclude patterns now come with options.
82865         (new_exclude): Support above changes.
82866         (new_exclude, add_exclude_file):
82867         Initial size must now be a power of two to simplify overflow checking.
82868         (free_exclude, fnmatch_no_wildcards): New function.
82869         (excluded_filename): No longer requires options arg, as the options
82870         are determined by add_exclude.  Now returns bool, not int.
82871         (excluded_filename, add_exclude):
82872         Add support for the fancy new exclusion options.
82873         (add_exclude, add_exclude_file): Now takes int options arg.
82874         Check for arithmetic overflow when computing sizes.
82875         (add_exclude_file): xrealloc might modify errno, so don't
82876         realloc until after errno might be used.
82877
82878         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82879         New macros.
82880         (free_exclude): New decl.
82881         (add_exclude, add_exclude_file): Now takes int options arg.
82882         (excluded_filename): No longer requires options arg, as the options
82883         are determined by add_exclude.  Now returns bool, not int.
82884
82885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82886
82887         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82888
82889 2001-08-27  Jim Meyering  <meyering@lucent.com>
82890
82891         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82892
82893         * lib/version-etc.c (N_): Remove definition.
82894         Revert most of last change.
82895         Instead, simply don't mark the `Copyright...' string for translation.
82896         Based on advice from Paul Eggert.
82897
82898         * lib/strtoxmax.c: Tweak comment.
82899
82900 2001-08-26  Jim Meyering  <meyering@lucent.com>
82901
82902         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82903
82904         * m4/xstrtoimax.m4: New file.
82905         * m4/xstrtoumax.m4: Add comments explaining why we
82906         AC_REPLACE_FUNCS(strtol).
82907
82908 2001-08-26  Jim Meyering  <meyering@lucent.com>
82909
82910         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82911         of copyright with `%s' so translators don't get an untranslated
82912         message in 2002.
82913         (COPYRIGHT_YEAR): Define.
82914         (version_etc): Use fprintf rather than fputs.
82915         Suggestion from Ulrich Drepper.
82916
82917         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82918
82919         * lib/strtoll.c: New file, from GNU libc.
82920         * lib/xstrtoimax.c: New file.
82921
82922         * lib/xstrtol.h: Add xstrtoimax.
82923         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82924         * lib/strtoimax.c: New file.  Likewise, but first define
82925         STRTOUXMAX_SIGNED.
82926
82927         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82928         ...
82929         * lib/strtoxmax.c: ... then renamed to this.
82930
82931 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82932
82933         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82934         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82935         (jm_AC_TYPE_INTMAX_T): New macro.
82936         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82937
82938         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82939
82940         * m4/longlong.m4: Renamed from ulonglong.m4.
82941         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82942         * m4/uintmax_t.m4: Removed.
82943
82944 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82945
82946         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82947         Port to Solaris 8, where 'sed' requires a space after the 'r'
82948         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82949         Redirect output to $tmp just once.
82950
82951 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82952
82953         * lib/addext.c (<errno.h>): Include.
82954         (errno): Declare if not defined.
82955         (addext): Work correctly when pathconf returns -1 and leaves
82956         errno alone because there is no limit.  Also, work even if
82957         pathconf returns a value greater than SIZE_MAX.
82958
82959 2001-08-12  Jim Meyering  <meyering@lucent.com>
82960
82961         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82962         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82963         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82964         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82965         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82966         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82967         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82968         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82969         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82970         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82971         utime.m4, utimes.m4, xstrtoumax.m4:
82972         Quote the first argument in each use of AC_DEFUN.
82973
82974 2001-08-12  Jim Meyering  <meyering@lucent.com>
82975
82976         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82977         Simply `return getcwd (NULL, 0);'.
82978         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82979         Use 1300 as initial value for length, not PATH_MAX.
82980
82981         * lib/pathmax.h: Clean up cpp syntax.
82982
82983 2001-08-12  Jim Meyering  <meyering@lucent.com>
82984
82985         * lib/gettimeofday.c: New file.
82986         * lib/gtod.h: New file.
82987         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82988
82989 2001-08-05  Jim Meyering  <meyering@lucent.com>
82990
82991         * m4/jm-macros.m4: Require autoconf-2.52.
82992
82993 2001-08-04  Jim Meyering  <meyering@lucent.com>
82994
82995         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82996         stmt, to get in sync with glibc.
82997
82998 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82999
83000         The following changes are from gettext 0.10.39 as maintained by
83001         Bruno Haible.
83002
83003         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83004         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83005         with inverted sense.  All uses changed.
83006
83007         * lib/mbswidth.c: Don't include <limits.h>.
83008         Include <stdlib.h> and <string.h> unconditionally.
83009         (iswcntrl, mbsinit, ISCNTRL): New macros.
83010         (mbsnwidth): Use K&R style function declarations.
83011         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83012         can optimize it when MB_CUR_MAX == 1.
83013         The width of control characters is zero, not 1.
83014
83015 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83016
83017         The following changes are from gettext 0.10.39 as maintained by
83018         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83019
83020         * m4/codeset.m4: Upgrade to serial AM1.
83021         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83022         all uses changed.  Quote first arg of AC_DEFUN.
83023         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83024
83025         * m4/iconv.m4: Upgrade to serial AM2.
83026         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83027         Add --with-libconv-prefix.
83028         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83029         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83030         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83031         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83032         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83033
83034         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83035         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83036         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83037         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83038         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83039         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83040         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83041         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83042         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83043
83044         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83045         string.h any more.
83046
83047         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83048         not the default value.
83049
83050         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83051         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83052         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83053         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83054         Also check for iswcntrl, used for wcwidth fallback.
83055         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83056         to Autoconf 2.13.
83057
83058 2001-08-03  Jim Meyering  <meyering@lucent.com>
83059
83060         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83061         as it was in the original.  Reported by Paul Eggert.
83062
83063 2001-07-16  Jim Meyering  <meyering@lucent.com>
83064
83065         * m4/gettimeofday.m4: New file.
83066         Prompted by a report from Bernhard Baehr.
83067
83068 2001-07-15  Jim Meyering  <meyering@lucent.com>
83069
83070         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83071         stuff. Now it's in ../Makefile.cfg.
83072
83073 2001-07-15  Jim Meyering  <meyering@lucent.com>
83074
83075         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83076         (BUILT_SOURCES): Add unlocked-io.h.
83077         (io_functions): Define.
83078         (unlocked-io.h): New rule.
83079         (DISTCLEANFILES): Add unlocked-io.h.
83080         (all-local): Depend on unlocked-io.h, to ensure it is created.
83081
83082         * lib/unlocked-io.hin: New file
83083
83084         * lib/regex.c: Update from glibc.
83085
83086 2001-07-05  Jim Meyering  <meyering@lucent.com>
83087
83088         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83089         recommendation.
83090         (libfetish_a_SOURCES): Put all .h files here instead.
83091         Remove a thus-exposed (better checks in automake) duplicate and
83092         two unnecessary .h files.
83093
83094 2001-07-04  Jim Meyering  <meyering@lucent.com>
83095
83096         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83097         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83098         distcheck failure.
83099
83100 2001-07-02  Jim Meyering  <meyering@lucent.com>
83101
83102         The following changes were prompted by suggestions from Bruno Haible.
83103
83104         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83105         is now generated.
83106         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83107         definition of EXTRA_DIST.
83108         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83109         ensure that the generated file is created/updated whenever the list
83110         of $(unlocked_functions) is changed.
83111         (jm-glibc-io.m4): New rule.
83112         (unlocked-io.h): New rule -- currently unused.
83113
83114 2001-06-24  Jim Meyering  <meyering@lucent.com>
83115
83116         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83117         unmatched right bracket, rather than kludging it with an extra,
83118         falsely-matching quote in a comment.  Patch by Akim Demaille.
83119
83120 2001-06-11  Jim Meyering  <meyering@lucent.com>
83121
83122         * lib/regex.c: Update from GNU libc.
83123
83124 2001-05-27  Jim Meyering  <meyering@lucent.com>
83125
83126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83127         Check for ut_type in struct utmp.
83128
83129 2001-05-27  Jim Meyering  <meyering@lucent.com>
83130
83131         * lib/readutmp.h (UT_TYPE): Define.
83132
83133 2001-05-24  Jim Meyering  <meyering@lucent.com>
83134
83135         * lib/argmatch.c: Include "quote.h".
83136         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83137         quote function.  Reported by Göran Uddeborg.
83138
83139 2001-05-22  Jim Meyering  <meyering@lucent.com>
83140
83141         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83142         now that we use the package-supplied version unconditionally.
83143         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83144
83145 2001-05-21  Jim Meyering  <meyering@lucent.com>
83146
83147         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83148         shell syntax errors.
83149
83150 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83151
83152         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83153
83154 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83155
83156         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83157         Don't bother to check library strftime, since
83158         we'll be using our own my_strftime function anyway.
83159         Define my_strftime instead of strftime.
83160
83161 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83162
83163         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83164         which is not yet declared.
83165
83166 2001-05-15  Jim Meyering  <meyering@lucent.com>
83167
83168         * m4/regex.m4: Use proper quoting so brackets appear in the test
83169         program.
83170         Reported by, and with help from, Bruno Haible.
83171
83172 2001-05-13  Jim Meyering  <meyering@lucent.com>
83173
83174         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83175         undefined.
83176
83177 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83178
83179         dirname code cleanup.  base_name now behaves more compatibly
83180         with POSIX basename when given file names that have trailing
83181         slashes, and similarly for dir_name.  Add new primitives
83182         base_len and dir_len.  Put the directory-name-related decls
83183         into dirname.h.
83184
83185         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83186         * lib/backupfile.c (base_name): Likewise.
83187         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83188         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83189         * lib/makepath.c (strip_trailing_slashes): Likewise.
83190         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83191         ISSLASH): Likewise.
83192         * lib/rename.c (strip_trailing_slashes): Likewise.
83193         * lib/same.c (base_name): Likewise.
83194         * lib/stripslash.c (ISSLASH): Likewise.
83195
83196         * lib/addext.c: Include <dirname.h> after size_t is defined.
83197         * lib/backupfile.c: Likewise.
83198
83199         * lib/addext.c (addext): Use base_len to trim redundant
83200         trailing slashes instead of doing it ourselves.
83201         But do not trim the last slash if it is not redundant.
83202
83203         * lib/backupfile.c (find_backup_file_name,
83204         max_backup_version): Use base_len instead of rolling it ourselves.
83205         Handle the case of "" and (on DOS) "C:" correctly.
83206
83207         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83208         needed. Include <string.h>, <dirname.h>.
83209         (base_name): Allow file names ending in slashes, other than names
83210         that are all slashes.  In this case, return the basename followed
83211         by the slashes.  This is more general, and can be used in places
83212         where the original base_name purposely had an assertion failure.
83213         (base_len): New function.
83214
83215         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83216         Do not include <assert.h>; no longer needed.
83217         Include xalloc.h.
83218         (memrchr): Remove decl.
83219         (dir_name_r): Remove.
83220         (dir_len): Renamed from dirlen.  All callers changed.
83221         Rewrite in terms of base_name, for simplicity and consistency.
83222         (dir_name): Never return NULL.  All callers changed.
83223         Do not include <stdlib.h> in test program; no longer needed.
83224         return 0; is fine for test program.
83225
83226         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83227         New macros.
83228         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83229
83230         * lib/path-concat.c (path_concat): Use base_len to compute
83231         base length, not strlen; this means we cannot rely on memcpy
83232         to null-terminate.
83233
83234         * lib/same.c (STREQ): Remove.
83235         (same_name): Handle the case where the basename ends in trailing '/'.
83236
83237         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83238         a slash was stripped.  Do not strip the last slash after a
83239         file system prefix.
83240
83241 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83242
83243         * lib/Makefile.am (libfetish_a_SOURCES):
83244         Add strftime.c, since we now compile it on all hosts.
83245
83246         * lib/strftime.c (my_strftime):
83247         Define to nstrftime if emacs, but only if my_strftime is not defined.
83248         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83249         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83250         Add one more extra argument: a nanoseconds value.
83251         All uses changed.
83252         (ns): New macro.
83253         (my_strftime function): Add %N format.
83254         (emacs_strftimeu): Renamed from emacs_strftime,
83255         with extra ut argument.
83256
83257 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83258
83259         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83260
83261 2001-04-21  Jim Meyering  <meyering@lucent.com>
83262
83263         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83264         doesn't interfere.
83265
83266 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83267
83268         * m4/ftruncate.m4: Check for chsize.
83269         Link with ftruncate.o unconditionally if ftruncate is missing.
83270         This was required when cross-compiling to i586-mingw32msvc.
83271
83272 2001-04-08  Jim Meyering  <meyering@lucent.com>
83273
83274         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83275         recomputed; that's necessary when the offset spans a DST transition.
83276         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83277
83278 2001-04-02  Jim Meyering  <meyering@lucent.com>
83279
83280         * lib/regex.h, regex.c: Update from GNU libc.
83281
83282 2001-03-24  Jim Meyering  <meyering@lucent.com>
83283
83284         * m4/jm-macros.m4: Require autoconf-2.49d.
83285
83286 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83287
83288         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83289
83290 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83291
83292         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83293
83294 2001-03-17  Jim Meyering  <meyering@lucent.com>
83295
83296         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83297         now that the version in autoconf is equivalent.
83298         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83299
83300         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83301         Suggestion from Akim Demaille.
83302
83303         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83304         (jm_PREREQ_TEMPNAME): New function.
83305
83306 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83307
83308         * lib/tempname.c (uint64_t): Define to uintmax_t if
83309         not defined, and if UINT64_MAX is not defined.
83310         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83311         Reported by John David Anglin.
83312
83313 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83314
83315         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83316         resolve alias if codeset is empty.
83317         * lib/config.charset (BeOS): Use wildcard syntax.
83318
83319 2001-03-13  Jim Meyering  <meyering@lucent.com>
83320
83321         * lib/path-concat.c (path_concat)
83322         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83323         concatenating e.g., `C:' and `foo'.
83324         From Bruno Haible.
83325
83326 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83327
83328         * lib/localcharset.c (locale_charset): Don't use
83329         setlocale(LC_CTYPE,NULL). Don't return NULL.
83330         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83331
83332 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83333
83334         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83335         support for DOS/DJGPP.
83336
83337 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83338
83339         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83340         lacks mkstemp.  Compile our own tempname.c if we compile our own
83341         mkstemp.c, as mkstemp relies on tempname.
83342
83343 2001-03-01  Jim Meyering  <meyering@lucent.com>
83344
83345         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83346         AH_VERBATIM really does output its argument verbatim.
83347
83348 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83349
83350         * lib/Makefile.am (libfetish_a_SOURCES):
83351         Add dup-safer.c, fopen-safer.c.
83352         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83353
83354         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83355         * lib/unistd-safer.h: New files.
83356
83357 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83358
83359         The mkstemp replacement is taken from glibc 2.2.2, with some
83360         portability fixes for use outside glibc, as follows:
83361
83362         * lib/tempname.c (struct_stat64): New macro.
83363         (direxists, __gen_tempname): Use it.
83364         This avoids a portability problem with Solaris 8.
83365
83366         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83367         (<stddef.h>, <stdint.h>, <string.h>):
83368         Include only if STDC_HEADERS || _LIBC.
83369         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83370         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83371         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83372         (__set_errno): Define this macro if <errno.h> doesn't.
83373         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83374         Define these macros if <stdio.h> doesn't.
83375         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83376         Define these macros if <sys/stat.h>
83377         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83378         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83379         __xstat64): Define if not _LIBC.
83380         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83381         (__gen_tempname): Invoke gettimeofday only if
83382         HAVE_GETTIMEOFDAY || _LIBC;
83383         otherwise, fall back on plain "time".
83384         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83385
83386         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83387
83388         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83389
83390 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83391
83392         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83393
83394 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83395
83396         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83397         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83398         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83400
83401 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83402
83403         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83404         Remove workaround macros for hosts that have mbrtowc but not
83405         mbstate_t, as we now insist on proper declarations for both
83406         before using mbrtowc.
83407
83408 2001-02-17  Jim Meyering  <meyering@lucent.com>
83409
83410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83411         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83412         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83413         UnixWare 7.1.1.
83414
83415         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83416         rather than AC_CACHE_VAL.
83417
83418 2001-02-17  Jim Meyering  <meyering@lucent.com>
83419
83420         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83421         around included file name.
83422
83423         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83424
83425         * lib/strftime.c: Update from GNU libc (the only changes were to
83426         comments).
83427
83428 2001-02-17  Jim Meyering  <meyering@lucent.com>
83429
83430         * lib/regex.c: Update from libc.
83431
83432 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83433
83434         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83435         clash.
83436
83437 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83440         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83441         Reported by Mark Hounschell via Paul Eggert.
83442
83443 2001-02-07  Jim Meyering  <meyering@lucent.com>
83444
83445         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83446
83447 2001-02-05  Jim Meyering  <meyering@lucent.com>
83448
83449         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83450         it includes the patch required for `large file' support with at least
83451         HP-UX's 10.20 /bin/cc.
83452
83453 2001-02-03  Jim Meyering  <meyering@lucent.com>
83454
83455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83456         AS_IF, now that it works once again (mysteriously).
83457         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83458
83459 2001-01-30  Jim Meyering  <meyering@lucent.com>
83460
83461         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83462         * m4/chown.m4: Rename conftestchown to conftest.chown.
83463         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83464         s/conftestdir2/conftest.d2/.
83465         * m4/utimes.m4: s/conftestdata/conftest.data/
83466         Inspired by Pavel Roskin's change in autoconf.
83467
83468 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83469
83470         * lib/config.charset: Update for FreeBSD 4.2.
83471
83472 2001-01-27  Jim Meyering  <meyering@lucent.com>
83473
83474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83475         a use of AS_IF.
83476         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83477
83478 2001-01-26  Jim Meyering  <meyering@lucent.com>
83479
83480         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83481         quotearg.c includes it.
83482
83483 2001-01-26  Jim Meyering  <meyering@lucent.com>
83484
83485         * lib/quotearg.c: Include stddef.h.
83486         * lib/quote.c: Include stddef.h.
83487         Reported by Axel Kittenberger.
83488
83489         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83490         line in double quotes so that it evokes a better diagnostic.
83491         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83492         Reported by Axel Kittenberger.
83493
83494 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83495
83496         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83497         as if it was a `charset'.
83498
83499 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83500
83501         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83502         has const.
83503
83504 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83505
83506         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83507         to avoid a warning.  Add back 'const' to inptr.
83508
83509 2001-01-20  Jim Meyering  <meyering@lucent.com>
83510
83511         Be sure that headers are checked before used in code compiled
83512         for the type checks.
83513         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83514         In place of that, invoke jm_CHECK_ALL_TYPES.
83515         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83516         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83517         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83518         The check for ssize_t was mistakenly run before the test for unistd.h.
83519
83520         The configure-time check for stdbool.h was missing.
83521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83522         (jm_PREREQ_HASH): New function.
83523
83524 2001-01-17  Jim Meyering  <meyering@lucent.com>
83525
83526         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83527         for autoconf-2.49c.
83528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83529
83530 2001-01-16  Jim Meyering  <meyering@lucent.com>
83531
83532         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83533         From Bruno Haible.
83534
83535 2001-01-14  Jim Meyering  <meyering@lucent.com>
83536
83537         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83538         foo and bar.  Create conftestdir/ in the script, not in the C code.
83539         Remove directories in the script, not in the C code.
83540         Remove conftestdir{,2} before trying to create the directory.
83541         Make the entire configure script fail if the mkdir fails.
83542
83543 2001-01-14  Jim Meyering  <meyering@lucent.com>
83544
83545         * lib/rename.c: New file.  From Volker Borchert.
83546         Include stdlib.h, string.h or strings.h, and xalloc.h.
83547         Use strip_trailing_slashes rather than open-coding it.
83548
83549 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83550
83551         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83552
83553 2001-01-03  Jim Meyering  <meyering@lucent.com>
83554
83555         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83556         of local `inptr' to avoid warning with some system declarations of
83557         iconv.
83558
83559 2001-01-02  Volker Borchert  <bt@teknon.de>
83560
83561         * m4/rename.m4: New file.
83562         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83563
83564 2001-01-01  Jim Meyering  <meyering@lucent.com>
83565
83566         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83567         even on systems with utmpx.h.  It's necessary for the declaration of
83568         utmp's ut_user member.  Reported by Andreas Jaeger.
83569
83570         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83571         available. They are required for the declarations of getgrgid and
83572         getpwuid resp.
83573         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83574         Reported by Andreas Jaeger.
83575
83576 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83577
83578         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83579         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83580         so `make install' also works in VPATH builds.
83581
83582 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83583
83584         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83585         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83586         can be used in subdirectories.
83587
83588 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83589
83590         * lib/modechange.c: Do not assume that mode_t uses the
83591         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83592         the other-execute bit of FOO even if S_IXOTH != 1.
83593
83594         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83595         WOTH, XOTH, ALLM): New macros.
83596         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83597          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83598         Use them.
83599         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83600         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83601         (mode_compile):
83602         No need to use uintmax_t; unsigned long is long enough.
83603         Don't bother to get suffix since we don't use it.
83604
83605 2000-12-26  Jim Meyering  <meyering@lucent.com>
83606
83607         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83608         better with autoheader.
83609
83610 2000-12-24  Jim Meyering  <meyering@lucent.com>
83611
83612         * lib/hash.c (is_prime): Return explicit boolean values.
83613         (hash_get_first): Return NULL to appease Irix5.6's 89.
83614         Reported by Nelson Beebe.
83615
83616 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83617
83618         * lib/localcharset.c (locale_charset): Add support for Win32.
83619
83620 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83621
83622         * lib/physmem.h, lib/physmem.c: New files.
83623
83624         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83625         (noinst_HEADERS): Add physmem.h.
83626
83627         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83628         't' for compatibility with Solaris 8 sort.
83629
83630 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83631
83632         * lib/config.charset: Add support for BeOS.
83633
83634 2000-12-17  Jim Meyering  <meyering@lucent.com>
83635
83636         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83637         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83638
83639 2000-12-16  Jim Meyering  <meyering@lucent.com>
83640
83641         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83642         N and M) would have treated it like `chown N:N FILE'.
83643
83644         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83645
83646 2000-12-16  Jim Meyering  <meyering@lucent.com>
83647
83648         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83649         SHELLS_FILE to a file name that's useful on djgpp systems.
83650         Include stdlib.h.
83651         (ADDITIONAL_DEFAULT_SHELLS): Define.
83652         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83653         Based mostly on a patch from Prashant TR.
83654
83655 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83656
83657         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83658         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83659         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83660
83661 2000-12-08  Andreas Schwab  <schwab@suse.de>
83662
83663         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83664         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83665
83666 2000-12-07  Jim Meyering  <meyering@lucent.com>
83667
83668         * lib/stripslash.c (ISSLASH): Define.
83669         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83670         `/'.
83671         From Prashant TR.
83672
83673         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83674         (dir_name_r): Declare this function as static.
83675         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83676         manifest itself on a name containing a mix of slashes and
83677         backslashes.
83678         Make this function work with names starting with a DOS-style
83679         drive letter and colon prefix.
83680         (dir_name): Append `.' if necessary.
83681         Based mostly on patches from Prashant TR and Eli Zaretskii.
83682
83683         * lib/dirname.h (dir_name_r): Remove prototype.
83684
83685 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83686
83687         * m4/off_t-format.m4: Remove this file.
83688         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83689
83690 2000-12-06  Jim Meyering  <meyering@lucent.com>
83691
83692         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83693         replacement strtoull, we may well need the replacement strtoul, too.
83694         Check for declarations of strtoul and strtoull.
83695         Check for strtol.  Mainly as a cue to cause automake to include
83696         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83697         Check for limits.h -- strtol.c needs it.
83698
83699 2000-12-05  Jim Meyering  <meyering@lucent.com>
83700
83701         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83702
83703 2000-12-04  Jim Meyering  <meyering@lucent.com>
83704
83705         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83706         Also include memory.h, stdlib.h, unistd.h if appropriate.
83707         Reported by Andreas Jaeger (conflicting declaration of malloc).
83708
83709 2000-12-02  Jim Meyering  <meyering@lucent.com>
83710
83711         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83712         * m4/jm-macros.m4 (jm_MACROS): require it.
83713
83714 2000-12-02  Jim Meyering  <meyering@lucent.com>
83715
83716         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83717
83718 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83719
83720         * lib/memrchr.c: Include <config.h> before any system include file.
83721
83722 2000-11-30  Jim Meyering  <meyering@lucent.com>
83723
83724         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83725
83726 2000-11-30  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83729
83730 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83731
83732         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83733
83734 2000-11-26  Jim Meyering  <meyering@lucent.com>
83735
83736         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83737
83738 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83739
83740         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83741         size of (size_t) -1; it's not portable.
83742
83743 2000-11-17  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/strstr.c: Update from GNU libc.
83746
83747 2000-11-17  Akim Demaille  <akim@epita.fr>
83748
83749         * lib/obstack.h: Formatting changes.
83750         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83751         prevent type checking.
83752         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83753         cast the value to (void *): assigning a `foo *' to a `void *'
83754         variable is valid.
83755         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83756
83757 2000-11-16  Jim Meyering  <meyering@lucent.com>
83758
83759         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83760
83761 2000-11-11  Jim Meyering  <meyering@lucent.com>
83762
83763         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83764
83765 2000-11-10  Jim Meyering  <meyering@lucent.com>
83766
83767         * lib/obstack.h: Update from GNU libc.
83768         * lib/obstack.c: Likewise.
83769
83770 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83771
83772         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83773
83774 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83775
83776         * lib/getusershell.c (setusershell): Use rewind rather than
83777         fseek/fseeko, to avoid configuration hassles with fseeko.
83778         Don't bother opening SHELLS_FILE if shellstream is NULL;
83779         it's not necessary.
83780
83781 2000-11-05  Jim Meyering  <meyering@lucent.com>
83782
83783         * lib/makepath.h (make_dir): Declare.
83784         * lib/makepath.c (make_dir): Remove `static' attribute.
83785         Tweak a comment.
83786
83787 2000-11-04  Jim Meyering  <meyering@lucent.com>
83788
83789         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83790
83791 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83792
83793         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83794         last one in a bucket, advance to the next bucket.
83795
83796 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83797
83798         * lib/fnmatch.c: Do not comment out all the code if we are using
83799         the GNU C library, because in some cases we are replacing buggy
83800         code in the GNU C library itself.
83801
83802 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83803
83804         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83805         (regex_compile): Catch bogus \(\1\).
83806
83807 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83808
83809         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83810         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83811         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83812
83813 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83814
83815         * lib/error.h, getline.h, modechange.h:
83816         Remove "2000" from Copyright line, as the file hasn't been
83817         changed this year other than in the copyright notice.
83818
83819         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83820         was changed this year.
83821
83822 2000-10-29  Jim Meyering  <meyering@lucent.com>
83823
83824         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83825         renaming.
83826         * m4/ls-mntd-fs.m4: Likewise
83827
83828 2000-10-29  Jim Meyering  <meyering@lucent.com>
83829
83830         * lib/xstat.in: Fix grammar in comment.
83831
83832 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83833
83834         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83835         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83836         doesn't define __restrict_arr.
83837
83838 2000-10-28  Jim Meyering  <meyering@lucent.com>
83839
83840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83841         (jm_PREREQ_MEMCHR): New function.
83842
83843 2000-10-28  Jim Meyering  <meyering@lucent.com>
83844
83845         * lib/memchr.c: Update from libc.
83846         Adjust for portability:
83847         [HAVE_STDLIB_H]: Include stdlib.h.
83848         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83849         Undef __memchr, too.
83850         [!weak_alias]: Define __memchr to memchr.
83851
83852         * lib/regex.c: Update from libc.
83853         * lib/regex.h: Likewise.
83854         * lib/getopt1.c: Likewise.
83855         * lib/memcmp.c: Likewise.
83856
83857         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83858         Avoid using fseek, when possible -- it's broken by design.
83859         Patch by Ulrich Drepper.
83860
83861 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83862
83863         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83864         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83865         Giving in to popular pressure to shut up the compiler with casts.
83866
83867 2000-10-26  Jim Meyering  <meyering@lucent.com>
83868
83869         * lib/strftime.c: Update from libc.
83870
83871 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83872
83873         * regex.c: More `unsigned char' -> `re_char' changes.
83874         Also change several `int' into `re_wchar_t'.
83875         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83876         (PUSH_FAILURE_POINTER): Don't cast any more.
83877         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83878         We want GCC to complain, since this piece of code makes
83879         re_match non-reentrant, which *should* be fixed.
83880         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83881         (EXTEND_BUFFER): Use RETALLOC.
83882         (SET_LIST_BIT): Don't cast.
83883         (re_wchar_t): New type.
83884         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83885         that those two functions will always properly return.
83886         (IMMEDIATE_QUIT_CHECK): Cast to void.
83887         (analyse_first): Use recursion rather than an explicit stack.
83888         (re_compile_fastmap): Can't fail anymore.
83889         (re_search_2): Don't check re_compile_fastmap for failure.
83890         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83891         Now also sets the new value (passed in a new argument).
83892         (re_match_2_internal): Use it.
83893         Also, use a new var `reg' of type size_t when looping through regs
83894         rather than reuse the inappropriate `mcnt'.
83895
83896 2000-10-25  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/obstack.c: Update from libc.
83899
83900 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83901
83902         * regex.c (regex_compile): Change the way of handling a range from
83903         a char less than 256 to a char not less than 256.
83904
83905 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83906
83907         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83908         NT-Emacs only.
83909         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83910         so that re_search functions only quit when callers expect them to.
83911
83912 2000-10-23  Jim Meyering  <meyering@lucent.com>
83913
83914         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83915         wrong.  That set_locale call must not have any side effects.
83916         From Paul Eggert.
83917
83918 2000-10-22  Jim Meyering  <meyering@lucent.com>
83919
83920         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83921         [CYCLIC]: Remove now-unused definition.
83922
83923         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83924         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83925         Suggestion from Ulrich Drepper.
83926
83927 2000-10-21  Jim Meyering  <meyering@lucent.com>
83928
83929         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83930         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83932
83933 2000-10-21  Jim Meyering  <meyering@lucent.com>
83934
83935         * lib/dirname.c (memrchr): Declare if necessary.
83936         (dir_name): Remove the restriction that there be no
83937         trailing slashes.  Now, this code skips past them, effectively
83938         ignoring them.
83939         [TEST_DIRNAME] (main): New unit tests.
83940
83941         * lib/memrchr.c: New file from GNU libc.
83942         Undef __memrchr, too.
83943         [!weak_alias]: Define __memrchr to memrchr.
83944         Guard weak_alias use with `#ifdef weak_alias'.
83945
83946 2000-10-21  Jim Meyering  <meyering@lucent.com>
83947
83948         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83949         (dir_name): Use dir_name_r.
83950         * lib/dirname.h (dir_name_r): Declare it.
83951
83952 2000-10-17  Jim Meyering  <meyering@lucent.com>
83953
83954         * lib/quote.h (PARAMS): Define and use.
83955         Reported by Akim Demaille.
83956
83957         * lib/getopt.c: Update from libc.
83958
83959 2000-10-16  Jim Meyering  <meyering@lucent.com>
83960
83961         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83962         setlocale.
83963         From Jan Fedak.
83964
83965 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83966
83967         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83968
83969 2000-09-25  Jim Meyering  <meyering@lucent.com>
83970
83971         * lib/md5.h (rol): Define (from GnuPG).
83972
83973         * lib/sha.c: Give credit (GnuPG) where due.
83974         (M): Use rol rather than open-coding it.
83975         Add a FIXME comment.
83976
83977 2000-09-21  Jim Meyering  <meyering@lucent.com>
83978
83979         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83980         Reported by Michael Stone.
83981
83982 2000-09-20  Jim Meyering  <meyering@lucent.com>
83983
83984         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83985         (noinst_HEADERS): Add sha.h.
83986         Based on code from Scott G. Miller and from GnuPG.
83987
83988 2000-09-18  Jim Meyering  <meyering@lucent.com>
83989
83990         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83991         LIBS. Otherwise, everyone ends up linking with -lelf for some
83992         configurations.
83993         Reported by Mike Stone.
83994
83995 2000-09-15  Jim Meyering  <meyering@lucent.com>
83996
83997         * lib/regex.c: Update from libc.
83998
83999 2000-09-10  Jim Meyering  <meyering@lucent.com>
84000
84001         * lib/getopt.c (_getopt_internal): Update from glibc.
84002
84003 2000-09-09  Jim Meyering  <meyering@lucent.com>
84004
84005         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84006         think it should be used as a general replacement for isascii.
84007         * lib/fnmatch.c: Likewise.
84008         * lib/mbswidth.c: Likewise
84009         * lib/regex.c: Likewise.
84010
84011         Don't use atoi.
84012         * lib/userspec.c: Include sys/param.h and limits.h.
84013         Include xstrtol.h.
84014         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84015         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84016         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84017         UID, GID.  Check range.
84018
84019 2000-09-06  Jim Meyering  <meyering@lucent.com>
84020
84021         * lib/getopt.c (_getopt_internal): Update from glibc.
84022
84023 2000-08-30  Jim Meyering  <meyering@lucent.com>
84024
84025         * lib/strftime.c: Merge in changes from GNU libc.
84026
84027 2000-08-26  Jim Meyering  <meyering@lucent.com>
84028
84029         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84030         * m4/fpending.m4: New file.
84031
84032 2000-08-26  Jim Meyering  <meyering@lucent.com>
84033
84034         * lib/closeout.c: Include "__fpending.h".
84035         (close_stdout_status): Return right away if there's nothing to flush.
84036
84037         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84038         * lib/__fpending.c: New file.
84039         * lib/__fpending.h: New file.
84040
84041 2000-08-20  Jim Meyering  <meyering@lucent.com>
84042
84043         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84044         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84045         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84046
84047 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84048
84049         Improve fileutils installation on systems where running
84050         programs (like install) can't be unlinked.
84051         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84052         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84053
84054 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84055
84056         Standardize on "memory exhausted" instead of "Memory exhausted"
84057         or "virtual memory exhausted".
84058         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84059         "virtual memory exhausted".
84060         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84061         our own message.
84062         * lib/userspec.c (parse_user_spec): Likewise.
84063         * lib/bumpalloc.h: comment fix
84064         * lib/same.c, userspec.c: Include xalloc.h.
84065
84066         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84067         not char *const and pointing to a constant array.
84068         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84069         (xrealloc): Comment fix.
84070
84071         * lib/userspec.c (parse_user_spec):
84072         Don't translate a message until just before returning,
84073         to avoid unnecessary translation.
84074
84075 2000-08-07  Jim Meyering  <meyering@lucent.com>
84076
84077         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84078         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84079         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84080         getgroups.c, gethostname.c, getopt.h, group-member.c,
84081         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84082         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84083         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84084         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84085         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84086         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84087         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84088         yesno.c: Back out Copyright date changes for each file with no change
84089         this year.  This eases coordination with other programs using the same
84090         source code modules.  From Paul Eggert.
84091
84092 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84093
84094         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84095         not char, for compatibility with glibc 2.1.3 strftime.c.
84096
84097 2000-08-03  Greg McGary  <greg@mcgary.org>
84098
84099         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84100         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84101         (EXTEND_BUFFER): Use them.
84102
84103 2000-08-01  Jim Meyering  <meyering@lucent.com>
84104
84105         * lib/dirname.c (ISSLASH): Define.
84106         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84107         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84108         both `\' and `/' may be use as path separators.
84109         Based on a patch from Prashant TR.
84110
84111 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84112
84113         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84114         slot vector a constant, since it might get modified.
84115
84116 2000-07-31  Jim Meyering  <meyering@lucent.com>
84117
84118         * lib/xmalloc.c: Use `virtual memory exhausted', not
84119         `Memory exhausted'.
84120         * lib/obstack.c (print_and_abort): Likewise.
84121
84122 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84123
84124         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84125         buffer, so that the caller can always quote one small
84126         component of a "memory exhausted" message in slot 0.
84127         From a suggestion by Jim Meyering.
84128
84129 2000-07-30  Jim Meyering  <meyering@lucent.com>
84130
84131         * lib/makepath.c (make_path): Quote the other instance, too.
84132
84133         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84134         (STATIC_BUF_SIZE): Define.
84135         (quotearg_n_options): Use only statically allocated storage when
84136         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84137         than STATIC_BUF_SIZE.
84138
84139 2000-07-29  Jim Meyering  <meyering@lucent.com>
84140
84141         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84142         * lib/dirname.c (dir_name): Likewise.
84143
84144         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84145         `/'.
84146
84147         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84148         (dir_name): Assert that there are no trailing slashes.
84149
84150 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84151
84152         * lib/mbswidth.h (mbswidth): Add a flags argument.
84153         (mbswidth): New declaration.
84154         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84155         * lib/mbswidth.c (mbswidth): Add a flags argument.
84156         (mbsnwidth): New function.
84157
84158 2000-07-24  Jim Meyering  <meyering@lucent.com>
84159
84160         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84161
84162 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84163
84164         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84165
84166 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84167
84168         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84169         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84170         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84171         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84172         invoke multibyte primitives.
84173
84174 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84175
84176         * lib/quotearg.c:
84177         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84178         so that mbstate_t is always defined.
84179
84180         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84181         be 1 in at least one GCC installation, and this configuration
84182         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84183         performance on hosts that have mbrtowc but have only unibyte
84184         locales, but I assume these hosts are rare.
84185
84186 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84187
84188         * lib/mbswidth.c (_XOPEN_SOURCE):
84189         Don't define; this causes problems on Solaris 7.
84190         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84191
84192 2000-07-23  Jim Meyering  <meyering@lucent.com>
84193
84194         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84195         too: getgrgid, getpwuid, getuid.
84196
84197 2000-07-23  Jim Meyering  <meyering@lucent.com>
84198
84199         * lib/basename.c (base_name): Add an assertion.
84200
84201 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84202
84203         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84204         shadow its mbsinit function.
84205
84206 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84207
84208         * lib/mbswidth.h: New file.
84209         * lib/mbswidth.c: New file.
84210         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84211         (noinst_HEADERS): Add mbswidth.h.
84212
84213 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84214
84215         * lib/config.charset: Add support for FreeBSD. Improve support for
84216         HP-UX and IRIX 6.
84217
84218 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84219
84220         * m4/mbswidth.m4: New file.
84221         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84222
84223 2000-07-15  Jim Meyering  <meyering@lucent.com>
84224
84225         * lib/makepath.c: Include quote.h.
84226         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84227         corresponding argument in a `quote (...)' call.
84228         Give better diagnostics.
84229
84230         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84231         (noinst_HEADERS): Add quote.h.
84232
84233         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84234         from tar's src/misc.c.
84235         * lib/quote.h: New file.  Prototypes for same.
84236
84237 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84238
84239         From a suggestion by Bruno Haible.
84240         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84241         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84242         to decide whether to define the BeOS workaround macro;
84243         this adjusts to the change to AC_MBSTATE_T.
84244
84245 2000-07-14  Jim Meyering  <meyering@lucent.com>
84246
84247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84248         jm_AC_TYPE_UINTMAX_T.
84249
84250 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84251
84252         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84253
84254         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84255         quotearg_buffer_restyled): Add support for
84256         clocale_quoting_style.  Undo previous change to
84257         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84258         and "{RIGHT QUOTATION MARK}" msgids.
84259
84260 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84261
84262         From a suggestion by Bruno Haible.
84263         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84264         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84265         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84266         and mbstate_t, to a single-part test that simply defines mbstate_t.
84267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84268         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84269
84270 2000-07-10  Jim Meyering  <meyering@lucent.com>
84271
84272         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84273
84274         * m4/gnu-source.m4: Output to confdefs.h directly.
84275         Suggestion from Akim Demaille.
84276
84277 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84278
84279         The old behavior of quoting `like this' doesn't look good with
84280         newer, ISO-style fonts.  See:
84281         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84282
84283         Instead, quote "like this" by default.  Let the translator
84284         tailor the locale-specific quoting behavior by providing
84285         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84286
84287         * lib/quotearg.c (N_): New macro.
84288         (gettext_default): New function.
84289         (quotearg_buffer_restyled): Use
84290         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84291         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84292
84293 2000-07-09  Jim Meyering  <meyering@lucent.com>
84294
84295         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84296         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84297
84298         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84300
84301 2000-07-09  Jim Meyering  <meyering@lucent.com>
84302
84303         * lib/Most files: Update copyright dates to include 2000.
84304
84305 2000-07-08  Jim Meyering  <meyering@lucent.com>
84306
84307         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84308         if not defined.
84309         (xgethostname): Remove now-unnecessary #ifdef.
84310         Move declaration of `err' into loop where it's used.
84311
84312 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84313         and Bruno Haible  <haible@clisp.cons.org>
84314
84315         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84316         only if the test for an object-type mbstate_t fails.  This
84317         prevents us from mistakenly reporting that mbstate_t is a
84318         system object type after we "#define mbstate_t int" to work
84319         around its lack.
84320
84321 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84322         and Bruno Haible  <haible@clisp.cons.org>
84323
84324         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84325
84326 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84327
84328         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84329         to strerror_r.
84330         Include <ctype.h> for use of isalpha.
84331
84332 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84333
84334         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84335         by allocating a larger buffer. Test the gethostname return value for
84336         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84337         returns an error and ENAMETOOLONG isn't defined.
84338
84339 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84340
84341         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84342         dimension.
84343
84344 2000-07-04  Jim Meyering  <meyering@lucent.com>
84345
84346         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84347         of the deprecated AC_CHECKING.
84348
84349 2000-07-04  Jim Meyering  <meyering@lucent.com>
84350
84351         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84352         Reported by Bruno Haible.
84353
84354 2000-07-04  Jim Meyering  <meyering@lucent.com>
84355
84356         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84357         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84358         lacks mbrtowc.
84359
84360 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84361
84362         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84363         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84364
84365 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84366         and Bruno Haible  <haible@clisp.cons.org>
84367
84368         * lib/quotearg.c (mbrtowc):
84369         Assign to *pwc, and return 1 only if result is nonzero.
84370         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84371
84372 2000-07-03  Jim Meyering  <meyering@lucent.com>
84373
84374         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84375
84376 2000-07-03  Jim Meyering  <meyering@lucent.com>
84377
84378         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84379         This is necessary to get a definition of e.g., UTMP_FILE on
84380         HP-UX 10.20.
84381         From Bob Proulx.
84382
84383 2000-07-02  Jim Meyering  <meyering@lucent.com>
84384
84385         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84386
84387         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84388         AC_LIBOBJ(function_name).
84389         * m4/chown.m4: Likewise.
84390         * m4/fnmatch.m4: Likewise.
84391         * m4/ftruncate.m4: Likewise.
84392         * m4/getgroups.m4: Likewise.
84393         * m4/getline.m4: Likewise.
84394         * m4/group-member.m4: Likewise.
84395         * m4/jm-macros.m4: Likewise.
84396         * m4/lstat.m4: Likewise.
84397         * m4/malloc.m4: Likewise.
84398         * m4/memcmp.m4: Likewise.
84399         * m4/nanosleep.m4: Likewise.
84400         * m4/putenv.m4: Likewise.
84401         * m4/realloc.m4: Likewise.
84402         * m4/regex.m4: Likewise.
84403         * m4/stat.m4: Likewise.
84404         * m4/strftime.m4: Likewise.
84405
84406 2000-07-02  Jim Meyering  <meyering@lucent.com>
84407
84408         * lib/quotearg.c (mbstate_t): Don't define here.
84409
84410 2000-07-02  Jim Meyering  <meyering@lucent.com>
84411
84412         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84413
84414 2000-07-01  Jim Meyering  <meyering@lucent.com>
84415
84416         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84417
84418 2000-07-01  Jim Meyering  <meyering@lucent.com>
84419
84420         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84421         problem.
84422
84423 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84424
84425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84426         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84427
84428 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84429
84430         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84431         per change in ../m4/ls-mntd-fs.m4.
84432         (read_filesystem_list): Ignore symbolic links.
84433
84434 2000-06-29  Jim Meyering  <meyering@lucent.com>
84435
84436         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84437         for declaration of strcmp.
84438
84439         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84440
84441         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84442         Avoid warning by casting result to `char *' to remove `const'.
84443
84444 2000-06-28  Jim Meyering  <meyering@lucent.com>
84445
84446         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84447         included by quotearg.c, for which we perform this test.  From
84448         Bruno Haible.
84449
84450 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84451
84452         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84453         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84454         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84455
84456 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84457
84458         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84459
84460 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84461
84462         savedir now sets errno on failure and invokes xmalloc to get memory.
84463         Fix a couple of other minor bugs while we're at it.
84464
84465         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84466         (NAMLEN): Remove macro.
84467         (malloc, realloc): Remove decls.
84468         (stpcpy): Likewise.
84469         ("xalloc.h"): Include.
84470         (NAME_SIZE_DEFAULT): New macro.
84471         (savedir): Use xmalloc / xrealloc to allocate memory.
84472         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84473         Skip "" directory entries.
84474         Use strlen to calculate directory entry length, since the old method
84475         is rarely used these days and isn't worth supporting.
84476         Don't use a pointer after freeing it.
84477         Check for integer overflow when calculating allocation size.
84478         Use memcpy to copy entries, instead of stpcpy.
84479         Set errno properly when returning NULL.
84480         Check for readdir error.
84481
84482 2000-06-26  Jim Meyering  <meyering@lucent.com>
84483
84484         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84485
84486 2000-06-25  Jim Meyering  <meyering@lucent.com>
84487
84488         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84489         Linux header bug when _XOPEN_SOURCE is defined to 500.
84490
84491 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84492
84493         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84494         deficiency.
84495
84496 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84497
84498         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84499         Include xalloc.h.
84500         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84501
84502 2000-06-24  Jim Meyering  <meyering@lucent.com>
84503
84504         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84505         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84506         for which strerror does return char*, but which lacks a conveniently
84507         accessible declaration of the function.  If the compile-test says
84508         strerror_r doesn't work, then resort to a `run'-test that works on
84509         BeOS and segfaults on DEC Unix.
84510
84511 2000-06-24  Jim Meyering  <meyering@lucent.com>
84512
84513         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84514
84515 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84516
84517         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84518         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84519
84520 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84521
84522         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84523         (mbrtowc, mbstate_t): Define substitutes if
84524         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84525         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84526         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84527
84528 2000-06-23  Jim Meyering  <meyering@lucent.com>
84529
84530         * m4/afs.m4: Add missing AC_MSG_RESULT.
84531         Reported by Bruno Haible.
84532
84533         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84534         Suggestion from Bruno Haible.
84535
84536 2000-06-23  Jim Meyering  <meyering@lucent.com>
84537
84538         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84539
84540 2000-06-21  Jim Meyering  <meyering@lucent.com>
84541
84542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84543
84544 2000-06-21  Jim Meyering  <meyering@lucent.com>
84545
84546         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84547         (noinst_HEADERS): Add getstr.h.
84548
84549         * lib/getline.c (getstr): Move into a separate file.
84550         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84551         the following changes: new parameter, delim2; both delim[12]
84552         parameters have type `int', not `char'.  The latter would lose
84553         with 8-bit delimiters.
84554         * lib/getstr.h: New file.
84555
84556 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84557
84558         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84559         than 1024, return a memory chunk of least possible size, instead
84560         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84561         Use free/xmalloc instead of xrealloc to avoid copying for very long
84562         paths.
84563
84564 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84565
84566         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84567         the empty string.
84568
84569 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84570
84571         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84572         address, not strdup.  Include <stdlib.h> and don't declare free().
84573
84574 2000-06-19  Jim Meyering  <meyering@lucent.com>
84575
84576         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84577
84578 2000-06-18  Jim Meyering  <meyering@lucent.com>
84579
84580         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84581
84582         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84583         `checking whether...' message to be consistent with that of the
84584         lstat test.
84585
84586 2000-06-18  Jim Meyering  <meyering@lucent.com>
84587
84588         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84589         Besides, these days every porting target provides a mkdir function.
84590
84591         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84592         needed. (this snippet comes from src/system.h).
84593
84594 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84595
84596         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84597
84598 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84599
84600         * lib/human.c (adjust_value): New function.
84601         (human_readable_inexact): Apply rounding style even when
84602         printing approximate values.
84603
84604 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84605
84606         * lib/human.c (human_readable_inexact): Allow an input block
84607         size that is not a multiple of the output block size, and vice versa.
84608         Reported by Piergiorgio Sartor.
84609
84610 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84611
84612         * lib/getdate.y (get_date): Apply relative times after time
84613         zone indicator, not before.  Reported by Todd A. Jacobs.
84614
84615 2000-06-13  Jim Meyering  <meyering@lucent.com>
84616
84617         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84618
84619         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84620
84621 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84622
84623         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84624
84625 2000-06-12  Jim Meyering  <meyering@lucent.com>
84626
84627         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84628         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84629         optional argument.
84630         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84631         the optional argument, `lib'.
84632
84633 2000-06-08  Jim Meyering  <meyering@lucent.com>
84634
84635         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84636
84637 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84638
84639         Rewrite largefile configuration so that we don't need to run
84640         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84641         AC_CANONICAL_HOST in configure.in -- jmm]
84642
84643         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84644         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84645         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84646         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84647         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84648         All uses changed.
84649         Instead of inspecting the output of getconf, try to compile the
84650         test program without and with the macro definition.
84651         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84652         for getconf.  Instead, check for the needed flags by compiling
84653         test programs.
84654
84655 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84656
84657         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84658
84659 2000-06-04  Jim Meyering  <meyering@lucent.com>
84660
84661         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84662         SunOS 4.1.4 for which gid_t is an unsigned type.
84663
84664 2000-06-03  Jim Meyering  <meyering@lucent.com>
84665
84666         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84667         now that autoconf requires that.
84668
84669         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84670         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84671         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84672
84673 2000-06-03  Jim Meyering  <meyering@lucent.com>
84674
84675         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84676
84677 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84678
84679         * m4/glibc21.m4: New file.
84680         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84681
84682 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84683
84684         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84685         newer, don't install charset.alias.
84686         * lib/config.charset: Change the Linux/glibc rules so they become empty
84687         on glibc-2.1 or newer.
84688
84689 2000-06-02  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/mountlist.c: Back out last change.  Instead, do this...
84692         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84693         me_dummy member using the same `ignore'-testing code.
84694         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84695         fs_type strings.
84696         From Mark D. Roth.
84697
84698 2000-05-29  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84701         mounts with the `ignore' attribute.  Based on a patch from
84702         Mark D. Roth.
84703
84704 2000-05-28  Jim Meyering  <meyering@lucent.com>
84705
84706         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84707         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84708         * m4/stat.m4: Likewise.
84709         * m4/lstat.m4: Likewise.
84710         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84711
84712         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84713         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84714
84715 2000-05-26  Jim Meyering  <meyering@lucent.com>
84716
84717         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84718
84719 2000-05-24  Jim Meyering  <meyering@lucent.com>
84720
84721         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84722         autoconf requires that.
84723         * m4/lib-check.m4: Likewise.
84724         * m4/jm-macros.m4: Likewise.
84725         * m4/strftime.m4: Likewise.
84726
84727         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84728         AC_CHECK_DECLS, now that autoconf requires that.
84729
84730 2000-05-22  Jim Meyering  <meyering@lucent.com>
84731
84732         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84733         * m4/lstat.m4: Likewise.
84734
84735 2000-05-22  Jim Meyering  <meyering@lucent.com>
84736
84737         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84738
84739 2000-05-20  Jim Meyering  <meyering@lucent.com>
84740
84741         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84742         (jm_PREREQ): Use it.
84743
84744 2000-05-18  Jim Meyering  <meyering@lucent.com>
84745
84746         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84747         back, too, since it may have been modified by allocate_entry.
84748         (hash_delete): Rewrite to use neither the assignment operator
84749         nor the comma operator in an if-expression.
84750
84751 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84752
84753         * lib/closeout.c:
84754         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84755         Remove; no longer needed.
84756         "quotearg.h": Add include.
84757         (file_name): Do not bother to explicitly initialize to NULL; it's less
84758         efficient on some hosts.
84759         (close_stdout_status): Remove test as to whether stdout was already
84760         closed; it breaks for the case "echo x | sort >&-".
84761         Quote file name colons.
84762         Do not assume that _("write error") lacks format strings.
84763
84764 2000-05-15  Jim Meyering  <meyering@lucent.com>
84765
84766         * lib/version-etc.c (version_etc_copyright): Update the copyright
84767         string used in all --version output.
84768
84769 2000-05-14  Jim Meyering  <meyering@lucent.com>
84770
84771         * lib/closeout.c (close_stdout_set_file_name): New function.
84772         (close_stdout_status): Use new file-scoped global.
84773         Return right away if fstat says the stdout file descriptor is invalid.
84774         * lib/closeout.h (close_stdout_set_file_name): Declare.
84775
84776 2000-05-10  Jim Meyering  <meyering@lucent.com>
84777
84778         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84779         (close_stdout_set_status): New function.
84780         * lib/closeout.h (close_stdout_set_status): Declare.
84781
84782 2000-05-09  Jim Meyering  <meyering@lucent.com>
84783
84784         * m4/gettext.m4: Rename this...
84785         * m4/libintl.m4: ...to this.
84786
84787 2000-05-08  Jim Meyering  <meyering@lucent.com>
84788
84789         * lib/long-options.c: Don't include closeout.h.
84790         (parse_long_options): Don't call close_stdout for --version.
84791
84792 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84793
84794         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84795         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84796         2.1.3 bug.  This avoids a clash when files like regex.c define
84797         _GNU_SOURCE.
84798
84799 2000-05-06  Jim Meyering  <meyering@lucent.com>
84800
84801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84802         (AC_REPLACE_FUNCS): Add strnlen.
84803
84804         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84805         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84806
84807         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84808         AC_SEARCH_LIBS call for nanosleep.
84809         (LIB_NANOSLEEP): Set and AC_SUBST.
84810
84811 2000-05-06  Jim Meyering  <meyering@lucent.com>
84812
84813         * lib/strnlen.c: Undefine __strnlen and strnlen.
84814         [!weak_alias]: Define __strnlen to strnlen.
84815
84816         * lib/atexit.c: New file, from libiberty.
84817
84818 2000-05-06  Jim Meyering  <meyering@lucent.com>
84819
84820         * lib/closeout.c (close_stdout_status): Also check for errors on the
84821         stderr stream.
84822
84823 2000-05-05  Jim Meyering  <meyering@lucent.com>
84824
84825         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84826         AC_SEARCH_LIBS call for clock_gettime.
84827         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84828
84829         * m4/search-libs.m4: Update from autoconf.
84830
84831         su doesn't work on Solaris 2.6.
84832         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84833         <shadow.h>.  Reported by Dragos Harabor.
84834
84835 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84836
84837         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84838         memcpy instead of xmalloc, xrealloc, path_concat.
84839         (locale_charset): Treat empty environment variables as absent.
84840         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84841
84842 2000-05-04  Jim Meyering  <meyering@lucent.com>
84843
84844         * lib/getopt.c: Update from glibc.
84845         * lib/obstack.c: Likewise.
84846         * lib/obstack.h: Likewise.
84847         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84848         file
84849
84850         * lib/regex.h: Likewise.
84851         * lib/strndup.c: Likewise.
84852         * lib/strnlen.c: New file, from glibc.
84853
84854 2000-05-03  Jim Meyering  <meyering@lucent.com>
84855
84856         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84857
84858 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84859
84860         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84861         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84862         compile-time test, rather than inspecting host and OS, to
84863         decide whether to define _LARGEFILE_SOURCE.
84864
84865 2000-05-01  Jim Meyering  <meyering@lucent.com>
84866
84867         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84868
84869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84870         Based on a patch from Bruno Haible.
84871
84872 2000-05-01  Jim Meyering  <meyering@lucent.com>
84873
84874         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84875
84876 2000-04-29  Jim Meyering  <meyering@lucent.com>
84877
84878         * lib/path-concat.c: Declare strdup only if it's not defined.
84879         * lib/canon-host.c: Likewise.
84880
84881 2000-04-28  Jim Meyering  <meyering@lucent.com>
84882
84883         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84884         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84885         is included first, then limits.h is included by locale.h by libintl.h.
84886         From John David Anglin.
84887
84888 2000-04-25  Jim Meyering  <meyering@lucent.com>
84889
84890         * lib/makepath.c (S_IRWXUGO): Define.
84891         (make_path): Always perform explicit chmod if MODE specifies any
84892         of the `special' permission bits.  Prompted by a bug report against
84893         install from Mate Wierdl and Joost van Baal.
84894
84895 2000-04-18  Jim Meyering  <meyering@lucent.com>
84896
84897         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84898         (jm_PREREQ): Use it.
84899
84900 2000-04-18  Jim Meyering  <meyering@lucent.com>
84901
84902         * lib/README: New file.
84903
84904         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84905         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84906
84907 2000-04-17  Jim Meyering  <meyering@lucent.com>
84908
84909         Get it right :-)
84910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84911         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84912         Suggestion from Akim Demaille.
84913
84914 2000-04-17  Jim Meyering  <meyering@lucent.com>
84915
84916         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84917         the definition of it to rpl_strftime also defined-away the system's
84918         declaration.
84919
84920 2000-04-15  Jim Meyering  <meyering@lucent.com>
84921
84922         Use `C' to denote so-called `contiguous' files, the same way
84923         that tar does.
84924         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84925         (ftypelet): Use S_ISCTG.
84926         From Michael Deutschmann.
84927
84928 2000-04-14  Jim Meyering  <meyering@lucent.com>
84929
84930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84931         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84932         clobbered.
84933
84934 2000-04-14  Jim Meyering  <meyering@lucent.com>
84935
84936         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84937
84938 2000-04-13  Jim Meyering  <meyering@lucent.com>
84939
84940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84941         AH_VERBATIM to insert required #ifndef into config.h.in.
84942         Suggestion from Akim Demaille.
84943
84944 2000-04-12  Jim Meyering  <meyering@lucent.com>
84945
84946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84947         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84948         Christian Krackowizer.
84949
84950         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84951         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84952         (AC_SYS_LARGEFILE): Require.
84953         (AM_C_PROTOTYPES): Require.
84954
84955 2000-04-08  Jim Meyering  <meyering@lucent.com>
84956
84957         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84958         names don't conflict.  Reported by Eli Zaretskii.
84959
84960 2000-04-07  Jim Meyering  <meyering@lucent.com>
84961
84962         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84963         sys/types.h, to work around system header problems on AIX 3.2.5.
84964         From Bruno Haible.
84965
84966 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84967
84968         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84969         bug.  Deal with the different error behavior of Irix iconv.
84970
84971 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84972
84973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84974         IRIX if the installer said otherwise.
84975
84976 2000-04-05  Jim Meyering  <meyering@lucent.com>
84977
84978         Portability tweaks required for ultrix4.3.
84979         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84980         (jm_CHECK_DECLS): Add getutent to the list of functions.
84981         (_jm_DECL_HEADERS): Add utmpx.h.
84982         From John David Anglin.
84983
84984         * m4/strftime.m4: Back out the 2000-04-02 change.
84985         Instead of that change, simply undefine putenv in the test program.
84986
84987 2000-04-05  Jim Meyering  <meyering@lucent.com>
84988
84989         Portability tweaks required for ultrix4.3.
84990         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84991         getutent.
84992         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84993         * lib/canon-host.c: Declare strdup.
84994         * lib/path-concat.c: Likewise.
84995         From John David Anglin.
84996
84997 2000-04-04  Jim Meyering  <meyering@lucent.com>
84998
84999         Be more DOS 8.3-friendly.
85000         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85001         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85002         * lib/Makefile.am: Reflect renaming.
85003         Reported by Eli Zaretskii.
85004
85005         Use a temporary file name that won't clash with `charset.alias'
85006         in the DOS 8.3 name space.
85007         * lib/Makefile.am (charset_tmp): Define.
85008         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85009         (uninstall-local): Likewise.
85010         Reported by Eli Zaretskii.
85011
85012 2000-04-03  Jim Meyering  <meyering@lucent.com>
85013
85014         * m4/gettext.m4: Fix typo in comment.
85015
85016         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85017         textutils/configure.in).  Suggestion from Paul Eggert.
85018         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85019
85020 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85021
85022         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85023         variable in the shell rather than using putenv, which isn't
85024         portable.  This avoids the configure-time inter-test dependency
85025         on the potentially-renamed putenv function.
85026
85027 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85028
85029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85030         before checking struct stat.st_blksize, so that
85031         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85032
85033 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85034
85035         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85036         since strftime.c uses HAVE_STRFTIME to decide whether to use
85037         the underlying strftime.
85038
85039 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85040
85041         * lib/time/strftime.c (my_strftime): Make sure we call the system
85042         strftime, not ourselves, when invoking the underlying strftime.
85043
85044 2000-03-24  Jim Meyering  <meyering@lucent.com>
85045
85046         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85047         (charset_alias): Define.
85048         (install-exec-local): Factor out common code.
85049         (uninstall-local): Split lines longer than 80.
85050         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85051         (SUFFIXES): Define.
85052         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85053         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85054
85055 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85056
85057         * lib/config.charset: Output a line containing "Packages using this
85058         file".
85059         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85060         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85061         ref-del.sed): New rules.
85062
85063 2000-03-17  Jim Meyering  <meyering@lucent.com>
85064
85065         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85066         Otherwise, include <strings.h>
85067
85068 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85069
85070         * lib/unicodeio.c (utf8_wctomb): New function.
85071         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85072         format instead of in UCS-4 with platform dependent endianness.
85073
85074 2000-03-10  Jim Meyering  <meyering@lucent.com>
85075
85076         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85077         From Marco Franzen.
85078
85079 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85080
85081         * lib/savedir.c (savedir): Work even if directory size is
85082         negative; this can happen with some screwy NFS configurations.
85083
85084 2000-03-06  Jim Meyering  <meyering@lucent.com>
85085
85086         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85087         if it's NULL (because we ran out of memory).  From Bruno Haible.
85088
85089 2000-03-05  Jim Meyering  <meyering@lucent.com>
85090
85091         * lib/localcharset.c ("path-concat.h"): Include.
85092         (get_charset_aliases): Use path_concat instead of ANSI string
85093         concatenation.
85094
85095         * lib/unicodeio.h (PARAMS): Define.
85096         Use it to guard prototype.
85097
85098 2000-03-04  Jim Meyering  <meyering@lucent.com>
85099
85100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85101         for lib/localcharset.c.
85102
85103 2000-03-04  Jim Meyering  <meyering@lucent.com>
85104
85105         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85106         installing into it.
85107         (uninstall-local): Uncomment this rule so `make distcheck' works
85108         once again.
85109
85110         * lib/unicodeio.c (<errno.h>): Include it.
85111         (errno): Declare if not defined.
85112
85113         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85114
85115         * lib/config.charset: New version, incorporating remarks from a linux
85116         i18n mailing list.  From Bruno Haible.
85117
85118 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85119
85120         * m4/codeset.m4: New file.
85121         * m4/iconv.m4: New file.
85122         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85123
85124 2000-03-03  Jim Meyering  <meyering@lucent.com>
85125
85126         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85127
85128 2000-03-02  Jim Meyering  <meyering@lucent.com>
85129
85130         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85131         the messages come out on separate lines.
85132
85133         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85134         rather than jm_CHECK_DECLARATIONS.
85135         * m4/decl.m4: Remove now-unused file.
85136
85137         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85138         geteuid.
85139
85140 2000-03-02  Jim Meyering  <meyering@lucent.com>
85141
85142         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85143
85144 2000-03-01  Jim Meyering  <meyering@lucent.com>
85145
85146         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85147         * lib/unicodeio.c: Likewise.
85148
85149 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85150
85151         * lib/config.charset: New file.
85152         * lib/localcharset.c: New file.
85153         * lib/unicodeio.h, lib/unicodeio.c: New files.
85154         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85155         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85156         (noinst_HEADERS): Add unicodeio.h.
85157         (all-local, install-exec-local, charset.alias): New targets.
85158
85159 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85160
85161         * lib/quotearg.c (ALERT_CHAR): New macro.
85162         (quotearg_buffer_restyled): Use it.
85163
85164 2000-02-27  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/check-decl.m4: Add getenv to the list.
85167
85168 2000-02-27  Jim Meyering  <meyering@lucent.com>
85169
85170         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85171         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85172
85173         * lib/backupfile.c: Guard inclusion of stdlib.h with
85174         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85175         Declare malloc if needed.
85176
85177         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85178         `#ifndef HAVE_DECL..'
85179         now that autoconf always defines the HAVE_DECL_ symbols.
85180         * lib/human.c: Likewise.
85181         * lib/same.c: Likewise.
85182         * lib/strtoumax.c: Likewise.
85183
85184         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85185         declaration check was not run.
85186         * lib/hash.c: Likewise.
85187         * lib/human.c: Likewise.
85188         * lib/same.c: Likewise.
85189         * lib/strtoumax.c: Likewise.
85190
85191         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85192         `.', then first look up the entire `.'-containing string as a login
85193         name.
85194
85195 2000-02-23  Jim Meyering  <meyering@lucent.com>
85196
85197         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85198         in place of my hack.
85199
85200 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85201
85202         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85203         (textint): New typedef.
85204         (parser_control): Member year changed from int to textint.
85205         All uses changed.
85206         (YYSTYPE): Removed; replaced by %union with int and textint members.
85207         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85208         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85209         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85210         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85211         (date, number, to_year): Use width of number in digits, not its value,
85212         to determine whether it's a 2-digit year, or a 2-digit time.
85213         (yylex): Store number of digits of numeric tokens.
85214         Reported by John Kendall.
85215
85216         (parser_control): Changed from struct parser_control to typedef (for
85217         consistency).  All uses changed.
85218
85219         (tID): Removed; not used.
85220         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85221
85222 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85223
85224         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85225         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85226
85227 2000-02-12  Jim Meyering  <meyering@lucent.com>
85228
85229         * lib/userspec.c (ISDIGIT): Define it.
85230         (isdigit): Remove definition.
85231         (is_number): Use ISDIGIT, not isdigit.
85232         <libintl.h>: Include.
85233         (_ and N_): Define.
85234         (parse_user_spec): Mark translatable strings.
85235
85236 2000-02-10  Jim Meyering  <meyering@lucent.com>
85237
85238         With these changes, nanosleep.[ch] are finally enough like the other
85239         lib/* replacement files to compile on a few more losing systems.
85240
85241         * lib/nanosleep.h: Don't include config.h.
85242         Remove prototype from declaration of nanosleep.
85243         (PARAMS): Remove now-unneeded definition.
85244         * lib/nanosleep.c: #undef nanosleep.
85245         (rpl_nanosleep): Rename from nanosleep.
85246
85247 2000-02-10  Jim Meyering  <meyering@lucent.com>
85248
85249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85250         gnu_nanosleep to rpl_nanosleep.
85251
85252 2000-02-09  Jim Meyering  <meyering@lucent.com>
85253
85254         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85255         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85256
85257 2000-02-08  Akim Demaille  <akim@epita.fr>
85258
85259         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85260         `[' and `]' and remove uses of `changequote'.
85261         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85262         (AC_SYS_LARGEFILE): Likewise.
85263         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85264         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85265         of changequote.
85266         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85267         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85268         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85269         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85270
85271 2000-02-05  Jim Meyering  <meyering@lucent.com>
85272
85273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85274         Remove explicit use of AC_HEADER_TIME.  It is required by
85275         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85276         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85277         in autoconf whereby the expansion of the latter ended up preceding
85278         the expansion of its prerequisite, AC_HEADER_TIME.
85279         Reported by Volker Borchert.
85280
85281 2000-02-03  Jim Meyering  <meyering@lucent.com>
85282
85283         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85284
85285 2000-02-03  Jim Meyering  <meyering@lucent.com>
85286
85287         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85288         rather than with `#if HAVE_UTMPNAME'.
85289
85290 2000-02-02  Jim Meyering  <meyering@lucent.com>
85291
85292         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85293         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85294         Reported by Eli Zaretskii.
85295
85296 2000-02-01  Jim Meyering  <meyering@lucent.com>
85297
85298         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85299
85300 2000-01-31  Jim Meyering  <meyering@lucent.com>
85301
85302         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85303         functions.  Add the time.h and sys/time.h headers along with the
85304         AC_REQUIRE'ment of AC_HEADER_TIME.
85305
85306 2000-01-31  Jim Meyering  <meyering@lucent.com>
85307
85308         * lib/nanosleep.h (nanosleep): Guard declaration with
85309         `#if ! HAVE_DECL_NANOSLEEP'.
85310         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85311         the declaration in that vendor's sys/timers.h.
85312         Reported by Christian Krackowizer.
85313
85314         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85315         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85316         (ISPRINT): Likewise.
85317         Reported by Tom Tromey.
85318
85319 2000-01-30  Jim Meyering  <meyering@lucent.com>
85320
85321         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85322
85323         * m4/prereq.m4 (utmp_includes): Define.
85324         Check for ut_user and ut_name members in both struct utmpx
85325         and struct utmp.
85326
85327 2000-01-30  Jim Meyering  <meyering@lucent.com>
85328
85329         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85330         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85331         header files where only utmpx.ut_user is declared.
85332
85333         * lib/readutmp.h (UT_USER): Define.
85334
85335 2000-01-29  Jim Meyering  <meyering@lucent.com>
85336
85337         * m4/lib-check.m4: New file containing library-related checks from
85338         fileutils and sh-utils (textutils had none).
85339
85340 2000-01-28  Jim Meyering  <meyering@lucent.com>
85341
85342         * m4/perl.m4: Change format of warning message to look more like that
85343         from the missing script.  Suggestion from François Pinard.
85344
85345 2000-01-25  Jim Meyering  <meyering@lucent.com>
85346
85347         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85348         well as time.h in the compile check.
85349         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85350         Fix typo in cross-compiling case: s/yes/no/.
85351
85352 2000-01-23  Jim Meyering  <meyering@lucent.com>
85353
85354         * m4/jm-macros.m4: Move df-related tests here from
85355         fileutils/configure.in
85356
85357         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85358         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85359
85360         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85361         s/space/ac_fsusage_space/.
85362         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85363
85364         * m4/ftruncate.m4: New file (derived from part of
85365         fileutils/configure.in).
85366         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85367         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85368
85369         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85370         AC_SUBST these here, rather than just in sh-util/configure.in, so
85371         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85372         all the same.
85373         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85374         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85375         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85376         (AC_SUBST(POW_LIBM)): Likewise.
85377         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85378
85379 2000-01-23  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85382         obstack.c.
85383
85384 2000-01-22  Jim Meyering  <meyering@lucent.com>
85385
85386         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85387
85388         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85389
85390         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85391         configure.in
85392         (AC_CHECK_HEADERS): Likewise for sh-utils.
85393         (AC_CHECK_HEADERS): Likewise for textutils.
85394         Merge the three lists of headers.
85395
85396         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85397         from fileutils' configure.in.
85398
85399         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85400         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85401         check-decl.m4.
85402
85403         * m4/check-decl.m4: Use #if rather than #ifdef.
85404         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85405         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85406         (_jm_DECL_HEADERS): Define new function.
85407         (jm_CHECK_DECLARATIONS): Require it.
85408
85409 2000-01-22  Jim Meyering  <meyering@lucent.com>
85410
85411         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85412         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85413         Required for some AIX systems.  Reported by Christian Krackowizer.
85414         [TESTING] (main): New function.
85415
85416         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85417         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85418         letters.
85419
85420         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85421         iswprint.
85422
85423         * lib/strverscmp.c (ISDIGIT): Define.
85424         (strverscmp): Use ISDIGIT, not isdigit.
85425
85426 2000-01-19  Jim Meyering  <meyering@lucent.com>
85427
85428         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85429         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85430         defines `struct timespec' in <sys/time.h>
85431
85432         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85433         Thanks to Akim for explaining.
85434
85435 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85436
85437         * lib/nanosleep.c (nanosleep):
85438         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85439         POSIX.1 doesn't require SA_INTERRUPT and some systems
85440         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85441         it's been part of POSIX.1 since day 1 (in 1988).
85442
85443 2000-01-17  Jim Meyering  <meyering@lucent.com>
85444
85445         * lib/interlock: Remove unused file.  Reported by François Pinard.
85446
85447 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85448
85449         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85450         alert, backslash, formfeed, and vertical tab unnecessarily in
85451         shell quoting style.
85452
85453 2000-01-16  Jim Meyering  <meyering@lucent.com>
85454
85455         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85456         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85457         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85458         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85459
85460 2000-01-16  Jim Meyering  <meyering@lucent.com>
85461
85462         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85463         because the latter didn't work.
85464
85465 2000-01-15  Jim Meyering  <meyering@lucent.com>
85466
85467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85468         (AC_REPLACE_FUNCS): Add memcpy and memset.
85469         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85470         Add strpbrk.
85471         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85472
85473 2000-01-12  Jim Meyering  <meyering@lucent.com>
85474
85475         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85476         (jm_PREREQ): Use it.
85477         (jm_PREREQ_READUTMP): New macro.
85478         (jm_PREREQ): Use it.
85479
85480 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85481
85482         Quote multibyte characters correctly.
85483         * m4/c-bs-a.m4: New file.
85484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85485         (jm_PREREQ): Use it.
85486
85487 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85488
85489         * m4/uintmax_t.m4: Port to autoconf 2.13.
85490
85491 2000-01-08  Jim Meyering  <meyering@ascend.com>
85492
85493         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85494         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85495
85496 2000-01-04  Jim Meyering  <meyering@ascend.com>
85497
85498         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85499         jm_STRUCT_DIRENT_D_TYPE.
85500         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85501         jm_STRUCT_DIRENT_D_INO.
85502         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85503         jm_STRUCT_UTIMBUF.
85504         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85505         renamings.
85506         * m4/utime.m4: Likewise.
85507
85508         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85509         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85510
85511 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85512
85513         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85514         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85515
85516 2000-01-02  Jim Meyering  <meyering@ascend.com>
85517
85518         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85519         remember if this is necessary.
85520
85521 1999-12-26  Jim Meyering  <meyering@ascend.com>
85522
85523         * m4/jm-macros.m4: Use it here.
85524         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85525
85526 1999-12-23  Jim Meyering  <meyering@ascend.com>
85527
85528         * m4/jm-macros.m4: Check for clock_gettime (moved from
85529         fileutils/configure.in)
85530         Check for gettimeofday.
85531
85532 1999-12-20  Jim Meyering  <meyering@ascend.com>
85533
85534         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85535         autoconf-2.14a-1999-12-20.
85536
85537 1999-12-19  Jim Meyering  <meyering@ascend.com>
85538
85539         * m4/lstat-slash.m4: New file.
85540         * m4/jm-macros.m4: Use the new macro:
85541         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85542
85543 1999-12-07  Jim Meyering  <meyering@ascend.com>
85544
85545         * m4/perl.m4: Require that File::Compare be available, too.
85546         Too many systems seem to lack it.
85547
85548         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85549         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85550
85551 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85552
85553         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85554         problem with the QNX 4.25 shell, which doesn't propagate exit
85555         status of failed commands inside shell assignments.
85556
85557 1999-11-17  Jim Meyering  <meyering@ascend.com>
85558
85559         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85560
85561 1999-11-07  Jim Meyering  <meyering@ascend.com>
85562
85563         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85564
85565 1999-11-06  Jim Meyering  <meyering@ascend.com>
85566
85567         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85568         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85569
85570 1999-11-05  Jim Meyering  <meyering@ascend.com>
85571
85572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85573         configure.in of textutils, fileutils, and sh-utils into this one
85574         (shared between those packages) file.
85575         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85576         AC_STRUCT_ST_BLKSIZE.
85577
85578 1999-11-03  Jim Meyering  <meyering@ascend.com>
85579
85580         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85581         of AC_CHECK_TYPE checks includes unistd.h.
85582         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85583         Suggestion from Akim Demaille.
85584
85585 1999-10-30  Jim Meyering  <meyering@ascend.com>
85586
85587         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85588         m4-quoted string.
85589         * m4/ls-mntd-fs.m4: Likewise.
85590         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85591         * m4/jm-winsz1.m4: Likewise.
85592
85593         * m4/const.m4: Remove file, since the fix made it into the experimental
85594         version of autoconf.
85595         * m4/mktime.m4: Likewise.
85596
85597         * m4/check-type.m4: Remove file, now that the latest version of
85598         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85599
85600         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85601         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85602         AC_CHECK_TYPE.
85603
85604 1999-10-04  Jim Meyering  <meyering@ascend.com>
85605
85606         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85607
85608 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85609
85610         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85611         2.95.1 bug with HP-UX 10.20.
85612
85613 1999-09-17  Jim Meyering  <meyering@ascend.com>
85614
85615         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85616         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85617         due to missing strdup (against sh-utils-2.0).
85618
85619 1999-08-29  Jim Meyering  <meyering@ascend.com>
85620
85621         * m4/jm-macros.m4: Require jm_BISON.
85622         * m4/bison.m4: New file.
85623
85624 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85625
85626         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85627         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85628
85629 1999-08-05  Jim Meyering  <meyering@ascend.com>
85630
85631         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85632         to avoid conflicts with `conftest' on 8+3 filesystems.
85633         Suggestion from Eli Zaretskii.
85634
85635 1999-08-04  Jim Meyering  <meyering@ascend.com>
85636
85637         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85638         fileutils and sh-utils (textutils's getline test was inadequate).
85639         (AM_FUNC_GETLINE): Run this test.
85640         (AC_CHECK_FUNCS): Check for getdelim.
85641         Reported by Bob Proulx.
85642
85643 1999-08-02  Jim Meyering  <meyering@ascend.com>
85644
85645         * m4/jm-macros.m4: Add a comment.
85646
85647 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85648
85649         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85650         <inttypes.h> defines strtoumax as a macro (and not as a
85651         function).
85652
85653 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85654
85655         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85656         that we can shift, multiply and divide unsigned long long
85657         values; Ultrix cc can't do it.
85658
85659 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85660
85661         * m4/mktime.m4: New file, which is a preview of what should appear
85662         in the next public autoconf release.
85663
85664 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85665
85666         * m4/lfs.m4: Remove this file.
85667         * m4/largefile.m4: New file.  It contains the old contents of
85668         lfs.m4, except that all names with prefix AC_LFS have been
85669         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85670         compatible with future autoconf versions.  Also, some minor m4
85671         quoting problems have been fixed.
85672
85673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85674
85675         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85676         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85677         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85678         and simplify the shell code.
85679
85680 1999-08-01  Jim Meyering  <meyering@ascend.com>
85681
85682         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85683         m4.
85684
85685 1999-07-20  Jim Meyering  <meyering@ascend.com>
85686
85687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85688
85689 1999-07-15  Jim Meyering  <meyering@ascend.com>
85690
85691         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85692
85693 1999-05-22  Jim Meyering  <meyering@ascend.com>
85694
85695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85696
85697 1999-05-20  Jim Meyering  <meyering@ascend.com>
85698
85699         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85700         Add a colon after each `then' in case $4 is empty.
85701
85702 1999-05-16  Jim Meyering  <meyering@ascend.com>
85703
85704         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85705
85706 1999-05-10  Jim Meyering  <meyering@ascend.com>
85707
85708         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85709
85710         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85711         AC_FUNC_MKTIME.
85712
85713 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85714
85715         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85716
85717 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85718
85719         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85720         not CPPFLAGS, so that linking works correctly in IRIX.
85721
85722 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85723
85724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85725
85726 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85727
85728         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85729         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85731         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85732         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85733
85734         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85735
85736 1999-04-20  Jim Meyering  <meyering@ascend.com>
85737
85738         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85739         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85740         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85741
85742 1999-04-18  Jim Meyering  <meyering@ascend.com>
85743
85744         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85745         * m4/jm-macros.m4: Use it.
85746
85747 1999-04-06  Jim Meyering  <meyering@ascend.com>
85748
85749         * m4/strftime.m4: Remove test for %f.
85750
85751 1999-03-29  Jim Meyering  <meyering@ascend.com>
85752
85753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85754         superset of the AC_TYPE_* checks in the textutils, fileutils,
85755         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85756         AC_TYPE_PID_T.
85757
85758 1999-03-28  Jim Meyering  <meyering@ascend.com>
85759
85760         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85761         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85762         replaced e.g., in the *.sh files of the sh-utils.
85763
85764 1999-03-20  Jim Meyering  <meyering@ascend.com>
85765
85766         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85767         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85768         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85769
85770 1999-03-19  Jim Meyering  <meyering@ascend.com>
85771
85772         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85773
85774 1999-03-12  Jim Meyering  <meyering@ascend.com>
85775
85776         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85777
85778 1999-03-07  Jim Meyering  <meyering@ascend.com>
85779
85780         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85781         declared.
85782
85783 1999-02-17  Jim Meyering  <meyering@ascend.com>
85784
85785         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85786         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85787
85788 1999-02-07  Jim Meyering  <meyering@ascend.com>
85789
85790         * m4/group-member.m4: New file -- extracted from sh-utils'
85791         configure.in.
85792
85793         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85794         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85795
85796 1999-02-06  Jim Meyering  <meyering@ascend.com>
85797
85798         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85799         * m4/fnmatch.m4: Likewise.
85800         * m4/getgroups.m4: Likewise.
85801         * m4/lstat.m4: Likewise.
85802         * m4/malloc.m4: Likewise.
85803         * m4/putenv.m4: Likewise.
85804         * m4/realloc.m4: Likewise.
85805         * m4/regex.m4: Likewise.
85806         * m4/stat.m4: Likewise.
85807         * m4/strftime.m4: Likewise.
85808         Suggestion from Alain Magloire.
85809
85810         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85811         * m4/fnmatch.m4: Likewise.
85812         * m4/getgroups.m4: Likewise.
85813         * m4/getline.m4: Likewise.
85814         * m4/lstat.m4: Likewise.
85815         * m4/malloc.m4: Likewise.
85816         * m4/memcmp.m4: Likewise.
85817         * m4/putenv.m4: Likewise.
85818         * m4/realloc.m4: Likewise.
85819         * m4/regex.m4: Likewise.
85820         * m4/stat.m4: Likewise.
85821         * m4/strftime.m4: Likewise.
85822         Suggestion from Alain Magloire.
85823
85824         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85825         an argument.
85826
85827         * m4/regex.m4: Add a run-time Test for proper operation of
85828         re_compile_pattern.
85829
85830 1999-01-31  Jim Meyering  <meyering@ascend.com>
85831
85832         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85833
85834 1999-01-30  Jim Meyering  <meyering@ascend.com>
85835
85836         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85837
85838         * m4/jm-mktime.m4: Make this a wrapper around the official
85839         AM_FUNC_MKTIME rather than my private copy, now that the official one
85840         is up to date.
85841         * m4/mktime.m4: Remove file.
85842
85843         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85844         * m4/uptime.m4: Likewise.
85845         * m4/uintmax_t.m4: Likewise.
85846
85847 1999-01-28  Jim Meyering  <meyering@ascend.com>
85848
85849         * m4/jm-macros.m4: Use jm_AFS.
85850         * m4/afs.m4: New file (from fileutils' configure.in).
85851
85852         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85853         * m4/chown.m4: Likewise.
85854         * m4/d-ino.m4: Likewise.
85855         * m4/d-type.m4: Likewise.
85856         * m4/fnmatch.m4: Likewise.
85857         * m4/getgroups.m4: Likewise.
85858         * m4/gettext.m4: Likewise.
85859         * m4/jm-mktime.m4: Likewise.
85860         * m4/jm-winsz2.m4: Likewise.
85861         * m4/lcmessage.m4: Likewise.
85862         * m4/ls-mntd-fs.m4: Likewise.
85863         * m4/malloc.m4: Likewise.
85864         * m4/memcmp.m4: Likewise.
85865         * m4/putenv.m4: Likewise.
85866         * m4/realloc.m4: Likewise.
85867         * m4/st_mtim.m4: Likewise.
85868         * m4/strftime.m4: Likewise.
85869
85870 1999-01-16  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85873         (ARGMATCH_DIE_DECL): Define.
85874
85875 1999-01-12  Jim Meyering  <meyering@ascend.com>
85876
85877         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85878         Reported by Lars Hecking.
85879
85880 1999-01-10  Jim Meyering  <meyering@ascend.com>
85881
85882         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85883         gross kludge.
85884         * m4/inttypes_h.m4: Likewise.
85885         * m4/lstat.m4: Likewise.
85886         * m4/malloc.m4: Likewise.
85887         * m4/readdir.m4: Likewise.
85888         * m4/realloc.m4: Likewise.
85889         * m4/st_dm_mode.m4: Likewise.
85890         * m4/stat.m4: Likewise.
85891         * m4/utimbuf.m4: Likewise.
85892         * m4/utimes.m4: Likewise.
85893
85894         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85895         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85896         comments in config.h.in are meaningful.
85897
85898         * m4/jm-macros.m4: Require autoconf-2.13 here.
85899
85900         * m4/regex.m4: By default, don't use the included regex.c on systems
85901         with glibc 2.  Suggestion from Uli Drepper.
85902
85903 1999-01-02  Jim Meyering  <meyering@ascend.com>
85904
85905         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85906
85907 1998-12-18  Jim Meyering  <meyering@ascend.com>
85908
85909         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85910         Based on a suggestion from Lars Hecking.
85911
85912 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85913
85914         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85915
85916 1998-11-16  Jim Meyering  <meyering@ascend.com>
85917
85918         * m4/lfs.m4: Double-quote the `uname...` expression.
85919
85920 1998-11-14  Jim Meyering  <meyering@ascend.com>
85921
85922         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85923         * m4/stat.m4: Likewise.
85924
85925 1998-11-03  Jim Meyering  <meyering@ascend.com>
85926
85927         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85928         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85929
85930 1998-10-18  Jim Meyering  <meyering@ascend.com>
85931
85932         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85933
85934 1998-10-17  Jim Meyering  <meyering@ascend.com>
85935
85936         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85937         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85938         calls for those previously hard-coded headers.  Instead, take a new
85939         parameter.
85940         (jm_CHECK_DECLARATIONS): Reflect interface change.
85941         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85942         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85943
85944         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85945
85946 1998-10-14  Jim Meyering  <meyering@ascend.com>
85947
85948         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85949         instead of "TZ=America/Vancouver".  From Paul Eggert.
85950
85951 1998-10-11  Jim Meyering  <meyering@ascend.com>
85952
85953         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85954         This adds a test for a recently added compatibility fix for mktime.c.
85955         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85956
85957 1998-09-27  Jim Meyering  <meyering@ascend.com>
85958
85959         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85960
85961         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85962         ../configure.in, including a change from Gordon Matzigkeit to allow
85963         cross-compiling for the Hurd.
85964
85965         * m4/glibc.m4: New file/macro to test for the GNU C Library
85966         versions 1 and 2.  From Gordon Matzigkeit.
85967         Indent.
85968
85969 1998-09-21  Jim Meyering  <meyering@ascend.com>
85970
85971         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85972
85973 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85974
85975         Port nanosecond-resolution times to UnixWare 2.1.2 and
85976         pedantic Solaris 2.6.
85977
85978         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85979         AC_STRUCT_ST_MTIM.
85980         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85981         Generate name of ns member, instead of just 1 or undef.
85982         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85983
85984 1998-08-15  Jim Meyering  <meyering@ascend.com>
85985
85986         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85987         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85988         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85989         instead of jm_TYPE_SSIZE_T.
85990
85991 1998-08-12  Jim Meyering  <meyering@ascend.com>
85992
85993         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85994
85995 1998-08-02  Jim Meyering  <meyering@ascend.com>
85996
85997         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85998         in acconfig.h manually.
85999
86000 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86001
86002         * m4/st_mtim.m4: New file.
86003
86004 1998-07-28  Jim Meyering  <meyering@ascend.com>
86005
86006         * m4/utimes.m4: Undef stat.
86007
86008 1998-07-25  Jim Meyering  <meyering@ascend.com>
86009
86010         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86011         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86012
86013 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86014
86015         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86016         uid and gid actually remain unchanged.
86017
86018 1998-07-07  Jim Meyering  <meyering@ascend.com>
86019
86020         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86021
86022 1998-07-04  Jim Meyering  <meyering@ascend.com>
86023
86024         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86025         to prove that this macro can be used in packages without regex.c.
86026
86027 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86028
86029         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86030         is to be used.
86031
86032 1998-07-03  Jim Meyering  <meyering@ascend.com>
86033
86034         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86035
86036         * m4/gettext.m4: New file -- from gettext-0.10.35.
86037         * m4/lcmessage.m4: Likewise.
86038         * m4/progtest.m4: Likewise.
86039
86040         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86041         * m4/jm-macros.m4: Require the new macro.
86042
86043 1998-06-29  Jim Meyering  <meyering@ascend.com>
86044
86045         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86046         for the definition of NGROUPS (used in a system header included
86047         by sys/mount.h).
86048
86049 1998-06-28  Jim Meyering  <meyering@ascend.com>
86050
86051         * m4/ls-mntd-fs.m4: New file.
86052         * m4/fstypename.m4: New file.
86053
86054         * m4/jm-macros.m4: Require the new macro.
86055         * m4/jm-glibc-io.m4: New file.
86056
86057 1998-05-19  Jim Meyering  <meyering@ascend.com>
86058
86059         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86060         * m4/lchown.m4: New file.
86061
86062         * m4/Makefile.am.in: New file.
86063         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86064
86065 1998-05-14  Jim Meyering  <meyering@ascend.com>
86066
86067         * m4/Makefile.am (EXTRA_DIST): Add them.
86068         * m4/jm-macros.m4: New file.
86069         * m4/utimbuf.m4: New file.
86070
86071 1998-05-12  Jim Meyering  <meyering@ascend.com>
86072
86073         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86074
86075 1998-05-11  Jim Meyering  <meyering@ascend.com>
86076
86077         * m4/isc-posix.m4: New file.
86078
86079 1998-05-10  Jim Meyering  <meyering@ascend.com>
86080
86081         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86082
86083 1998-05-09  Jim Meyering  <meyering@ascend.com>
86084
86085         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86086         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86087         with automake.
86088
86089         * m4/ssize_t.m4: New file.
86090         * m4/mktime.m4: Remove file -- the new automake has this now.
86091
86092 1998-04-26  Jim Meyering  <meyering@ascend.com>
86093
86094         * m4/assert.m4: New file.
86095         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86096
86097 1998-04-05  Jim Meyering  <meyering@ascend.com>
86098
86099         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86100         (jm_PREREQ): Use it here.
86101
86102 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86103
86104         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86105         in acconfig.h.
86106
86107 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86108
86109         * m4/prereq.m4: New file.
86110         * m4/error.m4: New file.
86111         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86112
86113 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86114
86115         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86116         cache-check for the same variable -- that defeated the purpose of
86117         the test; the test program was never run.  This was a problem only
86118         on systems with losing getline functions -- HP-UX 10.20 is one.
86119         Reported by Bjorn Helgaas.
86120
86121 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86122
86123         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86124
86125 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86126
86127         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86128
86129         * m4/const.m4: New file.  Use an initializer in this declaration
86130         typedef int charset[2]; const charset x;
86131         Reported by Bob Glickstein.
86132
86133 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86134
86135         * m4/chown.m4: Fix reversed types on -1 args to chown.
86136         From Kaveh Ghazi.
86137
86138 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86139
86140         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86141         Add lseek and memchr.
86142
86143         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86144         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86145         have a 20-character limit on names.
86146
86147 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86148
86149         * m4/inttypes_h.m4: New file.
86150         * m4/uintmax_t.m4: New file.
86151         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86152
86153
86154         -----
86155
86156         Local Variables:
86157         coding: utf-8
86158         End:
86159
86160         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86161
86162         Copying and distribution of this file, with or without
86163         modification, are permitted provided the copyright notice
86164         and this notice are preserved.